:root {
  --cream: #fffdf7;
  --paper: #fffefa;
  --sand: #f1ecdf;
  --olive: #5a632c;
  --olive-dark: #303716;
  --ink: #25251f;
  --muted: #706d62;
  --line: #dedccc;
  --clay: #a95e36;
  --page: #f5f6f1;
  --shadow: 0 16px 42px rgba(47, 50, 31, .10);
  --shadow-soft: 0 7px 20px rgba(47, 50, 31, .07);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .26;
  background-image: linear-gradient(90deg, rgba(55, 58, 38, .045) 1px, transparent 1px), linear-gradient(0deg, rgba(55, 58, 38, .04) 1px, transparent 1px);
  background-size: 32px 32px;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 8px clamp(16px, 4vw, 54px);
  background: rgba(255, 253, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: .86rem; font-weight: 900; letter-spacing: .1em; }
.brand-seal { display: grid; place-items: center; width: 34px; height: 34px; color: var(--cream); background: var(--olive-dark); border-radius: 8px; font-size: .7rem; letter-spacing: 0; }
.top-nav { display: flex; justify-content: center; gap: clamp(14px, 2.5vw, 28px); color: var(--olive-dark); font-size: .76rem; font-weight: 800; }
.top-nav a { opacity: .72; transition: opacity .16s ease; }
.top-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.account-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; color: var(--olive-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: .74rem; font-weight: 900; }
.account-button:hover { background: var(--sand); }
.person-icon { position: relative; display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50% 50% 42% 42%; }
.person-icon::before { position: absolute; top: 2px; left: 4px; width: 4px; height: 4px; content: ""; background: currentColor; border-radius: 50%; }
.person-icon::after { position: absolute; right: 2px; bottom: 2px; left: 2px; height: 4px; content: ""; background: currentColor; border-radius: 5px 5px 2px 2px; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 11px; color: var(--cream); background: var(--olive-dark); border: 0; border-radius: 8px; font-size: .78rem; font-weight: 900; }
.cart-button:hover, .primary-link:hover, .checkout-button:hover, .add-button:hover { background: var(--olive); }
.bag-icon { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-8deg); }
.cart-button strong { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; color: var(--olive-dark); background: var(--cream); border-radius: 999px; font-size: .7rem; }
.cart-button.bump { animation: cart-bump .42s ease; }
.cart-button.bump strong { animation: count-pop .42s ease; }
.add-button.added { color: var(--olive-dark); background: #dce3c4; }

@keyframes cart-bump {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
}
@keyframes count-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.22); }
}

.hero { width: min(1280px, 100%); display: grid; grid-template-columns: minmax(0, .78fr) minmax(430px, 1.22fr); align-items: center; gap: clamp(28px, 5vw, 64px); margin: 0 auto; padding: clamp(28px, 4vw, 46px) clamp(18px, 4vw, 54px); }
.hero-copy { max-width: 560px; }
.eyebrow { margin: 0 0 8px; color: var(--olive); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, .cart-header h2 { margin: 0; color: var(--ink); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
h1 { font-size: clamp(3.1rem, 5.5vw, 4.9rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); }
.hero-copy > p:not(.eyebrow) { max-width: 510px; margin: 18px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.primary-link, .secondary-link, .mode-button, .filter, .add-button, .checkout-button, .clear-button, .icon-button { min-height: 40px; border-radius: 8px; font-weight: 900; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; padding: 0 15px; font-size: .8rem; }
.primary-link, .checkout-button, .add-button { color: var(--cream); background: var(--olive-dark); border: 0; }
.secondary-link { color: var(--olive-dark); background: var(--paper); border: 1px solid var(--line); }
.secondary-link:hover, .clear-button:hover, .filter:hover { background: var(--sand); }

.hero-photos { display: grid; grid-template-columns: 1.2fr .8fr; grid-auto-rows: 112px; gap: 8px; padding: 8px; background: rgba(255, 253, 247, .8); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(47, 50, 31, .08); border-radius: 7px; }
.hero-photos .photo-main { grid-row: span 2; }

.mode-panel, .about-section, .profile-section, .catalog-section { padding: 30px clamp(18px, 4vw, 54px); }
.mode-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; width: min(1180px, calc(100% - 36px)); margin: 0 auto 8px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.mode-panel p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.mode-control { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 246px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.mode-button { padding: 0 14px; color: var(--olive-dark); background: transparent; border: 0; font-size: .78rem; }
.mode-button.active { color: var(--cream); background: var(--olive); }

.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.info-strip article { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 17px clamp(18px, 3.5vw, 52px); background: rgba(255, 253, 247, .82); }
.info-strip strong { font-size: .82rem; }
.info-strip p { grid-column: 2; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.doodle { grid-row: span 2; width: 28px; height: 28px; border: 2px solid var(--olive); border-radius: 8px; }
.doodle.leaf { border-radius: 80% 8px; transform: rotate(-22deg); }
.doodle.bag::before { position: absolute; width: 12px; height: 8px; margin: -10px 0 0 6px; content: ""; border: 2px solid var(--olive); border-bottom: 0; border-radius: 10px 10px 0 0; }

.about-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 360px); align-items: center; gap: 50px; width: min(1180px, 100%); margin: 0 auto; }
.about-copy p:not(.eyebrow) { max-width: 680px; margin: 12px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.62; }
.about-note { display: grid; gap: 11px; padding: 24px; background: linear-gradient(135deg, rgba(255, 253, 247, .94), rgba(241, 236, 223, .9)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-note span { color: var(--olive); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.about-note strong { font-size: 2.45rem; line-height: .96; }
.about-note p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.profile-section { background: rgba(241, 236, 223, .52); border-block: 1px solid var(--line); }
.profile-section .section-heading, .profile-grid { width: min(1180px, 100%); margin-inline: auto; }
.profile-section .section-heading { margin-bottom: 18px; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.profile-grid article { min-height: 142px; padding: 17px; background: rgba(255, 253, 247, .84); border: 1px solid var(--line); border-radius: 8px; }
.profile-grid strong { display: block; color: var(--olive-dark); font-size: .88rem; }
.profile-grid p { margin: 9px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.loyalty-invite { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(1180px, 100%); margin: 18px auto 0; padding: 16px 0; border-block: 1px solid var(--line); }
.loyalty-invite > div { display: grid; gap: 4px; }
.loyalty-invite .eyebrow { margin: 0; }
.loyalty-invite strong { color: var(--ink); font-size: .94rem; }
.loyalty-invite span { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(1180px, 100%); margin: 18px auto 0; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-row > div:first-child { display: grid; gap: 4px; }
.contact-row strong { color: var(--olive-dark); font-size: .86rem; }
.contact-row span { color: var(--muted); font-size: .76rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.contact-actions .primary-link, .contact-actions .secondary-link { min-width: 0; min-height: 38px; font-size: .72rem; }

.catalog-section { padding-top: 34px; padding-bottom: 46px; border-top: 0; }
.section-heading, .filters, .product-grid { width: min(1180px, 100%); margin-inline: auto; }
.section-heading { margin-bottom: 16px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter { padding: 0 13px; color: var(--olive-dark); background: var(--paper); border: 1px solid var(--line); font-size: .76rem; }
.filter.active { color: var(--cream); background: var(--olive); border-color: var(--olive); }
.discount-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: 100%; padding: 11px 13px; color: var(--olive-dark); background: var(--sand); border: 1px solid var(--line); border-radius: 8px; }
.discount-strip strong { margin-right: 3px; font-size: .78rem; }
.discount-strip span { padding: 5px 8px; background: var(--paper); border: 1px solid rgba(90, 99, 44, .24); border-radius: 7px; font-size: .72rem; font-weight: 900; }
.discount-strip small { flex-basis: 100%; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.loading { grid-column: 1 / -1; padding: 28px; color: var(--muted); text-align: center; }
.product-card { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 1px 0 rgba(47, 50, 31, .03); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.product-photo { display: block; width: 100%; aspect-ratio: 1.24 / 1; object-fit: cover; background: var(--sand); border-bottom: 1px solid var(--line); transition: transform .25s ease; }
.product-card:hover .product-photo { transform: scale(1.02); }
.product-body { padding: 13px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--olive); font-size: .6rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.product-card h3 { margin: 7px 0 5px; color: var(--ink); font-size: .98rem; line-height: 1.18; }
.product-card p { margin: 5px 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.product-card small { display: block; margin-top: 7px; color: var(--olive-dark); font-size: .72rem; font-weight: 900; }
.variant-control { display: grid; gap: 5px; margin-top: 7px; color: var(--olive-dark); font-size: .72rem; font-weight: 900; }
.variant-control select { width: 100%; min-height: 36px; padding: 0 9px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 7px; font-size: .74rem; font-weight: 800; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px 13px; }
.price { font-size: .92rem; font-weight: 900; }
.add-button { padding: 0 11px; font-size: .76rem; }

body.cart-open { overflow: hidden; }
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: var(--page);
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.cart-panel.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.cart-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 11px clamp(18px, 4vw, 54px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cart-header .eyebrow { margin-bottom: 4px; }
.cart-header h2 { font-size: 1.45rem; }
.cart-back { font-size: 1.2rem; line-height: 1; }
.cart-header-note { display: grid; grid-template-columns: 10px auto; align-items: center; gap: 9px; color: var(--olive-dark); }
.cart-header-note > span { width: 9px; height: 9px; background: #6f7d39; border-radius: 50%; box-shadow: 0 0 0 4px rgba(111, 125, 57, .14); }
.cart-header-note div { display: grid; gap: 1px; }
.cart-header-note strong { font-size: .7rem; }
.cart-header-note small { color: var(--muted); font-size: .62rem; }
.icon-button { width: 38px; color: var(--olive-dark); background: var(--sand); border: 1px solid var(--line); }
.checkout-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 15px 0;
  list-style: none;
}
.checkout-progress::before { position: absolute; top: 32px; right: 12.5%; left: 12.5%; height: 1px; content: ""; background: var(--line); }
.checkout-progress li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: .68rem; }
.checkout-progress li span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.checkout-progress li.active, .checkout-progress li.complete { color: var(--olive-dark); }
.checkout-progress li.active span { color: var(--cream); background: var(--olive-dark); border-color: var(--olive-dark); box-shadow: 0 0 0 4px rgba(90, 99, 44, .12); }
.checkout-progress li.complete span { color: var(--cream); background: var(--olive); border-color: var(--olive); }
.cart-workspace {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, .8fr);
  width: min(1180px, 100%);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.cart-workspace[hidden], .order-status-view[hidden] { display: none !important; }
.cart-products-pane { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; padding: 24px clamp(20px, 3vw, 38px); overflow: hidden; border-right: 1px solid var(--line); }
.cart-pane-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.cart-pane-heading h3, .checkout-form-heading h3 { margin: 0; font-size: 1.08rem; }
.clear-link { min-height: 32px; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: .7rem; font-weight: 900; text-decoration: underline; }
.cart-items { min-height: 0; overflow-y: auto; padding: 0 8px 0 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin: 0 0 6px; font-size: .92rem; }
.cart-item p { margin: 0 0 4px; color: var(--muted); font-size: .75rem; }
.cart-item p strong { color: var(--ink); }
.cart-discount { margin-top: 15px; padding: 13px 0; color: var(--olive-dark); border-block: 1px solid var(--line); }
.cart-discount p { margin: 0 0 4px; font-size: .74rem; font-weight: 900; }
.cart-assurance { padding-top: 16px; }
.cart-assurance strong { color: var(--olive-dark); font-size: .76rem; }
.cart-assurance p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.qty-controls { display: grid; grid-template-columns: 30px 30px 30px; align-items: center; gap: 4px; }
.qty-controls button { width: 30px; height: 30px; color: var(--olive-dark); background: var(--sand); border: 1px solid var(--line); border-radius: 7px; font-weight: 900; }
.qty-controls span { text-align: center; font-size: .82rem; font-weight: 900; }
.checkout-form { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; overflow: hidden; background: var(--cream); }
.checkout-form-scroll { display: grid; align-content: start; gap: 11px; min-height: 0; overflow-y: auto; padding: 24px clamp(20px, 3vw, 38px) 14px; }
.checkout-form-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.checkout-form [hidden] { display: none !important; }
.checkout-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-field-grid .wide-field { grid-column: 1 / -1; }
.checkout-form label, .wholesale-gate-card label { display: grid; gap: 5px; color: var(--olive-dark); font-size: .72rem; font-weight: 900; }
.checkout-form input, .checkout-form textarea, .checkout-form select { width: 100%; min-height: 41px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.checkout-form textarea { min-height: 58px; resize: vertical; }
.checkout-form select { font-size: .76rem; font-weight: 700; }
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus, .wholesale-gate-card input:focus { outline: 3px solid rgba(90, 99, 44, .16); border-color: var(--olive); }
.checkout-totals { padding: 12px clamp(20px, 3vw, 38px) 18px; background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -10px 20px rgba(47, 50, 31, .04); }
.checkout-form dl { margin: 0 0 12px; }
.checkout-form dl div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: .75rem; font-weight: 800; }
.checkout-form dl dt, .checkout-form dl dd { margin: 0; }
.checkout-form dl .checkout-grand-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 900; }
.checkout-button, .clear-button { min-height: 42px; font-size: .76rem; }
.checkout-totals .checkout-button { width: 100%; }
.clear-button { color: var(--olive-dark); background: var(--sand); border: 1px solid var(--line); }
.checkout-note { min-height: 16px; margin: 7px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.checkout-account { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 1px 0; padding: 8px 9px; color: var(--olive-dark); background: var(--sand); border: 1px solid var(--line); border-radius: 7px; font-size: .68rem; font-weight: 800; line-height: 1.35; }
.checkout-account button { padding: 0; color: var(--olive-dark); background: transparent; border: 0; font-size: .68rem; font-weight: 900; text-decoration: underline; }
.delivery-help { margin: -3px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.4; }
.address-field { display: grid; gap: 6px; }
.address-field[hidden] { display: none; }
.address-suggestions { display: grid; overflow-y: auto; max-height: 180px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow-soft); }
.address-suggestions[hidden] { display: none; }
.address-suggestions button { width: 100%; padding: 9px 10px; color: var(--ink); background: transparent; border: 0; border-radius: 5px; font-size: .72rem; line-height: 1.35; text-align: left; cursor: pointer; }
.address-suggestions button:hover,
.address-suggestions button:focus-visible { background: var(--sand); outline: none; }
.google-attribution { width: 120px; height: auto; margin-left: auto; }
.google-attribution[hidden] { display: none; }
.wholesale-customer-summary { margin: 0; padding: 8px 9px; color: var(--olive-dark); background: var(--sand); border: 1px solid var(--line); border-radius: 7px; font-size: .72rem; line-height: 1.4; }
.order-status-view {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  width: min(1060px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 58px);
  overflow-y: auto;
}
.order-status-summary { display: grid; justify-items: start; }
.order-status-summary h2 { max-width: 520px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.order-status-number { margin: 17px 0 12px; color: var(--muted); font-size: .82rem; }
.order-status-number strong { color: var(--ink); font-family: "Courier Prime", monospace; font-size: .96rem; }
.order-status-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; color: #7c401f; background: #f4e1d4; border: 1px solid #e6c0a9; border-radius: 999px; font-size: .7rem; font-weight: 900; }
.order-status-badge.confirmed { color: var(--olive-dark); background: #e8ecd8; border-color: #cbd3a9; }
.order-status-summary > p:not(.eyebrow, .order-status-number) { max-width: 480px; margin: 14px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.order-status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.order-status-actions .checkout-button { display: inline-grid; place-items: center; padding: 0 14px; }
.order-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 13px; min-height: 86px; color: var(--muted); }
.order-timeline li::after { position: absolute; top: 35px; bottom: 0; left: 17px; width: 2px; content: ""; background: var(--line); }
.order-timeline li:last-child::after { display: none; }
.order-timeline li > span { position: relative; z-index: 1; display: block; width: 36px; height: 36px; background: var(--paper); border: 2px solid var(--line); border-radius: 50%; }
.order-timeline li > span::after { position: absolute; inset: 10px; content: ""; background: var(--line); border-radius: 50%; }
.order-timeline li strong { display: block; margin-top: 2px; color: currentColor; font-size: .84rem; }
.order-timeline li small { display: block; margin-top: 5px; font-size: .7rem; line-height: 1.4; }
.order-timeline li.active { color: var(--ink); }
.order-timeline li.active > span { border-color: var(--olive); box-shadow: 0 0 0 5px rgba(90, 99, 44, .1); }
.order-timeline li.active > span::after { background: var(--olive); }
.order-timeline li.complete { color: var(--olive-dark); }
.order-timeline li.complete::after { background: var(--olive); }
.order-timeline li.complete > span { background: var(--olive); border-color: var(--olive); }
.order-timeline li.complete > span::after { inset: 9px 7px 11px 7px; background: transparent; border-right: 2px solid var(--cream); border-bottom: 2px solid var(--cream); border-radius: 0; transform: rotate(45deg); }
.order-status-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-status-footer p { margin: 0; color: var(--muted); font-size: .68rem; }
.order-status-footer .secondary-link { min-width: 150px; }
.backdrop { display: none; }

.wholesale-gate[hidden] { display: none; }
.wholesale-gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(35, 38, 25, .42); backdrop-filter: blur(5px); }
.wholesale-gate-card { position: relative; display: grid; gap: 11px; width: min(460px, 100%); padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 70px rgba(35, 38, 25, .24); animation: modal-in .2s ease both; }
.wholesale-gate-card h2 { max-width: 330px; font-size: clamp(1.65rem, 4vw, 2.25rem); }
.wholesale-gate-copy { margin: 0 0 6px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.wholesale-gate-card input { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.wholesale-gate-close { position: absolute; top: 17px; right: 17px; width: 34px; min-height: 34px; }
.wholesale-gate-note { min-height: 16px; margin: 0; color: var(--clay); font-size: .72rem; font-weight: 800; }
.wholesale-gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 3px; }
.wholesale-gate-actions button { min-height: 40px; padding-inline: 10px; font-size: .74rem; }
.account-modal[hidden], .thanks-modal[hidden] { display: none; }
.account-modal, .thanks-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow-y: auto; padding: 18px; background: rgba(35, 38, 25, .5); backdrop-filter: blur(6px); }
.account-panel, .thanks-panel { position: relative; display: grid; gap: 13px; width: min(440px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 70px rgba(35, 38, 25, .24); animation: modal-in .2s ease both; }
.account-panel h2, .thanks-panel h2 { max-width: 340px; font-size: 1.8rem; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; min-height: 34px; }
.account-copy { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--sand); border: 1px solid var(--line); border-radius: 8px; }
.account-tab { min-height: 38px; color: var(--olive-dark); background: transparent; border: 0; border-radius: 6px; font-size: .74rem; font-weight: 900; }
.account-tab.active { color: var(--cream); background: var(--olive); }
.account-form { display: grid; gap: 10px; }
.account-form[hidden], #accountGuest[hidden], #accountMember[hidden] { display: none; }
.account-form label { display: grid; gap: 5px; color: var(--olive-dark); font-size: .72rem; font-weight: 900; }
.account-form input { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.account-form input:focus { outline: 3px solid rgba(90, 99, 44, .16); border-color: var(--olive); }
.account-form small, .account-note, .account-email { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.account-error { min-height: 17px; margin: 0; color: var(--clay); font-size: .72rem; font-weight: 800; }
.club-invite-popover[hidden] { display: none; }
.club-invite-popover {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 75;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  width: min(360px, calc(100vw - 36px));
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(255, 254, 250, .98);
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(35, 38, 25, .18);
  animation: club-invite-in .34s ease both;
}
.club-invite-seal { display: grid; place-items: center; align-self: start; width: 42px; height: 42px; color: var(--cream); background: var(--olive-dark); border-radius: 8px; font-family: "Courier Prime", monospace; font-size: .72rem; font-weight: 700; }
.club-invite-copy { display: grid; gap: 6px; min-width: 0; padding-right: 20px; }
.club-invite-copy .eyebrow { margin: 0; font-size: .59rem; }
.club-invite-copy > strong { font-size: .91rem; }
.club-invite-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.42; }
.club-invite-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: .78rem; font-weight: 900; }
.club-invite-close:hover { color: var(--ink); background: var(--sand); }
.club-invite-stamps { display: grid; grid-template-columns: repeat(5, 28px); gap: 5px; margin-top: 2px; }
.club-invite-stamps span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--olive); border: 1px dashed var(--olive); border-radius: 50%; font-family: "Courier Prime", monospace; font-size: .57rem; font-weight: 700; }
.club-invite-stamps span:last-child { color: var(--cream); background: var(--clay); border-color: var(--clay); border-style: solid; }
.club-invite-actions { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
.club-invite-primary { min-height: 34px; padding: 0 13px; color: var(--cream); background: var(--olive-dark); border: 0; border-radius: 7px; font-size: .68rem; font-weight: 900; }
.club-invite-primary:hover { background: var(--olive); }
.club-invite-login { min-height: 34px; padding: 0; color: var(--olive-dark); background: transparent; border: 0; font-size: .66rem; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
@keyframes club-invite-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.loyalty-sheet { display: grid; gap: 13px; padding-block: 16px; border-block: 1px solid var(--line); }
.loyalty-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loyalty-sheet-heading strong { font-size: .84rem; }
.loyalty-sheet-heading span { color: var(--olive); font-size: .7rem; font-weight: 900; }
.loyalty-sheet p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.loyalty-stamps { display: grid; grid-template-columns: repeat(5, 42px); justify-content: space-between; gap: 7px; }
.loyalty-stamp { position: relative; display: grid; place-items: center; aspect-ratio: 1; color: var(--olive); background: var(--paper); border: 1px dashed var(--olive); border-radius: 50%; font-family: "Courier Prime", monospace; font-size: .78rem; font-weight: 700; }
.loyalty-stamp.filled { color: var(--cream); background: var(--olive); border-style: solid; box-shadow: inset 0 0 0 3px rgba(255, 253, 247, .26); }
.loyalty-stamp.reward { color: var(--clay); border-color: var(--clay); }
.loyalty-stamp.reward.filled { color: var(--cream); background: var(--clay); }
.account-logout { width: 100%; }
.thanks-panel { text-align: center; }
.thanks-panel .eyebrow { margin-bottom: -4px; }
.thanks-panel h2 { margin-inline: auto; }
.thanks-order, .thanks-message { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.thanks-panel .loyalty-stamps { width: min(100%, 286px); margin: 4px auto; }
.thanks-panel .checkout-button { width: 100%; }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-photos { grid-auto-rows: 118px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-workspace { grid-template-columns: 1fr; overflow-y: auto; }
  .cart-products-pane { min-height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .cart-items, .checkout-form-scroll { overflow: visible; }
  .checkout-form { display: block; overflow: visible; }
  .checkout-form-scroll, .checkout-totals { padding-inline: clamp(20px, 3vw, 38px); }
  .checkout-totals { box-shadow: none; }
  .cart-assurance { display: none; }
  .order-status-view { grid-template-columns: 1fr; align-content: start; align-items: start; gap: 34px; }
  .order-status-summary h2 { max-width: 620px; }
}
@media (max-width: 720px) {
  .top-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 24px; }
  .hero-photos { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 82px; }
  .hero-photos .photo-main { grid-row: auto; }
  .mode-panel, .about-section { grid-template-columns: 1fr; align-items: start; }
  .mode-control { width: 100%; }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip article { border-bottom: 1px solid var(--line); }
  .info-strip article:last-child { border-bottom: 0; }
  .about-section { gap: 24px; }
  .catalog-heading { display: grid; gap: 8px; }
  .catalog-heading > p { text-align: left; }
  .product-grid { grid-template-columns: 1fr; gap: 10px; }
  .product-card { grid-template-columns: minmax(126px, 36%) 1fr; grid-template-rows: 1fr auto; }
  .product-photo { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; }
  .product-body { align-self: start; }
  .product-footer { grid-column: 2; }
  .cart-header-note small { display: none; }
  .checkout-progress { padding-block: 12px; }
  .checkout-progress::before { top: 29px; }
  .order-status-view { padding-top: 30px; }
}
@media (max-width: 520px) {
  .brand > span:last-child, .cart-button span:not(.bag-icon), .account-button > span:last-child { display: none; }
  .account-button { width: 40px; justify-content: center; padding: 0; }
  h1 { font-size: 3.35rem; }
  .hero-copy > p:not(.eyebrow) { margin-top: 12px; font-size: .86rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-link, .secondary-link { min-width: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid article { min-height: 0; }
  .contact-row { display: grid; }
  .loyalty-invite { display: grid; }
  .loyalty-invite .secondary-link { width: 100%; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .product-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-body { padding: 11px; }
  .product-card h3 { font-size: .9rem; }
  .product-card p { font-size: .73rem; }
  .product-footer { padding: 0 11px 11px; }
  .add-button { min-height: 36px; padding-inline: 9px; font-size: .7rem; }
  .price { font-size: .82rem; }
  .wholesale-gate-card { padding: 24px 20px; }
  .wholesale-gate-actions { grid-template-columns: 1fr; }
  .account-panel, .thanks-panel { padding: 24px 18px 20px; }
  .club-invite-popover { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .loyalty-stamps { grid-template-columns: repeat(5, minmax(0, 42px)); }
  .cart-header { grid-template-columns: auto 1fr; min-height: 64px; padding-inline: 14px; }
  .cart-header-note { display: none; }
  .cart-header h2 { font-size: 1.25rem; }
  .checkout-progress { width: calc(100% - 22px); }
  .checkout-progress li { font-size: .58rem; }
  .checkout-progress li span { width: 30px; height: 30px; }
  .checkout-progress::before { top: 27px; }
  .cart-products-pane { padding: 19px 16px 22px; }
  .checkout-form-scroll { padding: 19px 16px 12px; }
  .checkout-totals { padding: 12px 16px 18px; }
  .checkout-field-grid { grid-template-columns: 1fr; }
  .checkout-field-grid .wide-field { grid-column: auto; }
  .cart-item { gap: 10px; }
  .qty-controls { grid-template-columns: 28px 24px 28px; }
  .qty-controls button { width: 28px; height: 28px; }
  .order-status-view { gap: 28px; padding: 26px 18px; }
  .order-status-summary h2 { font-size: 2.15rem; }
  .order-status-actions { display: grid; width: 100%; }
  .order-status-actions > * { width: 100%; }
  .order-status-footer { display: grid; }
  .order-status-footer .secondary-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
