/* ==================================================================
   Dr Dyson Norfolk
   Clean, product-led styling. No external fonts or frameworks, so the
   site loads fast. Colours meet WCAG 2.2 AA contrast.
   ================================================================== */

/* Jost: open-source geometric typeface (SIL Open Font License), self-hosted.
   It includes the £ sign, which some installed Futura fonts on Windows lack. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter: open-source text typeface (SIL Open Font License), self-hosted so
   the site looks identical on every computer and phone. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f0f12;
  --iron: #1d1d22;
  --graphite: #2c2c33;
  --text: #1b1b1f;
  --muted: #55555f;
  --line: #e3e3e8;
  --mist: #f4f4f6;
  --white: #fff;
  --nickel: #c9cacf;

  --fuchsia: #b5126f;       /* 6.1:1 on white */
  --fuchsia-bright: #ff5cb4; /* for use on dark backgrounds */
  --purple: #5e24a3;
  --gradient: linear-gradient(135deg, #e6007e 0%, #6a2bb0 100%);

  --ok: #0f7a3d;
  --error: #b3261e;

  --font-display: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 15, 18, .06), 0 8px 24px rgba(15, 15, 18, .06);
  --shadow-lg: 0 2px 4px rgba(15, 15, 18, .06), 0 24px 48px rgba(15, 15, 18, .12);
  --header-h: 76px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px); /* WCAG 2.4.11 focus not obscured */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--fuchsia); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
strong { font-weight: 650; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--fuchsia-bright); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-accent { background: var(--fuchsia); color: #fff; }
.btn-accent:hover { background: #980d5c; box-shadow: 0 8px 20px rgba(181, 18, 111, .28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--graphite); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600;
  color: var(--ink); text-decoration: none; min-height: 24px;
}
.link-arrow .icon { transition: transform .2s; color: var(--fuchsia); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; width: 230px; height: 43px; flex: none; }
.brand-logo { color: #e6007e; }
.site-footer .brand-logo { color: #fff; }
.brand .brand-sub { margin: 0 0 0 2px; font-size: .68rem; letter-spacing: .42em; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.brand-light { color: #fff; }
.brand-light .brand-sub { color: var(--nickel); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .98rem;
  border-radius: 999px; transition: background-color .2s;
}
.site-nav ul a:hover { background: var(--mist); }
.site-nav ul a[aria-current="page"] { color: var(--fuchsia); box-shadow: inset 0 -2px 0 var(--fuchsia); border-radius: 0; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  font: 600 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Five menu items: keep each on one line on smaller laptops */
.site-nav ul a, .header-call { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .header-inner { gap: 12px; }
  .site-nav { gap: 12px; }
  .site-nav ul { gap: 0; }
  .site-nav ul a { padding: 0 9px; font-size: .93rem; }
  .brand-logo { width: 190px; height: 35.5px; }
}

@media (max-width: 960px) { .brand-logo { width: 200px; height: 37.4px; } }
@media (max-width: 420px) { .brand-logo { width: 170px; height: 31.8px; } }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav { padding: 8px 20px 24px; gap: 20px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a {
    display: flex; width: 100%; justify-content: space-between; padding: 0 4px; min-height: 60px;
    font: 600 1.3rem/1.2 var(--font-display); color: var(--ink); border-radius: 0;
  }
  .site-nav ul a::after { content: "\203A"; font-size: 1.6rem; color: var(--nickel); }
  .site-nav ul a:hover { background: transparent; color: var(--fuchsia); }
  .site-nav ul a[aria-current="page"] { box-shadow: none; background: transparent; color: var(--fuchsia); }
  .site-nav ul a[aria-current="page"]::after { color: var(--fuchsia); }
  .header-call { align-self: stretch; justify-content: center; min-height: 56px; font-size: 1.15rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--ink); color: #e9e9ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: var(--fuchsia-bright); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--fuchsia);
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--fuchsia-bright); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.section-dark .lead { color: #c7c7d0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e9e9ee;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(212, 20, 138, .28), transparent 60%),
    radial-gradient(700px 500px at 70% 90%, rgba(106, 43, 176, .32), transparent 60%),
    var(--ink);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .grad, .page-hero h1 .grad {
  background: linear-gradient(90deg, #ff6fc0, #b98cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: #cfcfd8; margin-bottom: 32px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; color: #cfcfd8; font-size: .95rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: var(--fuchsia-bright); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { width: min(52%, 220px); order: -1; }
  .hero-inner { gap: 16px; padding-top: 32px; }
}

/* Inner page hero */
.page-hero {
  color: #e9e9ee;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(212, 20, 138, .25), transparent 60%),
    radial-gradient(600px 360px at 60% 120%, rgba(106, 43, 176, .3), transparent 60%),
    var(--ink);
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.page-hero .lead { color: #cfcfd8; margin-bottom: 0; }
.breadcrumb { margin-bottom: 18px; font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #8d8d98; }
.breadcrumb a { color: #cfcfd8; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: -48px; position: relative; z-index: 2; box-shadow: var(--shadow-lg);
}
.stat { background: #fff; padding: 26px 24px; }
.stat-value { display: block; font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.stat-label { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; text-wrap: balance; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .stat { padding: 18px 16px; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: var(--mist); color: var(--fuchsia);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-price {
  display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start;
  margin-top: auto; padding: 8px 20px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #fdeaf4, #efe6fb); border: 1px solid #f0cfe2;
  font: 600 1.7rem/1 var(--font-display); color: #8a0c55; letter-spacing: -.02em;
}
.card-price small { font: 600 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #6b2a52; }
.grid-3 > .card { display: flex; flex-direction: column; }
.grid-3 > .card > p { margin-bottom: 20px; }
.card-link { position: static; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--fuchsia); margin-top: .2em; }
.section-dark .check-list .icon { color: var(--fuchsia-bright); }

.panel {
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  background: var(--mist); border: 1px solid var(--line);
}
.panel-dark { background: var(--iron); border-color: #2d2d35; color: #e9e9ee; }
.panel-dark h3 { color: #fff; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding: 28px; background: var(--iron); border: 1px solid #2d2d35; border-radius: var(--radius); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font: 600 2.4rem/1 var(--font-display);
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.2rem; color: #fff; }
.steps p { color: #c7c7d0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Brands */
.brand-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.brand-list li {
  padding: 10px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-family: var(--font-display); letter-spacing: .02em;
}
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--muted); }
.note .icon { color: var(--fuchsia); margin-top: .2em; }

/* ---------- Prices ---------- */
.price-section { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 64px); padding: 48px 0; border-top: 1px solid var(--line); }
.price-section:first-of-type { border-top: 0; padding-top: 0; }
.price-section-head .card-icon { margin-bottom: 14px; }
.price-section-head p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .price-section { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.price-table caption { text-align: left; font-weight: 600; padding-bottom: 10px; color: var(--ink); }
.price-table th, .price-table td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 0; }
.price-table tbody th { font-weight: 600; color: var(--ink); }
.price-table td.price, .price-table th.price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td.price { font-weight: 650; color: var(--ink); }
.price-table .detail { display: block; font-weight: 400; color: var(--muted); font-size: .93rem; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.price-from { font-size: .8rem; color: var(--muted); font-weight: 500; margin-right: 4px; }
.service-includes { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 20px 0 0; }
.service-includes li { display: flex; gap: 10px; break-inside: avoid; margin-bottom: 10px; }
.service-includes .icon { color: var(--fuchsia); margin-top: .2em; }
@media (max-width: 560px) { .service-includes { columns: 1; } }
.highlight-price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.highlight-price strong { font: 600 3rem/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; min-height: 48px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--fuchsia); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }
.faq details > div p { max-width: 80ch; }

/* ---------- For sale ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; border: 0; }
.filters legend { width: 100%; margin-bottom: 12px; font-weight: 600; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text);
  font: 600 .95rem var(--font-body); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { color: var(--muted); margin: -12px 0 24px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.product {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Every photo box is exactly 4:3 in every browser: the image never sets the box size */
.product-media { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, #f7f7f9, #e9e9ee); }
.product-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.product-media img[src$=".svg"] { object-fit: contain; padding: 8%; }
.product-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font: 700 .74rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.badge-accent { background: var(--fuchsia); color: #fff; }
.badge-sold { background: var(--ink); color: #fff; }
.product.is-sold .product-media img { filter: grayscale(1); opacity: .55; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product-cat { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.product h3 { font-size: 1.25rem; margin-bottom: 8px; }
.product-desc { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
.product-meta { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: .93rem; }
.product-meta li { display: flex; gap: 8px; align-items: flex-start; }
.product-meta .icon { color: var(--fuchsia); width: 1.1em; height: 1.1em; margin-top: .25em; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-price { margin: 0; font: 600 1.75rem/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.product.is-sold .product-price { text-decoration: line-through; color: var(--muted); }
.empty-state { padding: 48px; text-align: center; border: 1px dashed var(--nickel); border-radius: var(--radius); color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field .hint { display: block; color: var(--muted); font-size: .9rem; margin: -2px 0 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid #8a8a94; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(94, 36, 163, .3); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-weight: 600; font-size: .93rem; margin-top: 6px; }
.field-error .icon { margin-top: .15em; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 46ch; }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; border: 1.5px solid; }
.alert h2 { font-size: 1.1rem; margin: 0 0 6px; font-family: var(--font-body); color: inherit; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert p { margin: 0; }
.alert .icon { width: 24px; height: 24px; margin-top: 2px; }
.alert-error { background: #fdf1f0; border-color: #e8b4b0; color: #7a1a14; }
.alert-error a { color: #7a1a14; font-weight: 600; }
.alert-success { background: #eef8f2; border-color: #a9d8bb; color: #0b5129; }
.alert:focus { outline: 3px solid var(--purple); outline-offset: 3px; }

.info-stack { display: grid; gap: 20px; }
.info-card { background: var(--mist); border-radius: var(--radius); padding: 28px; }
.info-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.info-card h2 .icon { color: var(--fuchsia); }
.info-card p:last-child, .info-card dl:last-child { margin-bottom: 0; }
.big-link { font: 600 1.3rem var(--font-display); color: var(--ink); text-decoration: none; }
.big-link:hover { color: var(--fuchsia); text-decoration: underline; }

.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-compact div { border-color: rgba(255,255,255,.08); padding-bottom: 6px; }
.hours-compact dt { font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 6vw, 72px); color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.14), transparent 60%), var(--gradient);
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 32px;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.92); margin: 0; font-size: 1.1rem; }
.cta-band .btn-light { color: var(--ink); }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4c4cd; padding: 72px 0 32px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--fuchsia-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-heading { font: 700 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { display: inline-block; padding: 3px 0; min-height: 24px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.footer-contact .icon { color: var(--fuchsia-bright); }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #34343c; border-radius: 999px; }
.social a:hover { border-color: var(--fuchsia-bright); text-decoration: none; }
.footer-base { display: grid; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2a2a31; font-size: .87rem; color: #a3a3ae; }
.footer-base p { margin: 0; }
.site-footer .small { color: #a3a3ae; margin-top: 12px; }

/* ---------- Prose (privacy etc) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero-art .swirl { transform-origin: 50% 50%; animation: spin 18s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Windows high contrast */
@media (forced-colors: active) {
  .btn, .chip, .card, .product { border: 1px solid CanvasText; }
  .hero h1 .grad, .page-hero h1 .grad { color: CanvasText; background: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .filters, .nav-toggle { display: none !important; }
  .hero, .page-hero, .section-dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1 { color: #000 !important; }
}

/* Utilities */
.plain-list { list-style: none; padding: 0; margin: 0; }
.stat { display: flex; flex-direction: column; }
.stat dd { margin: 0; order: -1; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--fuchsia); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.section-head-row > div { max-width: 640px; }
.section-head-row .lead { margin: 0; }

/* ---------- Top bar: live open/closed status ---------- */
.topbar { background: var(--ink); color: #d6d6de; font-size: .9rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; min-height: 40px; padding-block: 6px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--fuchsia-bright); }
.open-status { font-weight: 600; color: #fff; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); flex: none; }
.open-status.is-open .status-dot { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .22); }
.topbar-links { margin: 0 0 0 auto; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; color: #fff; text-decoration: none; font-weight: 500; }
.topbar-links a:hover { color: var(--fuchsia-bright); text-decoration: underline; }
.topbar :focus-visible { outline-color: var(--fuchsia-bright); }
.topbar-notice { justify-content: center; width: 100%; padding: 8px 20px; background: var(--gradient); color: #fff; font-weight: 600; text-align: center; }
@media (max-width: 1100px) { .topbar-links li:last-child { display: none; } }
@media (max-width: 700px) {
  .topbar-hours, .topbar-links { display: none !important; }
  .topbar-inner { justify-content: center; }
}

/* Today highlight and closures */
.hours .is-today dt, .hours .is-today dd { color: var(--fuchsia); font-weight: 700; }
.site-footer .hours .is-today dt, .site-footer .hours .is-today dd { color: #fff; }
.today-tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font: 700 .68rem/1.5 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  background: var(--fuchsia); color: #fff; vertical-align: 1px;
}
.closures { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff4fa; border: 1px solid #f3c6de; color: #5c0b3a; font-size: .93rem; }
.closures-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 6px; }
.closures-title .icon { color: var(--fuchsia); }
.closures ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.closures li { display: flex; justify-content: space-between; gap: 12px; }
.site-footer .closures { background: #1f1a22; border-color: #3a2b36; color: #e9d6e2; }

/* Footer base row with designer credit */
.footer-base-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-base .credit a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.footer-base .credit a:hover { color: var(--fuchsia-bright); }

/* ---------- Services: sticky jump bar ---------- */
html:has(body.page-services) { scroll-padding-top: calc(var(--header-h) + 76px); }
.service-nav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 15, 18, .05);
}
.service-nav-list {
  display: flex; gap: 8px; list-style: none; margin: 0; padding: 12px 0;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.service-nav-list::-webkit-scrollbar { display: none; }
.service-nav-list li { flex: none; scroll-snap-align: start; }
.service-nav-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--text); font-weight: 600; font-size: .93rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.service-nav-list a:hover { border-color: var(--ink); }
.service-nav-list a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-nav-list a:focus-visible { outline-offset: -3px; }

/* ---------- Mobile carousels (cards swipe sideways on phones) ---------- */
.carousel-controls { display: none; }
@media (max-width: 700px) {
  .is-carousel {
    display: flex !important; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    margin-inline: -20px; padding: 4px 20px 20px; scrollbar-width: none;
  }
  .is-carousel::-webkit-scrollbar { display: none; }
  .is-carousel > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
  .is-carousel > [hidden] { display: none; }
  .is-carousel:focus-visible { outline-offset: -3px; }
  .carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
  .carousel-status { font-size: .93rem; color: var(--muted); font-weight: 600; }
  .section-dark .carousel-status { color: #c7c7d0; }
  .carousel-btns { display: flex; gap: 10px; }
  .carousel-btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  }
  .carousel-btn .icon { width: 22px; height: 22px; }
  .carousel-btn.prev .icon { transform: rotate(180deg); }
  .carousel-btn[disabled] { opacity: .35; cursor: default; }
  .section-dark .carousel-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
}

/* reCAPTCHA: badge hidden, required wording shown under the form instead */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { display: block; margin-top: 6px; font-size: .82rem; }

/* ---------- Rug Doctor hire ---------- */
.hire-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.hire-card {
  position: relative; display: flex; flex-direction: column; padding: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
}
.hire-card h3 { margin: 0 0 8px; }
.hire-price {
  margin: 4px 0 12px; font: 700 clamp(3rem, 7vw, 4rem)/1 var(--font-display);
  background: linear-gradient(135deg, #e6007e, #7b2ff7); -webkit-background-clip: text; background-clip: text; color: #b5126f;
  -webkit-text-fill-color: transparent;
}
.hire-card .muted { margin: 0; }
.hire-card-best { border: 2px solid #e6a5cb; box-shadow: var(--shadow-lg); }
.hire-tag {
  position: absolute; top: -13px; left: 32px; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.hire-card-included { background: var(--mist); border-color: transparent; }
.hire-card-included .check-list { margin: 8px 0 0; }
@media (forced-colors: active) { .hire-price { -webkit-text-fill-color: currentColor; } }

/* One row per day: keep day, tag and times on one line; highlight today's row */
.hours dt, .hours dd { white-space: nowrap; }
.hours div { gap: 10px; align-items: center; }
.hours .is-today {
  --today-bg: #fff0f8; --today-line: var(--line);
  position: relative; margin: 0 -10px 8px; padding: 6px 10px 8px; border-radius: 10px; border-bottom: 0;
  background: var(--today-bg);
}
/* dividing line under today's row, with the same space as the other rows */
.hours .is-today::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 1px; background: var(--today-line); }
.hours .is-today:last-child { margin-bottom: 0; }
.hours .is-today:last-child::after { display: none; }
.site-footer .hours .is-today { --today-bg: rgba(255, 255, 255, .08); --today-line: rgba(255, 255, 255, .08); }
.hours-compact .today-tag { margin-left: 4px; padding: 1px 6px; font-size: .6rem; }

/* Inner page hero with artwork (Rug Doctor) */
.page-hero-split { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.page-hero-split .hero-art { width: min(100%, 380px); }
.page-hero-split .hero-badges { margin-top: 28px; }
@media (max-width: 860px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 8px; }
  .page-hero-split .hero-art { width: min(48%, 200px); order: -1; justify-self: start; }
}

/* ---------- Seasonal (Christmas) opening hours ---------- */
.hours-dated .is-changed dd { color: var(--fuchsia); font-weight: 700; }
.site-footer .hours-dated .is-changed dd { color: var(--fuchsia-bright); }
.season-more { margin: 16px 0 0; }
.season-btn, .topbar-season-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 700; border-radius: 999px;
}
.season-btn { min-height: 44px; padding: 8px 18px; border: 2px solid var(--fuchsia); background: #fff4fa; color: #8a0052; }
.season-btn:hover { background: var(--fuchsia); color: #fff; }
.season-btn .icon { width: 1.1em; height: 1.1em; }
.site-footer .season-btn { background: transparent; border-color: var(--fuchsia-bright); color: #fff; }
.site-footer .season-btn:hover { background: var(--fuchsia); }
.topbar-hours.is-seasonal { color: #fff; }
.topbar-hours.is-seasonal strong { color: var(--fuchsia-bright); }
.topbar-season-btn { min-height: 28px; padding: 2px 12px; border: 1px solid var(--fuchsia-bright); background: transparent; color: #fff; font-size: .82rem; }
.topbar-season-btn:hover { background: var(--fuchsia); border-color: var(--fuchsia); }
@media (max-width: 700px) {
  .topbar .topbar-hours.is-seasonal { display: inline-flex !important; flex-wrap: wrap; justify-content: center; text-align: center; font-size: .85rem; }
  .topbar-hours.is-seasonal > .icon { display: none; }
}

.season-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0;
  border: 0; border-radius: var(--radius, 18px); background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(15, 15, 18, .35);
}
.season-dialog::backdrop { background: rgba(15, 15, 18, .6); }
.season-dialog-inner { padding: 0 24px 20px; }
.season-dialog-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -24px 10px; padding: 16px 24px 12px; background: #fff; border-bottom: 1px solid var(--line);
}
.season-close-bottom { width: 100%; justify-content: center; margin-top: 16px; }
.season-dialog h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; }
.season-dialog h2 .icon { color: var(--fuchsia); }
.season-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #f4f1f4; color: var(--ink); cursor: pointer; }
.season-close:hover { background: #fde3f1; color: #8a0052; }
.season-close .icon { width: 20px; height: 20px; }
.season-list div { padding-block: 7px; }
.season-list dt { font-weight: 600; }
.season-list .is-closed-day dd { color: var(--muted, #5f5f6b); }
.season-list .is-open-day dd { color: #0b6b3a; font-weight: 700; }
.season-name { display: block; font-size: .8rem; font-weight: 500; color: var(--muted, #5f5f6b); }
.season-foot { margin: 12px 0 0; }

/* ---------- Contact form: sent confirmation ---------- */
.form-sent { text-align: center; padding: 28px 8px 12px; }
.form-sent:focus { outline: none; }
.form-sent:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; border-radius: var(--radius-sm); }
.form-sent h2 { margin: 18px 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-sent p { max-width: 46ch; margin: 0 auto 12px; }
.form-sent-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 24px !important; }
.sent-tick { display: block; width: 96px; height: 96px; margin: 0 auto; }
.sent-tick-ring { fill: #eaf8f0; stroke: #1f9d55; stroke-width: 4; stroke-dasharray: 227; stroke-dashoffset: 227; animation: tick-draw .6s ease-out forwards; }
.sent-tick-mark { fill: none; stroke: #1f9d55; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: tick-draw .4s .5s ease-out forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sent-tick-ring, .sent-tick-mark { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; overflow: hidden;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient); color: #fff; box-shadow: 0 10px 26px rgba(15, 15, 18, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.to-top .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Battery table: fit on phones without sideways scrolling */
@media (max-width: 600px) {
  .battery-table th, .battery-table td { padding: 12px 6px; }
  .battery-table thead th { font-size: .7rem; letter-spacing: .05em; }
  .battery-table thead th.price { white-space: normal; }
  .battery-table .hide-sm { display: none; }
  .battery-table thead .detail { font-size: .78rem; }
}

/* ---------- Recently sold banner (For sale page) ---------- */
.product.is-sold .product-media img { filter: grayscale(.85); opacity: .6; }
.product.is-sold .product-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(212, 20, 138, .12), rgba(106, 43, 176, .18));
}
.sold-ribbon {
  position: absolute; z-index: 2; top: 40px; right: -62px; width: 250px;
  transform: rotate(40deg); text-align: center;
  background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(106, 43, 176, .35);
  padding: 9px 0; border-block: 2px solid rgba(255, 255, 255, .55);
}
.sold-ribbon span { font: 700 .82rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.product.is-sold .badge-sold { display: inline-flex; align-items: center; gap: 6px; background: var(--gradient); }
.product.is-sold .badge-sold .icon { width: 14px; height: 14px; }

/* ---------- Mobile: no sideways scrolling ---------- */
html, body { overflow-x: clip; }
/* Hidden screen-reader text inside sideways carousels must stay inside the carousel */
.is-carousel, .product, .card { position: relative; }
.split > *, .contact-layout > *, .form-card, .info-card { min-width: 0; }
@media (max-width: 420px) {
  .hours dd { white-space: normal; text-align: right; }
}

/* Mobile top bar: Christmas line on one row, a little more breathing room */
.topbar-narrow { display: none; }
@media (max-width: 700px) {
  .topbar-inner { padding-block: 8px 12px; gap: 6px 16px; }
  .topbar .topbar-hours.is-seasonal { flex-wrap: nowrap; gap: 8px; font-size: .78rem; white-space: nowrap; }
  .topbar-season-btn { min-height: 26px; padding: 2px 10px; font-size: .75rem; flex: none; }
  .topbar-wide { display: none; }
  .topbar-narrow { display: inline; }
}
@media (max-width: 370px) {
  .topbar .topbar-hours.is-seasonal { font-size: .72rem; }
}

/* ---------- For sale: sticky type tabs and page numbers ---------- */
.filters {
  position: sticky; top: var(--header-h, 76px); z-index: 80; min-width: 0;
  margin-inline: -20px; padding: 12px 20px; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent;
}
.filters legend { float: left; width: 100%; margin-bottom: 10px; }
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filters .chip { flex: none; min-height: 40px; padding: 0 14px; font-size: .92rem; }
}
.pager { margin-top: 32px; }
.pager-list { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px; }
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 600; line-height: 1;
  transition: border-color .15s, color .15s, background .15s;
}
.pager-btn .icon { width: 20px; height: 20px; }
.pager-arrow.prev .icon { transform: rotate(180deg); }
.pager-arrow { margin: 0 6px; }
.pager-btn:hover:not(:disabled):not([aria-current]) { border-color: var(--fuchsia); color: var(--fuchsia); }
.pager-btn[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.pager-btn:disabled { opacity: .35; cursor: default; }
.pager-gap { width: 20px; text-align: center; color: var(--muted, #666); }
@media (max-width: 400px) { .pager-list { gap: 6px; } .pager-btn { width: 40px; height: 40px; } .pager-arrow { margin: 0 2px; } }
.product-price.is-ask { font-size: 1.15rem; }
