/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

svg {
    flex-shrink: 0;
}

/* ========================================
   Header Styles
   ======================================== */
.dundle-header {
    background: #ffffff;
    box-shadow: 0 1px 0 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333; /* لون Gifter */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-do {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D);
    color: white;
    font-size: 24px;
}

.logo-icon {
    font-size: 24px; /* رمز الهدايا */
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    height: 36px;
    position: relative;
}

.header-btn:hover {
    background: #e8e8e8;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

[dir="rtl"] .language-dropdown {
    right: 0;
}

[dir="ltr"] .language-dropdown {
    left: 0;
}

.header-actions > div:first-of-type:hover .language-dropdown,
.language-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.language-dropdown a:hover {
    background: #f5f5f5;
}

.language-dropdown a.active {
    background: #f0f4ff;
    color: #6366F1;
    font-weight: 600;
}

.cart-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    background: #ff4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

[dir="rtl"] .cart-count {
    left: -6px;
}

[dir="ltr"] .cart-count {
    right: -6px;
}

.mobile-toggle {
    display: none;
}

.header-nav {
    border-top: 1px solid #e5e5e5;
    height: 48px;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-link {
    display: block;
    padding: 0 10px;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 48px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000000;
}

.nav-link.active {
    color: #6366F1;
    font-weight: 700;
}

/* ========================================
   Sections Styles
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.view-all {
    color: #6366F1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.view-all:hover {
    gap: 10px;
}

/* Best Selling Section */
.best-selling-section {
    padding: 15px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e5e5;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 48px;
}

.product-info {
    padding: 16px;
    
}

.product-category {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 32px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e5e5;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #666;
}

/* Payment Section */
.payment-section {
    padding: 40px 0;
    background: #f8f9fa;
    text-align: center;
}

.payment-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.payment-section > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.payment-methods-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.payment-method {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s;
}

.payment-method:hover {
    transform: scale(1.1);
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 20px;
    background: url('https://t3.ftcdn.net/jpg/14/89/46/90/360_F_1489469003_Se2adTNhnd2FLuynCT3AT8YTA6hD1aDo.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    position: relative;
}

.newsletter-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
}

.newsletter-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-section > p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-btn {
    padding: 14px 32px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: #e8e8e8;
}

/* What is Dundle Section */
.what-is-dundle {
    padding: 50px 0;
    background: #fff;
}

.what-is-dundle .container {
    max-width: 900px;
    text-align: center;
}

.what-is-dundle h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #000;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
}

.intro-text strong {
    color: #6366F1;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

.learn-more-btn {
    display: inline-block;
    margin-top: 48px;
    padding: 14px 40px;
    background: #6366F1;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background 0.3s;
}

.learn-more-btn:hover {
    background: #4F46E5;
}

/* ========================================
   Product Details Page Styles
   ======================================== */
.product-details-section {
    padding: 40px 0;
    background: #fff;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-image-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-category {
    color: #6366F1;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    line-height: 1.3;
}

.product-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.product-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.product-denominations {
    margin: 20px 0;
}

.denominations-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.denominations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.denomination-btn {
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.denomination-btn:hover {
    border-color: #6366F1;
    background: #f0f4ff;
}

.denomination-btn.selected {
    border-color: #6366F1;
    background: #6366F1;
    color: #fff;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 16px 32px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.buy-now-btn {
    padding: 16px 32px;
    background: #6366F1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-now-btn:hover {
    background: #4F46E5;
    transform: translateY(-2px);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.feature-text strong {
    color: #000;
    display: block;
    margin-bottom: 2px;
}

.related-products-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    text-align: center;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 992px) {
    .header-container {
        padding: 0 16px;
    }

    .nav-link {
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-top {
        height: 60px;
    }

    .logo {
        font-size: 24px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-btn {
        padding: 8px 10px;
        font-size: 12px;
        height: 32px;
    }

    .btn-text {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-toggle span {
        width: 20px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }

    .header-nav {
        position: fixed;
        top: 60px;
        width: 300px;
        height: calc(100vh - 60px);
        background: #fff;
        box-shadow: -2px 0 12px rgba(0,0,0,0.15);
        transition: right 0.3s ease, left 0.3s ease;
        overflow-y: auto;
        border-top: 1px solid #e5e5e5;
        z-index: 999;
    }

    [dir="rtl"] .header-nav {
        right: -100%;
    }

    [dir="ltr"] .header-nav {
        left: -100%;
    }

    [dir="rtl"] .header-nav.mobile-open {
        right: 0;
    }

    [dir="ltr"] .header-nav.mobile-open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
        height: auto;
    }

    .nav-item {
        flex: none;
        width: 100%;
    }

    .nav-link {
        padding: 16px 24px;
        line-height: normal;
        border-bottom: 1px solid #f5f5f5;
        display: block;
    }

    [dir="rtl"] .nav-link {
        text-align: right;
    }

    [dir="ltr"] .nav-link {
        text-align: left;
    }

    .nav-link:hover {
        background: #f9f9f9;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.3);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-image {
        height: 140px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .payment-methods-grid {
        gap: 12px;
    }

    .payment-method {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}