/* ============================================================================
   TayyabaCollective — dynamic storefront components
   Loaded after style.css on every storefront page.
   ============================================================================ */

/* --- Flash messages ------------------------------------------------------- */
.flash {
    max-width: 1200px;
    margin: 18px auto 0;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: flashIn .25s ease;
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.flash-success { background: #eef7ee; border: 1px solid #cfe6cf; color: #2e6b34; }
.flash-error   { background: #fdf9f9; border: 1px solid #f5edec; color: #a3372e; }
.flash-close {
    background: none; border: none; font-size: 18px; cursor: pointer;
    color: inherit; line-height: 1; padding: 2px 6px; opacity: .6;
}
.flash-close:hover { opacity: 1; }
.flash-hide { opacity: 0; transition: opacity .4s; }

/* --- Section empty state -------------------------------------------------- */
.section-empty {
    text-align: center;
    padding: 60px 24px;
    border: 1px dashed #efe9ea;
    border-radius: 10px;
    background: #fdfaf7;
}
.section-empty i { font-size: 32px; color: #5a1424; margin-bottom: 12px; display: block; }
.section-empty h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 6px; }
.section-empty p { color: #8a7a70; font-size: 14px; max-width: 420px; margin: 0 auto; }

/* --- Product card extras -------------------------------------------------- */
.product-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, .92);
    color: #3b2b26;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.product-tag.out-of-stock { background: rgba(59, 43, 38, .92); color: #fff; }
.product-sku { font-size: 13px; color: #8a7a70; margin: 6px 0 0; }
.product-sku strong { color: #3b2b26; font-weight: 600; }

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 14px 0 4px;
}
.stock-status.in  { color: #2e6b34; }
.stock-status.out { color: #a3372e; }

.variant-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ede8e9;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #3b2b26;
}
.color-swatch { border: 1px solid #ede8e9 !important; }

/* --- Shop loading state --------------------------------------------------- */
#shop-product-grid.loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* --- Pagination ----------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
    flex-wrap: wrap;
}
.page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #f0ebec;
    border-radius: 6px;
    color: #3b2b26;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.page-link:hover { border-color: #5e0b27; color: #5e0b27; }
.page-link.active { background: #5e0b27; border-color: #5e0b27; color: #fff; }

/* --- Navigation dropdown — Enterprise Upgrade ------------------------------ */
.nav-dropdown {
    position: relative;
}

/* The toggle button styled to match nav links */
.nav-dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    position: relative;
    letter-spacing: 0.02em;
    transition: color .25s ease;
}

.nav-dropdown-toggle:hover {
    color: #5e0b27;
}

/* Chevron indicator */
.nav-dropdown-toggle i {
    font-size: 10px;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    opacity: .7;
}

.nav-dropdown.open .nav-dropdown-toggle i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Animated underline on toggle — matches site-nav > a::after */
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #5e0b27;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .28s cubic-bezier(.16, 1, .3, 1);
}

.nav-dropdown.open .nav-dropdown-toggle::after {
    width: 100%;
}

/* The dropdown panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #f7f3f4;
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(59, 43, 38, .04),
        0 12px 28px rgba(59, 43, 38, .10),
        0 24px 50px rgba(59, 43, 38, .08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transition: opacity .22s ease, visibility .22s ease, transform .22s cubic-bezier(.4, 0, .2, 1);
    z-index: 60;
}

/* Top arrow pointer */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #f7f3f4;
    border-left: 1px solid #f7f3f4;
    border-radius: 3px 0 0 0;
}

/* Invisible bridge so mouse doesn't lose focus moving to dropdown */
.nav-dropdown-menu::after {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown links */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #3b2b26;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

/* Subtle left accent bar on hover */
.nav-dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: #5e0b27;
    border-radius: 0 2px 2px 0;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}

.nav-dropdown-menu a:hover {
    background: linear-gradient(90deg, #fdf8f3 0%, #fbf9fa 100%);
    color: #5e0b27;
    padding-left: 24px;
}

.nav-dropdown-menu a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* Stagger the entrance of dropdown links */
.nav-dropdown-menu a {
    opacity: 0;
    transform: translateY(-4px);
}

.nav-dropdown.open .nav-dropdown-menu a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, background .18s ease, color .18s ease, padding-left .18s ease;
}

.nav-dropdown.open .nav-dropdown-menu a:nth-child(1) { transition-delay: .04s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(2) { transition-delay: .07s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(3) { transition-delay: .10s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(4) { transition-delay: .13s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(5) { transition-delay: .16s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(6) { transition-delay: .19s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(7) { transition-delay: .22s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(8) { transition-delay: .25s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(9) { transition-delay: .28s; }
.nav-dropdown.open .nav-dropdown-menu a:nth-child(10) { transition-delay: .31s; }

/* Featured item at the bottom of the dropdown */
.nav-dropdown-menu .dropdown-featured {
    margin-top: 4px;
    padding: 12px 20px;
    border-top: 1px solid #f7f3f4;
    display: block;
}
.nav-dropdown-menu .dropdown-featured:hover {
    padding-left: 20px;
}
.nav-dropdown-menu .dropdown-featured-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5a1424;
    margin-bottom: 3px;
}
.nav-dropdown-menu .dropdown-featured-text {
    font-size: 12.5px;
    color: #8a7a70;
    font-weight: 400;
}
.nav-dropdown-menu .dropdown-featured:hover .dropdown-featured-text {
    color: #5e0b27;
}

/* --- Filter sidebar mobile open ------------------------------------------- */
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: #fff;
        z-index: 200;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .25s ease;
        padding: 24px;
        box-shadow: 0 0 40px rgba(0,0,0,.15);
    }
    .filter-sidebar.open { transform: translateX(0); }
    .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .filter-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #3b2b26; }
}
@media (min-width: 992px) {
    .filter-header { display: none; }
}

/* --- Error pages ----------------------------------------------------------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-content { text-align: center; }
.error-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(72px, 14vw, 140px);
    line-height: 1;
    color: #5a1424;
    display: block;
    margin-bottom: 8px;
}
.error-content h1 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 12px; }
.error-content p { color: #8a7a70; max-width: 460px; margin: 0 auto 28px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Form validation feedback ---------------------------------------------- */
.field-error { color: #a3372e; font-size: 12.5px; margin-top: 6px; }
.form-group .optional { font-weight: 400; font-size: 12px; color: #8a7a70; }

/* --- Newsletter success ----------------------------------------------------- */
.newsletter-success { color: #fff; font-size: 14px; margin: 0; }

/* --- Cart / checkout helpers ------------------------------------------------- */
.summary-note {
    font-size: 12.5px;
    color: #a3372e;
    background: #fdf9f9;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 14px;
    line-height: 1.5;
}
.cart-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: #8a7a70;
    cursor: pointer;
    padding: 6px;
    align-self: center;
}
.cart-remove:hover { color: #a3372e; }
.qty-input {
    width: 52px;
    text-align: center;
    border: 1px solid #ede8e9;
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 14px;
    font-family: inherit;
}
.checkout-submit { width: 100%; margin-top: 20px; justify-content: center; }

/* --- Confirmation ------------------------------------------------------------ */
.confirmation-box {
    background: #fdfaf7;
    border: 1px solid #f5f0f1;
    border-radius: 10px;
    padding: 22px;
    margin: 26px 0;
    text-align: left;
}
.confirmation-box .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed #f1ebed;
    font-size: 14px;
}
.confirmation-box .summary-row:last-child { border-bottom: none; }
.confirmation-box .summary-row.total { font-weight: 700; font-size: 16px; padding-top: 14px; }
.confirmation-box .summary-row span { color: #8a7a70; }
.confirmation-box .summary-row strong { color: #3b2b26; }

/* --- Responsive tweaks -------------------------------------------------------- */
@media (max-width: 767px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid #f5f0f1;
        border-radius: 0;
        margin: 4px 0 8px 12px;
        padding: 4px 0;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
    }
    .nav-dropdown-menu::before,
    .nav-dropdown-menu::after {
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; transform: none; }
    .nav-dropdown-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }
    .nav-dropdown-menu a::before {
        display: none;
    }
    .nav-dropdown-menu a:hover {
        padding-left: 16px;
    }
    /* Reset stagger on mobile */
    .nav-dropdown-menu a {
        opacity: 1;
        transform: none;
    }
}
/* ============================================================================
   Enterprise upgrade — mega menu, wishlist, cart drawer, quick view,
   order tracking, reviews, collections, coupons, badges
   ============================================================================ */

/* --- Mega menu — Enterprise Upgrade -------------------------------------- */
.nav-dropdown.mega .nav-dropdown-menu {
    left: 50%;
    min-width: 680px;
    max-width: 92vw;
    padding: 24px 28px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 28px;
    border-radius: 14px;
}

.nav-dropdown.mega.open .nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
}

/* Group headers inside mega menu */
.mega-group-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #5a1424;
    padding: 10px 0 6px;
    border-bottom: 1px solid #f7f3f4;
    margin-bottom: 4px;
}

/* Column links */
.mega-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mega-column a {
    font-size: 13.5px;
    padding: 9px 14px;
    border-radius: 6px;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

.mega-column a:hover {
    background: linear-gradient(90deg, #fdf8f3 0%, #fbf9fa 100%);
    color: #5e0b27;
    padding-left: 18px;
}

/* Mega menu stagger animation */
.nav-dropdown.mega.open .nav-dropdown-menu .mega-column a {
    opacity: 0;
    transform: translateY(-3px);
    animation: megaLinkIn .22s ease forwards;
}

.nav-dropdown.mega.open .nav-dropdown-menu .mega-column:nth-child(1) a { animation-delay: .04s; }
.nav-dropdown.mega.open .nav-dropdown-menu .mega-column:nth-child(2) a { animation-delay: .08s; }
.nav-dropdown.mega.open .nav-dropdown-menu .mega-column:nth-child(3) a { animation-delay: .12s; }
.nav-dropdown.mega.open .nav-dropdown-menu .mega-column:nth-child(4) a { animation-delay: .16s; }

@keyframes megaLinkIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile mega menu */
@media (max-width: 991px) {
    .nav-dropdown.mega .nav-dropdown-menu {
        min-width: 0;
        max-width: none;
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        margin: 4px 0 8px 12px;
        border: none;
        border-left: 2px solid #f5f0f1;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .nav-dropdown.mega .nav-dropdown-menu::before,
    .nav-dropdown.mega .nav-dropdown-menu::after {
        display: none;
    }
    .mega-column {
        margin-bottom: 4px;
    }
    .mega-column a {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 0;
    }
    .mega-column a:hover {
        padding-left: 16px;
    }
    .mega-group-label {
        padding: 10px 16px 6px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .nav-dropdown-menu {
        min-width: 200px;
    }
    .nav-dropdown-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* --- Product badges ------------------------------------------------------- */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.product-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 2px;
    color: #fff;
    background: #5e0b27;
}
.product-badge.sale { background: #a3372e; }
.product-badge.new { background: #5e0b27; }
.product-badge.bestseller { background: #5e0b27; color: #fff; }
.product-badge.soldout { background: #555; }

/* --- Wishlist ------------------------------------------------------------- */
.wishlist-link { position: relative; }
.wishlist-count, .cart-count {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #5e0b27;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}
.wishlist-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #f5f0f1;
    background: rgba(255, 255, 255, .94);
    color: #8a7a70;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    z-index: 4;
}
.wishlist-toggle:hover { color: #a3372e; border-color: #ede3e2; transform: scale(1.06); }
.wishlist-toggle.active { color: #a3372e; background: #fdf9f9; border-color: #ede3e2; }
.wishlist-toggle.active i { animation: wishPop .3s ease; }
@keyframes wishPop {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.wishlist-hero { padding: 64px 0 24px; text-align: center; }
.wishlist-hero .eyebrow { margin-bottom: 8px; }
.wishlist-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 42px); }
.wishlist-hero p { color: #8a7a70; margin-top: 8px; }
.wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0 72px; }
.wishlist-empty { text-align: center; padding: 72px 24px; }
.wishlist-empty i { font-size: 40px; color: #5a1424; margin-bottom: 14px; display: block; }
.wishlist-empty h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; }
.wishlist-empty p { color: #8a7a70; margin-bottom: 22px; }
@media (max-width: 991px) { .wishlist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* --- Cart drawer ---------------------------------------------------------- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(91, 21, 37, .45);
    z-index: 190;
    opacity: 0;
    transition: opacity .25s ease;
}
.cart-drawer-overlay.show { opacity: 1; }
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(102%);
    transition: transform .28s cubic-bezier(.22, .8, .36, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .14);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f6f2f3;
}
.cart-drawer-head h2 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0; }
.cart-drawer-close {
    background: none; border: none; font-size: 26px; line-height: 1;
    color: #8a7a70; cursor: pointer; padding: 4px 8px;
}
.cart-drawer-close:hover { color: #3b2b26; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-loading { color: #8a7a70; font-size: 14px; text-align: center; padding: 40px 0; }
.drawer-empty { text-align: center; padding: 56px 12px; }
.drawer-empty i { font-size: 38px; color: #5a1424; margin-bottom: 12px; display: block; }
.drawer-empty h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 6px; }
.drawer-empty p { color: #8a7a70; font-size: 14px; margin-bottom: 20px; }
.drawer-items { display: flex; flex-direction: column; gap: 18px; }
.drawer-item { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px dashed #f5f0f1; }
.drawer-item-img { width: 74px; height: 92px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-info .p-name { display: block; font-size: 13.5px; font-weight: 600; color: #3b2b26; margin-bottom: 3px; line-height: 1.35; }
.drawer-item-info .p-variant { font-size: 12px; color: #8a7a70; margin-bottom: 6px; }
.drawer-item-price { font-size: 13px; font-weight: 700; color: #3b2b26; }
.drawer-item-qty { font-size: 12.5px; color: #8a7a70; }
.drawer-item-remove {
    background: none; border: none; font-size: 16px; color: #b9a0a6;
    cursor: pointer; padding: 4px; line-height: 1;
}
.drawer-item-remove:hover { color: #a3372e; }
.drawer-progress { margin: 4px 0 18px; }
.drawer-progress p { font-size: 12.5px; color: #8a7a70; margin-bottom: 6px; }
.drawer-progress p strong { color: #a3372e; font-weight: 700; }
.drawer-progress p.unlocked strong { color: #2e6b34; }
.drawer-progress-bar { height: 5px; background: #f6f2f3; border-radius: 4px; overflow: hidden; }
.drawer-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3d0f1a, #5a1424); border-radius: 4px; transition: width .4s ease; }
.drawer-unavailable { color: #a3372e; font-size: 12.5px; background: #fdf9f9; padding: 8px 10px; border-radius: 6px; margin-bottom: 14px; }
.drawer-summary { border-top: 1px solid #f6f2f3; padding: 16px 22px 20px; background: #fdfaf7; }
.drawer-subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: #3b2b26; margin-bottom: 14px; }
.drawer-subtotal span { color: #8a7a70; font-weight: 500; }
.drawer-checkout { width: 100%; justify-content: center; margin-bottom: 8px; }
.drawer-view-cart {
    display: block; text-align: center; font-size: 13px; color: #8a7a70;
    text-decoration: underline; padding: 6px 0;
}
.drawer-view-cart:hover { color: #5a1424; }

/* --- Quick view modal ----------------------------------------------------- */
.qv-overlay {
    position: fixed; inset: 0; background: rgba(91, 21, 37, .5);
    z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px;
}
.qv-overlay.show { display: flex; }
.qv-modal {
    background: #fff; border-radius: 10px; width: min(880px, 100%);
    max-height: 90vh; overflow-y: auto; position: relative;
    animation: qvIn .25s ease;
}
@keyframes qvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.qv-close {
    position: absolute; top: 10px; right: 14px; z-index: 5;
    background: rgba(255, 255, 255, .9); border: none; font-size: 24px;
    color: #3b2b26; cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.qv-layout { display: grid; grid-template-columns: 1fr 1fr; }
.qv-gallery { padding: 24px; background: #fdfaf7; border-right: 1px solid #f6f2f3; }
.qv-main { position: relative; }
.qv-main img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; display: block; }
.qv-thumbnails { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.qv-thumb { width: 62px; height: 74px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: .75; }
.qv-thumb.active { border-color: #5e0b27; opacity: 1; }
.qv-info { padding: 28px 30px; display: flex; flex-direction: column; }
.qv-eyebrow { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #5a1424; margin-bottom: 6px; }
.qv-title { font-family: 'Playfair Display', serif; font-size: 24px; color: #3b2b26; margin-bottom: 6px; }
.qv-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8a7a70; margin-bottom: 12px; }
.qv-price { font-size: 20px; font-weight: 700; color: #3b2b26; margin-bottom: 4px; }
.qv-price .old-price { font-size: 15px; }
.qv-stock { font-size: 12.5px; margin: 6px 0 14px; }
.qv-stock.in { color: #2e6b34; } .qv-stock.out { color: #a3372e; }
.qv-desc { font-size: 13.5px; color: #8a7a70; line-height: 1.6; margin-bottom: 16px; }
.qv-option { margin-bottom: 14px; }
.qv-option .option-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #3b2b26; margin-bottom: 8px; display: block; }
.qv-option .option-heading span { color: #5a1424; }
.qv-size-options, .qv-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-size { min-width: 42px; height: 38px; padding: 0 12px; border: 1px solid #ede8e9; border-radius: 6px; background: #fff; font-size: 13px; color: #3b2b26; cursor: pointer; transition: all .15s; }
.qv-size:hover { border-color: #5e0b27; }
.qv-size.active { background: #5e0b27; border-color: #5e0b27; color: #fff; }
.qv-size:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.qv-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ede8e9; cursor: pointer; transition: all .15s; }
.qv-color:hover { transform: scale(1.1); }
.qv-color.active { box-shadow: 0 0 0 2px #5a1424; }
.qv-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.qv-qty .quantity-selector { margin: 0; }
.qv-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.qv-add { flex: 1; justify-content: center; }
.qv-details-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #8a7a70; text-decoration: underline; padding: 12px 4px; }
.qv-details-link:hover { color: #5a1424; }
.qv-loading, .qv-error { padding: 60px 24px; text-align: center; color: #8a7a70; font-size: 14px; }
.qv-error { color: #a3372e; }
@media (max-width: 767px) {
    .qv-layout { grid-template-columns: 1fr; }
    .qv-gallery { border-right: none; border-bottom: 1px solid #f6f2f3; padding: 16px; }
    .qv-main img { height: 300px; }
    .qv-info { padding: 20px; }
}

/* --- Order tracking ------------------------------------------------------- */
.track-hero { text-align: center; padding: 56px 0 20px; }
.track-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.track-hero p { color: #8a7a70; max-width: 520px; margin: 0 auto; }
.track-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 24px auto 12px; }
.track-form input { flex: 1; min-width: 220px; }
.track-help { text-align: center; color: #8a7a70; font-size: 12.5px; margin-bottom: 40px; }
.track-card { background: #fff; border: 1px solid #f5f0f1; border-radius: 10px; padding: 28px; margin-bottom: 28px; box-shadow: 0 10px 30px rgba(59, 43, 38, .05); }
.track-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed #f5f0f1; }
.track-card-head h2 { font-family: 'Playfair Display', serif; font-size: 19px; margin: 0; }
.track-card-head .track-status { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #2e6b34; background: #eef7ee; padding: 5px 12px; border-radius: 20px; }
.track-summary { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: #8a7a70; margin-bottom: 18px; }
.track-summary strong { color: #3b2b26; }
.track-items { margin-bottom: 18px; }
.track-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #f6f2f3; }
.track-item:last-child { border-bottom: none; }
.track-item img { width: 56px; height: 68px; object-fit: cover; border-radius: 6px; }
.track-item .p-name { font-size: 13.5px; font-weight: 600; color: #3b2b26; }
.track-item .p-variant { font-size: 12px; color: #8a7a70; }
.track-item .track-qty { font-size: 13px; color: #8a7a70; }
.track-total { text-align: right; font-size: 15px; font-weight: 700; color: #3b2b26; margin-top: 6px; }
.track-timeline { display: flex; justify-content: space-between; margin-top: 22px; position: relative; }
.track-timeline::before {
    content: ''; position: absolute; top: 15px; left: 8%; right: 8%;
    height: 2px; background: #f5f0f1;
}
.track-timeline::after {
    content: ''; position: absolute; top: 15px; left: 8%;
    height: 2px; background: #5e0b27; width: 0; transition: width .6s ease;
}
.track-timeline[data-progress]::after { width: calc(8% + var(--progress) * 84%); }
.timeline-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 20%; text-align: center; }
.timeline-dot {
    width: 32px; height: 32px; border-radius: 50%; background: #fff;
    border: 2px solid #ede8e9; color: #c4aab0; font-size: 12px;
    display: flex; align-items: center; justify-content: center; transition: all .3s ease;
}
.timeline-step.done .timeline-dot { background: #5e0b27; border-color: #5e0b27; color: #fff; }
.timeline-step.current .timeline-dot { border-color: #5e0b27; color: #5a1424; box-shadow: 0 0 0 4px rgba(94, 11, 39, .18); }
.timeline-label { font-size: 11px; color: #b9a0a6; font-weight: 600; letter-spacing: .3px; }
.timeline-step.done .timeline-label { color: #3b2b26; }
.timeline-step.current .timeline-label { color: #5a1424; }
.track-tracking { font-size: 12.5px; color: #8a7a70; margin-top: 16px; }
.track-tracking strong { color: #3b2b26; }
@media (max-width: 575px) {
    .timeline-label { font-size: 9.5px; }
    .timeline-dot { width: 28px; height: 28px; }
}

/* --- Product reviews ------------------------------------------------------ */
.reviews-summary { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; margin-bottom: 34px; padding: 26px; background: #fdfaf7; border: 1px solid #f5f0f1; border-radius: 10px; }
.reviews-score { text-align: center; }
.reviews-score .score { font-family: 'Playfair Display', serif; font-size: 52px; line-height: 1; color: #3b2b26; }
.reviews-score .stars { margin: 6px 0 4px; }
.reviews-score .count { font-size: 13px; color: #8a7a70; }
.reviews-bars { display: flex; flex-direction: column; gap: 7px; }
.review-bar { display: grid; grid-template-columns: 46px 1fr 34px; align-items: center; gap: 10px; font-size: 12.5px; color: #8a7a70; }
.review-bar-track { height: 7px; background: #f6f2f3; border-radius: 4px; overflow: hidden; }
.review-bar-track span { display: block; height: 100%; background: #5e0b27; border-radius: 4px; }
.reviews-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.review-entry { background: #fff; border: 1px solid #f5f0f1; border-radius: 10px; padding: 22px 24px; }
.review-entry-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-entry-avatar { width: 40px; height: 40px; border-radius: 50%; background: #5e0b27; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 16px; }
.review-entry-head strong { display: block; font-size: 13.5px; color: #3b2b26; }
.review-entry-head .review-date { font-size: 11.5px; color: #b9a0a6; }
.verified-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #2e6b34; background: #eef7ee; border-radius: 12px; padding: 2px 8px; margin-top: 3px; }
.review-entry > p { font-size: 14px; color: #6b5f57; line-height: 1.65; margin: 0; }
.reviews-none { text-align: center; color: #8a7a70; padding: 30px 0; font-size: 14px; }
.review-form { background: #fdfaf7; border: 1px solid #f5f0f1; border-radius: 10px; padding: 24px; }
.review-form h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 14px; }
.rating-picker { display: flex; gap: 6px; margin: 8px 0 14px; }
.rating-picker button { background: none; border: none; font-size: 22px; color: #ebe5e7; cursor: pointer; padding: 0 2px; transition: color .15s, transform .15s; }
.rating-picker button:hover, .rating-picker button.active { color: #5a1424; transform: scale(1.08); }
@media (max-width: 767px) {
    .reviews-summary { grid-template-columns: 1fr; gap: 18px; }
}

/* --- Collections ---------------------------------------------------------- */
.collection-hero { position: relative; padding: 84px 0; background: #fbf9f9; overflow: hidden; }
.collection-hero-content { max-width: 560px; }
.collection-hero-content .eyebrow { margin-bottom: 10px; }
.collection-hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(30px, 5vw, 48px); color: #3b2b26; margin-bottom: 12px; }
.collection-hero-content p { color: #6b5f57; font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.collection-count { font-size: 13px; color: #8a7a70; padding: 24px 0 0; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 36px 0 72px; }
.collection-card { display: block; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #f5f0f1; text-decoration: none; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.collection-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(59, 43, 38, .12); }
.collection-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.collection-card-body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.collection-card-body h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: #3b2b26; margin: 0; }
.collection-card-body span { font-size: 12.5px; color: #5a1424; font-weight: 600; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 40px 0 70px; }
.category-card { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #f5f0f1; display: block; text-decoration: none; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(59, 43, 38, .12); }
.category-image { position: relative; height: 260px; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-image img { transform: scale(1.05); }
.category-content { padding: 16px 18px; }
.category-content h3 { font-family: 'Playfair Display', serif; font-size: 17px; color: #3b2b26; margin: 0 0 3px; }
.category-content p { font-size: 12.5px; color: #8a7a70; margin: 0; }
@media (max-width: 991px) { .collection-grid, .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .collection-grid, .category-grid { grid-template-columns: 1fr; } }

/* --- Coupon + checkout summary -------------------------------------------- */
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #eef7ee; border: 1px solid #cfe6cf; color: #2e6b34; border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.coupon-applied strong { text-transform: uppercase; letter-spacing: .5px; }
.coupon-remove { background: none; border: none; color: #2e6b34; font-size: 14px; cursor: pointer; padding: 2px 6px; }
.coupon-remove:hover { color: #a3372e; }
.summary-lines { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px dashed #f5f0f1; margin-bottom: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; color: #8a7a70; }
.summary-line strong { color: #3b2b26; font-weight: 600; }
.summary-line.discount { color: #2e6b34; }
.summary-total { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; font-weight: 700; color: #3b2b26; }
.summary-total span { font-weight: 500; color: #8a7a70; }

/* --- Product option pickers ------------------------------------------------- */
.option-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #3b2b26; margin-bottom: 10px; display: block; }
.option-heading span { color: #5a1424; font-weight: 600; }
.product-option { margin-bottom: 20px; }
.size-options, .color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option {
    min-width: 46px; height: 42px; padding: 0 14px; border: 1px solid #ede8e9; border-radius: 6px;
    background: #fff; font-size: 13px; color: #3b2b26; cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; justify-content: center;
}
.size-option:hover { border-color: #5e0b27; color: #5a1424; }
.size-option.active { background: #5e0b27; border-color: #5e0b27; color: #fff; }
.size-option:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.color-option { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ede8e9; cursor: pointer; padding: 0; transition: transform .15s, box-shadow .15s; }
.color-option:hover { transform: scale(1.1); }
.color-option.active { box-shadow: 0 0 0 2px #5a1424; }
.qty-btn {
    width: 38px; height: 38px; background: none; border: 1px solid #ede8e9;
    border-radius: 6px; font-size: 15px; color: #3b2b26; cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: #5e0b27; color: #5a1424; }

/* --- Small helpers ---------------------------------------------------------- */
.product-actions { display: flex; gap: 10px; margin-top: 14px; }
.product-add-cart { flex: 1; justify-content: center; }
.product-buy-now { justify-content: center; }
.continue-shopping { display: inline-block; margin-top: 20px; font-size: 13.5px; color: #8a7a70; text-decoration: underline; }
.continue-shopping:hover { color: #5a1424; }
.empty-cart-icon { font-size: 42px; color: #5a1424; margin-bottom: 14px; display: block; }
.details-list { display: flex; flex-direction: column; gap: 10px; }
.details-list li { display: flex; gap: 10px; font-size: 13.5px; color: #6b5f57; line-height: 1.55; }
.details-list li i { color: #5a1424; margin-top: 2px; }
.delivery-info { font-size: 13px; color: #8a7a70; display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #f5f0f1; }
.delivery-info i { color: #5a1424; }
.trust-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #6b5f57; }
.trust-item i { font-size: 20px; color: #5a1424; }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; }
.benefit-item i { font-size: 22px; color: #5a1424; margin-top: 2px; }
.benefit-item h4 { font-size: 14.5px; color: #3b2b26; margin: 0 0 4px; }
.benefit-item p { font-size: 13px; color: #8a7a70; margin: 0; line-height: 1.55; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: #5a1424; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5a1424; margin-bottom: 8px; display: block; }
.section-heading { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.4vw, 36px); color: #3b2b26; margin: 0; }
.breadcrumb-section { padding: 20px 0 0; }
.breadcrumb-section ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #8a7a70; padding: 0; margin: 0; }
.breadcrumb-section a { color: #8a7a70; text-decoration: none; }
.breadcrumb-section a:hover { color: #5a1424; }
.breadcrumb-section li + li::before { content: '/'; margin-right: 8px; color: #ebe5e7; }
.breadcrumb-section li[aria-current] { color: #3b2b26; font-weight: 600; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.85); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #3b2b26; font-size: 13px; }
.featured-image img { border-radius: 10px; }
.product-details-wrapper { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 44px 0 0; }
@media (max-width: 991px) { .product-details-wrapper { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================================
   Mobile hardening & polish
   ============================================================================ */

/* --- Header on phones: logo pinned left, actions + burger grouped right --- */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start;
        gap: 14px;
    }
    .brand-logo {
        margin-right: auto;
        min-width: 0;
    }
    .brand-logo img {
        height: 38px;
        max-width: 46vw; /* never let the wordmark crowd the icons out */
    }
    .nav-actions {
        margin-left: 0;
        gap: 6px;
        flex-shrink: 0;
    }
    .nav-actions a {
        width: 38px;
        height: 38px;
    }
    /* Guest store: account icon hidden on phones, but wishlist stays reachable */
    .nav-actions a:nth-child(2) {
        display: none;
    }
    .nav-actions a:nth-child(3) {
        display: inline-flex;
    }
    .nav-toggle {
        order: 4;
        margin-left: 2px;
        flex-shrink: 0;
    }
}

/* Count badges get a little breathing room next to the burger */
@media (max-width: 768px) {
    .nav-actions .wishlist-count,
    .nav-actions .cart-count {
        top: -6px;
    }
}

/* --- Contact cards: long emails/numbers must wrap instead of widening the card --- */
.contact-detail {
    min-width: 0;
}
.contact-detail > div {
    min-width: 0;
}
.contact-detail p,
.contact-detail a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- Small screens: never let a single long token push the layout wider --- */
@media (max-width: 480px) {
    p, a, h1, h2, h3, h4, span, li {
        overflow-wrap: break-word;
    }
    .footer-grid {
        gap: 34px 20px;
    }
    .footer-column a {
        font-size: 13px;
    }
}
