:root {
  --bg: #f7f3ed;
  --paper: #fffdfa;
  --card: #ffffff;
  --line: #e4dacb;
  --ink: #1e2d23;
  --muted: #5c655d;
  --green: #1f6b57;
  --green-dark: #185344;
  --maroon: #7c2f22;
  --soft: #f5efe4;
  --gold: #c9a24b;
  --danger: #b43c2f;
  --shadow: 0 2px 10px rgba(30, 45, 35, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: #faf7f2;
  color: var(--ink);
  font: 15px/1.58 Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.admin-mode { background: #f8fafc; padding-bottom: 0 !important; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, .serif {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -.02em;
  font-weight: 500;
}
p, h1, h2, h3, h4 { margin: 0; }

.wrap { width: min(1240px, calc(100% - 28px)); margin: auto; }
.section { padding: 40px 0; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--maroon);
}

.topbar {
  background: #231914; color: #f6efe4; padding: 7px 12px;
  text-align: center; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 10px; min-height: 70px; }
.brand {
  font: 700 28px Georgia, serif; color: var(--maroon);
  line-height: .88; letter-spacing: -.04em; flex-shrink: 0;
}
.brand small {
  display: block; font: 600 9px Inter, Arial, sans-serif;
  letter-spacing: .2em; color: #6d5d52; margin-top: 5px;
}
.footer-brand { color: #f4e6cf; }
.footer-brand small { color: #cfc3b3; }

.navlinks { display: flex; align-items: center; gap: 11px; margin-left: 8px; }
.navlinks a {
  font-size: 13px; color: #313f36; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.navlinks a:hover, .navlinks a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-pill:not(:empty) {
  display: inline-block; background: var(--soft); color: var(--maroon);
  border-radius: 999px; padding: 1px 6px; font-size: 11px; font-weight: 700; margin-left: 2px;
}
.nav-admin-link {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px !important; font-size: 12.5px !important; color: var(--maroon) !important;
}

.grow { flex: 1; }

.pin-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--soft); color: var(--ink); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.pin-chip:hover { border-color: var(--green); }

.search-wrap { position: relative; max-width: 210px; width: 100%; min-width: 135px; }
.search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: #f5f1ea; border: 1px solid var(--line);
  border-radius: 8px; width: 100%;
}
.search input { border: 0; outline: none; background: none; width: 100%; min-width: 0; font-size: 13.5px; }
.search-clear {
  border: 0; background: #e0d5c3; color: #38453d; width: 20px; height: 20px;
  border-radius: 50%; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.search-clear[hidden] { display: none; }

.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(30, 45, 35, .12); z-index: 70; max-height: 320px; overflow-y: auto;
}
.search-suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid #f2ece2; cursor: pointer; font-size: 13px;
}
.search-suggest-item:hover { background: #faf7f1; }
.search-suggest-item img { width: 36px; height: 36px; object-fit: contain; border: 1px solid #eee; border-radius: 6px; padding: 2px; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; min-height: 42px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 13.5px; transition: background .15s, border-color .15s;
}
.iconbtn:hover { border-color: #bfb29e; background: #fcfaf5; }
.iconbtn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.iconbtn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.iconbtn.danger { background: #fff4f2; border-color: #efc7c2; color: var(--danger); }
.iconbtn.sm { padding: 6px 12px; min-height: 34px; font-size: 12.5px; }
.iconbtn:disabled { opacity: .5; cursor: not-allowed; }

.burger {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; width: 40px; height: 40px;
  align-items: center; justify-content: center; cursor: pointer;
}

/* Editorial Hero */
.hero { padding: 20px 0 24px; }
.hero-shell {
  overflow: hidden; border-radius: 16px;
  background: #f3eadc; border: 1px solid #e6d8c3;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 410px) 1fr; align-items: stretch; min-height: 520px; }
.hero-copy {
  padding: 48px 36px; display: flex; flex-direction: column; justify-content: center;
}
.hero-copy h1 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.06; margin-top: 10px; }
.hero-copy p { font-size: 15px; color: #4c584f; margin-top: 14px; max-width: 340px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-media { position: relative; min-height: 520px; overflow: hidden; background: #e8dcc8; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Flagship Spotlight */
.flagship-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center;
}
.flagship-bar img { width: 110px; height: 110px; object-fit: contain; background: #faf7f1; border-radius: 10px; padding: 8px; border: 1px solid #efe7da; }

/* Categories & Filters */
.category-strip { padding-top: 6px; }
.cat-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; padding: 10px 16px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  color: var(--ink); white-space: nowrap;
}
.cat-chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.shop-toolbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-toolbar select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.toggle-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}

/* Section Headers & Grids */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.section-head p { color: var(--muted); max-width: 640px; margin-top: 6px; }

.product-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 286px);
  gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory;
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Anveshan-Inspired Clean Product Card */
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  scroll-snap-align: start; min-width: 0;
}
.card-top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.offer-badge {
  background: #eff7f4; color: var(--green-dark); border: 1px solid #cce3da;
  padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 11.5px;
}
.wish-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0; color: #5c655d;
}
.wish-btn.saved { color: var(--maroon); border-color: #e6bfb7; background: #fdf3f1; }

.prod-media {
  position: relative; margin-top: 10px; background: #ffffff; border: 1px solid #ece5d8;
  border-radius: 8px; height: 224px; display: flex; align-items: center;
  justify-content: center; padding: 14px; overflow: hidden;
}
.prod-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .prod-media img { transform: scale(1.03); }

.stock-tag {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px;
  border-radius: 6px; font-size: 10.5px; font-weight: 600;
}
.stock-tag.low { background: #fff5e5; color: #9c5b0c; border: 1px solid #f0d3a5; }
.stock-tag.out { background: #fdecec; color: var(--danger); border: 1px solid #f2c0bc; }

.prod-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.prod-title { font-size: 16.5px; line-height: 1.25; margin-top: 4px; color: var(--ink); font-weight: 600; }
.prod-sub { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 38px; }
.rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink); margin-top: 6px; }
.star { color: #d99b00; }

.price-block { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e8dc; }
.price-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sale { font-size: 22px; line-height: 1; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.mrp { text-decoration: line-through; color: #8c928c; font-size: 14px; font-variant-numeric: tabular-nums; }
.offer-line {
  margin-top: 5px; font-size: 12px; color: var(--green-dark); font-weight: 600;
  background: #f5efe4; padding: 5px 8px; border-radius: 6px;
}

.card-cta-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; align-items: center; }
.add-btn {
  border: 1px solid var(--green); background: var(--green); color: #fff;
  padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 13px; min-height: 38px;
  cursor: pointer; width: 100%;
}
.add-btn:hover { background: var(--green-dark); }
.add-btn:disabled { background: #cbd2cd; border-color: #cbd2cd; cursor: not-allowed; }
.qty {
  display: inline-flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--green); border-radius: 8px; background: #fff; min-height: 38px; width: 100%;
}
.qty button { border: 0; background: #eff7f4; color: var(--green-dark); padding: 0 12px; cursor: pointer; font-weight: 700; min-height: 36px; }
.qty b { min-width: 24px; text-align: center; font-size: 13.5px; }
.detail-link-btn {
  padding: 0 12px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600;
}

/* Farm Story & Trust */
.farm-feature { padding: 38px 0; }
.farm-viewport {
  width: 100%; aspect-ratio: 4.25 / 1; min-height: 190px;
  background: #f3e5c5; border: 1px solid #d9c28f; border-radius: 12px;
  overflow: hidden; position: relative;
}
.farm-viewport iframe { display: block; width: 100%; height: 100%; position: absolute; inset: 0; border: 0; }
.farm-story-footer {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  margin-top: 12px; color: var(--muted); font-size: 13px;
}
.farm-story-footer a { color: var(--green); font-weight: 600; }

.info-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.trust-card b { display: block; font: 500 20px Georgia, serif; margin-bottom: 6px; }

/* Detail Page & Mobile Swipe Gallery */
.detail-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.gallery-panel, .detail-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0;
}
.gallery-stage {
  background: #fcfaf6; border: 1px solid #efe6d8; border-radius: 10px;
  aspect-ratio: 1 / 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth;
}
.gallery-stage::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 18px; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.thumbs button.active { background: var(--green); border-color: var(--green); color: #fff; }
.detail-panel h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips span {
  border: 1px solid var(--line); background: #faf7f0; padding: 5px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 600; color: #3d4b41;
}
.bullet-list { display: grid; gap: 8px; margin-top: 14px; }
.bullet-list div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf6; font-size: 13.5px; }
.bullet-list b { display: block; margin-bottom: 2px; }
.detail-buy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.qtyline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* A+ Sections */
.aplus-showcase { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 24px; align-items: start; }
.aplus-art {
  position: sticky; top: 90px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
}
.aplus-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; background: #faf7ef; }
.aplus-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.aplus-benefit { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.aplus-benefit b { display: block; color: var(--maroon); font: 600 16px Georgia, serif; margin-bottom: 5px; }
.aplus-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aplus-block { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.aplus-block h3 { font: 500 20px Georgia, serif; margin-bottom: 8px; }
.aplus-list { margin: 0; padding-left: 18px; color: #4a554c; display: grid; gap: 6px; font-size: 13.5px; }
.aplus-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.aplus-specs > div { padding: 12px 14px; border-radius: 8px; background: #f5efe4; border: 1px solid #e6dac4; }
.aplus-specs small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6e634e; }
.aplus-specs strong { display: block; margin-top: 4px; font-size: 14px; }

/* Cart Drawer & Modals */
.drawer-shade { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 90; }
.drawer {
  position: fixed; right: 0; top: 0; height: 100%; width: min(440px, 100%);
  background: #fff; padding: 20px 18px 26px; z-index: 91; overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .14); display: flex; flex-direction: column;
}
.modal-card {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 24px)); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 12px; padding: 22px; z-index: 92;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #ece5db; border-radius: 8px; padding: 5px; }
.coupon-box { display: flex; gap: 8px; margin-top: 12px; }
.coupon-box input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #faf8f2; min-width: 0; }
.coupon-suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.coupon-chip { border: 1px dashed #bea968; background: #fffdf4; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; cursor: pointer; }
.ship-meter { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #eff7f4; border: 1px solid #cfe5dc; font-size: 12px; color: var(--green-dark); }
.ship-bar { height: 5px; border-radius: 999px; background: #d5ebe2; margin-top: 6px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.summary { margin-top: 12px; padding: 14px; background: #faf6eb; border: 1px solid #e6dbbe; border-radius: 10px; }
.summary .row { display: flex; justify-content: space-between; margin: 6px 0; font-size: 13.5px; }

/* Checkout & Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 22px; align-items: start; }
.form-grid { display: grid; gap: 12px; }
.form-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: #38453d; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); }
.field textarea { min-height: 86px; resize: vertical; }

/* Orders & Timeline */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; }
.status-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eff7f4; color: var(--green); }
.status-badge.Cancelled, .status-badge.Failed, .status-badge.Refunded { background: #fdecec; color: var(--danger); }
.order-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 14px 0; }
.order-step { text-align: center; padding: 7px 4px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #f5f1ea; color: #7e857e; border: 1px solid var(--line); }
.order-step.done { background: #eff7f4; color: var(--green); border-color: #b7ded0; }
.order-step.current { background: var(--green); color: #fff; border-color: var(--green); }

/* Footer */
.footer { margin-top: 36px; background: #1e2d24; color: #f5efe4; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 24px; }
.footer a { display: block; color: #e2dcd2; margin: 7px 0; font-size: 13.5px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-desc { margin-top: 12px; color: #c7cfc9; max-width: 360px; font-size: 13.5px; }
.footer-meta { font-size: 12px; color: #b5bfb8; margin-top: 10px; }
.footer-bottom {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #c7cfc9;
}

.center { text-align: center; padding: 56px 16px; }
.empty { text-align: center; padding: 40px 14px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #1e2d24; color: #fff; padding: 10px 18px; border-radius: 8px;
  z-index: 120; font-size: 13.5px; font-weight: 500; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

dialog#imageZoom { padding: 12px; border: 1px solid #ddd; background: #fff; border-radius: 12px; width: min(96vw, 850px); max-height: 92vh; }
.zoom-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#imageZoom img { max-height: 80vh; object-fit: contain; margin: auto; }
#imageZoom::backdrop { background: rgba(0, 0, 0, .6); }

.mobile-menu-shade { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 59; }
.mobile-menu-shade[hidden] { display: none; }
.mobile-bottom-nav, .sticky-pdp-bar { display: none; }

.delivery-method-list { display: grid; gap: 8px; }
.delivery-method-opt {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.delivery-method-opt.active { border-color: var(--green); background: #f2f8f5; }
.delivery-method-opt input { margin-top: 3px; width: auto; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

@media (max-width: 1360px) {
  .nav { gap: 8px; }
  .brand { font-size: 28px; }
  .navlinks { gap: 10px; margin-left: 6px; }
  .navlinks a { font-size: 12.5px; }
  .search-wrap { max-width: 200px; min-width: 130px; }
  .pin-chip { padding: 6px 9px; font-size: 12px; }
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout, .split, .checkout-grid, .footer-grid, .aplus-showcase { grid-template-columns: 1fr; }
  .aplus-art { position: relative; top: auto; max-width: 480px; margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 28px 22px 18px; }
  .hero-media { min-height: 360px; }
  .flagship-bar { grid-template-columns: 88px 1fr; }
  /* Tablet & smaller desktop nav collapse to drawer so 768px/1024px never overflow */
  .burger { display: inline-flex; }
  .nav { gap: 10px; }
  .search-wrap { max-width: 240px; min-width: 140px; }
  .navlinks {
    display: none; position: fixed; top: 0; left: 0; bottom: 0; width: min(290px, 82vw);
    background: var(--paper); z-index: 80; flex-direction: column; align-items: stretch;
    padding: 20px 16px; margin-left: 0; gap: 4px; box-shadow: 12px 0 36px rgba(0,0,0,.18); overflow-y: auto;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 11px 12px; border-radius: 8px; border-bottom: 0; font-size: 14.5px; }
  .navlinks a.active { background: #eff7f4; color: var(--green); }
}

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

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .wrap { width: min(100% - 20px, 1240px); }
  .topbar { font-size: 10.5px; padding: 6px 8px; }
  .burger { display: inline-flex; }
  .nav { min-height: 58px; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
  .brand { font-size: 28px; }
  .brand small { font-size: 8px; letter-spacing: .16em; margin-top: 4px; }
  .grow { display: none; }
  .pin-chip { padding: 6px 8px; font-size: 11.5px; margin-left: auto; }
  .cart-trigger { padding: 7px 10px; min-height: 36px; }
  .cart-label { display: none; }
  .search-wrap { order: 3; width: 100%; max-width: none; min-width: 0; }

  .navlinks {
    display: none; position: fixed; top: 0; left: 0; bottom: 0; width: min(280px, 82vw);
    background: var(--paper); z-index: 80; flex-direction: column; align-items: stretch;
    padding: 20px 16px; margin-left: 0; gap: 4px; box-shadow: 12px 0 36px rgba(0,0,0,.18); overflow-y: auto;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 11px 12px; border-radius: 8px; border-bottom: 0; font-size: 14.5px; }
  .navlinks a.active { background: #eff7f4; color: var(--green); }

  .hero { padding: 12px 0 18px; }
  .hero-copy { padding: 20px 16px 14px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-media { min-height: 230px; }
  .flagship-bar { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  .section { padding: 24px 0; }
  .product-rail { grid-auto-columns: 76%; gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .product-card { padding: 10px; border-radius: 10px; }
  .prod-media { height: 150px; padding: 10px; }
  .prod-title { font-size: 14px; }
  .prod-sub { font-size: 11.5px; min-height: 30px; }
  .sale { font-size: 18px; }
  .mrp { font-size: 12px; }
  .offer-line { font-size: 10.5px; padding: 4px 6px; }
  .card-cta-row { grid-template-columns: 1fr; gap: 6px; }
  .add-btn, .qty { min-height: 36px; font-size: 12.5px; }
  .detail-link-btn { min-height: 34px; font-size: 12px; }

  .trust-grid, .aplus-2col, .aplus-specs, .aplus-benefits, .form-2col { grid-template-columns: 1fr; }
  .farm-viewport { aspect-ratio: 2.05 / 1; min-height: 175px; }
  .farm-story-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .gallery-panel, .detail-panel, .form-card, .info-panel { padding: 14px; }
  .order-step { font-size: 9.5px; padding: 5px 2px; }

  .sticky-pdp-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 64;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 14px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
  }
  .mobile-bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button {
    border: 0; background: none; color: #4d5950;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10.5px; font-weight: 600; padding: 3px 2px; cursor: pointer;
  }
  .mobile-bottom-nav a.active { color: var(--green); }
  .mb-ic { position: relative; display: inline-flex; }
  .mb-badge {
    position: absolute; top: -5px; right: -9px; font-style: normal;
    background: var(--green); color: #fff; border-radius: 999px;
    min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .brand { font-size: 24px; }
  .brand small { font-size: 7.5px; letter-spacing: .12em; }
  .pin-chip { padding: 5px 7px; font-size: 11px; }
  .burger { width: 36px; height: 36px; }
  .cart-trigger { padding: 6px 8px; min-height: 34px; font-size: 12px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

@media print {
  .topbar, .header, .footer, .mobile-bottom-nav, .sticky-pdp-bar { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
}
