:root {
  --ink: #14202e; --muted: #5d6b7a; --line: #e3e8ee; --bg: #f6f8fa; --card: #fff;
  --brand: #0b5cad; --brand-dk: #084785; --accent: #f5a524; --ok: #1a7f4b; --warn: #b26a00; --bad: #c0362c;
  --radius: 10px; --shadow: 0 1px 2px rgba(20,32,46,.06), 0 4px 16px rgba(20,32,46,.06);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .4em 0 .5em; }
h2 { font-size: 1.3rem; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.r { text-align: right; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .oos { color: var(--bad); font-weight: 600; font-size: .9rem; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; color: var(--header-ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; }
.search { flex: 1; }
.search input { width: 100%; padding: 10px 14px; border: 1px solid var(--search-line); border-radius: 999px; background: var(--search-bg); color: var(--ink); font: inherit; }
.basket { font-weight: 600; white-space: nowrap; color: var(--header-ink); }
.badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: .8rem; text-align: center; }
.cat-nav { display: flex; gap: 22px; padding-bottom: 10px; overflow-x: auto; }
.cat-nav a { color: var(--header-muted); font-weight: 600; white-space: nowrap; }

main.wrap { padding-top: 24px; padding-bottom: 60px; min-height: 60vh; }

/* Buttons & forms */
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; border: 0; background: var(--brand); color: var(--btn-ink); font: 600 1rem/1.2 inherit; font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--brand-dk); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; width: 100%; }
.btn-danger { background: var(--bad); }
.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.link.danger { color: var(--bad); }
.form label { display: block; margin-bottom: 14px; font-weight: 500; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea,
.edit-table input:not([type=checkbox]), .filters input, .filters select, .sort select {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #cdd5de; border-radius: 8px; font: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(11,92,173,.35); border-color: var(--brand); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad) !important; }
.err { display: block; color: var(--bad); font-size: .85rem; font-weight: 500; margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; background: #e8f5ee; color: var(--ok); }
.flash-error { background: #fdecea; color: var(--bad); }

/* Home */
.hero { background: var(--hero-bg); color: var(--hero-ink); border-radius: 16px; padding: 48px 40px; margin-bottom: 28px; }
.hero h1 { font-size: 2.3rem; max-width: 640px; margin-top: 0; }
.hero p { max-width: 560px; opacity: .92; font-size: 1.1rem; }
.hero .btn { background: var(--hero-btn-bg); color: var(--hero-btn-ink); margin-right: 8px; margin-top: 8px; }
.hero .btn-ghost { background: transparent; color: var(--hero-ink); border: 1px solid currentColor; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 36px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); color: var(--ink); }
.tile:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.tile h2 { margin: 0 0 6px; }
.tile p { color: var(--muted); margin: 0 0 12px; }
.tile-link { color: var(--link); font-weight: 600; }
.section-title { margin: 36px 0 16px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; }
.card:hover { text-decoration: none; box-shadow: 0 2px 4px rgba(20,32,46,.08), 0 10px 28px rgba(20,32,46,.12); }
.card-img { aspect-ratio: 4/3; background: #eef2f6; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 18px; }
.card h3 { font-size: 1rem; margin: 6px 0 8px; line-height: 1.35; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; background: #e8eef5; color: var(--muted); }
.tag-refurb { background: #e6f4ec; color: var(--ok); }
.tag-service { background: #fff3dc; color: var(--warn); }
.price { font-weight: 700; font-size: 1.1rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.price small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.price-lg { font-size: 1.8rem; margin: 10px 0 14px; }

/* Category head */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; }
.sort label { font-size: .9rem; color: var(--muted); }

/* Product page */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.product-img { background: #eef2f6; border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 1; }
.product-img img { max-height: 100%; object-fit: contain; }
.product h1 { margin-top: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.add-form { display: flex; gap: 10px; margin-bottom: 24px; }
.add-form input { width: 80px; padding: 10px; border: 1px solid #cdd5de; border-radius: 8px; font: inherit; }
.desc { color: #2d3b4a; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th.r, .table td.r { text-align: right; }
.table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; }
.qty { width: 80px !important; padding: 8px !important; border: 1px solid #cdd5de; border-radius: 6px; font: inherit; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.checkout .form { background: var(--card); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.zones { display: grid; gap: 8px; margin-bottom: 16px; }
.radio { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin: 0 !important; }
.radio span { flex: 1; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.summary { background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 130px; }
.summary h2 { margin-top: 0; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sum-sub { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.sum-total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.narrow { max-width: 620px; margin: 30px auto; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 32px 0; }
.site-footer a { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .muted { color: #8c9aa8; }

@media (max-width: 800px) {
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .basket { margin-left: auto; }
  .hero { padding: 32px 22px; } .hero h1 { font-size: 1.7rem; }
  .product, .checkout { grid-template-columns: 1fr; gap: 20px; }
  .product { padding: 18px; }
  .summary { position: static; order: -1; }
  .row2, .row3 { grid-template-columns: 1fr; gap: 0; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 14px; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .cart-table tfoot tr { display: flex; justify-content: space-between; }
}

/* CMS pages & contact form */
.page { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; max-width: 860px; }
.page h1 { margin-top: 0; }
.page-body h2 { margin-top: 1.6em; }
.page-body table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.page-body th, .page-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.page-body .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-form { margin: 1em 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 800px) { .page { padding: 20px; } .page-body .cols2 { grid-template-columns: 1fr; } }

.test-banner { background: repeating-linear-gradient(45deg, #f5a524, #f5a524 12px, #f7b540 12px, #f7b540 24px); color: #111; font-weight: 700; text-align: center; padding: 7px 12px; font-size: .9rem; }
.status-test { background: #f5a524; color: #111; }

/* Customer accounts */
.account-link { font-weight: 600; white-space: nowrap; color: var(--header-ink); }
.auth-box { max-width: 440px; margin: 20px auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.auth-box h1 { margin-top: 0; }
.account-section { margin-bottom: 28px; }
.account-section .form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.account-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.box-plain { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.notice { background: #fff8e6; border: 1px solid #f5d38a; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
form.inline { display: inline; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; background: #e8eef5; color: var(--muted); vertical-align: middle; }
.status-paid { background: #fff3dc; color: var(--warn); }
.status-processing { background: #e3effc; color: var(--brand); }
.status-shipped, .status-completed { background: #e6f4ec; color: var(--ok); }
.status-cancelled, .status-refunded { background: #fdecea; color: var(--bad); }
@media (max-width: 800px) { .account-cols { grid-template-columns: 1fr; } .account-link { margin-left: auto; } .basket { margin-left: 0; } }


/* ===== Branding & themes ================================================= */
@font-face { font-family: "Michroma"; src: url("fonts/michroma.woff2") format("woff2"); font-display: swap; }

:root, .theme-sign {
  --brand: #141414; --brand-dk: #000; --btn-ink: #ffd21f; --link: #a85400;
  --accent: #f39200; --accent-soft: #fff4d6; --badge-bg: #141414; --badge-ink: #ffd21f;
  --header-bg: linear-gradient(100deg, #f39200 0%, #f7a800 45%, #ffd21f 100%); --header-ink: #141414; --header-muted: #2a2109;
  --search-bg: rgba(255,255,255,.85); --search-line: rgba(0,0,0,.15);
  --hero-bg: #141414; --hero-ink: #fff; --hero-accent: #ffd21f; --hero-btn-bg: linear-gradient(100deg, #f39200, #ffd21f); --hero-btn-ink: #141414;
  --footer-bg: #141414; --footer-ink: #cfcfcf; --bg: #f6f4ef;
  --logo-dark-display: none; --logo-light-display: block;
}
.theme-amber, .theme-amber-sign {
  --brand: #f29100; --brand-dk: #d97f00; --btn-ink: #141414; --link: #a85400;
  --accent: #f29100; --accent-soft: #fff4d6; --badge-bg: #f29100; --badge-ink: #141414;
  --header-bg: #fff; --header-ink: #141414; --header-muted: #5d5545;
  --search-bg: #f6f4ef; --search-line: #e6e0d2;
  --hero-bg: linear-gradient(120deg, #fff1cc 0%, #ffd58a 55%, #f7a800 100%); --hero-ink: #141414; --hero-accent: #141414; --hero-btn-bg: #141414; --hero-btn-ink: #ffd21f;
  --footer-bg: #24221e; --footer-ink: #d6d0c4; --bg: #faf8f4;
  --logo-dark-display: none; --logo-light-display: block;
}
/* Option 4: Clean amber, but with the Sign theme's orange-to-yellow header */
.theme-amber-sign {
  --header-bg: linear-gradient(100deg, #f39200 0%, #f7a800 45%, #ffd21f 100%); --header-ink: #141414; --header-muted: #2a2109;
  --search-bg: rgba(255,255,255,.85); --search-line: rgba(0,0,0,.15);
}
.theme-charcoal {
  --brand: #ffc400; --brand-dk: #f0b400; --btn-ink: #141414; --link: #8a5c00;
  --accent: #ffc400; --accent-soft: #fff6d1; --badge-bg: #ffc400; --badge-ink: #141414;
  --header-bg: #1e1f22; --header-ink: #fff; --header-muted: #c9c9c9;
  --search-bg: #2b2c30; --search-line: #3a3b40;
  --hero-bg: radial-gradient(circle at 85% 20%, #3a3220 0%, #1e1f22 55%); --hero-ink: #fff; --hero-accent: #ffc400; --hero-btn-bg: #ffc400; --hero-btn-ink: #141414;
  --footer-bg: #1e1f22; --footer-ink: #bdbdbd; --bg: #f3f3f1;
  --logo-dark-display: block; --logo-light-display: none;
}
.theme-charcoal .search input::placeholder { color: #9a9a9a; }
.site-header { border-bottom: 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.theme-amber .site-header { border-top: 4px solid #f39200; }
.logo-mark { display: none; }
.logo-img { height: 54px; width: auto; }
.logo-img.on-light { display: var(--logo-light-display); }
.logo-img.on-dark  { display: var(--logo-dark-display); }
.wordmark { font-family: "Michroma", system-ui, sans-serif; font-weight: 400; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; display: flex; flex-direction: column; }
.wordmark small { font-size: .62rem; letter-spacing: .18em; opacity: .8; }
.hero h1, .section-title, .page h1, .tile h2 { font-family: "Michroma", system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; }
.hero h1 { font-size: 2rem; line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--hero-accent); }
.section-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
.tile h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.tile { border-top: 4px solid var(--accent); }
.btn:hover { background: var(--brand-dk); }
.hero .btn:hover { filter: brightness(1.05); }
.site-footer a { color: #fff; }
.theme-sign .tag-service, .theme-amber .tag-service, .theme-amber-sign .tag-service, .theme-charcoal .tag-service { background: var(--accent-soft); color: #8a4b00; }
@media (max-width: 800px) {
  .logo-img { height: 44px; }
  .wordmark { font-size: .78rem; }
  .hero h1 { font-size: 1.45rem; }
}

.hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-art img { height: 260px; width: auto; }
.hero-art .on-light { display: var(--hero-logo-light, none); }
.hero-art .on-dark { display: var(--hero-logo-dark, block); }
.theme-amber, .theme-amber-sign { --hero-logo-light: block; --hero-logo-dark: none; }
@media (max-width: 800px) { .hero-art { display: none; } }
@media (max-width: 800px) {
  .header-row { gap: 10px 14px; }
  .logo { gap: 8px; min-width: 0; }
  .logo-img { height: 38px; }
  .wordmark { font-size: .66rem; }
  .wordmark small { display: none; }
  .account-link { margin-left: auto; font-size: .9rem; }
  .basket { font-size: .9rem; }
}
@media (max-width: 800px) {
  .logo { white-space: normal; }
  .wordmark { max-width: 130px; font-size: .7rem; line-height: 1.25; }
  .account-link, .basket { white-space: nowrap; }
}

/* ===== Home page ========================================================== */
.hero h1 { font-size: 1.85rem; max-width: 720px; }
.hero-lead { font-size: 1.15rem; opacity: .92; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { margin: 0; }
.btn .icon { vertical-align: -3px; margin-right: 4px; }
.home-section { margin: 36px 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.service-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; color: var(--ink); display: flex; flex-direction: column; border-top: 4px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.service-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,32,46,.08), 0 10px 28px rgba(20,32,46,.12); }
.service-card h3 { font-family: "Michroma", system-ui, sans-serif; font-weight: 400; font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 8px; }
.service-card p { color: var(--muted); margin: 0 0 14px; flex: 1; font-size: .95rem; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); }
.why-strip { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 22px 26px; margin: 36px 0; }
.why-strip h2 { font-family: "Michroma", system-ui, sans-serif; font-weight: 400; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.why-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; }
.why-strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.why-strip .icon { color: var(--hero-accent); flex: none; }
.home-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin: 36px 0 10px; align-items: start; }
.home-split > div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.home-split h2 { font-family: "Michroma", system-ui, sans-serif; font-weight: 400; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 0; }
.hours { border-collapse: collapse; width: 100%; margin: 10px 0; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours th { font-weight: 600; width: 45%; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.visit-actions .btn { padding: 9px 14px; font-size: .92rem; }
@media (max-width: 800px) {
  .hero h1 { font-size: 1.3rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .home-split { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 16px; }
  .service-card h3 { font-size: .78rem; }
  .service-card p { font-size: .88rem; }
}
@media (max-width: 420px) { .service-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 14px 16px; border-top: 0; border-left: 4px solid var(--accent); }
  .service-icon { width: 44px; height: 44px; grid-row: span 3; }
  .service-card h3 { margin: 2px 0 4px; font-size: .78rem; }
  .service-card p { margin: 0 0 6px; font-size: .88rem; }
  .service-card .tile-link { font-size: .88rem; }
  .why-strip { padding: 18px; }
  .why-strip ul { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .why-strip li { font-size: .88rem; align-items: flex-start; }
}

/* WhatsApp */
.btn-whatsapp { background: #1f9e55; color: #fff; }
.btn-whatsapp:hover { background: #18844a; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: #1f9e55; color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-float:hover { background: #18844a; text-decoration: none; color: #fff; }
.site-footer { padding-bottom: 80px; }
@media (max-width: 560px) { .wa-float { right: 12px; bottom: 12px; padding: 12px; } .wa-float span { display: none; } }

/* ===== Main menu ========================================================== */
.cat-nav { display: none; }
.main-nav { position: relative; }
.menu { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 0; padding-bottom: 8px; }
.menu-item { display: flex; align-items: center; }
.menu-item.has-small { position: relative; }
.menu-link { color: var(--header-ink); font-weight: 700; padding: 6px 0; white-space: nowrap; }
.menu-link:hover { text-decoration: none; opacity: .8; }
.menu-toggle { background: none; border: 0; color: var(--header-ink); cursor: pointer; padding: 6px 4px; font: inherit; line-height: 1; }
.menu-item.open .menu-toggle span { display: inline-block; transform: rotate(180deg); }
.mega { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 40px)); z-index: 40;
  background: #fff; color: var(--ink); border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 22px 26px 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 26px; }
.mega-small { left: 0; transform: none; width: 320px; grid-template-columns: 1fr; border-radius: 12px; top: calc(100% + 4px); }
.mega-head { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 3px 0; color: var(--muted); font-size: .92rem; }
.mega-col li a:hover, .mega-head:hover { color: var(--link); text-decoration: none; }
.mega-more { font-weight: 600; color: var(--link) !important; }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; color: var(--link); }
.menu-item.open .mega { display: grid; }
@media (hover: hover) and (min-width: 801px) {
  /* Opening and closing on hover is handled by the menu script (with a short delay, so the
     pointer can travel to the panel); keyboard focus and the ▾ button still work without it. */
  .has-mega .mega { display: grid; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility 0s linear .12s; }
  .has-mega.hover-open .mega, .has-mega:focus-within .mega, .menu-item.open .mega {
    visibility: visible; opacity: 1; transition: opacity .12s ease, visibility 0s; }
  .has-mega.hover-open { z-index: 41; }
  /* Invisible strip covering the gap between the menu word and the panel */
  .has-mega > .menu-link { position: relative; }
  .has-mega > .menu-link::after { content: ''; position: absolute; left: -12px; right: -40px; top: 100%; height: 26px; }
}
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--header-ink); margin: 4px 0; border-radius: 2px; }

/* Category pages */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 26px; }
.subcat { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; color: var(--ink); display: flex; flex-direction: column; border-left: 4px solid var(--accent); }
.subcat:hover { text-decoration: none; transform: translateY(-1px); }
.subcat span { font-weight: 700; }
.subcat small { color: var(--muted); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.pager a { padding: 6px 12px; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.pager a.current { background: var(--brand); color: var(--btn-ink); }
.crumbs span { color: var(--ink); }

@media (max-width: 800px) {
  .burger { display: block; }
  .main-nav { display: none; background: #fff; border-top: 1px solid rgba(0,0,0,.08); }
  body.nav-open .main-nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 12px; }
  .menu-item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .menu-link, .menu-toggle { color: var(--ink); padding: 12px 0; }
  .menu-toggle { padding: 12px 8px; font-size: 1.1rem; }
  .mega, .mega-small { position: static; transform: none; width: 100%; box-shadow: none; border-radius: 0; padding: 0 0 10px 10px; grid-template-columns: 1fr; gap: 0; }
  .mega-col ul { display: none; }
  .mega-head { font-weight: 600; padding: 8px 0; margin: 0; border-top: 1px solid var(--line); }
  .mega-all { border-top: 1px solid var(--line); padding: 10px 0 0; }
  .subcats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 801px) {
  .mega:not(.mega-small) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 22px; padding: 18px 24px 14px; max-height: calc(100vh - 150px); overflow-y: auto; }
  .mega-head { font-size: .92rem; line-height: 1.3; }
  .mega-col li a { font-size: .86rem; padding: 2px 0; }
}

/* Product gallery, specs, online only */
.product-gallery { display: flex; flex-direction: column; gap: 10px; }
.product-img { background: #fff; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-btn { width: 64px; height: 64px; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.thumb-btn.active { border-color: var(--accent); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.tag-online { background: #e8f1fb; color: #1d5fa8; margin-left: 4px; }
.brand { margin-left: 8px; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.ids { word-break: break-word; }
.product-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.product-details > section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.product-details h2 { margin-top: 0; font-size: 1.1rem; }
.specs table { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 45%; }
.card-img img { background: #fff; }
@media (max-width: 800px) { .product-details { grid-template-columns: 1fr; } }
.tag-brand { background: transparent; padding-left: 0; color: var(--muted); }
.card-body h3:first-child { margin-top: 0; }
.product-info .tag-online:first-child { margin-left: 0; }

/* ---- Google reviews (home page) ---- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.reviews-summary { display: flex; align-items: center; gap: 8px; }
.reviews-score { font-size: 1.6rem; line-height: 1; }
.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: #d5d9de; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.review { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review figcaption img, .review-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.review-avatar { display: grid; place-items: center; background: var(--accent-soft, #fde9c8); font-weight: 700; }
.review figcaption a { color: var(--ink); }
.review blockquote { margin: 0; line-height: 1.55; white-space: pre-line; }
.review blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; font-weight: 600; }
.review-link { margin-top: auto; color: var(--muted); }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.reviews-attrib { margin-left: auto; font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) { .reviews-attrib { margin-left: 0; width: 100%; } }

/* ---- Price on request ---- */
.price-poa { font-size: .95rem; font-weight: 700; color: var(--link); }
.price-lg.price-poa { font-size: 1.4rem; }
.poa-box { background: var(--accent-soft, #fff3dc); border-radius: var(--radius); padding: 16px 18px; margin-top: 8px; }
.poa-box p { margin: 0 0 12px; }
.poa-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Category filters ---- */
.cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.facets-toggle > summary { list-style: none; display: none; cursor: pointer; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; font-weight: 700; }
.facets-toggle > summary:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.facets-toggle > summary::-webkit-details-marker { display: none; }
.facets-form { display: grid; gap: 14px; }
.facet { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.facet legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.facet .check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 3px 0; cursor: pointer; }
.facet .check input { margin: 0; flex: none; }
.facet-n { margin-left: auto; color: var(--muted); font-size: .8rem; }
.facet-none { opacity: .45; }
.facet-long .check:nth-of-type(n+9) { display: none !important; }
.facet-more { background: none; border: 0; padding: 4px 0 0; color: var(--link); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.facet-price { display: flex; align-items: center; gap: 6px; }
.facet-price input { width: 72px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.facet-price .btn { padding: 6px 12px; }
.facets-clear { font-weight: 600; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .86rem; color: var(--ink); }
.chip:hover { text-decoration: none; border-color: var(--link); }
.cat-main .section-title:first-child { margin-top: 0; }
@media (max-width: 800px) {
  .cat-layout { grid-template-columns: 1fr; gap: 14px; }
  .facets-toggle > summary { display: inline-flex; }
  .facets-toggle[open] > summary { margin-bottom: 12px; }
  .facets-form { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
}

/* ---- Cookie banner ---- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
  background: #14202e; color: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.3); padding: 16px 18px; display: grid; gap: 12px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; line-height: 1.5; }
.cookie-banner a { color: #ffd166; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; justify-content: center; background: #fff; color: #14202e; border-color: #fff; }
.cookie-actions .btn:hover { background: #ffd166; border-color: #ffd166; color: #14202e; }

/* "hidden" always wins, even over .check { display:flex !important } */
[hidden] { display: none !important; }

/* Bolder name next to the logo and "Why Westbrook?" heading. Michroma has only one weight,
   so a thin outline in the text colour thickens it more cleanly than a faked bold. */
.wordmark { -webkit-text-stroke: .45px currentColor; }
.wordmark small { -webkit-text-stroke: 0; }
/* All section headings match (home page sections, "You might also like", etc.) */
.why-strip h2, .section-title, .home-split h2 { -webkit-text-stroke: .5px currentColor; }

/* Bigger logo so it isn't lost next to the bold name (option B, chosen 20 Nov) */
.logo-img { height: 70px; }
@media (max-width: 800px) { .logo-img { height: 42px; } }


/* ===== Dark mode ===========================================================
   Only when Settings → Dark mode is Automatic (adds html.dark-auto) and the
   visitor's device is in dark mode. Declaring "light dark" lets Chrome and newer
   Samsung Internet use these colours instead of repainting the site themselves. */
:root { color-scheme: only light; }
html.dark-auto { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  html.dark-auto body {
    --ink: #ececec; --muted: #a7a7a7; --line: #34363b; --bg: #111113; --card: #1c1d20;
    --link: #ffb547; --accent-soft: #3a2a0c; --ok: #4cc58a; --warn: #f0a63a; --bad: #ff6b5e;
    --brand: #f29100; --brand-dk: #ffa726; --btn-ink: #141414; --badge-bg: #ffd21f; --badge-ink: #141414;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 4px 16px rgba(0,0,0,.35);
    --field-bg: #26272b; --field-line: #3d3f45; --tint: #26272b;
    --hero-bg: radial-gradient(circle at 85% 20%, #3a2a0c 0%, #1c1d20 60%); --hero-ink: #fff; --hero-accent: #ffd21f;
    --hero-btn-bg: linear-gradient(100deg, #f39200, #ffd21f); --hero-btn-ink: #141414;
    --hero-logo-light: none; --hero-logo-dark: block;
    --footer-bg: #0b0b0c; --footer-ink: #bdbdbd;
    --search-ink: #141414;
  }
  /* Clean amber has a white header: make it dark, with the white logo */
  html.dark-auto body.theme-amber, html.dark-auto body.theme-charcoal {
    --header-bg: #1c1d20; --header-ink: #fff; --header-muted: #c9c9c9;
    --search-bg: #2b2c30; --search-line: #3d3f45; --search-ink: #ececec;
    --logo-dark-display: block; --logo-light-display: none; --badge-bg: #ffd21f;
  }
  html.dark-auto .site-header { box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  html.dark-auto .search input { color: var(--search-ink); }
  html.dark-auto .hero, html.dark-auto .why-strip { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
  html.dark-auto .site-footer { border-top: 1px solid var(--line); }

  /* Forms */
  html.dark-auto .form input:not([type=checkbox]):not([type=radio]), html.dark-auto .form select, html.dark-auto .form textarea,
  html.dark-auto .edit-table input:not([type=checkbox]), html.dark-auto .filters input, html.dark-auto .filters select, html.dark-auto .sort select,
  html.dark-auto .add-form input, html.dark-auto .qty, html.dark-auto .facet-price input, html.dark-auto input, html.dark-auto select, html.dark-auto textarea {
    background: var(--field-bg); border-color: var(--field-line); color: var(--ink);
  }
  html.dark-auto .search input { background: var(--search-bg); border-color: var(--search-line); }
  html.dark-auto ::placeholder { color: #8d8d8d; }
  html.dark-auto .site-header .search input::placeholder { color: rgba(20,20,20,.6); }
  html.dark-auto body.theme-amber .site-header .search input::placeholder,
  html.dark-auto body.theme-charcoal .site-header .search input::placeholder { color: #8d8d8d; }
  html.dark-auto .btn-ghost:hover { background: rgba(255,255,255,.08); }

  /* Messages, tags, statuses */
  html.dark-auto .flash { background: #12301f; }
  html.dark-auto .flash-error { background: #3a1714; }
  html.dark-auto .notice { background: #2e2512; border-color: #6b5320; }
  html.dark-auto .tag { background: var(--tint); }
  html.dark-auto .tag-refurb { background: #12301f; }
  html.dark-auto .tag-online { background: #14263b; color: #8cc4ff; }
  html.dark-auto .tag-brand { background: transparent; }
  html.dark-auto .theme-sign .tag-service, html.dark-auto .theme-amber .tag-service,
  html.dark-auto .theme-amber-sign .tag-service, html.dark-auto .theme-charcoal .tag-service { background: var(--accent-soft); color: #ffc46b; }
  html.dark-auto .status { background: var(--tint); }
  html.dark-auto .status-paid { background: #3a2a0c; }
  html.dark-auto .status-processing { background: #14263b; color: #8cc4ff; }
  html.dark-auto .status-shipped, html.dark-auto .status-completed { background: #12301f; }
  html.dark-auto .status-cancelled, html.dark-auto .status-refunded { background: #3a1714; }
  html.dark-auto .status-test { background: #f5a524; color: #111; }

  /* Tables, product text */
  html.dark-auto .table thead th { background: #232427; }
  html.dark-auto .desc { color: var(--ink); }
  html.dark-auto .stars-off { color: #4a4c52; }
  html.dark-auto .crumbs span { color: var(--ink); }

  /* Product photos have white backgrounds, so keep them on white tiles */
  html.dark-auto .card-img, html.dark-auto .product-img, html.dark-auto .thumb-btn { background: #fff; }
  html.dark-auto .thumb-btn { border-color: var(--line); }
  html.dark-auto .thumb-btn.active { border-color: var(--accent); }

  /* Menus */
  html.dark-auto .mega { background: var(--card); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
  html.dark-auto .pager a.current { color: #141414; }

  /* Cookie banner */
  html.dark-auto .cookie-banner { background: #26272b; box-shadow: 0 12px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
  html.dark-auto .cookie-actions .btn { background: #ffd21f; border-color: #ffd21f; color: #141414; }
}
@media (prefers-color-scheme: dark) and (max-width: 800px) {
  html.dark-auto .main-nav { background: var(--card); border-top-color: var(--line); }
}

/* ---- Brands ---- */
.brand-letters { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 18px; font-weight: 700; }
.brand-letter { font-size: 1.1rem; margin: 22px 0 10px; color: var(--muted); }
a.brand:hover { text-decoration: underline; }

/* ---- Product image zoom (lightbox) ---- */
.product-img.zoomable { border: 0; padding: 0; width: 100%; cursor: zoom-in; position: relative; font: inherit; }
.product-img.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,20,20,.65); color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity .15s; }
.product-img.zoomable:hover .zoom-hint, .product-img.zoomable:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: .85; } }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.92); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: min(92vw, 1200px); max-height: calc(100vh - 140px); object-fit: contain; background: #fff; border-radius: 8px; }
#lb-count { color: #ddd; font-size: .9rem; }
.lb-btn { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); border-radius: 50%;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.28); outline: none; }
.lb-close { top: 12px; right: 12px; font-size: 1.8rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 56px 8px 72px; }
  .lb-figure img { max-width: 96vw; max-height: calc(100vh - 160px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
