/* ===================================================
   AB COUTURE — GLOBAL DESIGN SYSTEM & STYLES (Arabic RTL)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --color-charcoal: #1C1A18;
    --color-charcoal-light: #2A2724;
    --color-ivory: #F8F5EF;
    --color-cream: #F2EEE6;
    --color-champagne: #B89B5E;
    --color-champagne-hover: #A08246;
    --color-champagne-light: #F4EEDF;
    --color-text-main: #1C1A18;
    --color-text-muted: #76726B;
    --color-border: #E5E0D6;
    --color-white: #FFFFFF;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--color-ivory);
    color: var(--color-text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   Editorial Typography & Brand Tokens
   ========================================== */
.font-display {
    font-family: 'Cairo', sans-serif;
    letter-spacing: -0.02em;
}

.brand-gold-text {
    color: var(--color-champagne);
}

.brand-gold-bg {
    background-color: var(--color-champagne);
}

/* ==========================================
   Hero & Slider
   ========================================== */
.hero-editorial-overlay {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.45) 0%, rgba(28, 26, 24, 0.85) 100%);
}

.hero-slide {
    display: none;
    opacity: 0;
}

.hero-slide.active {
    display: block;
    animation: heroFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.995);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.active {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================
   Cards & Product Showcases — Phase 2 Luxury Redesign
   ========================================== */
.product-card {
    background-color: var(--color-white);
    border: 1px solid rgba(184, 155, 94, 0.2);
    border-radius: 1rem;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    outline: none;
}

.product-card:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 3px;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        border-color: rgba(184, 155, 94, 0.45);
        box-shadow: 0 16px 32px -10px rgba(20, 18, 16, 0.1), 0 4px 14px -2px rgba(184, 155, 94, 0.1);
    }
}

/* Stable Aspect Ratio Media Container */
.product-card-media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #F8F6F0;
    width: 100%;
}

/* Primary Product Image */
.product-card .product-img,
.product-card .product-img-primary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    display: block;
}

/* Secondary Image Hover Crossfade (Only when second image exists) */
.product-card .product-img-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) {

    .product-card:hover .product-img,
    .product-card:hover .product-img-primary {
        transform: scale(1.025);
    }

    .product-card:hover .product-img-secondary {
        opacity: 1;
        transform: scale(1.025);
    }
}

/* Luxury Product Badges (Using Real Data Only) */
.product-badge {
    position: absolute;
    z-index: 10;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    line-height: 1;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-badge-discount {
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    background-color: #8B2628;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(139, 38, 40, 0.35);
}

.product-badge-stock {
    top: 3.25rem;
    inset-inline-end: 0.75rem;
    background-color: rgba(20, 18, 16, 0.9);
    color: #EDE7DD;
    border: 1px solid rgba(184, 155, 94, 0.35);
}

.product-badge-new {
    top: 3.25rem;
    inset-inline-end: 0.75rem;
    background-color: var(--color-champagne);
    color: var(--color-charcoal);
    font-weight: 800;
}

.product-badge-bestseller {
    top: 3.25rem;
    inset-inline-end: 0.75rem;
    background-color: #1A1816;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.product-badge-stylematch {
    top: 3.25rem;
    inset-inline-end: 0.75rem;
    background-color: rgba(26, 24, 22, 0.9);
    color: var(--color-champagne);
    border: 1px solid rgba(184, 155, 94, 0.4);
    font-weight: 700;
}

/* ==============================================================================
   CUSTOMER WISHLIST / FAVORITES BUTTONS & BADGES
   ============================================================================== */
.product-card-wishlist-btn {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    z-index: 15;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 36px;
    min-height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 155, 94, 0.28);
    color: var(--color-charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(20, 18, 16, 0.08);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    outline: none;
}

.product-card-wishlist-btn:hover {
    transform: scale(1.12);
    background: #FFFFFF;
    border-color: rgba(184, 155, 94, 0.55);
    box-shadow: 0 6px 16px rgba(20, 18, 16, 0.12);
}

.product-card-wishlist-btn:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 2px;
}

.product-card-share-btn {
    position: absolute;
    top: 3.25rem;
    inset-inline-end: 0.65rem;
    z-index: 15;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 36px;
    min-height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 155, 94, 0.28);
    color: var(--color-charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(20, 18, 16, 0.08);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    outline: none;
    opacity: 0;
}

.product-card:hover .product-card-share-btn,
.product-card:focus-within .product-card-share-btn,
.product-card-share-btn:focus-visible {
    opacity: 1;
}

.product-card-share-btn:hover {
    transform: scale(1.12);
    background: #FFFFFF;
    color: var(--color-champagne);
    border-color: rgba(184, 155, 94, 0.55);
    box-shadow: 0 6px 16px rgba(20, 18, 16, 0.12);
}

.product-card-share-btn:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 2px;
}

.product-card-wishlist-btn.active,
.product-card-wishlist-btn[aria-pressed="true"],
.product-card-wishlist-btn.is-in-wishlist {
    background: #FFFFFF;
    border-color: rgba(220, 38, 38, 0.35);
    color: #DC2626;
}

.product-card-wishlist-btn.active i,
.product-card-wishlist-btn[aria-pressed="true"] i,
.product-card-wishlist-btn.is-in-wishlist i {
    fill: #DC2626;
    color: #DC2626;
}

.modal-wishlist-toggle-btn {
    transition: all 0.2s ease;
}

.modal-wishlist-toggle-btn:hover {
    border-color: rgba(184, 155, 94, 0.6);
    background-color: var(--color-cream);
}

.modal-wishlist-toggle-btn.active,
.modal-wishlist-toggle-btn[aria-pressed="true"],
.modal-wishlist-toggle-btn.is-in-wishlist {
    border-color: rgba(220, 38, 38, 0.4);
    background-color: #FEF2F2;
    color: #DC2626;
}

.modal-wishlist-toggle-btn.active i,
.modal-wishlist-toggle-btn[aria-pressed="true"] i,
.modal-wishlist-toggle-btn.is-in-wishlist i {
    fill: #DC2626;
    color: #DC2626;
}

.product-multi-img-badge {
    position: absolute;
    bottom: 0.625rem;
    inset-inline-end: 0.625rem;
    z-index: 5;
    background: rgba(20, 18, 16, 0.75);
    backdrop-filter: blur(6px);
    color: #FDFBF7;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Quick View Overlay (Desktop Only) */
.product-card-quick-view {
    position: absolute;
    inset-inline: 0.875rem;
    bottom: 0.875rem;
    z-index: 6;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 155, 94, 0.3);
    color: var(--color-charcoal);
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 14px rgba(20, 18, 16, 0.1);
}

@media (hover: hover) {
    .product-card:hover .product-card-quick-view {
        opacity: 1;
        transform: translateY(0);
    }

    .product-card-quick-view:hover {
        background: var(--color-charcoal);
        color: var(--color-champagne);
        border-color: var(--color-charcoal);
    }
}

@media (hover: none) {
    .product-card-quick-view {
        display: none;
    }
}

/* Product Card Information Body */
.product-card-info {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9A7B38;
    margin-bottom: 0.25rem;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-charcoal);
    line-height: 1.35;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.375rem;
}

@media (hover: hover) {
    .product-card:hover .product-card-title {
        color: #8A6D2F;
    }
}

/* Product Card Bottom & Price Hierarchy */
.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.625rem;
    border-top: 1px solid rgba(28, 26, 24, 0.08);
}

.product-price-main {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-charcoal);
}

.product-price-old {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #8C827A;
    text-decoration: line-through;
    margin-inline-start: 0.375rem;
}

.product-stock-note {
    font-size: 0.625rem;
    font-weight: 600;
    color: #8A6D2F;
    display: block;
    margin-top: 0.125rem;
}

/* Quick Add Button */
.product-card-add-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: #F4EFEA;
    color: var(--color-charcoal);
    border: 1px solid rgba(184, 155, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
}

/* Expanded touch target for mobile */
.product-card-add-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
}

@media (hover: hover) {
    .product-card-add-btn:hover {
        background: var(--color-charcoal);
        color: var(--color-champagne);
        border-color: var(--color-charcoal);
        transform: scale(1.05);
    }
}

.product-card-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Luxury Skeleton Shimmer Loading */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #F5F1EB 25%, #EDE6DC 50%, #F5F1EB 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s infinite ease-in-out;
}

/* Mobile Optimizations (<= 640px) */
@media (max-width: 640px) {
    .product-card-info {
        padding: 0.625rem 0.625rem;
    }

    .product-card-category {
        font-size: 0.625rem;
    }

    .product-card-title {
        font-size: 0.75rem;
    }

    .product-price-main {
        font-size: 0.8125rem;
    }

    .product-card-add-btn {
        width: 2.125rem;
        height: 2.125rem;
        border-radius: 0.625rem;
    }

    .product-card-add-btn::before {
        content: '';
        position: absolute;
        inset: -8px;
    }

    .product-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .product-card,
    .product-card:hover,
    .product-img,
    .product-card .product-img-primary,
    .product-card .product-img-secondary,
    .product-card-quick-view,
    .product-card-add-btn {
        transition: none !important;
        transform: none !important;
    }

    .skeleton-shimmer {
        animation: none !important;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(184, 155, 94, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.category-card img {
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 155, 94, 0.6);
    box-shadow: 0 20px 40px -12px rgba(28, 26, 24, 0.25);
}

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

.category-card .category-overlay {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0) 35%, rgba(28, 26, 24, 0.88) 100%);
    transition: background 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.08) 15%, rgba(28, 26, 24, 0.94) 100%);
}

/* ==========================================
   Buttons
   ========================================== */
.btn-gold {
    background-color: var(--color-champagne);
    color: #FFFFFF;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-gold:hover {
    background-color: var(--color-champagne-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(184, 155, 94, 0.35);
}

.btn-charcoal {
    background-color: var(--color-charcoal);
    color: #FFFFFF;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-charcoal:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(28, 26, 24, 0.25);
}

.btn-outline-gold {
    border: 1.5px solid var(--color-champagne);
    color: var(--color-champagne);
    background: transparent;
    transition: all 0.25s ease;
}

.btn-outline-gold:hover {
    background-color: var(--color-champagne);
    color: #FFFFFF;
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-enter {
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-exit {
    animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* ==========================================
   Scroll Reveal Animation
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: #C4B69B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-champagne);
}

/* ==========================================
   Navbar & Mobile Menu
   ========================================== */
.nav-scrolled {
    background-color: rgba(28, 26, 24, 0.96) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

#mobile-menu.open {
    max-height: 480px;
}

/* ==========================================
   Print Stylesheet (Phase 3 Requirement)
   ========================================== */
@media print {

    /* Hide navigation, footers, and interactive controls */
    nav,
    footer,
    #navbar,
    #checkout-modal,
    #toast-container,
    button,
    a,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #1c1a18 !important;
        font-size: 11pt !important;
    }

    /* Clean Order Receipt Isolation */
    #order-confirmation-modal {
        position: static !important;
        display: block !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #order-confirmation-modal>div:first-child {
        display: none !important;
        /* Hide dark backdrop */
    }

    #order-confirmation-modal .relative {
        box-shadow: none !important;
        border: 1px solid #dcd5c7 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 24px !important;
        border-radius: 12px !important;
    }

    #confirm-order-items-box {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ==============================================================================
   TOP ANNOUNCEMENT BAR — INFINITE CONTINUOUS MARQUEE (Phase UI Enhancement)
   ============================================================================== */
:root {
    --announcement-duration: 32s;
    --announcement-duration-mobile: 26s;
}

.top-announcement-bar {
    width: 100%;
    max-width: 100vw;
    direction: ltr;
    /* Anchors the track at left: 0 so translateX(-25%) continuously loops seamlessly into incoming content from the right */
    background: linear-gradient(90deg, #141210 0%, #201c15 50%, #141210 100%);
    border-bottom: 1px solid rgba(184, 155, 94, 0.22);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 55;
    padding: 7px 0;
    contain: layout paint;
}

.top-announcement-track {
    display: flex;
    direction: ltr;
    width: max-content;
    animation: top-announcement-scroll var(--announcement-duration) linear infinite;
    -webkit-animation: top-announcement-scroll var(--announcement-duration) linear infinite;
    will-change: transform;
}

/* Pause on hover (Desktop pointer devices only) */
@media (hover: hover) and (pointer: fine) {
    .top-announcement-bar:hover .top-announcement-track {
        animation-play-state: paused;
    }
}

/* Never pause on touch / mobile devices */
@media (hover: none) and (pointer: coarse) {

    .top-announcement-bar:hover .top-announcement-track,
    .top-announcement-track:hover {
        animation-play-state: running !important;
    }
}

.top-announcement-content {
    display: inline-flex;
    direction: rtl;
    /* Ensures all Arabic text, highlights and icons read naturally in RTL */
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ede7dd;
    letter-spacing: 0.02em;
}

.top-announcement-item .gold-highlight {
    color: #d4a843;
    font-weight: 700;
}

.top-announcement-item .dot {
    color: rgba(212, 168, 67, 0.75);
    font-size: 8px;
}

/* Seamless infinite scroll: shifts by exactly ONE group width (-25% for 4 groups) */
@keyframes top-announcement-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-25%, 0, 0);
    }
}

@-webkit-keyframes top-announcement-scroll {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-25%, 0, 0);
    }
}

@media (max-width: 640px) {
    .top-announcement-bar {
        padding: 6px 0;
    }

    .top-announcement-item {
        font-size: 11px;
        padding: 0 18px;
        gap: 6px;
    }

    .top-announcement-track {
        animation-duration: var(--announcement-duration-mobile);
        -webkit-animation-duration: var(--announcement-duration-mobile);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .top-announcement-track,
    .marquee-track,
    .marquee-track-reverse {
        animation: none !important;
        -webkit-animation: none !important;
        transform: none !important;
    }
}

/* ==============================================================================
   HEADER & NAVBAR LUXURY EDITORIAL NAVIGATION SYSTEM
   ============================================================================== */
.header-nav-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (min-width: 1280px) {
    .header-nav-container {
        gap: 0.5rem;
    }
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 42px;
    padding-inline: 0.875rem;
    padding-block: 0.4rem;
    border-radius: 999px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #F8F6F0;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    user-select: none;
}

.nav-link:hover {
    color: #B89B5E;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(184, 155, 94, 0.22);
}

.nav-link:focus-visible {
    outline: 2px solid #B89B5E;
    outline-offset: 2px;
    border-radius: 999px;
}

.nav-link.active {
    color: #B89B5E;
    font-weight: 700;
    background: rgba(184, 155, 94, 0.12);
    border-color: rgba(184, 155, 94, 0.38);
    box-shadow: 0 2px 10px -2px rgba(184, 155, 94, 0.15);
}

/* Subtle indicator line under the active/hover link text */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    inset-inline: 1rem;
    height: 1.5px;
    background: #B89B5E;
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Specific Treatment for "كل التشكيلات" */
.nav-link-collection {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 155, 94, 0.24);
    padding-inline: 1rem;
}

.nav-link-collection:hover {
    background: rgba(184, 155, 94, 0.14);
    border-color: #B89B5E;
    color: #FFFFFF;
}

/* Specific Treatment for "تخفيضات" */
.nav-link-sale {
    background: rgba(184, 155, 94, 0.08);
    border: 1px solid rgba(184, 155, 94, 0.3);
    color: #E9DEC0;
    padding-inline: 0.875rem;
}

.nav-link-sale:hover {
    background: rgba(184, 155, 94, 0.2);
    border-color: #B89B5E;
    color: #FFFFFF;
}

.nav-link-sale i {
    color: #B89B5E;
    transition: transform 0.2s ease;
}

.nav-link-sale:hover i {
    transform: scale(1.15) rotate(10deg);
}

/* Mobile Drawer Links Enhancement */
.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding-inline: 1rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #F8F6F0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, rgba(28, 26, 24, 0.95) 0%, rgba(42, 35, 24, 0.95) 100%);
    border-color: rgba(184, 155, 94, 0.4);
    color: #B89B5E;
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, #1c1a18 0%, #2a2318 100%);
    border-color: rgba(184, 155, 94, 0.55);
    color: #B89B5E;
    font-weight: 700;
}

.mobile-nav-item-sale {
    border-color: rgba(184, 155, 94, 0.3);
    background: rgba(184, 155, 94, 0.06);
}

.nav-action-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.nav-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-champagne);
}

.nav-action-btn:active {
    transform: scale(0.94);
}

/* ==============================================================================
   PHASE 6: SEARCH & NAVIGATION — PREMIUM PRODUCT DISCOVERY
   ============================================================================== */

/* Header Search Trigger & Expandable Search Bar */
.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-box {
    display: none;
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(280px, calc(100vw - 2rem));
    z-index: 60;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
    .header-search-box {
        width: 340px;
    }
}

@media (min-width: 1024px) {
    .header-search-box {
        width: 380px;
    }
}

.header-search-box.active {
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 100%;
    min-height: 44px;
    padding-inline-start: 2.75rem;
    padding-inline-end: 2.5rem;
    border-radius: 999px;
    background: #1C1A18;
    border: 1.5px solid rgba(184, 155, 94, 0.45);
    color: #F8F6F0;
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input:focus {
    border-color: #B89B5E;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.25), 0 12px 35px -5px rgba(0, 0, 0, 0.6);
}

.header-search-icon-inside {
    position: absolute;
    inset-inline-start: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #B89B5E;
    pointer-events: none;
}

.header-search-close-btn {
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #A59F93;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Expanded touch target for close button */
.header-search-close-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
}

.header-search-close-btn:hover {
    color: #F8F6F0;
    background: rgba(255, 255, 255, 0.1);
}

/* Floating Live Suggestions Dropdown */
.search-suggestions-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: 100%;
    min-width: min(320px, calc(100vw - 1.5rem));
    max-width: min(420px, calc(100vw - 1.5rem));
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.3);
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
    z-index: 70;
    overflow: hidden;
    animation: searchPanelFadeIn 0.2s ease-out forwards;
}

.search-suggestions-panel.show {
    display: block;
}

@keyframes searchPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.search-suggestions-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(184, 155, 94, 0.12);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #836733;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(184, 155, 94, 0.08);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
    background: #F3EFE7;
}

.search-suggestion-thumb {
    width: 46px;
    height: 46px;
    border-radius: 0.625rem;
    object-fit: cover;
    border: 1px solid rgba(184, 155, 94, 0.18);
    flex-shrink: 0;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #242321;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
}

.search-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.search-suggestion-cat {
    color: #836733;
    font-weight: 600;
}

.search-suggestion-price {
    font-weight: 800;
    color: #242321;
}

.search-suggestion-footer {
    padding: 0.75rem 1rem;
    background: #F8F6F0;
    border-top: 1px solid rgba(184, 155, 94, 0.15);
    text-align: center;
}

.search-suggestion-footer a,
.search-suggestion-footer button {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #836733;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.search-suggestion-footer a:hover,
.search-suggestion-footer button:hover {
    color: #242321;
}

/* Mobile Search Expandable Tray */
.mobile-search-tray {
    display: none;
    background: #1C1A18;
    border-bottom: 1px solid rgba(184, 155, 94, 0.25);
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 45;
}

.mobile-search-tray.open {
    display: block;
}

/* ── Discovery Toolbar on products.html ──────────────────────────────────── */
.discovery-toolbar {
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px -8px rgba(28, 26, 24, 0.04);
}

.filter-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 44px;
    padding-inline: 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.22);
    color: #242321;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-toggle-pill:hover {
    border-color: rgba(184, 155, 94, 0.5);
    background: #F8F6F0;
}

.filter-toggle-pill.active {
    background: rgba(184, 155, 94, 0.14);
    border-color: #B89B5E;
    color: #836733;
    font-weight: 700;
    box-shadow: 0 2px 8px -2px rgba(184, 155, 94, 0.2);
}

.sort-dropdown-wrap select {
    appearance: none;
    background-color: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.22);
    border-radius: 999px;
    min-height: 44px;
    padding-inline-start: 1rem;
    padding-inline-end: 2.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    color: #242321;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23836733' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
}

[dir="ltr"] .sort-dropdown-wrap select {
    background-position: right 0.75rem center;
}

.sort-dropdown-wrap select:focus {
    outline: none;
    border-color: #B89B5E;
    box-shadow: 0 0 0 2px rgba(184, 155, 94, 0.2);
}

/* Active Filter Chips */
.active-filters-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(184, 155, 94, 0.12);
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #F3EFE7;
    border: 1px solid rgba(184, 155, 94, 0.3);
    color: #242321;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.active-filter-chip:hover {
    border-color: #B89B5E;
}

.active-filter-chip-remove {
    background: transparent;
    border: none;
    color: #836733;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.125rem;
}

.active-filter-chip-remove:hover {
    color: #242321;
}

.clear-all-chips-btn {
    background: transparent;
    border: none;
    color: #836733;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-inline-start: 0.5rem;
}

.clear-all-chips-btn:hover {
    color: #242321;
}

/* Results Count Header */
.results-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: #6F6A61;
}

.results-count-text {
    font-weight: 700;
    color: #242321;
}

/* Luxury Editorial Empty State */
.editorial-empty-state {
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.2);
    border-radius: 1.75rem;
    padding: 3.5rem 1.5rem;
    text-align: center;
    max-width: 28rem;
    margin: 2rem auto;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.editorial-empty-icon-wrap {
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, #F8F6F0 0%, #EEE9DF 100%);
    border: 1px solid rgba(184, 155, 94, 0.25);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #836733;
}

/* Cart & Wishlist Badge Enhancement */
.cart-count,
.wishlist-count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border-radius: 9999px;
    background: #d4a843;
    color: #1a1610;
    position: absolute;
    top: 2px;
    right: -2px;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==============================================================================
   CATEGORY FILTER BUTTONS (Desktop & Mobile Horizontal Smooth Scroll)
   ============================================================================== */
@media (max-width: 768px) {
    #category-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE 10+ */
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #category-filters::-webkit-scrollbar {
        display: none !important;
        /* Chrome/Safari */
    }

    #category-filters .filter-btn {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
    }
}

.filter-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:active {
    transform: scale(0.96);
}

/* ==============================================================================
   CART UI LUXURY ENHANCEMENTS
   ============================================================================== */
.cart-item-card {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.cart-item-card:hover {
    border-color: rgba(184, 155, 94, 0.4);
    box-shadow: 0 8px 24px -6px rgba(28, 26, 24, 0.08);
}

.qty-btn {
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.qty-btn:active {
    transform: scale(0.92);
}

/* Focus Visible Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #d4a843 !important;
    outline-offset: 2px !important;
}

/* ==============================================================================
   PHASE 3 — LUXURY PRODUCT DETAILS & EDITORIAL GALLERY EXPERIENCE
   ============================================================================== */
.product-modal-box {
    background-color: #fdfbf7;
    border: 1px solid rgba(184, 155, 94, 0.25);
    box-shadow: 0 25px 50px -12px rgba(20, 18, 16, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.product-gallery-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f5f2eb;
    border-radius: 1.25rem;
    border: 1px solid rgba(220, 213, 199, 0.8);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.25s ease;
}

.product-gallery-wrapper:hover {
    border-color: rgba(184, 155, 94, 0.5);
}

.product-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-gallery-counter-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(20, 18, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ede7dd;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    border: 1px solid rgba(184, 155, 94, 0.35);
    z-index: 10;
    pointer-events: none;
}

.modal-thumbnails-gallery {
    display: flex;
    gap: 0.625rem;
    padding: 0.35rem 0.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.modal-thumb-btn {
    width: 3.5rem;
    height: 4.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1.5px solid #dcd5c7;
    background-color: #f5f2eb;
    transition: all 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    scroll-snap-align: center;
    position: relative;
}

.modal-thumb-btn:hover {
    border-color: #b89b5e;
    transform: translateY(-2px);
}

.modal-thumb-btn.active {
    border-color: #b89b5e;
    box-shadow: 0 0 0 2px rgba(184, 155, 94, 0.5), 0 4px 12px rgba(184, 155, 94, 0.25);
    transform: translateY(-2px);
}

.modal-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variant Selectors */
.modal-size-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.125rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1.5px solid #dcd5c7;
    background-color: #ffffff;
    color: #1c1a18;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.modal-size-btn:hover {
    border-color: #b89b5e;
    background-color: #faf8f5;
    color: #1c1a18;
}

.modal-size-btn.active {
    background-color: #1c1a18;
    color: #d4a843;
    border-color: #b89b5e;
    box-shadow: 0 4px 12px rgba(28, 26, 24, 0.15);
}

.modal-color-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.125rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1.5px solid #dcd5c7;
    background-color: #ffffff;
    color: #1c1a18;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-color-btn:hover {
    border-color: #b89b5e;
    background-color: #faf8f5;
}

.modal-color-btn.active {
    background-color: #1c1a18;
    color: #d4a843;
    border-color: #b89b5e;
    box-shadow: 0 4px 12px rgba(28, 26, 24, 0.15);
}

.modal-qty-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #dcd5c7;
    color: #1c1a18;
    transition: all 0.15s ease;
    cursor: pointer;
}

.modal-qty-btn:hover {
    background-color: #1c1a18;
    color: #d4a843;
    border-color: #1c1a18;
}

.modal-qty-btn:active {
    transform: scale(0.92);
}

/* Lightbox Fullscreen Viewer */
#product-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    transition: opacity 0.25s ease;
}

#product-lightbox-modal.hidden {
    display: none !important;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-img-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 75vh;
    min-height: 240px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(184, 155, 94, 0.35);
    transition: opacity 0.2s ease;
    display: block;
    margin: 0 auto;
}

#lightbox-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#lightbox-error-fallback {
    z-index: 20;
    max-width: 320px;
    margin: 0 auto;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9999px;
    background: rgba(28, 26, 24, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 155, 94, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.lightbox-nav-btn:hover {
    background: #b89b5e;
    color: #1c1a18;
    border-color: #b89b5e;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-thumb-pill {
    width: 2.75rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    opacity: 0.6;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    background-color: #2a2724;
}

.lightbox-thumb-pill:hover,
.lightbox-thumb-pill.active {
    opacity: 1;
    border-color: #b89b5e;
    box-shadow: 0 0 0 2px rgba(184, 155, 94, 0.6);
    transform: scale(1.05);
}

.lightbox-thumb-pill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

    .product-modal-box,
    .product-gallery-img,
    .product-gallery-wrapper:hover .product-gallery-img,
    .gallery-zoom-hint,
    .modal-thumb-btn,
    .modal-size-btn,
    .modal-color-btn,
    .modal-qty-btn {
        transition: none !important;
        transform: none !important;
    }
}

/* ==============================================================================
   PHASE 4 — LUXURY CART & CHECKOUT EXPERIENCE
   ============================================================================== */

/* ── Cart Editorial Hero Strip ─────────────────────────────────────────────── */
.cart-hero-strip {
    padding: 2.5rem 0 1.75rem;
    border-bottom: 1px solid rgba(184, 155, 94, 0.18);
    margin-bottom: 2rem;
}

.cart-hero-strip .cart-hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9A7B38;
    display: block;
    margin-bottom: 0.4rem;
}

.cart-hero-strip h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: #1C1A18;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ── Luxury Cart Item Card ─────────────────────────────────────────────────── */
.cart-item-card {
    background-color: #ffffff;
    border: 1px solid #EDE8E0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #B89B5E 0%, #D4A843 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 2px 2px 0;
}

@media (hover: hover) {
    .cart-item-card:hover {
        border-color: rgba(184, 155, 94, 0.45);
        box-shadow: 0 12px 32px -8px rgba(28, 26, 24, 0.1), 0 2px 8px rgba(184, 155, 94, 0.06);
        transform: translateY(-2px);
    }

    .cart-item-card:hover::before {
        opacity: 1;
    }
}

/* Cart item product image */
.cart-item-card .cart-item-img {
    width: 5.5rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 0.875rem;
    flex-shrink: 0;
    background-color: #F5F2EB;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 640px) {
    .cart-item-card .cart-item-img {
        width: 6.5rem;
        height: 8.25rem;
    }
}

@media (hover: hover) {
    .cart-item-card:hover .cart-item-img {
        transform: scale(1.03);
    }
}

/* Cart item brand eyebrow label */
.cart-item-eyebrow {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A7B38;
    display: block;
    margin-bottom: 0.25rem;
}

/* Variant pills (size / color) */
.cart-variant-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #FAF8F4;
    border: 1px solid #E5DFD5;
    color: #1C1A18;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
}

.cart-variant-pill .pill-label {
    color: #9A887A;
    font-weight: 500;
}

/* ── Quantity Stepper (Luxury Pill) ───────────────────────────────────────── */
.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1.5px solid #E0D9CE;
    border-radius: 9999px;
    padding: 0.25rem;
    background: #FAF8F4;
}

.cart-qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 40px;
    min-height: 40px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #E5DFD5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C1A18;
    transition: all 0.18s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.cart-qty-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
}

@media (hover: hover) {
    .cart-qty-btn:hover {
        background: #1C1A18;
        color: #D4A843;
        border-color: #1C1A18;
    }
}

.cart-qty-btn:active {
    transform: scale(0.88);
}

.cart-qty-display {
    min-width: 2rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: #1C1A18;
    user-select: none;
}

/* Cart item price + remove row */
.cart-item-price {
    font-size: 1rem;
    font-weight: 900;
    color: #1C1A18;
    letter-spacing: -0.01em;
}

.cart-remove-btn {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A59F93;
    transition: all 0.18s ease;
    cursor: pointer;
}

@media (hover: hover) {
    .cart-remove-btn:hover {
        color: #DC2626;
        background: #FEF2F2;
    }
}

.cart-remove-btn:active {
    transform: scale(0.9);
}

/* ── Order Summary Sidebar (Luxury Panel) ─────────────────────────────────── */
.cart-summary-panel {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #EDE8E0;
    padding: 1.75rem;
    box-shadow: 0 4px 24px -6px rgba(28, 26, 24, 0.07);
    position: sticky;
    top: 7rem;
    overflow: hidden;
}

.cart-summary-panel::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #B89B5E 0%, #D4C07A 50%, #B89B5E 100%);
    border-radius: 0 0 2px 2px;
}

.cart-summary-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1C1A18;
    margin-bottom: 1.25rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid #EDE8E0;
}

/* Coupon input row */
.coupon-input-field {
    width: 100%;
    background: #FAF8F4;
    border: 1.5px solid #E0D9CE;
    color: #1C1A18;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.coupon-input-field:focus {
    border-color: #B89B5E;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.15);
}

.coupon-input-field::placeholder {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    color: #B8B0A5;
}

.coupon-apply-btn {
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background: #1C1A18;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

@media (hover: hover) {
    .coupon-apply-btn:hover {
        background: #B89B5E;
        color: #1C1A18;
    }
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.summary-row-label {
    color: #76726B;
}

.summary-row-value {
    font-weight: 700;
    color: #1C1A18;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1.5px solid #EDE8E0;
}

.summary-total-label {
    font-size: 1rem;
    font-weight: 800;
    color: #1C1A18;
}

.summary-total-value {
    font-size: 1.625rem;
    font-weight: 900;
    color: #1C1A18;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Trust badge strip in sidebar */
.cart-trust-strip {
    border-top: 1px solid #EDE8E0;
    padding-top: 1.125rem;
    margin-top: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: #76726B;
}

.cart-trust-item svg,
.cart-trust-item i {
    color: #B89B5E;
    flex-shrink: 0;
}

/* ── Empty Cart State ─────────────────────────────────────────────────────── */
.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #EDE8E0;
}

.cart-empty-icon-wrap {
    width: 5.5rem;
    height: 5.5rem;
    background: linear-gradient(135deg, #FAF8F4 0%, #F2EDE2 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid #E5DFD5;
    color: #B89B5E;
}

/* ── CTA Button Shimmer Animation ─────────────────────────────────────────── */
@keyframes btn-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.btn-gold-shimmer {
    background: linear-gradient(100deg,
            #B89B5E 0%,
            #D4A843 40%,
            #EDD078 50%,
            #D4A843 60%,
            #B89B5E 100%);
    background-size: 200% auto;
    color: #1C1A18;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: btn-shimmer 4s linear infinite;
}

@media (hover: hover) {
    .btn-gold-shimmer:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px -6px rgba(184, 155, 94, 0.45);
        animation-duration: 2s;
    }
}

.btn-gold-shimmer:active {
    transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .btn-gold-shimmer {
        animation: none !important;
        background: #B89B5E;
        color: #1C1A18;
    }
}

/* ── Checkout Modal Luxury ────────────────────────────────────────────────── */
.checkout-modal-card {
    background: #FDFBF7;
    border: 1px solid rgba(184, 155, 94, 0.2);
    border-radius: 1.75rem;
    box-shadow: 0 32px 64px -16px rgba(20, 18, 16, 0.35);
    overflow: hidden;
    position: relative;
}

.checkout-modal-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #B89B5E 0%, #D4C07A 50%, #B89B5E 100%);
}

.checkout-modal-header {
    border-bottom: 1px solid #EDE8E0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Form field luxury style */
.checkout-field {
    width: 100%;
    background: #FAF8F4;
    border: 1.5px solid #E0D9CE;
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Cairo', sans-serif;
    color: #1C1A18;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.checkout-field:focus {
    border-color: #B89B5E;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.14);
}

.checkout-field::placeholder {
    color: #B8B0A5;
    font-weight: 400;
}

.checkout-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1C1A18;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.checkout-required-star {
    color: #DC2626;
    margin-inline-start: 0.125rem;
}

/* Trust notice callout in checkout modal */
.checkout-trust-notice {
    background: linear-gradient(135deg, #FBF8F1 0%, #F7F2E8 100%);
    border: 1px solid rgba(184, 155, 94, 0.3);
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout-trust-notice-icon {
    color: #9A7B38;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkout-trust-notice p {
    font-size: 0.75rem;
    color: #5A4A28;
    line-height: 1.55;
}

/* ── Order Confirmation Modal: Luxury Haute Couture Package Animation ────── */
.couture-success-anim-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.couture-anim-aura {
    position: absolute;
    inset: -12px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(184, 155, 94, 0.28) 0%, rgba(184, 155, 94, 0.08) 50%, rgba(184, 155, 94, 0) 75%);
    animation: coutureAuraPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

.couture-anim-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.couture-box-body {
    transform-origin: 80px 110px;
    animation: coutureBoxAppear 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.couture-box-lid {
    transform-origin: 80px 75px;
    animation: coutureLidOpen 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.couture-seal-reveal {
    transform-origin: 80px 62px;
    opacity: 0;
    transform: scale(0.3) translateY(24px);
    animation: coutureSealBloom 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.couture-checkmark-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: coutureCheckDraw 0.45s ease-out 1.25s forwards;
}

.couture-sparkle {
    opacity: 0;
    transform-origin: center;
    animation: coutureSparkleTwinkle 1.8s ease-in-out 1.4s infinite alternate;
}

.couture-sparkle.sp-1 { animation-delay: 1.35s; }
.couture-sparkle.sp-2 { animation-delay: 1.55s; }
.couture-sparkle.sp-3 { animation-delay: 1.7s; }
.couture-sparkle.sp-4 { animation-delay: 1.85s; }

@keyframes coutureAuraPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes coutureBoxAppear {
    0% { transform: scale(0.65) translateY(16px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes coutureLidOpen {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(-8deg); }
}

@keyframes coutureSealBloom {
    0% { transform: scale(0.3) translateY(24px); opacity: 0; }
    70% { transform: scale(1.1) translateY(-6px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes coutureCheckDraw {
    0% { stroke-dashoffset: 30; }
    100% { stroke-dashoffset: 0; }
}

@keyframes coutureSparkleTwinkle {
    0% { opacity: 0; transform: scale(0.4) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(15deg); }
    100% { opacity: 0.7; transform: scale(0.9) rotate(-10deg); }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .couture-anim-aura,
    .couture-box-body,
    .couture-box-lid,
    .couture-seal-reveal,
    .couture-checkmark-path,
    .couture-sparkle {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
    }
    .couture-box-lid {
        transform: translateY(-16px) rotate(-6deg) !important;
    }
    .couture-seal-reveal {
        transform: translateY(0) scale(1) !important;
    }
}

.order-confirm-success-ring {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1.5px solid #BBF7D0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08), 0 8px 24px -6px rgba(16, 185, 129, 0.2);
    color: #059669;
    animation: successRingPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successRingPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-receipt-card {
    background: #FAF8F4;
    border: 1px solid #EDE8E0;
    border-radius: 1rem;
    padding: 1.125rem 1.25rem;
    text-align: start;
}

.order-receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
}

.order-receipt-row:not(:last-child) {
    border-bottom: 1px solid #EDE8E0;
}

.order-receipt-label {
    color: #76726B;
}

.order-receipt-value {
    font-weight: 700;
    color: #1C1A18;
    text-align: end;
    max-width: 65%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-receipt-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.875rem;
    margin-top: 0.25rem;
    border-top: 1.5px solid #DCD5C7;
}

.order-delivery-callout {
    background: linear-gradient(135deg, #FBF8F1 0%, #F7F2E8 100%);
    border: 1px solid rgba(184, 155, 94, 0.28);
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: #5A4A28;
    line-height: 1.55;
}

.order-delivery-callout i {
    color: #9A7B38;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Items list scroll area in confirmation */
.order-items-scroll {
    max-height: 9rem;
    overflow-y: auto;
    border: 1px solid #EDE8E0;
    border-radius: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: #ffffff;
    font-size: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #C4B69B #FAF8F4;
}

.order-items-scroll::-webkit-scrollbar {
    width: 4px;
}

.order-items-scroll::-webkit-scrollbar-track {
    background: #FAF8F4;
}

.order-items-scroll::-webkit-scrollbar-thumb {
    background: #C4B69B;
    border-radius: 4px;
}

/* ── Phase 4 Responsive Overrides ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .cart-item-card {
        padding: 1rem;
        gap: 0.875rem;
    }

    .cart-qty-btn {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 42px;
        min-height: 42px;
    }

    .cart-qty-btn::before {
        content: '';
        position: absolute;
        inset: -4px;
    }

    .cart-remove-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .cart-summary-panel {
        padding: 1.25rem;
        position: static;
    }

    .summary-total-value {
        font-size: 1.375rem;
    }

    .checkout-modal-card {
        border-radius: 1.25rem;
    }
}

/* ── Phase 4.1: Delivery Method Selector ──────────────────────────────────── */
.delivery-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.delivery-method-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1.5px solid #EDE8E0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.delivery-method-option:hover {
    border-color: rgba(184, 155, 94, 0.5);
    background: #FCFAF7;
}

.delivery-method-option.active {
    border-color: #B89B5E;
    background: rgba(184, 155, 94, 0.08);
    box-shadow: 0 0 0 1px rgba(184, 155, 94, 0.35);
}

.delivery-method-option input[type="radio"] {
    accent-color: #9C7D3C;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
}

.delivery-method-option input[type="radio"]:focus-visible {
    outline: 2px solid #B89B5E;
    outline-offset: 2px;
}

.delivery-method-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.delivery-method-option.active .delivery-method-icon-wrap {
    background: #1C1A18;
    color: #C4B69B;
}

.delivery-method-option:not(.active) .delivery-method-icon-wrap {
    background: #FAF8F4;
    color: #6E6860;
    border: 1px solid #EDE8E0;
}

.checkout-shipping-preview-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    background: #FAF8F4;
    border: 1px solid #EDE8E0;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

@media (max-width: 639px) {
    .delivery-method-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Phase 5.1: Luxury Color Harmony & Comfortable Editorial Backgrounds ── */
#brand-manifesto {
    background-color: #F3EFE7;
    border-bottom: 1px solid rgba(184, 155, 94, 0.12);
}

.editorial-manifesto-card {
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -8px rgba(28, 26, 24, 0.04);
}

.editorial-manifesto-card:hover {
    border-color: rgba(184, 155, 94, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -12px rgba(28, 26, 24, 0.08);
}

.editorial-manifesto-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B89B5E 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.editorial-manifesto-card:hover::before {
    opacity: 1;
}

.editorial-manifesto-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #F3EFE7;
    border: 1px solid rgba(184, 155, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #836733;
    margin-bottom: 1.5rem;
}

#atelier-story {
    background-color: #F8F6F0;
}

.editorial-stat-card {
    background: #FCFAF5;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(184, 155, 94, 0.18);
}

.editorial-quote-box {
    border-inline-start: 2.5px solid #B89B5E;
    padding-inline-start: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4A4640;
    background: linear-gradient(to inline-end, rgba(184, 155, 94, 0.04), transparent);
    padding-block: 0.75rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

.editorial-seal-badge {
    background: rgba(29, 28, 26, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 155, 94, 0.35);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: #F8F6F0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
    max-width: min(20rem, calc(100% - 2rem));
    box-sizing: border-box;
}

#brand-philosophy {
    background-color: #242321;
}

#brand-philosophy .font-heading {
    color: #F8F6F0 !important;
}

#brand-philosophy p {
    color: rgba(248, 246, 240, 0.72) !important;
}

.editorial-philosophy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: all 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.editorial-philosophy-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(184, 155, 94, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.editorial-roman-numeral {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #B89B5E;
    opacity: 0.85;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

#brand-experience {
    background-color: #EEE9DF;
    border-bottom: 1px solid rgba(184, 155, 94, 0.12);
}

.editorial-experience-card {
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -8px rgba(28, 26, 24, 0.04);
}

.editorial-experience-card:hover {
    border-color: rgba(184, 155, 94, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(28, 26, 24, 0.08);
}

.editorial-experience-icon-wrap {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #FAF8F4 0%, #EEE9DF 100%);
    border: 1px solid rgba(184, 155, 94, 0.22);
    color: #9C7D3C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.editorial-experience-card:hover .editorial-experience-icon-wrap {
    background: #242321;
    color: #B89B5E;
    border-color: #B89B5E;
}

#editorial-cta {
    background-color: #F8F6F0;
}

.editorial-cta-card {
    background-color: #1D1C1A;
    border: 1px solid rgba(184, 155, 94, 0.22);
    border-radius: 1.5rem;
    color: #F8F6F0;
    box-shadow: 0 25px 50px -12px rgba(20, 19, 18, 0.35);
}

.editorial-cta-card h2 {
    color: #F8F6F0;
}

.editorial-cta-card p {
    color: rgba(248, 246, 240, 0.75);
}

/* ==============================================================================
   PHASE 7: PRODUCT DISCOVERY & CONVERSION UX
   Related Products, Recently Viewed & Luxury Shopping Continuity
   ============================================================================== */

/* Modal Related Products Section ("قد يعجبك أيضاً") */
.modal-related-section {
    border-top: 1px solid rgba(229, 222, 210, 0.9);
    padding-top: 1.75rem;
    margin-top: 1.5rem;
}

.modal-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.modal-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .modal-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Modal Related Mini-Card Optimization */
.modal-related-grid .product-card {
    background: #FCFAF5;
    border: 1px solid rgba(184, 155, 94, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.modal-related-grid .product-card-title {
    font-size: 0.8125rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.modal-related-grid .product-price-main {
    font-size: 0.875rem;
}

/* Recently Viewed Section ("شوهدت مؤخراً") */
.recently-viewed-section {
    background: linear-gradient(180deg, transparent 0%, rgba(243, 239, 231, 0.45) 100%);
    border-top: 1px solid rgba(184, 155, 94, 0.2);
    border-radius: 2rem 2rem 0 0;
    padding-top: 3.5rem;
    margin-top: 4rem;
}

.recently-viewed-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(184, 155, 94, 0.25);
}

.recently-viewed-clear-btn {
    font-size: 0.75rem;
    color: #8C827A;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.recently-viewed-clear-btn:hover {
    color: #B89B5E;
}

/* Enhanced Luxury Add-To-Cart Feedback Toast */
.toast-cart-card {
    background: #1D1C1A;
    border: 1px solid rgba(184, 155, 94, 0.45);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(24rem, calc(100vw - 1.5rem));
    width: 100%;
    box-sizing: border-box;
    color: #F8F6F0;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-cart-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-cart-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: rgba(184, 155, 94, 0.16);
    border: 1px solid rgba(184, 155, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B89B5E;
    flex-shrink: 0;
}

.toast-cart-info {
    flex: 1;
    min-width: 0;
}

.toast-cart-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #B89B5E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.125rem;
}

.toast-cart-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #F8F6F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toast-cart-continue-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(248, 246, 240, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.toast-cart-continue-btn:hover {
    color: #F8F6F0;
    background: rgba(255, 255, 255, 0.06);
}

.toast-cart-view-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1D1C1A;
    background: linear-gradient(135deg, #d4a843 0%, #b89b5e 100%);
    padding: 0.45rem 0.875rem;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(184, 155, 94, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toast-cart-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(184, 155, 94, 0.4);
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .cart-item-card,
    .cart-item-card:hover,
    .cart-item-card .cart-item-img,
    .cart-qty-btn,
    .cart-remove-btn,
    .coupon-apply-btn,
    .checkout-field,
    .delivery-method-option,
    .delivery-method-icon-wrap,
    .nav-link,
    .nav-link::after,
    .nav-link-collection,
    .nav-link-sale,
    .mobile-nav-item,
    .header-search-box,
    .search-suggestions-panel,
    .filter-toggle-pill,
    .active-filter-chip,
    .editorial-manifesto-card,
    .editorial-manifesto-card:hover,
    .editorial-philosophy-card,
    .editorial-philosophy-card:hover,
    .editorial-experience-card,
    .editorial-experience-card:hover,
    .editorial-experience-icon-wrap,
    .toast-cart-card,
    .toast-cart-view-btn {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ==============================================================================
   PHASE 12: BILINGUAL LTR DIRECTIONAL SUPPORT
   ============================================================================== */
html[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] .top-announcement-content {
    direction: ltr;
}

html[dir="ltr"] .text-right:not(.ltr-keep-right) {
    text-align: left;
}

html[dir="ltr"] th, 
html[dir="ltr"] td {
    text-align: left;
}

html[dir="ltr"] .search-suggestions-panel {
    text-align: left;
}

/* ==============================================================================
   PHASE 13 — QUIET LUXURY SIZE GUIDE EXPERIENCE
   ============================================================================== */
.size-guide-modal-box {
    background-color: #fdfbf7;
    border: 1px solid rgba(184, 155, 94, 0.28);
    box-shadow: 0 25px 50px -12px rgba(20, 18, 16, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.size-guide-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #9A7B38;
    background: transparent;
    border: 1px solid rgba(184, 155, 94, 0.35);
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 28px;
}

.size-guide-trigger-btn:hover {
    color: #1c1a18;
    background-color: rgba(184, 155, 94, 0.12);
    border-color: #b89b5e;
    transform: translateY(-1px);
}

.size-guide-trigger-btn:focus-visible {
    outline: 2px solid #b89b5e;
    outline-offset: 2px;
}

.size-guide-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
    color: #76726b;
    background-color: transparent;
    min-height: 40px;
}

.size-guide-tab-btn:hover {
    color: #1c1a18;
    background-color: rgba(242, 238, 230, 0.7);
}

.size-guide-tab-btn.active {
    background-color: #1c1a18;
    color: #d4a843;
    border-color: rgba(184, 155, 94, 0.4);
    box-shadow: 0 4px 12px rgba(28, 26, 24, 0.12);
}

.size-guide-tab-btn:focus-visible {
    outline: 2px solid #b89b5e;
    outline-offset: 2px;
}

/* Reference Table */
.size-guide-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    border: 1px solid rgba(220, 213, 199, 0.85);
    background-color: #ffffff;
}

.size-guide-table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.size-guide-table th {
    background-color: #f7f4ee;
    color: #1c1a18;
    font-weight: 800;
    padding: 0.875rem 1rem;
    text-align: right;
    border-bottom: 1.5px solid rgba(184, 155, 94, 0.25);
    letter-spacing: 0.02em;
}

html[dir="ltr"] .size-guide-table th {
    text-align: left;
}

.size-guide-table td {
    padding: 0.875rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(240, 238, 235, 0.9);
    color: #423f3a;
}

html[dir="ltr"] .size-guide-table td {
    text-align: left;
}

.size-guide-table tr:last-child td {
    border-bottom: none;
}

.size-guide-table tr:hover td {
    background-color: #fdfbf7;
}

.size-guide-table tr.highlight-available td {
    background-color: #fcf9f2;
}

.size-guide-table tr.highlight-available td:first-child {
    font-weight: 800;
    color: #9A7B38;
}

/* How to Measure Cards */
.size-guide-measure-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background-color: #ffffff;
    border: 1px solid rgba(220, 213, 199, 0.7);
    transition: all 0.2s ease;
}

.size-guide-measure-card:hover {
    border-color: rgba(184, 155, 94, 0.45);
    box-shadow: 0 4px 14px rgba(28, 26, 24, 0.04);
}

.size-guide-step-num {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 0.625rem;
    background-color: #1c1a18;
    color: #d4a843;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    border: 1px solid rgba(184, 155, 94, 0.3);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    .size-guide-modal-box,
    .size-guide-trigger-btn,
    .size-guide-tab-btn,
    .size-guide-measure-card,
    .btn-whatsapp-inquiry {
        transition: none !important;
        transform: none !important;
    }
}

/* ==============================================================================
   PHASE 14: WHATSAPP PRODUCT INQUIRY (Quiet Luxury CTA)
   ============================================================================== */
.btn-whatsapp-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #FAF8F5;
    background: #1C1917;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp-inquiry:hover {
    background: #064E3B;
    border-color: rgba(52, 211, 153, 0.65);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.btn-whatsapp-inquiry:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-whatsapp-inquiry:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45);
}

.btn-whatsapp-inquiry .wa-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #34D399;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-whatsapp-inquiry:hover .wa-icon {
    transform: scale(1.12);
}

/* ===================================================
   PHASE 15.1-D.2: ORDER TRACKING TIMELINE
   =================================================== */
.tracking-timeline-wrap {
    position: relative;
    padding-left: 2.25rem;
}
[dir="rtl"] .tracking-timeline-wrap {
    padding-left: 0;
    padding-right: 2.25rem;
}
.tracking-timeline-wrap::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 11px;
    width: 2px;
    background: #E5E0D6;
}
[dir="rtl"] .tracking-timeline-wrap::before {
    left: auto;
    right: 11px;
}
.tracking-timeline-node {
    position: relative;
    margin-bottom: 2rem;
}
.tracking-timeline-node:last-child {
    margin-bottom: 0;
}
.tracking-node-dot {
    position: absolute;
    top: 2px;
    left: -2.25rem;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 2px solid #D5CEBE;
    z-index: 10;
    transition: all 0.3s ease;
}
[dir="rtl"] .tracking-node-dot {
    left: auto;
    right: -2.25rem;
}
.tracking-node-dot.completed {
    background: #B89B5E;
    border-color: #B89B5E;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(184, 155, 94, 0.15);
}
.tracking-node-dot.current {
    background: #1C1A18;
    border-color: #B89B5E;
    color: #D4AF37;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.25);
    animation: trackingPulse 2s infinite ease-in-out;
}
.tracking-node-dot.upcoming {
    background: #FFFFFF;
    border-color: #E5E0D6;
    color: #A39D93;
}
.tracking-node-dot.cancelled {
    background: #DC2626;
    border-color: #DC2626;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}
@keyframes trackingPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(184, 155, 94, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(184, 155, 94, 0.05); }
}

/* ── Phase 15.1-E: Algerian Craftsmanship Editorial Section ── */
#algerian-craftsmanship {
    background-color: #FAF8F4;
    border-top: 1px solid rgba(184, 155, 94, 0.16);
    border-bottom: 1px solid rgba(184, 155, 94, 0.16);
    position: relative;
}

.craftsmanship-media-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(184, 155, 94, 0.28);
    box-shadow: 0 16px 36px -12px rgba(28, 26, 24, 0.08);
    background: #1C1A18;
}

.craftsmanship-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.craftsmanship-media-frame:hover img {
    transform: scale(1.03);
}

.craftsmanship-badge-overlay {
    position: absolute;
    bottom: 1.25rem;
    inset-inline-start: 1.25rem;
    background: rgba(28, 26, 24, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 155, 94, 0.35);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    color: #F8F5EF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.craftsmanship-pillar-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(28, 26, 24, 0.02);
}

.craftsmanship-pillar-card:hover {
    border-color: rgba(184, 155, 94, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px rgba(28, 26, 24, 0.08);
}

.craftsmanship-pillar-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #FAF8F4;
    border: 1px solid rgba(184, 155, 94, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #836733;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .craftsmanship-media-frame img,
    .craftsmanship-pillar-card,
    .craftsmanship-cta {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================
   PHASE 8: WHY CHOOSE AB COUTURE (Trust & Value Proposition)
   ========================================== */
.why-choose-section {
    background-color: #FAF8F4;
    position: relative;
    border-bottom: 1px solid rgba(184, 155, 94, 0.16);
}

.why-choose-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(28, 26, 24, 0.02);
    position: relative;
    height: 100%;
}

.why-choose-card:hover {
    border-color: rgba(184, 155, 94, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(28, 26, 24, 0.08);
}

.why-choose-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #FAF8F4 0%, #F2EEE6 100%);
    border: 1px solid rgba(184, 155, 94, 0.25);
    color: #9C7D3C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-choose-card:hover .why-choose-icon-wrap {
    background: #242321;
    color: #B89B5E;
    border-color: #B89B5E;
    transform: scale(1.05);
}

.why-choose-card h3 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.why-choose-card p {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 640px) {
    .why-choose-card {
        padding: 1.35rem 1.15rem;
        border-radius: 1.125rem;
    }
    
    .why-choose-icon-wrap {
        width: 3rem;
        height: 3rem;
        border-radius: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .why-choose-card h3 {
        font-size: 0.975rem;
    }

    .why-choose-card p {
        font-size: 0.785rem;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .why-choose-card,
    .why-choose-card:hover,
    .why-choose-icon-wrap,
    .why-choose-card:hover .why-choose-icon-wrap {
        transition: none !important;
        transform: none !important;
    }
}

/* ==============================================================================
   HEADER NAVIGATION REORGANIZATION & DROPDOWN (Phase 16)
   ============================================================================== */
.header-nav-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-btn .chevron-icon {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-wrapper:hover .nav-dropdown-btn .chevron-icon,
.nav-dropdown-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 230px;
    background: rgba(22, 22, 22, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(184, 155, 94, 0.35);
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

[dir="rtl"] .nav-dropdown-menu {
    transform: translateX(50%) translateY(8px);
}

.nav-dropdown-wrapper.open .nav-dropdown-menu,
.nav-dropdown-menu.open,
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

[dir="rtl"] .nav-dropdown-wrapper.open .nav-dropdown-menu,
[dir="rtl"] .nav-dropdown-menu.open,
[dir="rtl"] .nav-dropdown-wrapper:hover .nav-dropdown-menu,
[dir="rtl"] .nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
    transform: translateX(50%) translateY(0);
}

.nav-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.625rem 0.85rem;
    border-radius: 10px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #F8F6F0;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
    background: rgba(184, 155, 94, 0.15);
    color: #d4a843;
    padding-inline-start: 1rem;
}

.nav-dropdown-item-all {
    background: rgba(184, 155, 94, 0.08);
    border: 1px solid rgba(184, 155, 94, 0.2);
    margin-top: 0.15rem;
}

.nav-dropdown-item-all:hover {
    background: rgba(184, 155, 94, 0.2);
    border-color: rgba(184, 155, 94, 0.45);
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(184, 155, 94, 0.2);
    margin: 0.35rem 0.25rem;
}

/* Mobile Navigation Accordion */
.mobile-nav-accordion {
    width: 100%;
}

.mobile-accordion-trigger {
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: inherit;
}

.mobile-accordion-trigger .mobile-chevron {
    transition: transform 0.25s ease;
}

.mobile-accordion-trigger[aria-expanded="true"] .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    padding-inline-start: 1.25rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-subnav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #E2DFD8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.18s ease;
}

.mobile-subnav-item:hover,
.mobile-subnav-item:active {
    background: rgba(184, 155, 94, 0.16);
    color: #d4a843;
    border-color: rgba(184, 155, 94, 0.35);
}

/* Brand Pages Refinement (About & Contact) */
.brand-page-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 1) 100%);
    border-bottom: 1px solid rgba(184, 155, 94, 0.2);
}

.brand-craft-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 155, 94, 0.18);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-craft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -4px rgba(184, 155, 94, 0.15);
    border-color: rgba(184, 155, 94, 0.45);
}

.brand-contact-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 155, 94, 0.2);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 155, 94, 0.5);
    box-shadow: 0 14px 34px -4px rgba(184, 155, 94, 0.14);
}

/* ==============================================================================
   PHASE 9 — VISUAL POLISH & LUXURY UX REFINEMENT
   ============================================================================== */

/* 1. Header Navigation Micro-Polish */
.header-nav-container {
    gap: 0.4rem;
}

@media (min-width: 1280px) {
    .header-nav-container {
        gap: 0.55rem;
    }
}

.nav-link {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
    transform: translateY(-0.5px);
}

.nav-link:active {
    transform: translateY(0);
}

/* 2. Quiet Luxury Product Card Polish */
.product-card {
    border: 1px solid rgba(184, 155, 94, 0.22);
    box-shadow: 0 2px 10px -2px rgba(28, 26, 24, 0.04);
}

.product-card:hover {
    border-color: rgba(184, 155, 94, 0.45);
    box-shadow: 0 14px 28px -8px rgba(28, 26, 24, 0.08), 0 2px 8px -2px rgba(184, 155, 94, 0.12);
}

/* Ensure mobile title matches clamp and height */
@media (max-width: 640px) {
    .product-card-title {
        font-size: 0.75rem;
        min-height: 2.1rem;
        -webkit-line-clamp: 2;
    }
}

/* 3. Wishlist Heart Interaction Micro-Polish */
.product-card-wishlist-btn {
    border: 1px solid rgba(184, 155, 94, 0.32);
    box-shadow: 0 3px 10px rgba(28, 26, 24, 0.07);
}

.product-card-wishlist-btn:hover {
    border-color: rgba(184, 155, 94, 0.65);
    box-shadow: 0 4px 14px rgba(28, 26, 24, 0.12);
}

.product-card-wishlist-btn:active {
    transform: scale(0.95);
}

/* 4. Button System Standardization */
.btn-gold:active,
.btn-charcoal:active,
.btn-outline-gold:active {
    transform: translateY(0.5px) scale(0.995);
}

.btn-gold:focus-visible,
.btn-charcoal:focus-visible,
.btn-outline-gold:focus-visible {
    outline: 2px solid #B89B5E;
    outline-offset: 2px;
}

/* 5. Editorial & Craftsmanship Polish */
.editorial-quote-box {
    border-inline-start: 3px solid #B89B5E;
    padding-inline-start: 1rem;
    padding-block: 0.5rem;
    background: rgba(184, 155, 94, 0.04);
    border-radius: 0 0.75rem 0.75rem 0;
}

[dir="rtl"] .editorial-quote-box {
    border-radius: 0.75rem 0 0 0.75rem;
}

.editorial-stat-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 155, 94, 0.2);
    border-radius: 1rem;
    padding: 1.125rem 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.editorial-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 155, 94, 0.45);
    box-shadow: 0 8px 20px -4px rgba(184, 155, 94, 0.12);
}

/* 6. Product Details Modal & Gallery Polish (NO ZOOM) */
#product-detail-modal .modal-image-thumb {
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

#product-detail-modal .modal-image-thumb:hover {
    transform: translateY(-1px);
}

#product-detail-modal .modal-image-thumb.active {
    border-color: #B89B5E;
    box-shadow: 0 0 0 2px rgba(184, 155, 94, 0.25);
}

/* ===================================================
   FOOTER LUXURY CIRCULAR SOCIAL ICONS
   =================================================== */
.footer-social-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.875rem;
}

.footer-social-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(36, 35, 33, 0.6);
    border: 1px solid rgba(184, 155, 94, 0.45);
    color: #B89B5E;
    transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(184, 155, 94, 0.15);
    border-color: #B89B5E;
    color: #FDFBF7;
    box-shadow: 0 4px 12px rgba(184, 155, 94, 0.25);
}

.footer-social-btn:focus-visible {
    outline: 2px solid #B89B5E;
    outline-offset: 2px;
}

.footer-social-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 200ms ease;
}

@media (max-width: 640px) {
    .footer-social-group {
        gap: 10px;
    }
    .footer-social-btn {
        width: 40px;
        height: 40px;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px;
        max-height: 40px;
    }
    .footer-social-btn svg {
        width: 17px;
        height: 17px;
    }
}

/* ==============================================================================
   PHASE: MOBILE HEADER & ORDER TRACKING UX REFINEMENT
   ============================================================================== */

/* 1. Mobile Header Balance & Spacing (Viewports <= 640px) */
@media (max-width: 640px) {
    #navbar > .max-w-7xl {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #navbar .flex.items-center.justify-between {
        gap: 0.5rem;
    }

    /* Brand typography on mobile to prevent colliding with action icons */
    #navbar a[aria-label="AB COUTURE"] {
        max-width: 120px;
        flex-shrink: 0;
    }

    #navbar a[aria-label="AB COUTURE"] > span:first-child {
        font-size: 0.9375rem !important;
        letter-spacing: 0.12em !important;
    }

    #navbar a[aria-label="AB COUTURE"] > span:last-child {
        font-size: 7.5px !important;
        letter-spacing: 0.18em !important;
    }

    /* Action icons container: comfortable flexbox with controlled gaps */
    #navbar .shrink-0.flex.items-center {
        gap: 4px;
        flex-shrink: 0;
    }

    /* Touch targets: 44px min-height, 40px width with comfortable hit area */
    .nav-action-btn {
        min-width: 40px;
        min-height: 44px;
        width: 40px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Language Switcher pill on mobile */
    #header-lang-btn {
        min-width: 44px;
        height: 34px;
        padding: 0 7px;
        gap: 3px;
        border-radius: 9999px;
    }

    #header-lang-btn i {
        width: 13px;
        height: 13px;
    }

    #header-lang-btn .lang-current-label {
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    /* Badges positioned cleanly inside icon boundaries without collision */
    .cart-count,
    .wishlist-count {
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 9.5px;
        padding: 0 3px;
        top: 3px;
        inset-inline-end: 2px;
        inset-inline-start: auto;
        pointer-events: none;
    }
}

/* Very narrow screens (<= 375px) micro-adjustments */
@media (max-width: 375px) {
    #navbar > .max-w-7xl {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    #navbar a[aria-label="AB COUTURE"] {
        max-width: 110px;
    }

    #navbar a[aria-label="AB COUTURE"] > span:first-child {
        font-size: 0.875rem !important;
        letter-spacing: 0.1em !important;
    }

    #navbar .shrink-0.flex.items-center {
        gap: 2px;
    }

    .nav-action-btn {
        min-width: 38px;
        width: 38px;
    }

    #header-lang-btn {
        min-width: 40px;
        padding: 0 5px;
    }
}

/* 2. Mobile Drawer Navigation Separation & Safety */
.mobile-nav-item {
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#mobile-nav-track-order {
    border-left: 2px solid rgba(184, 155, 94, 0.4);
}
[dir="rtl"] #mobile-nav-track-order {
    border-left: 1px solid transparent;
    border-right: 2px solid rgba(184, 155, 94, 0.4);
}

#mobile-nav-wishlist {
    border-left: 2px solid rgba(239, 68, 68, 0.3);
}
[dir="rtl"] #mobile-nav-wishlist {
    border-left: 1px solid transparent;
    border-right: 2px solid rgba(239, 68, 68, 0.3);
}

/* 3. Order Tracking Mobile Layout & Timeline Refinement */
.tracking-key-input-wrap {
    position: relative;
}

@media (max-width: 640px) {
    .tracking-timeline-wrap {
        padding-left: 1.85rem;
    }
    [dir="rtl"] .tracking-timeline-wrap {
        padding-left: 0;
        padding-right: 1.85rem;
    }
    .tracking-timeline-wrap::before {
        left: 9px;
    }
    [dir="rtl"] .tracking-timeline-wrap::before {
        left: auto;
        right: 9px;
    }
    .tracking-timeline-node {
        margin-bottom: 1.5rem;
    }
    .tracking-node-dot {
        width: 20px;
        height: 20px;
        left: -1.85rem;
        top: 2px;
    }
    [dir="rtl"] .tracking-node-dot {
        left: auto;
        right: -1.85rem;
    }
    .tracking-node-dot svg,
    .tracking-node-dot i {
        width: 12px;
        height: 12px;
    }

    /* Stacked information cards on mobile */
    .tracking-info-grid {
        grid-template-columns: 1fr !important;
        gap: 0.625rem !important;
    }

    .tracking-info-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem !important;
    }
}

/* ==============================================================================
   PHASE 12 — QUIET LUXURY BOUTIQUE POLISH & MOBILE UX
   ============================================================================== */

/* 1. Refined Mobile Header Rhythm & Touch Targets */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 640px) {
    .header-actions-group {
        gap: 0.625rem;
    }
}

.header-action-divider {
    width: 1px;
    height: 18px;
    background-color: rgba(184, 155, 94, 0.25);
    margin-inline: 0.15rem;
}

@media (max-width: 640px) {
    .nav-action-btn {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        position: relative;
    }
    
    /* Touch target expansion for effortless mobile tapping */
    .nav-action-btn::before {
        content: '';
        position: absolute;
        inset: -4px;
    }

    #header-lang-btn {
        min-width: 42px;
        height: 34px;
        padding-inline: 0.5rem;
        font-size: 10px;
    }

    /* Prevent mobile hero excessive vertical sprawl */
    .hero-mobile-card {
        max-height: 250px !important;
    }
}

/* 2. Quiet Luxury "Why Choose Us" Benefit System */
.why-choose-section {
    background-color: #FAF8F5;
    border-bottom: 1px solid rgba(229, 224, 214, 0.8);
}

.why-choose-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 155, 94, 0.22);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px -4px rgba(28, 26, 24, 0.03);
}

[dir="rtl"] .why-choose-card {
    text-align: right;
    align-items: flex-start;
}

[dir="ltr"] .why-choose-card {
    text-align: left;
    align-items: flex-start;
}

@media (hover: hover) {
    .why-choose-card:hover {
        transform: translateY(-3px);
        border-color: rgba(184, 155, 94, 0.45);
        box-shadow: 0 12px 28px -6px rgba(28, 26, 24, 0.08);
    }
}

.why-choose-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: #F8F5EF;
    border: 1px solid rgba(184, 155, 94, 0.3);
    color: #B89B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
    .why-choose-card:hover .why-choose-icon-wrap {
        background: #1C1A18;
        color: #DDCBA1;
        border-color: #1C1A18;
        transform: scale(1.06);
    }
}

.why-choose-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1C1A18;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.why-choose-card p {
    font-size: 0.8125rem;
    color: #5C5852;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .why-choose-card {
        padding: 1.375rem 1.25rem;
        border-radius: 1rem;
    }
    .why-choose-icon-wrap {
        width: 2.75rem;
        height: 2.75rem;
        margin-bottom: 1rem;
    }
    .why-choose-card h3 {
        font-size: 0.9375rem;
    }
    .why-choose-card p {
        font-size: 0.75rem;
    }
}

/* 3. Category Cards Mobile Proportions */
@media (max-width: 768px) {
    .category-card {
        height: 340px !important;
    }
    .category-card .category-overlay {
        padding: 1.5rem !important;
    }
    .category-card h3 {
        font-size: 1.35rem !important;
    }
}




/* ==============================================================================
   ART DIRECTION LAYER — EDITORIAL COUTURE REFINEMENT
   Visual-only refinements layered over the existing system. No layout logic,
   selectors used by JavaScript, or data flows are changed here.
   ============================================================================== */

:root {
    --ac-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ac-ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ac-hairline: rgba(28, 26, 24, 0.08);
    --ac-gold-line: rgba(184, 155, 94, 0.35);
    --ac-gold-deep: #836733;
    --ac-warmgray: #8C827A;
}

/* ── 1. Global typography rhythm ─────────────────────────────────────────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main h2.font-heading,
section h2.font-heading {
    letter-spacing: -0.01em;
    text-wrap: balance;
}

/* Section eyebrows: quieter, more spaced, with a fine champagne rule */
#featured-collection .reveal:not(.grid) > div > span:first-child,
#new-arrivals-section .reveal:not(.grid) > div > span:first-child,
#best-sellers-section .reveal:not(.grid) > div > div:first-child,
#atelier-story .reveal > span:first-child,
#final-cta .reveal > span:first-child,
#categories .text-center.reveal > span:first-child,
#why-choose-us .text-center.reveal > div:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--ac-gold-deep);
}

#featured-collection .reveal:not(.grid) > div > span:first-child::before,
#new-arrivals-section .reveal:not(.grid) > div > span:first-child::before,
#best-sellers-section .reveal:not(.grid) > div > div:first-child::before,
#atelier-story .reveal > span:first-child::before {
    content: '';
    width: 1.75rem;
    height: 1px;
    background: var(--color-champagne);
    flex-shrink: 0;
}

/* The Best Sellers eyebrow already carries a sparkles icon; the rule replaces it */
#best-sellers-section .reveal:not(.grid) > div > div:first-child svg,
#why-choose-us .text-center.reveal > div:first-child svg {
    display: none;
}

@media (min-width: 640px) {
    #featured-collection .reveal:not(.grid) > div > span:first-child,
    #new-arrivals-section .reveal:not(.grid) > div > span:first-child,
    #best-sellers-section .reveal:not(.grid) > div > div:first-child,
    #atelier-story .reveal > span:first-child,
    #final-cta .reveal > span:first-child,
    #categories .text-center.reveal > span:first-child,
    #why-choose-us .text-center.reveal > div:first-child {
        font-size: 0.75rem;
    }
}

/* Unified product-section headings (Workshop · New Arrivals · Best Sellers) */
#featured-collection h2,
#new-arrivals-section h2,
#best-sellers-section h2 {
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.25rem;
}

#featured-collection .reveal:not(.grid) > div > p,
#new-arrivals-section .reveal:not(.grid) > div > p,
#best-sellers-section .reveal:not(.grid) > div > p {
    color: var(--ac-warmgray);
    margin-top: 0.625rem;
    line-height: 1.7;
}

/* "View all" links: understated text link with a moving arrow */
#featured-collection .reveal:not(.grid) > a,
#new-arrivals-section .reveal:not(.grid) > a,
#best-sellers-section .reveal:not(.grid) > a {
    align-self: flex-start;
    padding-block: 0.375rem;
    border-bottom: 1px solid var(--ac-gold-line);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    transition: color 300ms var(--ac-ease), border-color 300ms var(--ac-ease);
}

@media (min-width: 640px) {
    #featured-collection .reveal:not(.grid) > a,
    #new-arrivals-section .reveal:not(.grid) > a,
    #best-sellers-section .reveal:not(.grid) > a {
        align-self: auto;
    }
}

#featured-collection .reveal:not(.grid) > a:hover,
#new-arrivals-section .reveal:not(.grid) > a:hover,
#best-sellers-section .reveal:not(.grid) > a:hover {
    border-color: var(--color-champagne);
}

#featured-collection .reveal:not(.grid) > a svg,
#new-arrivals-section .reveal:not(.grid) > a svg,
#best-sellers-section .reveal:not(.grid) > a svg {
    transition: transform 350ms var(--ac-ease);
}

/* The three product sections share one family: same ivory ground, separated by
   a centred hairline rather than full-width borders. */
#featured-collection,
#new-arrivals-section,
#best-sellers-section {
    position: relative;
    border-bottom: 0 !important;
}

#new-arrivals-section::before,
#best-sellers-section::before,
#atelier-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(72rem, calc(100% - 2rem));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(184, 155, 94, 0.28) 20%, rgba(184, 155, 94, 0.28) 80%, transparent);
}

#atelier-story {
    position: relative;
    border-bottom: 0 !important;
}

/* ── 2. Header ───────────────────────────────────────────────────────────── */
#navbar {
    border-bottom-color: rgba(184, 155, 94, 0.12) !important;
    box-shadow: none !important;
    transition: background-color 400ms var(--ac-ease), box-shadow 400ms var(--ac-ease);
}

#navbar.nav-scrolled {
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.55) !important;
}

/* Wordmark: a touch more air, subtle hover */
#navbar a[aria-label="AB COUTURE"] > span:first-child {
    font-weight: 800;
    transition: color 400ms var(--ac-ease), letter-spacing 400ms var(--ac-ease);
}

/* Navigation links: no pill — colour + a fine underline that draws in */
.nav-link {
    padding-inline: 0.8rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    color: rgba(248, 246, 240, 0.86);
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 300ms var(--ac-ease), transform 300ms var(--ac-ease);
}

.nav-link:hover {
    color: #FFFFFF;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--color-champagne);
    font-weight: 700;
}

.nav-link::after {
    bottom: 5px;
    inset-inline: 0.8rem;
    height: 1px;
    background: var(--color-champagne);
    transform-origin: center;
    transition: transform 450ms var(--ac-ease), opacity 300ms ease;
}

.nav-link:hover::after {
    opacity: 0.6;
}

.nav-link.active::after {
    opacity: 1;
}

/* Dropdown chevron rotates quietly when open */
.nav-dropdown-btn .chevron-icon {
    transition: transform 350ms var(--ac-ease);
}

.nav-dropdown-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* Action icons: consistent 40px circles, quiet hover */
.header-actions-group .nav-action-btn {
    border-radius: 9999px;
    transition: background-color 300ms var(--ac-ease), color 300ms var(--ac-ease), transform 200ms var(--ac-ease);
}

.header-actions-group .nav-action-btn:hover {
    background-color: rgba(184, 155, 94, 0.1);
}

.header-actions-group .nav-action-btn:active {
    transform: scale(0.96);
}

#header-lang-btn {
    background: transparent !important;
    border-color: rgba(184, 155, 94, 0.32) !important;
    box-shadow: none !important;
    letter-spacing: 0.08em;
}

#header-lang-btn:hover {
    border-color: rgba(184, 155, 94, 0.7) !important;
    background: rgba(184, 155, 94, 0.08) !important;
}

/* Count badges: small, precise */
.cart-count,
.wishlist-count {
    box-shadow: 0 0 0 2px #1C1A18;
}

/* Mobile drawer: calmer surfaces, no off-palette accent */
#mobile-menu .mobile-nav-item {
    background: transparent;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    border-bottom-color: rgba(184, 155, 94, 0.08);
    transition: background-color 300ms var(--ac-ease), color 300ms var(--ac-ease), border-color 300ms var(--ac-ease);
}

#mobile-menu .mobile-nav-item:hover,
#mobile-menu .mobile-nav-item.active {
    background: rgba(184, 155, 94, 0.07);
    border-color: rgba(184, 155, 94, 0.22);
}

#mobile-nav-track-order,
[dir="rtl"] #mobile-nav-track-order,
#mobile-nav-wishlist,
[dir="rtl"] #mobile-nav-wishlist {
    border-left-color: transparent;
    border-right-color: transparent;
    border-left-width: 1px;
    border-right-width: 1px;
}

#mobile-menu:not(.hidden) {
    animation: acDrawerIn 350ms var(--ac-ease) both;
}

@keyframes acDrawerIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 3. Hero — editorial crossfade ───────────────────────────────────────── */
/* All slides share one grid cell and crossfade; the JS still only toggles
   `.active`, so the 5-second autoplay and manual controls are untouched. */
#hero-slider > .relative {
    display: grid !important;
    grid-template-areas: "stack";
    align-items: center;
}

#hero-slider .hero-slide {
    grid-area: stack;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    animation: none !important;
    transition: opacity 1100ms var(--ac-ease-soft), visibility 0s linear 1100ms;
    pointer-events: none;
}

#hero-slider .hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1100ms var(--ac-ease-soft), visibility 0s linear 0s;
    pointer-events: auto;
    z-index: 1;
}

/* Text enters in a slow, staggered sequence */
#hero-slider .hero-slide .lg\:col-span-5 > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 900ms var(--ac-ease), transform 1100ms var(--ac-ease);
}

#hero-slider .hero-slide.active .lg\:col-span-5 > * {
    opacity: 1;
    transform: none;
}

#hero-slider .hero-slide.active .lg\:col-span-5 > *:nth-child(1) { transition-delay: 150ms; }
#hero-slider .hero-slide.active .lg\:col-span-5 > *:nth-child(2) { transition-delay: 260ms; }
#hero-slider .hero-slide.active .lg\:col-span-5 > *:nth-child(3) { transition-delay: 370ms; }
#hero-slider .hero-slide.active .lg\:col-span-5 > *:nth-child(4) { transition-delay: 460ms; }
#hero-slider .hero-slide.active .lg\:col-span-5 > *:nth-child(5) { transition-delay: 560ms; }

/* Imagery settles with a slow, barely-there drift */
#hero-slider .hero-slide .lg\:col-span-7 {
    transform: scale(1.015);
    transition: transform 6s var(--ac-ease-soft);
}

#hero-slider .hero-slide.active .lg\:col-span-7 {
    transform: scale(1);
}

/* Hero headline & supporting copy */
#hero-slider h1,
#hero-slider h2 {
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.18;
}

#hero-slider .hero-slide p[dir="ltr"] {
    letter-spacing: 0.28em;
    font-weight: 600;
    color: rgba(221, 203, 161, 0.85);
}

#hero-slider .hero-slide p.text-warmgray-300 {
    color: rgba(229, 224, 214, 0.78);
    line-height: 1.85;
}

/* Hero badge: quieter hairline tag */
#hero-slider .hero-slide .lg\:col-span-5 > div:first-child {
    background: transparent !important;
    border-color: rgba(184, 155, 94, 0.35) !important;
    box-shadow: none !important;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Hero card composition: less tilt, calmer shadows, one gold frame */
#hero-slider .hero-card-left {
    transform: translateY(20px) rotate(-2deg);
    opacity: 0.82;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    transition: transform 900ms var(--ac-ease), opacity 600ms ease;
}

#hero-slider .hero-card-right {
    transform: translateY(10px) rotate(2deg);
    opacity: 0.86;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    transition: transform 900ms var(--ac-ease), opacity 600ms ease;
}

#hero-slider .hero-card-center {
    border: 1px solid rgba(184, 155, 94, 0.6);
    box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.85);
    transition: transform 900ms var(--ac-ease), border-color 600ms ease;
}

#hero-slider .hero-card-left:hover {
    transform: translateY(14px) rotate(-1deg);
    opacity: 1;
}

#hero-slider .hero-card-right:hover {
    transform: translateY(4px) rotate(1deg);
    opacity: 1;
}

#hero-slider .hero-card-center:hover {
    transform: translateY(-20px);
}

#hero-slider .hero-card-img,
#hero-slider .hero-cards-composition:hover .hero-card-img {
    transition: transform 1400ms var(--ac-ease);
}

#hero-slider .hero-cards-composition:hover .hero-card-img {
    transform: scale(1.02);
}

/* Slide indicators: fine lines that extend, not dots */
#slider-dots {
    gap: 0.5rem;
}

#slider-dots .slider-dot {
    position: relative;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 1.25rem !important;
    height: 2px !important;
    padding: 0;
    border-radius: 2px;
    background: rgba(248, 246, 240, 0.28) !important;
    transition: width 600ms var(--ac-ease), background-color 400ms ease;
}

/* Generous invisible hit area around each thin line */
#slider-dots .slider-dot::before {
    content: '';
    position: absolute;
    inset: -14px -4px;
}

#slider-dots .slider-dot.bg-champagne {
    width: 2.75rem !important;
    background: var(--color-champagne) !important;
}

#slider-dots .slider-dot:hover {
    background: rgba(184, 155, 94, 0.7) !important;
}

/* Arrows: hairline circles */
#hero-slider button[onclick="prevSlide()"],
#hero-slider button[onclick="nextSlide()"] {
    background: rgba(28, 26, 24, 0.35) !important;
    border-color: rgba(248, 246, 240, 0.18) !important;
    box-shadow: none !important;
    backdrop-filter: blur(6px);
    transition: background-color 350ms var(--ac-ease), border-color 350ms var(--ac-ease), color 350ms var(--ac-ease);
}

#hero-slider button[onclick="prevSlide()"]:hover,
#hero-slider button[onclick="nextSlide()"]:hover {
    background: rgba(184, 155, 94, 0.9) !important;
    border-color: var(--color-champagne) !important;
}

/* Mobile hero: keep controls clear of the image */
@media (max-width: 767px) {
    #hero-slider .hero-slide > .max-w-7xl {
        padding-top: 2.25rem;
        padding-bottom: 5.25rem;
    }

    #hero-slider .hero-slide .md\:hidden > div {
        border-radius: 1rem;
        border-color: rgba(184, 155, 94, 0.3);
        max-height: 230px;
    }

    #hero-slider > .relative > .absolute.bottom-6 {
        bottom: 1.25rem;
    }
}

/* ── 4. Buttons & micro-interactions ─────────────────────────────────────── */
.btn-gold,
.btn-charcoal,
.btn-outline-gold {
    transition: transform 350ms var(--ac-ease), box-shadow 350ms var(--ac-ease), background-color 300ms ease, color 300ms ease, border-color 300ms ease;
    letter-spacing: 0.01em;
}

.btn-gold {
    color: #1C1A18;
    background-color: var(--color-champagne);
    box-shadow: 0 10px 24px -14px rgba(184, 155, 94, 0.8) !important;
}

.btn-gold:hover {
    background-color: #C4A86C;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(184, 155, 94, 0.75) !important;
}

.btn-charcoal:hover {
    background-color: #2A2724;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -16px rgba(28, 26, 24, 0.55);
}

.btn-gold:active,
.btn-charcoal:active,
.btn-outline-gold:active {
    transform: translateY(0) scale(0.99);
    transition-duration: 120ms;
}

/* Neutralise legacy "grow" hover (scale-105) on primary CTAs: lift, never zoom */
a.hover\:scale-105:hover,
button.hover\:scale-105:hover {
    --tw-scale-x: 1 !important;
    --tw-scale-y: 1 !important;
}

/* Arrow glyphs inside CTAs move a few pixels toward the reading direction */
.btn-gold svg,
.btn-charcoal svg,
#final-cta a svg,
.category-card .inline-flex svg {
    transition: transform 400ms var(--ac-ease);
}

[dir="rtl"] .btn-gold:hover svg,
[dir="rtl"] .btn-charcoal:hover svg,
[dir="rtl"] #final-cta a:hover svg,
[dir="rtl"] #featured-collection .reveal:not(.grid) > a:hover svg,
[dir="rtl"] #new-arrivals-section .reveal:not(.grid) > a:hover svg,
[dir="rtl"] #best-sellers-section .reveal:not(.grid) > a:hover svg {
    transform: translateX(-4px);
}

[dir="ltr"] .btn-gold:hover svg,
[dir="ltr"] .btn-charcoal:hover svg,
[dir="ltr"] #final-cta a:hover svg,
[dir="ltr"] #featured-collection .reveal:not(.grid) > a:hover svg,
[dir="ltr"] #new-arrivals-section .reveal:not(.grid) > a:hover svg,
[dir="ltr"] #best-sellers-section .reveal:not(.grid) > a:hover svg {
    transform: rotate(180deg) translateX(-4px);
}

/* Quick-add: confirmation press */
.product-card-add-btn {
    border-radius: 9999px;
    background: transparent;
    border-color: rgba(28, 26, 24, 0.14);
    transition: background-color 300ms var(--ac-ease), color 300ms var(--ac-ease), border-color 300ms var(--ac-ease), transform 200ms var(--ac-ease);
}

@media (hover: hover) {
    .product-card-add-btn:hover {
        transform: none;
    }
}

.product-card-add-btn:not(:disabled):active {
    transform: scale(0.92);
}

/* Floating WhatsApp — base styles shared by every page that renders it
   (previously defined only inline on index.html, so it rendered unstyled elsewhere) */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    text-decoration: none;
}

.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    left: 66px;
    bottom: 50%;
    transform: translateY(50%);
    background: #1C1A18;
    color: #FFFFFF;
    font-size: 12px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 50px;
        height: 50px;
    }
}

/* Floating WhatsApp: remove the perpetual pulse, keep a calm presence */
.whatsapp-float {
    animation: none !important;
    box-shadow: 0 10px 28px -10px rgba(18, 140, 70, 0.55) !important;
    transition: transform 350ms var(--ac-ease), box-shadow 350ms var(--ac-ease) !important;
}

.whatsapp-float:hover {
    transform: translateY(-2px) !important;
}

/* ── 5. Scroll reveal ────────────────────────────────────────────────────── */
.reveal {
    transform: translateY(12px);
    transition: opacity 750ms var(--ac-ease), transform 750ms var(--ac-ease);
    will-change: opacity, transform;
}

.reveal.visible {
    will-change: auto;
}

/* Category & benefit groups reveal their items in a light cascade */
.reveal .category-card,
.reveal > .why-choose-card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 700ms var(--ac-ease), transform 700ms var(--ac-ease), border-color 400ms ease, box-shadow 400ms ease;
}

.reveal.visible .category-card,
.reveal.visible > .why-choose-card {
    opacity: 1;
    transform: none;
}

/* delays apply to the reveal properties only, so hover stays instant */
.reveal.visible > .category-card:nth-child(2),
.reveal.visible > .why-choose-card:nth-child(2) { transition-delay: 90ms, 90ms, 0s, 0s; }
.reveal.visible > .category-card:nth-child(3),
.reveal.visible > .why-choose-card:nth-child(3) { transition-delay: 180ms, 180ms, 0s, 0s; }
.reveal.visible > .why-choose-card:nth-child(4) { transition-delay: 270ms, 270ms, 0s, 0s; }
.reveal.visible > .why-choose-card:nth-child(5) { transition-delay: 360ms, 360ms, 0s, 0s; }
.reveal.visible > .why-choose-card:nth-child(6) { transition-delay: 450ms, 450ms, 0s, 0s; }

/* ── 6. Category cards — editorial frames ────────────────────────────────── */
#categories {
    padding-block: 4.5rem;
}

@media (min-width: 1024px) {
    #categories {
        padding-block: 6rem;
    }
}

#categories .text-center.reveal > h2 {
    letter-spacing: -0.01em;
}

.category-card {
    border-radius: 1rem;
    border-color: rgba(184, 155, 94, 0.14);
    box-shadow: 0 18px 40px -28px rgba(28, 26, 24, 0.45) !important;
    isolation: isolate;
}

.category-card:hover {
    transform: none;
    border-color: rgba(184, 155, 94, 0.4);
    box-shadow: 0 26px 50px -28px rgba(28, 26, 24, 0.55) !important;
}

.category-card img {
    transition: transform 1400ms var(--ac-ease);
}

.category-card:hover img {
    transform: scale(1.035);
}

.category-card .category-overlay {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0) 40%, rgba(28, 26, 24, 0.82) 100%);
    transition: background 700ms var(--ac-ease);
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.04) 30%, rgba(28, 26, 24, 0.88) 100%);
}

/* Overlay copy glides up slightly on hover */
.category-card .category-overlay > * {
    transition: transform 700ms var(--ac-ease), opacity 500ms ease;
}

@media (hover: hover) {
    .category-card:hover .category-overlay > h3,
    .category-card:hover .category-overlay > p {
        transform: translateY(-4px);
    }
}

.category-card .category-overlay > span:first-child {
    letter-spacing: 0.22em;
    font-size: 0.625rem;
}

.category-card .category-overlay h3 {
    font-weight: 700;
    letter-spacing: -0.005em;
}

/* CTA line: arrow moves, no whole-row shift */
.category-card .category-overlay > span.inline-flex {
    transform: none !important;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(184, 155, 94, 0.4);
    align-self: flex-start;
    transition: border-color 500ms ease;
}

.category-card:hover .category-overlay > span.inline-flex {
    border-color: var(--color-champagne);
}

[dir="rtl"] .category-card:hover .inline-flex svg {
    transform: translateX(-5px);
}

[dir="ltr"] .category-card:hover .inline-flex svg {
    transform: rotate(180deg) translateX(-5px);
}

@media (max-width: 768px) {
    .category-card {
        height: 380px !important;
    }
}

@media (max-width: 480px) {
    .category-card {
        height: 360px !important;
    }
}

/* ── 7. Product cards — catalogue presentation ───────────────────────────── */
.product-card {
    border-radius: 0.875rem;
    border: 1px solid rgba(28, 26, 24, 0.07);
    box-shadow: none;
    transition: transform 600ms var(--ac-ease), box-shadow 600ms var(--ac-ease), border-color 400ms ease;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-3px);
        border-color: rgba(184, 155, 94, 0.28);
        box-shadow: 0 22px 40px -28px rgba(28, 26, 24, 0.35);
    }

    .product-card:hover .product-img,
    .product-card:hover .product-img-primary,
    .product-card:hover .product-img-secondary {
        transform: scale(1.02);
    }

    .product-card:hover .product-card-title {
        color: var(--color-charcoal);
    }
}

.product-card-media {
    background-color: #F3EFE8;
}

.product-card .product-img,
.product-card .product-img-primary,
.product-card .product-img-secondary {
    transition: transform 1100ms var(--ac-ease), opacity 700ms ease;
}

.product-card-info {
    padding: 1rem 1.125rem 1.125rem;
}

.product-card-category {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--color-champagne);
    margin-bottom: 0.375rem;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    min-height: 2.75rem;
    margin-bottom: 0.5rem;
}

.product-card-bottom {
    padding-top: 0.75rem;
    border-top: 1px solid var(--ac-hairline);
}

.product-price-main {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.product-price-old {
    font-size: 0.75rem;
    color: #A59F93;
    text-decoration-thickness: 1px;
}

.product-stock-note {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ac-warmgray);
    margin-top: 0.25rem;
}

/* Badges: understated tags instead of loud pills */
.product-badge {
    border-radius: 0.375rem;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.55rem;
    box-shadow: none !important;
}

.product-badge-discount {
    background-color: #1C1A18;
    color: #F4EEDF;
    border: 1px solid rgba(184, 155, 94, 0.35);
}

.product-badge-new {
    background-color: rgba(250, 248, 245, 0.94);
    color: #1C1A18;
    border: 1px solid rgba(184, 155, 94, 0.45);
}

.product-badge-stock,
.product-badge-bestseller,
.product-badge-stylematch {
    background-color: rgba(28, 26, 24, 0.82);
    color: #F4EEDF;
    border: 1px solid rgba(184, 155, 94, 0.3);
}

.product-multi-img-badge {
    border-radius: 0.375rem;
    background: rgba(28, 26, 24, 0.6);
}

.product-card-quick-view {
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 500ms var(--ac-ease), transform 500ms var(--ac-ease), background-color 300ms ease, color 300ms ease;
}

@media (max-width: 640px) {
    .product-card {
        border-radius: 0.75rem;
    }

    .product-card-info {
        padding: 0.75rem 0.75rem 0.875rem;
    }

    .product-card-category {
        font-size: 0.5625rem;
        letter-spacing: 0.14em;
    }

    .product-card-title {
        font-size: 0.8125rem;
        min-height: 2.35rem;
    }

    .product-price-main {
        font-size: 0.875rem;
    }

    .product-stock-note {
        font-size: 0.625rem;
    }
}

/* ── 8. Wishlist heart — ♡ → ♥ in champagne ───────────────────────────────── */
.product-card-wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 26, 24, 0.06);
    box-shadow: 0 6px 16px -8px rgba(28, 26, 24, 0.3);
    transition: transform 300ms var(--ac-ease), background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.product-card-wishlist-btn:hover {
    transform: scale(1.06);
    border-color: rgba(184, 155, 94, 0.4);
}

.product-card-wishlist-btn:active {
    transform: scale(0.94);
    transition-duration: 120ms;
}

.product-card-wishlist-btn svg,
.modal-wishlist-toggle-btn svg {
    transition: color 350ms ease, fill 350ms ease, transform 350ms var(--ac-ease);
}

.product-card-wishlist-btn.active,
.product-card-wishlist-btn.is-in-wishlist,
.product-card-wishlist-btn[aria-pressed="true"] {
    border-color: rgba(184, 155, 94, 0.5);
    color: var(--ac-gold-deep);
}

.product-card-wishlist-btn.active svg,
.product-card-wishlist-btn.is-in-wishlist svg,
.product-card-wishlist-btn[aria-pressed="true"] svg,
.modal-wishlist-toggle-btn.active svg,
.modal-wishlist-toggle-btn.is-in-wishlist svg,
.modal-wishlist-toggle-btn[aria-pressed="true"] svg {
    color: var(--ac-gold-deep) !important;
    fill: var(--ac-gold-deep) !important;
    animation: acHeartIn 450ms var(--ac-ease) both;
}

.modal-wishlist-toggle-btn.active,
.modal-wishlist-toggle-btn.is-in-wishlist,
.modal-wishlist-toggle-btn[aria-pressed="true"] {
    border-color: rgba(184, 155, 94, 0.55) !important;
    background-color: #FBF9F4 !important;
    color: var(--ac-gold-deep) !important;
}

@keyframes acHeartIn {
    0% { transform: scale(0.72); opacity: 0.4; }
    60% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── 9. Product details modal & gallery (no zoom) ────────────────────────── */
.product-modal-box {
    background-color: #FDFBF8;
    border: 1px solid rgba(184, 155, 94, 0.18);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

#product-detail-modal:not(.hidden) .product-modal-box {
    animation: acModalIn 450ms var(--ac-ease) both;
}

@keyframes acModalIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Opens the existing gallery viewer (no zoom) */
.product-gallery-wrapper {
    border-radius: 0.875rem;
    border-color: rgba(28, 26, 24, 0.06);
    cursor: pointer;
}

.product-gallery-img {
    animation: acImgIn 500ms ease both;
}

@keyframes acImgIn {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

#modal-product-name {
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

#modal-product-category {
    letter-spacing: 0.2em;
    font-size: 0.6875rem;
}

#modal-product-price {
    letter-spacing: 0.01em;
}

/* Thumbnails: slim frames, active state reads instantly */
.modal-thumbnails-gallery {
    background: transparent !important;
    border: 0 !important;
    padding: 0.25rem 0.125rem !important;
    gap: 0.5rem;
}

.modal-thumb-btn {
    width: 3.75rem;
    height: 5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(28, 26, 24, 0.1);
    opacity: 0.62;
    transition: opacity 350ms ease, border-color 350ms ease, box-shadow 350ms ease, transform 350ms var(--ac-ease);
}

.modal-thumb-btn:hover {
    opacity: 0.9;
    transform: none;
}

.modal-thumb-btn.active,
#product-detail-modal .modal-thumb-btn.active {
    opacity: 1;
    transform: none;
    border-color: var(--color-champagne);
    box-shadow: 0 0 0 1px var(--color-champagne);
}

/* Variant selectors: clear, premium selected state */
.modal-size-btn,
.modal-color-btn {
    border-radius: 0.625rem;
    border: 1px solid rgba(28, 26, 24, 0.14);
    font-weight: 600;
    transition: background-color 300ms var(--ac-ease), color 300ms var(--ac-ease), border-color 300ms var(--ac-ease), box-shadow 300ms var(--ac-ease);
}

.modal-size-btn:hover,
.modal-color-btn:hover {
    border-color: rgba(184, 155, 94, 0.7);
    background-color: #FFFFFF;
}

.modal-size-btn.active,
.modal-color-btn.active {
    background-color: #1C1A18;
    color: #F4EEDF;
    border-color: #1C1A18;
    box-shadow: 0 0 0 2px #FDFBF8, 0 0 0 3px var(--color-champagne);
    font-weight: 700;
}

.modal-qty-btn {
    border-radius: 9999px;
    border-color: rgba(28, 26, 24, 0.12);
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 150ms ease;
}

/* Lightbox: slower, softer image change */
.lightbox-img {
    transition: opacity 400ms ease;
}

.lightbox-thumb-pill {
    transition: opacity 300ms ease, border-color 300ms ease, transform 300ms var(--ac-ease);
}

/* Mobile: image → name → price → options; trust notes follow the details */
@media (max-width: 767px) {
    .ac-modal-top-grid {
        display: flex !important;
        flex-direction: column;
    }

    .ac-modal-gallery-col {
        display: contents !important;
    }

    .ac-modal-gallery-col > .ac-modal-trust {
        order: 5;
        margin-top: 0;
    }

    .ac-modal-details-col {
        order: 2;
    }

    .modal-thumb-btn {
        width: 3.25rem;
        height: 4.25rem;
    }
}

/* ── 10. Atelier story — editorial spread ────────────────────────────────── */
#atelier-story .relative.rounded-3xl {
    border-radius: 1rem;
    border-color: rgba(28, 26, 24, 0.06);
    box-shadow: 0 40px 70px -40px rgba(28, 26, 24, 0.5);
}

#atelier-story img {
    transition: transform 2000ms var(--ac-ease);
}

#atelier-story .reveal:hover img {
    transform: scale(1.02);
}

#atelier-story h2 {
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

#atelier-story .reveal > p {
    color: #5C5852;
    line-height: 1.95;
}

.editorial-quote-box,
[dir="rtl"] .editorial-quote-box {
    position: relative;
    background: transparent;
    border-radius: 0;
    border-inline-start: 1px solid var(--color-champagne);
    padding-block: 0.25rem;
    padding-inline-start: 1.5rem;
}

/* The quote is French: isolate its direction so punctuation sits correctly in RTL */
.editorial-quote-box > p {
    unicode-bidi: plaintext;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #2A2724;
}

@media (min-width: 640px) {
    .editorial-quote-box > p {
        font-size: 1.125rem !important;
    }
}

[dir="rtl"] .editorial-quote-box > p {
    text-align: right;
}

.editorial-quote-box > span {
    margin-top: 0.625rem !important;
    letter-spacing: 0.14em;
    font-size: 0.625rem !important;
    color: var(--ac-gold-deep) !important;
    text-transform: uppercase;
}

.editorial-seal-badge {
    border-radius: 0.75rem;
    border-color: rgba(184, 155, 94, 0.25);
    box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.6);
}

/* ── 11. Why choose AB COUTURE — quiet benefit system ────────────────────── */
.why-choose-card {
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(28, 26, 24, 0.1);
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 0.25rem 1.5rem;
    position: relative;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: -1px;
    inset-inline-start: 0;
    width: 2.5rem;
    height: 1px;
    background: var(--color-champagne);
    transition: width 700ms var(--ac-ease);
}

@media (hover: hover) {
    .why-choose-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(28, 26, 24, 0.1);
    }

    .why-choose-card:hover::before {
        width: 100%;
    }

    .why-choose-card:hover .why-choose-icon-wrap {
        background: transparent;
        color: var(--ac-gold-deep);
        border-color: var(--color-champagne);
        transform: none;
    }
}

.why-choose-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(184, 155, 94, 0.35);
    margin-bottom: 1.125rem;
    transition: border-color 500ms ease, color 500ms ease;
}

.why-choose-icon-wrap svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 1.5;
}

.why-choose-card h3 {
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.why-choose-card p {
    color: var(--ac-warmgray);
    line-height: 1.75;
}

#why-choose-us .grid {
    column-gap: 2.5rem;
    row-gap: 0.5rem;
}

/* Mobile: compact rows (icon beside text) instead of six tall cards */
@media (max-width: 639px) {
    #why-choose-us .grid {
        row-gap: 0;
    }

    .why-choose-card,
    [dir="rtl"] .why-choose-card,
    [dir="ltr"] .why-choose-card {
        display: grid;
        grid-template-columns: 2.5rem 1fr;
        column-gap: 1rem;
        align-items: start;
        padding: 1.25rem 0;
        border-radius: 0;
    }

    .why-choose-icon-wrap {
        grid-row: span 2;
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0;
    }

    .why-choose-card h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.125rem;
    }

    .why-choose-card p {
        font-size: 0.8125rem;
    }
}

/* ── 12. Final CTA — closing statement ───────────────────────────────────── */
#final-cta {
    background-color: #FAF8F5 !important;
    border-bottom: 0 !important;
}

#final-cta h2 {
    font-weight: 800;
    letter-spacing: -0.015em;
}

#final-cta .reveal > div.w-16 {
    width: 2.5rem;
    height: 1px;
}

#final-cta p {
    color: #5C5852;
    line-height: 1.9;
}

#final-cta .reveal a {
    border-radius: 9999px;
    padding-inline: 2.5rem;
    letter-spacing: 0.02em;
    color: #F4EEDF;
    box-shadow: 0 16px 30px -18px rgba(28, 26, 24, 0.6);
    transition: transform 350ms var(--ac-ease), box-shadow 350ms var(--ac-ease), background-color 300ms ease;
}

#final-cta .reveal a:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
    box-shadow: 0 22px 36px -18px rgba(28, 26, 24, 0.6);
}

#final-cta .reveal a:active {
    transform: translateY(0);
}

/* ── 13. Marquee tickers: calmer tone ────────────────────────────────────── */
.marquee-ticker {
    background: #171513 !important;
    border-bottom-color: rgba(184, 155, 94, 0.14) !important;
}

.marquee-item {
    color: rgba(221, 203, 161, 0.82) !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
}

/* ── 14. Footer ──────────────────────────────────────────────────────────── */
footer.bg-charcoal {
    background-color: #1A1816;
}

footer.bg-charcoal h4,
footer.bg-charcoal h3 {
    letter-spacing: 0.04em;
}

footer.bg-charcoal ul a,
footer.bg-charcoal nav a {
    transition: color 300ms var(--ac-ease), transform 300ms var(--ac-ease);
}

@media (hover: hover) and (min-width: 769px) {
    footer.bg-charcoal ul a {
        display: inline-block;
    }
}

footer.bg-charcoal ul a:hover,
footer.bg-charcoal nav a:hover {
    color: var(--color-champagne);
}

[dir="rtl"] footer.bg-charcoal ul a:hover {
    transform: translateX(-3px);
}

[dir="ltr"] footer.bg-charcoal ul a:hover {
    transform: translateX(3px);
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    background-color: transparent;
    border: 1px solid rgba(184, 155, 94, 0.32);
    color: rgba(221, 203, 161, 0.9);
    transition: transform 350ms var(--ac-ease), background-color 350ms ease, border-color 350ms ease, color 350ms ease;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    background-color: var(--color-champagne);
    border-color: var(--color-champagne);
    color: #1C1A18;
    box-shadow: none;
}

@media (max-width: 640px) {
    .footer-social-btn {
        width: 44px;
        height: 44px;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px;
        max-height: 44px;
    }
}

/* ── 15. Order tracking — clarity ────────────────────────────────────────── */
#tracking-status-headline {
    font-weight: 800;
    letter-spacing: -0.01em;
}

#tracking-status-pill {
    letter-spacing: 0.03em;
}

.tracking-timeline-wrap::before {
    width: 1px;
    background: linear-gradient(180deg, rgba(184, 155, 94, 0.55), #E5E0D6);
}

.tracking-node-dot {
    border-width: 1px;
}

.tracking-node-dot.completed {
    box-shadow: 0 0 0 4px rgba(184, 155, 94, 0.12);
}

.tracking-node-dot.current {
    animation-duration: 3s;
}

.tracking-node-dot.cancelled {
    background: #7F1D1D;
    border-color: #7F1D1D;
    box-shadow: 0 0 0 4px rgba(127, 29, 29, 0.14);
}

#tracking-result-container:not(.hidden) > * {
    animation: acFadeUp 600ms var(--ac-ease) both;
}

#tracking-result-container:not(.hidden) > *:nth-child(2) { animation-delay: 80ms; }
#tracking-result-container:not(.hidden) > *:nth-child(3) { animation-delay: 160ms; }
#tracking-result-container:not(.hidden) > *:nth-child(4) { animation-delay: 240ms; }

@keyframes acFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

#order-tracking-form input {
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

/* Keep the key icon clear of the typed key / placeholder */
[dir="rtl"] #tracking-key-input {
    padding-left: 2.75rem !important;
}

[dir="ltr"] #tracking-key-input {
    padding-right: 2.75rem !important;
}

#order-tracking-form input:focus {
    border-color: var(--color-champagne) !important;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.15) !important;
}

/* ── 16. Cart & wishlist polish ──────────────────────────────────────────── */
.cart-item-card,
.lux-cart-item {
    transition: border-color 400ms ease, box-shadow 400ms ease;
}

/* ── 17. Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal .category-card,
    .reveal > .why-choose-card,
    #hero-slider .hero-slide .lg\:col-span-5 > *,
    #hero-slider .hero-slide .lg\:col-span-7 {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #hero-slider .hero-slide {
        transition: none !important;
    }

    .product-card-wishlist-btn svg,
    .modal-wishlist-toggle-btn svg,
    .product-gallery-img,
    #product-detail-modal:not(.hidden) .product-modal-box,
    #tracking-result-container:not(.hidden) > *,
    #mobile-menu:not(.hidden) {
        animation: none !important;
    }

    .tracking-node-dot.current {
        animation: none !important;
    }

    .category-card img,
    .category-card .category-overlay > *,
    #atelier-story img,
    .btn-gold,
    .btn-charcoal,
    .nav-link {
        transition: none !important;
        transform: none !important;
    }
}

/* ==============================================================================
   PHASE 13 — WARM LUXURY COLOUR BALANCE & CHAMPAGNE "WHY CHOOSE" SECTION
   Visual-only. Overrides the earlier Why-Choose layers and warms the homepage
   section rhythm; no markup, script or data changes.
   ============================================================================== */

:root {
    --ac-ivory: #FAF8F5;
    --ac-warm-white: #FCFAF7;
    --ac-soft-champagne: #F4EBDD;
    --ac-cream-warm: #F7F2EA;
    --ac-text-soft: #6B635B;      /* warm gray that keeps AA contrast on champagne */
    --ac-gold-text: #6F5628;      /* deep champagne for small text on champagne */
}

/* ── Homepage section rhythm ─────────────────────────────────────────────── */
/* Categories: a touch warmer than the product sections below it */
#categories {
    background-color: var(--ac-cream-warm) !important;
}

/* Workshop · New Arrivals · Best Sellers stay on warm ivory (one family) */
#featured-collection,
#new-arrivals-section,
#best-sellers-section {
    background-color: var(--ac-ivory) !important;
}

/* Atelier: warm white instead of stark pure white */
#atelier-story {
    background-color: var(--ac-warm-white) !important;
}

/* Final CTA: warm white, so it reads as a calm close after the champagne band */
#final-cta {
    background-color: var(--ac-warm-white) !important;
}

/* ── Why choose AB COUTURE — dark luxury charcoal atmosphere (matching Hero Slider) ── */
#why-choose-us.why-choose-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--color-charcoal, #1C1A18);
    background-image: radial-gradient(circle at 50% 25%, rgba(42, 39, 36, 0.6) 0%, rgba(28, 26, 24, 1) 85%);
    border-top: 1px solid rgba(184, 155, 94, 0.2);
    border-bottom: 1px solid rgba(184, 155, 94, 0.2);
}

/* Subtle warm champagne ambient glow matching Hero Slider (.hero-glow-bg) */
#why-choose-us.why-choose-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(56rem, 120vw);
    height: 32rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(184, 155, 94, 0.1) 0%, rgba(28, 26, 24, 0) 70%);
    pointer-events: none;
}

#why-choose-us.why-choose-section::after {
    display: none;
}

/* Heading block on dark charcoal background */
#why-choose-us h2 {
    color: #F7F3EC;
}

#why-choose-us h2 bdi {
    color: #DDCBA1;
}

#why-choose-us .text-center.reveal > div:first-child {
    color: var(--color-champagne, #B89B5E);
}

#why-choose-us .text-center.reveal > div:first-child i,
#why-choose-us .text-center.reveal > div:first-child svg {
    color: var(--color-champagne, #B89B5E);
}

#why-choose-us .text-center.reveal > div.w-12 {
    background-color: var(--color-champagne, #B89B5E);
    opacity: 0.5;
}

#why-choose-us .text-center.reveal > p {
    color: #D0C9BD;
}

/* Cards: warm ivory boutique panels sitting on dark couture background */
#why-choose-us .why-choose-card {
    background: #FAF8F5;
    border: 1px solid rgba(184, 155, 94, 0.25);
    border-radius: 1rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
    padding: 1.875rem 1.625rem 1.75rem;
    height: 100%;
    /* reveal uses opacity/transform; the hover lift uses `translate` so the
       reveal stagger delay never slows the hover response */
    transition: opacity 700ms var(--ac-ease), transform 700ms var(--ac-ease), border-color 400ms ease, box-shadow 450ms var(--ac-ease), background-color 400ms ease, translate 450ms var(--ac-ease);
}

#why-choose-us .reveal.visible > .why-choose-card:nth-child(2) { transition-delay: 90ms, 90ms, 0s, 0s, 0s, 0s; }
#why-choose-us .reveal.visible > .why-choose-card:nth-child(3) { transition-delay: 180ms, 180ms, 0s, 0s, 0s, 0s; }
#why-choose-us .reveal.visible > .why-choose-card:nth-child(4) { transition-delay: 270ms, 270ms, 0s, 0s, 0s, 0s; }
#why-choose-us .reveal.visible > .why-choose-card:nth-child(5) { transition-delay: 360ms, 360ms, 0s, 0s, 0s, 0s; }
#why-choose-us .reveal.visible > .why-choose-card:nth-child(6) { transition-delay: 450ms, 450ms, 0s, 0s, 0s, 0s; }

/* The Phase 12 hairline accent is replaced by the panel frame */
#why-choose-us .why-choose-card::before {
    display: none;
}

#why-choose-us .grid {
    column-gap: 1.5rem;
    row-gap: 1.5rem;
}

@media (min-width: 1024px) {
    #why-choose-us .grid {
        column-gap: 1.75rem;
        row-gap: 1.75rem;
    }
}

#why-choose-us .why-choose-card h3 {
    color: #1C1A18;
}

#why-choose-us .why-choose-card p {
    color: #5C5852;
}

/* Icons: champagne line icon in a warm ivory circle with a thin gold frame */
#why-choose-us .why-choose-icon-wrap {
    background: #F2ECE1;
    border: 1px solid rgba(184, 155, 94, 0.35);
    color: #8A6D2F;
    box-shadow: inset 0 0 0 3px rgba(255, 253, 249, 0.9);
    transition: transform 450ms var(--ac-ease), box-shadow 450ms var(--ac-ease), border-color 400ms ease, color 400ms ease;
}

@media (hover: hover) {
    #why-choose-us .why-choose-card:hover {
        translate: 0 -3px;
        background: #FFFFFF;
        border-color: rgba(184, 155, 94, 0.55);
        box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.18);
    }

    #why-choose-us .why-choose-card:hover .why-choose-icon-wrap {
        transform: scale(1.05);
        background: #EFE6D6;
        color: #6E531C;
        border-color: rgba(184, 155, 94, 0.7);
        box-shadow: inset 0 0 0 3px rgba(255, 253, 249, 0.95), 0 0 0 4px rgba(184, 155, 94, 0.12), 0 6px 16px -6px rgba(184, 155, 94, 0.4);
    }
}

#why-choose-us .why-choose-card:focus-within {
    border-color: rgba(184, 155, 94, 0.6);
}

/* Mobile: compact panels (icon beside text) to keep the section short */
@media (max-width: 639px) {
    #why-choose-us .grid {
        row-gap: 0.75rem;
    }

    #why-choose-us .why-choose-card,
    [dir="rtl"] #why-choose-us .why-choose-card,
    [dir="ltr"] #why-choose-us .why-choose-card {
        padding: 1.125rem 1.125rem;
        border-radius: 0.875rem;
        box-shadow: 0 4px 16px -3px rgba(0, 0, 0, 0.25);
    }

    #why-choose-us.why-choose-section::before {
        top: 50%;
        height: 20rem;
    }
}

/* Tablet: two columns, keep panel heights even */
@media (min-width: 640px) and (max-width: 1023px) {
    #why-choose-us .why-choose-card {
        padding: 1.5rem 1.375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #why-choose-us .why-choose-card,
    #why-choose-us .why-choose-card:hover,
    #why-choose-us .why-choose-icon-wrap,
    #why-choose-us .why-choose-card:hover .why-choose-icon-wrap {
        transition: none !important;
        transform: none !important;
        translate: none !important;
    }
}
