/* ============================================================
   beanchong — 스페셜티 로스터리 & 수제청과 공방
   warm editorial light theme
   ============================================================ */

:root {
  --ivory: #faf6ef;
  --cream: #f3eadc;
  --cream-deep: #ece0cd;
  --paper: #fffdf9;
  --line: #e2d6c4;
  --line-soft: #ece3d4;
  --espresso: #2b1d16;
  --espresso-soft: #4a3529;
  --brown: #6a4a36;
  --brown-soft: #8b6a52;
  --muted: #7d6b5c;
  --citrus: #d9862a;
  --citrus-pale: #f6e3c8;
  --berry: #93253c;
  --ok: #2f6b4f;
  --danger: #a3352f;
  --shadow: 0 18px 40px -28px rgba(43, 29, 22, .55);
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", Georgia, serif;
  --sans: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--espresso); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.35; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--espresso);
  color: #f6ecdd;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 16px;
}
.announce b { color: #f3cf9a; font-weight: 500; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--serif); font-size: 25px; letter-spacing: .04em; color: var(--espresso);
  font-weight: 600;
}
.brand-logo { height: 50px; width: auto; max-width: none; display: block; }
.brand-sub {
  font-size: 10.5px; letter-spacing: .22em; color: var(--brown-soft); text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid var(--line);
}
.main-nav { display: flex; gap: 30px; margin-left: 26px; }
.main-nav a {
  font-size: 14.5px; color: var(--espresso-soft); padding: 6px 0; position: relative; letter-spacing: .01em;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--espresso);
  transition: right .28s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--espresso-soft); }
.icon-link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cart-badge {
  min-width: 18px; height: 18px; border-radius: 9px; background: var(--citrus); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
  font-weight: 600;
}
.menu-toggle { display: none; background: none; border: 0; padding: 6px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: rgba(43, 29, 22, .4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: var(--ivory);
  padding: 26px 24px; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; gap: 6px;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 22px; line-height: 1; padding: 4px 6px; color: var(--brown); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border: 1px solid var(--espresso); background: var(--espresso); color: #fbf3e6;
  font-size: 14.5px; letter-spacing: .03em; border-radius: 2px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #1d130e; }
.btn--full { width: 100%; }
.btn--accent { background: var(--citrus); border-color: var(--citrus); color: #fff; }
.btn--accent:hover { background: #c4761f; border-color: #c4761f; }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost:hover { background: rgba(43, 29, 22, .05); }
.btn--line { background: transparent; color: var(--espresso); border-color: var(--line); }
.btn--line:hover { border-color: var(--espresso); background: transparent; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(520px, 74vh, 760px); display: flex; align-items: center;
  background: var(--cream); overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 246, 239, .96) 0%, rgba(250, 246, 239, .86) 34%, rgba(250, 246, 239, .25) 62%, rgba(250, 246, 239, 0) 82%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brown);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brown-soft); display: inline-block; }
.hero h1 {
  font-size: clamp(30px, 3.8vw, 46px); line-height: 1.3; margin: 22px 0 20px; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--citrus); }
.hero p { color: var(--brown); font-size: 16px; margin: 0 0 32px; max-width: 420px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- section basics ---------- */
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 12px; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 480px; }
.link-more {
  font-size: 13px; letter-spacing: .06em; color: var(--brown); border-bottom: 1px solid var(--brown-soft);
  padding-bottom: 2px; white-space: nowrap;
}
.link-more:hover { color: var(--espresso); border-color: var(--espresso); }

/* ---------- category strip ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 24px; color: #fff;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 19, 13, .82) 0%, rgba(30, 19, 13, .45) 32%, rgba(30, 19, 13, .05) 68%); }
.cat-tile:hover img { transform: scale(1.045); }
.cat-tile div { position: relative; z-index: 2; }
.cat-tile h3 { font-size: 21px; color: #fff; }
.cat-tile span { font-size: 12.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .82); }

/* ---------- product grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px; }
.grid-products.three { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; }
.card-media {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream);
  border: 1px solid var(--line-soft);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: .16em; padding: 5px 9px; background: var(--espresso); color: #f7ecda;
}
.badge--new { background: var(--citrus); color: #fff; }
.badge--soldout { background: rgba(43, 29, 22, .78); }
.card-body { padding: 16px 2px 0; }
.card-cat { font-size: 11px; letter-spacing: .18em; color: var(--brown-soft); text-transform: uppercase; }
.card h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 500; margin: 7px 0 4px; letter-spacing: -.01em; }
.card-notes { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.card-price { margin-top: 9px; font-size: 15px; letter-spacing: .01em; }
.card-price b { font-weight: 600; }
.card-price small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.card.is-soldout .card-media::after { content: "품절"; position: absolute; inset: 0; background: rgba(250, 246, 239, .72); display: grid; place-items: center; font-size: 13px; letter-spacing: .2em; color: var(--brown); }

/* ---------- story split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split-img { position: relative; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.split h2 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 20px; }
.split p { color: var(--brown); font-size: 15.2px; }
.story-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.story-points li { display: flex; gap: 14px; font-size: 14.5px; color: var(--espresso-soft); }
.story-points b { font-family: var(--serif); color: var(--citrus); font-size: 15px; min-width: 26px; }

/* ---------- guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guide-card { border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.guide-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.guide-card-body { padding: 26px 26px 30px; }
.guide-card h3 { font-size: 20px; margin-bottom: 10px; }
.guide-card p { margin: 0; color: var(--brown); font-size: 14.5px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.steps li { counter-increment: step; font-size: 13.8px; color: var(--espresso-soft); padding-left: 26px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 10.5px; display: grid; place-items: center; color: var(--brown);
}

/* ---------- reviews strip ---------- */
.review-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--paper); border: 1px solid var(--line-soft); padding: 26px 24px; }
.review-card .stars { color: var(--citrus); font-size: 13px; letter-spacing: .12em; }
.review-card p { margin: 12px 0 14px; font-size: 14.2px; color: var(--espresso-soft); }
.review-card footer { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

/* ---------- catalog page ---------- */
.page-head { background: var(--cream); padding: 62px 0 46px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 8px; }
.page-head p { margin: 0; color: var(--brown); font-size: 15px; }
.about-mark { height: 132px; width: auto; display: block; margin-bottom: 6px; }
.brand-tagline {
  margin-top: 24px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brown-soft);
}
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 24px 0; border-bottom: 1px solid var(--line-soft); margin-bottom: 40px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  height: 38px; padding: 0 18px; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  font-size: 13.5px; color: var(--brown); display: inline-flex; align-items: center; letter-spacing: .02em;
}
.tab.is-active { background: var(--espresso); border-color: var(--espresso); color: #f9f0e2; }
.tab:hover { border-color: var(--espresso); }
.filter-right { display: flex; gap: 10px; align-items: center; }
.search-box { display: flex; align-items: center; border: 1px solid var(--line); height: 40px; padding: 0 12px; background: var(--paper); }
.search-box input { border: 0; outline: 0; background: transparent; width: 150px; font-size: 13.5px; }
.search-box button { border: 0; background: none; cursor: pointer; color: var(--brown); font-size: 13px; }
.select {
  height: 40px; border: 1px solid var(--line); background: var(--paper); padding: 0 12px; font-size: 13.5px; color: var(--brown);
}

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; padding: 56px 0 20px; align-items: start; }
.pd-gallery { position: sticky; top: 104px; }
.pd-main { border: 1px solid var(--line); background: var(--cream); }
.pd-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.pd-info .card-cat { font-size: 11.5px; }
.pd-info h1 { font-size: clamp(26px, 2.8vw, 36px); margin: 12px 0 10px; }
.pd-sub { color: var(--brown); font-size: 15px; margin: 0 0 20px; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pd-rating .stars { color: var(--citrus); letter-spacing: .1em; }
.pd-price { font-size: 26px; font-family: var(--serif); letter-spacing: .01em; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price small { font-size: 12px; color: var(--muted); font-family: var(--sans); margin-left: 8px; }
.opt-group { margin: 24px 0; }
.opt-group > label.title { display: block; font-size: 12.5px; letter-spacing: .1em; color: var(--brown); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--espresso-soft); cursor: pointer; border-radius: 2px; background: var(--paper);
  transition: all .18s ease; white-space: nowrap;
}
.pill input:checked + span { border-color: var(--espresso); background: var(--espresso); color: #fbf3e6; }
.pill input:focus-visible + span { outline: 2px solid var(--citrus); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0; }
.stepper { display: inline-flex; border: 1px solid var(--line); background: var(--paper); }
.stepper button { width: 42px; height: 44px; border: 0; background: none; font-size: 17px; cursor: pointer; color: var(--brown); }
.stepper input { width: 48px; height: 44px; border: 0; text-align: center; font-size: 15px; background: transparent; }
.total-line { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 0; }
.total-line span { font-size: 13px; color: var(--muted); }
.total-line b { font-family: var(--serif); font-size: 22px; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pd-meta { margin-top: 28px; border-top: 1px solid var(--line); }
.pd-meta dl { display: grid; grid-template-columns: 108px 1fr; gap: 4px 12px; margin: 18px 0 0; font-size: 13.5px; }
.pd-meta dt { color: var(--brown-soft); }
.pd-meta dd { margin: 0; color: var(--espresso-soft); }
.ship-note { display: flex; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.ship-note b { color: var(--brown); font-weight: 500; }

.tabs-detail { margin-top: 64px; border-top: 1px solid var(--line); }
.tabs-detail details { border-bottom: 1px solid var(--line-soft); }
.tabs-detail summary {
  cursor: pointer; list-style: none; padding: 22px 4px; font-size: 15px; display: flex; justify-content: space-between;
  align-items: center; letter-spacing: .02em;
}
.tabs-detail summary::-webkit-details-marker { display: none; }
.tabs-detail summary::after { content: "+"; font-size: 18px; color: var(--brown-soft); }
.tabs-detail details[open] summary::after { content: "–"; }
.tabs-detail .detail-body { padding: 0 4px 30px; color: var(--espresso-soft); font-size: 14.8px; }
.tabs-detail .detail-body p { margin: 0 0 16px; }

.reviews-section { padding: 64px 0 96px; }
.review-item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.review-item header { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.review-item .stars { color: var(--citrus); letter-spacing: .1em; font-size: 13px; }
.review-item .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: grid; place-items: center;
  font-size: 13px; color: var(--brown); font-family: var(--serif);
}
.review-item p { margin: 10px 0 0 46px; font-size: 14.3px; color: var(--espresso-soft); }
.review-form { margin-top: 30px; background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.review-form h3 { font-size: 17px; margin-bottom: 14px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; letter-spacing: .06em; color: var(--brown); }
.field input, .field textarea, .field select {
  height: 48px; border: 1px solid var(--line); background: var(--paper); padding: 0 14px; outline: 0;
  border-radius: 2px; transition: border-color .18s ease;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brown); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--espresso-soft); }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 52px 0 90px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 108px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-item img { width: 108px; height: 108px; object-fit: cover; border: 1px solid var(--line); }
.cart-item h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.cart-item .opt { font-size: 12.5px; color: var(--muted); }
.cart-item .price { font-size: 14.5px; margin-top: 8px; }
.cart-side { background: var(--paper); border: 1px solid var(--line); padding: 30px 28px; position: sticky; top: 104px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; color: var(--espresso-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; font-size: 15px; }
.summary-row.total b { font-family: var(--serif); font-size: 24px; }
.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; color: var(--espresso); }

/* ---------- order complete / lookup ---------- */
.complete-hero { background: var(--cream); padding: 70px 0 54px; text-align: center; border-bottom: 1px solid var(--line); }
.complete-hero .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--espresso); color: #f7ecda; display: grid;
  place-items: center; margin: 0 auto 22px; font-size: 24px;
}
.complete-hero h1 { font-size: clamp(26px, 3.2vw, 36px); }
.complete-hero p { color: var(--brown); margin: 12px 0 0; }
.order-card { background: var(--paper); border: 1px solid var(--line); padding: 34px 34px 30px; }
.order-card + .order-card { margin-top: 20px; }
.order-card h2 { font-size: 18px; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--brown-soft); }
.kv dd { margin: 0; }
.timeline { display: flex; gap: 0; margin: 26px 0 6px; }
.timeline .step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--muted); }
.timeline .step::before {
  content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--line);
  margin: 0 auto 10px; position: relative; z-index: 2;
}
.timeline .step::after { content: ""; position: absolute; top: 5px; left: 50%; right: -50%; height: 1px; background: var(--line); z-index: 1; }
.timeline .step:last-child::after { display: none; }
.timeline .step.is-done { color: var(--espresso); font-weight: 500; }
.timeline .step.is-done::before { background: var(--espresso); }
.timeline .step.is-done::after { background: var(--espresso-soft); }

/* ---------- badges / status ---------- */
.pill-status {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: .03em; border: 1px solid var(--line); color: var(--brown); background: var(--paper);
}
.pill-status.ok { background: #eaf2ec; border-color: #c6ddcc; color: var(--ok); }
.pill-status.info { background: #eef1f6; border-color: #cfd8e6; color: #34517a; }
.pill-status.accent { background: var(--citrus-pale); border-color: #ecc99a; color: #9a5b12; }
.pill-status.done { background: #e9e4dd; border-color: #d5cabb; color: var(--espresso-soft); }
.pill-status.danger { background: #f7e9e7; border-color: #e6c3bf; color: var(--danger); }
.pill-status.muted { color: var(--muted); }
.test-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 10px; border: 1px dashed var(--citrus);
  color: #9a5b12; background: #fdf3e4; letter-spacing: .02em; white-space: nowrap; flex: 0 0 auto;
}

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: #d8c8b8; padding: 64px 0 34px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand-mark { color: #fbf3e6; font-size: 22px; }
.footer-brand { display: flex; align-items: center; }
.footer-logo { height: 40px; width: auto; display: block; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; color: #f3cf9a; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #d8c8b8; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-info { line-height: 1.9; color: #b7a494; font-size: 12.5px; }
.footer-bottom { border-top: 1px solid rgba(216, 200, 184, .18); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #a08e7e; }

/* ---------- flash ---------- */
.flash-wrap { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); z-index: 70; width: min(92vw, 460px); }
.flash {
  padding: 14px 18px; font-size: 13.5px; border: 1px solid var(--line); background: var(--paper);
  box-shadow: var(--shadow); border-left: 3px solid var(--espresso);
}
.flash.success { border-left-color: var(--ok); }
.flash.error { border-left-color: var(--danger); }

/* ---------- misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.notice-bar { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--brown); padding: 14px 18px; background: var(--cream); border: 1px solid var(--line); }
.notice-bar > :last-child { flex: 1 1 auto; }
.crumbs { font-size: 12px; color: var(--muted); letter-spacing: .04em; padding: 18px 0; }
.crumbs a:hover { color: var(--espresso); }
.error-page { padding: 120px 0 140px; text-align: center; }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.error-page p { color: var(--brown); margin-bottom: 28px; }
.eyebrow.center { justify-content: center; }
.center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .brand-sub { display: none; }
  .brand-logo { height: 44px; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .pd { gap: 36px; }
  .split { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { min-height: 560px; align-items: flex-end; padding-bottom: 56px; }
  .hero::after { background: linear-gradient(0deg, rgba(250, 246, 239, .98) 10%, rgba(250, 246, 239, .95) 44%, rgba(250, 246, 239, .72) 62%, rgba(250, 246, 239, .15) 92%); }
  .hero-img { object-position: 62% 40%; }
  .section { padding: 64px 0; }
  .cat-strip { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .guide-grid, .review-strip { grid-template-columns: 1fr; }
  .grid-products.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container, .narrow { padding: 0 18px; }
  .header-inner { height: 64px; padding: 0 18px; }
  .brand-mark { font-size: 21px; }
  .brand-logo { height: 36px; }
  .brand-sub { display: none; }
  .about-mark { height: 96px; }
  .grid-products, .grid-products.three { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card h3 { font-size: 14px; }
  .card-notes { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 28px; }
  .pd-actions { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cart-item { grid-template-columns: 82px 1fr; }
  .cart-item img { width: 82px; height: 82px; }
  .cart-item .cart-remove { grid-column: 2; }
  .order-card { padding: 24px 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 10px; font-size: 12px; }
  .search-box input { width: 110px; }
  .hero h1 { font-size: 32px; }
  .page-head { padding: 44px 0 34px; }
  .timeline .step { font-size: 10.5px; }
}
