/* ===================================================
   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;
}

* {
    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;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   Cards & Product Showcases
   ========================================== */
.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #D3C29D;
    box-shadow: 0 16px 36px -12px rgba(28, 26, 24, 0.12), 0 4px 16px -4px rgba(184, 155, 94, 0.1);
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    transition: all 0.4s ease;
}

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

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

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

.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.1) 20%, rgba(28, 26, 24, 0.92) 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;
    }
}