:root {
  --bg: #fff4dc;
  --bg-strong: #fff9ee;
  --paper: rgba(255, 248, 234, 0.9);
  --ink: #311614;
  --muted: #68453f;
  --line: rgba(126, 81, 38, 0.18);
  --brand: #bb9650;
  --brand-deep: #8e6b2d;
  --brand-soft: rgba(187, 150, 80, 0.14);
  --cream-strong: #f8e7bf;
  --honey: #bb9650;
  --honey-deep: #8e6b2d;
  --honey-soft: rgba(187, 150, 80, 0.16);
  --sage: #8e6b2d;
  --success: #255a34;
  --shadow: 0 20px 70px rgba(92, 53, 20, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(187, 150, 80, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(142, 107, 45, 0.08), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #fff4dc 44%, #f8e8c1 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(142, 107, 45, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 107, 45, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 86%);
}

.page-glow {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.35;
  pointer-events: none;
}

.page-glow-left {
  top: 6rem;
  left: -7rem;
  background: rgba(187, 150, 80, 0.2);
}

.page-glow-right {
  bottom: 2rem;
  right: -6rem;
  background: rgba(187, 150, 80, 0.14);
}

.topbar,
.layout {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.brand-logo {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(142, 107, 45, 0.14));
}

.topbar h1,
.hero h2,
.section-heading h2,
.insight-strip h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.topbar h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #a7281f;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.topnav a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
}

.layout {
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 0.9rem;
  padding: 0.6rem 0 1rem;
}

.hero-copy,
.hero-metrics article,
.insight-strip article,
.card {
  background: var(--paper);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.1rem, 2.8vw, 1.9rem);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 244, 220, 0.9));
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 35%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    radial-gradient(circle at 62% 60%, rgba(187, 150, 80, 0.78) 0 15%, transparent 16%),
    linear-gradient(135deg, rgba(187, 150, 80, 0.2), rgba(255, 244, 220, 0.1));
  opacity: 0.8;
}

.hero-brand-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  text-align: center;
}

.hero-brand-bar span {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 800;
}

.hero-logo {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  display: block;
}

.hero h2 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 0.95;
  max-width: 12ch;
}

.hero-title {
  font-size: clamp(0.35rem, 0.55vw, 0.51rem);
  line-height: 1;
  max-width: 13ch;
  font-weight: 400;
}

.hero-text,
.section-note,
.insight-strip p,
.tier-list p,
.product-meta,
.cart-line p,
.delivery-pulse,
.feedback-message {
  color: var(--muted);
  line-height: 1.5;
}

.hero-text a {
  color: var(--brand);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.button {
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.toggle:hover,
.chip:hover,
.stepper button:hover,
.topnav a:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  box-shadow: 0 10px 25px rgba(97, 37, 13, 0.18);
}

.button-secondary {
  background: rgba(255, 250, 241, 0.86);
  color: var(--brand);
  border: 1px solid var(--line);
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}

.hero-metrics article {
  text-align: center;
}

.hero-metrics article,
.insight-strip article,
.card {
  border-radius: var(--radius-lg);
  padding: 0.95rem;
}

.hero-metrics span,
.summary-stats span {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brand-deep);
}

.pricing-photo {
  width: min(100%, 250px);
  height: auto;
  display: block;
  margin: 0 auto 1.1rem;
  object-fit: contain;
}

.hero-metrics article > span {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.insight-label {
  margin: 0 0 0.2rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.order-panel {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

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

.section-heading.tight {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.section-note {
  max-width: 26ch;
  margin: 0;
}

.controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.toggle-group,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.toggle,
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.toggle.active,
.chip.active {
  background: linear-gradient(135deg, rgba(187, 150, 80, 0.2), rgba(255, 248, 234, 0.94));
  border-color: rgba(142, 107, 45, 0.24);
}

.search-field,
.planner-grid label,
.checkout-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.search-field span,
.planner-grid span,
.checkout-form span {
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(126, 81, 38, 0.18);
  padding: 0.9rem 1rem;
  background: rgba(255, 252, 246, 0.8);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(187, 150, 80, 0.22);
  border-color: rgba(142, 107, 45, 0.34);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(255, 244, 220, 0.92));
  border: 1px solid rgba(126, 81, 38, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-visual {
  height: 11rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(248, 231, 191, 0.8));
  border: 1px solid rgba(126, 81, 38, 0.1);
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.8rem;
}

.product-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.product-header h3,
.insight-strip h3 {
  margin: 0;
}

.trademark-mark {
  font-size: 0.58em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.08em;
}

.sku-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(187, 150, 80, 0.14);
  border: 1px solid rgba(142, 107, 45, 0.16);
  color: var(--honey-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.stepper-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--honey-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 252, 246, 0.82);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 81, 38, 0.12);
}

.stepper button {
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-deep);
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.stepper span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 800;
}

.stepper-count {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  min-width: 2.2rem;
}

.planner-grid,
.summary-stats,
.checkout-form {
  display: grid;
  gap: 0.85rem;
}

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

.delivery-pulse {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(187, 150, 80, 0.16), rgba(255, 248, 234, 0.94));
  padding: 1rem;
  margin: 1rem 0;
}

.tier-list {
  display: grid;
  gap: 0.75rem;
}

.tier-list article {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.summary-card {
  overflow: hidden;
}

.summary-stats article {
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(126, 81, 38, 0.08);
}

.summary-stats p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.cart-summary {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(126, 81, 38, 0.08);
}

.cart-summary-head,
.cart-line,
.empty-cart {
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(126, 81, 38, 0.08);
}

.cart-summary-head,
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1rem;
  align-items: center;
}

.cart-summary-head {
  border-radius: 0;
  margin: 0;
  background: rgba(187, 150, 80, 0.12);
  border: none;
  border-bottom: 1px solid rgba(126, 81, 38, 0.08);
  padding: 0.85rem 0.95rem;
}

.cart-summary-head span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

.cart-summary-head span:last-child {
  text-align: center;
}

.cart-line {
  border-radius: 0;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(126, 81, 38, 0.08);
}

.cart-line:first-of-type {
  border-top: none;
}

.cart-product,
.cart-cartons {
  min-width: 0;
}

.cart-line h3,
.empty-cart p {
  margin: 0;
}

.cart-line p {
  margin: 0;
  font-size: 0.92rem;
}

.cart-cartons {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.cart-carton-count {
  min-width: 2.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(187, 150, 80, 0.14);
  border: 1px solid rgba(142, 107, 45, 0.16);
  color: var(--honey-deep);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.cart-remove {
  background: transparent;
  border: none;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.pricing-note {
  display: grid;
  gap: 0.35rem;
  margin: 0.4rem 0 1.2rem;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-note strong,
.pricing-note p {
  margin: 0;
}

.pricing-note strong {
  color: var(--brand);
}

.pricing-note p {
  color: var(--muted);
}

.checkout-form {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
  grid-column: 1 / -1;
  width: 100%;
}

.feedback-message {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.feedback-message.success {
  color: var(--success);
}

.feedback-message.error {
  color: var(--brand);
}

@media (max-width: 1040px) {
  .hero,
  .workspace,
  .insight-strip {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy::after {
    width: 6rem;
    height: 6rem;
  }

  .planner-grid,
  .summary-stats,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary-head {
    display: none;
  }

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

  .cart-cartons {
    justify-items: start;
  }
}
