/*
  Beginner edit tip:
  Change these color variables to tweak the whole website.
*/
:root {
  --bg: #fff8ec;
  --surface: #ffffff;
  --surface-soft: #f7eddb;
  --cream: #fff8ec;
  --cream-deep: #f5e6cf;
  --green: #176b3f;
  --green-dark: #0e422f;
  --green-soft: #eaf5ed;
  --gold: #d8b46f;
  --orange: #d9893d;
  --red-muted: #b65b4f;
  --ink: #1d261e;
  --muted: #6b6f61;
  --line: #ead8bd;
  --line-strong: #dcc49c;
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow: 0 22px 60px rgba(52, 63, 42, 0.1);
  --shadow-soft: 0 12px 34px rgba(52, 63, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 180, 111, 0.18), transparent 30rem),
    linear-gradient(180deg, #fffbf3 0%, var(--cream) 42%, #fffaf1 100%);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-links .nav-call {
  background: var(--green);
  color: var(--surface);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  width: 100%;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 78px max(16px, calc((100vw - 1120px) / 2)) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.76fr);
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 247, 238, 0.95) 0%, rgba(251, 247, 238, 0.86) 48%, rgba(251, 247, 238, 0.72) 100%),
    url("assets/eden-background.png");
  background-size: cover;
  background-position: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-support {
  max-width: 680px;
  color: var(--green-dark);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.hero-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.hero-badges span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.hero-actions {
  margin: 28px 0 10px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.button.primary,
.button.green {
  background: var(--green);
  color: var(--surface);
}

.button.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.18);
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green);
}

.button-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-info {
  margin-top: 22px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.hero-info p {
  margin: 0;
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.28);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.owner-card {
  width: min(78%, 320px);
  position: relative;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 221, 204, 0.85);
  border-radius: 30px;
  background: rgba(255, 252, 244, 0.93);
  box-shadow: 0 18px 46px rgba(45, 55, 40, 0.12);
}

.owner-card::before,
.owner-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(47, 125, 76, 0.22);
  border-radius: 72% 28% 68% 32%;
  background: rgba(47, 125, 76, 0.06);
  pointer-events: none;
}

.owner-card::before {
  top: 18px;
  left: 20px;
  transform: rotate(-24deg);
}

.owner-card::after {
  right: 18px;
  bottom: 58px;
  transform: rotate(32deg);
}

.owner-photo {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-soft);
  box-shadow: 0 14px 34px rgba(45, 55, 40, 0.16);
}

.owner-info {
  padding: 22px 6px 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.owner-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.owner-info p {
  margin-bottom: 0;
  color: #7c7365;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.08rem, 2.8vw, 1.25rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.product-section {
  padding-top: 54px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 18px;
}

.search-wrap,
.filter-wrap {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.catalog-toolbar input,
.catalog-toolbar select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--ink);
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: 3px solid rgba(47, 125, 76, 0.16);
  border-color: var(--green);
}

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

.checkout-form textarea {
  resize: vertical;
}

.full-field {
  grid-column: 1 / -1;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  background: var(--green);
  color: var(--surface);
  border-color: var(--green);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

/*
  Cart summary styles:
  This compact bar gives shoppers a visible place to open the cart without changing the catalog layout.
*/
.cart-summary-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.cart-open-button,
.mobile-cart-trigger {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.cart-open-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--surface);
  box-shadow: 0 10px 22px rgba(217, 133, 63, 0.18);
}

.cart-open-button strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.catalog-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.catalog-status.loading {
  border-color: #ead8a5;
  background: #fff7df;
  color: #74622e;
}

.catalog-status.success {
  border-color: rgba(47, 125, 76, 0.22);
  background: #edf7ee;
  color: var(--green-dark);
}

.catalog-status.error {
  border-color: #ecc4bb;
  background: #fff2ee;
  color: var(--red-muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card,
.info-grid article,
.why-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(45, 55, 40, 0.06);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-soft);
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 125, 76, 0.12), rgba(217, 133, 63, 0.14));
  color: var(--green-dark);
  text-align: center;
}

.product-image-placeholder span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface);
  font-size: 1.35rem;
  font-weight: 900;
}

.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-top {
  display: grid;
  gap: 10px;
}

.product-card h3 {
  margin-bottom: 5px;
}

.product-price {
  color: var(--green-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.product-description {
  color: var(--muted);
  margin-bottom: 0;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.available {
  background: #edf7ee;
  color: var(--green-dark);
}

.pill.not-available {
  background: #fff2ee;
  color: var(--red-muted);
}

.product-order,
.add-cart-button {
  width: 100%;
  min-height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  text-align: center;
}

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

.add-cart-button:disabled {
  background: #d7d0c3;
  color: #756f64;
  cursor: not-allowed;
}

.product-order {
  background: #edf7ee;
  color: var(--green-dark);
}

.product-actions {
  display: grid;
  gap: 8px;
}

/*
  Cart drawer styles:
  The drawer slides over the page, lists cart items, and keeps totals/actions fixed at the bottom.
*/
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(31, 36, 31, 0.34);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(440px, 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  box-shadow: -18px 0 45px rgba(31, 36, 31, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

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

body.cart-is-open {
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.cart-close-button,
.cart-remove-button,
.quantity-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.cart-close-button {
  align-self: start;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
}

.cart-items {
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.cart-item {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

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

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

.cart-thumbnail,
.cart-thumbnail-placeholder {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
  flex: 0 0 auto;
}

.cart-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cart-thumbnail-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 125, 76, 0.12), rgba(217, 133, 63, 0.14));
  color: var(--green-dark);
  font-weight: 900;
}

.cart-item-top,
.cart-totals p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-name {
  margin: 0;
  font-weight: 900;
  line-height: 1.25;
}

.cart-item-price,
.cart-line-total {
  color: var(--green-dark);
  font-weight: 900;
}

.cart-item-stock {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-addon-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  color: #536052;
  font-size: 0.85rem;
  font-weight: 800;
}

.cart-addon-list::before {
  content: "Add-ons:";
  color: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-addon-list li {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid rgba(21, 104, 62, 0.2);
  border-radius: 12px;
  background: rgba(239, 248, 240, 0.62);
}

.cart-addon-controls {
  display: inline-grid;
  grid-template-columns: 34px 28px 34px;
  align-items: center;
  min-width: 96px;
  overflow: visible;
  border: 1px solid rgba(21, 104, 62, 0.18);
  border-radius: 999px;
  background: #fffdf7;
}

.cart-addon-controls span {
  text-align: center;
  color: var(--green-dark);
  font-weight: 900;
}

.cart-addon-step {
  display: grid;
  place-items: center;
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 250, 241, 0.92);
}

.cart-addon-list strong {
  color: var(--green);
  white-space: nowrap;
}

.cart-line-total {
  white-space: nowrap;
}

.cart-quantity {
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 118px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
}

.quantity-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  background: var(--surface-soft);
}

.cart-quantity span {
  text-align: center;
  font-weight: 900;
}

.cart-addon-step {
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.cart-remove-button {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--red-muted);
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 250, 241, 0.86);
}

.cart-quantity-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.cart-item-bottom {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding-top: 2px;
}

.cart-edit-addons-button,
.cart-remove-button {
  justify-self: start;
}

.cart-edit-addons-button {
  width: fit-content;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
  border-color: rgba(21, 104, 62, 0.2);
  background: rgba(239, 248, 240, 0.7);
}

.cart-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #fffaf1;
}

.cart-totals {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.cart-totals p,
.cart-feedback {
  margin: 0;
}

.cart-feedback {
  min-height: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 12px;
}

.addon-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 35, 24, 0.46);
  backdrop-filter: blur(4px);
}

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

.addon-modal-card {
  width: min(620px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(217, 189, 132, 0.58);
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdf8, #fff7e8);
  box-shadow: var(--shadow-card);
}

.addon-modal-heading,
.addon-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.addon-options {
  display: grid;
  gap: 14px;
  margin: 22px 0 14px;
}

.addon-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "check copy price"
    "check copy stepper";
  gap: 8px 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(217, 189, 132, 0.42);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 24px rgba(45, 55, 40, 0.06);
}

.addon-option.is-selected {
  border-color: rgba(21, 104, 62, 0.36);
  background: linear-gradient(135deg, rgba(239, 248, 240, 0.92), rgba(255, 253, 248, 0.96));
}

.addon-check {
  grid-area: check;
  display: grid;
  place-items: center;
}

.addon-check input {
  position: absolute;
  opacity: 0;
}

.addon-check span {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(21, 104, 62, 0.38);
  border-radius: 8px;
  background: #fffaf1;
}

.addon-check input:checked + span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 5px #fffaf1;
}

.addon-option-copy {
  grid-area: copy;
}

.addon-option-copy strong {
  color: var(--green-dark);
}

.addon-option-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.addon-option b {
  grid-area: price;
  color: var(--green);
  font-size: 1rem;
  white-space: nowrap;
}

.addon-stepper {
  grid-area: stepper;
  justify-self: end;
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(21, 104, 62, 0.22);
  border-radius: 999px;
  background: #fffaf1;
}

.addon-stepper button {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 900;
}

.addon-stepper span {
  text-align: center;
  color: var(--green-dark);
  font-weight: 900;
}

.addon-selected-summary {
  margin: 8px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 104, 62, 0.12);
  border-radius: 14px;
  background: rgba(239, 248, 240, 0.72);
  color: var(--green-dark);
  font-weight: 900;
}

@media (max-width: 560px) {
  .addon-modal-card {
    padding: 20px;
    border-radius: 24px;
  }

  .addon-modal-heading,
  .addon-modal-actions {
    align-items: stretch;
  }

  .addon-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .addon-option {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "check copy"
      "check price"
      "check stepper";
  }

  .addon-option b,
  .addon-stepper {
    justify-self: start;
  }
}

.checkout-placeholder-section {
  padding-top: 28px;
}

.checkout-placeholder-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(45, 55, 40, 0.06);
}

.checkout-placeholder-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.checkout-form {
  margin-top: 18px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-form input[readonly] {
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf1;
}

.checkout-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-weight: 800;
}

.checkout-summary p:last-child {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.checkout-status {
  margin: 0;
  font-weight: 800;
  white-space: pre-line;
}

.checkout-status.success {
  color: var(--green-dark);
}

.checkout-status.error {
  color: var(--red-muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.catalog-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.info-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.info-grid article,
.why-grid article {
  padding: 20px;
}

.why-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer {
  padding: 34px 16px 96px;
  display: grid;
  gap: 6px;
  justify-items: center;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #d8f0dc;
  font-weight: 900;
}

.mobile-bottom-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(31, 36, 31, 0.1);
  border-radius: 18px;
  background: rgba(251, 247, 238, 0.96);
  box-shadow: var(--shadow);
}

.mobile-bottom-bar a,
.mobile-cart-trigger {
  min-height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: var(--surface);
  font-weight: 900;
}

.mobile-cart-trigger {
  padding: 6px;
  background: var(--orange);
}

/* Customer visual refresh: CSS-only polish using existing HTML and JavaScript hooks. */
.site-header {
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid rgba(220, 196, 156, 0.72);
  box-shadow: 0 10px 32px rgba(52, 63, 42, 0.07);
}

.nav {
  min-height: 82px;
}

.brand {
  gap: 14px;
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  filter: drop-shadow(0 8px 14px rgba(52, 63, 42, 0.1));
}

.brand strong {
  color: var(--green-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--green);
}

.nav-links {
  gap: 10px;
}

.nav-links a {
  border: 1px solid transparent;
  padding: 10px 14px;
  color: #3f463d;
}

.nav-links a:hover {
  border-color: rgba(216, 180, 111, 0.42);
  background: #fff4df;
  color: var(--green-dark);
}

.nav-links .nav-call {
  min-width: 96px;
  border-color: rgba(23, 107, 63, 0.18);
  background: linear-gradient(135deg, var(--green), #0d5a35);
  color: var(--surface);
  box-shadow: 0 12px 28px rgba(23, 107, 63, 0.22);
}

.hero {
  min-height: calc(100vh - 82px);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96) 0%, rgba(255, 250, 241, 0.88) 50%, rgba(255, 250, 241, 0.74) 100%),
    url("assets/eden-background.png");
}

h1,
h2 {
  color: var(--green-dark);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

h3 {
  color: #263027;
}

.hero-support {
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
}

.hero-copy,
.section-heading p:not(.eyebrow),
.product-description,
.faq-list p {
  color: #5f665a;
}

.hero-badges span,
.pill,
.tab-button,
.catalog-status,
.cart-empty {
  border-color: rgba(220, 196, 156, 0.78);
  background: rgba(255, 251, 244, 0.86);
}

.hero-visual,
.owner-card,
.checkout-placeholder-card,
.product-card,
.info-grid article,
.why-grid article,
.faq-list details {
  border-color: rgba(220, 196, 156, 0.74);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.owner-card {
  background: rgba(255, 251, 244, 0.96);
  box-shadow: var(--shadow);
}

.button,
.product-order,
.add-cart-button,
.cart-open-button,
.mobile-cart-trigger,
.mobile-bottom-bar a {
  border-radius: var(--radius-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button {
  min-height: 54px;
  padding: 14px 22px;
  letter-spacing: 0;
}

.button.primary,
.button.green,
.add-cart-button {
  background: linear-gradient(135deg, var(--green), #0b5b36);
  box-shadow: 0 14px 28px rgba(23, 107, 63, 0.22);
}

.button.secondary {
  border-color: rgba(23, 107, 63, 0.45);
  background: rgba(255, 251, 244, 0.78);
}

.button:hover,
.add-cart-button:hover,
.product-order:hover,
.cart-open-button:hover {
  transform: translateY(-1px);
}

.catalog-toolbar {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
  margin-bottom: 22px;
}

.catalog-toolbar input,
.catalog-toolbar select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border-color: rgba(220, 196, 156, 0.82);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.category-tabs {
  gap: 10px;
  padding-bottom: 16px;
}

.tab-button {
  min-height: 46px;
  padding: 10px 18px;
  color: var(--green-dark);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--green), #0b5b36);
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(23, 107, 63, 0.18);
}

.cart-open-button {
  background: linear-gradient(135deg, var(--green), #0b5b36);
  box-shadow: 0 14px 28px rgba(23, 107, 63, 0.22);
}

.catalog-grid {
  gap: 24px;
}

.product-card {
  gap: 13px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.96);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  border-color: rgba(216, 180, 111, 0.95);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-image-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

.popular-badge {
  background: rgba(255, 251, 244, 0.94);
  color: var(--green-dark);
  box-shadow: 0 8px 18px rgba(52, 63, 42, 0.1);
}

.product-top {
  gap: 8px;
  padding: 0 2px;
}

.product-card h3 {
  font-size: 1.2rem;
}

.product-price {
  color: var(--green);
  font-size: 1.72rem;
  line-height: 1;
}

.pill.available {
  background: var(--green-soft);
}

.pill.not-available {
  background: #fff1ea;
}

.product-actions {
  grid-template-columns: 1.15fr 1fr;
  gap: 9px;
}

.product-order,
.add-cart-button {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.product-order {
  border: 1px solid rgba(23, 107, 63, 0.18);
  background: var(--green-soft);
}

.checkout-placeholder-section {
  padding-top: 42px;
}

.checkout-placeholder-card {
  padding: 30px;
  background: rgba(255, 253, 248, 0.97);
}

.checkout-form {
  margin-top: 24px;
}

.form-grid {
  gap: 18px;
}

.checkout-summary {
  margin-top: 22px;
  padding: 18px;
  border-color: rgba(220, 196, 156, 0.78);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8ea, #fffdf8);
}

.checkout-summary p:last-child strong {
  color: var(--green);
  font-size: 1.2rem;
}

#checkoutSubmit {
  min-height: 58px;
  flex: 1 1 260px;
}

.cart-drawer {
  background: #fffdf8;
}

.cart-drawer-header,
.cart-footer {
  background: rgba(255, 248, 236, 0.92);
}

.cart-item {
  border-color: rgba(220, 196, 156, 0.7);
}

.mobile-bottom-bar {
  border-color: rgba(220, 196, 156, 0.74);
  background: rgba(255, 250, 241, 0.98);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .hero-visual {
    min-height: 300px;
  }

  .catalog-grid,
  .info-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .nav {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    width: 100%;
    padding: 42px 0 38px;
    gap: 34px;
  }

  .hero-content,
  .hero-visual {
    width: min(100% - 24px, 1120px);
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.1rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

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

  .catalog-toolbar,
  .catalog-grid,
  .info-grid,
  .form-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .catalog-meta {
    flex-direction: column;
  }

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

  .cart-summary-bar {
    position: sticky;
    top: 84px;
    z-index: 30;
    justify-content: stretch;
  }

  .cart-open-button {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .hero-visual {
    min-height: 240px;
  }

  .owner-card {
    width: min(88%, 300px);
  }

  .owner-photo {
    width: 170px;
    height: 170px;
  }

  .mobile-bottom-bar {
    display: grid;
  }

  .cart-drawer-header,
  .cart-items,
  .cart-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .cart-item-bottom {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .cart-item-main {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .cart-thumbnail,
  .cart-thumbnail-placeholder {
    width: 52px;
    height: 52px;
  }

}

/* Phase 1-6 visual direction layer: safer CSS-only redesign, no JS hooks changed. */
:root {
  --cream-bg: #fff8ed;
  --forest-green: #15683e;
  --dark-green: #0b3f2d;
  --leaf-green: #2f7d4c;
  --soft-beige: #f6ead7;
  --gold-border: #d9bd84;
  --card-bg: rgba(255, 253, 248, 0.96);
  --text-dark: #1d261f;
  --text-muted: #62695d;
  --shadow-soft: 0 16px 42px rgba(55, 60, 42, 0.08);
  --shadow-card: 0 24px 70px rgba(55, 60, 42, 0.12);
  --radius-card: 26px;
  --radius-pill: 999px;

  --bg: var(--cream-bg);
  --green: var(--forest-green);
  --green-dark: var(--dark-green);
  --surface: var(--card-bg);
  --surface-soft: var(--soft-beige);
  --ink: var(--text-dark);
  --muted: var(--text-muted);
  --line: rgba(217, 189, 132, 0.58);
  --line-strong: var(--gold-border);
  --shadow: var(--shadow-card);
}

body {
  background:
    radial-gradient(circle at 0 16%, rgba(47, 125, 76, 0.08), transparent 22rem),
    radial-gradient(circle at 100% 10%, rgba(217, 189, 132, 0.2), transparent 28rem),
    linear-gradient(180deg, #fffdf7 0%, var(--cream-bg) 42%, #fffaf1 100%);
  color: var(--text-dark);
}

.site-header {
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid rgba(217, 189, 132, 0.58);
  box-shadow: 0 10px 34px rgba(48, 45, 32, 0.08);
}

.nav {
  min-height: 86px;
  gap: 24px;
}

.brand-logo {
  width: 64px;
  height: 64px;
}

.brand strong {
  color: var(--dark-green);
  font-size: clamp(1.28rem, 2vw, 1.72rem);
}

.brand small {
  color: var(--forest-green);
  font-size: 0.96rem;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 9px 15px;
  color: #394238;
}

.nav-links a:hover {
  border-color: rgba(217, 189, 132, 0.6);
  background: rgba(246, 234, 215, 0.78);
}

.nav-links .nav-call {
  padding-inline: 20px;
  background: linear-gradient(135deg, var(--forest-green), #0b5534);
  color: white;
  box-shadow: 0 14px 30px rgba(21, 104, 62, 0.22);
}

.nav-links a i {
  margin-right: 7px;
  color: var(--forest-green);
  font-size: 0.92rem;
  line-height: 1;
}

.nav-links .nav-call i {
  color: currentColor;
  font-size: 1rem;
}

.hero {
  min-height: auto;
  padding-top: 86px;
  padding-bottom: 76px;
  gap: clamp(32px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 250, 241, 0.9) 52%, rgba(255, 250, 241, 0.78) 100%),
    url("assets/eden-background.png");
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: 7vw;
  top: 74px;
  background: rgba(21, 104, 62, 0.12);
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: 20px;
  background: rgba(217, 189, 132, 0.18);
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--forest-green);
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-location i {
  color: var(--forest-green);
  font-size: 0.95rem;
  line-height: 1;
}

h1 {
  max-width: 820px;
  color: var(--dark-green);
  text-shadow: 0 8px 24px rgba(11, 63, 45, 0.08);
}

h2 {
  color: var(--dark-green);
}

.hero-support {
  color: var(--leaf-green);
}

.hero-copy {
  max-width: 620px;
  font-size: 1.12rem;
}

.hero-badges {
  gap: 10px;
}

.hero-badges span {
  min-height: 42px;
  border-color: rgba(217, 189, 132, 0.72);
  padding: 9px 15px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 24px rgba(55, 60, 42, 0.06);
}

.hero-actions {
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
}

.button.primary,
.button.green {
  background: linear-gradient(135deg, var(--forest-green), #075231);
}

.button.secondary {
  border-color: rgba(21, 104, 62, 0.48);
  background: rgba(255, 253, 248, 0.84);
  color: var(--dark-green);
}

.button:hover,
.tab-button:hover,
.cart-open-button:hover,
.add-cart-button:hover,
.product-order:hover {
  box-shadow: 0 14px 34px rgba(55, 60, 42, 0.12);
}

.hero-info {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(217, 189, 132, 0.58);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.58), rgba(246, 234, 215, 0.3));
}

.owner-card {
  border-radius: 34px;
}

.section {
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
}

.catalog-toolbar {
  margin-bottom: 24px;
}

.catalog-toolbar input,
.catalog-toolbar select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  min-height: 56px;
  border-color: rgba(217, 189, 132, 0.64);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
}

.category-tabs {
  gap: 12px;
}

.tab-button {
  border-color: rgba(217, 189, 132, 0.68);
  padding-inline: 18px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--dark-green);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--forest-green), #075231);
}

.catalog-grid {
  gap: 26px;
}

.product-card {
  gap: 14px;
  padding: 14px;
  border-color: rgba(217, 189, 132, 0.64);
  border-radius: 26px;
  background: var(--card-bg);
}

.product-image-wrap {
  aspect-ratio: 16 / 11;
  border-radius: 22px;
}

.product-card h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
}

.product-description {
  min-height: 2.9em;
}

.product-price {
  color: var(--forest-green);
  font-size: 1.82rem;
}

.pill {
  border: 1px solid rgba(217, 189, 132, 0.4);
  background: rgba(246, 234, 215, 0.74);
  color: #596050;
}

.pill.available {
  border-color: rgba(21, 104, 62, 0.16);
  background: #e9f5eb;
  color: var(--dark-green);
}

.pill.not-available {
  border-color: rgba(182, 91, 79, 0.16);
}

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

.add-cart-button,
.product-order {
  border-radius: 16px;
}

.add-cart-button {
  background: linear-gradient(135deg, var(--forest-green), #075231);
}

.product-order {
  background: #eef8f0;
  color: var(--dark-green);
}

.checkout-placeholder-section {
  padding-top: 58px;
}

.checkout-placeholder-card {
  border-color: rgba(217, 189, 132, 0.64);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-soft);
}

.checkout-placeholder-card {
  padding: clamp(24px, 4vw, 38px);
}

.checkout-form label {
  color: #536052;
}

.checkout-form input[readonly] {
  border-color: rgba(21, 104, 62, 0.22);
  background: linear-gradient(135deg, #eff8f0, #fffdf8);
}

.checkout-summary {
  border-color: rgba(217, 189, 132, 0.7);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7e7, #fffdf8);
}

#checkoutSubmit {
  background: linear-gradient(135deg, var(--forest-green), #064f30);
  box-shadow: 0 16px 34px rgba(21, 104, 62, 0.22);
}

.checkout-confirmation-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(217, 189, 132, 0.55);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.88), rgba(239, 248, 240, 0.72));
  color: var(--dark-green);
}

.checkout-confirmation-note i {
  grid-row: span 2;
  margin-top: 3px;
  color: var(--forest-green);
  font-size: 1.1rem;
}

.checkout-confirmation-note p {
  margin: 0;
  color: #536052;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-confirmation-note p:first-of-type {
  color: var(--dark-green);
}

.checkout-delivery-note {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-delivery-note.is-warning {
  color: var(--red-muted);
}

.cart-drawer {
  border-left: 1px solid rgba(217, 189, 132, 0.5);
}

.cart-drawer-header,
.cart-footer {
  border-color: rgba(217, 189, 132, 0.62);
}

.cart-open-button,
.mobile-bottom-bar a,
.mobile-cart-trigger {
  background: linear-gradient(135deg, var(--forest-green), #075231);
}

/* Hero utility showcase: replaces the old pill badges with action, trust, category, and info blocks. */
.hero-actions-showcase {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.store-status-pill {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 189, 132, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, 0.72);
  color: var(--text-muted);
  box-shadow: 0 10px 24px rgba(55, 60, 42, 0.06);
}

.store-status-pill strong {
  color: var(--dark-green);
}

.store-status-pill .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--forest-green);
  box-shadow: 0 0 0 4px rgba(21, 104, 62, 0.12);
}

.store-status-pill.is-closed strong {
  color: #9a4c35;
}

.store-status-pill.is-closed .status-dot {
  background: #c46b45;
  box-shadow: 0 0 0 4px rgba(196, 107, 69, 0.14);
}

.store-closed-notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 107, 69, 0.22);
  border-radius: 18px;
  background: rgba(255, 244, 235, 0.82);
  color: #6b4d3f;
}

.store-closed-notice[hidden] {
  display: none;
}

.store-closed-notice strong {
  color: #9a4c35;
}

.hero-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.button.soft {
  border: 1px solid rgba(217, 189, 132, 0.72);
  background: rgba(255, 253, 248, 0.88);
  color: var(--dark-green);
}

.hero-primary-actions .button {
  min-height: 58px;
  padding-inline: 20px;
  box-shadow: 0 16px 34px rgba(55, 60, 42, 0.08);
}

.hero-primary-actions .button i {
  width: 19px;
  height: 19px;
  margin-right: 9px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

.hero-trust-features,
.hero-quick-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-trust-features article,
.hero-quick-info article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-trust-features {
  padding: 16px 18px;
  border: 1px solid rgba(217, 189, 132, 0.58);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-trust-features strong,
.hero-quick-info strong {
  display: block;
  color: var(--dark-green);
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-trust-features small,
.hero-quick-info small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.feature-icon,
.category-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(21, 104, 62, 0.1);
  border: 1px solid rgba(21, 104, 62, 0.16);
}

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

.feature-icon::before,
.category-icon::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid var(--forest-green);
}

.feature-icon.delivery::before {
  width: 20px;
  height: 12px;
  border-radius: 9px 9px 5px 5px;
  border-top-width: 3px;
  box-shadow: -7px 10px 0 -4px var(--forest-green), 7px 10px 0 -4px var(--forest-green);
}

.feature-icon.budget::before {
  width: 18px;
  height: 13px;
  border-radius: 4px;
  transform: rotate(-12deg);
}

.feature-icon.trusted::before {
  width: 16px;
  height: 18px;
  border-radius: 10px 10px 12px 12px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.feature-icon.care::before {
  width: 16px;
  height: 16px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  border-radius: 0 0 5px 0;
}

.feature-icon.clock::before {
  border-radius: 999px;
  box-shadow: inset -5px -1px 0 -4px var(--forest-green);
}

.feature-icon.message::before {
  width: 18px;
  height: 13px;
  border-radius: 6px;
  box-shadow: -4px 8px 0 -6px var(--forest-green);
}

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

.hero-category-card {
  position: relative;
  display: grid;
  min-height: 184px;
  overflow: hidden;
  border: 1px solid rgba(217, 189, 132, 0.65);
  border-radius: 24px;
  background: var(--card-bg);
  color: var(--dark-green);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 104, 62, 0.28);
  box-shadow: 0 24px 46px rgba(55, 60, 42, 0.13);
}

.category-thumb {
  display: block;
  min-height: 94px;
  background:
    linear-gradient(180deg, rgba(11, 63, 45, 0.02), rgba(11, 63, 45, 0.16)),
    var(--soft-beige);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.category-thumb.silog {
  background-image:
    linear-gradient(180deg, rgba(11, 63, 45, 0.02), rgba(11, 63, 45, 0.18)),
    url("images/categories/silog-meals.png");
}

.category-thumb.milk-tea {
  background-image:
    linear-gradient(180deg, rgba(11, 63, 45, 0.02), rgba(11, 63, 45, 0.16)),
    url("images/categories/milk-tea.png");
}

.category-thumb.frozen {
  background-image:
    linear-gradient(180deg, rgba(11, 63, 45, 0.02), rgba(11, 63, 45, 0.16)),
    url("images/categories/frozen-foods.png");
}

.category-thumb.essentials {
  background-image:
    linear-gradient(180deg, rgba(11, 63, 45, 0.02), rgba(11, 63, 45, 0.16)),
    url("images/categories/everyday-essentials.png");
}

.hero-category-card .category-icon {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 18px;
  background: var(--forest-green);
  border: 3px solid var(--card-bg);
  box-shadow: 0 10px 22px rgba(21, 104, 62, 0.2);
}

.category-icon::before {
  width: 18px;
  height: 18px;
  border-color: white;
}

.category-icon.meal::before {
  height: 13px;
  border-radius: 2px 2px 9px 9px;
  border-top-width: 0;
}

.category-icon.drink::before {
  width: 13px;
  height: 19px;
  border-radius: 3px 3px 7px 7px;
}

.category-icon.frozen-icon::before {
  width: 18px;
  height: 18px;
  border-width: 2px 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.category-icon.basket::before {
  width: 19px;
  height: 13px;
  border-radius: 4px 4px 8px 8px;
}

.hero-category-card strong {
  margin: 12px 42px 3px 18px;
  font-size: 1.02rem;
  line-height: 1.18;
}

.hero-category-card small {
  margin: 0 42px 18px 18px;
  color: var(--text-muted);
  line-height: 1.35;
}

.category-arrow {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 189, 132, 0.74);
  border-radius: 999px;
  color: var(--forest-green);
  font-size: 1.45rem;
  line-height: 1;
}

.hero-quick-info {
  padding: 18px 22px;
  border: 1px solid rgba(217, 189, 132, 0.55);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(246, 234, 215, 0.55));
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .nav {
    min-height: 78px;
  }

  .nav-links {
    top: 78px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-primary-actions,
  .hero-category-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-trust-features,
  .hero-quick-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero-actions-showcase {
    gap: 14px;
  }

  .hero-primary-actions,
  .hero-category-showcase,
  .hero-trust-features,
  .hero-quick-info {
    grid-template-columns: 1fr;
  }

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

  .hero-trust-features,
  .hero-quick-info {
    padding: 15px;
  }

  .hero-category-card {
    min-height: 158px;
  }

  .category-thumb {
    min-height: 82px;
  }

  .product-card {
    padding: 12px;
  }

  .product-actions {
    gap: 10px;
  }

  .checkout-placeholder-card {
    border-radius: 22px;
  }
}

/* Hero layout fix: keep the main hero two-column, then let category and info rows span full width. */
.hero {
  width: 100%;
  max-width: none;
  display: block;
  padding: 72px max(20px, calc((100vw - 1280px) / 2)) 52px;
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

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

.hero-actions-showcase {
  margin-top: 30px;
  gap: 16px;
}

.hero-primary-actions {
  max-width: 680px;
}

.hero-trust-features {
  max-width: 760px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 16px;
}

.hero-trust-features article {
  gap: 10px;
}

.hero-trust-features .feature-icon {
  width: 34px;
  height: 34px;
}

.hero-visual {
  min-height: 430px;
  align-self: center;
}

.hero-category-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-category-card {
  min-height: 206px;
  border-radius: 20px;
}

.category-thumb {
  min-height: 112px;
}

.hero-category-card strong {
  font-size: 1.08rem;
}

.hero-quick-info {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 28px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1020px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
  }

  .hero-trust-features,
  .hero-category-showcase,
  .hero-quick-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 12px 36px;
  }

  .hero-content,
  .hero-visual {
    width: 100%;
  }

  .hero-primary-actions,
  .hero-trust-features,
  .hero-category-showcase,
  .hero-quick-info {
    grid-template-columns: 1fr;
  }

  .hero-category-showcase {
    margin-top: 22px;
  }

  .hero-category-card {
    min-height: 166px;
  }

  .category-thumb {
    min-height: 86px;
  }

  .hero-quick-info {
    margin-top: 18px;
  }
}

/* Consistent hero icons: Font Awesome icons replace the old thin SVG sprite. */
.feature-icon,
.category-icon,
.hero-category-card .category-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(21, 104, 62, 0.14);
  border-radius: 999px;
  background: rgba(21, 104, 62, 0.1);
  color: var(--forest-green);
}

.feature-icon::before,
.category-icon::before,
.feature-icon.delivery::before,
.feature-icon.budget::before,
.feature-icon.trusted::before,
.feature-icon.care::before,
.feature-icon.clock::before,
.feature-icon.message::before,
.category-icon.meal::before,
.category-icon.drink::before,
.category-icon.frozen-icon::before,
.category-icon.basket::before {
  content: none;
}

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

.hero-category-card .category-icon {
  width: 46px;
  height: 46px;
  background: #eaf4ec;
  border: 3px solid var(--card-bg);
  box-shadow: 0 10px 22px rgba(21, 104, 62, 0.16);
}

.feature-icon i,
.category-icon i {
  display: block;
  color: currentColor;
  font-size: 1.25rem;
  line-height: 1;
}

.hero-category-card .category-icon i {
  font-size: 1.4rem;
}

/* Homepage feature rows: compact soft icon badges beside clear trust text. */
.hero-trust-features,
.hero-quick-info {
  gap: 0;
}

.hero-trust-features article,
.hero-quick-info article {
  position: relative;
  gap: 13px;
  padding: 0 18px;
}

.hero-trust-features article:first-child,
.hero-quick-info article:first-child {
  padding-left: 0;
}

.hero-trust-features article:last-child,
.hero-quick-info article:last-child {
  padding-right: 0;
}

.hero-trust-features article + article,
.hero-quick-info article + article {
  border-left: 1px solid rgba(217, 189, 132, 0.58);
}

.hero-trust-features .feature-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(21, 104, 62, 0.12);
  border-radius: 999px;
  background: rgba(232, 245, 235, 0.78);
  box-shadow: 0 8px 18px rgba(21, 104, 62, 0.06);
  color: var(--forest-green);
}

.hero-quick-info .feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(21, 104, 62, 0.12);
  border-radius: 999px;
  background: rgba(232, 245, 235, 0.78);
  box-shadow: 0 8px 18px rgba(21, 104, 62, 0.06);
  color: var(--forest-green);
}

.hero-trust-features .feature-icon i {
  font-size: 1.42rem;
}

.hero-quick-info .feature-icon i {
  font-size: 1.32rem;
}

.hero-trust-features strong,
.hero-quick-info strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.hero-trust-features small,
.hero-quick-info small {
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero-trust-features,
  .hero-quick-info {
    gap: 14px 0;
  }

  .hero-trust-features article:nth-child(odd),
  .hero-quick-info article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .hero-trust-features,
  .hero-quick-info {
    gap: 14px;
  }

  .hero-trust-features article,
  .hero-quick-info article,
  .hero-trust-features article:first-child,
  .hero-quick-info article:first-child,
  .hero-trust-features article:last-child,
  .hero-quick-info article:last-child {
    padding: 0;
    border-left: 0;
  }
}

/* Softer feature rows: lighter containers with very subtle separators. */
.hero-trust-features,
.hero-quick-info {
  border-color: rgba(210, 180, 130, 0.12);
  background: rgba(255, 250, 240, 0.16);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-quick-info {
  background: rgba(255, 250, 240, 0.18);
}

.hero-trust-features article + article,
.hero-quick-info article + article {
  border-left-color: rgba(210, 180, 130, 0.16);
}

/* Hero icon size tuning: keeps the icons visible without changing the layout. */
.hero-primary-actions .button i {
  width: 20px;
  height: 20px;
  font-size: 1.05rem;
}

.hero-trust-features .feature-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.hero-quick-info .feature-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.hero-trust-features .feature-icon i {
  font-size: 1.42rem;
}

.hero-quick-info .feature-icon i {
  font-size: 1.32rem;
}

.hero-category-card .category-icon {
  width: 54px;
  height: 54px;
  margin-top: -27px;
}

.hero-category-card .category-icon i {
  font-size: 1.85rem;
}

.hero-category-card .bubble-tea-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile sticky actions: compact Font Awesome icons above each label. */
.mobile-bottom-bar a,
.mobile-cart-trigger {
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px;
  padding: 6px 4px;
  line-height: 1.05;
  text-align: center;
}

.mobile-bottom-bar i,
.mobile-cart-trigger i {
  color: currentColor;
  font-size: 1.05rem;
  line-height: 1;
}

.mobile-bottom-bar a span,
.mobile-cart-trigger > span:not(.cart-count) {
  font-size: 0.78rem;
}

.mobile-cart-trigger {
  position: relative;
}

.mobile-cart-trigger .cart-count {
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--forest-green);
  font-size: 0.72rem;
  line-height: 1;
}

/* Checkout view patch: keep checkout hidden until Proceed to Checkout is clicked. */
.checkout-placeholder-section[hidden] {
  display: none;
}

.track-order-section[hidden] {
  display: none;
}

body.checkout-view-active main > section:not(#checkout-placeholder),
body.track-view-active main > section:not(#trackOrderView) {
  display: none;
}

body.checkout-view-active .footer,
body.track-view-active .footer {
  display: none;
}

body.checkout-view-active #checkout-placeholder,
body.track-view-active #trackOrderView {
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 64px);
}

.checkout-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(217, 189, 132, 0.55);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 240, 0.86);
  color: var(--dark-green);
  font-weight: 800;
  cursor: pointer;
}

.checkout-back-button:hover {
  background: rgba(239, 248, 240, 0.94);
}

.checkout-order-summary {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(217, 189, 132, 0.58);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.86);
}

.track-order-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(217, 189, 132, 0.64);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-soft);
}

.track-order-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.track-order-form label {
  display: grid;
  gap: 7px;
  color: #536052;
  font-weight: 800;
}

.track-order-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 189, 132, 0.65);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
}

.track-order-form input:focus {
  outline: 2px solid rgba(21, 104, 62, 0.16);
  border-color: var(--forest-green, var(--green));
}

.track-order-result {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(217, 189, 132, 0.58);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.72);
}

.tracked-order-heading,
.tracked-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tracked-order-heading span,
.tracked-order-grid span,
.tracked-order-block span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tracked-order-heading strong {
  color: var(--dark-green);
  font-size: 1.15rem;
}

.tracked-status {
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--forest-green, var(--green)) !important;
}

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

.tracked-order-grid p,
.tracked-order-block {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(217, 189, 132, 0.45);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.86);
}

.tracked-order-grid strong,
.tracked-order-block pre,
.tracked-order-block p {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.track-cancel-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.button.warning {
  border: 1px solid rgba(216, 137, 61, 0.35);
  background: #fff4de;
  color: #7a4a0d;
}

.button.warning:hover {
  background: #f6dfb7;
}

.checkout-summary-heading,
.checkout-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-summary-heading {
  color: var(--dark-green);
  font-weight: 900;
}

.checkout-summary-heading span {
  color: var(--text-muted, var(--muted));
  font-size: 0.9rem;
}

.checkout-order-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.checkout-order-item {
  padding-top: 10px;
  border-top: 1px solid rgba(217, 189, 132, 0.35);
}

.checkout-order-item strong,
.checkout-order-item span {
  display: block;
}

.checkout-order-item strong {
  color: var(--ink);
  line-height: 1.25;
}

.checkout-order-item span,
.checkout-order-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-order-item b {
  color: var(--forest-green, var(--green));
  white-space: nowrap;
}

.checkout-delivery-note {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(217, 189, 132, 0.35);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.65);
}

.checkout-delivery-note.is-warning {
  border-color: rgba(182, 91, 79, 0.35);
  background: rgba(255, 244, 232, 0.95);
}

/* Header cart button: mirrors the Call pill and reuses the existing cart count. */
.nav-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--forest-green, var(--green)), #0d5a35);
  color: var(--card-bg, var(--surface));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(21, 104, 62, 0.18);
}

.nav-track-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.nav-track-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-cart-button i {
  font-size: 1rem;
}

.nav-cart-button .cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--forest-green, var(--green));
  font-size: 0.82rem;
  line-height: 1;
}

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

@media (max-width: 760px) {
  .nav-cart-button {
    width: 100%;
    justify-content: center;
  }

  .nav-track-button {
    width: 100%;
    justify-content: center;
  }

  .checkout-order-item {
    align-items: flex-start;
  }

  .tracked-order-heading,
  .tracked-order-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracked-order-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium add-on polish: cart remains editable, checkout is read-only. */
.cart-addon-list {
  gap: 8px;
  margin-top: 12px;
}

.cart-addon-list li {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "name controls total"
    "unit controls total";
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 104, 62, 0.1);
  border-left: 3px solid rgba(21, 104, 62, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 248, 240, 0.86), rgba(255, 250, 241, 0.92));
}

.cart-addon-name {
  grid-area: name;
  min-width: 0;
  color: var(--green-dark);
  font-weight: 900;
  line-height: 1.25;
}

.cart-addon-unit-price {
  grid-area: unit;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cart-addon-controls {
  grid-area: controls;
  grid-template-columns: 32px 30px 32px;
  min-width: 94px;
  min-height: 34px;
  padding: 2px;
  border: 1px solid rgba(21, 104, 62, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cart-addon-step {
  min-width: 30px;
  width: 30px;
  min-height: 30px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
}

.cart-addon-step:hover,
.cart-addon-step:focus-visible,
.addon-stepper button:hover,
.addon-stepper button:focus-visible {
  background: rgba(21, 104, 62, 0.1);
  outline: none;
}

.cart-addon-list strong {
  grid-area: total;
  align-self: center;
  color: var(--green-dark);
  font-weight: 900;
}

.addon-stepper {
  grid-template-columns: 34px 40px 34px;
  min-height: 38px;
  padding: 2px;
  overflow: visible;
  border-color: rgba(21, 104, 62, 0.2);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.addon-stepper button {
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 1rem;
}

.addon-stepper span {
  min-width: 36px;
}

.checkout-order-item {
  align-items: flex-start;
}

.checkout-order-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.checkout-order-title {
  color: var(--ink);
  line-height: 1.25;
}

.checkout-order-base {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-addon-summary {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(21, 104, 62, 0.1);
  border-radius: 14px;
  background: rgba(239, 248, 240, 0.55);
}

.checkout-addon-label {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-addon-list {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkout-addon-row strong,
.checkout-item-total {
  color: var(--forest-green, var(--green));
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cart-addon-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name total"
      "unit total"
      "controls controls";
  }

  .cart-addon-controls {
    justify-self: start;
    margin-top: 4px;
  }

  .checkout-order-item {
    display: grid;
    gap: 8px;
  }

  .checkout-item-total {
    justify-self: start;
  }
}

/* Cart meal quantity polish: match the softer add-on stepper style. */
.cart-item .cart-quantity {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  min-width: 112px;
  min-height: 38px;
  padding: 2px;
  overflow: visible;
  border: 1px solid rgba(21, 104, 62, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cart-item .cart-quantity .quantity-button {
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.cart-item .cart-quantity .quantity-button:hover,
.cart-item .cart-quantity .quantity-button:focus-visible {
  background: rgba(21, 104, 62, 0.1);
  outline: none;
}

.cart-item .cart-quantity span {
  min-width: 34px;
  color: var(--green-dark);
  text-align: center;
  font-weight: 900;
}

/* Mobile cart drawer recovery: selected items and add-ons stack like a clean order card. */
@media (max-width: 640px) {
  .cart-drawer {
    width: 100%;
  }

  .cart-items {
    padding: 14px 14px;
  }

  .cart-item {
    gap: 10px;
    padding: 14px 0;
  }

  .cart-item-top {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .cart-item-main {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
  }

  .cart-item-main > div {
    min-width: 0;
  }

  .cart-thumbnail,
  .cart-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .cart-item-name {
    font-size: 0.98rem;
  }

  .cart-item-price,
  .cart-item-stock {
    font-size: 0.82rem;
  }

  .cart-line-total {
    justify-self: start;
    width: fit-content;
    margin-left: 70px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(239, 248, 240, 0.72);
    color: var(--green-dark);
    font-size: 0.92rem;
  }

  .cart-addon-list {
    width: 100%;
    margin-top: 10px;
  }

  .cart-addon-list li {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name total"
      "unit total"
      "controls controls";
    gap: 5px 8px;
    padding: 10px;
    box-sizing: border-box;
  }

  .cart-addon-name {
    overflow-wrap: anywhere;
  }

  .cart-addon-controls {
    justify-self: start;
    margin-top: 5px;
  }

  .cart-addon-list strong {
    align-self: start;
    font-size: 0.9rem;
  }

  .cart-item-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding-top: 4px;
  }

  .cart-quantity-label {
    flex: 1 0 100%;
    margin-bottom: -2px;
  }

  .cart-item .cart-quantity {
    min-width: 112px;
  }

  .cart-edit-addons-button,
  .cart-remove-button {
    width: auto;
    min-height: 32px;
    padding: 6px 12px;
  }
}

@media (max-width: 380px) {
  .cart-item-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-item .cart-quantity,
  .cart-edit-addons-button,
  .cart-remove-button {
    justify-self: start;
  }

  .cart-line-total {
    margin-left: 0;
  }
}

/* Checkout payment method cards */
.payment-method-section {
  display: grid;
  gap: 12px;
}

.payment-section-label {
  color: #536052;
  font-weight: 900;
}

.payment-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-option-card {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  min-height: 0;
  padding: 15px;
  border: 1px solid rgba(217, 189, 132, 0.68);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 30px rgba(74, 47, 24, 0.06);
  cursor: pointer;
}

.payment-option-card:has(input:checked) {
  border-color: rgba(21, 104, 62, 0.42);
  background: linear-gradient(135deg, rgba(232, 246, 235, 0.95), rgba(255, 253, 248, 0.98));
}

.payment-option-card input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest-green, var(--green));
}

.payment-option-card strong {
  display: block;
  color: var(--dark-green, var(--green-dark));
  font-weight: 900;
}

.payment-option-card small,
.payment-helper {
  color: var(--text-muted, var(--muted));
  font-weight: 700;
  line-height: 1.45;
}

.payment-detail-panel {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(217, 189, 132, 0.5);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.72);
}

.payment-detail-panel.is-hidden,
.payment-proof-preview.is-hidden {
  display: none;
}

.payment-option-card.is-hidden {
  display: none !important;
}

.payment-detail-panel > strong {
  color: var(--dark-green, var(--green-dark));
  font-weight: 900;
}

.payment-detail-panel p {
  margin: 0;
  color: var(--ink, #243024);
  font-weight: 800;
}

.payment-warning {
  padding: 12px;
  border: 1px solid rgba(217, 189, 132, 0.62);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--green-dark, #0f4d2f) !important;
  font-size: 0.92rem;
}

.payment-upload-field {
  display: grid;
  gap: 7px;
}

.payment-proof-preview {
  width: min(220px, 100%);
  overflow: hidden;
  border: 1px solid rgba(217, 189, 132, 0.65);
  border-radius: 16px;
  background: #fffdf8;
}

.payment-proof-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.payment-change-message {
  min-height: 1.4em;
  color: var(--text-muted, var(--muted));
  font-weight: 900;
}

.payment-change-message.success {
  color: var(--forest-green, var(--green));
}

.payment-change-message.error {
  color: var(--red-muted, #b65d4f);
}

@media (max-width: 720px) {
  .payment-method-options {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------
   Order Confirmation Card
--------------------------------------------- */

.order-confirm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--green-soft, #eaf5ed);
  border: 2px solid var(--green, #176b3f);
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin: 4px 0 20px;
}

.order-confirm-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green-dark, #0e422f);
}

.order-confirm-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6b6f61);
}

.order-confirm-id-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--line, #ead8bd);
  border-radius: 12px;
  padding: 12px 14px;
}

.order-confirm-id {
  flex: 1;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark, #0e422f);
  word-break: break-all;
  line-height: 1.4;
  user-select: all;
}

.order-confirm-copy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--green, #176b3f);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 40px;
  touch-action: manipulation;
}

.order-confirm-copy-btn:hover {
  opacity: 0.88;
}

.order-confirm-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #6b6f61);
  line-height: 1.5;
}

.order-confirm-track-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--green-dark, #0e422f);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  min-height: 50px;
  touch-action: manipulation;
  text-align: center;
}

.order-confirm-track-btn:hover {
  opacity: 0.9;
}

/* =========================================================
   Mobile UI/UX Polish Sprint
   Messenger integration + header/card/button/bottom-nav polish.
   Reuses existing --green / --green-dark / --green-soft / --cream /
   --orange / --line / --shadow tokens only — no new colors added.
========================================================= */

html,
body {
  overflow-x: hidden;
}

/* ---- Messenger buttons (header, hero, footer, product cards) share one look ---- */
.nav-messenger.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--green), #0b5b36);
  color: var(--surface);
  box-shadow: 0 12px 26px rgba(23, 107, 63, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-messenger.messenger-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(23, 107, 63, 0.28);
}

.nav-messenger.messenger-link i {
  color: currentColor;
  font-size: 1.05rem;
}

.button.soft.messenger-link {
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.button.soft.messenger-link:hover {
  background: var(--green);
  color: var(--surface);
}

.footer-messenger {
  margin-top: 4px;
}

.footer-messenger .messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--surface);
  font-weight: 800;
}

.footer-messenger .messenger-link:hover {
  background: var(--green-dark);
}

/* ---- Header: taller, more premium spacing, still responsive ---- */
.nav {
  min-height: 84px;
}

.brand-logo {
  border-radius: 16px;
}

.nav-links {
  gap: 8px;
}

.nav-links a,
.nav-links button {
  min-height: 44px;
}

/* ---- Product cards: larger image, spacing, price emphasis, cleaner button ---- */
.product-card {
  padding: 16px;
  gap: 16px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  border-radius: 18px;
}

.product-price {
  font-size: 1.7rem;
  color: var(--green-dark);
}

.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-order.messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.product-order.messenger-link:hover {
  background: var(--green);
  color: var(--surface);
}

.product-order.messenger-link i {
  font-size: 1rem;
}

/* ---- Sticky bottom navigation: Messenger / Products / Cart / Menu ---- */
.mobile-bottom-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(220, 196, 156, 0.55);
  background: rgba(255, 250, 241, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 30px rgba(52, 63, 42, 0.14), 0 16px 40px rgba(52, 63, 42, 0.12);
}

/*
  Specificity note: legacy selectors elsewhere in this file (.mobile-bottom-bar a,
  .mobile-cart-trigger, etc.) still match these elements and outrank a bare
  .bottom-nav-item rule for <a>-tag items. Scoping every rule under
  .mobile-bottom-bar keeps these declarations winning regardless of tag type.
*/
.mobile-bottom-bar .bottom-nav-item {
  min-height: 54px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mobile-bottom-bar .bottom-nav-item:active {
  transform: scale(0.93);
}

.mobile-bottom-bar .bottom-nav-item.is-active,
.mobile-bottom-bar .bottom-nav-item:focus-visible {
  background: var(--green-soft);
  color: var(--green-dark);
}

.mobile-bottom-bar .bottom-nav-item i {
  font-size: 1.15rem;
  line-height: 1;
}

.mobile-bottom-bar .bottom-nav-item span {
  font-size: 0.72rem;
}

.mobile-bottom-bar .bottom-nav-item.messenger-link {
  background: linear-gradient(135deg, var(--green), #0b5b36);
  color: var(--surface);
}

.mobile-bottom-bar .bottom-nav-item.messenger-link:hover,
.mobile-bottom-bar .bottom-nav-item.messenger-link:active {
  color: var(--surface);
}

.bottom-nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

/* .mobile-cart-trigger .cart-count is scoped this deep to outrank the legacy
   .mobile-cart-trigger .cart-count badge rule defined earlier in this file. */
.mobile-bottom-bar .mobile-cart-trigger .bottom-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--surface);
  font-size: 0.66rem;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(255, 250, 241, 0.98);
}

/* ---- Mobile-only spacing, touch targets, and overflow polish ---- */
@media (max-width: 640px) {
  .mobile-bottom-bar {
    display: grid;
  }

  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .section {
    padding: 44px 0;
  }

  .catalog-grid {
    gap: 16px;
  }

  .product-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .button,
  .add-cart-button,
  .product-order,
  .cart-open-button,
  .tab-button,
  .nav-cart-button,
  .nav-track-button {
    min-height: 44px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .catalog-toolbar {
    gap: 10px;
  }
}
