/* ============================================
   DAVLYN CLOSET — Premium Design System
   ============================================ */

/* Font Smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #EDE8FF; }
::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2E0D5C; }

/* ── Gold Shimmer Divider ── */
.gold-divider {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
    margin: 0 auto;
}

/* ── Premium Nav Backdrop Blur ── */
nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Reveal Scroll Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Premium Product Cards ── */
.product-card {
    position: relative;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196,181,244,0.4);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(46,13,92,0.15), 0 4px 16px rgba(201,168,76,0.12);
    border-color: rgba(201,168,76,0.5);
}
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}
.product-card:hover::after {
    border-bottom-color: #C9A84C;
}

/* ── Premium Buttons ── */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2E0D5C 0%, #4B1D8E 100%);
    color: #F9F0D0;
    padding: 14px 36px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(201,168,76,0.3);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, transparent 100%);
    transition: left 0.4s ease;
}
.btn-primary:hover::before { left: 0; }
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(46,13,92,0.3);
    border-color: rgba(201,168,76,0.6);
}

/* ── Gold Accent Text ── */
.text-gold { color: #C9A84C; }

/* ── Glass Card ── */
.glass-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196,181,244,0.35);
    box-shadow: 0 4px 24px rgba(46,13,92,0.06);
}

/* ── Section Headings ── */
.section-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #C9A84C;
    font-weight: 600;
}

/* ── Fade In Animation ── */
.fade-in {
    animation: fadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Custom Select Dropdown ── */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232E0D5C%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem top 50%;
    background-size: 0.6rem auto;
}

/* ── Toast Notification ── */
#toast {
    box-shadow: 0 8px 32px rgba(46,13,92,0.25);
    border-left: 3px solid #C9A84C;
}

/* ── Mannequin Overlay ── */
.mannequin-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 5;
    background-color: transparent;
}
.mannequin-base,
.clothing-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}
.clothing-overlay { z-index: 10; }

/* ── Input Focus Ring ── */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(201,168,76,0.3);
}

/* ── Hero gradient overlay ── */
.hero-gradient {
    background: linear-gradient(120deg, #EDE8FF 45%, rgba(237,232,255,0.5) 75%, transparent 100%);
}
