:root {
  --green: #007a3d;
  --green-dark: #04572f;
  --lime: #d8ed48;
  --red: #e62f2f;
  --yellow: #ffcf32;
  --blue: #1769aa;
  --ink: #17211c;
  --muted: #66736c;
  --line: #e2e8e3;
  --surface: #fff;
  --soft: #f4f7f2;
  --shadow: 0 16px 40px rgba(16, 40, 24, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.shipping-strip {
  align-items: center;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  font-size: 14px;
  gap: 10px;
  justify-content: center;
  min-height: 36px;
  padding: 6px 16px;
  text-align: center;
}

.shipping-strip strong {
  color: var(--lime);
  font-weight: 850;
}

.header-main {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(210px, auto) auto minmax(280px, 1fr) auto;
  margin: 0 auto;
  max-width: 1240px;
  padding: 14px 24px;
}

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

.brand-mark {
  align-items: center;
  background: var(--red);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  letter-spacing: 0;
  width: 44px;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.location-button,
.search,
.cart-button,
.icon-button,
.category-chip,
.primary-action,
.secondary-action,
.plain-action,
.checkout-button,
.newsletter button,
.add-button,
.benefit-actions button {
  border: 0;
  cursor: pointer;
}

.location-button {
  align-items: center;
  background: #eef7f1;
  border: 1px solid #cde5d5;
  border-radius: var(--radius);
  color: var(--green-dark);
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
}

.location-button span:last-child {
  display: grid;
  font-size: 12px;
  line-height: 1.15;
  text-align: left;
}

.search {
  align-items: center;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, .14);
}

.search .icon {
  color: var(--green);
}

.search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.account-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-button {
  align-items: center;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.cart-button {
  align-items: center;
  background: var(--green);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.cart-button strong {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
}

.category-bar {
  display: flex;
  gap: 8px;
  margin: 0 auto;
  max-width: 1240px;
  overflow-x: auto;
  padding: 0 24px 14px;
  scrollbar-width: none;
}

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

.category-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 15px;
  white-space: nowrap;
}

.category-chip.is-active,
.category-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 22px 24px 54px;
}

.hero-shopping {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(6, 58, 32, .92), rgba(6, 58, 32, .45) 54%, rgba(6, 58, 32, .12)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1500&q=82") center/cover;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 360px;
  padding: 38px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.hero-shopping .eyebrow,
.wide-deal .eyebrow {
  color: var(--lime);
}

.hero-copy {
  max-width: 650px;
}

.hero-copy h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 16px;
}

.hero-copy p:not(.eyebrow) {
  font-size: 18px;
  margin: 0;
  max-width: 590px;
}

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

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 850;
  min-height: 46px;
  padding: 0 18px;
}

.primary-action {
  background: var(--yellow);
  color: var(--ink);
}

.secondary-action {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
}

.delivery-panel {
  background: rgba(255, 255, 255, .92);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 18px;
  width: 100%;
}

.delivery-panel strong {
  font-size: 18px;
}

.delivery-panel small {
  color: var(--green);
  font-weight: 850;
}

.trust-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.trust-row article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  min-height: 64px;
  padding: 14px;
}

.trust-row svg {
  color: var(--green);
  flex: 0 0 auto;
}

.trust-row span {
  font-weight: 800;
}

.promo-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.promo-tile {
  border-radius: var(--radius);
  color: #fff;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.promo-tile::after {
  background: rgba(255, 255, 255, .2);
  border-radius: 999px;
  content: "";
  height: 150px;
  position: absolute;
  right: -42px;
  top: -44px;
  width: 150px;
}

.promo-tile small {
  font-weight: 900;
  text-transform: uppercase;
}

.promo-tile h2 {
  font-size: 25px;
  line-height: 1.05;
  margin: 12px 0 8px;
}

.promo-tile p {
  margin: 0;
}

.promo-red {
  background: var(--red);
}

.promo-green {
  background: var(--green);
}

.promo-blue {
  background: var(--blue);
}

.ad-showcase {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr) minmax(220px, .65fr);
  margin-top: 18px;
}

.ad-main,
.ad-mini {
  border-radius: var(--radius);
  color: #fff;
  min-height: 190px;
  overflow: hidden;
  position: relative;
}

.ad-main {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, .9), rgba(23, 33, 28, .55)),
    url("https://images.unsplash.com/photo-1556742044-3c52d6e88c62?auto=format&fit=crop&w=1200&q=82") center/cover;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 28px;
}

.ad-main .eyebrow {
  color: var(--lime);
}

.ad-main h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  margin: 0 0 10px;
}

.ad-main p:not(.eyebrow) {
  margin: 0;
  max-width: 520px;
}

.ad-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.ad-actions button,
.ad-actions a {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 900;
  min-height: 44px;
  padding: 0 14px;
}

.ad-actions button {
  background: var(--yellow);
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.ad-actions a {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
}

.ad-mini {
  display: grid;
  padding: 20px;
}

.ad-mini::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .48));
  content: "";
  inset: 0;
  position: absolute;
}

.ad-mini span,
.ad-mini strong {
  position: relative;
  z-index: 1;
}

.ad-mini span {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ad-mini strong {
  align-self: end;
  font-size: 24px;
  line-height: 1.05;
}

.ad-fruits {
  background: url("https://images.unsplash.com/photo-1619566636858-adf3ef46400b?auto=format&fit=crop&w=700&q=82") center/cover;
}

.ad-delivery {
  background: url("https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=700&q=82") center/cover;
}

.banner-showcase {
  margin-top: 18px;
}

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

.home-banner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(16, 40, 24, .06);
  display: grid;
  overflow: hidden;
}

.home-banner-card img {
  aspect-ratio: 1.7;
  object-fit: cover;
  width: 100%;
}

.home-banner-card div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.home-banner-card small,
.home-banner-card span,
.home-banner-card a {
  color: var(--muted);
}

.home-banner-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.home-banner-card .banner-action {
  align-items: center;
  background: var(--green);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  width: fit-content;
}

.section-shell,
.benefits-section,
.service-section {
  margin-top: 38px;
}

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

.section-heading h2,
.newsletter h2,
.wide-deal h2,
.benefit-card h2,
.service-section h2,
.modal-panel h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  margin: 0;
}

.section-heading a,
.plain-action {
  background: transparent;
  color: var(--green);
  font-weight: 900;
  padding: 8px 0;
}

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

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.category-card img {
  aspect-ratio: 1.2;
  object-fit: cover;
  width: 100%;
}

.category-card span {
  display: block;
  font-weight: 900;
  padding: 12px;
}

.benefits-section {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.benefit-card,
.benefit-actions article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 40, 24, .06);
  padding: 24px;
}

.benefit-card {
  background:
    linear-gradient(135deg, rgba(0, 122, 61, .94), rgba(4, 87, 47, .92)),
    url("https://images.unsplash.com/photo-1556742521-9713bf272865?auto=format&fit=crop&w=900&q=80") center/cover;
  color: #fff;
}

.benefit-card .eyebrow {
  color: var(--lime);
}

.benefit-card p:not(.eyebrow) {
  max-width: 560px;
}

.points-meter {
  background: rgba(255, 255, 255, .24);
  border-radius: 999px;
  height: 12px;
  margin: 26px 0 10px;
  overflow: hidden;
}

.points-meter div {
  background: var(--yellow);
  height: 100%;
}

.points-note {
  font-weight: 800;
}

.benefit-actions {
  display: grid;
  gap: 14px;
}

.benefit-actions article {
  display: grid;
  gap: 10px;
}

.benefit-actions strong {
  font-size: 18px;
}

.benefit-actions span,
.benefit-actions small {
  color: var(--muted);
}

.benefit-actions button,
.employee-form button {
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 0 14px;
}

.benefit-actions button[data-redeem-points]:disabled {
  background: #b8c9b8;
  cursor: not-allowed;
}

.benefit-actions small.is-success {
  color: var(--green-dark);
  font-weight: 700;
}

.benefit-actions small.is-error {
  color: var(--red);
}

.employee-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.employee-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.product-media {
  align-items: center;
  background: #f7faf6;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
  text-align: inherit;
}

.product-media img {
  aspect-ratio: 1.12;
  object-fit: cover;
  width: 100%;
}

.product-tag {
  background: var(--red);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  left: 10px;
  padding: 5px 9px;
  position: absolute;
  top: 10px;
}

.marketing-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-tag {
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-title {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  text-align: left;
}

.product-unit {
  color: var(--muted);
  font-size: 13px;
}

.price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 950;
}

.old-price {
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}

.card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.add-button,
.detail-button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
}

.add-button {
  background: var(--green);
  border: 0;
  color: #fff;
  cursor: pointer;
}

.detail-button {
  background: #f1f4ef;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

.wide-deal {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(85, 24, 21, .92), rgba(85, 24, 21, .52)),
    url("https://images.unsplash.com/photo-1607623814075-e51df1bdc82f?auto=format&fit=crop&w=1400&q=82") center/cover;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 38px;
  min-height: 230px;
  padding: 36px;
}

.wide-deal p:not(.eyebrow) {
  margin: 10px 0 0;
  max-width: 520px;
}

.sort-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sort-group label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.sort-group select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 0 12px;
}

.checkout-note {
  background: #fdfae5;
  border: 1px solid #f6e696;
  border-radius: var(--radius);
  color: #5c4e0b;
  font-size: 13.5px;
  padding: 10px 14px;
}

.checkout-badge {
  background: #eef7f1;
  color: var(--green-dark);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #cde5d5;
  margin-bottom: 16px;
}

.checkout-payment-methods {
  background: var(--soft);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-payment-methods .eyebrow {
  margin-bottom: 0;
}

.service-section {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.service-section article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.service-section ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-links a {
  background: #eef7f1;
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 800;
  padding: 8px 12px;
}

.newsletter {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  margin-top: 38px;
  padding: 34px;
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input {
  border: 0;
  border-radius: var(--radius);
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  width: 100%;
}

.newsletter button {
  background: var(--yellow);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  min-height: 48px;
  padding: 0 16px;
}

.site-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  margin: 0 auto;
  max-width: 1240px;
  padding: 28px 24px 92px;
}

.site-footer strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 850;
}

.site-footer small {
  grid-column: 1 / -1;
}

.cart-drawer {
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  max-width: min(420px, 100vw);
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(110%);
  transition: transform .22s ease;
  width: 420px;
  z-index: 40;
}

.drawer-open .cart-drawer {
  transform: translateX(0);
}

.drawer-backdrop {
  background: rgba(0, 0, 0, .36);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  z-index: 35;
}

.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.cart-header strong {
  display: block;
  font-size: 22px;
}

.cart-header small {
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.empty-cart {
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.cart-line {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.cart-line img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-line h3 {
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.cart-line span {
  color: var(--green-dark);
  font-weight: 900;
}

.quantity-control {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 30px 30px 30px;
  overflow: hidden;
}

.quantity-control button {
  background: #f6f8f5;
  border: 0;
  cursor: pointer;
  min-height: 32px;
}

.quantity-control strong {
  text-align: center;
}

.cart-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cart-total,
.loyalty-summary,
.cart-discount {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.loyalty-summary,
.cart-discount {
  color: var(--muted);
  font-size: 14px;
}

.cart-discount[hidden] {
  display: none;
}

.loyalty-summary strong {
  color: var(--blue);
}

.cart-discount strong {
  color: var(--red);
}

.cart-total strong {
  color: var(--green-dark);
  font-size: 26px;
}

.checkout-button {
  background: var(--green);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 950;
  min-height: 50px;
}

.cart-footer small {
  color: var(--muted);
}

.modal {
  align-items: center;
  background: rgba(0, 0, 0, .48);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  background: #fff;
  border-radius: var(--radius);
  max-height: calc(100dvh - 36px);
  max-width: 980px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.modal-panel.compact {
  max-width: 560px;
  padding: 26px;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
}

.detail-media {
  background: #f6f8f5;
  padding: 24px;
}

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

.detail-content {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.detail-content h2 {
  padding-right: 38px;
}

.detail-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span {
  background: #f1f4ef;
  border-radius: 999px;
  padding: 6px 10px;
}

.detail-price {
  align-items: baseline;
  display: flex;
  gap: 12px;
}

.detail-price strong {
  color: var(--green-dark);
  font-size: 34px;
}

.detail-quantity {
  align-items: center;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}

.detail-quantity-copy {
  display: grid;
  gap: 4px;
}

.detail-quantity-copy small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.detail-quantity-copy strong {
  color: var(--ink);
  font-size: 18px;
}

.detail-quantity-copy span {
  color: var(--muted);
  font-size: 13px;
}

.detail-quantity-control {
  min-width: 154px;
}

.detail-quantity-control button {
  font-size: 18px;
  min-height: 42px;
}

.detail-quantity-control button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.detail-quantity-control strong {
  font-size: 16px;
}

.spec-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-grid div,
.modal-benefits-grid span {
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.spec-grid small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions .add-button,
.detail-actions .detail-button {
  flex: 1 1 190px;
}

.modal-copy {
  color: var(--muted);
}

.preference-card {
  background: linear-gradient(135deg, #13351f, #007a3d);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  gap: 8px;
  margin: 20px 0;
  min-height: 170px;
  padding: 22px;
}

.preference-card strong {
  font-size: 30px;
}

.modal-benefits-grid {
  display: grid;
  gap: 10px;
}

.share-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 18px 0;
  overflow: hidden;
}

.share-preview img {
  aspect-ratio: 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.share-preview div {
  align-self: center;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 10px 0;
}

.share-preview span,
.share-note {
  color: var(--muted);
}

.share-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-grid a,
.share-grid button {
  align-items: center;
  background: #eef7f1;
  border: 1px solid #cde5d5;
  border-radius: var(--radius);
  color: var(--green-dark);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
}

.share-grid a:first-child {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.share-note {
  display: block;
  margin-top: 12px;
}

.mobile-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 24;
}

.mobile-nav a,
.mobile-nav button {
  align-items: center;
  background: #fff;
  border: 0;
  color: var(--ink);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 3px;
  justify-items: center;
  min-height: 62px;
}

.mobile-nav svg {
  color: var(--green);
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 1fr auto auto;
  }

  .search {
    grid-column: 1 / -1;
    order: 4;
  }

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

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

@media (max-width: 860px) {
  .header-main {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand small,
  .location-button,
  .account-actions .icon-button,
  .cart-button span {
    display: none;
  }

  .category-bar {
    padding: 0 16px 12px;
  }

  main {
    padding: 16px 16px 92px;
  }

  .hero-shopping {
    grid-template-columns: 1fr;
    min-height: 430px;
    padding: 28px;
  }

  .delivery-panel {
    margin-top: 28px;
    max-width: 300px;
  }

  .promo-row,
  .ad-showcase,
  .trust-row,
  .benefits-section,
  .service-section,
  .newsletter {
    grid-template-columns: 1fr;
  }

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

  .wide-deal,
  .ad-main,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .newsletter form {
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

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

  .detail-content {
    padding: 24px;
  }

  .detail-quantity {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-quantity-control {
    width: 100%;
  }

  .mobile-nav {
    display: grid;
  }
}

@media (max-width: 560px) {
  .shipping-strip {
    align-items: center;
    flex-direction: column;
    gap: 0;
  }

  .header-main {
    grid-template-columns: 1fr auto;
  }

  .brand strong {
    font-size: 17px;
  }

  .category-grid,
  .product-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero-shopping {
    min-height: 470px;
    padding: 24px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .primary-action,
  .secondary-action,
  .ad-actions button,
  .ad-actions a,
  .employee-form {
    justify-content: center;
    width: 100%;
  }

  .share-preview,
  .share-grid {
    grid-template-columns: 1fr;
  }

  .employee-form {
    flex-direction: column;
  }

  .wide-deal {
    padding: 28px 22px;
  }
}

.cart-coupon {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px 18px;
}

.cart-coupon-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-coupon input {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.cart-coupon .coupon-apply {
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  min-width: 92px;
  padding: 10px 14px;
  white-space: nowrap;
}

.cart-coupon .coupon-apply:hover {
  background: var(--green-dark);
}

.cart-coupon .coupon-apply:disabled {
  background: #b8c9b8;
  cursor: not-allowed;
}

.coupon-hint {
  color: var(--muted);
  min-height: 1.2em;
}

.coupon-hint.is-error {
  color: var(--red);
}

.coupon-hint.is-success {
  color: var(--green-dark);
  font-weight: 700;
}

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

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.field-block {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.field-inline {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.checkout-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.account-profile .account-logout {
  margin-top: 12px;
  width: 100%;
}

.auth-switch {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
  text-align: center;
}

.auth-switch button {
  background: none;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.payment-methods-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 14px;
  padding: 14px;
}

.payment-methods-panel h3 {
  margin: 0 0 10px;
}

.payment-methods-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.payment-method-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.payment-method-card strong {
  display: block;
  margin-bottom: 2px;
}

.checkout-processing {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 14px;
  padding: 18px;
  text-align: center;
}

.checkout-processing[hidden] {
  display: none !important;
}

.checkout-processing span {
  color: var(--muted);
  font-size: .92rem;
}

.checkout-processing-spinner {
  animation: checkout-spin .8s linear infinite;
  border: 3px solid #dce8df;
  border-radius: 50%;
  border-top-color: var(--green);
  height: 34px;
  width: 34px;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

.checkout-feedback-panel {
  max-width: 460px;
  padding: 34px 28px 28px;
  text-align: center;
}

.checkout-feedback-icon {
  align-items: center;
  border-radius: 50%;
  display: grid;
  height: 72px;
  justify-items: center;
  margin: 0 auto 16px;
  width: 72px;
}

.checkout-feedback-panel.is-success .checkout-feedback-icon {
  background: #e8f6ee;
  color: var(--green);
}

.checkout-feedback-panel.is-error .checkout-feedback-icon {
  background: #fdeeee;
  color: var(--red);
}

.checkout-feedback-panel.is-pending .checkout-feedback-icon {
  background: #fff6df;
  color: #9a6b00;
}

.checkout-feedback-panel.is-loading .checkout-feedback-icon {
  background: #eef4ff;
  color: var(--blue);
}

.checkout-feedback-icon svg {
  height: 36px;
  width: 36px;
  fill: currentColor;
}

.checkout-feedback-detail {
  background: #fff8e8;
  border: 1px solid #f2df9a;
  border-radius: 12px;
  color: #5c4a12;
  font-size: .92rem;
  margin: 0 0 18px;
  padding: 12px 14px;
  text-align: left;
}

.checkout-feedback-panel.is-error .checkout-feedback-detail {
  background: #fff3f3;
  border-color: #f5c2c2;
  color: #7a2424;
}

.checkout-feedback-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.checkout-feedback-actions .primary-action,
.checkout-feedback-actions .detail-button {
  width: 100%;
}
