:root {
  --ink: #23170f;
  --deep: #12130e;
  --moss: #274b31;
  --leaf: #5f8f46;
  --cream: #f8f0df;
  --paper: #fffaf1;
  --muted: #7e6b58;
  --line: #e2d3bd;
  --gold: #d8a145;
  --berry: #9e3f4f;
  --surface: #ffffff;
  --hero-image: url("https://images.unsplash.com/photo-1564053489984-317bbd824340?auto=format&fit=crop&w=1600&q=80");
  --hero-size: cover;
  --hero-position: center center;
  --category-image: url("https://images.unsplash.com/photo-1551024506-0bccd828d307?auto=format&fit=crop&w=900&q=80");
  --category-size: cover;
  --category-position: center center;
  --story-image: url("https://images.unsplash.com/photo-1505253716362-afaea1d3d1af?auto=format&fit=crop&w=1100&q=80");
  --story-size: cover;
  --story-position: center center;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes softFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -8px, 0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

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

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

button,
.primary-link,
.secondary-link {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: #fff;
  padding: 12px 20px;
}

button:hover,
.primary-link:hover {
  background: var(--moss);
}

button:disabled {
  background: #a99a8a;
  cursor: not-allowed;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 16px;
}

textarea {
  border-radius: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(35, 23, 15, 0.12);
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--deep);
  border-radius: 50%;
  background: var(--deep);
  color: var(--cream);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-nav {
  justify-content: flex-end;
}

.top-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  text-transform: uppercase;
}

.top-nav a:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.top-nav span {
  color: var(--berry);
}

.announcement,
.messages {
  max-width: 1220px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.announcement,
.message {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 18px;
}

main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
}

.eyebrow,
.strip-label {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.strip-label {
  color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 19, 14, 0.92) 0%, rgba(18, 19, 14, 0.58) 54%, rgba(18, 19, 14, 0.22) 100%),
    var(--hero-image);
  background-color: #1c241b;
  background-position:
    var(--hero-position),
    center calc(50% + var(--parallax-y, 0px));
  background-size: var(--hero-size);
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
}

.hero::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 760px;
  padding: 20px 0;
  animation: heroFadeUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero .eyebrow,
.hero-copy p {
  color: #f7e8c7;
}

.hero h1 {
  max-width: 780px;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(44px, 6.2vw, 86px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.hero-meta span {
  min-width: 108px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff7e4;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  padding-left: 12px;
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero .primary-link {
  background: var(--cream);
  color: var(--deep);
}

.hero .primary-link:hover {
  background: #fff;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  padding: 12px 20px;
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(18, 19, 14, 0.62);
  color: #fff;
  padding: 22px;
  backdrop-filter: blur(16px);
  animation: heroFadeUp 980ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-panel > span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 0;
}

.hero-panel small {
  color: #f3d699;
  font-weight: 800;
}

.hero-brand-panel {
  border-radius: 18px;
  padding: 26px;
}

.hero-brand-panel > p {
  border-left: 3px solid var(--gold);
  color: #f5ead3;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 22px;
  padding-left: 18px;
}

.hero-brand-panel a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  font-size: 14px;
  margin-top: 10px;
  padding: 16px 18px;
  text-transform: uppercase;
}

.hero-brand-panel a:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-brand-panel a span {
  font-size: 23px;
  line-height: 1;
}

.hero-brand-panel .hero-panel-primary {
  background: #a83d32;
  border-color: #bd5a4e;
  color: #fff;
}

.hero-brand-panel .hero-panel-primary:hover {
  background: #b9493d;
}

.hero-brand-panel .hero-panel-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.hero-brand-panel .hero-panel-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.numbers-section,
.promise-section,
.category-showcase,
.story-section,
.menu-section,
.cart-layout,
.checkout-layout,
.success-box {
  margin-top: 54px;
}

.numbers-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.numbers-section h2,
.category-showcase h2,
.menu-section h2,
.story-copy h2,
.promise-section h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.number-grid article,
.promise-section article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.number-grid span,
.promise-section article span,
.story-copy article span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.number-grid strong {
  display: block;
  color: var(--moss);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 48px;
  margin-top: 16px;
}

.number-grid p,
.promise-section p,
.story-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.promise-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.promise-section > div {
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  padding: 26px;
}

.promise-section > div .eyebrow {
  color: var(--gold);
}

.promise-section article h3,
.story-copy h3 {
  font-size: 24px;
  line-height: 1;
  margin: 18px 0 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-carousel-heading {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  margin-bottom: 24px;
}

.category-carousel-heading h2 {
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.86;
}

.category-carousel-heading > p {
  color: #778190;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  margin: 14px 0 0;
  text-align: right;
}

.category-carousel-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  isolation: isolate;
}

.category-carousel-shell::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(90deg, rgba(250, 246, 238, 0), var(--paper) 88%);
  content: "";
  pointer-events: none;
  z-index: 2;
}

.category-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.category-carousel-controls button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 58px;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 34px rgba(35, 23, 15, 0.12);
  color: var(--deep);
  font-size: 32px;
  line-height: 1;
  padding: 0;
  pointer-events: auto;
  transform: translateY(-50%);
}

.category-carousel-controls button:hover {
  background: var(--deep);
  color: #fff;
}

.category-carousel-controls [data-category-scroll="prev"] {
  left: 16px;
}

.category-carousel-controls [data-category-scroll="next"] {
  right: 16px;
}

.category-carousel {
  display: grid;
  grid-auto-columns: minmax(320px, calc((100% - 36px) / 3));
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 19, 14, 0.08), rgba(18, 19, 14, 0.78)),
    var(--category-image);
  background-color: #1c241b;
  background-position: var(--category-position);
  background-size: var(--category-size);
  background-repeat: no-repeat;
  color: #fff;
  padding: 28px;
  transition:
    filter 420ms ease,
    box-shadow 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 72%);
  content: "";
  opacity: 0;
  transform: translateX(-60%);
  transition:
    opacity 420ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-card:hover {
  box-shadow: 0 18px 46px rgba(28, 36, 27, 0.18);
  filter: saturate(1.08) contrast(1.04);
  transform: translate3d(0, -8px, 0);
}

.category-card:hover::after {
  opacity: 1;
  transform: translateX(60%);
}

.category-card:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(18, 19, 14, 0.08), rgba(18, 19, 14, 0.78)),
    url("https://images.unsplash.com/photo-1563729784474-d77dbb933a9e?auto=format&fit=crop&w=900&q=80");
}

.category-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(18, 19, 14, 0.08), rgba(18, 19, 14, 0.78)),
    url("https://images.unsplash.com/photo-1488477181946-6428a0291777?auto=format&fit=crop&w=900&q=80");
}

.category-card span {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.category-card small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 260px;
  color: #f7e8c7;
  line-height: 1.5;
  margin-top: 12px;
}

.category-card strong {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.story-image {
  display: flex;
  min-height: 520px;
  align-items: flex-end;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 19, 14, 0), rgba(18, 19, 14, 0.78)),
    var(--story-image);
  background-color: #1c241b;
  background-position:
    var(--story-position),
    center calc(50% + var(--parallax-y, 0px));
  background-size: var(--story-size);
  background-repeat: no-repeat;
  color: #fff;
  padding: 24px;
}

.story-image span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  animation: softFloat 3.6s ease-in-out infinite alternate;
}

.story-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.story-copy article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.search-form {
  display: grid;
  width: min(430px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.category-tabs a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-transform: uppercase;
}

.category-tabs a.active {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.product-grid {
  counter-reset: product;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  counter-increment: product;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    box-shadow 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover {
  box-shadow: 0 18px 50px rgba(36, 24, 15, 0.12);
  transform: translate3d(0, -7px, 0);
}

.product-image {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 75, 49, 0.12), rgba(216, 161, 69, 0.28)),
    url("https://images.unsplash.com/photo-1564053489984-317bbd824340?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}

.product-card:nth-child(2n) .product-image {
  background-image:
    linear-gradient(135deg, rgba(47, 75, 49, 0.18), rgba(158, 63, 79, 0.32)),
    url("https://images.unsplash.com/photo-1488477181946-6428a0291777?auto=format&fit=crop&w=900&q=80");
}

.product-card:nth-child(3n) .product-image {
  background-image:
    linear-gradient(135deg, rgba(47, 75, 49, 0.18), rgba(216, 161, 69, 0.34)),
    url("https://images.unsplash.com/photo-1551024506-0bccd828d307?auto=format&fit=crop&w=900&q=80");
}

.product-image::before {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  background: rgba(18, 19, 14, 0.72);
  color: #fff;
  content: "No " counter(product, decimal-leading-zero);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.product-image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.product-image img,
.detail-image img,
.gallery-grid img {
  transition: transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img,
.gallery-grid img:hover {
  transform: scale(1.055);
}

.product-image em {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 8px 10px;
}

.product-body {
  padding: 20px;
}

.product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-kicker em {
  color: var(--gold);
  font-style: normal;
}

.product-body h3 {
  min-height: 58px;
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1;
}

.product-body p {
  min-height: 56px;
  color: var(--muted);
  line-height: 1.6;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-inbox-link {
  min-width: 92px;
  padding: 10px 16px;
}

.product-unavailable {
  border-radius: 999px;
  background: #efe3d3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-transform: uppercase;
}

.price-stack {
  display: grid;
  gap: 2px;
}

.price-stack del {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-actions strong,
.price {
  color: var(--berry);
  font-size: 22px;
  font-weight: 800;
}

.detail-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.detail-image {
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 75, 49, 0.18), rgba(216, 161, 69, 0.3)),
    url("https://images.unsplash.com/photo-1564053489984-317bbd824340?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy,
.checkout-form,
.order-summary,
.checkout-box,
.success-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.detail-copy h1,
.checkout-form h1,
.success-box h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.95;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-price {
  display: inline-grid;
  margin-bottom: 12px;
}

.detail-inbox-link {
  margin-top: 22px;
}

.detail-unavailable {
  display: inline-block;
  margin-top: 22px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.product-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.product-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-block {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.detail-block h2,
.gallery-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.gallery-section {
  margin-top: 54px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.quantity-form,
.checkout-form {
  display: grid;
  gap: 12px;
}

.quantity-form {
  max-width: 280px;
  margin-top: 24px;
}

.cart-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 120px 74px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.cart-row div span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.cart-row form {
  display: flex;
  gap: 8px;
}

.cart-row input {
  min-width: 0;
}

.ghost-button {
  background: #efe3d3;
  color: var(--ink);
  padding: 10px 12px;
}

.checkout-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.checkout-box strong {
  color: var(--berry);
  font-size: 28px;
}

.order-summary {
  display: grid;
  gap: 14px;
}

.order-summary div,
.order-summary footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-summary footer {
  border-top: 1px solid var(--line);
  color: var(--berry);
  font-size: 22px;
  font-weight: 800;
  padding-top: 14px;
}

.success-box {
  max-width: 700px;
}

.success-box p {
  color: var(--muted);
  line-height: 1.7;
}

.success-box strong {
  display: block;
  color: var(--berry);
  font-size: 30px;
  margin: 18px 0;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 32px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  border-top: 0;
  background: #12251b;
  color: rgba(250, 246, 238, 0.78);
  padding: 34px max(24px, calc((100vw - 1220px) / 2));
}

.site-footer strong {
  color: #fff7e4;
}

.site-footer a {
  color: #d8a145;
  font-weight: 800;
}

.site-footer a:hover {
  color: #fff7e4;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 14px;
  }

  .brand {
    order: -1;
    justify-content: flex-start;
  }

  .top-nav,
  .right-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .promise-section,
  .story-section,
  .detail-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }

  .number-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-carousel-heading {
    grid-template-columns: 1fr;
  }

  .category-carousel-heading > p {
    max-width: 560px;
    text-align: left;
  }

  .category-carousel-controls {
    justify-content: flex-start;
  }

  .category-carousel {
    grid-auto-columns: minmax(300px, calc((100% - 18px) / 2));
  }

  .product-grid,
  .product-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: relative;
    gap: 10px;
    min-height: 0;
    padding: 12px 16px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .brand strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .brand small {
    font-size: 10px;
  }

  .top-nav {
    width: 100%;
    gap: 4px;
    justify-content: space-between;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 8px 6px;
  }

  main {
    padding: 16px 12px 48px;
  }

  .announcement,
  .messages {
    padding-inline: 16px;
  }

  .hero {
    min-height: 0;
    gap: 18px;
    padding: 30px 20px 20px;
    background-position:
      var(--hero-position),
      center center;
  }

  .hero::before {
    inset: 12px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.06;
    text-wrap: pretty;
  }

  .hero-copy {
    padding: 8px 0 0;
  }

  .hero .eyebrow {
    font-size: 10px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .hero-meta span {
    min-width: 0;
    font-size: 10px;
    line-height: 1.4;
    padding-left: 8px;
  }

  .hero-brand-panel {
    border-radius: 14px;
    padding: 16px;
  }

  .hero-brand-panel > p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-left: 12px;
  }

  .hero-brand-panel a {
    min-height: 52px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
    padding: 13px 14px;
  }

  .hero-brand-panel a span {
    font-size: 20px;
  }

  .section-heading,
  .checkout-box,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form,
  .number-grid,
  .gallery-grid,
  .product-grid,
  .product-grid.compact {
    grid-template-columns: 1fr;
  }

  .category-carousel-heading h2 {
    font-size: 56px;
  }

  .category-carousel {
    grid-auto-columns: minmax(260px, 82%);
  }

  .category-carousel-controls [data-category-scroll="prev"] {
    left: 10px;
  }

  .category-carousel-controls [data-category-scroll="next"] {
    right: 10px;
  }

  .category-carousel-controls button {
    width: 50px;
    min-height: 50px;
    font-size: 28px;
  }

  .product-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
