/* ============================================================
   YOLK — Design System (minimal / young)
   Palette: Coffee Brown + Cream Yellow + White
   Fonts: Poppins (display / logo) + Inter (body)
   ============================================================ */

:root {
  --coffee: #4A2818;
  --coffee-dark: #341A0F;
  --cream-yellow: #F5EFA6;
  --cream-yellow-soft: #FAF6D4;
  --white: #FFFFFF;
  --line: rgba(74, 40, 24, 0.14);
  --line-soft: rgba(74, 40, 24, 0.08);

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1100px;
  --radius: 14px;
  --radius-sm: 8px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--coffee);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coffee);
  opacity: .6;
}

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.25; }
p.lede { font-size: 17px; line-height: 1.6; color: rgba(74,40,24,.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coffee); color: var(--cream-yellow-soft); }
.btn-primary:hover { background: var(--coffee-dark); }
.btn-outline { background: transparent; border-color: var(--coffee); color: var(--coffee); }
.btn-outline:hover { background: var(--coffee); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Logo mark ---------- */
.logo-mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  width: 40px;
  height: 40px;
  background: var(--cream-yellow);
  border-radius: 10px;
  padding: 4px;
  gap: 1px;
  flex-shrink: 0;
}
.logo-mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--coffee);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.logo-mark.lg { width: 68px; height: 68px; border-radius: 16px; }
.logo-mark.lg span { font-size: 22px; }
.logo-lockup { display: inline-flex; align-items: center; gap: 12px; }
.logo-lockup .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links a.active, .nav-links a:hover { opacity: .6; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-icon-btn { position: relative; background: none; border: none; font-size: 20px; display: flex; align-items: center; }
.cart-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--coffee); color: var(--cream-yellow);
  font-size: 10px; font-weight: 700; width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-burger span { width: 24px; height: 2px; background: var(--coffee); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line-soft); padding: 8px 24px 24px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); font-size: 14px; font-weight: 600; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  background: var(--cream-yellow);
  color: var(--coffee);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,239,166,0) 30%, rgba(245,239,166,.92) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 56px 24px 64px; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero h1 { margin: 14px 0 16px; max-width: 640px; }
.hero p.lede { max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-head { margin-bottom: 40px; text-align: center; }
.section-head h2 { margin-top: 8px; }
.bg-cream { background: var(--cream-yellow-soft); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { position: relative; }
.product-card-media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-yellow-soft); margin-bottom: 14px;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.product-card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card-media img.alt { opacity: 1; }
.quick-add { position: absolute; bottom: 10px; left: 10px; right: 10px; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-card-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.product-card-meta { font-size: 12px; color: rgba(74,40,24,.5); margin-bottom: 5px; }
.product-card-price { font-size: 14px; font-weight: 700; }

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Story teaser ---------- */
.story-teaser { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.story-teaser img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-teaser blockquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,3vw,32px); line-height: 1.25; margin: 16px 0 22px; }
@media (max-width: 900px) { .story-teaser { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--coffee); color: rgba(245,239,166,.75); padding: 56px 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.footer-tagline { max-width: 300px; font-size: 14px; color: rgba(245,239,166,.6); margin-top: 14px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--cream-yellow); }
.footer-links a:hover { opacity: .7; }
.footer-legal { font-size: 12px; color: rgba(245,239,166,.5); padding-top: 20px; border-top: 1px solid rgba(245,239,166,.15); }
.footer-legal a { color: rgba(245,239,166,.7); text-decoration: underline; }
.footer-bottom { padding-top: 12px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; color: rgba(245,239,166,.5); }

/* ---------- Page header ---------- */
.page-header { padding: 56px 0 24px; text-align: center; }
.page-header .eyebrow { display: block; margin-bottom: 10px; }

/* ---------- Product detail ---------- */
.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
.pdp-gallery-main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--cream-yellow-soft); margin-bottom: 12px; }
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumb { width: 72px; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: .6; }
.pdp-thumb.active { border-color: var(--coffee); opacity: 1; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: 96px; }
.pdp-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 12px 0 20px; }
.pdp-option-label { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.swatch-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--white); outline: 1px solid var(--line); cursor: pointer; position: relative; }
.swatch.active { outline: 2px solid var(--coffee); }
.size-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.size-btn { min-width: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); font-size: 13px; font-weight: 600; text-align: center; }
.size-btn.active { border-color: var(--coffee); background: var(--coffee); color: var(--cream-yellow); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty-control button { width: 36px; height: 36px; background: none; border: none; font-size: 16px; }
.qty-control span { width: 30px; text-align: center; font-weight: 600; }
.pdp-details { margin-top: 36px; border-top: 1px solid var(--line-soft); }
.accordion-item { border-bottom: 1px solid var(--line-soft); }
.accordion-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 14px; color: rgba(74,40,24,.72); }
.accordion-body-inner { padding-bottom: 16px; }
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-icon { transition: transform .2s ease; font-size: 18px; }
.add-cart-msg { font-size: 13px; color: var(--coffee); opacity: .7; margin-top: 10px; min-height: 18px; }
@media (max-width: 900px) { .pdp-layout { grid-template-columns: 1fr; gap: 26px; } .pdp-info { position: static; } }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: flex-start; }
.cart-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item img { width: 88px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-name { font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: 13px; color: rgba(74,40,24,.55); margin-bottom: 8px; }
.cart-item-remove { font-size: 12px; text-decoration: underline; color: rgba(74,40,24,.55); }
.cart-summary { background: var(--cream-yellow-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 16px; }
.cart-empty { text-align: center; padding: 70px 0; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }

/* ---------- Prose ---------- */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { margin: 36px 0 14px; }
.prose p { margin-bottom: 16px; color: rgba(74,40,24,.78); }

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.empty-state { text-align: center; padding: 60px 20px; color: rgba(74,40,24,.45); font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--coffee); color: var(--cream-yellow); padding: 14px 24px; border-radius: 100px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
