/* Celtic Ore Crafts. Colours from the 2026 logo: forest greens, ore gold, cream. */
:root {
  --forest: #0c240c;
  --forest-2: #143316;
  --green: #184818;
  --green-m: #246024;
  --moss: #5e7c16;
  --gold: #f0cc54;
  --gold-d: #c9a63c;
  --cream: #faf8ee;
  --parch: #fffdf5;
  --ink: #1d2a1d;
  --muted: #5f6b5c;
  --line: #e2dfcf;
  --err: #a33a22;
  --promo: #c62828;
  --ok-bg: #eaf3e1;
  --err-bg: #f8e6e0;
  --info-bg: #fdf5d8;
  --radius: 8px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-m); }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); line-height: 1.2; font-weight: normal; }
h1 { font-size: 2rem; margin: .3em 0 .4em; }
h2 { font-size: 1.45rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1em 0 .4em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding-top: 16px; padding-bottom: 40px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60em; }
.muted { color: var(--muted); font-size: .92em; }
.pre { white-space: pre-line; }
.right { text-align: right; }
.empty { color: var(--muted); padding: 2em 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: .25em 0; }
code.copy { display: block; word-break: break-all; background: #fff; border: 1px solid var(--line); padding: 8px; margin-top: 6px; border-radius: 4px; user-select: all; }

/* Top of page */
.preview-bar { background: var(--gold); color: var(--forest); text-align: center; font-size: .85rem; padding: 4px 16px; font-weight: 600; }
.topbar { background: var(--forest); color: #dfe6d6; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.topbar a:hover { color: var(--gold); }
.badge { display: inline-block; background: var(--gold); color: var(--forest); border-radius: 10px; padding: 0 7px; margin-left: 5px; font-weight: 700; font-size: .8rem; }
.header { background: var(--parch); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 300px; height: auto; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; background: #fff; }
.search button { padding: 0 16px; border: 0; background: var(--green); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; font: inherit; cursor: pointer; }
.menu-toggle { display: none; }

.nav { background: var(--green); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 6px rgba(0,0,0,.15); } /* stays on screen while scrolling */
.nav-promo > a { color: var(--gold); }
.nav-in { list-style: none; margin: 0 auto; display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a { display: block; color: #fff; text-decoration: none; padding: 11px 14px; font-weight: 500; }
.nav-item > a:hover, .nav-item.active > a { color: var(--gold); }
.nav-right { margin-left: auto; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 230px; list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.nav-sub a { display: block; padding: 7px 16px; color: var(--ink); text-decoration: none; }
.nav-sub a:hover { background: var(--cream); color: var(--green); }
/* Jewellery: two columns, Collections and By type, as on the old Zoho shop (James, 21 Oct 2026). */
.nav-mega { padding: 12px 6px 10px; gap: 8px; }
.nav-col { min-width: 210px; }
.nav-col ul { list-style: none; margin: 0; padding: 0; }
.nav-col-h { margin: 0 0 4px; padding: 0 16px; font-weight: 700; color: var(--green); }
.nav-codes ul { columns: 3; column-gap: 0; } /* Scarves by code (James, 21 Oct 2026) */
.nav-codes a { padding: 7px 14px; white-space: nowrap; }
.nav-coded { display: flex; align-items: baseline; } /* a scarf style with its codes beside it, small and grey */
.nav-coded > a { flex: 0 0 265px; }
.nav-code-list { display: flex; padding-right: 14px; white-space: nowrap; }
.nav-sub .nav-code-list a { display: inline; padding: 7px 5px; font-size: .8rem; color: var(--muted); }
.nav-sub .nav-code-list a:hover { background: none; color: var(--green); text-decoration: underline; }
@media (hover: hover) {
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
  .nav-item:hover .nav-mega, .nav-item:focus-within .nav-mega { display: flex; }
}

/* Hero */
.hero { position: relative; background: var(--forest); }
.hero img { width: 100%; height: auto; aspect-ratio: 3.65 / 1; object-fit: cover; object-position: center bottom; }
/* Shade only the left, behind the text, so the photo itself keeps its colours (James, 19 Oct 2026). */
.hero-text { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to right, rgba(8,26,8,.38) 0%, rgba(8,26,8,.18) 32%, rgba(8,26,8,0) 52%); color: #fff; padding: 0 0 28px; text-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.25); }
.hero-text .wrap { width: 100%; }
.hero-text .btn { text-shadow: none; }
.hero-text h1 { color: #fff; font-size: 2.2rem; margin: 0 0 .2em; max-width: 18em; }
.hero-text p { margin: .3em 0 .6em; font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--forest); color: #fff; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--gold-d); color: var(--forest); }
.btn-light { background: #fff; color: var(--green); border: 1px solid var(--green); }
.btn-light:hover { background: var(--cream); color: var(--forest); }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--green-m); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
form.inline { display: inline; margin-left: 10px; }

/* Home */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.cat-card:hover { border-color: var(--gold-d); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.cat-img img, .cat-img .ph { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.cat-body { padding: 12px 16px 16px; }
.cat-body h3 { margin: 0 0 .3em; }
.cat-body p { margin: 0 0 .5em; color: var(--muted); font-size: .95rem; }
.cat-count { font-size: .85rem; color: var(--moss); font-weight: 600; }
/* Featured products: one row that scrolls sideways */
.strip { position: relative; }
.strip-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 8px; }
.strip-track .card { scroll-snap-align: start; }
.strip-btn { position: absolute; top: 38%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--green); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.strip-btn:hover { background: var(--gold); }
.strip-btn.prev { left: -14px; }
.strip-btn.next { right: -14px; }
.featured h2 { margin-top: .4em; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; border-top: 1px solid var(--line); }
.points p { color: var(--muted); }

/* Catalogue */
.crumbs { font-size: .88rem; color: var(--muted); margin: 6px 0 4px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; align-items: center; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 13px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.chip span { color: var(--muted); font-size: .85em; margin-left: 3px; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on span { color: #d6e4c8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { border-color: var(--gold-d); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card-img img, .card-img .ph { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; background: #fff; }
.card-body { padding: 10px 12px 12px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.card-name { font-weight: 600; line-height: 1.3; }
.tag-promo { align-self: flex-start; background: var(--gold); color: var(--forest); font-size: .75rem; font-weight: 700; border-radius: 4px; padding: 1px 7px; margin-bottom: 5px; }
/* Promotions (James, 20 Oct 2026): the normal price struck through in grey, then the price in a red label. */
.was { color: var(--muted); font-weight: normal; margin-right: 6px; }
.now-pill { display: inline-block; background: var(--promo); color: #fff; font-weight: 700; border-radius: 999px; padding: 2px 12px; white-space: nowrap; }

/* Quantity box with minus and plus */
.qty { display: inline-flex; align-items: stretch; border: 1px solid #cfcab4; border-radius: 6px; overflow: hidden; background: #fff; vertical-align: middle; }
.qty input[type=number] { width: 62px; min-height: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; padding: 7px 4px; font: inherit; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; min-height: 44px; border: 0; background: var(--cream); color: var(--green); font-size: 1.15rem; font-weight: 700; cursor: pointer; padding: 0; }
.qty-btn:hover { background: var(--gold); color: var(--forest); }
.min-order { background: var(--info-bg); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 4px; margin-top: 18px; font-weight: 600; }
.card-codes { margin-top: 6px; }
.code-pill { display: inline-block; background: #1a7f37; /* brighter green (James, 5 Nov) */ color: #fff; font-weight: 700; border-radius: 14px; padding: 2px 8px; line-height: 1.35; }
.code-pill .ccode { white-space: nowrap; }
@media (max-width: 600px) { .code-pill { font-size: .85rem; padding: 2px 8px; } }
.card-meta { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.card-meta:empty { display: none; }
.card-price { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--green); }
.ph { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f4f1e4, #f4f1e4 10px, #efebdb 10px, #efebdb 20px); color: var(--muted); font-size: .85rem; aspect-ratio: 1 / 1; width: 100%; }
.ph-sm { display: block; width: 56px; height: 56px; background: #f1eedf; border-radius: 4px; }
.note { background: var(--info-bg); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 4px; }

/* Pages of results */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; color: var(--ink); }
.pager span.on { background: var(--green); border-color: var(--green); color: #fff; }

/* Product */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 10px; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img, .gallery-main .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs a { border: 2px solid transparent; border-radius: 4px; background: #fff; }
.thumbs a.on { border-color: var(--gold-d); }
.thumbs img { width: 72px; height: 72px; object-fit: contain; }
.info h1 { margin-top: 0; }
.variant { font-size: 1.15rem; margin: -.2em 0 .6em; color: var(--muted); }
/* Stock is never shown, except to say a code is out (James, 16 Oct 2026). */
.oos { color: var(--err); font-weight: 600; }
.price { font-size: 1.6rem; color: var(--green); font-weight: 700; margin: .2em 0 .6em; }
.price small { font-size: .9rem; color: var(--muted); font-weight: normal; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 18px; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }
dl.details.wide { grid-template-columns: 11em 1fr; }
.add-one { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.add-one .qty input[type=number] { width: 62px; }
.variants { margin-top: 28px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--parch); }
td.num, th.num { text-align: right; }
tfoot td { background: var(--parch); }
tr.on td { background: #fbf6df; }
tr.gone td { color: var(--muted); }
.vthumb { width: 70px; }
.vthumb img, .vthumb .ph { width: 56px; height: 56px; object-fit: contain; font-size: 0; }
table input[type=number] { width: 90px; text-align: right; }
table.small td, table.small th { padding: 6px 10px; font-size: .9rem; }

/* Forms */
.form { display: grid; gap: 14px; margin: 16px 0; }
.form.compact { gap: 10px; }
.form label { display: grid; gap: 5px; font-weight: 500; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 12px; background: #fff; margin: 0; }
.form legend { font-family: var(--serif); color: var(--forest); padding: 0 6px; font-size: 1.1rem; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid #cfcab5; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold-d); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
.form label.check input { width: auto; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inline-search { display: flex; gap: 8px; max-width: 420px; }
.submit-order { max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; }
.express { display: grid; gap: 6px; }
.express-head, .express-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.express-head { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Messages */
.flash { padding: 11px 15px; border-radius: 6px; margin: 12px 0; }
.flash-ok { background: var(--ok-bg); border-left: 4px solid var(--moss); }
.flash-err { background: var(--err-bg); border-left: 4px solid var(--err); }
.flash-info { background: var(--info-bg); border-left: 4px solid var(--gold-d); }
.err { color: var(--err); }

/* Account and admin */
.account { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.account aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 18px; align-self: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--green); margin: 4px 0 16px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink); border-radius: 6px 6px 0 0; }
.tabs a.on { background: var(--green); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font-size: 1.8rem; font-family: var(--serif); color: var(--forest); font-weight: normal; }
.stat.hot { border-color: var(--gold-d); background: #fffbea; }
.status { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 10px; background: #eee; color: #444; text-transform: capitalize; font-family: var(--sans); vertical-align: middle; }
.status-pending, .status-new, .status-not_configured { background: #fdf0c4; color: #6b5300; }
.status-approved, .status-done, .status-sent, .status-exported { background: var(--ok-bg); color: #2f5a12; }
.status-refused, .status-suspended, .status-cancelled, .status-failed { background: var(--err-bg); color: var(--err); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 4px 0 4px 28px; position: relative; }
.checklist li::before { position: absolute; left: 0; font-weight: 700; }
.checklist li.ok::before { content: "✓"; color: var(--moss); }
.checklist li.todo::before { content: "○"; color: var(--gold-d); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-top: 20px; }
.panel summary { cursor: pointer; font-weight: 600; color: var(--green); }
.people li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ranked { padding-left: 1.4em; }
.ranked li { margin: 3px 0; }
.message { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 10px 0; }
.message.done { opacity: .6; }
.prose { max-width: 760px; }
.prose li { margin: .3em 0; }

/* Footer */
.footer { background: var(--forest); color: #dfe6d6; margin-top: 30px; }
.footer-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 30px; padding-bottom: 20px; }
.footer h3 { color: var(--gold); font-size: 1.05rem; }
.footer a { color: #fff; }
.footer-logo { background: var(--parch); padding: 8px; border-radius: 6px; width: 180px; }
.legal { border-top: 1px solid var(--forest-2); padding-top: 12px; padding-bottom: 18px; font-size: .82rem; color: #aeb9a5; }

/* Phones */
@media (max-width: 800px) {
  h1 { font-size: 1.6rem; }
  .header-in { flex-wrap: wrap; gap: 10px; }
  .logo img { width: 220px; }
  .menu-toggle { display: block; margin-left: auto; background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { display: none; position: static; box-shadow: none; }
  .nav.open { display: block; }
  .nav-in { flex-direction: column; gap: 0; padding: 0; }
  .nav-item > a { padding: 10px 16px; border-top: 1px solid var(--green-m); }
  .nav-sub { display: block; position: static; box-shadow: none; border: 0; background: var(--forest-2); padding: 0 0 6px; }
  .nav-sub a { color: #dfe6d6; padding: 6px 32px; }
  .nav-mega { padding: 4px 0 6px; }
  .nav-col-h { color: var(--gold); padding: 6px 32px 2px; font-size: .9rem; }
  .nav-codes ul { padding-left: 16px; }
  .nav-codes a { padding: 6px 16px; }
  .nav-coded { display: block; }
  .nav-code-list { padding: 0 24px 4px; flex-wrap: wrap; white-space: normal; }
  .nav-sub .nav-code-list a { color: #b9c7ad; padding: 2px 8px; }
  .nav-right { margin-left: 0; }
  .hero img { aspect-ratio: 2.4 / 1; }
  .hero-text { position: static; display: block; background: var(--forest); padding: 16px 0 20px; text-shadow: none; }
  .strip-btn { display: none; }
  .hero-text h1 { font-size: 1.6rem; }
  .product, .account { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-body { padding: 8px 10px 12px; }
  .cat-body p { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .topbar a { margin-left: 12px; }
}

/* ---- James, 20 Oct 2026: home page sections in the style of the old Zoho shop ---- */
.section-title { text-align: center; font-size: 2rem; margin: .6em 0 .15em; }
.section-sub { text-align: center; color: var(--green-m); margin: 0 0 28px; }

/* Shop by category: rounded white cards, the whole photo shown (no crop), the name underneath (James, 20 Oct) */
.zcat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.zcat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.zcat-card:hover { border-color: var(--gold-d); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.zcat-img { overflow: hidden; background: #fff; }
.zcat-img img, .zcat-img .ph { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; transition: transform .45s ease; }
.zcat-card:hover .zcat-img img { transform: scale(1.04); }
.zcat-name { padding: 12px 16px 14px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; color: var(--forest); }

/* Featured products: four cards at a time, arrows outside, dots underneath, photo zooms on hover */
.zfeat .strip { padding: 0 44px; }
.zfeat .strip-track { grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; scrollbar-width: none; padding: 4px 2px 6px; }
.zfeat .strip-track::-webkit-scrollbar { display: none; }
.zfeat .strip-btn { top: 42%; border: 0; background: none; box-shadow: none; color: #5b7287; font-size: 1.9rem; width: 34px; }
.zfeat .strip-btn:hover { background: none; color: var(--forest); }
.zfeat .strip-btn.prev { left: 0; }
.zfeat .strip-btn.next { right: 0; }
.zcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.zcard-img { overflow: hidden; background: #fff; }
.zcard-img img, .zcard-img .ph { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; transition: transform .45s ease; }
.zcard:hover .zcard-img img { transform: scale(1.08); }
.zcard-body { padding: 12px 12px 14px; border-top: 1px solid var(--line); background: var(--parch); flex: 1; }
.zcard-name { font-size: .95rem; line-height: 1.4; }
.zcard-price { margin-top: 6px; color: var(--green-m); font-size: .95rem; }
.strip-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.strip-dots button { width: 11px; height: 11px; padding: 0; border: 1px solid #9aa9b5; background: #fff; transform: rotate(45deg); cursor: pointer; }
.strip-dots button.on { background: #9aa9b5; }
@media (max-width: 900px) { .zfeat .strip-track { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 700px) {
  .zcat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .zfeat .strip { padding: 0; }
  .zfeat .strip-track { grid-auto-columns: 70%; gap: 12px; }
  .section-title { font-size: 1.6rem; }
}

/* Delivery addresses (shops) */
.form fieldset.shops textarea { margin-top: 2px; }
.form fieldset.shops { scroll-margin-top: 90px; } /* clear of the green menu bar when scrolled to */
.form fieldset.shops.need { border: 2px solid var(--err); box-shadow: 0 0 0 4px rgba(198, 40, 40, .15); }
.where-msg { color: var(--err); font-weight: 700; margin: 0 0 10px; }
.addr { display: grid; gap: 8px; margin-top: 6px; }
.addr label { margin: 0; }
.addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .addr-row { grid-template-columns: 1fr; } }
.addr .need { color: var(--err); }
.addr input.caps { text-transform: uppercase; }
.addr input.bad { border: 2px solid var(--err); }
.addr-msg { color: var(--err); font-weight: 700; margin: 4px 0 0; }
.addr[hidden] { display: none; }
@media (max-width: 600px) { .topbar .acct-name { display: none; } }
.shops-admin li.gone { opacity: .55; }
.shops-admin details form { margin: 8px 0; }
.shop-pick { display: block; margin-top: 4px; }
.shop-pick select { width: auto; font-size: .9rem; padding: 2px 6px; margin-right: 6px; }

/* 22 Oct 2026: in-place basket message, lightbox, photo swap (James's tests) */
.added-note { margin: 8px 0 0; padding: 8px 10px; background: #eef4e6; border: 1px solid #c9dbb3; border-radius: 6px; font-size: 0.95rem; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 28, 20, 0.85); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(92vw, 900px); max-height: 80vh; background: #fff; border-radius: 8px; cursor: default; }
.lightbox p { color: #fff; margin: 10px 0 0; font-size: 1rem; }
.lightbox-close { position: absolute; top: 12px; right: 16px; font-size: 2rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; min-width: 44px; min-height: 44px; }
.vthumb a[data-lightbox] { cursor: zoom-in; }
.basket-link { padding: 10px 12px; display: inline-block; }
form.inline { display: inline-block; margin: 6px 0 0; }
tr.backorder td { background: #fff6e5; }
/* 23 Oct 2026: van / back-order marks and the customer's signature on an order (Aidan's app) */
.tag-warn { display: inline-block; background: #fff4d6; color: #7a5200; border: 1px solid #f0d58f; border-radius: 10px; padding: 0 8px; font-size: 0.85rem; margin-left: 6px; }
.flash-warn { background: #fff4d6; border: 1px solid #f0d58f; border-radius: 6px; padding: 8px 12px; }
.signed .signature { display: block; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; max-width: 100%; }

/* The options grid and flicking through photos (James, 4 Nov 2026, from his chosen example) */
.ogrid-sub { color: var(--muted); margin: -4px 0 12px; }
.ofill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ofill input { width: 70px; padding: 8px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ocard.cur { box-shadow: 0 0 0 2px var(--gold-d) inset; }
.ocard.on { border: 2px solid var(--green-m); box-shadow: 0 0 0 3px #e3efe3; }
.ocard .oph { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; cursor: zoom-in; }
.ocard .oph img { width: 92%; height: 92%; object-fit: contain; }
.ocard .oph .ph-sm { color: var(--muted); font-size: .9rem; }
.ocard .ozoom { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 7px; font-size: .8rem; padding: 2px 7px; color: var(--green-m); }
.ocard .ocount { position: absolute; top: 8px; right: 8px; background: var(--gold); color: var(--forest); font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.ocard .ot { padding: 8px 12px 4px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ocard .ot a { font-size: .85rem; color: var(--muted); }
.ocard .oprice { font-size: .95rem; }
.ocard .qty { margin: 6px 12px 12px; display: grid; grid-template-columns: 44px 1fr 44px; }
.ocard .qty input { width: 100%; }
.obar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-top: 16px; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.obar .osum { font-weight: 700; }
@media (max-width: 600px) { .ogrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gallerybox img { touch-action: pan-y; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.92); border: 0; border-radius: 999px; width: 52px; height: 52px; font-size: 2rem; line-height: 1; color: var(--green); cursor: pointer; }
.gal-nav:disabled { opacity: .3; cursor: default; }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gallery-main img { cursor: zoom-in; }

/* Past orders on the website (James, 4 Nov 2026) */
.plist { display: grid; gap: 12px; margin-top: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.pcard > summary { cursor: pointer; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 1.05rem; }
.pcard[open] > summary { border-bottom: 1px solid var(--line); }
.pcard .psum { margin-left: auto; color: var(--muted); font-size: .92rem; }
.ptag { font-size: .8rem; background: #fdf5d8; border-radius: 999px; padding: 2px 9px; }
.ptable { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ptable td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable td.pthumb { width: 64px; }
.ptable td.pthumb img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.ptable td.num { text-align: right; width: 1%; white-space: nowrap; }
.pstand { margin: 10px 0; border: 1px solid #1f4e8c; border-left: 6px solid #1f4e8c; border-radius: 8px; background: #f3f7fd; }
.pstand > summary { cursor: pointer; padding: 10px 12px; color: #16365f; }
.pstand-name { display: inline-block; background: #1f4e8c; color: #fff; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin-right: 6px; }
.pstand .ptable { background: #fff; margin: 0; }

/* A design with several colours opens straight onto its grid (James, 4 Nov 2026): the single big photo and the
   single-colour details step aside; the grid's heading carries the name, code and price. */
.product.as-design { display: none; }
.design-title { margin: 6px 0 2px; } .design-code { color: var(--muted); font-size: .7em; margin-left: 6px; }
.design-sub { font-size: 1.1rem; color: var(--muted); font-family: var(--sans); margin: 0 0 6px; }

/* Search suggestions with photos (James, 4 Nov 2026) */
form.search.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); max-height: 70vh; overflow-y: auto; }
.suggest .sug { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest .sug:hover, .suggest .sug.on { background: #f3f7f0; }
.sug-ph { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; overflow: hidden; }
.sug-ph img { width: 100%; height: 100%; object-fit: contain; }
.sug-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sug-tx span { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-pr { font-weight: 700; white-space: nowrap; }
.suggest .sug-all { display: block; padding: 10px 12px; color: var(--green-m); font-weight: 600; }

/* A design in sizes, beside its photo (James, 5 Nov 2026) */
form.sizes { margin: 6px 0 18px; }
.sizes-sub { margin: 0 0 10px; color: var(--muted); }
.srows { display: grid; gap: 8px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 8px 14px; }
.srow.cur { box-shadow: 0 0 0 2px var(--gold-d) inset; }
.srow.on { border: 2px solid var(--green-m); box-shadow: 0 0 0 3px #e3efe3; }
.srow .slabel { display: flex; flex-direction: column; }
.srow .slabel a { font-size: .85rem; color: var(--muted); }
.srow .qty { flex: none; }
form.sizes .ofill { margin: 12px 0 0; }
form.sizes .obar { margin-top: 12px; }

/* The second row of buttons that replaced the drop-downs (James, 5 Nov 2026) */
.chips-more { align-items: center; margin-top: -4px; }
.chips-more .chips-h { color: var(--muted); font-size: .9rem; margin-right: 4px; }
.chips-more .chip { font-size: .9rem; padding: 5px 12px; }
