:root {
  --bg: #f7efe2;
  --paper: #fffaf0;
  --ink: #3f3427;
  --muted: #6a5b4a;
  --accent: #8c3b24;
  --accent-deep: #6f2f1d;
  --sage: #839373;
  --line: #dccdb7;
  --hero-opacity: 1;
  --hero-saturate: 1;
  --hero-blur: 0px;
  --hero-shift: 0px;
  --header-band-height: 86px;
  --hero-strip-height: clamp(320px, 42vw, 500px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  line-height: 1.62;
  background:
    linear-gradient(rgba(247, 239, 226, 0.8), rgba(247, 239, 226, 0.8)),
    url("assets/victory-farms-hero-chatgpt-apr17-0838.png?v=20260420a") center top / cover fixed no-repeat,
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.85), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(140, 59, 36, 0.1), transparent 42%),
    repeating-linear-gradient(
      -45deg,
      rgba(222, 202, 174, 0.15) 0 4px,
      rgba(247, 239, 226, 0.5) 4px 12px
    ),
    var(--bg);
}

[hidden] {
  display: none !important;
}

.home-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.88), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(140, 59, 36, 0.08), transparent 42%),
    repeating-linear-gradient(
      -45deg,
      rgba(222, 202, 174, 0.12) 0 4px,
      rgba(247, 239, 226, 0.45) 4px 12px
    ),
    var(--bg);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 280px at 50% -10%, rgba(131, 147, 115, 0.16), transparent),
    radial-gradient(500px 280px at -10% 60%, rgba(190, 135, 92, 0.15), transparent);
}

.site-header,
.topbar,
.sticky-nav,
main,
footer {
  width: min(1050px, calc(100% - 2.2rem));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.home-page .site-header {
  width: 100%;
  margin-top: 0;
}

.topbar {
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 250, 240, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(63, 52, 39, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  width: min(760px, 100%);
}

.brand-logo {
  width: 6.25rem;
  height: 6.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 248, 234, 0.95);
  box-shadow: 0 6px 24px rgba(63, 52, 39, 0.2);
}

.brand > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  flex: 1;
  text-align: center;
}

.brand strong {
  display: block;
  font-size: 1.5rem;
}

.brand small {
  font-size: 1.08rem;
  color: var(--muted);
}

.home-topbar {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  padding: 0;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 0.18rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.home-brand {
  width: auto;
  min-width: 0;
  margin-left: -1.25rem;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: clamp(2.6rem, 5vw, 4rem);
  max-width: min(56vw, 520px);
  object-fit: contain;
  transform: translateX(-1.6rem);
}

.brand-wordmark-mockup {
  display: block;
  width: min(15rem, 32vw);
  height: auto;
  max-height: none;
  max-width: min(32vw, 260px);
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  transform: none;
}

.home-brand .brand-logo {
  display: none;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.topnav a[aria-current="page"],
.topnav a:hover {
  background: #f3e6d2;
}

.home-page .topnav {
  justify-content: flex-end;
  gap: 0.5rem;
}

.home-page .topnav a {
  font-size: 0.82rem;
  padding: 0.38rem 0.78rem;
}

.sticky-nav {
  position: sticky;
  top: 0.8rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 250, 240, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(63, 52, 39, 0.12);
}

main {
  margin-top: 1.15rem;
  margin-bottom: 2.8rem;
  display: grid;
  gap: 1.1rem;
}

.home-page main {
  width: min(1180px, calc(100% - 2.2rem));
  margin-left: auto;
  margin-right: auto;
  gap: 1.6rem;
}

.hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(520px, calc(86svh - var(--header-band-height)), 900px);
  min-height: 520px;
  max-height: 900px;
  padding: 0;
  border-radius: 0;
  border: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.14));
}

.hero-stage-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: min(92vw, 1380px);
  max-width: none;
  height: auto;
  opacity: var(--hero-opacity);
  filter: saturate(var(--hero-saturate)) blur(var(--hero-blur));
  transform: translate(-50%, calc(-50% + var(--hero-shift) - 0.1rem));
  transform-origin: center center;
  transition: opacity 120ms linear, filter 120ms linear, transform 120ms linear;
}

.hero-stage-wordmark-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: min(70vw, 980px);
  max-width: none;
  height: auto;
  aspect-ratio: 1536 / 1024;
  opacity: var(--hero-opacity);
  filter: saturate(var(--hero-saturate)) blur(var(--hero-blur))
    drop-shadow(0 20px 34px rgba(63, 52, 39, 0.12));
  transform: translate(-50%, calc(-50% + var(--hero-shift) - 0.2rem));
  transform-origin: center center;
  transition: opacity 120ms linear, filter 120ms linear, transform 120ms linear;
}

.hero,
.grid,
.section-intro,
.feature,
.community,
.steps,
.contact,
.product-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: clamp(1.1rem, 3.2vw, 2rem);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin-bottom: 0.9rem;
  max-width: 15ch;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
}

.kicker {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-note {
  margin: 0 0 0.2rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #5f4b35;
  font-size: 1.7rem;
}

.topnav a,
.button,
.pill-link,
.sales-notice-tags span,
.modal-tag,
.kicker,
.card-label,
.product-type {
  font-family: "Source Sans 3", sans-serif;
}

.hero p,
.section-intro p,
.feature p,
.card p,
.steps-grid p,
.contact p,
.section-heading p,
.product-tile p {
  color: var(--muted);
}

.hero,
.section-intro,
.card,
.steps,
.contact,
.product-section,
.section-heading,
.sales-notice,
.sales-notice-copy,
.product-modal-copy,
.cart-modal-copy,
footer {
  text-align: center;
}

.hero-actions {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff8ef;
  transition: background-color 220ms ease, transform 220ms ease;
}

.button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #ccb897;
}

.button-ghost:hover {
  background: #f8eedf;
}

.home-page .hero,
.home-page .section-intro,
.home-page .grid,
.home-page .feature,
.home-page .community,
.home-page .steps,
.home-page .contact {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 249, 240, 0.94));
  border-color: rgba(220, 205, 183, 0.95);
  box-shadow: 0 18px 36px rgba(63, 52, 39, 0.08);
}

.home-page .hero {
  margin-top: 5.5rem;
  position: relative;
  z-index: 2;
}

.home-page .hero.hero-with-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  min-height: 100%;
  padding: 1.5rem 1.4rem;
}

.hero-copy .kicker {
  color: var(--accent-deep);
}

.hero-copy .hero-note {
  color: #7a4633;
}

.hero-copy h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  color: #34271d;
}

.hero-accent {
  display: block;
  color: var(--accent);
  text-shadow: 0 6px 18px rgba(140, 59, 36, 0.12);
}

.hero-copy > p:not(.kicker):not(.hero-note) {
  max-width: 34ch;
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.7;
  color: #765f4c;
  text-align: center;
  text-wrap: balance;
}

.home-page .hero,
.home-page .section-intro,
.home-page .grid,
.home-page .feature,
.home-page .community,
.home-page .steps,
.home-page .contact {
  justify-self: center;
  width: 100%;
}

.home-page .section-intro {
  max-width: none;
}

.home-page .grid.homepage-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .pill-row {
  justify-content: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.card {
  background: #fffdf8;
  border: 1px solid #e6d7c2;
  border-radius: 0.8rem;
  padding: 1rem;
  height: 100%;
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.card-label,
.product-type {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.section-intro h2,
.section-heading h2 {
  margin-bottom: 0.45rem;
}

.browse-section {
  display: grid;
  gap: 1.2rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  color: #fff8ef;
  background: linear-gradient(180deg, #9b4a2e, #7d341f);
  border: 1px solid rgba(111, 47, 29, 0.9);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(140, 59, 36, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.pill-link:hover {
  background: linear-gradient(180deg, #a9472c, #6f2f1d);
  box-shadow: 0 14px 28px rgba(140, 59, 36, 0.24);
  transform: translateY(-1px);
}

.homepage-categories .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  text-align: center;
}

.feature {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
}

.feature-panel {
  border: 1px solid #d8c6a8;
  background: linear-gradient(180deg, #fbf2e4, #f4e5cf);
  border-radius: 0.8rem;
  padding: 1rem;
}

.feature-panel p {
  margin: 0;
  color: #4b3d2c;
}

.feature-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: #5f4f3f;
}

.community {
  text-align: center;
  border-style: dashed;
}

.community blockquote {
  margin: 0;
  font-family: "Alegreya", serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  color: #564433;
}

.steps h2 {
  margin-bottom: 0.65rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.steps-grid article {
  background: #fff7ea;
  border: 1px solid #e3d0b3;
  border-radius: 0.8rem;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps-grid span {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff6ea;
  background: linear-gradient(180deg, #9b4a2e, #7d341f);
}

.steps-grid h3 {
  margin: 0.6rem 0 0.3rem;
}

.refill-carousel {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.5rem 1.4rem;
}

.refill-carousel-window {
  position: relative;
  min-height: 320px;
}

.refill-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.35rem 1.15rem;
  border-radius: 0.9rem;
  background: rgba(255, 247, 234, 0.9);
  border: 1px solid #e3d0b3;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  pointer-events: none;
  transition: opacity 460ms ease, transform 460ms ease;
}

.refill-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.refill-slide h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: #3f3024;
}

.refill-slide p {
  margin: 0;
  max-width: 24ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.refill-step-number {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #9b4a2e, #7d341f);
  color: #fff8ef;
  font-weight: 800;
  font-size: 1rem;
}

.refill-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.refill-dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(140, 59, 36, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.refill-dot.is-active {
  background: var(--accent);
  transform: scale(1.18);
}

.refill-dot:hover {
  background: var(--accent-deep);
}

.contact {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(130, 146, 114, 0.12), transparent 40%),
    var(--paper);
}

.contact p {
  max-width: 62ch;
  margin: 0 auto 1rem;
}

.sales-notice {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 1.2rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(140, 59, 36, 0.1), rgba(255, 250, 240, 0.96)),
    var(--paper);
  border: 1px solid rgba(140, 59, 36, 0.18);
  border-radius: 1.05rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 0 16px 34px rgba(82, 47, 22, 0.08);
}

.sales-notice h2 {
  margin-bottom: 0.6rem;
}

.sales-notice-copy p:last-child {
  margin-bottom: 0;
}

.sales-notice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.sales-notice-tags span,
.modal-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff7eb;
  border: 1px solid #e5c8a4;
  color: #68462a;
  font-weight: 700;
  font-size: 0.9rem;
}

.modal-tag-alert {
  background: #8c3b24;
  border-color: #8c3b24;
  color: #fffaf2;
}

.page-hero h1 {
  max-width: 14ch;
}

.products-page .hero,
.products-page .section-intro,
.products-page .section-heading,
.products-page .sales-notice,
.products-page .sales-notice-copy,
.products-page .contact,
.products-page .product-modal-copy,
.products-page .cart-modal-copy,
.products-page .price-calculator {
  text-align: center;
}

.products-page .hero-actions,
.products-page .pill-row,
.products-page .sales-notice-tags,
.products-page .modal-tag-row,
.products-page .cart-actions {
  justify-content: center;
}

.products-page .product-modal-copy {
  justify-items: center;
}

.products-page .calculator-header,
.products-page .calculator-total,
.products-page .cart-summary,
.products-page .cart-item {
  justify-content: center;
  text-align: center;
}

.products-page .calculator-header,
.products-page .cart-summary,
.products-page .cart-item {
  flex-direction: column;
  align-items: center;
}

.products-page .price-per-ounce,
.products-page .cart-item-meta {
  text-align: center;
  justify-items: center;
}

.product-section {
  display: grid;
  gap: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.product-tile {
  background: #fffdf8;
  border: 1px solid #e6d7c2;
  border-radius: 0.8rem;
  padding: 1rem;
  min-height: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.product-tile:hover,
.product-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(140, 59, 36, 0.38);
  box-shadow: 0 18px 36px rgba(74, 51, 26, 0.11);
  outline: none;
}

.product-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 0.65rem;
  margin-bottom: 0.9rem;
  border: 1px solid #eadfce;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(243, 234, 221, 0.92)),
    #f5efe5;
  box-shadow: 0 10px 22px rgba(74, 51, 26, 0.08);
}

.product-tile .product-type {
  margin-top: 0.1rem;
}

.product-tile h3 {
  font-size: 1.3rem;
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.product-tile p:last-child {
  margin-bottom: 0;
}

.product-tile .product-detail-hint {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 29, 20, 0.6);
  backdrop-filter: blur(6px);
}

.product-modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 1.6rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  overflow: auto;
  background: #fffaf3;
  border: 1px solid rgba(140, 59, 36, 0.16);
  border-radius: 1.2rem;
  box-shadow: 0 28px 70px rgba(34, 23, 15, 0.28);
}

.modal-close {
  position: sticky;
  top: 0.75rem;
  left: calc(100% - 3.25rem);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.96);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 23, 15, 0.12);
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  padding: 0 1.25rem 1.25rem;
}

.product-modal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 1rem;
  border: 1px solid #eadfce;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 1), rgba(243, 234, 221, 0.92)),
    #f5efe5;
  padding: 1rem;
}

.product-modal-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-bottom: 0.8rem;
  justify-items: center;
}

.product-modal-copy h2 {
  margin-bottom: 0;
}

.product-modal-summary {
  margin: 0;
  color: var(--muted);
}

.modal-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.price-calculator {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(131, 147, 115, 0.28);
  background:
    linear-gradient(180deg, rgba(131, 147, 115, 0.08), rgba(255, 250, 240, 0.96)),
    #fffaf0;
}

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

.calculator-header h3 {
  margin: 0.2rem 0 0;
}

.price-per-ounce {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dfd0b8;
  font-weight: 800;
  color: #5f4b35;
  text-align: right;
}

.calculator-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 1rem;
  align-items: end;
}

.calculator-field {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 700;
}

.calculator-field span {
  font-size: 0.9rem;
}

.calculator-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.calculator-field input[type="number"] {
  width: 100%;
  border: 1px solid #d8c6ad;
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.calculator-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 0.15rem;
}

.calculator-total span {
  font-weight: 700;
}

.calculator-total strong {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-family: "Alegreya", serif;
  color: var(--accent-deep);
}

.calculator-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  justify-content: center;
}

.cart-feedback {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.cart-modal-dialog {
  width: min(760px, calc(100% - 1.6rem));
}

.contact-modal-dialog {
  width: min(880px, calc(100% - 1.6rem));
  margin: 0;
}

.contact-modal {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.contact-modal .product-modal-backdrop,
.contact-modal .contact-modal-dialog {
  grid-area: 1 / 1;
}

.contact-modal-copy {
  display: grid;
  gap: 1rem;
  padding: 0 1.25rem 1.4rem;
  text-align: center;
}

.contact-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

.contact-option-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(140, 59, 36, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.95)),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(63, 52, 39, 0.08);
  justify-items: center;
}

.contact-option-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-option-value {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-family: "Cormorant Garamond", serif;
  color: var(--accent-deep);
  line-height: 1.05;
  word-break: break-word;
}

.contact-option-value-phone {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-option-value-email {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  white-space: nowrap;
}

.contact-option-value a,
.contact-option-value-phone a,
a.contact-option-value,
a.contact-option-value-phone {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.contact-option-card .button {
  width: 100%;
  margin-top: 0.15rem;
}

.cart-modal-copy {
  display: grid;
  gap: 1rem;
  padding: 0 1.25rem 1.25rem;
}

.cart-message,
.cart-empty {
  margin: 0;
}

.cart-summary {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(131, 147, 115, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(131, 147, 115, 0.08), rgba(255, 250, 240, 0.96)),
    #fffaf0;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-summary-line-total {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(131, 147, 115, 0.24);
}

.cart-summary strong {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-family: "Alegreya", serif;
  color: var(--accent-deep);
}

.retailer-note {
  font-size: 0.88rem;
  color: #8a7665;
}

.retailer-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.retailer-note a:hover {
  text-decoration: underline;
}

.cart-list {
  display: grid;
  gap: 0.8rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #e6d7c2;
  background: #fffdf8;
}

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

.cart-item-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

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

.cart-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  box-shadow: 0 12px 28px rgba(63, 52, 39, 0.18);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.98);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
}

footer a {
  color: inherit;
}

footer {
  margin-bottom: 1.7rem;
  color: #705f4f;
  text-align: center;
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .grid,
  .product-grid,
  .steps-grid,
  .feature {
    grid-template-columns: 1fr;
  }

  .home-page .hero.hero-with-carousel {
    grid-template-columns: 1fr;
  }

  .sales-notice,
  .product-modal-layout,
  .calculator-controls,
  .contact-option-grid {
    grid-template-columns: 1fr;
  }

  .contact-option-value-email {
    white-space: normal;
  }

  .sales-notice-tags {
    justify-content: flex-start;
  }

  .cart-item,
  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-meta {
    justify-items: start;
  }

  .cart-summary-line {
    width: 100%;
  }

  .home-page .grid.homepage-categories {
    grid-template-columns: 1fr;
  }

  .refill-carousel-window {
    min-height: 250px;
  }
}

@media (max-width: 680px) {
  .home-page .site-header,
  .brand {
    gap: 0.75rem;
    align-items: center;
  }

  .brand-logo {
    width: 4.6rem;
    height: 4.6rem;
  }

  .brand > span {
    text-align: center;
  }

  .topbar,
  .site-header,
  .sticky-nav,
  main,
  footer {
    width: min(1050px, calc(100% - 1.2rem));
  }

  .home-page main {
    width: min(1050px, calc(100% - 1.2rem));
    gap: 0.9rem;
  }

  .topbar-inner {
    width: 100%;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .home-topbar {
    width: 100vw;
  }

  .brand-wordmark {
    height: clamp(2.7rem, 11vw, 3.5rem);
    max-width: min(88vw, 400px);
    transform: none;
  }

  .brand-wordmark-mockup {
    width: min(13rem, 56vw);
    max-width: min(56vw, 220px);
    max-height: none;
  }

  .home-brand {
    margin-left: 0;
  }

  .home-page .topnav {
    justify-content: center;
  }

  .topnav {
    gap: 0.55rem;
  }

  .topnav a {
    min-width: 4.9rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.88rem;
    justify-content: center;
  }

  .hero-stage {
    height: clamp(250px, 36svh, 320px);
    min-height: 250px;
    max-height: 320px;
    padding: 0;
  }

  .hero-stage::before {
    background:
      linear-gradient(rgba(255, 250, 240, 0.06), rgba(255, 250, 240, 0.18));
  }

  .hero-stage-wordmark {
    width: min(140vw, 840px);
    height: auto;
    transform: translate(-50%, calc(-50% + var(--hero-shift) - 0.2rem));
  }

  .hero-stage-wordmark-mockup {
    width: min(88vw, 620px);
    max-width: min(88vw, 620px);
    transform: translate(-50%, calc(-50% + var(--hero-shift) - 0.35rem));
  }

  .home-page .hero {
    margin-top: 1rem;
  }

  .sticky-nav {
    top: 0.4rem;
  }

  .hero-actions,
  .pill-row {
    justify-content: center;
  }

  .hero,
  .section-intro,
  .feature,
  .community,
  .steps,
  .contact,
  .product-section {
    padding: 1rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-note {
    font-size: 1.1rem;
  }

  .product-modal-dialog {
    width: min(980px, calc(100% - 0.8rem));
    margin: 0.4rem auto;
    max-height: calc(100vh - 0.8rem);
  }

  .product-modal-layout {
    padding: 0 0.8rem 0.9rem;
  }

  .cart-modal-copy {
    padding: 0 0.8rem 0.9rem;
  }

  .modal-close {
    top: 0.45rem;
    left: calc(100% - 2.95rem);
  }
}
