/* Seeds and Scraps store. Colours, fonts and shapes follow the Hugo site's
   hugo-universal theme, green style (src/static/css/style.green.css): gray top bar,
   white menu bar, #3a7448 green accent, Roboto, uppercase headings with a green rule. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/roboto-400.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/roboto-500.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/roboto-700.woff2) format("woff2"); }

:root {
  --page: #ffffff;
  --panel: #f7f7f7;       /* boxes: cart, checkout, quote */
  --field: #ffffff;
  --text: #555555;        /* the theme's body text */
  --heading: #333333;
  --muted: #6b6b6b;       /* theme used #999; darkened for 4.5:1 on white */
  --white: #ffffff;
  --line: #eeeeee;
  --line-strong: #cccccc;
  --control: #8a8a8a;     /* input and chip borders: 3:1 on white */
  --accent: #3a7448;      /* --primary-accent */
  --accent-text: #3a7448; /* 5.9:1 on white */
  --accent-btn: #3a7448;
  --accent-hover: #2f5e3a;
  --accent-soft: #acd2b5; /* --navbar-focus */
  --top: #555555;         /* #top bar and #footer */
  --copyright: #333333;
  --warn: #9a5b00;
  --bad: #b3261e;
  --sans: "Roboto", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a class's display rule must never un-hide an element */
html { background: var(--copyright); }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }        /* short pages keep the footer at the bottom */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--heading); font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }
p { margin: 0 0 0.8rem; }
a { color: var(--accent-text); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hover); text-decoration: underline; }
main p a:not(.button), .lines td a, .issues a { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
::selection { color: #fff; background: var(--accent); }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.section { padding: 40px 0 70px; }
.center { text-align: center; }
.lede { max-width: 42rem; }

/* ---- header: #top strip, then the white menu bar --------------------------- */
#top { background: var(--top); color: #eeeeee; font-size: 12px; }
.top-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-top: 8px; padding-bottom: 8px; }
#top p { margin: 0; }
#top a { color: #eeeeee; }
.navigation { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 0 5px #cccccc; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.brand { padding: 10px 0; }
.brand img { height: 50px; width: auto; }
.navigation ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.navigation li a { display: flex; align-items: center; min-height: 62px; padding: 0 14px; border-top: 5px solid transparent;
  color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.navigation li a:hover, .navigation li a:focus { border-top-color: var(--accent); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.navigation li a.active { background: var(--accent); color: #fff; }
.badge { display: inline-block; margin-left: 0.4em; min-width: 1.6em; padding: 0 0.4em; border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 11px; line-height: 1.6; text-align: center; letter-spacing: 0; }
.navigation li a.active .badge { background: #fff; color: var(--accent); }
html { scroll-padding-top: 90px; }      /* focused fields never hide under the sticky bar */
@media (max-width: 900px) {
  /* On a phone a pinned bar would take a quarter of the screen: let it scroll away. */
  .navigation { position: static; }
  html { scroll-padding-top: 0; }
  .nav-inner { justify-content: center; }
  .brand img { height: 40px; }
  .navigation ul { justify-content: center; }
  .navigation li a { min-height: 44px; padding: 0 9px; }
}
.skip { position: absolute; left: 8px; top: -100px; z-index: 20; padding: 10px 16px; background: var(--white); color: #000; }
.skip:focus { top: 8px; color: #000; }

/* ---- page headings: .heading, uppercase with the green rule -------------- */
.heading { margin-bottom: 30px; }
.heading h1, .heading h2 { display: inline-block; margin: 0; padding-bottom: 10px; border-bottom: 5px solid var(--accent);
  font-size: clamp(1.5rem, 3vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.1; text-wrap: balance; }

/* ---- category filter ------------------------------------------------------ */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 40px; }
.filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 3px;
  color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.filter a:hover { background: var(--accent-soft); color: var(--heading); text-decoration: none; }
.filter a.active { background: var(--accent); color: #fff; }
/* Subcategories: a second, lighter row under the main filter. */
.filter:has(+ .filter.sub) { margin-bottom: 1rem; }
.filter.sub { gap: 0.4rem; }
.filter.sub a { padding: 0 14px; border-color: transparent; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.filter.sub a.active { border-color: var(--accent); }
.crumbs-category { margin: 0 0 0.75rem; text-align: center; }
.category + .category { margin-top: 50px; }
.category h2 { font-size: 1.2rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: 0.06em; }
.category h2 a { color: var(--heading); }
.category h2 a:hover { color: var(--accent-text); }

/* ---- pre-order season banner ------------------------------------------------ */
.season { margin: 0 0 30px; padding: 18px 22px; border-left: 5px solid var(--accent); background: var(--panel); }
.season p:last-child { margin-bottom: 0; }
.season .how { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.season .how li { margin-bottom: 0.3rem; }
.season.closed { border-left-color: var(--line-strong); }

/* ---- product cards: the theme's .box-image-text boxes ---------------------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e6e6e6; color: inherit; }
.card a:hover { text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.card .photo { display: block; overflow: hidden; }
.card img, .noimg { display: block; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: #f0f0f0; transition: transform .4s ease; }
.card a:hover img { transform: scale(1.08); }
.card .meta { display: grid; gap: 0.2rem; padding: 15px; text-align: center; }
.card .name { color: var(--heading); font-size: 1.05rem; font-weight: 700; transition: color .2s; }
.card a:hover .name { color: var(--accent-text); }
.card .price { color: var(--accent-text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---- product page ---------------------------------------------------------- */
.crumbs { margin: -10px 0 1.5rem; font-size: 0.95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; align-items: start; }
.product h1 { font-size: 1.9rem; margin: 0; }
.product .details { display: grid; gap: 1rem; min-width: 0; }
.product .sku { margin: -0.5rem 0 0; font-size: 0.95rem; }
.product .gallery { min-width: 0; }
.product .gallery img, .noimg.large { background: var(--panel); }
.noimg.large { aspect-ratio: 1; }
/* Photo strip under the main photo; scrolls sideways when it doesn't fit. */
.thumbs { list-style: none; display: flex; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0 0 4px; overflow-x: auto; }
.thumbs li { flex: none; }
.thumbs button { display: block; min-height: 0; width: 4.5rem; height: 4.5rem; padding: 0; border: 2px solid transparent;
  background: var(--panel); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent-text); }
.thumbs button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product .price { font-size: 1.5rem; color: var(--accent-text); margin: 0; font-variant-numeric: tabular-nums; }
.description p { margin: 0 0 0.6rem; }
.picker { display: grid; gap: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { color: var(--heading); font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.9rem; border: 1px solid var(--control); border-radius: 3px; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.chip span:hover { border-color: var(--accent-text); }
.chip input:checked + span { border-color: var(--accent-text); background: var(--accent-btn); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.chip.unavailable span { border-style: dashed; color: var(--muted); }
.fixed-option { margin: 0; color: var(--muted); }
.availability { margin: 0; min-height: 1.5em; color: var(--muted); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.buy input { width: 5rem; }
.added { margin: 0; }

/* ---- forms and buttons: .form-control and .btn-template-main ----------------- */
input, textarea, select, button, .button { font: inherit; }
label { color: var(--text); }
input, textarea, select { min-height: 44px; padding: 0.5rem 0.65rem; border: 1px solid var(--control); border-radius: 0;
  background: var(--field); color: var(--text); transition: border-color .2s, box-shadow .2s; }
input:hover, textarea:hover, select:hover { border-color: var(--accent-text); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 8px rgba(106, 174, 122, 0.6); }
input[type=radio] { accent-color: var(--accent-text); width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; flex: none; }
select option { background: var(--field); color: var(--text); }
button, .button { display: inline-block; min-height: 44px; padding: 10px 24px; border: 1px solid var(--accent); border-radius: 3px;
  background: #fff; color: var(--accent-text); cursor: pointer; text-align: center; font-weight: 500; transition: all .2s ease-in; }
button:hover, .button:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
button.primary, .button.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 30px; }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
button:disabled, button:disabled:hover { opacity: 0.45; cursor: not-allowed; background: #fff; color: var(--muted); border-color: var(--line-strong); }
button.primary:disabled, button.primary:disabled:hover { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
button.link { border: 0; padding: 0.5rem 0.25rem; background: none; color: var(--muted); text-decoration: underline; text-transform: none; letter-spacing: 0; }
button.link:hover { background: none; color: var(--bad); }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* ---- cart ------------------------------------------------------------------ */
.cart, .checkout-cart, .review, .done, .quote-panel { background: var(--panel); padding: 25px; }
.table-scroll { overflow-x: auto; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.lines th, .lines td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td a { color: var(--heading); font-weight: 700; }
.lines td a:hover { color: var(--accent); }
.lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines input { width: 4.2rem; }
.lines tr.blocked td { color: var(--muted); }
.muted { color: var(--muted); }
.note { color: var(--warn); font-size: 0.9rem; }
.issues { color: var(--bad); padding-left: 1.2rem; }
.error { color: var(--bad); border-left: 3px solid var(--bad); padding: 0.4rem 0.75rem; background: #fdf0ef; }
.fulfillment { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 1.4rem 0 0.5rem; }
.fulfillment label { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.fulfillment legend { width: 100%; }
.totals { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 0.35rem 2rem; font-variant-numeric: tabular-nums; margin: 1.2rem 0 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; color: var(--heading); }
.cart > .primary, .cart > .button { margin-top: 1.5rem; }
.cart > .button.primary { float: right; }
.cart::after { content: ""; display: table; clear: both; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- quote ----------------------------------------------------------------- */
.quote { display: grid; gap: 0.4rem; max-width: 34rem; margin-top: 1.5rem; }
.quote button { margin-top: 1rem; justify-self: start; }
[data-quote-cart]:not(:empty) { margin-top: 1.5rem; }

/* ---- checkout ---------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.checkout-cart .cart { padding: 0; background: none; }
.checkout-cart > p:last-child { margin: 1rem 0 0; }
.checkout-form { display: grid; gap: 1.6rem; min-width: 0; }
.checkout-form fieldset:not(.fulfillment) { display: grid; gap: 0.35rem; }
.checkout-form fieldset label { margin-top: 0.35rem; }
.checkout-form .fulfillment { margin: 0; }
.checkout-form .fulfillment label { margin-top: 0; }
.checkout-form input:not([type=radio]), .checkout-form select { width: 100%; }
.row3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 0.75rem; }
.row3 > div { display: grid; gap: 0.35rem; min-width: 0; }
@media (max-width: 30rem) { .row3 { grid-template-columns: 1fr 1fr; } .row3 > div:first-child { grid-column: 1 / -1; } }
.review h2 { margin-bottom: 0.25rem; }
.review .totals { justify-content: stretch; grid-template-columns: 1fr auto; }
.totals .grand { font-weight: 700; font-size: 1.15rem; color: var(--heading); border-top: 1px solid var(--line-strong); padding-top: 0.45rem; margin-top: 0.2rem; }
#card-container { min-height: 90px; }
.small { font-size: 0.85rem; margin: 0; }
.terms-note { margin-top: 0.5rem; }
.checkout-form [data-submit] { justify-self: start; min-width: 14rem; }
.done { grid-column: 1 / -1; max-width: 40rem; margin: 0 auto; text-align: center; padding: 40px 30px; border-top: 3px solid var(--accent); }
.done:focus { outline: none; }
.done h2 { font-size: 1.8rem; }
.done .ref { font-size: 1.3rem; color: var(--heading); letter-spacing: 2px; }
.done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* ---- footer: #footer columns, then #copyright ------------------------------ */
#footer { background: var(--top); color: #dddddd; font-size: 0.9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2.5rem; padding-top: 40px; padding-bottom: 30px; }
#footer h4 { color: #eeeeee; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.8rem; }
#footer a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
#footer a:hover { color: var(--accent-soft); }
#copyright { background: var(--copyright); color: #cccccc; font-size: 12px; }
#copyright p { margin: 0; padding: 20px 0; }

/* ---- small screens ------------------------------------------------------------ */
@media (max-width: 560px) {
  .section { padding: 36px 0 60px; }
  .cart, .checkout-cart, .review, .done, .quote-panel { padding: 18px 15px; }
  /* Cart lines become cards: name on top, then quantity, price and Remove. */
  .lines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lines, .lines tbody { display: block; }
  .lines tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "item item item" "qty price remove";
    align-items: center; gap: 0.5rem 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .lines td { display: block; padding: 0; border: 0; }
  .lines td:nth-child(1) { grid-area: item; }
  .lines td:nth-child(2) { grid-area: qty; text-align: left; }
  .lines td:nth-child(3) { grid-area: price; }
  .lines td:nth-child(4) { grid-area: remove; }
  .lines td:nth-child(2)::before { content: "Qty "; color: var(--muted); }
  .lines td:empty { display: none; }
  .cart > .button.primary { float: none; display: block; width: 100%; }
  .buy { display: grid; grid-template-columns: auto 6rem 1fr; }
  .buy button { grid-column: 1 / -1; width: 100%; }
  .checkout-form [data-submit] { justify-self: stretch; width: 100%; }
  .done { padding: 28px 18px; }
  .done .actions .button { width: 100%; }
}

/* ---- user preferences ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .card a:hover img { transform: none; }
}
@media (forced-colors: active) {
  /* The chip's own radio is invisible, so mark the chosen one with a system colour. */
  .chip input:checked + span { outline: 3px solid Highlight; outline-offset: 2px; }
  .badge { border: 1px solid CanvasText; }
  .thumbs button[aria-pressed="true"] { border-color: Highlight; }
}
