/* Shop Window theme for Yorkshire Displays. One stylesheet, mobile first.
   Colours --sw-blue / --sw-red / --sw-ink are set from theme settings in the page head. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --sw-blue: #0B67C2;
  --sw-blue-deep: #08498A;
  --sw-red: #E1141C;
  --sw-ink: #13202B;
  --sw-grey: #F2F5F8;
  --sw-line: #DDE4EB;
  --sw-muted: #5B6B7E;
  --sw-paper: #FFFFFF;
  --sw-green: #157A3E;
  --sw-amber: #A15C00;

  --sw-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sw-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  /* Small labels (counts, codes, eyebrows) use the body font with even-width figures: no monospace. */
  --sw-mono: var(--sw-body);

  --sw-wrap: 1280px;
  --sw-gutter: 16px;
  --sw-radius: 6px;
  --sw-radius-lg: 10px;
  --sw-header-h: 64px;
}
@media (min-width: 960px) { :root { --sw-gutter: 28px; } }

/* ---------- Base ---------- */
.sw *, .sw *::before, .sw *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body.sw { margin: 0; background: var(--sw-paper); color: var(--sw-ink); font-family: var(--sw-body); font-size: 1rem; line-height: 1.5; text-rendering: optimizeLegibility; }
.sw img { max-width: 100%; height: auto; }
.sw a:where(:not(.btn, .sw-btn)) { color: var(--sw-blue); text-underline-offset: 2px; }
.sw a:where(:not(.btn, .sw-btn)):hover { color: var(--sw-blue-deep); }
.sw h1, .sw h2, .sw h3 { font-family: var(--sw-display); color: var(--sw-ink); margin: 0 0 .5em; line-height: 1.05; text-wrap: balance; }
.sw h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-stretch: 72%; font-weight: 800; text-transform: uppercase; }
.sw h2 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); font-stretch: 75%; font-weight: 800; text-transform: uppercase; }
.sw h3 { font-size: 1.1rem; font-stretch: 85%; font-weight: 700; }
.sw p { margin: 0 0 1em; }
.sw :focus-visible { outline: 3px solid var(--sw-blue); outline-offset: 2px; }
.sw button { font: inherit; }
.sw-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sw-sprite { display: none; }
.sw svg { flex: 0 0 auto; }
.sw-wrap { max-width: var(--sw-wrap); margin-inline: auto; padding-inline: var(--sw-gutter); }
.sw-main { display: block; min-height: 40vh; }
.sw-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--sw-ink); color: #fff !important; padding: 10px 14px; }
.sw-skip:focus { top: 8px; }
@media (max-width: 599px) { .sw-hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid transparent; border-radius: var(--sw-radius); font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.15; text-align: center; vertical-align: middle; }
.sw-btn-red { background: var(--sw-red); color: #fff !important; }
.sw-btn-red:hover { background: #B80F16; }
.sw-btn-ink { background: var(--sw-ink); color: #fff !important; }
.sw-btn-ink:hover { background: #000; }
.sw-btn-blue { background: var(--sw-blue); color: #fff !important; }
.sw-btn-light { background: #fff; color: var(--sw-ink) !important; }
.sw-btn-light:hover { background: var(--sw-grey); }
.sw-btn-ghost { border-color: rgba(255,255,255,.75); color: #fff !important; background: transparent; }
.sw-btn-line { border-color: var(--sw-ink); color: var(--sw-ink) !important; background: transparent; }
.sw-btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.sw-btn[disabled] { opacity: .55; cursor: not-allowed; }
.sw-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.sw-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--sw-ink); cursor: pointer; border-radius: var(--sw-radius); }

/* ---------- Top bar ---------- */
.sw-topbar { background: var(--sw-ink); color: #DBE5EE; font-size: 12.5px; }
.sw-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; }
.sw-topbar-msgs { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; min-width: 0; }
.sw-topbar-msgs li { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.sw-topbar-msgs li::before { content: ""; width: 6px; height: 6px; background: var(--sw-red); flex: 0 0 auto; }
.sw-topbar-tel { color: #DBE5EE !important; text-decoration: none; white-space: nowrap; }
.sw-topbar-tel b { color: #fff; }
@media (max-width: 959px) {
  .sw-topbar-msgs { overflow: hidden; }
  .sw-topbar-msgs li { display: none; overflow: hidden; text-overflow: ellipsis; }
  .sw-topbar-msgs li.is-on, .sw-topbar-msgs:not(.is-rotating) li:first-child { display: inline-flex; }
}

/* ---------- Header ---------- */
.sw-header { background: var(--sw-paper); border-bottom: 1px solid var(--sw-line); position: sticky; top: 0; z-index: 40; }
.sw-header-in { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: 6px 8px; padding-block: 8px 10px; }
.sw-menu-btn { grid-area: menu; margin-left: -10px; }
.sw-logo { grid-area: logo; justify-self: center; display: block; line-height: 0; }
.sw-logo img { width: 136px; height: auto; }
.sw-actions { grid-area: actions; display: flex; gap: 2px; align-items: center; }
.sw-action { position: relative; display: grid; justify-items: center; align-content: center; min-width: 44px; height: 44px; color: var(--sw-ink) !important; text-decoration: none; font-size: 13px; }
.sw-action-label { display: none; }
.sw-basket-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; background: var(--sw-red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; }
.sw-basket-count[hidden] { display: none; }
.sw-search { grid-area: search; position: relative; display: flex; align-items: center; border: 2px solid var(--sw-ink); border-radius: 4px; background: #fff; }
.sw-search-input { flex: 1; min-width: 0; height: 42px; border: 0; padding: 0 10px; font: inherit; font-size: 16px; color: var(--sw-ink); background: transparent; -webkit-appearance: none; appearance: none; }
.sw-search-input::placeholder { color: var(--sw-muted); opacity: 1; }
.sw-search-input:focus { outline: none; }
.sw-search:focus-within { outline: 3px solid var(--sw-blue); outline-offset: 1px; }
.sw-search-btn { width: 44px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: var(--sw-ink); cursor: pointer; }
.sw-suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 2px); background: #fff; border: 2px solid var(--sw-ink); border-top-width: 1px; z-index: 60; max-height: min(70vh, 520px); overflow: auto; }
.sw-suggest a { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; color: var(--sw-ink) !important; text-decoration: none; border-bottom: 1px solid var(--sw-line); }
.sw-suggest a:last-child { border-bottom: 0; }
.sw-suggest a[aria-selected="true"], .sw-suggest a:hover { background: var(--sw-grey); }
.sw-suggest img { width: 48px; height: 48px; object-fit: contain; background: var(--sw-grey); mix-blend-mode: multiply; }
.sw-suggest .sw-s-name { font-size: 14px; line-height: 1.25; }
.sw-suggest .sw-s-price { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; white-space: nowrap; }
.sw-suggest .sw-s-all { display: block; padding: 10px; font-weight: 700; color: var(--sw-blue) !important; }

@media (min-width: 960px) {
  .sw-header { position: static; }
  .sw-header-in { grid-template-columns: 210px minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: 28px; padding-block: 16px; }
  .sw-menu-btn { display: none; }
  .sw-logo { justify-self: start; }
  .sw-logo img { width: 190px; }
  .sw-actions { gap: 18px; }
  .sw-action { grid-auto-flow: row; gap: 2px; height: auto; }
  .sw-action-label { display: block; }
  .sw-basket-count { right: -2px; top: -6px; }
}

/* ---------- Category navigation / mega menu ---------- */
.sw-nav-head, .sw-nav-extra, .sw-mega-back { display: none; }
.sw-nav-list { list-style: none; margin: 0; padding: 0; }
.sw-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--sw-ink) !important; text-decoration: none; font-family: var(--sw-display); font-stretch: 88%; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.sw-nav-link.is-offer { color: var(--sw-red) !important; }
.sw-nav-toggle { display: none; }
.sw-count { font-size: 12px; color: var(--sw-muted); font-variant-numeric: tabular-nums; }
.sw-mega-h { margin: 0 0 6px; font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--sw-muted); }
.sw-mega-col ul { list-style: none; margin: 0; padding: 0; }
.sw-mega-col a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--sw-ink) !important; text-decoration: none; font-size: 15px; }
.sw-mega-col a:hover span:first-child { text-decoration: underline; }
.sw-mega-all { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--sw-blue) !important; text-decoration: none; }
.sw-mega-promo { background: var(--sw-grey); display: grid; grid-template-columns: 1fr 120px; gap: 12px; padding: 18px; align-items: end; }
.sw-mega-promo-h { font-family: var(--sw-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; margin: 0 0 6px; }
.sw-mega-promo p { font-size: 13px; color: var(--sw-muted); }
.sw-mega-promo img { mix-blend-mode: multiply; justify-self: center; }

/* Phone and tablet: full-screen drill-down */
@media (max-width: 959px) {
  .sw-nav { position: fixed; inset: 0; z-index: 80; background: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sw-nav.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
  .sw-nav > .sw-wrap { padding: 0; }
  .sw-nav-head { display: flex; justify-content: space-between; align-items: center; padding: max(8px, env(safe-area-inset-top, 0px)) 6px 8px var(--sw-gutter); border-bottom: 1px solid var(--sw-line); position: sticky; top: 0; background: #fff; z-index: 2; }
  .sw-nav-title { font-family: var(--sw-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 18px; }
  .sw-nav-item { border-bottom: 1px solid var(--sw-line); }
  .sw-nav-link { min-height: 54px; padding: 0 var(--sw-gutter); font-size: 17px; }
  .sw-nav-chev { color: var(--sw-muted); }
  .sw-mega { position: fixed; inset: 0; z-index: 3; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  .sw-mega.is-open { transform: none; visibility: visible; transition: transform .2s ease; }
  .sw-mega-back { display: flex; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--sw-line); padding: max(6px, env(safe-area-inset-top, 0px)) 6px 6px; }
  .sw-mega-backbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; font-weight: 700; color: var(--sw-ink); cursor: pointer; }
  .sw-mega-in { padding: 8px var(--sw-gutter) 24px; }
  .sw-mega-col { padding: 10px 0; border-bottom: 1px solid var(--sw-line); }
  .sw-mega-col a { min-height: 44px; align-items: center; font-size: 16px; }
  .sw-mega-all { min-height: 44px; display: inline-flex; align-items: center; }
  .sw-mega-promo { margin-top: 16px; }
  .sw-nav-extra { display: grid; padding: 12px var(--sw-gutter) 24px; gap: 4px; }
  .sw-nav-extra a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--sw-ink) !important; text-decoration: none; }
  .sw-nav-scrim { display: none; }
  body.sw-nav-open { overflow: hidden; }
}

/* Desktop: bar with hover/focus mega panels */
@media (min-width: 960px) {
  .sw-nav { border-bottom: 1px solid var(--sw-line); background: #fff; position: relative; z-index: 30; }
  .sw-nav-list { display: flex; margin-inline: -10px; overflow-x: auto; scrollbar-width: none; }
  .sw-nav-list::-webkit-scrollbar { display: none; }
  .sw-nav-item { flex: 0 0 auto; }
  .sw-nav-item.has-mega { position: static; }
  .sw-nav-link { padding: 13px 10px 11px; border-bottom: 3px solid transparent; font-size: 14px; white-space: nowrap; }
  .sw-nav-link.is-active, .sw-nav-item.is-open > .sw-nav-link { border-bottom-color: var(--sw-red); }
  .sw-nav-chev { display: none; }
  .sw-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); display: none; }
  .sw-nav-item.is-open > .sw-mega { display: block; }
  .sw-mega-in { max-width: var(--sw-wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; }
  .sw-mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .sw-mega-col { padding: 20px 22px; border-right: 1px solid var(--sw-line); }
  .sw-mega-col a { padding: 4px 0; font-size: 14px; }
  .sw-mega-promo { width: 340px; }
  .sw-nav-scrim { position: fixed; inset: 0; z-index: 20; background: rgba(19, 32, 43, .18); }
  .sw-nav-scrim[hidden] { display: none; }
}

/* ---------- Alerts (OpenCart notifications) ---------- */
.sw-alerts { position: fixed; z-index: 90; left: 50%; top: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); }
.sw-alerts .alert { background: #fff; border: 2px solid var(--sw-ink); padding: 12px 40px 12px 14px; margin-bottom: 8px; position: relative; font-size: 15px; }
.sw-alerts .alert-success { border-color: var(--sw-green); }
.sw-alerts .alert-danger { border-color: var(--sw-red); }
.sw-alerts .btn-close { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; }
.sw-alerts .btn-close::before { content: "×"; font-size: 22px; line-height: 1; }

/* ---------- Footer ---------- */
.sw-footer { background: var(--sw-ink); color: #C4D0DB; font-size: 14px; margin-top: 48px; }
.sw-footer a { color: #E4ECF3 !important; text-decoration: none; }
.sw-footer a:hover { text-decoration: underline; }
.sw-footer-in { display: grid; gap: 28px; padding-block: 32px; grid-template-columns: 1fr 1fr; }
.sw-footer-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
.sw-footer-brand img { width: 170px; }
.sw-footer-brand p { margin: 0; max-width: 40ch; }
.sw-footer address { font-style: normal; display: grid; gap: 6px; }
.sw-footer-tel { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 22px; color: #fff !important; }
.sw-footer-h { color: #fff; font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; margin: 0 0 10px; }
.sw-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sw-footer-col a { display: inline-block; padding: 5px 0; }
.sw-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px 24px; border-top: 1px solid #2A3A49; font-size: 13px; }
.sw-footer-base p { margin: 0; }
.sw-social { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.sw-social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; color: inherit; }
.sw-social-link:hover { color: var(--sw-blue); }
.sw-social-link svg { display: block; }
@media (min-width: 720px) { .sw-footer-in { grid-template-columns: 1.4fr repeat(3, 1fr); } .sw-footer-brand { grid-column: auto; } }

/* ---------- Cookie banner ---------- */
.sw-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 2px solid var(--sw-ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sw-cookie[hidden] { display: none; }
.sw-cookie-in { display: grid; gap: 12px; padding-block: 14px; }
.sw-cookie p { margin: 0; font-size: 14px; max-width: 75ch; }
.sw-cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 720px) { .sw-cookie-in { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Shared catalogue parts (used by later templates) ---------- */
.sw-model { font-size: 13px; color: var(--sw-muted); font-variant-numeric: tabular-nums; }
.sw-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sw-price-ex { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; }
.sw-price-ex small { font-family: var(--sw-body); font-weight: 400; font-size: 11.5px; color: var(--sw-muted); margin-left: 3px; }
.sw-price-inc { font-family: var(--sw-display); font-size: 12.5px; color: var(--sw-muted); font-variant-numeric: tabular-nums; }
.sw-price-old { font-size: 13px; color: var(--sw-muted); text-decoration: line-through; }
.sw-stock { font-size: 12.5px; color: var(--sw-green); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sw-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sw-stock.is-low { color: var(--sw-amber); }
.sw-stock.is-out { color: var(--sw-muted); }
.sw-badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; background: #fff; color: var(--sw-ink); border: 1px solid var(--sw-line); border-radius: 999px; }
.sw-badge.is-red { background: var(--sw-red); color: #fff; border-color: var(--sw-red); }
.sw-frame { position: relative; background: var(--sw-grey); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--sw-radius-lg); }
.sw-frame img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.sw-crumbs { font-size: 13px; color: var(--sw-muted); padding-block: 12px 0; }
.sw-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.sw-crumbs li + li::before { content: "›"; margin-right: 4px; }
.sw-crumbs a { color: var(--sw-muted) !important; text-decoration: none; }
.sw-crumbs a:hover { text-decoration: underline; }

/* ---------- Pages still drawn by OpenCart's templates (account, checkout…) ---------- */
.sw-legacy .sw-main { padding-block: 8px 24px; }
.sw-legacy .sw-main h1 { margin-top: .4em; }
.sw-legacy .sw-main .btn-primary { background: var(--sw-ink); border-color: var(--sw-ink); border-radius: var(--sw-radius); font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.sw-legacy .sw-main .btn-primary:hover { background: #000; border-color: #000; }
.sw-legacy .sw-main a:not(.btn) { color: var(--sw-blue); }
.sw-legacy .sw-main .breadcrumb { font-size: 13px; background: none; padding: 12px 0 0; margin-bottom: 8px; }
.sw-legacy .sw-main .form-control, .sw-legacy .sw-main .form-select { border-color: #B7C3CF; border-radius: var(--sw-radius); min-height: 44px; }
.sw-legacy .sw-main .list-group-item.active { background: var(--sw-ink); border-color: var(--sw-ink); }
.sw-legacy body, body.sw-legacy { font-family: var(--sw-body); }

@media (prefers-reduced-motion: reduce) { .sw *, .sw *::before, .sw *::after { transition: none !important; animation: none !important; } }

/* ---------- Homepage sections ---------- */
.sw-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-squares { display: inline-flex; gap: 4px; }
.sw-squares i { width: 8px; height: 8px; background: var(--sw-red); display: block; }
.sw-sec { padding-block: 24px 8px; }
.sw-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.sw-sec-head h2 { margin: 0; }
.sw-sec-head a { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (min-width: 960px) { .sw-sec { padding-block: 32px 8px; } }

/* Shop Window hero */
.sw-window { background: var(--sw-blue); color: #fff; }
.sw-window-in { display: grid; gap: 0; padding-inline: 0; }
.sw-window-copy { padding: 20px var(--sw-gutter) 16px; display: grid; gap: 12px; align-content: center; }
.sw-eyebrow { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .01em; color: #D6E7F8; }
.sw-window h1 { color: #fff; margin: 0; font-size: clamp(2rem, 6vw, 3rem); line-height: .95; }
.sw-window-text { margin: 0; color: #E4EFFA; max-width: 42ch; font-size: 15px; }
.sw-window-glass { margin: 4px var(--sw-gutter) 0; background: #F4F6F9; box-shadow: inset 0 -34px 0 #E2E8EE; border: 5px solid #0A5AA9; border-bottom: 0; display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding: 10px 10px 6px; min-height: 190px; position: relative; }
.sw-window-item { display: block; line-height: 0; }
.sw-window-item img { height: 170px; width: auto; mix-blend-mode: multiply; }
.sw-window-item.is-small img { height: 145px; }
.sw-window-tag { position: absolute; top: 12px; right: 12px; background: #fff; color: var(--sw-ink) !important; text-decoration: none; font-size: 12px; padding: 8px 12px 8px 26px; border-radius: var(--sw-radius-lg); box-shadow: 0 4px 14px rgba(19, 32, 43, .14); }
.sw-window-tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--sw-red); }
.sw-window-tag b { font-family: var(--sw-display); font-stretch: 85%; font-size: 14px; display: block; }
.sw-window-glass.is-photo { padding: 0; min-height: 0; box-shadow: none; border-bottom: 5px solid #0A5AA9; }
.sw-window-glass.is-photo img { width: 100%; height: auto; display: block; }
@media (max-width: 599px) { .sw-window-tag { display: none; } .sw-window .sw-btn { min-height: 40px; padding: 8px 12px; font-size: 13.5px; } }
@media (min-width: 960px) {
  .sw-window-in { grid-template-columns: 1fr 1.05fr; padding-inline: var(--sw-gutter); }
  .sw-window-copy { padding: 44px 40px 40px 0; gap: 16px; }
  .sw-window-text { font-size: 16px; }
  .sw-window-glass { margin: 18px 0; border-bottom: 6px solid #0A5AA9; border-width: 6px; box-shadow: inset 0 -64px 0 #E2E8EE; min-height: 330px; padding: 18px 24px 22px; gap: 4px; }
  .sw-window-item img { height: 290px; }
  .sw-window-item.is-small img { height: 250px; }
  .sw-window-tag { top: 16px; right: 18px; font-size: 12px; padding: 8px 12px 8px 26px; }
  .sw-window-tag b { font-size: 15px; }
}

/* Category tiles */
.sw-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sw-tile { display: grid; grid-template-rows: auto auto; height: 100%; background: var(--sw-grey); color: var(--sw-ink) !important; text-decoration: none; border-radius: var(--sw-radius-lg); overflow: hidden; }
.sw-tile-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; overflow: hidden; }
.sw-tile-ph img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.sw-tile-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px 11px; background: #fff; border: 1px solid var(--sw-line); border-top: 0; border-radius: 0 0 var(--sw-radius-lg) var(--sw-radius-lg); }
.sw-tile-lbl b { font-family: var(--sw-display); font-stretch: 85%; font-size: 14.5px; font-weight: 700; line-height: 1.15; }
.sw-tile-lbl span { font-size: 12px; color: var(--sw-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sw-tile:hover .sw-tile-lbl b { text-decoration: underline; }
.sw-tile.is-visit { background: var(--sw-ink); color: #fff !important; grid-template-rows: 1fr auto; }
.sw-tile-vin { display: grid; gap: 6px; align-content: start; padding: 14px; }
.sw-tile-vin b { font-family: var(--sw-display); font-stretch: 78%; font-size: 20px; line-height: 1; text-transform: uppercase; }
.sw-tile-vin span { font-size: 13px; color: #C9D5E0; }
.sw-tile.is-visit .sw-tile-lbl { background: var(--sw-red); border: 0; }
.sw-tile.is-visit .sw-tile-lbl span { color: #fff; }
@media (min-width: 720px) { .sw-tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; } .sw-tile-lbl b { font-size: 16px; } .sw-tile-vin b { font-size: 24px; } }

/* Product cards */
.sw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
@media (min-width: 720px) { .sw-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 1100px) { .sw-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sw-card { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sw-card-link { display: grid; gap: 6px; color: var(--sw-ink) !important; text-decoration: none; }
.sw-card-link .sw-frame { margin-bottom: 4px; }
.sw-card-name { font-family: var(--sw-body) !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.3 !important; margin: 0 !important; font-stretch: normal !important; text-transform: none !important; }
.sw-card-link:hover .sw-card-name { text-decoration: underline; }
@media (min-width: 720px) { .sw-card-name { font-size: 14.5px !important; } }
@media (max-width: 599px) { .sw-card .sw-price-ex { font-size: 18px; } }

/* Featured category band */
.sw-feature { display: grid; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); overflow: hidden; }
.sw-feature-copy { background: var(--sw-ink); color: #fff; padding: 22px 18px; display: grid; gap: 12px; align-content: start; }
.sw-feature-eyebrow { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: .01em; color: #B9C8D6; }
.sw-feature-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--sw-red); }
.sw-feature-copy h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.4vw, 1.9rem); font-stretch: 72%; line-height: .95; }
.sw-feature-copy p { margin: 0; color: #C9D5E0; font-size: 14px; }
.sw-feature-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sw-feature-chips a { display: inline-block; border: 1px solid #3A4B5B; font-size: 12.5px; padding: 6px 10px; color: #E4ECF3 !important; text-decoration: none; }
.sw-feature-chips a:hover { border-color: #fff; }
.sw-feature-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 16px 12px; }
.sw-feature-cards .sw-card:nth-child(3) { display: none; }
@media (min-width: 720px) {
  .sw-feature { grid-template-columns: .9fr 1.6fr; }
  .sw-feature-copy { padding: 26px; }
  .sw-feature-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; gap: 14px; }
  .sw-feature-cards .sw-card:nth-child(3) { display: grid; }
}

/* Showroom panel */
.sw-visit { background: var(--sw-grey); border-top: 1px solid var(--sw-line); margin-top: 32px; }
.sw-visit-in { display: grid; gap: 0; }
.sw-visit-in > div { padding: 22px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--sw-line); }
.sw-visit-in > div:last-child { border-bottom: 0; }
.sw-visit h2 { margin: 0; font-size: 22px; font-stretch: 78%; }
.sw-visit p { margin: 0; font-size: 14px; color: var(--sw-muted); }
.sw-visit .sw-btn { justify-self: start; margin-top: 4px; }
.sw-visit-addr { color: var(--sw-ink) !important; font-weight: 700; }
.sw-visit-h { font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sw-ink) !important; }
.sw-visit-hours { color: var(--sw-ink) !important; font-size: 16px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.sw-visit-tel { font-family: var(--sw-display); font-stretch: 85%; font-size: 28px; font-weight: 800; color: var(--sw-blue) !important; text-decoration: none; }
.sw-home + .sw-footer, .sw-main:has(.sw-visit:last-child) + .sw-footer { margin-top: 0; }
@media (min-width: 720px) {
  .sw-visit-in { grid-template-columns: 1.1fr 1fr 1fr; }
  .sw-visit-in > div { padding: 26px 28px; border-bottom: 0; border-right: 1px solid var(--sw-line); }
  .sw-visit-in > div:first-child { padding-left: 0; }
  .sw-visit-in > div:last-child { border-right: 0; }
}

/* ---------- Listing pages (category, search, offers) ---------- */
.sw-listing { padding-bottom: 16px; }
.sw-listing-head { padding-block: 8px 12px; display: grid; gap: 6px; }
.sw-listing-head h1 { margin: 0; }
.sw-listing-intro { color: var(--sw-muted); max-width: 70ch; font-size: 15px; }
.sw-listing-intro p { margin: 0; }
.sw-subcats { margin: 4px 0 18px; }
.sw-subcats ul { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.sw-subcats li { scroll-snap-align: start; }
.sw-subcats a { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; height: 100%; padding-bottom: 8px; background: var(--sw-grey); color: var(--sw-ink) !important; text-decoration: none; }
.sw-subcat-ph { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; }
.sw-subcat-ph img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.sw-subcat-name { padding: 0 8px; font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; font-size: 14px; line-height: 1.15; }
.sw-subcats .sw-count { padding: 0 8px; }
.sw-subcats a:hover .sw-subcat-name { text-decoration: underline; }
@media (min-width: 960px) {
  .sw-subcats ul { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
}

.sw-listing-body { display: grid; gap: 24px; }
@media (min-width: 960px) { .sw-listing-body.has-filters { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }

.sw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-block: 1px solid var(--sw-line); margin-bottom: 16px; }
.sw-toolbar-count { margin: 0 auto 0 0 !important; font-size: 13.5px; color: var(--sw-muted); }
.sw-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--sw-muted); }
.sw-sort select { min-height: 40px; border: 1px solid #B7C3CF; border-radius: var(--sw-radius); background: #fff; padding: 0 30px 0 10px; font: inherit; font-size: 14px; color: var(--sw-ink); }
.sw-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid var(--sw-line); border-radius: 999px; padding: 6px 12px; font-size: 13px; background: #fff; color: var(--sw-ink); }
.sw-chip.is-on { background: var(--sw-ink); color: #fff; border-color: var(--sw-ink); }
.sw-chip-filter { font-weight: 700; border-color: var(--sw-ink); cursor: pointer; }
.sw-active-filters { list-style: none; margin: -6px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }

/* Filters: sidebar on desktop, bottom sheet on phones */
.sw-filter-group { border: 0; margin: 0 0 18px; padding: 0; }
.sw-filter-group legend { font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--sw-muted); margin-bottom: 6px; }
.sw-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.sw-check input { width: 20px; height: 20px; accent-color: var(--sw-ink); }
.sw-sheet-head, .sw-sheet-foot { display: flex; gap: 8px; align-items: center; }
.sw-sheet-title { margin: 0 !important; font-family: var(--sw-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 18px; }
@media (max-width: 959px) {
  .sw-filters { position: fixed; inset: auto 0 0 0; z-index: 85; max-height: 85vh; background: #fff; border-top: 2px solid var(--sw-ink); transform: translateY(100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; display: flex; flex-direction: column; }
  .sw-filters.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
  .sw-filter-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
  .sw-sheet-head { justify-content: space-between; padding: 8px 6px 8px var(--sw-gutter); border-bottom: 1px solid var(--sw-line); }
  .sw-sheet-body { overflow-y: auto; padding: 14px var(--sw-gutter) 4px; flex: 1; }
  .sw-sheet-foot { padding: 10px var(--sw-gutter) max(12px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sw-line); }
  .sw-sheet-foot .sw-btn { flex: 1; }
  body.sw-sheet-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .sw-chip-filter, .sw-sheet-head .sw-icon-btn { display: none; }
  .sw-filters { position: sticky; top: 16px; }
  .sw-sheet-head { margin-bottom: 10px; }
  .sw-sheet-foot { margin-top: 4px; }
}

.sw-empty { padding: 32px 0; display: grid; gap: 12px; justify-items: start; }
.sw-empty p { margin: 0; font-size: 16px; max-width: 60ch; }

.sw-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 32px 0 8px; }
.sw-pager ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.sw-pager a, .sw-pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--sw-line); color: var(--sw-ink) !important; text-decoration: none; font-variant-numeric: tabular-nums; }
.sw-pager a:hover { border-color: var(--sw-ink); }
.sw-pager [aria-current="page"] { background: var(--sw-ink); color: #fff !important; border-color: var(--sw-ink); font-weight: 700; }
.sw-pager-gap { display: grid; place-items: center; min-width: 24px; color: var(--sw-muted); }
.sw-pager-step { font-weight: 700; }

/* Owner-written text (category copy, product descriptions, information pages) */
.sw-prose { max-width: 75ch; font-size: 16px; line-height: 1.6; }
.sw-prose h2 { font-size: 1.35rem; margin-top: 1.4em; }
.sw-prose h3 { font-size: 1.1rem; margin-top: 1.2em; }
.sw-prose ul, .sw-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.sw-prose li { margin-bottom: .3em; }
.sw-prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 15px; display: block; overflow-x: auto; }
.sw-prose td, .sw-prose th { border-bottom: 1px solid var(--sw-line); padding: 7px 10px 7px 0; text-align: left; vertical-align: top; }
.sw-prose img { height: auto; }
.sw-listing-more { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sw-line); }

/* ---------- Information pages, 404 ---------- */
.sw-page { padding-bottom: 24px; }
.sw-page-body { padding-top: 8px; }
.sw-page-body h1 { margin-bottom: .6em; }
.sw-input { min-height: 44px; border: 1px solid #B7C3CF; border-radius: var(--sw-radius); padding: 0 12px; font: inherit; font-size: 16px; color: var(--sw-ink); background: #fff; }
.sw-input:focus { outline: 3px solid var(--sw-blue); outline-offset: 1px; border-color: var(--sw-ink); }
.sw-eyebrow-dark { display: flex; gap: 10px; align-items: center; margin: 24px 0 8px; font-size: 14px; font-weight: 700; color: var(--sw-muted); }
.sw-404 > p { max-width: 60ch; }
.sw-404-search { display: flex; gap: 8px; max-width: 560px; margin: 8px 0 20px; }
.sw-404-search .sw-input { flex: 1; min-width: 0; }
.sw-404-cats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sw-404-cats a { display: inline-block; padding: 8px 12px; border: 1px solid var(--sw-line); color: var(--sw-ink) !important; text-decoration: none; }
.sw-404-cats a:hover { border-color: var(--sw-ink); }

/* ---------- Product page ---------- */
.sw-product { padding-bottom: 88px; }
.sw-p-grid { display: grid; gap: 18px; padding-top: 10px; }
@media (min-width: 960px) { .sw-p-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; } .sw-product { padding-bottom: 24px; } }

.sw-gallery { position: relative; min-width: 0; }
.sw-gallery-main { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sw-gallery-main::-webkit-scrollbar { display: none; }
.sw-gallery-slide { margin: 0; scroll-snap-align: start; }
.sw-gallery-slide a { display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; }
.sw-gallery-slide img { width: 90%; height: 90%; }
.sw-gallery-thumbs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.sw-gallery-thumbs a { width: 64px; border: 2px solid transparent; }
.sw-gallery-thumbs a.is-on { border-color: var(--sw-ink); }
.sw-gallery-count { position: absolute; top: 10px; right: 10px; margin: 0; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .92); padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 4px rgba(19, 32, 43, .12); }
@media (min-width: 960px) {
  .sw-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
  .sw-gallery-main { grid-column: 2; grid-row: 1; }
  .sw-gallery-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; margin: 0; overflow: visible; }
  .sw-gallery-thumbs a { width: 76px; }
  .sw-gallery-count { display: none; }
}

.sw-p-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sw-p-info > * { margin: 0; }
.sw-p-title { font-family: var(--sw-body) !important; font-size: clamp(1.25rem, 2.4vw, 1.65rem) !important; font-weight: 700 !important; font-stretch: normal !important; line-height: 1.2 !important; text-transform: none !important; }
.sw-ticket { position: relative; display: inline-grid; gap: 4px; justify-self: start; padding: 2px 0; }
.sw-ticket-ex { font-family: var(--sw-display); font-stretch: 82%; font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.sw-ticket-ex small { font-family: var(--sw-body); font-weight: 400; font-size: 13px; color: var(--sw-muted); margin-left: 4px; }
.sw-ticket-inc { font-family: var(--sw-display); font-stretch: 100%; font-size: 14px; color: var(--sw-muted); font-variant-numeric: tabular-nums; }

.sw-breaks { border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: 12px 14px; background: var(--sw-grey); }
.sw-breaks-h { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.sw-breaks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sw-breaks li { display: grid; grid-template-columns: 56px auto 1fr; gap: 8px; align-items: baseline; font-size: 14px; font-variant-numeric: tabular-nums; }
.sw-breaks small { color: var(--sw-muted); }

.sw-buy { display: grid; gap: 14px; }
.sw-opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.sw-opt legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.sw-req { font-weight: 400; color: var(--sw-muted); font-size: 13px; }
.sw-opt.is-invalid legend { color: var(--sw-red); }
.sw-field-error { margin: 6px 0 0; color: var(--sw-red); font-size: 13.5px; font-weight: 700; }
.sw-select { width: 100%; min-height: 48px; border: 1.5px solid var(--sw-ink); border-radius: var(--sw-radius); background: #fff; padding: 0 12px; font: inherit; font-size: 16px; color: var(--sw-ink); }
.sw-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-choice { position: relative; cursor: pointer; }
.sw-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw-choice > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1.5px solid #B7C3CF; border-radius: var(--sw-radius); background: #fff; font-size: 14.5px; }
.sw-choice small { color: var(--sw-muted); font-size: 12.5px; }
.sw-choice img { width: 32px; height: 32px; object-fit: contain; }
.sw-choice input:checked + span { border-color: var(--sw-ink); box-shadow: inset 0 0 0 1.5px var(--sw-ink); }
.sw-choice input:focus-visible + span { outline: 3px solid var(--sw-blue); outline-offset: 2px; }

.sw-buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.sw-qty { display: grid; grid-template-columns: 40px 48px 40px; border: 1.5px solid var(--sw-ink); border-radius: var(--sw-radius); height: 50px; }
.sw-qty button { border: 0; background: transparent; font-size: 20px; color: var(--sw-ink); cursor: pointer; }
.sw-qty input { border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; width: 100%; -moz-appearance: textfield; appearance: textfield; }
.sw-qty input::-webkit-outer-spin-button, .sw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sw-buy-btn { min-height: 50px; font-size: 16px; }
.sw-note { margin: 0; font-size: 13px; color: var(--sw-muted); }
.sw-buy-msg { margin: 0; padding: 10px 12px; font-size: 14.5px; border: 2px solid var(--sw-green); }
.sw-buy-msg.is-error { border-color: var(--sw-red); }
.sw-express:empty { display: none; }

.sw-deliv { border: 1px solid var(--sw-line); display: grid; }
.sw-deliv > div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--sw-line); color: var(--sw-blue); }
.sw-deliv > div:last-child { border-bottom: 0; }
.sw-deliv p { margin: 0; font-size: 13.5px; color: var(--sw-ink); }
.sw-deliv b { display: block; font-size: 14px; }
.sw-deliv span { color: var(--sw-muted); }

.sw-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.sw-specs caption { text-align: left; font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; padding-bottom: 6px; }
.sw-specs th { text-align: left; font-weight: 400; color: var(--sw-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--sw-line); width: 40%; vertical-align: top; }
.sw-specs td { padding: 8px 0; border-bottom: 1px solid var(--sw-line); font-weight: 700; }

.sw-p-desc { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--sw-line); }

.sw-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--sw-line); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px var(--sw-gutter) max(12px, env(safe-area-inset-bottom, 0px)); }
.sw-sticky-buy[hidden] { display: none; }
.sw-sticky-buy .sw-btn { min-height: 48px; }
@media (min-width: 960px) { .sw-sticky-buy { display: none !important; } }

.sw-zoom { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-items: center; padding: 48px 12px 12px; cursor: zoom-out; }
.sw-zoom[hidden] { display: none; }
.sw-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sw-zoom-close { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); right: 8px; }

/* ---------- Contact page and simple forms ---------- */
.sw-contact { display: grid; gap: 32px; margin-top: 8px; }
@media (min-width: 960px) { .sw-contact { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.sw-contact h2 { font-size: 1.35rem; }
.sw-contact address { font-style: normal; white-space: pre-line; font-size: 16px; margin-bottom: 12px; }
.sw-contact-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 16px 0; }
.sw-contact-dl dt { color: var(--sw-muted); }
.sw-contact-dl dd { margin: 0; font-weight: 700; }
.sw-contact-tel { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 24px; text-decoration: none; }
.sw-contact-form form .sw-field + .sw-field { margin-top: 16px; }
.sw-contact-send { margin-top: 24px; }
/* Contact form honeypot: off screen, so people never see it; spam robots fill it in. */
.sw-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sw-field { display: grid; gap: 6px; margin-bottom: 14px; }
.sw-field label { font-weight: 700; font-size: 15px; }
.sw-field .sw-input { width: 100%; }
.sw-field textarea.sw-input { padding: 10px 12px; min-height: 140px; }
.sw-input.is-invalid { border-color: var(--sw-red); }
.sw-form-msg { margin: 0 0 12px; padding: 10px 12px; border: 2px solid var(--sw-red); font-size: 14.5px; }

/* ---------- Checkout progress (the logo's four squares) ---------- */
.sw-stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 16px 0 8px; padding: 0; font-size: 13.5px; }
.sw-step { display: flex; align-items: center; gap: 8px; padding-right: 14px; color: var(--sw-muted); }
.sw-step i { width: 14px; height: 14px; display: block; border: 2px solid var(--sw-red); flex: 0 0 auto; }
.sw-step.is-done i, .sw-step.is-on i { background: var(--sw-red); }
.sw-step.is-on { font-weight: 700; color: var(--sw-ink); }
.sw-step.is-done { color: var(--sw-ink); }
.sw-step:not(:last-child)::after { content: ""; width: 22px; height: 2px; background: var(--sw-line); margin-left: 6px; }
.sw-step.is-done:not(:last-child)::after { background: var(--sw-red); }
@media (max-width: 599px) { .sw-step { font-size: 12px; padding-right: 8px; } .sw-step:not(:last-child)::after { width: 10px; } }

/* ---------- Basket, checkout and account (OpenCart templates, restyled) ---------- */
.sw-legacy .sw-main h1, .sw-legacy .sw-main h2 { font-family: var(--sw-display); text-transform: uppercase; font-stretch: 75%; font-weight: 800; }
.sw-legacy .sw-main h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.sw-legacy .sw-main h2, .sw-legacy .sw-main legend { font-size: 1.25rem; }
.sw-legacy .sw-main legend { font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--sw-line); padding-bottom: 6px; margin-bottom: 14px; }
.sw-legacy .sw-main .card, .sw-legacy .sw-main .list-group-item { border-radius: 0; border-color: var(--sw-line); }
.sw-legacy .sw-main .card-header { background: var(--sw-grey); border-radius: 0 !important; font-weight: 700; }
.sw-legacy .sw-main .table { font-size: 15px; }
.sw-legacy .sw-main .table thead td, .sw-legacy .sw-main .table thead th { font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; color: var(--sw-muted); background: none; }
.sw-legacy .sw-main .table img.img-thumbnail { border: 0; background: var(--sw-grey); border-radius: 0; mix-blend-mode: multiply; }
.sw-legacy .sw-main .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; min-height: 44px; border-radius: var(--sw-radius); font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.sw-legacy .sw-main .btn-light, .sw-legacy .sw-main .btn-secondary { background: #fff; border: 2px solid var(--sw-ink); color: var(--sw-ink); }
.sw-legacy .sw-main .btn-danger { background: #fff; border: 2px solid var(--sw-red); color: var(--sw-red); }
.sw-legacy #checkout-checkout .btn-primary, .sw-legacy #checkout-confirm .btn-primary, .sw-legacy #button-confirm, .sw-legacy .sw-main a.btn-primary[href*="checkout/checkout"] { background: var(--sw-red); border-color: var(--sw-red); }
.sw-legacy #checkout-checkout .btn-primary:hover, .sw-legacy #button-confirm:hover { background: #B80F16; border-color: #B80F16; }
.sw-legacy .sw-main .form-check-input:checked { background-color: var(--sw-ink); border-color: var(--sw-ink); }
.sw-legacy .sw-main .form-label, .sw-legacy .sw-main .col-form-label { font-weight: 700; }
.sw-legacy .sw-main .alert { border-radius: 0; }
.sw-legacy .sw-main .invalid-feedback { font-weight: 700; }
.sw-legacy #checkout-confirm .table tfoot td { font-variant-numeric: tabular-nums; }
.sw-legacy #checkout-confirm .table tfoot tr:last-child td { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 18px; }
.sw-legacy #column-right .list-group-item.active, .sw-legacy #column-left .list-group-item.active { color: #fff; }
.sw-legacy #column-right .list-group a, .sw-legacy #column-left .list-group a { color: var(--sw-ink); }
/* Bootstrap sets the body font; keep the theme's */
body.sw-legacy { font-family: var(--sw-body); color: var(--sw-ink); }
.sw-legacy .sw-header a, .sw-legacy .sw-nav a, .sw-legacy .sw-footer a { text-decoration: none; }
.sw-legacy .sw-nav ul, .sw-legacy .sw-footer ul { padding-left: 0; }

/* <picture> wrappers behave like the image inside */
.sw-frame picture, .sw-gallery-slide picture, .sw-window-item picture, .sw-window-glass picture, .sw-tile-ph picture, .sw-subcat-ph picture, .sw-mega-promo picture, .fw-hero-item picture, .fw-hero-stage picture, .fw-tile-ph picture { display: contents; }

/* Hero: banner layout (the picture carries its own words) */
.sw-window.is-banner { background: var(--sw-grey); }
.sw-banner-in { padding-inline: 0; }
.sw-banner-link, .sw-banner-in picture, .sw-banner-in img { display: block; width: 100%; height: auto; }
@media (min-width: 960px) { .sw-banner-in { padding-inline: var(--sw-gutter); padding-block: 16px; } }

/* Search: recent searches and recently viewed (stored in this browser only) */
.sw-s-h { margin: 0; padding: 10px 10px 4px; font-family: var(--sw-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; color: var(--sw-muted); }
.sw-s-recent { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; border-bottom: 1px solid var(--sw-line); }
.sw-suggest .sw-s-recent a { display: inline-flex; min-height: 36px; align-items: center; padding: 4px 12px; border: 1px solid var(--sw-line); border-radius: 999px; font-size: 14px; grid-template-columns: none; }
.sw-s-clear { display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--sw-line); background: #fff; color: var(--sw-muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sw-s-clear:hover { color: var(--sw-ink); text-decoration: underline; }
/* Buttons that are links: keep the button's own text colour (white on red/blue/ink), never the link blue. */
.sw a.btn { color: var(--bs-btn-color); }
.sw a.btn:hover, .sw a.btn:focus-visible { color: var(--bs-btn-hover-color); }
/* "Cache off" note, only for IP addresses on the testing list (Settings › Cache & testing) */
.sw-nocache { position: fixed; left: 12px; bottom: 12px; z-index: 2000; padding: 6px 10px; background: var(--sw-ink); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: var(--sw-radius); pointer-events: none; opacity: .9; }
/* Checkout test mode bar: only for testing IPs (Settings › Cache & testing) */
.sw-testbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2001; max-width: 980px; margin: 0 auto; padding: 10px 14px; background: #FFF4D6; border: 2px solid #C98A00; border-radius: var(--sw-radius); color: var(--sw-ink); font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.sw-testbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sw-testbar-until { color: #6B4A00; font-size: 13px; }
.sw-testbar a, .sw-testbar button { padding: 0; border: 0; background: none; color: var(--sw-blue) !important; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sw-testbar-msg { margin: 0 0 6px; font-weight: 700; color: #145A32; }
.sw-testbar-msg.is-error { color: #A40E14; }
.sw-testbar ~ .sw-nocache { bottom: auto; top: 12px; }
body:has(.sw-testbar) { padding-bottom: 96px; }
.sw-test-pay { padding: 12px 14px; background: #FFF4D6; border: 1px solid #E8C770; border-radius: var(--sw-radius); }
/* Trust bar (homepage block "Trust bar") */
.sw-trust { background: #fff; border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.sw-trust-list { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sw-trust-item { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 18px; }
.sw-trust-item + .sw-trust-item { border-left: 1px solid var(--sw-line); }
.sw-trust-icon { flex: 0 0 26px; color: var(--sw-blue); }
.sw-trust-body { display: grid; gap: 1px; line-height: 1.25; min-width: 0; }
.sw-trust-body b { font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; color: var(--sw-ink); }
.sw-trust-small { font-size: 13.5px; color: var(--sw-muted, #5B6B7E); }
.sw-trust-link { display: flex; align-items: center; gap: 12px; color: inherit !important; text-decoration: none; }
.sw-trust-link:hover .sw-trust-small { text-decoration: underline; }
.sw-trust-score { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 32px; line-height: 1; color: var(--sw-ink); }
.sw-stars { display: block; width: 92px; height: 17px; background: linear-gradient(90deg, #E8A317 var(--fill), #D5DCE3 var(--fill));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 17'%3E%3Cg%3E%3Cpath id='s' d='M8.5 0l2.6 5.4 5.9.8-4.3 4.1 1 5.9-5.2-2.8-5.3 2.8 1-5.9L0 6.2l5.9-.8z'/%3E%3Cuse href='%23s' x='18.75'/%3E%3Cuse href='%23s' x='37.5'/%3E%3Cuse href='%23s' x='56.25'/%3E%3Cuse href='%23s' x='75'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 17'%3E%3Cg%3E%3Cpath id='s' d='M8.5 0l2.6 5.4 5.9.8-4.3 4.1 1 5.9-5.2-2.8-5.3 2.8 1-5.9L0 6.2l5.9-.8z'/%3E%3Cuse href='%23s' x='18.75'/%3E%3Cuse href='%23s' x='37.5'/%3E%3Cuse href='%23s' x='56.25'/%3E%3Cuse href='%23s' x='75'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; }
@media (max-width: 959px) {
  .sw-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; padding-right: 0; }
  .sw-trust-item { min-height: 64px; padding: 10px 14px; }
  .sw-trust-item + .sw-trust-item { border-left: 0; }
  .sw-trust-item:nth-child(even) { border-left: 1px solid var(--sw-line); }
  .sw-trust-item:nth-child(n+3) { border-top: 1px solid var(--sw-line); }
  .sw-trust-rating:first-child:nth-last-child(odd) { grid-column: 1 / -1; justify-content: center; }
  .sw-trust-rating:first-child:nth-last-child(odd) ~ .sw-trust-item:nth-child(even) { border-left: 0; }
  .sw-trust-rating:first-child:nth-last-child(odd) ~ .sw-trust-item:nth-child(odd) { border-left: 1px solid var(--sw-line); }
  .sw-trust-rating:first-child:nth-last-child(odd) ~ .sw-trust-item { border-top: 1px solid var(--sw-line); }
  .sw-trust-score { font-size: 26px; }
  .sw-trust-body b { font-size: 13.5px; }
  .sw-trust-small { font-size: 12.5px; }
  .sw-trust-icon { flex-basis: 22px; width: 22px; height: 22px; }
}
/* Ex VAT / Inc VAT switch (top bar) */
.sw-vat { display: inline-flex; flex: 0 0 auto; border: 1px solid rgba(219, 229, 238, .45); border-radius: var(--sw-radius); overflow: hidden; }
.sw-vat-opt { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; color: #DBE5EE !important; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sw-vat-opt + .sw-vat-opt { border-left: 1px solid rgba(219, 229, 238, .45); }
.sw-vat-opt:hover { background: rgba(255, 255, 255, .1); }
.sw-vat-opt.is-on { background: #fff; color: var(--sw-ink) !important; }
@media (max-width: 599px) { .sw-vat-opt { min-height: 28px; padding: 2px 9px; } }
/* Ex/Inc VAT: prices are printed both ways; body[data-vat] shows one (instant switch, no reload) */
body:not([data-vat="inc"]) .sw-vat-inc, body[data-vat="inc"] .sw-vat-ex { display: none !important; }

/* =====================================================================
   UX round (basket, slide-out basket, delivery check, live price, gallery,
   filters, recently viewed, compact header, reassurance, account)
   ===================================================================== */
.sw-btn-block { display: flex; width: 100%; }
.sw-alert { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--sw-radius); border: 1px solid var(--sw-line); font-size: 14.5px; background: #fff; }
.sw-alert.is-ok { border-color: #B7DFC3; background: #F2FAF4; color: #0F5130; }
.sw-alert.is-error { border-color: #F2C6C8; background: #FDF1F1; color: #7A1418; }
.sw-back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; text-decoration: none; }
.sw-note { font-size: 13.5px; color: var(--sw-muted); }

/* ---------- Basket page ---------- */
.sw-cart { padding-bottom: 24px; }
.sw-basket-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 8px 0 16px; }
.sw-basket-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.sw-basket-sub { margin: 0; color: var(--sw-muted); font-size: 14px; }
.sw-basket-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .sw-basket-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } .sw-basket-sum { position: sticky; top: calc(var(--sw-hh, 80px) + 12px); } }
.sw-blist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sw-line); }
.sw-bitem { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px 14px; padding: 16px 0; border-bottom: 1px solid var(--sw-line); transition: opacity .15s; }
.sw-bitem.is-busy { opacity: .45; pointer-events: none; }
.sw-bitem-ph { width: 84px; height: 84px; aspect-ratio: auto; }
.sw-bitem-ph img { width: 86%; height: 86%; }
.sw-bitem-main { display: grid; gap: 4px; align-content: start; min-width: 0; }
.sw-bitem-name { font-weight: 700; color: var(--sw-ink) !important; text-decoration: none; line-height: 1.3; }
.sw-bitem-name:hover { text-decoration: underline; }
.sw-bitem-opts { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--sw-muted); }
.sw-bitem-each { margin: 0; font-size: 13px; color: var(--sw-muted); }
.sw-bitem-warn { margin: 0; font-size: 13px; color: #8A5300; }
.sw-bitem-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.sw-bitem-remove { font-size: 13.5px; color: var(--sw-muted) !important; }
.sw-bitem-total { margin: 0; font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sw-qty-sm { grid-template-columns: 36px 44px 36px; height: 40px; border-width: 1px; border-color: #B7C3CF; }
.sw-qty-sm button { font-size: 18px; }
@media (max-width: 599px) {
  .sw-bitem { grid-template-columns: 72px minmax(0, 1fr); }
  .sw-bitem-ph { width: 72px; height: 72px; }
  .sw-bitem-total { grid-column: 2; font-size: 16px; }
}
.sw-basket-sum { display: grid; gap: 14px; padding: 18px; background: var(--sw-grey); border-radius: var(--sw-radius-lg); }
.sw-basket-sum h2 { margin: 0; font-size: 20px; }
.sw-sum { margin: 0; display: grid; gap: 6px; }
.sw-sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sw-sum dt { color: var(--sw-muted); }
.sw-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sw-sum .is-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--sw-line); font-size: 18px; }
.sw-sum .is-total dt { color: var(--sw-ink); font-weight: 700; }
.sw-sum .is-total dd { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 22px; }
.sw-sum-note { margin: -6px 0 0; font-size: 13px; color: var(--sw-muted); }
.sw-checkout-btn { min-height: 52px; font-size: 17px; }
.sw-coupon summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.sw-coupon form { margin-top: 10px; display: grid; gap: 8px; }
.sw-sum-trust { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--sw-line); display: grid; gap: 8px; font-size: 13.5px; color: var(--sw-muted); }
.sw-sum-trust li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.sw-sum-trust svg { color: var(--sw-blue); }
.sw-sum-trust b { color: var(--sw-ink); }
.sw-cart-bar { display: none; }
@media (max-width: 959px) {
  .sw-cart-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--sw-gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--sw-line); box-shadow: 0 -4px 16px rgba(19, 32, 43, .08); }
  .sw-cart-bar p { margin: 0; display: grid; line-height: 1.1; }
  .sw-cart-bar span { font-size: 12px; color: var(--sw-muted); }
  .sw-cart-bar b { font-family: var(--sw-display); font-stretch: 85%; font-size: 20px; }
  .sw-cart-bar .sw-btn { min-height: 46px; padding-inline: 28px; }
  .sw-cart { padding-bottom: 90px; }
}
.sw-basket-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 0; }
.sw-basket-empty svg { color: var(--sw-muted); }
.sw-basket-empty h1 { margin: 0; }
.sw-basket-empty p { margin: 0 0 6px; color: var(--sw-muted); }

/* ---------- Delivery check (product page and basket) ---------- */
.sw-dcheck { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); }
.sw-dcheck label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sw-dcheck label svg { color: var(--sw-blue); }
.sw-dcheck-row { display: flex; gap: 8px; }
.sw-dcheck-row .sw-input { flex: 1; min-width: 0; text-transform: uppercase; min-height: 40px; }
.sw-dcheck-row .sw-btn { min-height: 40px; }
.sw-dcheck-out { margin: 0; font-size: 14px; }
.sw-dcheck-out b { font-family: var(--sw-display); font-stretch: 90%; }
.sw-dcheck-out small { display: block; color: var(--sw-muted); font-size: 12.5px; margin-top: 2px; }
.sw-dcheck-out.is-error { color: #7A1418; }
.sw-dcheck-sum { background: #fff; border-color: transparent; }

/* ---------- Live price ---------- */
.sw-ticket-total { margin: -4px 0 0; font-size: 14px; font-weight: 700; color: var(--sw-ink); }

/* ---------- Slide-out basket ---------- */
.sw-drawer { position: fixed; inset: 0; z-index: 120; }
.sw-drawer[hidden] { display: none; }
.sw-drawer-scrim { position: absolute; inset: 0; background: rgba(19, 32, 43, .45); opacity: 0; transition: opacity .2s; }
.sw-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: grid; grid-template-rows: auto 1fr auto; box-shadow: -8px 0 30px rgba(19, 32, 43, .18); transform: translateX(100%); transition: transform .22s ease-out; padding-top: env(safe-area-inset-top, 0px); }
.sw-drawer.is-open .sw-drawer-scrim { opacity: 1; }
.sw-drawer.is-open .sw-drawer-panel { transform: none; }
.sw-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--sw-line); }
.sw-drawer-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.sw-drawer-head h2 svg { color: var(--sw-green); }
.sw-drawer-body { overflow: auto; padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.sw-drawer-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; }
.sw-drawer-item .sw-frame { width: 88px; height: 88px; }
.sw-drawer-name { margin: 0; font-weight: 700; line-height: 1.3; }
.sw-drawer-opts, .sw-drawer-qty { margin: 2px 0 0; font-size: 13.5px; color: var(--sw-muted); }
.sw-drawer-sum { margin: 0; padding: 12px; background: var(--sw-grey); border-radius: var(--sw-radius); font-size: 14.5px; }
.sw-drawer-foot { display: grid; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sw-line); justify-items: stretch; }
.sw-drawer-foot .sw-linkbtn { justify-self: center; font-size: 14px; padding: 6px; }
@media (prefers-reduced-motion: reduce) { .sw-drawer-panel, .sw-drawer-scrim { transition: none; } }

/* ---------- Full-screen gallery ---------- */
.sw-lightbox { position: fixed; inset: 0; z-index: 130; background: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.sw-lightbox[hidden] { display: none; }
.sw-lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: max(8px, env(safe-area-inset-top, 0px)) 8px 4px 16px; font-size: 14px; font-weight: 700; color: var(--sw-muted); font-variant-numeric: tabular-nums; }
.sw-lightbox-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.sw-lightbox-track::-webkit-scrollbar { display: none; }
.sw-lightbox-track.is-zoomed { overflow: hidden; }
.sw-lightbox-slide { margin: 0; scroll-snap-align: center; display: grid; place-items: center; overflow: hidden; padding: 8px; }
.sw-lightbox-slide img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; cursor: zoom-in; transition: transform .2s; user-select: none; -webkit-user-select: none; }
.sw-lightbox-slide.is-zoomed img { transform: scale(2.5); cursor: zoom-out; touch-action: none; }
.sw-lightbox-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(19, 32, 43, .15); display: grid; place-items: center; cursor: pointer; color: var(--sw-ink); }
.sw-lightbox-nav.is-prev { left: 12px; }
.sw-lightbox-nav.is-next { right: 12px; }
.sw-lightbox-hint { margin: 0; padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12.5px; color: var(--sw-muted); }
@media (max-width: 599px) { .sw-lightbox-nav { display: none; } }

/* ---------- Filters ---------- */
.sw-check-n { margin-left: auto; font-size: 12.5px; color: var(--sw-muted); font-variant-numeric: tabular-nums; }
.sw-active-filters a.sw-chip { text-decoration: none; color: #fff !important; }
.sw-active-filters a.sw-chip svg { opacity: .85; }
.sw-active-filters a.sw-chip:hover { background: #000; }
[data-filter-show][disabled] { opacity: .6; }
@media (max-width: 959px) {
  .sw-toolbar { position: sticky; top: var(--sw-hh, 0px); z-index: 30; background: #fff; margin-inline: calc(-1 * var(--sw-gutter)); padding-inline: var(--sw-gutter); }
}

/* ---------- Recently viewed ---------- */
.sw-recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 160px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.sw-recent-item { display: grid; gap: 6px; scroll-snap-align: start; color: var(--sw-ink) !important; text-decoration: none; }
.sw-recent-item .sw-frame img { width: 86%; height: 86%; }
.sw-recent-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-recent-item:hover .sw-recent-name { text-decoration: underline; }

/* ---------- Compact header on scroll ---------- */
.sw-header { transition: box-shadow .2s; }
.sw-header.is-compact { box-shadow: 0 2px 14px rgba(19, 32, 43, .1); }
.sw-header.is-compact .sw-header-in { padding-block: 4px 6px; }
.sw-logo img { transition: width .2s; }
.sw-header.is-compact .sw-logo img { width: 110px; }
@media (min-width: 960px) { .sw-header.is-compact .sw-logo img { width: 150px; } }
@media (prefers-reduced-motion: reduce) { .sw-header, .sw-logo img { transition: none; } }

/* ---------- Account ---------- */
.sw-account { padding-bottom: 32px; }
.sw-account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 18px; }
.sw-account-head h1 { margin: 0; }
.sw-account-sec { margin-bottom: 24px; }
.sw-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sw-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); }
.sw-order-main { display: grid; gap: 2px; }
.sw-order-main span { font-size: 13.5px; color: var(--sw-muted); }
.sw-order .sw-badge { position: static; }
.sw-order-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 720px) { .sw-order { grid-template-columns: minmax(0, 1fr) auto auto; } .sw-order-actions { grid-column: auto; } }
.sw-acc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sw-acc-tile { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; height: 100%; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); color: var(--sw-ink) !important; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.sw-acc-tile:hover { border-color: #B7C3CF; box-shadow: 0 4px 14px rgba(19, 32, 43, .07); }
.sw-acc-tile svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--sw-grey); color: var(--sw-blue); }
.sw-acc-tile b { display: block; }
.sw-acc-tile small { color: var(--sw-muted); font-size: 13px; }
.sw-pager .pagination { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 6px; }
.sw-pager .page-link { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); text-decoration: none; color: var(--sw-ink) !important; }
.sw-pager .active .page-link { background: var(--sw-ink); color: #fff !important; border-color: var(--sw-ink); }
.sw-reorder-all { margin: 0 0 16px; }

/* OpenCart's own account forms (login, register, details): calmer layout */
.sw-legacy #account-login .card, .sw-legacy #account-register form, .sw-legacy #account-edit form, .sw-legacy #account-password form { max-width: 640px; }
.sw-legacy .sw-main .form-control, .sw-legacy .sw-main .form-select { min-height: 44px; border-radius: var(--sw-radius); }
.sw-legacy .sw-main .list-group-item { border-color: var(--sw-line); }

/* ---------- Checkout: three clear steps + order summary ---------- */
.sw-checkout { padding-block: 8px 32px; }
.sw-co-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 6px 0 18px; }
.sw-co-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.sw-co-secure { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--sw-green); }
.sw-co-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 992px) { .sw-co-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } .sw-co-sum { position: sticky; top: calc(var(--sw-hh, 80px) + 12px); } }
.sw-co-steps { display: grid; gap: 16px; }
.sw-co-step { background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: 18px 18px 20px; }
.sw-co-step > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 21px; }
.sw-co-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sw-ink); color: #fff; font-size: 15px; font-family: var(--sw-body); font-weight: 700; flex: 0 0 auto; }
@media (min-width: 600px) { .sw-co-step { padding: 22px 24px 24px; } }

/* OpenCart's details and address forms inside a step */
.sw-checkout fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.sw-checkout legend { float: none; width: auto; margin: 0 0 10px; padding: 0; font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; color: var(--sw-ink); }
.sw-checkout #form-register > p:first-child { margin: 0 0 14px; padding: 10px 12px; background: var(--sw-grey); border-radius: var(--sw-radius); font-size: 14px; }
.sw-checkout .form-label, .sw-checkout .col-form-label { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.sw-checkout .form-control, .sw-checkout .form-select { min-height: 46px; border-radius: var(--sw-radius); border-color: #B7C3CF; font-size: 16px; }
.sw-checkout .form-control:focus, .sw-checkout .form-select:focus { border-color: var(--sw-ink); box-shadow: 0 0 0 3px rgba(11, 103, 194, .18); }
.sw-checkout .row > [class*="col"] { margin-bottom: 4px; }
.sw-checkout .mb-3 { margin-bottom: 12px !important; }
.sw-checkout .required .form-label::after, .sw-checkout .required .col-form-label::after { content: " *"; color: var(--sw-red); }
.sw-checkout .required .form-label::before, .sw-checkout .required .col-form-label::before { content: none !important; }
/* "Register an account / Guest checkout" as two clear choices */
.sw-checkout .form-check-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 10px 14px; border: 1.5px solid var(--sw-line); border-radius: var(--sw-radius); cursor: pointer; }
.sw-checkout .form-check-inline:has(input:checked) { border-color: var(--sw-ink); background: var(--sw-grey); }
.sw-checkout .form-check-inline .form-check-input { float: none; margin: 0; }
.sw-checkout .form-check-input:checked { background-color: var(--sw-ink); border-color: var(--sw-ink); }
.sw-checkout #button-register, .sw-checkout #button-shipping-address, .sw-checkout #button-payment-address { min-height: 48px; padding-inline: 28px; background: var(--sw-ink); border-color: var(--sw-ink); border-radius: var(--sw-radius); font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 599px) { .sw-checkout #button-register { width: 100%; } }

/* Delivery and payment choices: cards, no "Choose" button */
.sw-co-options { display: grid; gap: 8px; }
.sw-co-opt { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--sw-line); border-radius: var(--sw-radius-lg); cursor: pointer; transition: border-color .15s, background .15s; }
.sw-co-opt:hover { border-color: #B7C3CF; }
.sw-co-opt:has(input:checked) { border-color: var(--sw-ink); background: var(--sw-grey); }
.sw-co-opt input { width: 20px; height: 20px; accent-color: var(--sw-ink); margin: 0; }
.sw-co-opt-main b { font-weight: 700; }
.sw-co-opt-price { font-family: var(--sw-display); font-stretch: 85%; font-weight: 800; font-size: 18px; white-space: nowrap; }
.sw-co-hint { margin: 0; padding: 12px 14px; border: 1px dashed #C9D3DD; border-radius: var(--sw-radius-lg); color: var(--sw-muted); font-size: 14px; }
.sw-co-err { margin: 0; padding: 12px 14px; border-radius: var(--sw-radius-lg); background: #FDF1F1; border: 1px solid #F2C6C8; color: #7A1418; font-size: 14px; }
.sw-co-note { margin-top: 16px; }
.sw-co-note summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.sw-co-note textarea { margin-top: 8px; }
.sw-co-agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 16px; font-size: 14.5px; cursor: pointer; }
.sw-co-agree input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--sw-ink); }

/* Order summary */
.sw-co-sum { background: var(--sw-grey); border-radius: var(--sw-radius-lg); padding: 18px; display: grid; gap: 14px; }
.sw-co-sum > h2 { margin: 0; font-size: 20px; }
.sw-co-items { list-style: none; margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--sw-line); display: grid; gap: 10px; }
.sw-co-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.sw-co-qty { color: var(--sw-muted); font-variant-numeric: tabular-nums; }
.sw-co-name a { color: var(--sw-ink) !important; text-decoration: none; font-weight: 700; }
.sw-co-name small { display: block; color: var(--sw-muted); font-size: 12.5px; }
.sw-co-line { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-co-sum .sw-sum { margin-top: 4px; }
.sw-co-pay { display: grid; gap: 8px; }
.sw-co-pay .btn-primary, .sw-co-pay #button-confirm, .sw-co-pay .sw-co-pay-wait { width: 100%; min-height: 54px; border-radius: var(--sw-radius); background: var(--sw-red); border-color: var(--sw-red); color: #fff; font-family: var(--sw-display); font-stretch: 90%; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.sw-co-pay .btn-primary:hover, .sw-co-pay #button-confirm:hover { background: #B80F16; border-color: #B80F16; }
.sw-co-pay .sw-co-pay-wait[disabled] { background: #C9D3DD; border-color: #C9D3DD; color: #fff; opacity: 1; }
.sw-co-pay .text-end { text-align: left !important; }
.sw-co-pay .sw-test-pay { background: #fff; }
.sw-co-pay .sw-co-hint { background: #fff; }

/* ---------- Log in, register, password and account forms ---------- */
.sw-auth-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 860px) { .sw-auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.sw-auth-grid.is-single { grid-template-columns: minmax(0, 560px); }
.sw-auth-card { background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: 20px 18px 22px; }
@media (min-width: 600px) { .sw-auth-card { padding: 26px 28px 28px; } }
.sw-auth-card > h2 { margin: 0 0 14px; font-size: 21px; }
.sw-auth-card form { display: grid; gap: 14px; }
.sw-auth-new { background: var(--sw-grey); border-color: transparent; }
.sw-auth-new > p { margin: 0 0 12px; }
.sw-auth-lead { margin: 0 0 16px; }
.sw-auth-small { margin: 14px 0 0; font-size: 14px; color: var(--sw-muted); }
.sw-auth-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.sw-auth-perks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.sw-auth-perks svg { color: var(--sw-green); margin-top: 3px; }
.sw-auth-submit { min-height: 50px; margin-top: 4px; }

.sw-field { display: grid; gap: 5px; margin: 0; }
.sw-field > label, .sw-field .sw-label, .sw-field-top label { font-weight: 700; font-size: 14.5px; }
.sw-field.required > label::after, .sw-field.required > .sw-label::after { content: " *"; color: var(--sw-red); }
.sw-field-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.sw-field-top a { font-size: 14px; }
.sw-field-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .sw-field-row { grid-template-columns: 1fr 1fr; } }
.sw-opt { font-weight: 400; color: var(--sw-muted); }
.sw-hint { margin: 0; font-size: 13.5px; color: var(--sw-muted); }
.sw-auth .form-control, .sw-auth .form-select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #B7C3CF; border-radius: var(--sw-radius); font-size: 16px; background-color: #fff; }
.sw-auth .form-control:focus, .sw-auth .form-select:focus { outline: 0; border-color: var(--sw-ink); box-shadow: 0 0 0 3px rgba(11, 103, 194, .18); }
.sw-auth .form-control.is-invalid, .sw-auth .form-select.is-invalid { border-color: var(--sw-red); background-image: none; padding-right: 12px; }
.sw-auth .invalid-feedback { display: none; margin: 0; color: #B80F16; font-size: 13.5px; font-weight: 700; }
.sw-auth .invalid-feedback.d-block, .sw-auth .is-invalid ~ .invalid-feedback { display: block; }
.sw-pass { position: relative; }
.sw-pass .form-control { padding-right: 70px; }
.sw-pass-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--sw-radius); background: transparent; color: var(--sw-blue); font-weight: 700; font-size: 14px; cursor: pointer; }
.sw-pass-show:hover { background: var(--sw-grey); }
.sw-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; cursor: pointer; margin: 0; }
.sw-check .form-check-input { float: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sw-ink); }
.sw-check small { color: var(--sw-muted); font-size: 13px; }
.sw-checks { display: grid; gap: 8px; }
.sw-auth .sw-alert { max-width: 560px; }
#account-login .sw-alert { max-width: none; }

/* Account pages still drawn by OpenCart (addresses, wish list, returns, order details…): same feel */
.sw-legacy [id^="account-"].container .breadcrumb { padding-top: 12px; }
.sw-legacy [id^="account-"].container #content > h1 { margin: 8px 0 18px; }
.sw-legacy [id^="account-"].container #content form, .sw-legacy [id^="account-"].container #content > .table-responsive,
.sw-legacy [id^="account-"].container #content > .card { background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: 18px; }
.sw-legacy [id^="account-"].container #content .table { margin-bottom: 0; }
.sw-legacy [id^="account-"].container #content .table-responsive { padding: 6px 12px; }
.sw-legacy [id^="account-"].container .row.mb-3 > .col-sm-2, .sw-legacy [id^="account-"].container .row.mb-3 > .col-sm-10 { width: 100%; }
.sw-legacy [id^="account-"].container .row.mb-3 > .col-form-label { padding-bottom: 4px; }
.sw-legacy [id^="account-"].container fieldset legend { border: 0; padding: 0; }
.sw-legacy [id^="account-"].container .form-control, .sw-legacy [id^="account-"].container .form-select { min-height: 48px; font-size: 16px; }
.sw-legacy #column-right .list-group, .sw-legacy #column-left .list-group { border-radius: var(--sw-radius-lg); overflow: hidden; }

/* Card payment note under the pay button */
.sw-co-paynote { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--sw-muted); }
.sw-co-paynote svg { flex: 0 0 auto; margin-top: 2px; color: var(--sw-green); }
.sw-co-paynote b { color: #7A1418; }

/* Maintenance mode: bar for logged-in admins (visitors get the "back soon" page) */
.sw-maintbar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2001; width: max-content; max-width: calc(100% - 24px); padding: 9px 14px; background: var(--sw-amber); color: #fff; font-size: 14px; line-height: 1.4; border-radius: var(--sw-radius); box-shadow: 0 4px 14px rgba(19,32,43,.25); }

/* Order complete: collection orders */
.sw-collect-note { padding: 12px 14px; border-left: 4px solid var(--sw-blue); background: var(--sw-grey); border-radius: var(--sw-radius); }

/* Checkout step 1: Delivery or collection */
.sw-co-how { display: grid; gap: 8px; }
.sw-how-opt .sw-co-opt-main { display: grid; gap: 2px; }
.sw-how-opt .sw-co-opt-main b { display: inline-flex; align-items: center; gap: 8px; }
.sw-how-opt .sw-co-opt-main b svg { flex: none; color: var(--sw-muted); }
.sw-how-opt small { color: var(--sw-muted); font-size: 14px; line-height: 1.4; }
.sw-how-opt.is-off { cursor: default; background: #fff; opacity: .7; }
.sw-how-opt.is-off:hover { border-color: var(--sw-line); }
.sw-co-how + .sw-co-err { margin-top: 8px; }
#sw-address-note { margin: -4px 0 12px; padding: 0; border: 0; }
.sw-co-saved { margin: 4px 0 0; min-height: 1.4em; color: var(--sw-muted); font-size: 14px; }
.sw-co-saved.is-ok { color: var(--sw-green); font-weight: 700; }
/* No newsletter: hide OpenCart's own account-menu link on pages the theme doesn't draw (the page redirects anyway) */
a[href*="route=account/newsletter"] { display: none !important; }

/* Checkout messages, inside the step they belong to */
.sw-co-alert { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; margin: 0 0 14px; padding: 12px 12px 12px 14px; border: 1.5px solid #E5A3A6; border-left-width: 5px; border-radius: var(--sw-radius-lg); background: #FDF1F1; color: #6E1216; font-size: 15px; line-height: 1.45; scroll-margin: 90px; }
.sw-co-alert svg { margin-top: 1px; color: #C4161C; }
.sw-co-alert p { margin: 0; font-weight: 700; }
.sw-co-alert:focus { outline: 3px solid rgba(196,22,28,.25); outline-offset: 2px; }
.sw-co-alert-x { width: 32px; height: 32px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.sw-co-alert-x:hover { background: rgba(196,22,28,.1); }
.sw-co-pay .sw-co-alert { text-align: left; }
.sw-co-addr-hint { margin: -4px 0 12px; padding: 0; border: 0; }
/* Field errors in the details form: clearer than Bootstrap's small red line */
.sw-checkout .invalid-feedback.d-block { margin-top: 6px; font-size: 14px; font-weight: 700; color: #B3141A; }
.sw-checkout .is-invalid { border-color: #C4161C !important; box-shadow: 0 0 0 3px rgba(196,22,28,.12) !important; }
@media (max-width: 640px) { .sw-co-alert { font-size: 14.5px; } }
.sw-live-warn { display: block; margin-top: 6px; color: #B3141A; }
/* Checkout: logged-in customer adding a missing phone number */
.sw-co-phone { margin: 0 0 16px; padding: 14px; border: 1.5px solid var(--sw-amber); border-radius: var(--sw-radius-lg); background: #FFF8E6; }
.sw-co-phone-row { display: flex; gap: 8px; max-width: 420px; }
.sw-co-phone-row .form-control { flex: 1; }

/* ---------- Ticker (Shop front › Notices, pop-ups & Christmas) ---------- */
.sw-ticker { position: relative; display: flex; align-items: center; min-height: 36px; background: var(--tk-bg, var(--sw-red)); color: var(--tk-fg, #fff); font-family: var(--sw-display); font-stretch: 92%; font-weight: 700; font-size: 14px; letter-spacing: .01em; overflow: hidden; }
.sw-ticker[hidden] { display: none; }
.sw-ticker a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.sw-ticker-view { flex: 1; min-width: 0; overflow: hidden; }
.sw-ticker-track { display: flex; width: max-content; }
.sw-ticker-msg { white-space: nowrap; padding: 8px 0; }
.sw-ticker-scroll .sw-ticker-msg { display: inline-flex; align-items: center; padding-inline: 28px 0; }
.sw-ticker-scroll .sw-ticker-msg::after { content: ""; width: 6px; height: 6px; margin-left: 28px; background: currentColor; opacity: .6; transform: rotate(45deg); }
.sw-ticker.is-moving .sw-ticker-track { animation: sw-ticker linear infinite; animation-duration: 30s; }
.sw-ticker.is-moving:hover .sw-ticker-track, .sw-ticker.is-moving:focus-within .sw-ticker-track { animation-play-state: paused; }
@keyframes sw-ticker { from { transform: translateX(0); } to { transform: translateX(var(--tk-shift, -50%)); } }
.sw-ticker-fade .sw-ticker-view { display: grid; padding-inline: var(--sw-gutter); }
.sw-ticker-fade .sw-ticker-track { display: grid; width: auto; }
.sw-ticker-fade .sw-ticker-msg { grid-area: 1 / 1; text-align: center; white-space: normal; opacity: 0; transition: opacity .5s ease; visibility: hidden; }
.sw-ticker-fade .sw-ticker-msg.is-on { opacity: 1; visibility: visible; }
.sw-ticker-scroll:not(.is-moving) .sw-ticker-track { padding-inline: var(--sw-gutter); }
.sw-ticker-x { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 36px; margin: 0; padding: 0; border: 0; background: var(--tk-bg, var(--sw-red)); color: inherit; cursor: pointer; box-shadow: -10px 0 12px var(--tk-bg, var(--sw-red)); position: relative; z-index: 1; }
.sw-ticker-x:hover { opacity: .8; }

/* ---------- Pop-ups ---------- */
.sw-pop[hidden] { display: none; }
.sw-pop-centre { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(19, 32, 43, .55); opacity: 0; transition: opacity .2s ease; }
.sw-pop-corner { position: fixed; left: 16px; bottom: 16px; z-index: 94; width: min(380px, calc(100% - 32px)); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.sw-pop.is-in { opacity: 1; transform: none; }
.sw-pop-box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--sw-radius-lg); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); transform: translateY(10px) scale(.98); transition: transform .25s ease; }
.sw-pop-corner .sw-pop-box { width: 100%; border: 2px solid var(--sw-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.sw-pop.is-in .sw-pop-box { transform: none; }
.sw-pop-x { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--sw-ink); cursor: pointer; }
.sw-pop-x:hover { background: var(--sw-grey); }
.sw-pop-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sw-pop-body { padding: 22px 24px 20px; }
.sw-pop-corner .sw-pop-body { padding: 18px 18px 14px; }
.sw-pop-h { margin: 0 40px 8px 0; font-family: var(--sw-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.sw-pop-img + .sw-pop-body .sw-pop-h { margin-right: 0; }
.sw-pop-corner .sw-pop-h { font-size: 19px; }
.sw-pop-text { margin: 0 0 14px; color: #33414F; }
.sw-pop-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border: 2px dashed var(--sw-ink); border-radius: var(--sw-radius); }
.sw-pop-code span { font-size: 13px; color: var(--sw-muted); }
.sw-pop-code b { flex: 1; font-family: var(--sw-display); font-size: 20px; letter-spacing: .08em; }
.sw-pop-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
body.sw-pop-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sw-pop, .sw-pop-box { transition: none; } }

/* ---------- Preview bar (admins only) ---------- */
.sw-previewbar { position: fixed; right: 12px; top: 12px; z-index: 2002; max-width: 360px; padding: 8px 12px; background: #13202B; color: #fff; font-size: 13px; border-radius: var(--sw-radius); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.sw-previewbar a { color: #F2C14E !important; font-weight: 700; }

/* Product photos with their own background (grey studio, beige…): the theme pads them with their own edge
   pixels (image/cache/yd-fill/), so they fill the whole frame instead of sitting in it as a darker box. */
.sw-frame img[src*="/yd-fill/"], .sw-gallery-slide img[src*="/yd-fill/"] { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
