@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Tajawal:wght@200;300;400;500;700&display=swap');

:root {
    /* The Emerald Edition Palette */
    --emerald-dark: #072319;
    --emerald-main: #0A2E22;
    --emerald-light: #154a38;
    
    --ivory-main: #F9F6F0;
    --ivory-dark: #eee9df;
    
    --gold-champagne: #DDBA76;
    --gold-dark: #b89750;
    
    --text-dark: #1a2b25;
    --text-muted: #4a5c55;
    
    --font-serif: 'Amiri', serif;
    --font-sans: 'Tajawal', sans-serif;
    
    --transition-gentle: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Custom Scrollbar for Light Mode */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ivory-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-champagne); border-radius: 4px; }

/* =========================================
   1. THE LIQUID REVEAL ENTRANCE
   ========================================= */
.entrance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 100;
}

.entrance-brand-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--ivory);
    margin-top: 1rem;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(30px);
    animation: pearlRise 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.7s;
    letter-spacing: 2px;
}

.emerald-entrance {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    pointer-events: all;
}

/* 3 Curtains - Pearl White */
.curtain {
    flex: 1;
    background: var(--ivory-main);
    height: 100%;
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.emerald-entrance.revealed .curtain {
    transform: scaleY(0);
}

.emerald-entrance.revealed .curtain-1 { transition-delay: 0s; }
.emerald-entrance.revealed .curtain-2 { transition-delay: 0.15s; }
.emerald-entrance.revealed .curtain-3 { transition-delay: 0.3s; }
.emerald-entrance.revealed { pointer-events: none; }

.ripple-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: opacity 1s ease;
}

.emerald-entrance.revealed .ripple-container {
    opacity: 0;
    transition-delay: 0.5s;
}

/* Emerald Drop */
.golden-drop {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 6px; height: 20px;
    background: var(--emerald-main);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--emerald-main);
    transform: translateX(-50%);
    animation: dropFall 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes dropFall {
    0% { top: -50px; opacity: 1; }
    90% { top: 50%; opacity: 1; height: 6px; }
    100% { top: 50%; opacity: 0; height: 6px; }
}

/* Ripples - Emerald */
.ripple-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border: 2px solid var(--emerald-main);
    border-radius: 50%;
    opacity: 0;
}

.ripple-1 { animation: rippleEffect 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.9s; }
.ripple-2 { animation: rippleEffect 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s; }

@keyframes rippleEffect {
    0% { width: 0; height: 0; opacity: 1; border-width: 4px; }
    100% { width: 500px; height: 500px; opacity: 0; border-width: 1px; }
}

/* Rose Petals */
.rose-petals {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 10000;
    pointer-events: none;
}

.petal {
    position: absolute;
    top: -10%;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, rgba(235, 175, 203, 0.8), rgba(186, 126, 186, 0.5));
    border-radius: 50% 0 50% 50%;
    transform-origin: center;
    animation: fall linear infinite;
}

/* Different sizes and speeds for petals */
.p-1 { left: 10%; animation-duration: 4s; animation-delay: 0s; transform: scale(1); }
.p-2 { left: 30%; animation-duration: 5s; animation-delay: 1s; transform: scale(0.8); }
.p-3 { left: 50%; animation-duration: 3.5s; animation-delay: 0.5s; transform: scale(1.2); }
.p-4 { left: 70%; animation-duration: 6s; animation-delay: 2s; transform: scale(0.9); }
.p-5 { left: 85%; animation-duration: 4.5s; animation-delay: 0.2s; transform: scale(1.1); }
.p-6 { left: 20%; animation-duration: 5.5s; animation-delay: 1.5s; transform: scale(0.7); }
.p-7 { left: 60%; animation-duration: 4s; animation-delay: 2.5s; transform: scale(1); }
.p-8 { left: 90%; animation-duration: 5s; animation-delay: 0.8s; transform: scale(0.8); }

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg) scale(var(--s, 1)); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg) scale(var(--s, 1)); opacity: 0; }
}

/* Logo Reveal inside Ripple (The Pearl Rise) */
.emerald-logo {
    width: 160px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(221, 186, 118, 0.3));
    opacity: 0;
    /* Hide the logo below a virtual water line using clip-path */
    clip-path: inset(100% 0 0 0);
    transform: translateY(30px);
    animation: pearlRise 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.5s, shimmerGlow 3s ease-out forwards 1.8s;
}

@keyframes pearlRise {
    0% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(30px); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes shimmerGlow {
    0% { filter: drop-shadow(0 0 10px rgba(221, 186, 118, 0.3)) brightness(1); }
    30% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) brightness(2); }
    100% { filter: drop-shadow(0 0 10px rgba(221, 186, 118, 0.3)) brightness(1.2); }
}

/* =========================================
   2. BOUTIQUE LAYOUT (Sidebar + Main)
   ========================================= */
.boutique-layout {
    display: flex;
    min-height: 100vh;
}

/* Sticky Sidebar */
.boutique-sidebar {
    width: 320px;
    background: var(--ivory-dark);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    border-left: 1px solid rgba(10, 46, 34, 0.05);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 4rem;
}

.sidebar-logo img {
    height: 80px;
    border-radius: 50%; /* Clip the original dark box to be a perfect circle */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.sidebar-nav {
    flex-grow: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1.2rem;
    cursor: pointer;
    text-align: right;
    transition: all 0.4s ease;
    padding-right: 1rem;
    border-right: 2px solid transparent;
}

.nav-btn:hover {
    color: var(--emerald-main);
    transform: translateX(-5px);
}

.nav-btn.active {
    color: var(--emerald-main);
    font-weight: 700;
    border-right-color: var(--gold-champagne);
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 46, 34, 0.05);
}

.emerald-cart-btn {
    width: 100%;
    background: var(--emerald-main);
    color: var(--ivory-main);
    border: none;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.emerald-cart-btn:hover {
    background: var(--emerald-light);
    box-shadow: 0 5px 15px rgba(10, 46, 34, 0.2);
}

.cart-count {
    background: var(--gold-champagne);
    color: var(--emerald-main);
    font-weight: bold;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Main Content */
.boutique-main {
    flex-grow: 1;
    padding: 4rem 6vw;
    background: var(--ivory-main);
}

.main-header-mobile {
    display: none;
}

/* =========================================
   3. MENU SECTIONS & ARCH CARDS
   ========================================= */
.menu-section {
    margin-bottom: 6rem;
    scroll-margin-top: 4rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.ornament {
    width: 50px;
    height: 1px;
    background: var(--gold-champagne);
    position: relative;
}
.ornament::after {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--emerald-main);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--emerald-main);
    font-weight: 400;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4rem 3rem;
}

/* Arch Card Styling */
.arch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.arch-frame {
    width: 100%;
    aspect-ratio: 3/4;
    border-top-left-radius: 50vw; /* Creates the perfect arch */
    border-top-right-radius: 50vw;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s ease;
}

.arch-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(221, 186, 118, 0.3);
    border-top-left-radius: 50vw;
    border-top-right-radius: 50vw;
    pointer-events: none;
    transition: border-color 0.5s ease;
}

.arch-card:hover .arch-frame {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(10, 46, 34, 0.1);
}

.arch-card:hover .arch-frame::after {
    border-color: var(--gold-champagne);
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.arch-card:hover .arch-frame img {
    transform: scale(1.08);
}

.arch-content h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--emerald-main);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.arch-content p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 280px;
    margin-left: auto; margin-right: auto;
}

.arch-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--gold-dark);
}

.add-btn {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--emerald-main);
    color: var(--emerald-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.add-btn:hover {
    background: var(--emerald-main);
    color: var(--ivory-main);
    transform: rotate(90deg);
}

/* =========================================
   4. SOFT FLOATING ANIMATIONS
   ========================================= */
.floating-item {
    opacity: 0;
    transform: translateY(60px);
    transition: var(--transition-gentle);
}

.floating-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.boutique-footer {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid rgba(10, 46, 34, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   5. MOBILE-ONLY ELEMENTS (HIDDEN ON DESKTOP)
   ========================================= */
.main-header-mobile, .mobile-scroll-ribbon {
    display: none;
}

/* =========================================
   6. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .boutique-layout {
        flex-direction: column;
    }
    
    .boutique-sidebar {
        display: none; /* Hide desktop sidebar */
    }



.header-brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--emerald-dark);
    font-weight: 700;
}

    .main-header-mobile {
        display: flex;
        justify-content: center;
        padding: 1.5rem;
        background: var(--ivory);
    }
    
    .mobile-brand-group {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .mobile-logo {
        height: 50px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 50%;
    }
    
    .mobile-brand-name {
        font-family: var(--font-serif);
        font-size: 1.5rem;
        color: var(--emerald-dark);
        font-weight: 700;
    }
    
    /* The Luxury Ribbon */
    .mobile-scroll-ribbon {
        display: block; /* Show on mobile */
        position: sticky;
        top: 0;
        background: rgba(249, 246, 240, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 90;
        padding: 1rem 4vw;
        border-bottom: 1px solid rgba(10, 46, 34, 0.05);
        margin-bottom: 2rem;
        overflow-x: auto;
        white-space: nowrap;
        scroll-behavior: smooth;
    }
    
    .mobile-scroll-ribbon::-webkit-scrollbar { display: none; }
    
    .ribbon-list {
        display: flex;
        list-style: none;
        gap: 1.5rem;
    }
    
    .ribbon-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-family: var(--font-sans);
        font-size: 1rem;
        cursor: pointer;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .ribbon-btn.active {
        color: var(--emerald-main);
        font-weight: 700;
        border-bottom-color: var(--gold-champagne);
    }
    
    /* Scale down cards for mobile & 2-column grid */
    .boutique-main {
        padding: 0 3vw 4rem 3vw;
    }
    
    .menu-section {
        margin-bottom: 4rem;
        scroll-margin-top: 6rem; /* Account for sticky ribbon */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .arch-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns side-by-side */
        gap: 2rem 1rem;
    }

    .arch-frame {
        aspect-ratio: 3/4;
        width: 100%;
        margin: 0 auto 1rem auto;
        border-top-left-radius: 50vw;
        border-top-right-radius: 50vw;
    }
    
    .arch-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .arch-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Truncate text for 2-col neatness */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .add-btn {
        width: 35px; height: 35px;
        font-size: 1rem;
    }
}
