@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;600;700;800&display=swap');

/* ─────────────────────────────────────────
   VERRE GLASS DESIGN SYSTEM
   Glassmorphism with luxury gold/amethyst palette
   ───────────────────────────────────────── */

:root {
    /* Brand palette */
    --gold:          #d4af37;
    --gold-shimmer:  #f5e27a;
    --gold-dark:     #b8860b;
    --amethyst:      #2c223b;
    --amethyst-mid:  #4a3663;
    --cream:         #fbf7ef;
    --text-dark:     #1e1628;
    --text-mid:      #4a3e56;

    /* Glass surfaces — three tiers of opacity */
    --glass-heavy:   rgba(255, 255, 255, 0.22);   /* cards, panels */
    --glass-mid:     rgba(255, 255, 255, 0.14);   /* header, overlays */
    --glass-light:   rgba(255, 255, 255, 0.07);   /* hover tints */

    /* Glass borders */
    --glass-border-top:  rgba(255, 255, 255, 0.55); /* specular highlight edge */
    --glass-border-side: rgba(255, 255, 255, 0.20);
    --gold-border:       rgba(212, 175, 55, 0.35);

    /* Blur strengths */
    --blur-heavy: 24px;
    --blur-mid:   16px;
    --blur-light:  8px;

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(30, 22, 40, 0.18), 0 2px 8px rgba(30, 22, 40, 0.10);
    --shadow-gold:  0 4px 20px rgba(212, 175, 55, 0.20);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.55),
                    inset 0 -1px 0 rgba(0, 0, 0, 0.06);

    /* Radius */
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm:  8px;

    /* Misc */
    --bg-light: #f3e4d0;
    --glass-bg: var(--glass-heavy);
    --glass-border: var(--gold-border);
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Body / Background Scene ─────────────── */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Layered background gives the glass plenty to blur through */
    background:
        radial-gradient(ellipse at 12%  8%,  rgba(255, 225, 140, 0.55) 0%, transparent 38%),
        radial-gradient(ellipse at 88% 10%,  rgba(200, 160, 255, 0.40) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 60%,  rgba(255, 180, 120, 0.30) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 85%,  rgba(160, 200, 255, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 85%,  rgba(255, 220, 180, 0.40) 0%, transparent 38%),
        linear-gradient(160deg, #f9f0e3 0%, #ede2f5 50%, #e8f0fb 100%);
    background-attachment: fixed;
}

/* ── Utility: glass surface mixin ────────── */
.glass {
    background: var(--glass-heavy);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border: 1px solid var(--glass-border-side);
    /* Top specular highlight — the signature verre glass edge */
    border-top-color: var(--glass-border-top);
    box-shadow: var(--shadow-glass), var(--shadow-inner);
}

/* ── Panel / Card ────────────────────────── */
.panel-card {
    background: var(--glass-heavy);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-radius: var(--r-lg);
    /* Gradient border: bright top → transparent sides */
    border: 1px solid var(--glass-border-side);
    border-top-color: var(--glass-border-top);
    box-shadow:
        var(--shadow-glass),
        var(--shadow-inner),
        var(--shadow-gold);
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    /* Subtle warm gold inner glow along the top edge */
    position: relative;
}
.panel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.00) 55%
    );
    pointer-events: none;
}

/* ── Site Header ─────────────────────────── */
.site-header {
    background: var(--glass-mid);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    /* gold tint bottom line */
    box-shadow: 0 1px 0 var(--gold-border), 0 4px 24px rgba(30, 22, 40, 0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.brand-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--gold-dark) 60%, var(--gold-shimmer) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.header-auth-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.header-auth-nav a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}
.header-auth-nav a:hover { color: var(--gold-dark); }

.btn-header-order {
    background: linear-gradient(135deg, rgba(246,211,101,0.85) 0%, rgba(253,160,133,0.85) 100%);
    color: #4a2c00 !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.55);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    box-shadow: 0 4px 14px rgba(253, 160, 133, 0.30), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: box-shadow 0.25s, transform 0.25s;
}
.btn-header-order:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

.header-main-nav {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    padding: 0.85rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-main-nav a {
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    position: relative;
}
.header-main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transition: right 0.25s ease;
}
.header-main-nav a:hover { color: var(--gold-dark); }
.header-main-nav a:hover::after { right: 0; }

/* ── Hero Section ────────────────────────── */
#hero {
    text-align: center;
    padding: 5rem 2rem;
    margin: 3rem auto;
    max-width: 800px;
    /* True glass: low opacity, strong blur */
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-top-color: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 16px 48px rgba(30, 22, 40, 0.20),
        0 4px 12px rgba(212, 175, 55, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.60),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
/* Interior shimmer sweep */
#hero::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-15deg);
    animation: glass-shimmer 7s ease-in-out infinite 2s;
    pointer-events: none;
}

/* ── Buttons ─────────────────────────────── */
button, .btn-promo-action {
    font-family: 'Cinzel', serif;
    background: linear-gradient(
        135deg,
        rgba(246, 211, 101, 0.90) 0%,
        rgba(253, 160, 133, 0.90) 100%
    );
    color: #4a2c00;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-top-color: rgba(255, 255, 255, 0.60);
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    box-shadow:
        0 4px 16px rgba(253, 160, 133, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(180, 100, 40, 0.12);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}
button::after, .btn-promo-action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}
button:hover, .btn-promo-action:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 28px rgba(212, 175, 55, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 0 0 1px rgba(212, 175, 55, 0.45);
    background: linear-gradient(
        135deg,
        rgba(253, 160, 133, 0.95) 0%,
        rgba(246, 211, 101, 0.95) 100%
    );
}
button:active, .btn-promo-action:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 2px 8px rgba(212, 175, 55, 0.25),
        inset 0 1px 3px rgba(0, 0, 0, 0.10);
}

/* ── Floating Order Button ───────────────── */
.floating-order-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    /* Glass dark-amethyst disc */
    background: rgba(44, 34, 59, 0.72);
    backdrop-filter: blur(var(--blur-mid));
    -webkit-backdrop-filter: blur(var(--blur-mid));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 8px 28px rgba(44, 34, 59, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 0 0 2px rgba(212, 175, 55, 0.30);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background 0.3s ease,
                box-shadow 0.3s ease;
}
.floating-order-btn:hover {
    transform: scale(1.10);
    background: rgba(184, 134, 11, 0.80);
    box-shadow:
        0 12px 36px rgba(184, 134, 11, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 0 0 2px rgba(212, 175, 55, 0.55);
}
.floating-order-btn span {
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Cart Drawer ─────────────────────────── */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 22, 40, 0.40);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    /* Full glass drawer */
    background: rgba(251, 247, 239, 0.50);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        -10px 0 40px rgba(30, 22, 40, 0.22),
        inset 1px 0 0 rgba(255, 255, 255, 0.45);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active { right: 0; }

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    color: var(--text-dark);
}

.close-drawer-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.close-drawer-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.drawer-footer {
    padding: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(var(--blur-light));
    text-align: center;
    margin-top: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.drawer-total {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ── Glass card variants (for page content) ── */
.glass-card {
    background: var(--glass-heavy);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border-side);
    border-top-color: var(--glass-border-top);
    box-shadow: var(--shadow-glass), var(--shadow-inner), var(--shadow-gold);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* ── Input fields — glass tint ───────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="search"],
textarea,
select {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-top-color: rgba(255, 255, 255, 0.55);
    border-radius: var(--r-sm);
    box-shadow:
        inset 0 2px 4px rgba(30, 22, 40, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.50);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.60);
    border-color: var(--gold-dark);
    border-top-color: rgba(255, 255, 255, 0.70);
    box-shadow:
        inset 0 2px 4px rgba(30, 22, 40, 0.04),
        0 0 0 3px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

/* ── Scrollbar — glass tinted ────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.15); }
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.55); }

/* ── Keyframes ───────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Shimmer sweep across glass surfaces */
@keyframes glass-shimmer {
    0%        { left: -60%; opacity: 0; }
    10%       { opacity: 1; }
    50%        { left: 120%; opacity: 0.8; }
    51%, 100% { left: 120%; opacity: 0; }
}

/* Soft pulse glow for highlighted glass elements */
@keyframes glass-pulse {
    0%, 100% { box-shadow: var(--shadow-glass), var(--shadow-inner), 0 0 0   0   rgba(212,175,55,0.00); }
    50%       { box-shadow: var(--shadow-glass), var(--shadow-inner), 0 0 28px 4px rgba(212,175,55,0.18); }
}
