/*  Nongeric — Custom styles
    Sapphire navy on cream, with antique-brass accents. Nautical / classic luxury. */

:root {
    --bg-base: #F4EFE3;        /* parchment cream */
    --bg-surface: #FFFFFF;     /* card white */
    --bg-elev: #ECE5D5;        /* input bg */
    --navy: #0B2545;           /* deep sapphire navy — primary text & accent */
    --navy-soft: #1B3A6B;
    --brass: #B8860B;          /* antique brass — secondary accent */
    --brass-hover: #9A7109;
    --slate: #5A6B7E;          /* secondary text */
    --hairline: rgba(11, 37, 69, 0.15);
    --border-strong: rgba(11, 37, 69, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', system-ui, sans-serif;
    background-color: var(--bg-base);
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: '"Cormorant Garamond"', Georgia, serif;
    color: var(--navy);
    letter-spacing: -0.005em;
    font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-elev); }
::-webkit-scrollbar-thumb { background: rgba(11, 37, 69, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(11, 37, 69, 0.5); }
::selection { background: var(--navy); color: var(--bg-base); }

/* Buttons */
.btn-gold {
    background: var(--navy);
    color: var(--bg-base);
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid var(--navy);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.btn-gold:hover { background: var(--navy-soft); transform: scale(1.01); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
    background: transparent;
    color: var(--navy);
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid var(--navy);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.btn-outline:hover { background: var(--navy); color: var(--bg-base); }

/* Kicker label — uses brass for editorial accent */
.kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-weight: 700;
    color: var(--brass);
}

/* Brass gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #B8860B 0%, #E5C07B 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero gradient overlay — keeps text legible over image, fades into cream */
.hero-gradient {
    background: linear-gradient(to bottom,
        rgba(11, 37, 69, 0.55) 0%,
        rgba(11, 37, 69, 0.35) 45%,
        rgba(244, 239, 227, 0.85) 85%,
        var(--bg-base) 100%);
}

/* Glass nav */
.glass-nav {
    background: rgba(244, 239, 227, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
}

/* Nav link */
.nav-link {
    position: relative;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--slate);
    transition: color 0.2s ease;
    padding-bottom: 4px;
}
.nav-link.active, .nav-link:hover { color: var(--navy); }
.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1.5px;
    background: var(--brass);
}

/* Product card */
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--hairline);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    overflow: hidden;
}
.product-card:hover {
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(11, 37, 69, 0.12);
}
.product-card .img-wrap {
    aspect-ratio: 4/5;
    background: var(--bg-elev);
    overflow: hidden;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover img { transform: scale(1.04); }

/* Inputs */
.input-gold, .textarea-gold {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--hairline);
    color: var(--navy);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
    outline: none;
    border-radius: 0;
}
.input-gold::placeholder, .textarea-gold::placeholder { color: rgba(90, 107, 126, 0.6); }
.input-gold:focus, .textarea-gold:focus { border-color: var(--navy); }
.textarea-gold { resize: vertical; min-height: 120px; }

label.label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

/* Spinner */
.spinner {
    border: 2px solid rgba(11, 37, 69, 0.2);
    border-top: 2px solid var(--navy);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--bg-surface);
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 14px 20px;
    font-size: 13px;
    min-width: 280px;
    box-shadow: 0 12px 36px rgba(11, 37, 69, 0.18);
    animation: slideIn 0.3s ease-out;
}
.toast.success { border-color: var(--brass); }
.toast.error { border-color: rgba(220, 38, 38, 0.6); color: #b91c1c; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Cart drawer */
.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border-left: 1px solid var(--hairline);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(11, 37, 69, 0.08);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(11, 37, 69, 0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section dividers */
.section-divider { border-top: 1px solid var(--hairline); }

/* Tab */
.tab-btn {
    padding: 16px 24px;
    font-family: '"Cormorant Garamond"', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: var(--bg-elev);
    color: var(--slate);
    border: none;
    transition: all 0.2s ease;
    font-weight: 600;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { background: var(--navy); color: var(--bg-base); }

/* Filter pill */
.pill {
    padding: 9px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid var(--hairline);
    color: var(--slate);
    background: transparent;
    transition: all 0.2s ease;
    font-weight: 600;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active { background: var(--navy); color: var(--bg-base); border-color: var(--navy); }

/* Subtle anchor rope divider — used between sections */
.anchor-divider {
    text-align: center;
    margin: 1rem auto;
    color: var(--brass);
    letter-spacing: 0.3em;
    font-size: 10px;
}
.anchor-divider::before,
.anchor-divider::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: var(--hairline);
    vertical-align: middle;
    margin: 0 12px;
}

@media (max-width: 767px) {
    .cart-drawer { max-width: 100%; }
    h1 { letter-spacing: 0; }
}
