:root {
  --milk: #fffdf8;
  --cream: #fbf7ee;
  --cream-2: #f4ebdc;
  --linen: #efe4d1;
  --sage: #dfe9d7;
  --sage-2: #cddcbc;
  --olive: #65764e;
  --olive-dark: #33432e;
  --terracotta: #b76042;
  --terracotta-dark: #8f432f;
  --clay: #d6a27f;
  --text: #2e3027;
  --muted: #706b5e;
  --line: #e8dcc9;
  --shadow: 0 18px 46px rgba(69, 54, 33, 0.12);
  --shadow-soft: 0 10px 26px rgba(69, 54, 33, 0.09);
  --radius: 8px;
  --header-height: 76px;
  --container: min(1160px, calc(100vw - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 233, 215, 0.7), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, #fffaf1 44%, #f7efe2 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(101, 118, 78, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 118, 78, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 78%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(101, 118, 78, 0.2);
  border-radius: var(--radius);
  color: var(--olive-dark);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 8px 18px rgba(69, 54, 33, 0.07);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 118, 78, 0.38);
  background: var(--milk);
  box-shadow: var(--shadow-soft);
}

button:active,
.button:active {
  transform: translateY(0);
}

button:disabled,
.primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.primary {
  border-color: transparent;
  color: #fffaf1;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  box-shadow: 0 14px 30px rgba(143, 67, 47, 0.24);
}

.primary:hover {
  border-color: transparent;
  color: #fffaf1;
  background: linear-gradient(135deg, #c66b4b, var(--terracotta-dark));
  box-shadow: 0 18px 36px rgba(143, 67, 47, 0.28);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(232, 220, 201, 0.78);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 30px rgba(69, 54, 33, 0.08);
}

.site-header-inner {
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 0 12px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / 2;
  min-width: 0;
  max-width: 100%;
  color: var(--olive-dark);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-brand span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark::after {
  content: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  grid-row: 2;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 2px 0 0;
}

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

.site-nav a {
  flex: 0 1 auto;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--olive-dark);
  background: var(--sage);
  border-color: rgba(101, 118, 78, 0.16);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(101, 118, 78, 0.24);
  border-radius: 999px;
  color: var(--olive-dark);
  background: var(--milk);
  box-shadow: 0 10px 22px rgba(69, 54, 33, 0.08);
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 2 / 3;
  gap: 10px;
}

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(183, 96, 66, 0.22);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: #fff7ee;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.account-link:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 96, 66, 0.42);
  box-shadow: var(--shadow-soft);
}

.cart-link:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 118, 78, 0.42);
  box-shadow: var(--shadow-soft);
}

.cart-icon {
  position: relative;
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 5px 5px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fffaf1;
  background: var(--terracotta);
  font-size: 12px;
  font-weight: 900;
}

.cart-link.cart-pulse .cart-count {
  animation: cartPulse 560ms ease;
}

.site-main {
  min-height: calc(100vh - var(--header-height));
}

.site-footer {
  width: var(--container);
  margin: 80px auto 0;
  padding: 34px 0 46px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--olive-dark);
  font-size: 18px;
}

.site-footer p {
  margin: 0 0 8px;
}

.store-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 36px;
  padding: 72px 0 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(244, 235, 220, 0.92)),
    radial-gradient(circle at 78% 18%, rgba(214, 162, 127, 0.18), transparent 28rem);
  border-bottom: 1px solid rgba(232, 220, 201, 0.82);
}

.hero-backdrop {
  position: absolute;
  right: max(-40px, calc((100vw - 1160px) / 2 - 120px));
  top: 42px;
  z-index: -1;
  width: min(42vw, 540px);
  height: min(32vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.04);
  opacity: 0.16;
  transform: rotate(4deg);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 18%, rgba(223, 233, 215, 0.72), transparent 30rem),
    radial-gradient(circle at 80% 78%, rgba(183, 96, 66, 0.11), transparent 28rem);
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(120deg, transparent 0 47%, rgba(101, 118, 78, 0.08) 48% 50%, transparent 51%),
    linear-gradient(0deg, rgba(255, 253, 248, 0.7), transparent);
  background-size: 220px 220px, auto;
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.hero-content {
  max-width: 620px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--terracotta-dark);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6f8a57;
  box-shadow: 0 0 0 7px rgba(111, 138, 87, 0.14);
}

.store-hero h1 {
  margin: 0;
  color: var(--olive-dark);
  font-size: 78px;
  line-height: 0.96;
  letter-spacing: 0;
}

.store-hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: #5f5a4e;
  font-size: 19px;
}

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

.hero-actions .button {
  min-height: 52px;
  padding: 15px 24px;
  font-size: 16px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(101, 118, 78, 0.16);
  border-radius: 999px;
  color: var(--olive-dark);
  background: rgba(255, 253, 248, 0.72);
  font-size: 13px;
  font-weight: 760;
}

.hero-logo-panel {
  width: min(310px, 100%);
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo-panel img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  align-items: stretch;
}

.showcase-card,
.mini-dish,
.hero-panel,
.product-card,
.cart-panel,
.form-section,
.checkout-summary,
.result-panel {
  border: 1px solid rgba(232, 220, 201, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.showcase-main {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.showcase-image {
  display: block;
  flex: 1 1 auto;
  min-height: 310px;
  overflow: hidden;
  background: var(--sage);
}

.showcase-image img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.showcase-card:hover .showcase-image img,
.product-card:hover .product-image-link img,
.mini-dish:hover img,
.cart-line-image:hover img {
  transform: scale(1.035);
}

.showcase-copy {
  padding: 20px;
  display: grid;
  gap: 7px;
}

.showcase-copy span {
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.showcase-copy strong {
  color: var(--olive-dark);
  font-size: 24px;
  line-height: 1.14;
}

.showcase-copy em {
  color: var(--terracotta-dark);
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
}

.showcase-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mini-dish {
  min-height: 94px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.mini-dish:hover {
  transform: translateY(-3px);
  border-color: rgba(101, 118, 78, 0.24);
  box-shadow: var(--shadow);
}

.mini-dish img,
.mini-dish .product-placeholder {
  width: 92px;
  height: 100%;
  min-height: 94px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.mini-dish span {
  padding: 14px;
  color: var(--olive-dark);
  font-size: 15px;
  font-weight: 850;
}

.hero-panel {
  grid-column: 1 / -1;
  padding: 14px;
}

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

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--olive-dark);
  background: var(--cream-2);
  font-size: 13px;
  font-weight: 800;
}

.status-chip.success {
  color: #355331;
  background: var(--sage);
}

.status-chip.warning {
  color: #83522d;
  background: #f6dfbf;
}

.section,
.product-detail,
.checkout-layout,
.order-result {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 44px 0;
}

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

.section-head h1,
.section-head h2,
.product-info h1,
.checkout-form h1,
.result-panel h1,
.final-cta h2 {
  margin: 0;
  color: var(--olive-dark);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.product-info p,
.result-panel p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(244, 235, 220, 0.78)),
    radial-gradient(circle at right top, rgba(223, 233, 215, 0.86), transparent 24rem);
  box-shadow: var(--shadow-soft);
}

.compact-page-hero {
  align-items: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.category-grid a {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--olive-dark);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 20px rgba(69, 54, 33, 0.06);
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.category-grid a::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: inset -4px -4px 0 rgba(101, 118, 78, 0.16);
}

.category-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(101, 118, 78, 0.24);
  background: var(--milk);
  box-shadow: var(--shadow-soft);
}

.feature-strip {
  width: var(--container);
  margin: 28px auto 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(183, 96, 66, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(246, 223, 191, 0.74)),
    radial-gradient(circle at 0 0, rgba(223, 233, 215, 0.78), transparent 18rem);
  box-shadow: var(--shadow-soft);
}

.feature-strip img {
  width: 128px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
}

.feature-strip h2 {
  margin: 0;
  color: var(--olive-dark);
  font-size: 32px;
}

.feature-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feature-button {
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
  box-shadow: 0 14px 30px rgba(51, 67, 46, 0.2);
}

.feature-button:hover {
  background: linear-gradient(135deg, #72865a, var(--olive-dark));
  box-shadow: 0 18px 36px rgba(51, 67, 46, 0.24);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(101, 118, 78, 0.26);
  box-shadow: var(--shadow);
}

.product-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sage);
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 16px;
  color: var(--olive-dark);
  background:
    linear-gradient(135deg, var(--sage), #f8eddb),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 253, 248, 0.3) 12px 24px);
  font-weight: 850;
  text-align: center;
}

.card-badge,
.card-view {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  color: #fffaf1;
  background: var(--terracotta);
  box-shadow: 0 10px 22px rgba(143, 67, 47, 0.24);
}

.card-view {
  right: 12px;
  bottom: 12px;
  color: #fffaf1;
  background: rgba(51, 67, 46, 0.92);
  box-shadow: 0 10px 22px rgba(51, 67, 46, 0.18);
}

.product-card-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.product-card h3 {
  margin: 0;
  color: var(--olive-dark);
  font-size: 20px;
  line-height: 1.18;
}

.product-card h3 a:hover {
  color: var(--terracotta-dark);
}

.product-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-meta,
.category-tags,
.product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta {
  margin-top: 12px;
}

.product-meta span,
.category-tags a,
.product-badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--olive-dark);
  background: var(--sage);
  font-size: 12px;
  font-weight: 780;
}

.product-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.product-card-bottom form {
  flex: 0 0 auto;
}

.product-card-bottom .primary {
  min-height: 42px;
  padding: 11px 14px;
}

.product-price {
  color: var(--terracotta-dark);
  font-size: 23px;
  font-weight: 950;
}

.special-note {
  margin-top: 4px;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 820;
}

.reviews-section {
  padding-top: 24px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(232, 220, 201, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.review-person {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.review-person img {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 253, 248, 0.95);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(69, 54, 33, 0.12);
}

.review-person strong,
.review-person span {
  display: block;
  min-width: 0;
}

.review-person strong {
  color: var(--olive-dark);
  font-size: 16px;
  font-weight: 920;
}

.review-person span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.review-rating {
  color: var(--terracotta);
  font-size: 15px;
  letter-spacing: 0;
}

.review-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.final-cta {
  width: var(--container);
  margin: 36px auto 0;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--olive-dark), #536642),
    radial-gradient(circle at right, rgba(255, 253, 248, 0.16), transparent 22rem);
  color: #fffaf1;
  box-shadow: var(--shadow);
}

.final-cta .section-kicker,
.final-cta h2,
.final-cta p {
  color: #fffaf1;
}

.final-cta p {
  max-width: 650px;
  margin: 10px 0 0;
  opacity: 0.88;
}

.product-detail {
  padding: 54px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 34px;
  align-items: start;
}

.product-gallery,
.product-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.product-gallery {
  padding: 12px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  border-radius: var(--radius);
  object-fit: cover;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
}

.product-info {
  padding: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--terracotta-dark);
  font-size: 14px;
  font-weight: 850;
}

.back-link::before {
  content: "";
  width: 16px;
  height: 16px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.product-badge-row {
  margin-bottom: 16px;
}

.product-info h1 {
  font-size: 52px;
}

.category-tags {
  margin: 20px 0;
}

.price-block {
  margin: 24px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--cream-2);
}

.price-current {
  color: var(--terracotta-dark);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.price-old {
  margin-top: 7px;
  color: var(--muted);
  text-decoration: line-through;
}

.buy-form {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--olive-dark);
  font-size: 14px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(101, 118, 78, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  background: #fffdf9;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(183, 96, 66, 0.72);
  background: var(--milk);
  box-shadow: 0 0 0 4px rgba(183, 96, 66, 0.12);
}

.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--milk);
  color: var(--olive-dark);
  font-weight: 760;
}

.alert.success {
  border-color: rgba(101, 118, 78, 0.22);
  background: var(--sage);
}

.alert.warning {
  border-color: rgba(183, 96, 66, 0.28);
  background: #f8e4c8;
  color: #7a4a2f;
}

.alert.danger {
  border-color: rgba(143, 67, 47, 0.32);
  background: #f9ded4;
  color: #7e3827;
}

.cart-panel {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 126px auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
}

.cart-line-image {
  display: block;
  overflow: hidden;
  width: 96px;
  height: 76px;
  border-radius: var(--radius);
  background: var(--sage);
}

.cart-line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.cart-line h3 {
  margin: 0 0 4px;
  color: var(--olive-dark);
  font-size: 17px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.quantity-field input {
  text-align: center;
}

.line-total {
  color: var(--terracotta-dark);
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--terracotta-dark);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
}

.link-button:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
}

.cart-summary dl,
.result-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
}

.cart-summary dt,
.result-list dt {
  color: var(--muted);
}

.cart-summary dd,
.result-list dd {
  margin: 0;
  color: var(--olive-dark);
  font-weight: 900;
  text-align: right;
}

.cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.empty-state {
  padding: 36px;
  border: 1px dashed rgba(101, 118, 78, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.76);
  text-align: center;
}

.empty-state a {
  color: var(--terracotta-dark);
  font-weight: 850;
}

.checkout-layout {
  padding: 54px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.checkout-form {
  min-width: 0;
}

.form-section {
  margin-bottom: 16px;
  padding: 22px;
}

.form-section h2,
.checkout-summary h2 {
  margin: 0 0 16px;
  color: var(--olive-dark);
  font-size: 22px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: start;
  min-height: 102px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.choice-card input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--terracotta);
}

.choice-card span {
  color: var(--olive-dark);
  font-size: 17px;
  font-weight: 900;
}

.choice-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.choice-card:has(input:checked) {
  border-color: rgba(183, 96, 66, 0.58);
  background: #fff7ee;
  box-shadow: 0 0 0 4px rgba(183, 96, 66, 0.1);
}

.choice-card-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.address-field {
  position: relative;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  overflow: hidden;
  border: 1px solid rgba(101, 118, 78, 0.2);
  border-radius: var(--radius);
  background: var(--milk);
  box-shadow: var(--shadow);
}

.address-suggestion {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-weight: 650;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover {
  transform: none;
  background: var(--cream-2);
  box-shadow: none;
}

.timed-fields {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--cream-2);
}

.checkout-submit {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 22px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line span {
  color: var(--muted);
}

.summary-line strong,
.summary-total strong {
  color: var(--olive-dark);
  white-space: nowrap;
}

.summary-total {
  margin-top: 4px;
  border-bottom: 0;
  font-size: 18px;
  font-weight: 900;
}

.order-result {
  padding: 54px 0 20px;
}

.auth-layout,
.account-layout {
  width: var(--container);
  margin: 0 auto;
  padding: 54px 0 20px;
}

.auth-card,
.account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 30px;
}

.auth-card h1 {
  margin: 0;
  color: var(--olive-dark);
  font-size: 40px;
  line-height: 1.08;
}

.auth-card p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .primary {
  width: 100%;
  min-height: 52px;
}

.auth-repeat-form {
  margin-top: 14px;
  text-align: center;
}

.account-grid,
.order-detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
}

.account-sidebar,
.account-password-form {
  display: grid;
  gap: 14px;
}

.account-panel {
  padding: 22px;
}

.account-panel h2 {
  margin: 0 0 16px;
  color: var(--olive-dark);
  font-size: 24px;
}

.discount-list,
.account-order-list,
.account-items {
  display: grid;
  gap: 12px;
}

.discount-card {
  padding: 16px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(183, 96, 66, 0.2);
  border-radius: var(--radius);
  background: #fff7ee;
}

.discount-card strong {
  color: var(--terracotta-dark);
  font-size: 30px;
  line-height: 1;
}

.discount-card span,
.discount-card small {
  color: var(--muted);
}

.account-order-card,
.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
}

.account-order-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.account-order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 118, 78, 0.26);
  box-shadow: var(--shadow-soft);
}

.account-order-card span,
.account-item span {
  display: grid;
  gap: 4px;
}

.account-order-card strong,
.account-item strong {
  color: var(--olive-dark);
}

.account-order-card small,
.account-item small {
  color: var(--muted);
}

.account-order-card em,
.account-item em {
  color: var(--terracotta-dark);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.discount-hint {
  margin: 12px 0 0;
}

.discount-hint a,
.checkout-summary a {
  color: var(--terracotta-dark);
  font-weight: 850;
}

.result-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px;
}

.result-list {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--cream-2);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.18);
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100vw - 28px, 760px);
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin: 0 -2px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-main {
    min-height: 390px;
  }

  .product-detail,
  .checkout-layout,
  .cart-panel {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .cart-line {
    grid-template-columns: 88px minmax(0, 1fr) auto;
  }

  .cart-line .quantity-field,
  .cart-line .line-total,
  .cart-line .link-button {
    grid-column: 2 / -1;
  }

  .cart-line .quantity-field {
    max-width: 180px;
  }

  .feature-strip {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .feature-strip .button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

@media (max-width: 700px) {
  :root {
    --container: min(100vw - 24px, 520px);
    --header-height: 68px;
  }

  body::before {
    background-size: 26px 26px;
  }

  .site-header-inner {
    min-height: var(--header-height);
  }

  .site-brand {
    font-size: 16px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .cart-label {
    display: none;
  }

  .account-link {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .store-hero {
    padding: 42px 0 42px;
  }

  .store-hero h1 {
    font-size: 48px;
  }

  .store-hero p {
    font-size: 17px;
  }

  .section-head h1,
  .section-head h2,
  .product-info h1,
  .checkout-form h1,
  .result-panel h1,
  .final-cta h2 {
    font-size: 34px;
  }

  .feature-strip h2 {
    font-size: 24px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-logo-panel {
    width: min(280px, 100%);
  }

  .showcase-main {
    min-height: 0;
  }

  .showcase-image,
  .showcase-image img {
    min-height: 250px;
  }

  .hero-panel {
    grid-column: auto;
  }

  .section {
    padding: 34px 0;
  }

  .section-head,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head {
    display: grid;
  }

  .page-hero,
  .final-cta,
  .result-panel,
  .product-info,
  .form-section,
  .checkout-summary {
    padding: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card-bottom .primary,
  .buy-form .primary,
  .final-cta .button {
    width: 100%;
  }

  .feature-strip {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .feature-strip img {
    width: 88px;
    height: 88px;
  }

  .product-detail,
  .checkout-layout,
  .auth-layout,
  .account-layout,
  .order-result {
    padding-top: 34px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card h1 {
    font-size: 34px;
  }

  .account-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-order-card,
  .account-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-main-image {
    min-height: 240px;
  }

  .buy-form,
  .form-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    padding: 14px;
  }

  .cart-line {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-line-image {
    width: 80px;
    height: 72px;
  }

  .cart-line .quantity-field,
  .cart-line .line-total,
  .cart-line .link-button {
    grid-column: 1 / -1;
  }

  .line-total {
    font-size: 21px;
  }

  .result-list {
    grid-template-columns: 1fr;
  }

  .result-list dd {
    text-align: left;
  }
}

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

  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
