/* Freeze It - site styles. Mobile first. Hand-written (not generated). */
:root {
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --tint: #EEF5F1;
  --ink: #1C2A23;
  --muted: #56645C;
  --line: #E3E1D8;
  --brand: #1F5A43;
  --brand-dark: #16432F;
  --brand-ink: #FFFFFF;
  --accent: #C4521F;
  --focus: #2B6CB0;
  --error: #B42318;
  --ok-bg: #EAF5EE;
  --warn-bg: #FFF6E5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 4px 16px rgba(20, 40, 30, .06);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, .h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .75em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 34px; height: 34px; }
.logo-word { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.nav-toggle { order: 2; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.cart-link { order: 1; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.cart-link svg { width: 22px; height: 22px; }
.cart-link:hover, .cart-link[aria-current="page"] { background: var(--tint); color: var(--ink); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .78rem; display: inline-grid; place-items: center; }
.site-nav { order: 3; width: 100%; display: none; }
@media (max-width: 419px) { .nav-toggle { padding: 9px 11px; } .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .cart-link { padding: 7px 8px; } .header-inner { gap: 6px; } }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 4px 0 12px; }
.site-nav a { display: block; padding: 10px 4px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; order: 1; width: auto; margin-right: 8px; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 999px; }
  .site-nav a:hover { background: var(--tint); }
  .cart-link { order: 2; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); color: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--tint); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- home */
.hero { position: relative; padding: 0 0 32px; overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 78% center; }
.hero-placeholder .hero-media { display: none; }
.hero-placeholder .hero-grid, .hero-photo .hero-grid { padding-top: 28px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .hero { min-height: clamp(500px, 44vw, 660px); display: flex; align-items: center; padding: 56px 0; }
  .hero-placeholder .hero-media { display: block; }
  .hero { background: #F6F1EA; }
  /* photo only behind the right part, so the fruit never sits under the headline */
  .hero-media { position: absolute; top: 0; bottom: 0; right: 0; left: 40%; }
  .hero-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: right center; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #F6F1EA 0%, rgba(246,241,234,0) 18%); }
  .hero-grid { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 0 !important; }
}
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; gap: 0; }
.fact { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact p { margin: 0; color: var(--muted); }
.fact-h { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 4px; }
@media (min-width: 760px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } .fact { border-bottom: 0; padding: 26px 24px 26px 0; } .fact + .fact { border-left: 1px solid var(--line); padding-left: 24px; } }

.section { padding-top: 48px; padding-bottom: 48px; }
.section-tight { padding-top: 28px; padding-bottom: 28px; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.info-grid { display: grid; gap: 16px; }
.info { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.info p { color: var(--muted); }
.info > a { font-weight: 600; }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card-link:hover .card-title { color: var(--brand); text-decoration: underline; }
.card-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #F2EFE8; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1; }
.card-title { font-size: 1.05rem; margin: 0; }
.card-text { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.card-price { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .95rem; }
.card-price .muted { font-weight: 400; }

/* ---------- page heads & prose */
.page-head { padding: 36px 0 12px; }
@media (min-width: 760px) { .page-head { padding: 56px 0 16px; } }
.prose { padding-bottom: 48px; max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
address { font-style: normal; }

/* ---------- tables */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); margin: 0 0 1.2em; font-variant-numeric: tabular-nums; }
.table caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--tint); font-size: .9rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:last-child, .table th:last-child { text-align: right; }

.shop-notes { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 760px) { .shop-notes { grid-template-columns: 1fr 1fr; align-items: start; } }
.note-box { background: var(--tint); border-radius: var(--radius); padding: 20px 22px; }
.note-box ul { margin: 0; padding-left: 1.2em; }

/* ---------- product page */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 6px; margin: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.product { display: grid; gap: 24px; padding: 8px 0 24px; }
@media (min-width: 880px) { .product { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.product-media { margin: 0; }
.product-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; background: #F2EFE8; }
.product-media figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.price { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.unit-price { font-size: .9rem; }
.sizes { border: 0; padding: 0; margin: 0 0 18px; }
.sizes legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.size-opt { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: center; }
.size-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-name { font-weight: 700; }
.size-price { font-size: .88rem; color: var(--muted); }
.size-opt:has(input:checked) { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.size-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.qty-label { grid-column: 1 / -1; font-weight: 700; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield; background: transparent; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty-btn:hover { background: var(--tint); }
.form-status { min-height: 1.6em; margin: 10px 0 0; font-weight: 600; color: var(--brand); }
.facts-list { margin: 26px 0 0; border-top: 1px solid var(--line); }
.facts-list > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-weight: 700; }
.facts-list dd { margin: 0; }
.product-more { display: grid; gap: 24px; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .product-more { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.product-more .prose { padding-bottom: 0; }
.safety { background: var(--warn-bg); border-radius: var(--radius-sm); padding: 12px 14px; }

/* ---------- cart & checkout */
.cart-layout, .checkout-layout { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 900px) { .cart-layout.has-items, .checkout-layout { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 40px; } }
.cart-items { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.cart-item-title { font-weight: 700; margin: 0; }
.cart-item-meta { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cart-item-line { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.sum-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.sum-lines .sum-sub { font-size: .88rem; color: var(--muted); padding-top: 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-weight: 700; font-size: 1.15rem; }
.sum-items { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.sum-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.empty { text-align: center; padding: 40px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.checkout-form legend { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 10px; padding: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid #C9C7BD; border-radius: var(--radius-sm); padding: 11px 12px; }
.field input[readonly] { background: var(--tint); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 2fr 1fr 1fr; } }
.help { font-size: .88rem; color: var(--muted); margin: 5px 0 0; }
.form-error { color: var(--error); font-weight: 600; min-height: 0; }
.form-error:empty { display: none; }
.notice { margin-top: 16px; background: var(--warn-bg); border: 1px solid #F0D9A8; border-radius: var(--radius); padding: 18px 20px; }
.notice h2 { font-size: 1.2rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- FAQ, contact */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.3rem; color: var(--brand); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding-bottom: 8px; }
.contact-cards { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 600px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.contact-card p { margin: 0; }
.big-link { font-size: 1.2rem; font-weight: 700; word-break: break-word; }

/* ---------- footer */
.site-footer { background: #17271F; color: #D9E3DD; margin-top: 24px; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #FFFFFF; }
.site-footer .logo { color: #FFFFFF; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: #BFCDC5; max-width: 34em; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-h { font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #9FB4A8; margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid #2E4237; margin-top: 32px; padding-top: 20px; color: #BFCDC5; font-size: .88rem; }
.footer-legal p, .footer-legal address { margin: 0 0 6px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .size-opt { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
}
.table td:first-child { white-space: nowrap; }

/* per-product pricing (v3) */
.size-unit { font-size: .76rem; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table-matrix { min-width: 640px; }
.table-matrix th[scope="row"] { font-weight: 600; white-space: nowrap; }
.table-matrix td { text-align: right; white-space: nowrap; }
.table-matrix thead th:not(:first-child) { text-align: right; }

/* stock + GST (v4) */
.stock { margin: 0 0 12px; font-weight: 600; font-size: .95rem; }
.stock-in { color: var(--brand); }
.stock-out { color: var(--ink); }
.stock-badge { display: inline-block; background: #F4E4E1; color: #8A2A1C; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; margin-right: 6px; }
.card-body .stock-badge { align-self: flex-start; margin-top: 4px; }
.sum-gst { justify-content: flex-start !important; }
