/* ═══════════════════════════════════════════
   FLAVOR THEME - PIXEL-PERFECT HOMEPAGE CSS
   Matches: jadefashion1to1.com layout
   ═══════════════════════════════════════════ */

:root {
    --black: #000000;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray-900: #222222;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-400: #aaaaaa;
    --gray-300: #cccccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --accent: #e53935;
    --success: #43a047;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-logo: 'Oswald', 'DM Sans', sans-serif;

    --container: 1200px;
    --gap: 20px;

    --transition: 0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ═══════════════════════════════════════════
   1. ANNOUNCEMENT BAR
   - Black bar, white text, centered
   - Language selector on right
   ═══════════════════════════════════════════ */
.announcement-bar {
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0 30px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.announcement-bar .announce-text {
    text-align: center;
    flex: 1;
}

.announcement-bar .announce-text a {
    color: var(--white);
    text-decoration: underline;
}

.announcement-bar .announce-right {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-bar .announce-right select {
    background: transparent;
    color: var(--white);
    font-size: 11px;
    border: none;
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   2. HEADER
   - Logo (stacked text) left
   - Nav center
   - Icons right
   ═══════════════════════════════════════════ */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-bottom: 1px solid var(--gray-200);
}

/* Logo - Stacked style like "JADE FASHI ON" */
.site-logo a {
    display: block;
    font-family: var(--font-logo);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

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

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav > ul > li > a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    padding: 8px 0;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after {
    width: 100%;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--dark);
}

.header-icon-btn:hover { color: var(--black); }

.header-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.flavor-cart-count {
    position: absolute;
    top: -3px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    padding: 4px 0;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    min-width: 22px;
    height: 2px;
    min-height: 2px;
    background: var(--black);
    transition: var(--transition);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    border-radius: 1px;
}

/* ═══════════════════════════════════════════
   3. HERO SECTION
   - Full-width background image
   - Text right-center area
   - Two buttons: black filled + outlined
   ═══════════════════════════════════════════ */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-section .swiper {
    width: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center top;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 600px;
    padding: 40px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 15px;
    margin-bottom: 28px;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--transition);
    min-width: 150px;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--black);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-dark:hover {
    background: transparent;
    color: var(--black);
}

/* Hero pagination dots */
.hero-section .swiper-pagination {
    bottom: 20px !important;
}

.hero-section .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--white);
    opacity: 0.5;
}

.hero-section .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   4. TOP CATEGORIES
   - Centered title + subtitle
   - 5 circular images with labels
   ═══════════════════════════════════════════ */
.top-categories-section {
    padding: 55px 0 50px;
    text-align: center;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.section-subheading {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 35px;
    font-weight: 400;
}

.categories-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition);
}

.cat-circle:hover {
    transform: translateY(-4px);
}

.cat-circle .circle-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition);
    background: var(--gray-100);
}

.cat-circle:hover .circle-img {
    border-color: var(--black);
}

.cat-circle .circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-circle .circle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

/* ═══════════════════════════════════════════
   5. BRAND LOGOS SECTION
   - Title centered
   - Row of logos, grayscale with hover color
   - Two separate sections (Shoes + Clothing)
   ═══════════════════════════════════════════ */
.brand-logos-section {
    padding: 35px 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.brand-logos-section + .brand-logos-section {
    border-top: none;
}

.brand-logos-section .section-heading {
    font-size: 22px;
    margin-bottom: 4px;
}

.brand-logos-section .section-subheading {
    margin-bottom: 25px;
    font-size: 12px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100px;
    max-height: 60px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all var(--transition);
}

.logo-item:hover {
    opacity: 1;
    filter: none;
}

.logo-item img {
    max-height: 55px;
    max-width: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ═══════════════════════════════════════════
   6. PRODUCT GRID SECTION
   - Title + subtitle centered
   - 4-column grid, 2 rows = 8 products
   - Product card: image box + name + price
   - "DISCOVER MORE" button centered below
   ═══════════════════════════════════════════ */
.product-section {
    padding: 50px 0 10px;
}

.product-section .section-heading {
    text-align: center;
    margin-bottom: 4px;
}

.product-section .section-subheading {
    text-align: center;
    margin-bottom: 35px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}

/* Product Card */
.product-card {
    position: relative;
}

.product-card .card-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

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

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

/* Hover quick actions */
.product-card .card-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: all var(--transition);
}

.product-card:hover .card-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.action-btn {
    width: 34px;
    height: 34px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--black);
    color: var(--white);
}

.action-btn svg {
    width: 15px;
    height: 15px;
}

.product-card .card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    text-transform: uppercase;
}

.product-card .card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

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

.product-card .card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

.product-card .card-price del {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 12px;
    margin-right: 6px;
}

.product-card .card-price ins {
    text-decoration: none;
    color: var(--accent);
}

/* Discover More button */
.section-cta {
    text-align: center;
    padding: 10px 0 40px;
}

/* ═══════════════════════════════════════════
   7. FEATURES BAR
   - 4 columns with icon + title + desc
   - Top border, gray/light bg
   ═══════════════════════════════════════════ */
.features-bar {
    padding: 35px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.feature-box .feature-icon {
    margin-bottom: 4px;
}

.feature-box .feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.feature-box .feature-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--black);
}

.feature-box .feature-desc {
    font-size: 11px;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   8. FOOTER
   - Black background
   - 4 columns: Keep in Touch, Info, Customer Service, Newsletter
   - Bottom bar with copyright + payment icons
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr 1.5fr;
    gap: 40px;
    padding-bottom: 35px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer-col p,
.footer-col .footer-desc {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s ease;
    font-size: 13px;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.footer-social a svg {
    width: 14px;
    height: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 12px;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--white);
}

/* Customer service info block */
.footer-contact-info {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-contact-info strong {
    color: var(--white);
    font-weight: 600;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 11px 14px;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--white);
    font-size: 12px;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form button {
    padding: 11px 22px;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--white);
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--gray-200);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--gray-500);
    margin: 0;
}

.footer-payments {
    display: flex;
    gap: 6px;
    align-items: center;
}

.footer-payments svg {
    height: 22px;
    width: auto;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   SIDE CART DRAWER
   ═══════════════════════════════════════════ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.side-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.side-cart.active { right: 0; }

.side-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--gray-200);
}
.side-cart-header h3 {
    font-size: 16px;
    font-weight: 700;
}
.side-cart-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-500);
}
.side-cart-close:hover { color: var(--black); }

.shipping-progress {
    padding: 12px 22px;
    background: var(--gray-100);
    text-align: center;
}
.shipping-progress p {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}
.shipping-progress strong { color: var(--accent); }

.progress-bar {
    width: 100%;
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #66bb6a, #43a047);
    border-radius: 3px;
    transition: width var(--transition);
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px;
}

.side-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}
.side-cart-item:last-child { border-bottom: none; }

.side-cart-item .item-image {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    background: var(--gray-100);
    overflow: hidden;
}
.side-cart-item .item-image img { width: 100%; height: 100%; object-fit: cover; }

.side-cart-item .item-details { flex: 1; min-width: 0; }
.side-cart-item .item-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.side-cart-item .item-variant { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.side-cart-item .item-price { font-size: 13px; font-weight: 700; margin-bottom: 8px; }

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    width: fit-content;
}
.qty-btn {
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-700);
}
.qty-btn:hover { background: var(--gray-100); }
.qty-value {
    width: 34px;
    height: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    line-height: 28px;
}

.item-remove { color: var(--gray-300); padding-top: 2px; }
.item-remove:hover { color: var(--accent); }
.item-remove svg { width: 16px; height: 16px; }

.side-cart-actions {
    display: flex;
    gap: 10px;
    padding: 10px 22px;
    border-top: 1px solid var(--gray-200);
}
.cart-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-700);
}
.cart-action-btn:hover { border-color: var(--black); color: var(--black); }
.cart-action-btn svg { width: 16px; height: 16px; }

.side-cart-footer {
    padding: 18px 22px;
    border-top: 1px solid var(--gray-200);
}
.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.cart-total-row .label { font-size: 15px; font-weight: 700; }
.cart-total-row .amount { font-size: 16px; font-weight: 700; }
.cart-tax-note { font-size: 11px; color: var(--gray-500); margin-bottom: 14px; }

.btn-checkout {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.btn-checkout:hover { background: var(--gray-900); }

.btn-view-cart {
    display: block;
    width: 100%;
    padding: 13px;
    border: 2px solid var(--black);
    color: var(--black);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.btn-view-cart:hover { background: var(--black); color: var(--white); }

.side-cart-empty {
    padding: 50px 22px;
    text-align: center;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner { width: 90%; max-width: 550px; }
.search-overlay-inner form {
    display: flex;
    border-bottom: 2px solid var(--white);
}
.search-overlay-inner input {
    flex: 1;
    padding: 14px 0;
    background: transparent;
    color: var(--white);
    font-size: 22px;
    font-family: var(--font-heading);
}
.search-overlay-inner input::placeholder { color: rgba(255,255,255,0.4); }
.search-overlay-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .features-row { grid-template-columns: repeat(2, 1fr); }
    .logos-row { gap: 25px; }
}

/* Responsive rules moved to end of file */

/* ═══════════════════════════════════════════
   SIMPLE MULTI-LEVEL DROPDOWN MENU
   Reference: Atelier Home style
   ═══════════════════════════════════════════ */

/* Every nav li with children needs relative for dropdown positioning */
.main-nav > ul > li {
    position: relative;
}
.main-nav .sub-menu li {
    position: relative;
}

/* Dropdown arrow icon (top-level) */
.nav-arrow {
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform var(--transition);
}
.main-nav li:hover > a > .nav-arrow {
    transform: rotate(180deg);
}
/* Sub-menu items with children: arrow points right */
.main-nav .sub-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--gray-500);
    border-bottom: 1.5px solid var(--gray-500);
    transform: rotate(-45deg);
    margin-left: auto;
    flex-shrink: 0;
}
.main-nav .sub-menu > li.menu-item-has-children > a:hover::after {
    border-color: var(--black);
}
/* Hide the SVG nav-arrow inside sub-menus (we use ::after instead) */
.main-nav .sub-menu .nav-arrow {
    display: none;
}

/* ── Level 1 dropdown ── */
.main-nav .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 999;
}
.main-nav .sub-menu li {
    display: block;
    width: 100%;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Level 2+ flyout sub-menus ── */
.main-nav .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% + 1px);
    border: 1px solid var(--gray-200);
}

/* Dropdown link styles */
.main-nav .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    transition: all 0.15s ease;
    gap: 8px;
}
.main-nav .sub-menu li a:hover {
    color: var(--black);
    background: var(--gray-100);
}
.main-nav .sub-menu li.current-menu-item > a {
    color: var(--black);
    font-weight: 700;
}
/* Divider between dropdown items */
.main-nav .sub-menu li + li {
    border-top: 1px solid var(--gray-100);
}

/* ── Mobile nav close button ── */
.mobile-nav-close {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    left: 16px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark);
    z-index: 10;
    padding: 0;
}
.mobile-nav-close svg {
    width: 22px;
    height: 22px;
}
.mobile-nav-close:hover {
    color: var(--black);
}

/* Mobile accordion toggle +/- button */
.mobile-submenu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    background: none;
    border: none;
    border-left: 1px solid var(--gray-200);
    color: var(--dark);
    z-index: 2;
    font-size: 18px;
    font-weight: 300;
    transition: background 0.2s;
    padding: 0;
}
.mobile-submenu-toggle:hover {
    background: var(--gray-100);
}
/* Show +/- instead of arrow on mobile */
.mobile-submenu-toggle svg {
    display: none;
}
.mobile-submenu-toggle::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: var(--gray-500);
}
.mobile-submenu-toggle.open::after {
    content: '−';
}

/* ═══════════════════════════════════════════
   PRODUCT PAGE — variation message
   ═══════════════════════════════════════════ */
.sp-variation-msg {
    font-size: 13px;
    color: var(--accent);
    margin: 6px 0;
    padding: 6px 10px;
    background: #fff0f0;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
}

/* Loading state on ATC button */
.flavor-add-to-cart.loading {
    position: relative;
    pointer-events: none;
}
.sp-btn-atc.loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: atc-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes atc-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   WISHLIST
   ═══════════════════════════════════════════ */
.flavor-wishlist-count {
    position: absolute;
    top: -3px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flavor-wishlist-count:empty,
.flavor-wishlist-count[data-count="0"] {
    display: none;
}
.flavor-wishlist-toggle.in-wishlist svg {
    fill: var(--accent);
    stroke: var(--accent);
}
.wishlist-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    border: none;
    z-index: 5;
    color: var(--gray-700);
    transition: all 0.2s;
}
.wishlist-remove-btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* ═══════════════════════════════════════════
   ARCHIVE / SHOP PAGE
   ═══════════════════════════════════════════ */
.flavor-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}
/* Default WC product list grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    list-style: none;
}

/* Shop page sorting bar — proper spacing */
.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 10px;
}
.flavor-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}
.woocommerce .woocommerce-result-count {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    padding: 0;
    order: 1;
}
.woocommerce .woocommerce-ordering {
    margin: 0;
    padding: 0;
    order: 2;
}
.woocommerce .woocommerce-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    cursor: pointer;
    appearance: auto;
    min-width: 180px;
}
.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--black);
    outline: none;
}

/* WC pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    padding: 30px 0;
}
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ═══════════════════════════════════════════
   CHECKOUT / CART PAGE — same container width
   ═══════════════════════════════════════════ */
.woocommerce-checkout,
.woocommerce-cart {
    padding: 30px 0 50px;
}
.woocommerce-checkout .container,
.woocommerce-cart .container {
    max-width: var(--container);
}
/* Checkout form layout */
.woocommerce form.woocommerce-checkout {
    max-width: var(--container);
    margin: 0 auto;
}
.woocommerce .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    width: 100%;
    float: none;
}
/* Checkout fields */
.woocommerce form .form-row {
    margin-bottom: 14px;
}
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    display: block;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.2s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--black);
    outline: none;
}
/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}
.woocommerce-checkout-review-order-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
/* Place order button */
.woocommerce #place_order {
    width: 100%;
    padding: 14px;
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--black);
    cursor: pointer;
    transition: background 0.2s;
}
.woocommerce #place_order:hover {
    background: var(--gray-900);
}
/* Cart page table */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    vertical-align: middle;
}
.woocommerce table.shop_table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--gray-700);
}
.woocommerce .cart-collaterals {
    margin-top: 30px;
}
.woocommerce .cart_totals {
    max-width: 420px;
    margin-left: auto;
}

/* ═══════════════════════════════════════════
   MOBILE HEADER + RESPONSIVE
   ═══════════════════════════════════════════ */
.hide-mobile { display: flex; }

@media (max-width: 768px) {
    /* Header layout: hamburger | logo | icons */
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "toggle logo icons";
        align-items: center;
        gap: 0;
    }
    .mobile-menu-toggle {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column;
        flex-direction: column;
        grid-area: toggle;
        order: 1;
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        padding: 5px 2px;
        gap: 5px;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        border: none;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
    }
    .mobile-menu-toggle span {
        display: block !important;
        width: 22px !important;
        min-width: 22px;
        height: 2px !important;
        min-height: 2px;
        background: #000 !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        border-radius: 1px;
        pointer-events: none;
    }
    .main-nav > ul {
        align-items: flex-start !important;
    }
    .main-nav > ul > li {
        width: 100%;
    }
    .main-nav > ul > li > a::after {
        background: transparent;
    }
    .site-logo {
        grid-area: logo;
        order: 2;
        text-align: center;
        justify-self: center;
    }
    .header-icons {
        grid-area: icons;
        order: 3;
        gap: 10px;
    }
    .hide-mobile {
        display: none !important;
    }

    /* ── Mobile slide-in nav (matching reference) ── */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 92%;
        max-width: 400px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        z-index: 9999;
        transition: left 0.35s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,0.2);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.active { left: 0; }

    /* Close button visible on mobile */
    .mobile-nav-close {
        display: flex;
    }

    /* Menu list */
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 70px 0 100px;
    }

    /* Top-level items — large text like reference */
    .main-nav > ul > li {
        position: relative !important;
        border-bottom: 1px solid var(--gray-200);
    }
    .main-nav > ul > li > a {
        padding: 16px 60px 16px 24px;
        display: block;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    /* Hide desktop dropdown arrow on mobile */
    .main-nav > ul > li > a .nav-arrow {
        display: none;
    }

    /* Show +/- accordion toggle */
    .mobile-submenu-toggle {
        display: flex;
        height: 52px;
    }

    /* Sub-menus: hidden accordion panels */
    .main-nav .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        display: none;
        min-width: 100%;
        background: transparent;
    }
    .main-nav .sub-menu.mobile-open {
        display: block;
    }
    .main-nav .sub-menu li {
        position: relative;
        border-top: none;
    }
    .main-nav .sub-menu li + li {
        border-top: none;
    }
    .main-nav .sub-menu li a {
        padding: 12px 60px 12px 40px;
        font-size: 14px;
        font-weight: 400;
        color: var(--gray-700);
        white-space: normal;
        border-bottom: 1px solid var(--gray-100);
    }
    .main-nav .sub-menu li a:hover {
        background: transparent;
        color: var(--black);
    }
    /* Hide the flyout arrow ::after on mobile */
    .main-nav .sub-menu > li.menu-item-has-children > a::after {
        display: none;
    }

    /* Depth 2+ indentation */
    .main-nav .sub-menu .sub-menu {
        border-left: none;
    }
    .main-nav .sub-menu .sub-menu li a {
        padding-left: 56px;
        font-size: 13px;
        color: var(--gray-500);
    }
    .main-nav .sub-menu .sub-menu .sub-menu li a {
        padding-left: 72px;
    }

    /* 2 products per row */
    .products-grid,
    .flavor-archive-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .categories-row { gap: 20px; }
    .cat-circle .circle-img { width: 80px; height: 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .side-cart { width: 100vw; right: -100vw; }
    .announcement-bar .announce-right { display: none; }
    .hero-content h1 { font-size: 32px; }
    .hero-slide { min-height: 350px; }

    /* Checkout responsive */
    .woocommerce .col2-set {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Shop toolbar */
    .flavor-shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .flavor-archive-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .hero-content h1 { font-size: 26px; }
    .btn { padding: 10px 18px; font-size: 11px; min-width: 110px; }
    .section-heading { font-size: 20px; }
}
