/* public/assets/css/style.css — GALLANT JEANS Phase 2 Pixel-Accurate Wholesale Styles */

:root {
    /* Exact Color Palette */
    --color-primary:    #0B2344;
    --color-secondary:  #102E53;
    --color-bg:         #FFFFFF;
    --color-card-bg:    #F7F8FA;
    --color-text:       #172033;
    --color-text-muted: #667085;
    --color-border:     #E5E9EF;
    --color-whatsapp:   #25D366;
    --color-whatsapp-hover: #20BA5A;
    --color-red-badge:  #EF4444;

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Subtle Realistic Shadows */
    --shadow-subtle: 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-card:   0 2px 6px rgba(16, 24, 40, 0.05);
    --shadow-hover:  0 6px 14px rgba(16, 24, 40, 0.08);
}

/* Base Reset & Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body.site-body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main.site-main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ========================================================
   1. TOP UTILITY BAR (Dark Navy #0B2344)
   ======================================================== */
.site-topbar {
    background-color: var(--color-primary);
    color: #CBD5E1;
    font-size: 0.8rem;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-lang-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-lang-item {
    color: #94A3B8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.topbar-lang-item:hover,
.topbar-lang-item.active {
    color: #FFFFFF;
    font-weight: 700;
}

.topbar-lang-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.topbar-contacts-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #E2E8F0;
    font-size: 0.8rem;
    font-weight: 500;
}

.topbar-contact-item:hover {
    color: #FFFFFF;
}

.topbar-wa svg { fill: var(--color-whatsapp); }
.topbar-tg svg { fill: #38BDF8; }
.topbar-wc svg { fill: #4ADE80; }

/* ========================================================
   2. MAIN HEADER (Dark Navy #0B2344)
   ======================================================== */
.site-header {
    background-color: var(--color-primary);
    color: #FFFFFF;
    height: 74px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(11, 35, 68, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* White Logo on the left */
.brand-logo {
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.logo-title {
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.logo-title .logo-sub {
    font-weight: 800;
    margin-left: 4px;
}

.logo-title sup {
    font-size: 0.55em;
    margin-left: 2px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}

.nav-link {
    color: #E2E8F0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
}

/* Navigation Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #FFFFFF;
    color: var(--color-text);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    display: none;
    z-index: 1050;
    border: 1px solid var(--color-border);
}

.has-dropdown:hover .nav-dropdown {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 8px 18px;
    font-size: 0.88rem;
    color: var(--color-text);
    font-weight: 500;
}

.dropdown-link:hover {
    background-color: var(--color-card-bg);
    color: var(--color-primary);
}

.dropdown-link.font-bold {
    font-weight: 700;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 6px 0;
}

/* Header Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    transition: background 0.2s;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

/* Specifically RED quantity badge on cart as requested */
.badge-cart-red {
    background-color: var(--color-red-badge);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

.badge-wishlist {
    background-color: #3B82F6;
}

/* Mobile Hamburger button */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
}

.mobile-toggle-btn span {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 35, 68, 0.98);
    backdrop-filter: blur(6px);
    z-index: 2000;
    padding: 20px 0;
    display: none;
}

.search-overlay.active {
    display: block;
}

.search-form-full {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.search-input-full {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
}

.search-submit-btn {
    background-color: #FFFFFF;
    color: var(--color-primary);
    height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
}

.search-close-btn {
    font-size: 1.8rem;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   3. HERO BANNER (Fashion photograph, 2 models, clean overlay)
   ======================================================== */
.hero-section {
    background-color: var(--color-primary);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: 50px 0 60px;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text-col {
    max-width: 540px;
}

.hero-headline {
    font-weight: 900;
    font-size: 3.4rem;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-headline sup {
    font-size: 0.45em;
    vertical-align: super;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.hero-desc {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 26px;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-hero-explore {
    background-color: #FFFFFF;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, background 0.15s;
}

.btn-hero-explore:hover {
    background-color: #F8FAFC;
    transform: translateY(-1px);
}

.btn-hero-whatsapp {
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: background 0.15s, transform 0.15s;
}

.btn-hero-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-1px);
}

.hero-image-col {
    display: flex;
    justify-content: center;
}

.hero-img-frame {
    position: relative;
    max-width: 480px;
    width: 100%;
    aspect-ratio: 4 / 3.8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.hero-denim-models {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================================
   4. BENEFITS SECTION (5 Horizontal Feature Items)
   ======================================================== */
.benefits-section {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.benefit-caption {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Shared Section Heading */
.home-section-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 22px;
    text-align: left;
}

/* ========================================================
   5. SHOP BY AGE (5 Compact White Cards)
   ======================================================== */
.shop-by-age-section {
    padding: 40px 0 20px;
}

.age-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.age-compact-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.age-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.age-img-box {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
    background-color: var(--color-card-bg);
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.age-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.age-card-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}

.age-arrow-icon {
    color: var(--color-primary);
    font-size: 1rem;
    transition: transform 0.2s;
}

.age-compact-card:hover .age-arrow-icon {
    transform: translateX(3px);
}

/* ========================================================
   6. POPULAR CATEGORIES (5 Product Image Cards)
   ======================================================== */
.popular-categories-section {
    padding: 30px 0 35px;
}

.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.pop-cat-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pop-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.pop-cat-img-wrap {
    height: 170px;
    background: var(--color-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pop-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pop-cat-card:hover .pop-cat-img {
    transform: scale(1.04);
}

.pop-cat-footer {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-text);
}

.pop-cat-arrow {
    color: var(--color-primary);
    transition: transform 0.2s;
}

.pop-cat-card:hover .pop-cat-arrow {
    transform: translateX(3px);
}

/* ========================================================
   7. WHOLESALE TERMS BANNER (Warehouse + Green Checkmarks)
   ======================================================== */
.wholesale-terms-section {
    padding: 20px 0 40px;
}

.wholesale-terms-card {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    padding: 36px 32px;
    color: #FFFFFF;
    box-shadow: var(--shadow-card);
}

.terms-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.terms-card-title {
    font-size: 1.55rem;
    font-weight: 800;
}

.terms-badges-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.term-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.term-check {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
}

/* ========================================================
   8. NEW ARRIVALS (Four-Column Desktop Grid)
   ======================================================== */
.new-arrivals-section {
    padding: 20px 0 60px;
}

.products-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #CBD5E1;
}

.card-media {
    position: relative;
    height: 260px;
    background-color: var(--color-card-bg);
    overflow: hidden;
}

.card-img-anchor {
    display: block;
    width: 100%;
    height: 100%;
}

.card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .card-product-img {
    transform: scale(1.03);
}

.badge-new-green {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    z-index: 2;
}

.btn-card-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    z-index: 2;
    transition: color 0.15s, transform 0.15s;
}

.btn-card-heart:hover,
.btn-card-heart.active {
    color: var(--color-red-badge);
}

.btn-card-heart.active svg {
    fill: var(--color-red-badge);
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2px;
}

.card-name a:hover {
    color: var(--color-secondary);
}

.card-age-range {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.card-wholesale-info {
    margin-top: auto;
    margin-bottom: 12px;
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-price-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.card-price-unit {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.card-pack-details {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.card-action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-add-pack {
    flex: 1;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background 0.15s;
}

.btn-add-pack:hover {
    background-color: var(--color-secondary);
}

.btn-wa-direct {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: #ECFDF5;
    color: var(--color-whatsapp);
    border: 1px solid #A7F3D0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.btn-wa-direct:hover {
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
}

/* ========================================================
   9. FOOTER (Dark Navy #0B2344)
   ======================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: #CBD5E1;
    padding-top: 50px;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 1.3fr 0.9fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-brand-logo {
    display: inline-block;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.5;
}

.footer-title {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.footer-links-list a {
    color: #CBD5E1;
}

.footer-links-list a:hover {
    color: #FFFFFF;
}

.footer-address-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #CBD5E1;
}

.footer-social-icons {
    display: flex;
    gap: 8px;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: background 0.15s;
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom-bar {
    background-color: #071932;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #94A3B8;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================================
   10. MOBILE SPECIFIC COMPOSITION & BREAKPOINTS
   ======================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #FFFFFF;
    z-index: 4001;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 35, 68, 0.6);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: 18px;
    background: var(--color-primary);
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    color: #FFFFFF;
}

.drawer-close-btn {
    font-size: 1.8rem;
    color: #FFFFFF;
    line-height: 1;
}

.mobile-drawer-lang {
    padding: 12px 18px;
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
}

.drawer-lang-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.drawer-lang-buttons {
    display: flex;
    gap: 6px;
}

.m-lang-btn {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text);
}

.m-lang-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.drawer-nav-list {
    list-style: none;
}

.drawer-nav-link,
.drawer-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid #F1F5F9;
}

.drawer-submenu {
    display: none;
    background: #F8FAFC;
    padding: 6px 0;
}

.drawer-submenu.open {
    display: block;
}

.drawer-submenu a {
    display: block;
    padding: 8px 28px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.drawer-footer {
    padding: 18px;
    border-top: 1px solid var(--color-border);
}

.drawer-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-whatsapp);
    color: #FFFFFF;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Fixed Bottom Navigation (iOS/Android Safe Area Support) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.m-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    gap: 2px;
    flex: 1;
    padding: 4px;
}

.m-bottom-item.active {
    color: var(--color-primary);
}

.m-whatsapp-highlight {
    color: var(--color-whatsapp);
}

.m-cart-icon-wrap {
    position: relative;
}

.m-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

/* ========================================================
   PRODUCT DETAIL & CATALOG FILTERS
   ======================================================== */
.page-header-banner {
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
    margin-bottom: 30px;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: #CBD5E1; }
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 6px;
}
.page-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Product Detail Page */
.product-page-wrapper {
    padding: 30px 0 60px;
}
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.product-gallery-col {
    position: sticky;
    top: 90px;
}
.main-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 4.2;
}
.product-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-whatsapp);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}
.product-gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb-btn {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: var(--color-card-bg);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(11, 35, 68, 0.2);
}
.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-trust-box {
    margin-top: 20px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 600;
}
.trust-item svg {
    color: var(--color-primary);
    min-width: 20px;
}

/* Product Info Col */
.product-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.product-sku {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.product-sku strong {
    color: var(--color-text);
    font-family: monospace;
}
.product-age-badge,
.product-gender-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    background: #EFF6FF;
    color: var(--color-secondary);
}
.product-gender-badge {
    background: #F1F5F9;
    color: #475569;
}
.product-page-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--color-text);
}
.wholesale-price-box {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 18px;
}
.price-main-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pack-price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
}
.pack-price-lbl {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.price-sub-calc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot-sep { color: #CBD5E1; }

.product-attribute-row {
    margin-bottom: 16px;
}
.attr-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    display: block;
    margin-bottom: 8px;
}
.attr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.attr-pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    color: var(--color-text);
}
.attr-pill.attr-color {
    border-left: 3px solid var(--color-primary);
}

.moq-alert-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.moq-alert-box strong {
    font-size: 0.88rem;
    color: #1E40AF;
    display: block;
    margin-bottom: 2px;
}
.moq-alert-box p {
    font-size: 0.82rem;
    color: #1E3A8A;
    line-height: 1.4;
}

/* Pack Recalculator Card */
.pack-calculator-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-subtle);
}
.calc-label {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.calc-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.pack-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    overflow: hidden;
}
.btn-pack-minus,
.btn-pack-plus {
    width: 38px;
    height: 38px;
    background: var(--color-card-bg);
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.btn-pack-minus:hover,
.btn-pack-plus:hover {
    background: #E2E8F0;
}
.pack-input-num {
    width: 60px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-family);
    color: var(--color-text);
    outline: none;
    background: #FFFFFF;
}
.pack-input-unit {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
.live-calc-breakdown {
    border-top: 1px dashed var(--color-border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.calc-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}
.calc-line strong {
    color: var(--color-text);
    font-size: 0.95rem;
}
.text-primary-blue {
    color: var(--color-primary) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.product-cta-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}
.btn-detail-add-cart {
    flex: 1;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}
.btn-detail-add-cart:hover {
    background: var(--color-secondary);
}
.btn-detail-order-whatsapp {
    flex: 1;
    background: var(--color-whatsapp);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}
.btn-detail-order-whatsapp:hover {
    background: var(--color-whatsapp-hover);
}

.product-specifications-box {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}
.specs-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.product-description-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table th,
.specs-table td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    font-size: 0.84rem;
}
.specs-table th {
    background: var(--color-card-bg);
    width: 35%;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
}

/* ========================================================
   CATALOG FILTERS BAR
   ======================================================== */
.catalog-filter-bar {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-subtle);
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 130px;
}
.filter-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.filter-select,
.filter-input {
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    font-size: 0.85rem;
    font-family: var(--font-family);
    color: var(--color-text);
    outline: none;
}
.filter-select:focus,
.filter-input:focus {
    border-color: var(--color-primary);
}
.filter-search-box {
    display: flex;
    position: relative;
}
.filter-search-box input {
    flex: 1;
    padding-right: 36px;
}
.btn-filter-search {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}
.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #DC2626;
    background: #FEE2E2;
    border-radius: var(--radius-sm);
}

/* ========================================================
   WHOLESALE SHOPPING CART & CHECKOUT FORM
   ======================================================== */
.cart-page-container {
    padding-bottom: 70px;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: flex-start;
}
.cart-table-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 24px;
}
.cart-table-header {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr 1fr 1fr 40px;
    padding: 12px 18px;
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cart-table-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr 1fr 1fr 40px;
    padding: 16px 18px;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}
.cart-table-row:last-child {
    border-bottom: none;
}
.cart-item-product {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-card-bg);
}
.text-mono { font-family: monospace; }
.btn-remove-item {
    color: #94A3B8;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-remove-item:hover { color: #DC2626; }

.cart-policy-notice {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #1E3A8A;
    margin-bottom: 24px;
}

.checkout-form-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
}
.form-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-text);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--color-text);
    outline: none;
    background: #FFFFFF;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
}
.btn-submit-order {
    width: 100%;
    background: var(--color-whatsapp);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: background 0.15s, transform 0.15s;
    margin-top: 10px;
}
.btn-submit-order:hover {
    background: var(--color-whatsapp-hover);
    transform: translateY(-1px);
}

.cart-summary-sticky {
    position: sticky;
    top: 90px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
}
.summary-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--color-text);
}
.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.summary-row strong {
    color: var(--color-text);
}
.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: 6px 0;
}
.summary-grand {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
}
.summary-grand strong {
    color: var(--color-primary);
    font-size: 1.35rem;
}
.summary-support-box {
    margin-top: 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.84rem;
}
.support-title {
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--color-primary);
}
.btn-summary-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-whatsapp);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}
.cart-page-empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--color-text-muted);
}
.cart-page-empty h2 {
    color: var(--color-text);
    font-size: 1.6rem;
}
.btn-browse-catalog {
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES (320px, 375px, 430px, 768px, 1024px, 1440px, 1920px)
   ======================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text-col {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-slider-arrow {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .age-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid-four {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    body.site-body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .site-topbar {
        display: none; /* Mobile hides utility bar for ultra-compact layout */
    }

    .site-header {
        height: 60px;
    }

    .hero-headline {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .benefit-item {
        padding: 10px 14px;
    }

    /* Two-column age categories on mobile */
    .age-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Vertical / compact popular categories on mobile */
    .popular-categories-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pop-cat-card {
        display: flex;
        align-items: center;
    }

    .pop-cat-img-wrap {
        width: 70px;
        height: 60px;
        min-width: 70px;
    }

    .pop-cat-footer {
        flex: 1;
        border-top: none;
        border-left: 1px solid var(--color-border);
    }

    .terms-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .terms-badges-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Two-column product cards on mobile matching reference */
    .products-grid-four {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-media {
        height: 180px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Product Detail & Cart Mobile Layout */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .product-gallery-col {
        position: static;
    }
    .product-page-title {
        font-size: 1.45rem;
    }
    .product-cta-buttons {
        flex-direction: column;
    }
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cart-table-header {
        display: none;
    }
    .cart-table-row {
        grid-template-columns: 1fr;
        gap: 12px;
        position: relative;
    }
    .cart-summary-sticky {
        position: static;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-explore,
    .btn-hero-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-headline {
        font-size: 1.85rem;
    }

    .card-media {
        height: 165px;
    }

    .card-body {
        padding: 10px;
    }

    .btn-add-cart-outline {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}

@media (max-width: 375px) {
    .logo-title {
        font-size: 1.25rem;
    }

    .card-media {
        height: 160px;
    }

    .card-name {
        font-size: 0.85rem;
    }

    .card-price-num {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    .logo-title {
        font-size: 1.1rem;
    }

    .card-media {
        height: 145px;
    }

    .products-grid-four {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .age-cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 1.65rem;
    }
}

/* Large Screens (1440px & 1920px Ultra-Wide Support) */
@media (min-width: 1440px) {
    :root {
        --container-width: 1360px;
    }

    .hero-headline {
        font-size: 3.8rem;
    }

    .hero-denim-models {
        max-height: 520px;
    }
}

@media (min-width: 1920px) {
    :root {
        --container-width: 1440px;
    }

    .hero-headline {
        font-size: 4.2rem;
    }

    .hero-denim-models {
        max-height: 560px;
    }
}

/* ========================================================
   RTL SUPPORT (Arabic) — applied when <html dir="rtl">
   ======================================================== */
html[dir="rtl"] {
    --font-family: 'Cairo', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}
html[dir="rtl"] body { text-align: right; }

/* Brand logo & prices / SKUs / phone numbers stay LTR */
html[dir="rtl"] .logo-title,
html[dir="rtl"] [class*="price"],
html[dir="rtl"] [class*="sku"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] { text-align: right; }

html[dir="rtl"] .logo-title .logo-sub { margin-left: 4px; margin-right: 0; }

html[dir="rtl"] .nav-dropdown { left: auto; right: 0; }
html[dir="rtl"] .header-badge { right: auto; left: -4px; }
html[dir="rtl"] .m-cart-badge { right: auto; left: -8px; }

html[dir="rtl"] .home-section-title,
html[dir="rtl"] .specs-table th { text-align: right; }

html[dir="rtl"] .age-arrow-icon,
html[dir="rtl"] .pop-cat-arrow { transform: scaleX(-1); }
html[dir="rtl"] .age-compact-card:hover .age-arrow-icon,
html[dir="rtl"] .pop-cat-card:hover .pop-cat-arrow { transform: scaleX(-1) translateX(3px); }

html[dir="rtl"] .badge-new-green { left: auto; right: 10px; }
html[dir="rtl"] .btn-card-heart { right: auto; left: 10px; }
html[dir="rtl"] .detail-badge { left: auto; right: 14px; }

html[dir="rtl"] .attr-pill.attr-color {
    border-left: none;
    border-right: 3px solid var(--color-primary);
}

html[dir="rtl"] .filter-search-box input { padding-right: 12px; padding-left: 36px; }
html[dir="rtl"] .btn-filter-search { right: auto; left: 0; }

/* Mobile drawer slides in from the right */
html[dir="rtl"] .mobile-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}
html[dir="rtl"] .mobile-drawer.active { transform: translateX(0); }

@media (max-width: 768px) {
    html[dir="rtl"] .pop-cat-footer {
        border-left: none;
        border-right: 1px solid var(--color-border);
    }
}

/* ========================================================
   MOBILE / TABLET RESPONSIVE FIXES
   ======================================================== */
img, video, iframe, svg { max-width: 100%; }
.filter-select, .filter-input, .filter-search-box input { min-width: 0; width: 100%; }
.filter-search-box { width: 100%; }

@media (max-width: 1024px) {
    .header-container { gap: 14px; }
    .nav-list { gap: 4px; }
}

@media (max-width: 768px) {
    /* Language bar stays visible on mobile (contacts hidden) */
    .site-topbar {
        display: block;
        height: auto;
        padding: 6px 0;
        font-size: 0.78rem;
    }
    .topbar-container { justify-content: center; }
    .topbar-contacts-group { display: none; }
    .topbar-lang-group {
        gap: 4px;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .topbar-lang-group::-webkit-scrollbar { display: none; }
    .topbar-lang-sep { display: none; }
    .topbar-lang-item {
        padding: 4px 9px;
        border-radius: var(--radius-full);
        line-height: 1.2;
        flex-shrink: 0;
    }
    .topbar-lang-item.active { background: rgba(255, 255, 255, 0.16); }

    /* Compact header: hamburger | logo | icons */
    .header-container { gap: 10px; }
    .mobile-toggle-btn { flex-shrink: 0; width: 26px; }
    .brand-logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .logo-title { font-size: 1.2rem; letter-spacing: 0.03em; white-space: nowrap; }
    .header-actions { gap: 6px; flex-shrink: 0; }
    .header-icon-btn { width: 34px; height: 34px; }
    .header-icon-btn svg { width: 18px; height: 18px; }
    .header-badge { width: 16px; height: 16px; font-size: 0.6rem; top: -3px; right: -3px; }

    /* Filters stack nicely */
    .catalog-filter-bar { padding: 14px; }
    .filter-form { gap: 10px; }
    .filter-group { flex: 1 1 calc(50% - 5px); min-width: 0; }
    .filter-group:has(.filter-search-box) { flex-basis: 100%; }
    .btn-clear-filters { width: 100%; justify-content: center; }

    /* Tables & long content never push the page wider */
    table { max-width: 100%; }
    .specs-table, .cart-table { display: block; overflow-x: auto; }
    h1, h2, h3, .product-page-title { overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
    .logo-title { font-size: 1.05rem; letter-spacing: 0.02em; }
    .header-actions { gap: 4px; }
    .header-icon-btn { width: 32px; height: 32px; }
    .topbar-lang-item { padding: 4px 7px; font-size: 0.74rem; }
}

@media (max-width: 340px) {
    .logo-title sup { display: none; }
    .wishlist-icon-btn { display: none; }
    .filter-group { flex-basis: 100%; }
}

html[dir="rtl"] .header-badge { right: auto; left: -3px; }

/* Breadcrumbs: wrap and truncate long product names */
.breadcrumbs { flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.breadcrumbs > span:last-child {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================================
   MISSING COMPONENT STYLES (drawer, modals, toast, inner pages)
   Mobile-first; RTL-safe via logical properties.
   ======================================================== */

/* ---- Cart drawer ---- */
.cart-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(11, 35, 68, 0.45);
    z-index: 4000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.cart-drawer-backdrop.active { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
    width: min(400px, 100vw);
    background: #FFFFFF;
    z-index: 4001;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
}
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); box-shadow: 6px 0 24px rgba(0, 0, 0, 0.15); }
.cart-drawer.active, html[dir="rtl"] .cart-drawer.active { transform: translateX(0); }
.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    background: var(--color-primary); color: #FFFFFF;
}
.drawer-title-wrap { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.drawer-title { font-size: 1.05rem; font-weight: 800; }
.drawer-items-count { font-size: 0.8rem; color: #CBD5E1; }
.btn-drawer-close { color: #FFFFFF; font-size: 1.8rem; line-height: 1; padding: 0 4px; }
.cart-drawer-policy {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 10px 18px;
    background: #EFF6FF; color: #1E40AF;
    font-size: 0.78rem; line-height: 1.4;
}
.cart-drawer-policy svg { flex-shrink: 0; margin-top: 2px; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer-item {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.drawer-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-card-bg); }
.drawer-item-info { min-width: 0; }
.drawer-item-title { font-size: 0.85rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.drawer-item-sku, .drawer-item-meta { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 2px; }
.drawer-item-counter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn-qty-minus, .btn-qty-plus {
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    border: 1px solid var(--color-border); background: #FFFFFF; font-weight: 700;
}
.qty-val { font-size: 0.8rem; font-weight: 700; min-width: 52px; text-align: center; }
.drawer-item-subtotal { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.drawer-subtotal-val { font-weight: 800; font-size: 0.9rem; color: var(--color-primary); direction: ltr; }
.cart-drawer-empty {
    flex: 1; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 10px; padding: 30px 24px; color: var(--color-text-muted);
}
.cart-drawer-empty h4 { color: var(--color-text); font-size: 1rem; }
.cart-drawer-empty p { font-size: 0.85rem; line-height: 1.5; }
.cart-drawer-footer { border-top: 1px solid var(--color-border); padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
.cart-drawer-summary { margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; padding: 4px 0; }
.summary-line.grand-total { font-size: 1rem; font-weight: 800; color: var(--color-primary); }
.drawer-action-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn-drawer-checkout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--color-primary); color: #FFFFFF;
    padding: 13px; border-radius: var(--radius-sm); font-weight: 800;
}
.btn-drawer-viewcart {
    display: block; text-align: center; padding: 11px;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.88rem; color: var(--color-text);
}
html[dir="rtl"] .btn-drawer-checkout svg { transform: scaleX(-1); }

/* ---- Modals ---- */
.site-modal {
    position: fixed; inset: 0; z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}
.site-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 35, 68, 0.55); }
.site-modal .modal-dialog {
    position: relative;
    width: 100%; max-width: 420px;
    max-height: calc(100vh - 32px); overflow-y: auto;
    background: #FFFFFF; border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.site-modal .modal-dialog-lg { max-width: 860px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--color-border);
}
.modal-title { font-size: 1.05rem; font-weight: 800; }
.modal-close-btn { font-size: 1.7rem; line-height: 1; color: var(--color-text-muted); padding: 0 4px; }
.modal-dialog-lg > .modal-close-btn { position: absolute; top: 10px; inset-inline-end: 12px; z-index: 2; }
.modal-body { padding: 22px 20px; }
.modal-body p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 12px; }
.wechat-icon-box { display: flex; justify-content: center; margin-bottom: 12px; }
.wechat-id-box {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
    background: var(--color-card-bg); border: 1px dashed var(--color-border);
    border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px;
}
.wechat-id { font-weight: 800; font-size: 1.05rem; direction: ltr; }
.btn-copy-id { background: #07C160; color: #FFFFFF; font-weight: 700; font-size: 0.8rem; padding: 7px 14px; border-radius: var(--radius-full); }
.wechat-note { color: var(--color-text-muted); font-size: 0.78rem; }
.quick-view-content img { max-width: 100%; }
.btn-card-add {
    background: var(--color-primary); color: #FFFFFF; font-weight: 700;
    padding: 10px 16px; border-radius: var(--radius-sm); font-size: 0.85rem;
}
.btn-promo-action {
    display: inline-flex; align-items: center;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.85rem; color: var(--color-text);
}

/* ---- Toasts ---- */
.toast-container {
    position: fixed; z-index: 6000;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px;
    display: flex; flex-direction: column; gap: 8px;
    max-width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
.site-toast {
    pointer-events: auto;
    background: var(--color-primary); color: #FFFFFF;
    padding: 12px 16px; border-radius: var(--radius-md);
    font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-inline-start: 4px solid #3B82F6;
}
.toast-success { border-inline-start-color: var(--color-whatsapp); }
.toast-error, .toast-danger { border-inline-start-color: var(--color-red-badge); }
.toast-warning { border-inline-start-color: #F59E0B; }

/* ---- Shared page pieces ---- */
.section-header { margin-bottom: 20px; }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--color-text); }
.related-products-section { margin-top: 50px; }
.specs-table-wrap { overflow-x: auto; }
.products-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.product-item-wrap { min-width: 0; }
.catalog-page-container, .collection-content-container,
.about-page-container, .contact-page-container, .wholesale-info-container { padding-top: 30px; padding-bottom: 70px; }
.catalog-meta-info { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; }
.catalog-empty-state {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 12px; padding: 60px 20px; color: var(--color-text-muted);
}
.catalog-empty-state h3 { color: var(--color-text); }
.btn-reset-catalog, .btn-browse-catalog {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-primary); color: #FFFFFF;
    padding: 11px 22px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.88rem;
}
.filter-reset-wrap { display: flex; align-items: flex-end; }
.pagination-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px;
}
.page-link {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.85rem; color: var(--color-text); background: #FFFFFF;
}
.page-link.active, .page-link:hover { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }

/* ---- Collection hero ---- */
.collection-hero-banner { background-size: cover; background-position: center; color: #FFFFFF; padding: 40px 0 46px; }
.breadcrumbs-light, .breadcrumbs-light a { color: #CBD5E1; }
.collection-age-tag {
    display: inline-block; margin: 14px 0 10px;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700;
}
.collection-hero-title { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.15; }
.collection-hero-desc { max-width: 680px; margin-top: 10px; color: #CBD5E1; font-size: 0.95rem; line-height: 1.6; }
.age-pills-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---- About ---- */
.about-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-heading { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.about-text-col p { color: var(--color-text-muted); line-height: 1.75; margin-bottom: 14px; }
.about-text-col .lead-text { color: var(--color-text); font-size: 1.05rem; }
.about-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stat-box {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--color-card-bg); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 16px 12px; text-align: center;
}
.stat-number { font-size: 1.6rem; font-weight: 900; color: var(--color-primary); direction: ltr; }
.stat-lbl { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); }
.about-media-col { position: relative; }
.about-img-main { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.about-floating-card {
    position: absolute; bottom: -20px; inset-inline-start: -20px;
    display: flex; gap: 12px; align-items: center;
    background: #FFFFFF; border-radius: var(--radius-md);
    padding: 14px 18px; box-shadow: var(--shadow-hover); max-width: 320px;
}
.about-floating-card strong { display: block; font-size: 0.9rem; }
.about-floating-card small { color: var(--color-text-muted); font-size: 0.78rem; }
.about-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.about-pillar-card {
    background: #FFFFFF; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-card);
}
.about-pillar-card h3 { font-size: 1.05rem; font-weight: 800; margin: 14px 0 8px; }
.about-pillar-card p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; }
.pillar-icon-box, .rule-card-icon, .contact-icon-box {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md); background: #EFF6FF; color: var(--color-primary);
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-info-panel, .contact-form-panel {
    background: #FFFFFF; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card);
}
.contact-panel-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.contact-item-box { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.contact-item-box:last-child { border-bottom: none; }
.contact-item-box > div:last-child { min-width: 0; }
.contact-item-box strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.contact-item-box p { font-size: 0.88rem; color: var(--color-text-muted); overflow-wrap: anywhere; }
.contact-item-box a { color: var(--color-primary); font-weight: 600; }
.whatsapp-box { background: #DCFCE7; color: #16A34A; }
.telegram-box { background: #E0F2FE; color: #0284C7; }
.wechat-box { background: #DCFCE7; color: #07C160; }
.email-box { background: #FEF3C7; color: #D97706; }
.btn-submit-contact {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 8px; padding: 14px 24px;
    background: var(--color-primary); color: #FFFFFF;
    border-radius: var(--radius-sm); font-weight: 800; font-size: 0.95rem;
}
html[dir="rtl"] .btn-arrow, html[dir="rtl"] .btn-arrow-icon { display: inline-block; transform: scaleX(-1); }
.form-status-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; background: #DCFCE7; color: #166534; }

/* ---- Wholesale ---- */
.wholesale-rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 40px; }
.wholesale-rule-card {
    background: #FFFFFF; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card);
}
.rule-card-title { font-size: 1rem; font-weight: 800; margin: 14px 0 8px; line-height: 1.35; }
.rule-card-text { font-size: 0.87rem; color: var(--color-text-muted); line-height: 1.6; }
.wholesale-steps-card {
    background: var(--color-card-bg); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 32px 26px;
}
.steps-heading { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; text-align: center; margin-bottom: 26px; }
.steps-row { display: flex; align-items: flex-start; gap: 12px; }
.step-col { flex: 1; min-width: 0; text-align: center; }
.step-num {
    width: 46px; height: 46px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary); color: #FFFFFF; border-radius: var(--radius-full); font-weight: 800;
}
.step-col h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 6px; }
.step-col p { font-size: 0.83rem; color: var(--color-text-muted); line-height: 1.55; }
.step-arrow { font-size: 1.4rem; color: #94A3B8; padding-top: 10px; }
html[dir="rtl"] .step-arrow { transform: scaleX(-1); }
.wholesale-cta-box { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn-wholesale-cta, .btn-supply-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--color-whatsapp); color: #FFFFFF;
    padding: 13px 24px; border-radius: var(--radius-full); font-weight: 800;
}
.btn-wholesale-browse {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: var(--radius-full);
    border: 1px solid var(--color-primary); color: var(--color-primary); font-weight: 800;
}
html[dir="rtl"] .wholesale-shipping-section .steps-heading { text-align: right !important; }

/* ---- Global supply banner ---- */
.global-supply-section { padding: 50px 0; }
.global-supply-banner { background-size: cover; background-position: center; border-radius: var(--radius-lg); color: #FFFFFF; padding: 44px 28px; text-align: center; }
.supply-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; color: #93C5FD; margin-bottom: 10px; }
.supply-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.supply-sub { color: #CBD5E1; margin-bottom: 22px; }
.market-name { font-weight: 800; }
.market-desc { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---- Footer / misc ---- */
.footer-col { min-width: 0; }
.footer-copyright { overflow-wrap: anywhere; }
.text-xs { font-size: 0.72rem; }

/* ---- Responsive breakpoints for the above ---- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wholesale-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-hero-grid { gap: 32px; }
}
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .about-hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-media-col { order: -1; }
    .about-floating-card { position: static; margin-top: 12px; max-width: none; box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
    .about-pillars-grid { grid-template-columns: 1fr; margin-top: 36px; gap: 14px; }
    .contact-info-panel, .contact-form-panel { padding: 20px 16px; }
    .wholesale-steps-card { padding: 24px 16px; }
    .steps-row { flex-direction: column; align-items: stretch; gap: 18px; }
    .step-col { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; text-align: start; }
    .step-num { margin: 0; grid-row: span 2; }
    .step-arrow { display: none; }
    .wholesale-cta-box > a { width: 100%; }
    .catalog-page-container, .collection-content-container,
    .about-page-container, .contact-page-container, .wholesale-info-container { padding-top: 20px; padding-bottom: 40px; }
    .site-modal .modal-dialog-lg .quick-view-content > div { grid-template-columns: 1fr !important; padding: 18px !important; }
    .quick-view-content [style*="display: flex"] { flex-wrap: wrap; }
    .toast-container { inset-inline: 16px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); max-width: none; }
}
@media (max-width: 480px) {
    .wholesale-rules-grid { grid-template-columns: 1fr; }
    .about-stats-row { gap: 8px; }
    .stat-box { padding: 12px 6px; }
    .stat-number { font-size: 1.3rem; }
}
@media (max-width: 340px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* Arabic: keep latin brand headline (e.g. "GALLANT JEANS®") in natural order */
html[dir="rtl"] .hero-headline,
html[dir="rtl"] .page-title,
html[dir="rtl"] .collection-hero-title { unicode-bidi: plaintext; }

.cart-drawer-items:empty { display: none; }

/* ---- Product color selector ---- */
.product-color-row .attr-label {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
}
.selected-color-text { font-size: 0.8rem; font-weight: 500; color: var(--color-text-muted); }
.selected-color-text strong { color: var(--color-text); font-weight: 800; }
.color-option {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 8px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
html[dir="rtl"] .color-option { padding: 7px 8px 7px 12px; }
.color-option:hover { border-color: #94A3B8; }
.color-option.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
    background: #F1F5F9;
}
.color-swatch {
    width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0 2px #FFFFFF;
}
.color-option:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.gallery-thumb-btn { flex-shrink: 0; }
@media (max-width: 400px) {
    .color-option { padding: 6px 10px 6px 6px; font-size: 0.78rem; gap: 6px; }
    .color-swatch { width: 18px; height: 18px; }
    .gallery-thumb-btn { width: 62px; height: 62px; min-width: 62px; }
}

/* Cart line color label */
.cart-item-color {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); margin-top: 3px;
}
.cart-item-color .color-swatch { width: 12px; height: 12px; box-shadow: none; }

/* Product page: columns may shrink below their content (long thumbnail strips) */
.product-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-gallery-col, .product-info-col { min-width: 0; }
@media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
}
/* SKU: label follows page direction, the code itself stays LTR */
html[dir="rtl"] .product-sku { direction: rtl; unicode-bidi: normal; }
html[dir="rtl"] .product-sku strong { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---- Icon tiles (categories + shop by age) ---- */
.pop-cat-icon-wrap {
    background: linear-gradient(135deg, #EEF3FA 0%, #F7F8FA 100%);
    color: var(--color-primary);
}
.pop-cat-icon { transition: transform 0.25s ease; }
.pop-cat-card:hover .pop-cat-icon { transform: scale(1.08); }
.popular-categories-grid .pop-cat-card:nth-child(2) .pop-cat-icon-wrap { background: linear-gradient(135deg, #EEF6F1 0%, #F7F8FA 100%); color: #1F5F46; }
.popular-categories-grid .pop-cat-card:nth-child(3) .pop-cat-icon-wrap { background: linear-gradient(135deg, #FBF3EA 0%, #F7F8FA 100%); color: #8A4B1C; }
.popular-categories-grid .pop-cat-card:nth-child(4) .pop-cat-icon-wrap { background: linear-gradient(135deg, #F3F0FA 0%, #F7F8FA 100%); color: #4B3A86; }
.popular-categories-grid .pop-cat-card:nth-child(5) .pop-cat-icon-wrap { background: linear-gradient(135deg, #FDF0F2 0%, #F7F8FA 100%); color: #8E2A44; }

.age-icon-box {
    display: flex; align-items: center; justify-content: center;
    background: #EEF3FA;
    color: var(--color-primary);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(11, 35, 68, 0.06);
}
.age-icon { transition: transform 0.25s ease; }
.age-compact-card:hover .age-icon { transform: scale(1.1) rotate(-4deg); }
.age-cards-grid .age-compact-card:nth-child(1) .age-icon-box { background: #FDF3E7; color: #9A5B13; }
.age-cards-grid .age-compact-card:nth-child(2) .age-icon-box { background: #EAF6EE; color: #1F6B45; }
.age-cards-grid .age-compact-card:nth-child(3) .age-icon-box { background: #EAF1FB; color: #1D4F91; }
.age-cards-grid .age-compact-card:nth-child(4) .age-icon-box { background: #F1EDFA; color: #4B3A86; }
.age-cards-grid .age-compact-card:nth-child(5) .age-icon-box { background: #E9EEF5; color: var(--color-primary); }

@media (max-width: 768px) {
    .pop-cat-icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .pop-cat-icon, .age-icon { transition: none; }
}
.pop-cat-icon-wrap { height: 128px; }
@media (max-width: 768px) {
    .pop-cat-icon-wrap { height: 60px; }
    .age-cards-grid .age-compact-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ========================================================
   HERO V2 — premium e-commerce hero with live product showcase
   ======================================================== */
.hero-v2 {
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(37, 211, 102, 0.10), transparent 60%),
        linear-gradient(160deg, #0B2344 0%, #0A1B36 55%, #08152B 100%);
    padding: 64px 0 72px;
}
.hero-v2::before {
    /* subtle grid texture */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.hero-v2-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

/* Copy */
.hero-v2-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: #DBEAFE;
}
.hero-v2-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero-v2-title {
    margin: 20px 0 16px;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.hero-v2-lead { color: #B6C3D6; font-size: 1.05rem; font-weight: 500; margin-bottom: 30px; }

.hero-v2-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-v2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 54px; padding: 0 26px;
    border-radius: var(--radius-full);
    font-weight: 800; font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero-v2-btn.primary { background: #FFFFFF; color: var(--color-primary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.hero-v2-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
.hero-v2-btn.whatsapp { background: rgba(37, 211, 102, 0.12); color: #FFFFFF; border: 1px solid rgba(37, 211, 102, 0.55); }
.hero-v2-btn.whatsapp svg { color: var(--color-whatsapp); }
.hero-v2-btn.whatsapp:hover { background: var(--color-whatsapp); border-color: var(--color-whatsapp); }
.hero-v2-btn.whatsapp:hover svg { color: #FFFFFF; }

.hero-v2-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
}
.hero-v2-stats > div { padding-inline-end: 16px; min-width: 0; }
.hero-v2-stats > div + div { padding-inline-start: 16px; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.hero-v2-stats dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #8EA0BA; margin-bottom: 6px; }
.hero-v2-stats dd { font-size: 0.98rem; font-weight: 800; color: #FFFFFF; line-height: 1.3; }

/* Showcase */
.hero-v2-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 16px;
    min-height: 480px;
}
.hero-card {
    position: relative; display: block; overflow: hidden;
    border-radius: 20px;
    background: #F4F1EC;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    isolation: isolate;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.hero-card:hover img { transform: scale(1.04); }
.hero-card-main { min-height: 480px; }
.hero-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.hero-card-small { min-height: 250px; }
.hero-card-small img { object-fit: contain; padding: 14px; background: #F7F5F1; }

.hero-chip {
    position: absolute; z-index: 2;
    padding: 6px 12px; border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92); color: var(--color-primary);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.hero-chip-top { top: 14px; inset-inline-start: 14px; }

.hero-card-info {
    position: absolute; z-index: 2; inset-inline: 12px; bottom: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.hero-card-info.compact { padding: 10px 12px; }
.hero-card-text { display: flex; flex-direction: column; min-width: 0; }
.hero-card-sku { font-size: 0.68rem; font-weight: 700; color: var(--color-text-muted); letter-spacing: 0.06em; direction: ltr; unicode-bidi: isolate; }
.hero-card-name { font-size: 0.92rem; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card-info.compact .hero-card-name { font-size: 0.82rem; }
.hero-card-meta { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; unicode-bidi: isolate; }
.hero-card-go {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary); color: #FFFFFF; font-weight: 800;
    transition: transform 0.2s;
}
.hero-card:hover .hero-card-go { transform: translateX(3px); }
html[dir="rtl"] .hero-card-go { transform: scaleX(-1); }
html[dir="rtl"] .hero-card:hover .hero-card-go { transform: scaleX(-1) translateX(3px); }

.hero-palette-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.hero-palette-card:hover { background: rgba(255, 255, 255, 0.1); }
.hero-palette-count { font-size: 1.15rem; font-weight: 900; }
.hero-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-swatch {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hero-palette-foot { font-size: 0.75rem; font-weight: 600; color: #B6C3D6; }

/* Tablet */
@media (max-width: 1024px) {
    .hero-v2 { padding: 48px 0 56px; }
    .hero-v2-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero-v2-copy { text-align: center; }
    .hero-v2-ctas { justify-content: center; }
    .hero-v2-stats { text-align: start; }
    .hero-v2-showcase { min-height: 0; max-width: 760px; margin: 0 auto; width: 100%; }
    .hero-card-main { min-height: 0; aspect-ratio: 4 / 5; }
}

/* Mobile */
@media (max-width: 640px) {
    .hero-v2 { padding: 32px 0 40px; }
    .hero-v2-title { margin: 16px 0 12px; }
    .hero-v2-lead { font-size: 0.95rem; margin-bottom: 22px; }
    .hero-v2-ctas { flex-direction: column; margin-bottom: 26px; }
    .hero-v2-btn { width: 100%; height: 52px; }
    .hero-v2-stats { padding-top: 16px; }
    .hero-v2-stats > div { padding-inline-end: 8px; }
    .hero-v2-stats > div + div { padding-inline-start: 10px; }
    .hero-v2-stats dt { font-size: 0.62rem; letter-spacing: 0.04em; }
    .hero-v2-stats dd { font-size: 0.8rem; }
    .hero-v2-showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .hero-card-main { grid-column: 1 / -1; aspect-ratio: 1 / 1; border-radius: 16px; }
    .hero-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 10px; }
    .hero-card-small { min-height: 0; aspect-ratio: 1 / 1; border-radius: 16px; }
    .hero-palette-card { border-radius: 16px; padding: 14px; gap: 10px; justify-content: center; }
    .hero-palette-count { font-size: 1rem; }
    .hero-swatch { width: 20px; height: 20px; }
    .hero-card-info { inset-inline: 8px; bottom: 8px; padding: 9px 10px; border-radius: 12px; }
    .hero-card-name { font-size: 0.82rem; }
    .hero-card-go { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-card img, .hero-v2-btn, .hero-card-go { transition: none; }
}

@media (min-width: 1025px) {
    .hero-v2-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; }
    .hero-v2-title { font-size: clamp(2.4rem, 3.6vw, 3.25rem); }
}
