/* ============================================================
   BELOULASH — Design System v2
   Mobile-first. Editorial. Wine + cream + blush.
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; }

/* --- Tokens --- */
:root {
  --ink: #1B1416;
  --ink-soft: #3a2f33;
  --muted: #6E6164;
  --line: #E7DED9;
  --bg: #FBF7F4;
  --paper: #FFFFFF;
  --wine: #6B3A4B;
  --wine-deep: #4A2334;
  --blush: #EBD4D1;
  --blush-soft: #F5E6E2;
  --gold: #B89968;
  --success: #4A6B4F;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 2px rgba(27, 20, 22, 0.04), 0 8px 24px rgba(27, 20, 22, 0.06);
  --shadow-lift: 0 2px 4px rgba(27, 20, 22, 0.06), 0 16px 40px rgba(27, 20, 22, 0.12);

  --container: 1240px;
  --gutter: 20px;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h: 64px;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* --- Base typography --- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2rem, 6vw + 0.5rem, 4.25rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.5vw + 0.5rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.7rem, 1.75rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.125rem; color: var(--muted); }
.eyebrow { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.muted { color: var(--muted); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; min-height: 48px; white-space: nowrap; }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-secondary { background: var(--ink); color: var(--bg); }
.btn-secondary:hover { background: var(--wine-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 1rem; min-height: 56px; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; min-height: 40px; }

/* --- Top banner + header --- */
.top-banner { background: var(--wine); color: var(--blush-soft); text-align: center; font-size: 0.78rem; letter-spacing: 0.06em; padding: 8px 12px; }
.top-banner strong { color: #fff; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; }
.logo-img { display: block; height: 36px; width: auto; }
@media (min-width: 720px) { .logo-img { height: 48px; } }
.site-footer .logo-img { filter: brightness(0) invert(1); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { font-size: 0.92rem; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s; }
.nav-desktop a:hover { border-bottom-color: var(--wine); color: var(--ink); }
@media (min-width: 1000px) { .nav-desktop { display: block; } }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; transition: background .15s; position: relative; }
.icon-btn:hover { background: var(--blush-soft); }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
.cart-badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 0.7rem; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }

.hamburger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; }
@media (min-width: 1000px) { .hamburger { display: none; } }

/* --- Mobile drawer --- */
.drawer { position: fixed; inset: 0; background: rgba(27, 20, 22, 0.4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 100; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--bg); transform: translateX(100%); transition: transform .3s cubic-bezier(.5,.2,.2,1); display: flex; flex-direction: column; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-nav { padding: 12px 0; }
.drawer-nav a { display: block; padding: 14px 20px; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer-foot { margin-top: auto; padding: 20px; background: var(--blush-soft); font-size: 0.85rem; color: var(--ink-soft); }

/* --- Hero --- */
.hero { position: relative; min-height: 80vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(27,20,22,0.55) 100%); }
.hero-inner { position: relative; padding: 0 var(--gutter) 56px; color: #fff; max-width: 700px; }
.hero-inner h1 { color: #fff; }
.hero-inner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* --- Trust strip --- */
.trust { background: var(--ink); color: var(--bg); padding: 18px 0; font-size: 0.86rem; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-items: center; text-align: center; }
.trust-grid > div { display: inline-flex; align-items: center; gap: 8px; justify-content: center; opacity: 0.9; }
.trust-grid svg { width: 16px; height: 16px; stroke: var(--blush); fill: none; stroke-width: 1.8; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Section heading --- */
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* --- Product card --- */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
@media (min-width: 720px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; position: relative; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.product-media { aspect-ratio: 4/5; background: var(--blush-soft); overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--bg); font-size: 0.68rem; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.product-tag.new { background: var(--wine); color: #fff; }
.product-tag.bestseller { background: var(--gold); color: #fff; }
.product-wishlist { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.85); display: grid; place-items: center; }
.product-wishlist svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
.product-info { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.product-cat { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.product-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--ink); margin: 0; line-height: 1.2; }
.product-price { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.product-price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.product-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--muted); }
.product-rating .stars { color: var(--gold); letter-spacing: 1px; font-size: 0.85rem; }

/* --- Editorial blocks --- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.split-img { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}

/* --- Styles strip (lash families) --- */
.style-row { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.style-row::-webkit-scrollbar { display: none; }
.style-card { scroll-snap-align: start; position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; }
.style-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.style-card:hover img { transform: scale(1.04); }
.style-card-text { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.25); }
.style-card-text h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.style-card-text p { color: rgba(255,255,255,0.9); font-size: 0.85rem; margin: 4px 0 0; }
@media (min-width: 720px) { .style-row { grid-auto-columns: 1fr; grid-template-columns: repeat(5, 1fr); overflow: visible; gap: 16px; } }

/* --- Reviews --- */
.reviews { background: var(--blush-soft); }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.review { background: var(--paper); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review blockquote { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.45; margin: 0 0 12px; color: var(--ink); }
.review-author { font-size: 0.85rem; color: var(--muted); }

/* --- Newsletter --- */
.newsletter { background: var(--wine); color: var(--blush-soft); text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--blush); font-size: 1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: 999px; border: none; background: rgba(255,255,255,0.95); color: var(--ink); }
.newsletter-form button { background: var(--ink); color: #fff; }
@media (min-width: 600px) { .newsletter-form { flex-direction: row; } .newsletter-form input { padding: 16px 22px; } }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(251, 247, 244, 0.75); padding: 56px 0 32px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.18em; margin-bottom: 16px; }
.site-footer a { display: block; padding: 6px 0; color: rgba(251,247,244,0.7); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: rgba(251,247,244,0.6); max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--wine); border-color: var(--wine); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding-top: 24px; font-size: 0.78rem; color: rgba(251,247,244,0.5); }

/* --- Mobile sticky CTA (PDP) --- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 12px; }
.sticky-cta .sc-price { font-weight: 600; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* --- Breadcrumbs --- */
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); padding: 16px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line); }

/* --- Tabs / chips --- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.85rem; transition: all .15s; }
.chip.is-active, .chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.wine.is-active { background: var(--wine); border-color: var(--wine); }

/* --- Tier picker (PDP) --- */
.tier-list { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .15s; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier-name { font-weight: 600; font-size: 1rem; }
.tier-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
.tier-price { font-weight: 600; font-size: 1rem; }
.tier.is-active { border-color: var(--wine); background: var(--blush-soft); }
.tier.tier-disabled { opacity: 0.45; cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, var(--paper) 6px, var(--paper) 12px); }
.tier.tier-disabled:hover { border-color: var(--line); }
.tier.tier-disabled input { pointer-events: none; }

/* Variant-kiezer (maten, kleuren, bedragen) */
.variant-section { margin: 4px 0; }
.variant-section h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.variant-section h4 span { color: var(--ink); text-transform: capitalize; }
.variant-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-chip { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.variant-chip:hover { border-color: var(--ink); }
.variant-chip.is-active { background: var(--wine); border-color: var(--wine); color: #fff; }
.variant-chip.is-active .variant-swatch { border-color: rgba(255,255,255,0.6); }
.variant-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.12); flex-shrink: 0; }
.variant-size { font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; }

/* --- Quantity --- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { width: 40px; height: 44px; font-size: 1.1rem; color: var(--ink); }
.qty input { width: 44px; height: 44px; text-align: center; border: 0; background: transparent; }

/* --- Tables / cart --- */
.cart-table { display: grid; gap: 14px; }
.cart-row { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: start; background: var(--paper); padding: 14px; border-radius: var(--radius); }
.cart-row img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row-info { display: flex; flex-direction: column; gap: 6px; }
.cart-row-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* --- Forms --- */
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field { display: block; width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); }
.field:focus { outline: 2px solid var(--wine); outline-offset: -1px; border-color: var(--wine); }

/* --- Utility --- */
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* --- Age gate (simple) --- */
.age-gate { position: fixed; inset: 0; background: rgba(27,20,22,0.85); z-index: 200; display: grid; place-items: center; padding: 20px; }
.age-card { background: var(--bg); border-radius: var(--radius-lg); padding: 32px; max-width: 420px; text-align: center; }
.age-card h2 { margin-top: 0; }
.age-actions { display: flex; gap: 12px; margin-top: 20px; }
.age-actions .btn { flex: 1; }
