:root {
  --loop-teal: #0d6e6e;
  --loop-amber: #f2994a;
  --loop-ink: #1f2d2d;
  --loop-cream: #fbf7f0;
  --loop-sage: #bfe3e0;
  --white: #ffffff;
  --muted-text: #667575;
  --border-soft: rgba(31, 45, 45, 0.12);
  --shadow-soft: 0 18px 45px rgba(31, 45, 45, 0.1);
  --radius: 18px;
  --site-header-height: 72px;
  --page-gutter: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(242, 153, 74, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(191, 227, 224, 0.55), transparent 28rem),
    var(--loop-cream);
  color: var(--loop-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(13, 110, 110, 0.35);
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding-top: var(--site-header-height);
  padding-bottom: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - var(--page-gutter)));
  min-width: 0;
  min-height: var(--site-header-height);
  padding: 14px 0;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: rgba(251, 247, 240, 0.96);
  box-shadow: 0 1px 0 rgba(31, 45, 45, 0.08);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(118px, 17vw, 174px);
  height: auto;
  object-fit: contain;
}

.support-note,
.mini-label {
  color: var(--muted-text);
  font-size: 0.85rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  color: var(--muted-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--loop-teal);
}

.nav-cta {
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--loop-teal), #108383);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 16px;
  box-shadow: 0 10px 22px rgba(13, 110, 110, 0.18);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(13, 110, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(31, 45, 45, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--loop-ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(31, 45, 45, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(31, 45, 45, 0.14);
}

.site-header.menu-open .mobile-menu {
  display: flex;
}

.mobile-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-radius: 10px;
  color: var(--loop-ink);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 10px 12px;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(13, 110, 110, 0.08);
  color: var(--loop-teal);
}

.mobile-menu .mobile-menu-cta {
  justify-content: center;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--loop-teal), #108383);
  color: var(--white);
}

.mobile-menu .mobile-menu-cta:hover,
.mobile-menu .mobile-menu-cta:focus-visible {
  background: linear-gradient(135deg, var(--loop-teal), #108383);
  color: var(--white);
}

.section-pad {
  padding: 48px 0;
}

.products-section {
  padding-top: 0;
}

.hero {
  display: grid;
  gap: 30px;
  min-height: calc(100vh - 100px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--loop-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 9vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--muted-text);
  font-size: 1.05rem;
}

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

.hero-actions + .support-note {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

.button-primary {
  background: linear-gradient(135deg, var(--loop-teal), #108383);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(13, 110, 110, 0.18);
}

.button-secondary,
.button-ghost {
  background: var(--white);
  border-color: var(--border-soft);
  color: var(--loop-ink);
}

.button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hero-panel {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(191, 227, 224, 0.94), #ffffff 58%),
    var(--white);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-panel::before {
  position: absolute;
  inset: 18px auto auto 18px;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: rgba(242, 153, 74, 0.18);
  content: "";
  transform: rotate(-8deg);
}

.hero-basket {
  display: grid;
  gap: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  padding: 18px;
}

.hero-product-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-product-stack img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--loop-cream);
  box-shadow: 0 14px 24px rgba(31, 45, 45, 0.08);
  object-fit: cover;
}

.hero-basket h2 {
  font-size: 1.35rem;
}

.basket-line,
.basket-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  background: var(--loop-cream);
  padding: 12px;
}

.basket-total {
  background: var(--loop-teal);
  color: var(--white);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

.section-heading p:last-child,
.product-heading > p {
  color: var(--muted-text);
}

.steps-grid {
  display: grid;
  gap: 14px;
}

.step-card,
.product-card,
.cart-card,
.testimonial-card,
.onboarding-card,
.review-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(31, 45, 45, 0.06);
}

.step-card {
  padding: 18px;
}

.step-card span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--loop-sage);
  color: var(--loop-teal);
  font-weight: 800;
}

.step-card p,
.testimonial-card p,
.faq-list p {
  color: var(--muted-text);
  margin-bottom: 0;
}

.testimonials-grid {
  display: grid;
  gap: 14px;
}

.testimonial-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.rating-row {
  color: var(--loop-amber);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.testimonial-card p {
  color: var(--loop-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.testimonial-author {
  display: grid;
  gap: 2px;
  padding-top: 2px;
}

.testimonial-author strong {
  color: var(--loop-ink);
  font-weight: 800;
}

.testimonial-author span {
  color: var(--muted-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.products-layout {
  display: grid;
  gap: 22px;
  min-height: 0;
  overflow: visible;
}

.products-main {
  display: grid;
  gap: 14px;
  min-height: 0;
  align-self: start;
  overflow: visible;
}

.basket-controls {
  position: sticky;
  top: var(--site-header-height);
  z-index: 110;
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(251, 247, 240, 0.94);
  padding: 16px 0 10px;
  backdrop-filter: blur(14px);
  isolation: isolate;
}

.basket-controls::before {
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: inherit;
  content: "";
}

.product-scroll {
  min-height: 0;
}

.product-heading {
  display: grid;
  gap: 8px;
  max-width: none;
  margin-bottom: 0;
}

.search-field {
  display: grid;
  gap: 7px;
  color: var(--loop-ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(13, 110, 110, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--loop-ink);
  padding: 12px 16px;
  box-shadow: 0 10px 22px rgba(31, 45, 45, 0.06);
}

.search-field input::placeholder {
  color: rgba(102, 117, 117, 0.78);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin: 0 -10px;
  overflow-x: auto;
  padding: 0 10px 10px;
  scrollbar-width: none;
}

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

.category-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--loop-ink);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 7px 12px;
  box-shadow: 0 8px 18px rgba(31, 45, 45, 0.05);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--loop-teal), #108383);
  color: var(--white);
}

.bundle-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bundle-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.bundle-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.bundle-heading > p {
  max-width: 300px;
  margin-bottom: 2px;
  color: var(--muted-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.bundle-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 82%);
  gap: 14px;
  margin: 0 -10px;
  overflow-x: auto;
  padding: 2px 10px 12px;
  scrollbar-width: none;
}

.bundle-grid::-webkit-scrollbar {
  display: none;
}

.bundle-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 110, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 153, 74, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 240, 0.98)),
    var(--white);
  padding: 13px;
  box-shadow: 0 14px 34px rgba(31, 45, 45, 0.08);
}

.bundle-card::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(191, 227, 224, 0.32);
  content: "";
}

.bundle-card-top,
.bundle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.bundle-card-top > div {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
}

.bundle-card-top strong {
  color: var(--loop-ink);
  font-size: 1.05rem;
  line-height: 1;
}

.bundle-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--loop-teal), #108383);
  color: var(--white);
  box-shadow: 0 10px 18px rgba(13, 110, 110, 0.18);
}

.bundle-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bundle-accent {
  width: fit-content;
  border-radius: 999px;
  background: rgba(242, 153, 74, 0.16);
  color: #9a541e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
}

.bundle-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.bundle-copy h3 {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.bundle-preview,
.bundle-card-footer span {
  color: var(--muted-text);
  font-size: 0.84rem;
}

.bundle-preview {
  margin-bottom: 0;
}

.bundle-preview {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
  padding: 7px 9px;
}

.bundle-card-footer span {
  flex: 0 0 auto;
  font-weight: 700;
}

.bundle-button {
  min-height: 38px;
  border: 0;
  background: var(--loop-ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 8px 11px;
  box-shadow: 0 10px 20px rgba(31, 45, 45, 0.14);
  white-space: nowrap;
}

.bundle-button:hover {
  background: var(--loop-teal);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}

.empty-results {
  grid-column: 1 / -1;
  border: 1px dashed rgba(13, 110, 110, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted-text);
  padding: 22px;
  text-align: center;
}

.empty-results strong {
  display: block;
  color: var(--loop-ink);
  margin-bottom: 4px;
}

.empty-results p {
  margin-bottom: 0;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  min-width: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1.12;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(242, 153, 74, 0.16), transparent 38%),
    rgba(191, 227, 224, 0.18);
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    border-color: rgba(13, 110, 110, 0.28);
    box-shadow: 0 18px 42px rgba(31, 45, 45, 0.12);
    transform: translateY(-2px);
  }

  .product-card:hover .product-image {
    transform: scale(1.035);
  }
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: var(--loop-amber);
  color: var(--loop-ink);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 7px 10px;
  box-shadow: 0 8px 18px rgba(31, 45, 45, 0.12);
}

.product-card-body {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 14px;
  min-width: 0;
}

.product-copy {
  min-width: 0;
}

.product-copy h3 {
  overflow-wrap: anywhere;
}

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

.add-hint {
  color: var(--muted-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(191, 227, 224, 0.42);
  color: var(--loop-teal);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 9px;
}

.pill-amber {
  background: rgba(242, 153, 74, 0.16);
  color: #9a541e;
}

.product-price {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 42px minmax(34px, 42px) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, rgba(191, 227, 224, 0.28));
}

.quantity-control button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--loop-teal);
  font-size: 1.2rem;
  font-weight: 800;
}

.quantity-control button:hover {
  background: rgba(13, 110, 110, 0.09);
}

.quantity-control span {
  text-align: center;
  font-weight: 800;
}

.desktop-cart {
  display: none;
}

.cart-card {
  padding: 18px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-items,
.review-items {
  display: grid;
  gap: 10px;
}

.cart-item,
.review-item {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
}

.cart-item:last-child,
.review-item:last-child {
  border-bottom: 0;
}

.cart-item-row,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cart-item-row > *,
.total-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-item small,
.delivery-note,
.empty-state {
  color: var(--muted-text);
}

.remove-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #a4482d;
  font-weight: 800;
  padding: 0;
}

.total-row {
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  font-size: 1.05rem;
  font-weight: 800;
}

.total-row-soft {
  margin-top: 8px;
  border-top: 0;
  padding-top: 0;
  color: var(--muted-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.minimum-order-note {
  border: 1px solid rgba(242, 153, 74, 0.35);
  border-radius: 10px;
  background: rgba(242, 153, 74, 0.14);
  color: #8a4619;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 8px 0 0;
  padding: 7px 9px;
}

.cart-card .button {
  width: 100%;
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}

.faq-list details {
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
}

.faq-list summary {
  cursor: pointer;
  list-style-position: outside;
  font-weight: 800;
}

.faq-list p {
  max-width: 760px;
  padding-top: 10px;
}

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-text);
  padding: 28px 0;
}

.home-page .site-footer {
  border-top-color: rgba(31, 45, 45, 0.1);
  padding: 32px 0;
}

.site-footer::before {
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: #f3eadc;
  content: "";
}

.site-footer strong {
  color: var(--loop-ink);
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
}

.mobile-cart-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--loop-ink);
  color: var(--white);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.mobile-cart-bar.visible {
  display: flex;
}

.mobile-cart-bar small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
}

.mobile-cart-bar .button {
  min-height: 44px;
  background: var(--loop-amber);
  color: var(--loop-ink);
  padding-inline: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(242, 153, 74, 0.2), transparent 24rem),
    rgba(31, 45, 45, 0.48);
  padding: max(12px, env(safe-area-inset-top)) 12px
    max(12px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hidden {
  display: none;
}

.onboarding-card {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100dvh - 28px);
  overflow: visible;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 240, 0.98)),
    var(--white);
  box-shadow: 0 24px 70px rgba(31, 45, 45, 0.18);
  isolation: isolate;
}

.onboarding-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(13, 110, 110, 0.18), transparent 46%),
    radial-gradient(circle at 88% 12%, rgba(242, 153, 74, 0.2), transparent 11rem);
  content: "";
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--loop-ink);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(31, 45, 45, 0.08);
}

.review-back-icon,
.review-back-label {
  display: none;
}

.onboarding-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-right: 46px;
  margin-bottom: 20px;
}

.onboarding-mark {
  display: inline-grid;
  min-width: 76px;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--loop-teal);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0;
}

.onboarding-pill {
  border: 1px solid rgba(13, 110, 110, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted-text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
}

.onboarding-glow {
  position: absolute;
  top: 54px;
  right: 74px;
  z-index: -1;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(191, 227, 224, 0.48);
  filter: blur(18px);
  pointer-events: none;
}

.onboarding-intro {
  max-width: 430px;
  padding-right: 16px;
}

.onboarding-intro .eyebrow {
  color: var(--loop-teal);
}

.onboarding-intro h2 {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.08;
}

.onboarding-intro p:not(.eyebrow) {
  color: var(--muted-text);
  font-size: 0.96rem;
  margin: 10px 0 0;
}

.onboarding-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.onboarding-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(13, 110, 110, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px 12px;
  box-shadow: 0 8px 22px rgba(31, 45, 45, 0.05);
}

.onboarding-step::after {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--loop-amber);
  content: "";
}

.onboarding-step:nth-child(even)::after {
  background: var(--loop-teal);
}

.onboarding-step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 153, 74, 0.18);
  color: var(--loop-teal);
  font-weight: 800;
}

.onboarding-step h3 {
  margin-bottom: 4px;
  font-size: 0.95rem;
  line-height: 1.2;
}

.onboarding-step p {
  color: var(--muted-text);
  font-size: 0.86rem;
  margin-bottom: 0;
}

.onboarding-card .modal-actions {
  margin-top: 16px;
}

.review-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(880px, calc(100vw - 24px));
  max-height: min(92dvh, 900px);
  overflow: hidden;
  min-width: 0;
}

.review-header,
.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.review-header > div,
.review-footer > div {
  min-width: 0;
}

.review-header {
  border-bottom: 1px solid var(--border-soft);
}

.review-body {
  display: grid;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  min-width: 0;
}

.review-section,
.review-items,
.review-item {
  min-width: 0;
}

.review-section h3 {
  margin-bottom: 12px;
}

.recurrence-grid {
  display: grid;
  gap: 10px;
}

.recurrence-option {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--white);
  padding: 14px;
  text-align: left;
  min-width: 0;
}

.recurrence-option.active {
  border-color: var(--loop-teal);
  background: rgba(191, 227, 224, 0.38);
}

.recurrence-option strong {
  color: var(--loop-ink);
}

.recurrence-option span {
  color: var(--muted-text);
  font-size: 0.9rem;
}

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

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--loop-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  color: var(--loop-ink);
  padding: 13px 14px;
}

.field-error,
.form-error {
  min-height: 18px;
  color: #a4482d;
  font-size: 0.84rem;
  font-weight: 700;
}

.review-footer {
  align-items: stretch;
  border-top: 1px solid var(--border-soft);
  background: var(--loop-cream);
}

.review-footer > div {
  display: grid;
}

.review-footer span {
  color: var(--muted-text);
  font-size: 0.84rem;
}

.review-footer strong {
  font-size: 1.25rem;
}

.review-footer .button {
  min-width: 210px;
}

.form-error {
  align-self: center;
  margin: 0;
}

@media (min-width: 700px) {
  :root {
    --site-header-height: 64px;
    --page-gutter: 48px;
  }

  .page-shell {
    width: min(1180px, calc(100% - 48px));
  }

  .site-header {
    padding: 8px 0;
  }

  .brand-logo {
    width: clamp(116px, 13vw, 150px);
  }

  .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .form-wide {
    grid-column: 1 / -1;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 699px) {
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 980px) {
  .section-pad {
    padding: 68px 0;
  }

  .products-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .basket-controls {
    top: calc(var(--site-header-height) + 24px);
    z-index: 60;
    overflow: hidden;
    border-radius: 18px;
  }

  .basket-controls::before {
    display: none;
  }

  .desktop-cart {
    position: sticky;
    top: calc(var(--site-header-height) + 24px);
    display: block;
  }

  .product-heading {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
  }

  .mobile-cart-bar {
    display: none !important;
  }
}

@media (max-width: 979px) {
  .products-layout,
  .products-main {
    min-height: 0;
  }

  .products-main {
    gap: 8px;
  }

  .product-scroll {
    min-height: 0;
    padding: 2px 2px 92px;
  }

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

@media (max-width: 520px) {
  :root {
    --site-header-height: 64px;
    --page-gutter: 20px;
  }

  .home-page {
    --page-gutter: 32px;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-bottom: 0;
  }

  .home-page .page-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .site-header {
    min-height: 64px;
    gap: 10px;
  }

  .brand-logo {
    width: 112px;
  }

  .section-pad {
    padding: 30px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .bundle-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .bundle-heading > p {
    max-width: none;
    font-size: 0.86rem;
  }

  .hero-panel,
  .hero-basket {
    border-radius: 20px;
  }

  #reviewModal {
    place-items: stretch;
    background: var(--loop-cream);
    padding: 0;
    overflow: hidden;
  }

  .review-panel {
    width: 100dvw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .review-header,
  .review-footer {
    padding: 12px;
  }

  .review-header {
    align-items: center;
    justify-content: flex-start;
    background: rgba(251, 247, 240, 0.98);
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .review-header > div {
    min-width: 0;
  }

  .review-header h2 {
    font-size: 1.35rem;
  }

  .review-back-button {
    order: -1;
    display: inline-flex;
    width: auto;
    height: 40px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--loop-teal);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0 8px 0 0;
  }

  .review-back-icon,
  .review-back-label {
    display: inline-flex;
  }

  .review-back-icon {
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(13, 110, 110, 0.14);
    border-radius: 999px;
    background: var(--white);
    font-size: 1.25rem;
    line-height: 1;
  }

  .review-back-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .review-close-icon {
    display: none;
  }

  .review-body {
    gap: 14px;
    padding: 12px;
  }

  .review-section h3 {
    margin-bottom: 8px;
  }

  .review-items,
  .cart-items {
    gap: 8px;
  }

  .review-item,
  .cart-item {
    gap: 7px;
    padding-bottom: 10px;
  }

  .recurrence-grid,
  .checkout-form {
    gap: 8px;
  }

  .recurrence-option {
    min-height: 62px;
    border-radius: 12px;
    padding: 10px;
  }

  .checkout-form input,
  .checkout-form textarea {
    border-radius: 12px;
    padding: 11px 12px;
  }

  .review-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .review-footer .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  #reviewModal .review-header,
  #reviewModal .review-body,
  #reviewModal .review-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  #reviewModal .review-header {
    min-height: 58px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  #reviewModal .review-header .eyebrow {
    display: none;
  }

  #reviewModal .review-header h2 {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: var(--loop-ink);
    font-size: 1.08rem;
    line-height: 1.2;
    white-space: normal;
  }

  #reviewModal .review-back-button {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  #reviewModal .review-back-label {
    display: none;
  }

  #reviewModal .review-back-icon {
    width: 36px;
    height: 36px;
  }

  #reviewModal .review-item .cart-item-row:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  #reviewModal .review-item .quantity-control {
    width: auto;
    grid-template-columns: 30px minmax(28px, 32px) 30px;
    justify-content: start;
  }

  #reviewModal .review-item .quantity-control button {
    width: 30px;
    height: 32px;
  }

  #reviewModal .review-item .remove-button {
    display: block;
    flex: 0 0 auto;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .product-image-wrap {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.05;
  }

  .product-card-body {
    gap: 7px;
    padding: 10px;
  }

  .product-meta {
    gap: 6px;
    margin: 6px 0 8px;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .quantity-control {
    grid-template-columns: 34px minmax(28px, 34px) 34px;
    justify-content: center;
    width: 100%;
  }

  .quantity-control button {
    width: 34px;
    height: 34px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    font-size: 0.68rem;
    padding: 6px 8px;
  }
}

@media (max-width: 430px) {
  :root {
    --page-gutter: 18px;
  }

  .home-page {
    --page-gutter: 32px;
  }

  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .home-page .page-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .site-header {
    padding: 10px 0;
  }

  .brand-logo {
    width: 96px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.6rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.38rem, 8vw, 1.85rem);
  }

  .hero-product-stack {
    gap: 7px;
  }

  .basket-line,
  .basket-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .category-tabs {
    margin-right: -8px;
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .product-heading {
    gap: 4px;
  }

  .search-field input {
    min-height: 40px;
    padding: 9px 13px;
  }

  .product-scroll {
    min-height: 0;
    padding-bottom: 78px;
  }

  .product-card-body {
    padding: 9px;
  }

  .bundle-grid {
    grid-auto-columns: minmax(238px, 86%);
  }

  .bundle-card {
    gap: 10px;
    padding: 12px;
  }

  .bundle-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .bundle-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .bundle-button {
    width: 100%;
  }

  .product-copy h3 {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  .pill {
    font-size: 0.66rem;
    padding: 3px 6px;
  }

  .product-price {
    font-size: 0.96rem;
  }

  .quantity-control {
    grid-template-columns: 36px minmax(28px, 34px) 36px;
  }

  .quantity-control button {
    width: 36px;
    height: 36px;
  }

  .mobile-cart-bar {
    right: 8px;
    left: 8px;
    gap: 8px;
    border-radius: 16px;
    padding: 10px;
  }

  .mobile-cart-bar .button {
    min-height: 42px;
    padding-inline: 10px;
  }

  .onboarding-card {
    width: 100%;
    max-height: 94dvh;
    padding: 18px;
    border-radius: 18px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .onboarding-brand-row {
    display: grid;
    justify-content: start;
    margin-right: 44px;
    margin-bottom: 16px;
  }

  .onboarding-mark {
    min-width: 68px;
    min-height: 38px;
  }

  .onboarding-pill {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
  }

  .onboarding-intro {
    padding-right: 0;
  }

  .onboarding-intro h2 {
    font-size: 1.62rem;
    line-height: 1.08;
  }

  .onboarding-list {
    gap: 9px;
    margin-top: 16px;
  }

  .onboarding-step {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 11px;
  }

  .onboarding-step span {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .onboarding-step h3 {
    font-size: 0.96rem;
  }

  .onboarding-step p {
    font-size: 0.88rem;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .modal-actions .button {
    width: 100%;
  }
}

@media (max-width: 370px) {
  .product-card {
    min-height: 0;
  }

  .product-image-wrap {
    min-height: 0;
    aspect-ratio: 1.05;
  }

  .product-actions {
    align-items: stretch;
  }

  .quantity-control {
    justify-self: stretch;
  }
}

@media (max-width: 340px) {
  :root {
    --page-gutter: 14px;
  }

  .home-page {
    --page-gutter: 32px;
  }

  .page-shell {
    width: min(100% - 14px, 1180px);
  }

  .home-page .page-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .brand-logo {
    width: 84px;
  }

  .button {
    min-height: 46px;
    padding: 11px 14px;
  }

  .hero-panel,
  .hero-basket,
  .step-card,
  .product-card,
  .cart-card,
  .testimonial-card,
  .onboarding-card {
    border-radius: 16px;
  }

  .review-header,
  .review-body,
  .review-footer {
    padding: 12px;
  }

  .mobile-cart-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-cart-bar .button {
    width: 100%;
  }

  .product-scroll {
    min-height: 0;
    padding-bottom: 74px;
  }

  .product-card {
    min-height: 0;
  }

  .product-image-wrap {
    min-height: 0;
  }

  .add-hint {
    display: none;
  }
}
