:root {
  --cream: #fffdf5;
  --cream-2: #f7f1e5;
  --brown: #885926;
  --brown-2: #6f421b;
  --gold: #dfaf23;
  --muted: #867461;
  --ink: #15110d;
  --soft: #efe5d7;
  --line: #ddd0bd;
  --paper: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --price: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #e7dfd2;
  color: var(--ink);
  font-family: var(--serif);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.site-frame {
  width: min(100%, 393px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 18px 70px rgba(37, 24, 14, 0.16);
}
.announcement {
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--brown);
  color: #fff;
  font-size: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid rgba(136, 89, 38, 0.12);
  background: rgba(255, 253, 245, 0.94);
  backdrop-filter: blur(12px);
}
.site-header.compact { top: 0; }
.header-start, .header-actions { display: flex; align-items: center; gap: 2px; }
.header-actions { justify-content: flex-end; }
.brand-mark { width: 92px; height: 45px; object-fit: contain; }
.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #1d1b20;
}
.icon-button span:not(.cart-count) { width: 17px; height: 1.6px; display: block; background: currentColor; }
.icon-button svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  right: 3px;
  top: 4px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-family: var(--price);
  font-size: 10px;
}

.hero {
  padding: 74px 26px 35px;
  text-align: center;
}
.eyebrow, .hero-kicker { margin: 0; color: var(--brown); font-size: 28px; line-height: .95; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 42px;
  font-style: italic;
  font-weight: 400;
  line-height: .94;
}
.hero p:not(.eyebrow) { margin-inline: auto; color: var(--muted); font-size: 17px; line-height: 1.25; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 27px; }
.primary-cta, .outline-cta, .pay-now {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brown);
  background: var(--brown);
  color: #fff;
  padding: 0 22px;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.primary-cta:active, .product-card button:active, .mini-card button:active { transform: scale(.98); }
.primary-cta.full { width: 100%; }
.secondary-link { color: var(--brown); font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.secondary-link.centered { display: block; margin-top: 16px; text-align: center; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.trust-row span, .benefit-grid span, .trust-cards span {
  border: 1px solid rgba(136, 89, 38, .18);
  background: rgba(255,255,255,.54);
  padding: 9px 6px;
  color: var(--brown-2);
  font-size: 12px;
  text-align: center;
}

.category-band {
  padding: 18px 25px 30px;
  background: var(--brown);
  color: #fff;
}
.section-title { margin-bottom: 18px; }
.section-title h2 { margin-bottom: 4px; font-size: 24px; font-weight: 400; line-height: 1; }
.section-title p { margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.15; }
.section-title.light { text-align: center; }
.section-title.light p { color: rgba(255,253,245,.72); }
.section-title.split { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-title.split a { color: var(--brown); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 118px;
  gap: 10px;
  width: calc(100% + 50px);
  margin: 0 -25px 42px;
  padding: 0 25px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar, .horizontal-products::-webkit-scrollbar, .filter-bar::-webkit-scrollbar { display: none; }
.category-rail a {
  height: 146px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  background: linear-gradient(to bottom, transparent 0 33px, #fff 33px);
  color: #fff;
  font-size: 18px;
}

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.product-card, .mini-card {
  position: relative;
  min-width: 0;
  animation: rise .45s ease both;
}
.product-card a, .mini-card a { display: block; }
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.42;
  margin-bottom: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.7), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #fff, #f7f3ed);
  border: 1px solid rgba(136, 89, 38, .1);
}
.product-image.cream, .cream { background: linear-gradient(180deg, var(--cream), #fbf7ee); }
.hero-image { aspect-ratio: 1 / 1.16; margin: 0; border: 0; }
.badge {
  position: absolute;
  left: 7px;
  top: 7px;
  background: var(--cream);
  color: var(--brown);
  padding: 5px 7px;
  font-size: 11px;
}
.product-card h3, .mini-card h3 {
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card p { min-height: 27px; margin-bottom: 6px; color: rgba(21,17,13,.62); font-size: 13px; line-height: 1.05; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.price-row strong, .mini-card strong, .pdp-price { font-family: var(--price); font-size: 18px; font-weight: 700; }
.price-row span { color: var(--gold); font-size: 10px; letter-spacing: 0; }
.product-card button, .mini-card button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--brown);
  background: var(--brown);
  color: #fff;
  font-size: 16px;
}
.product-card.dark h3, .product-card.dark p, .product-card.dark strong { color: #fff; }
.product-card.dark .price-row span { color: #f8d45d; }
.product-card.dark button, .outline-cta {
  background: transparent;
  border-color: rgba(255,255,255,.78);
  color: #fff;
}
.outline-cta { width: 148px; min-height: 40px; margin: 24px auto 0; }

.collection-strip { position: relative; padding: 36px 24px 40px; background: #fff; border-bottom: 1px solid var(--line); }
.horizontal-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 156px;
  gap: 12px;
  width: calc(100% + 48px);
  margin: 0 -24px;
  padding: 0 24px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.mini-card { scroll-snap-align: start; }
.mini-card .product-image { aspect-ratio: 1 / 1.33; }
.mini-card strong { display: block; margin-bottom: 10px; }

.conversion-panel { padding: 42px 24px 96px; background: var(--cream); }
.conversion-panel h2 { margin-bottom: 10px; color: var(--brown); font-size: 30px; font-weight: 400; line-height: 1; }
.conversion-panel p { color: var(--muted); font-size: 16px; line-height: 1.3; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255,253,245,.96);
  backdrop-filter: blur(12px);
}
.bottom-nav a, .bottom-nav button {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-size: 13px;
}

.page { padding-bottom: 86px; }
.collection-hero { padding: 38px 24px 22px; }
.collection-hero h1 { margin: 0 0 8px; color: var(--brown); font-size: 38px; font-style: italic; font-weight: 400; line-height: .95; }
.collection-hero p { color: var(--muted); font-size: 16px; line-height: 1.3; }
.filter-bar { display: flex; gap: 8px; padding: 0 24px 16px; overflow-x: auto; }
.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brown);
  padding: 0 14px;
  white-space: nowrap;
}
.chip.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.sort-row { display: flex; align-items: center; justify-content: space-between; padding: 0 24px 18px; color: var(--muted); font-size: 13px; }
.sort-row button { border: 0; background: transparent; color: var(--brown); }
.shop-grid { padding: 0 24px; }

.pdp-gallery { background: #fff; }
.thumb-row { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.thumb-row button { width: 8px; height: 8px; border: 0; border-radius: 99px; background: var(--brown); opacity: .35; }
.pdp-info { padding: 24px; background: var(--cream); }
.rating { color: var(--gold); font-size: 13px; }
.rating span { color: var(--muted); }
.pdp-info h1 { margin: 7px 0 4px; color: var(--brown); font-size: 38px; font-weight: 400; line-height: .95; }
.author { color: var(--muted); font-size: 15px; }
.pdp-price { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; font-size: 24px; }
.pdp-price span { color: #1d7f43; font-family: var(--serif); font-size: 13px; }
.choice-group p { margin-bottom: 8px; color: var(--muted); }
.quantity-row { width: 118px; height: 44px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; margin: 16px 0; border: 1px solid var(--line); background: #fff; text-align: center; }
.quantity-row button { height: 100%; border: 0; background: transparent; color: var(--brown); }
.pay-now { width: 100%; margin-top: 10px; background: #fff; color: var(--brown); }
.trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 15px; }
.accordions { padding: 0 24px 24px; background: var(--cream); }
details { border-top: 1px solid var(--line); }
summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; color: var(--brown); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] summary::after { content: "-"; }
details p { color: var(--muted); font-size: 15px; line-height: 1.35; }
.reviews { padding: 28px 24px 112px; background: #fff; }
.reviews h2 { color: var(--brown); font-weight: 400; }
blockquote { margin: 0; color: var(--muted); font-size: 18px; font-style: italic; line-height: 1.25; }
.sticky-atc {
  position: sticky;
  bottom: 0;
  z-index: 32;
  display: grid;
  grid-template-columns: 1fr 142px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,253,245,.97);
}
.sticky-atc strong, .sticky-atc span { display: block; }
.sticky-atc span { color: var(--muted); font-family: var(--price); }
.sticky-atc button { min-height: 46px; border: 0; background: var(--brown); color: #fff; }

.checkout-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; color: var(--brown); }
.checkout-card { margin: 0 18px 24px; padding: 24px 18px; background: #fff; border: 1px solid var(--line); }
.checkout-card h1 { margin-bottom: 14px; color: var(--brown); font-size: 34px; font-style: italic; font-weight: 400; }
.checkout-card h2 { margin: 22px 0 10px; color: var(--brown); font-size: 22px; font-weight: 400; }
.checkout-card input { width: 100%; min-height: 46px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--cream); padding: 0 12px; }
.checkout-card label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.checkout-card label input { width: auto; min-height: auto; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
.payment-box { padding: 14px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; margin: 14px 0; color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin: 16px 0; }
.cart-line.large { grid-template-columns: 72px 1fr auto; }
.thumb { aspect-ratio: 1; background: var(--cream-2); border: 1px solid var(--line); }
.free-ship { height: 8px; overflow: hidden; border-radius: 99px; background: var(--soft); }
.free-ship span { height: 100%; display: block; background: var(--brown); }
.account-perks { display: grid; gap: 8px; margin-top: 18px; color: var(--brown); }

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: min(86vw, 340px);
  transform: translateX(-104%);
  transition: transform .28s ease;
  background: var(--cream);
  padding: 24px;
  box-shadow: 20px 0 60px rgba(0,0,0,.18);
}
.drawer.is-open { transform: translateX(0); }
.drawer h2 { color: var(--brown); font-size: 30px; font-weight: 400; }
.drawer a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--brown); font-size: 20px; }
.drawer-close { min-height: 36px; border: 0; background: transparent; color: var(--muted); }
.search-drawer input { width: 100%; min-height: 48px; border: 1px solid var(--line); background: #fff; padding: 0 12px; }
.quick-links { margin-top: 18px; }
.cart-drawer { left: auto; right: 0; transform: translateX(104%); }
.cart-note { color: var(--muted); font-size: 14px; }
.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0,0,0,.32);
}
.scrim.is-open { display: block; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 70;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) {
  body { padding: 30px 0; }
  .site-frame { border-radius: 18px; }
}
