/* =========================================================================
   BEAUTY PLATFORM — Storefront styles
   Direction: editorial luxe. Deep wine + brass on porcelain.
   Display: Bodoni Moda (used with restraint). Body: Inter.
   ========================================================================= */

:root {
    --ink:        #1B1712;   /* warm near-black — dark sections, logo */
    --wine:       #2A2018;   /* espresso — primary buttons/actions/prices */
    --wine-deep:  #120E0A;   /* near-black hover */
    --brass:      #A97C4F;   /* camel — accent labels, secondary button */
    --brass-soft: #C6A079;   /* soft caramel */
    --blush:      #ECDDCB;   /* soft nude — gradients/tints */
    --porcelain:  #F7F0E6;   /* warm cream — page background */
    --mist:       #F0E6D7;   /* section/card alt background */
    --line:       #E3D6C3;   /* warm border */
    --muted:      #8B7C68;   /* warm taupe text */
    --text:       #2B2318;   /* warm near-black text */

    --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', system-ui, -apple-system, sans-serif;

    --wrap: 1180px;
    --radius: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--porcelain);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }

/* ---- Typography helpers ---- */
.eyebrow {
    font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--brass); font-weight: 600; margin: 0 0 18px;
}
.eyebrow-light { color: var(--brass-soft); }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(251, 246, 243, 0.86);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand {
    font-family: var(--serif); font-size: 26px; font-weight: 600;
    letter-spacing: 0.04em; color: var(--ink); display: flex; align-items: center;
}
.brand-logo { height: 24px; width: auto; display: block; }
.footer-logo { height: 26px; width: auto; margin-bottom: 12px; }
.nav { display: flex; gap: 30px; }
.nav a {
    font-size: 14px; font-weight: 500; color: var(--text);
    position: relative; padding: 4px 0;
}
.nav a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
    background: var(--wine); transition: width 0.28s ease;
}
.nav a:hover::after { width: 100%; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--sans); font-size: 14px; font-weight: 600;
    letter-spacing: 0.02em; padding: 14px 28px; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease;
    line-height: 1; text-align: center;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-soft); }
.btn-ghost { background: transparent; border-color: var(--wine); color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: #fff; }
.btn-ghost-dark { background: transparent; border-color: var(--line); color: var(--text); }
.btn-block { width: 100%; }

/* ---- Hero ---- */
.hero { padding: 96px 0 84px; background:
    radial-gradient(1000px 500px at 78% -10%, var(--blush), transparent 60%), var(--porcelain); }
.hero-inner { max-width: 760px; }
.hero-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(42px, 7vw, 84px); line-height: 1.02;
    letter-spacing: -0.01em; color: var(--ink); margin: 0 0 24px;
}
.hero-sub { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 76px 0; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 40px; gap: 20px;
}
.section-title {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin: 0;
    letter-spacing: -0.01em;
}
.section-link { font-size: 14px; font-weight: 600; color: var(--wine); white-space: nowrap; }
.section-link:hover { color: var(--brass); }

/* ---- Product grid ---- */
.product-grid {
    display: grid; gap: 30px 26px;
    grid-template-columns: repeat(4, 1fr);
}
.product-card { display: block; }
.product-media {
    aspect-ratio: 3 / 4; background: var(--mist);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
    border: 1px solid var(--line);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-noimg {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blush), var(--mist));
}
.product-noimg span { font-family: var(--serif); font-size: 56px; color: var(--wine); opacity: 0.5; }
.product-name { font-size: 17px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.product-desc { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.product-price { font-size: 15px; font-weight: 600; color: var(--wine); }

/* ---- Categories ---- */
.category-row, .filter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.category-chip {
    display: inline-block; padding: 10px 20px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text);
    background: #fff; transition: all 0.2s ease;
}
.category-chip:hover { border-color: var(--wine); color: var(--wine); }
.category-chip.is-active { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ---- About ---- */
.about { background: var(--mist); }
.about-inner { max-width: 720px; }
.about-body { font-size: 19px; line-height: 1.7; color: var(--text); margin: 0; }

/* ---- Distributor band ---- */
.dist-band { background: var(--ink); color: var(--porcelain); padding: 80px 0; }
.dist-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.dist-title {
    font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.5vw, 46px);
    margin: 0 0 14px; color: #fff;
}
.dist-sub { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 520px; margin: 0; }

/* ---- Page heads ---- */
.page-head { padding: 60px 0 24px; border-bottom: 1px solid var(--line); background: var(--porcelain); }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 54px); color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.page-lead { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0; }
.filter-row { margin-top: 24px; }

/* ---- Product detail ---- */
.back-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--wine); margin-bottom: 28px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; background: var(--mist); }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-noimg-lg span { font-size: 120px; }
.product-detail-name { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 46px); color: var(--ink); margin: 8px 0 16px; line-height: 1.08; }
.product-detail-price { font-size: 24px; font-weight: 600; color: var(--wine); margin: 0 0 24px; }
.product-detail-desc { font-size: 16px; color: var(--text); margin: 0 0 32px; }
.product-detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stock { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.stock.in { color: #2E7D52; }
.stock.out { color: var(--muted); }

/* ---- Forms ---- */
.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 40px; box-shadow: 0 20px 50px -30px rgba(74, 24, 42, 0.3);
}
.form-group-title {
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--wine); font-weight: 700; margin: 26px 0 16px;
    padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.form-card .form-group-title:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
    font-family: var(--sans); font-size: 15px; color: var(--text);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--porcelain); transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(110, 36, 57, 0.12); background: #fff;
}
.field textarea { resize: vertical; }
.form-card .btn-block { margin-top: 12px; }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin: 22px 0; font-size: 14px; font-weight: 500; }
.alert-error { background: #FBE9EC; color: #8E1D33; border: 1px solid #F1C9D1; }
.alert-success { background: #E8F5EE; color: #1E6B44; border: 1px solid #C4E6D3; }

/* ---- Misc ---- */
.empty { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 16px; }
.center-block { text-align: center; }
.center-block .btn { margin-top: 8px; }
.success-mark {
    width: 64px; height: 64px; border-radius: 50%; background: var(--wine); color: #fff;
    display: grid; place-items: center; font-size: 30px; margin: 0 auto 24px;
}

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); margin-top: 20px; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { font-family: var(--serif); font-size: 26px; color: #fff; margin-bottom: 10px; }
.footer-tag { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 320px; margin: 0; }
.site-footer h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-soft); margin: 0 0 16px; }
.site-footer a { display: block; font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14px; margin: 0 0 8px; }
.footer-base {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
    font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px;
}
.footer-admin { color: rgba(255,255,255,0.5); }
.footer-admin:hover { color: var(--brass-soft); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dist-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
    .wrap { padding: 0 20px; }
    .nav { gap: 18px; }
    .brand { font-size: 22px; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 54px 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
