/*
Theme Name: Filtersock
Theme URI: https://filtersock.co.uk
Author: Input IT Ltd
Description: Catalogue-style WooCommerce theme for filtersock.co.uk. Products as spec tables with prices at quantity, a micron ruler for navigation, and an ex/inc VAT switch.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: filtersock
*/

/* ==========================================================================
   Tokens. Navy and cyan come from the existing AFS logo; amber is reserved
   for one job only: marking a price that improves with quantity.
   ========================================================================== */

@font-face {
    font-family: "Archivo";
    src: url("assets/fonts/archivo-variable-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --fs-navy: #1B2B5E;
    --fs-cyan: #00B4EF;
    --fs-blue: #0B6FA4;
    --fs-bg: #F4F7F9;
    --fs-paper: #FFFFFF;
    --fs-ink: #14213D;
    --fs-steel: #5F6F7E;
    --fs-line: #D5DEE6;
    --fs-amber: #E8A317;
    --fs-amber-wash: #FFF6DF;
    --fs-radius: 4px;

    --fs-wrap: 1180px;
    --fs-gutter: clamp(16px, 4vw, 40px);
    --fs-font: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--fs-bg);
    color: var(--fs-ink);
    font-family: var(--fs-font);
    font-size: 1.0625rem;
    line-height: 1.55;
    font-stretch: 100%;
    font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; }

a { color: var(--fs-blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fs-navy); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--fs-cyan); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--fs-cyan); color: var(--fs-navy); }
input, textarea, select { caret-color: var(--fs-blue); accent-color: var(--fs-navy); }

h1, h2, h3 { font-stretch: 118%; font-weight: 760; line-height: 1.08; letter-spacing: -0.012em; color: var(--fs-navy); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.2rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
h3 { font-size: 1.15rem; font-stretch: 108%; }

p { margin: 0 0 1em; }
small { font-size: 0.78em; font-weight: 500; color: var(--fs-steel); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.fs-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--fs-navy); color: #fff; padding: 10px 16px; }
.fs-skip:focus { left: 8px; top: 8px; }

.fs-wrap { width: 100%; max-width: calc(var(--fs-wrap) + var(--fs-gutter) * 2); margin-inline: auto; padding-inline: var(--fs-gutter); }

.fs-main { display: block; padding-bottom: 72px; }
.fs-main.fs-wrap { padding-top: 28px; }

.fs-lede { font-size: 1.2rem; line-height: 1.45; max-width: 62ch; color: var(--fs-ink); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.fs-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wpcf7-submit {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 10px 22px;
    border: 2px solid var(--fs-navy); border-radius: var(--fs-radius);
    background: var(--fs-navy); color: #fff;
    font: inherit; font-weight: 650; font-stretch: 108%; line-height: 1.15; text-decoration: none;
    cursor: pointer;
}
.fs-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wpcf7-submit:hover { background: var(--fs-blue); border-color: var(--fs-blue); color: #fff; }

.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--fs-navy); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--fs-blue); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: 0.55; cursor: not-allowed; }

.fs-btn--ghost { background: transparent; color: var(--fs-navy); }
.fs-btn--ghost:hover { background: var(--fs-navy); border-color: var(--fs-navy); color: #fff; }
.fs-btn--light { background: #fff; border-color: #fff; color: var(--fs-navy); }
.fs-btn--light:hover { background: var(--fs-cyan); border-color: var(--fs-cyan); color: var(--fs-navy); }
.fs-btn--ghost-light { background: transparent; border-color: #fff; color: #fff; }
.fs-btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--fs-navy); }
.fs-btn--small { min-height: 38px; padding: 6px 14px; font-size: 0.92rem; }

.fs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.fs-util { background: var(--fs-navy); color: #DCE6F2; font-size: 0.88rem; }
.fs-util__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.fs-util__note { margin: 0; }
.fs-util__tools { display: flex; align-items: center; gap: 18px; }
.fs-util a { color: #fff; }

.fs-vat { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--fs-radius); overflow: hidden; }
.fs-vat__btn { appearance: none; border: 0; background: transparent; color: #DCE6F2; font: inherit; font-size: 0.82rem; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.fs-vat__btn[aria-pressed="true"] { background: #fff; color: var(--fs-navy); }

.fs-head { background: var(--fs-paper); border-bottom: 1px solid var(--fs-line); position: sticky; top: 0; z-index: 50; }
.fs-head__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }

.fs-brand { margin: 0; flex-shrink: 0; }
.fs-brand img { display: block; max-height: 64px; width: auto; }

.fs-search { display: flex; align-items: stretch; }
.fs-search input[type="search"] { width: 210px; min-height: 30px; padding: 3px 10px; border: 1px solid #fff; border-right: 0; border-radius: var(--fs-radius) 0 0 var(--fs-radius); font: inherit; font-size: 0.88rem; color: var(--fs-ink); background: var(--fs-paper); }
.fs-search input[type="search"]:focus { outline: 2px solid var(--fs-cyan); outline-offset: 1px; }
.fs-search button { min-height: 30px; padding: 3px 12px; border: 1px solid #fff; border-radius: 0 var(--fs-radius) var(--fs-radius) 0; background: transparent; color: #fff; font: inherit; font-size: 0.88rem; font-weight: 650; cursor: pointer; }
.fs-search button:hover { background: #fff; color: var(--fs-navy); }
.fs-brand__word { display: inline-flex; align-items: center; gap: 10px; color: var(--fs-navy); text-decoration: none; font-size: 1.6rem; font-weight: 820; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1; }
.fs-brand__word:hover { color: var(--fs-navy); }
/* The mark is a ring seen from above with mesh inside it: the top of a filter sock. */
.fs-brand__mark {
    width: 30px; height: 30px; border-radius: 50%;
    border: 4px solid var(--fs-cyan);
    background:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(27, 43, 94, 0.55) 3px 4px),
        repeating-linear-gradient(90deg, transparent 0 3px, rgba(27, 43, 94, 0.55) 3px 4px);
}

.fs-nav { margin-left: auto; }
.fs-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fs-nav a { display: block; white-space: nowrap; font-size: 0.97rem; padding: 10px 9px; color: var(--fs-ink); font-weight: 600; text-decoration: none; border-radius: var(--fs-radius); }
.fs-nav a:hover { background: var(--fs-bg); color: var(--fs-navy); }
.fs-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--fs-cyan); border-radius: 0; }

.fs-basket { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--fs-navy); border-radius: var(--fs-radius); color: var(--fs-navy); font-weight: 650; text-decoration: none; white-space: nowrap; }
.fs-basket:hover { background: var(--fs-navy); color: #fff; }
.fs-basket__count { min-width: 1.5em; padding: 0 5px; border-radius: 999px; background: var(--fs-cyan); color: var(--fs-navy); font-size: 0.85rem; text-align: center; }

.fs-navtoggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 14px; border: 2px solid var(--fs-navy); border-radius: var(--fs-radius); background: transparent; color: var(--fs-navy); font: inherit; font-weight: 650; cursor: pointer; }

@media (max-width: 1180px) {
    .fs-util__note { display: none; }
    .fs-util__in { justify-content: flex-end; }
    .fs-head__in { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
    .fs-navtoggle { display: inline-flex; align-items: center; }
    .fs-nav { display: none; order: 5; flex-basis: 100%; margin: 0; }
    .fs-nav.is-open { display: block; }
    .fs-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--fs-line); padding-top: 6px; }
    .fs-nav a { padding: 12px 4px; }
}

@media (max-width: 520px) {
    .fs-head__in { gap: 8px; }
    .fs-brand__word { font-size: 1.25rem; gap: 7px; }
    .fs-brand__mark { width: 24px; height: 24px; border-width: 3px; }
    .fs-navtoggle, .fs-basket { min-height: 40px; padding: 6px 10px; font-size: 0.92rem; }
    .fs-basket { order: 2; }
    .fs-navtoggle { order: 3; margin-left: 0; }
    .fs-brand { margin-right: auto; }
    .fs-brand img { max-height: 48px; }
    .fs-util__tools { gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-block: 5px; }
    .fs-search { flex-basis: 100%; }
    .fs-search input[type="search"] { flex: 1; width: auto; }
}

/* ==========================================================================
   Hero and the micron ruler
   ========================================================================== */

.fs-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 5vw, 72px); background: var(--fs-paper); border-bottom: 1px solid var(--fs-line); }
.fs-hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.fs-hero__copy h1 { max-width: 14ch; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); }
.fs-hero__copy .fs-lede { max-width: 52ch; }
.fs-hero__photo { margin: 0; padding: 20px 20px 14px; background: var(--fs-bg); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); }
.fs-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.fs-hero__photo figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--fs-steel); text-align: center; }
@media (max-width: 780px) {
    .fs-hero__in { grid-template-columns: 1fr; }
    .fs-hero__photo { display: none; }
}

.fs-band--ruler { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(20px, 3vw, 36px); }
.fs-ruler__title { margin: 0 0 14px; }
.fs-ruler__scroll { overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.fs-ruler__inner { position: relative; min-width: 900px; padding: 0 26px; }

.fs-ruler__bands { position: relative; height: 92px; }
.fs-ruler__band { position: absolute; height: 24px; display: flex; align-items: center; padding: 0 8px; background: #DFF4FC; border-left: 2px solid var(--fs-cyan); border-right: 2px solid var(--fs-cyan); font-size: 0.8rem; font-weight: 600; color: var(--fs-navy); white-space: nowrap; overflow: visible; }
.fs-ruler__band > span { position: relative; z-index: 1; }
.fs-ruler__band--row1 { top: 0; }
.fs-ruler__band--row2 { top: 30px; }
.fs-ruler__band.is-end { justify-content: flex-end; border-left: 0; }
.fs-ruler__eye { position: absolute; top: 60px; bottom: -60px; border-left: 2px dashed var(--fs-steel); padding: 2px 0 0 8px; font-size: 0.8rem; font-weight: 600; color: var(--fs-steel); white-space: nowrap; pointer-events: none; }

.fs-ruler__ticks { position: relative; list-style: none; margin: 0; padding: 0; height: 58px; }
.fs-ruler__ticks li { position: absolute; top: 0; transform: translateX(-50%); }
.fs-ruler__tick { position: relative; display: flex; align-items: center; justify-content: center; min-width: 38px; height: 36px; padding: 0 5px; border-radius: 999px; border: 2px solid var(--fs-navy); font-weight: 760; font-stretch: 96%; font-size: 0.88rem; text-decoration: none; }
.fs-ruler__tick::after { content: ""; position: absolute; left: 50%; width: 2px; height: 18px; margin-left: -1px; background: var(--fs-navy); }
.fs-ruler__tick.is-stock { background: var(--fs-navy); color: #fff; }
.fs-ruler__tick.is-stock::after { top: 100%; }
.fs-ruler__tick.is-stock:hover { background: var(--fs-cyan); border-color: var(--fs-cyan); color: var(--fs-navy); }
.fs-ruler__ticks--order { padding-top: 0; }
.fs-ruler__ticks--order li { top: 18px; }
.fs-ruler__tick.is-order { background: var(--fs-paper); color: var(--fs-navy); border-style: dashed; }
.fs-ruler__tick.is-order::after { bottom: 100%; background: repeating-linear-gradient(180deg, var(--fs-navy) 0 3px, transparent 3px 6px); }
.fs-ruler__tick.is-order:hover { background: var(--fs-amber-wash); border-style: solid; }

.fs-ruler__axis { position: relative; height: 40px; border-top: 3px solid var(--fs-navy); }
.fs-ruler__axis i { position: absolute; top: 0; width: 1px; background: var(--fs-navy); }
.fs-ruler__axis i.is-minor { height: 8px; opacity: 0.55; }
.fs-ruler__axis i.is-major { height: 16px; width: 2px; margin-left: -1px; }
.fs-ruler__axis em { position: absolute; top: 18px; transform: translateX(-50%); font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--fs-steel); }

.fs-ruler__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 12px 0 0; font-size: 0.88rem; color: var(--fs-steel); }
.fs-ruler__key { display: inline-flex; align-items: center; gap: 8px; color: var(--fs-ink); font-weight: 600; }
.fs-ruler__key::before { content: ""; width: 22px; height: 14px; border-radius: 999px; border: 2px solid var(--fs-navy); }
.fs-ruler__key.is-stock::before { background: var(--fs-navy); }
.fs-ruler__key.is-order::before { border-style: dashed; }

/* ==========================================================================
   Bands (homepage sections)
   ========================================================================== */

.fs-band { padding: clamp(36px, 5vw, 64px) 0; }
.fs-band--tint { background: var(--fs-paper); border-block: 1px solid var(--fs-line); }
.fs-band--navy { background: var(--fs-navy); color: #E4ECF6; }
.fs-band--navy h2 { color: #fff; }
.fs-band--navy a:not(.fs-btn) { color: #fff; }
.fs-band--slim { padding: 28px 0 0; }
.fs-band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.fs-band__head h2 { margin: 0; }

.fs-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 820px) { .fs-split { grid-template-columns: 1fr; } }

.fs-defs { margin: 0 0 1.2em; }
.fs-defs > div { padding: 14px 0; border-top: 1px solid var(--fs-line); }
.fs-defs dt { font-weight: 700; font-size: 1.08rem; }
.fs-defs dd { margin: 4px 0 0; max-width: 58ch; }

.fs-links { list-style: none; margin: 0; padding: 0; }
.fs-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 13px 0; border-top: 1px solid var(--fs-line); }
.fs-links a { font-weight: 700; color: var(--fs-navy); text-decoration: none; }
.fs-links a:hover { color: var(--fs-blue); text-decoration: underline; }
.fs-links span { color: var(--fs-steel); font-size: 0.95rem; }

/* Felt vs mesh: a two-column comparison in the site's own spec-table language. */
.fs-compare-wrap { background: var(--fs-paper); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); overflow: hidden; }
.fs-compare { width: 100%; border-collapse: collapse; }
.fs-compare thead th { width: 42%; padding: 22px 18px 14px; text-align: left; vertical-align: bottom; border-bottom: 2px solid var(--fs-navy); }
.fs-compare thead td { border-bottom: 2px solid var(--fs-navy); }
.fs-compare thead img { display: block; width: 150px; height: 112px; object-fit: contain; object-position: left center; margin-bottom: 6px; mix-blend-mode: multiply; }
.fs-compare thead a { font-size: 1.25rem; font-weight: 760; font-stretch: 112%; color: var(--fs-navy); text-decoration: none; }
.fs-compare thead a:hover { color: var(--fs-blue); text-decoration: underline; }
.fs-compare tbody th, .fs-compare tbody td { padding: 13px 18px; border-top: 1px solid var(--fs-line); vertical-align: top; text-align: left; }
.fs-compare tbody th { width: 16%; font-weight: 700; font-size: 0.92rem; color: var(--fs-steel); }
.fs-compare tbody td { font-size: 0.98rem; }
@media (max-width: 700px) {
    .fs-compare, .fs-compare thead, .fs-compare tbody { display: block; }
    .fs-compare tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-compare thead td { display: none; }
    .fs-compare thead th { width: auto; padding: 16px 12px 10px; }
    .fs-compare thead img { width: 100%; height: 90px; object-position: center; }
    .fs-compare thead a { font-size: 1.1rem; }
    .fs-compare tbody th { grid-column: 1 / -1; width: auto; padding: 12px 12px 2px; }
    .fs-compare tbody td { border-top: 0; padding: 4px 12px 14px; font-size: 0.92rem; }
}

/* Shop by fitting: photo tiles, one per ring size, plus one navy tile for housing bags. */
.fs-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fs-tile a { display: flex; flex-direction: column; height: 100%; background: var(--fs-paper); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); color: var(--fs-ink); text-decoration: none; overflow: hidden; transition: border-color 160ms ease-out, transform 160ms ease-out; }
.fs-tile a:hover { border-color: var(--fs-navy); transform: translateY(-2px); }
.fs-tile__photo { display: block; padding: 18px; background: var(--fs-bg); }
.fs-tile__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.fs-tile__title { display: block; padding: 14px 16px 2px; font-size: 1.08rem; font-weight: 760; font-stretch: 108%; color: var(--fs-navy); }
.fs-tile__text { display: block; padding: 0 16px 16px; font-size: 0.93rem; color: var(--fs-steel); }
.fs-tile a:hover .fs-tile__title { color: var(--fs-blue); }
.fs-tile--quote a { background: var(--fs-navy); border-color: var(--fs-navy); color: #E4ECF6; justify-content: flex-end; padding-top: 18px; }
.fs-tile--quote a:hover { border-color: var(--fs-cyan); }
.fs-tile--quote .fs-tile__title { color: #fff; }
.fs-tile--quote .fs-tile__text { color: #C9D6E6; }
.fs-tile--quote a:hover .fs-tile__title { color: var(--fs-cyan); }
.fs-tile__cta { display: inline-block; margin: 0 16px 16px; align-self: flex-start; padding: 7px 12px; border: 2px solid #fff; border-radius: var(--fs-radius); color: #fff; font-weight: 650; font-size: 0.92rem; }
.fs-tile--quote a:hover .fs-tile__cta { background: var(--fs-cyan); border-color: var(--fs-cyan); color: var(--fs-navy); }
@media (max-width: 900px) { .fs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .fs-tiles { grid-template-columns: 1fr; } .fs-tile__photo img { aspect-ratio: 16 / 9; } }

.fs-industries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); }
.fs-prose > .fs-industries { max-width: none; margin: 0.6em 0 1.4em; }
.fs-industries li { padding: 14px 0; border-top: 1px solid var(--fs-line); margin: 0; }
.fs-industries a { display: block; font-weight: 700; font-size: 1.08rem; color: var(--fs-navy); text-decoration: none; }
.fs-industries a:hover { color: var(--fs-blue); text-decoration: underline; }
.fs-industries span { display: block; color: var(--fs-steel); font-size: 0.97rem; max-width: 52ch; }
@media (max-width: 720px) { .fs-industries { grid-template-columns: 1fr; } }

.fs-steps { margin: 1.2em 0 0; padding-left: 1.3em; max-width: 56ch; }
.fs-steps li { padding: 6px 0 6px 6px; }
.fs-steps li::marker { font-weight: 800; color: var(--fs-cyan); }
.fs-steps b { color: #fff; }

.fs-also { margin: 0; color: var(--fs-steel); }

/* ==========================================================================
   Catalogue table
   ========================================================================== */

.fs-table-wrap { background: var(--fs-paper); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); overflow: hidden; }
.fs-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.fs-table caption { text-align: left; padding: 14px 16px 0; font-weight: 700; color: var(--fs-navy); }
.fs-table thead th { padding: 12px 14px; text-align: left; font-size: 0.82rem; font-weight: 700; color: var(--fs-steel); border-bottom: 2px solid var(--fs-navy); white-space: nowrap; }
.fs-table tbody td { white-space: nowrap; }
.fs-table tbody th, .fs-table tbody td { padding: 12px 14px; border-top: 1px solid var(--fs-line); vertical-align: middle; text-align: left; font-weight: 400; }
.fs-table tbody tr:first-child th, .fs-table tbody tr:first-child td { border-top: 0; }
.fs-table tbody tr:hover { background: #FAFCFD; }
.fs-table .is-num { text-align: right; }
.fs-table td.is-num { font-weight: 650; }

.fs-table__prod a { display: flex; align-items: center; gap: 12px; color: var(--fs-ink); text-decoration: none; }
.fs-table__prod a:hover .fs-table__name { color: var(--fs-blue); text-decoration: underline; }
.fs-table__img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.fs-table__name { font-weight: 650; line-height: 1.3; }
.fs-table__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0 64px; }
.fs-sku { font-size: 0.8rem; color: var(--fs-steel); letter-spacing: 0.02em; }
.fs-flag--out { background: #FDECEC; color: #8A1F1F; margin-right: 8px; }
.fs-cat-section { margin-top: 36px; }
.fs-cat-section .fs-band__head { margin-bottom: 12px; }
.fs-cat-section .fs-count { margin: 0; }
.fs-cat-section .fs-table-wrap + .fs-table-wrap { margin-top: 18px; }
.fs-table--mto tbody th { font-weight: 650; }
.fs-table--mto .fs-table__buy .fs-btn + .fs-btn { margin-left: 6px; }
.fs-filters--range { align-items: flex-start; flex-direction: column; gap: 14px; }
.fs-filters--range .fs-filters__group { align-items: flex-start; flex-wrap: nowrap; gap: 14px; width: 100%; }
.fs-filters--range .fs-filters__label { flex: 0 0 120px; padding-top: 8px; }
.fs-filters--range .fs-filters__clear { margin-left: 134px; }
@media (max-width: 700px) {
    .fs-filters--range .fs-filters__group { flex-direction: column; gap: 6px; }
    .fs-filters--range .fs-filters__label { flex: none; padding-top: 0; }
    .fs-filters--range .fs-filters__clear { margin-left: 0; }
}
.fs-flag { font-size: 0.78rem; font-weight: 650; color: var(--fs-navy); background: #DFF4FC; padding: 1px 7px; border-radius: 999px; }
.fs-na { color: #A9B6C1; }

.fs-table__price { white-space: nowrap; }
.fs-table__price--break { background: var(--fs-amber-wash); box-shadow: inset 3px 0 0 var(--fs-amber); }
.fs-table tbody tr:hover .fs-table__price--break { background: #FFF0CC; }

.fs-table__note { margin: 10px 2px 0; font-size: 0.9rem; color: var(--fs-steel); }
.fs-price small { display: block; font-size: 0.72rem; font-weight: 500; line-height: 1.1; }
.fs-price__ex { display: none; }
.vat-ex .fs-price__ex { display: inline; }
.vat-ex .fs-price__inc { display: none; }

.fs-rowbuy { display: flex; gap: 6px; justify-content: flex-end; }
.fs-rowbuy .fs-rowbuy__qty { width: 64px; flex: none; min-height: 38px; padding: 4px 6px; border: 1px solid #9FB0BF; border-radius: var(--fs-radius); font: inherit; text-align: center; background: #fff; }
.fs-table__buy { text-align: right; white-space: nowrap; }

@media (max-width: 1100px) {
    .fs-table thead { position: absolute; left: -9999px; }
    .fs-table, .fs-table tbody, .fs-table tr { display: block; }
    .fs-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 14px; border-top: 1px solid var(--fs-line); }
    .fs-table tbody tr:first-child { border-top: 0; }
    .fs-table tbody th, .fs-table tbody td { display: block; border: 0; padding: 4px 0; }
    .fs-table tbody th.fs-table__prod { grid-column: 1 / -1; padding-bottom: 8px; }
    .fs-table tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 0.74rem; font-weight: 600; color: var(--fs-steel); }
    .fs-table tbody td.is-num { text-align: left; }
    .fs-table__price--break { padding: 6px 8px !important; border-radius: var(--fs-radius); }
    .fs-table__buy { grid-column: 1 / -1; padding-top: 10px !important; }
    .fs-rowbuy { justify-content: flex-start; }
    .fs-rowbuy .fs-btn { flex: 1; }
}

/* Range picker: three dropdowns with hover help */
.fs-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px 20px; align-items: end; margin: 0 0 8px; padding: 18px 20px; background: var(--fs-paper); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); }
.fs-pick__label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fs-pick__label label { font-size: 0.88rem; font-weight: 700; color: var(--fs-steel); }
.fs-pick select { min-height: 46px; font-weight: 600; cursor: pointer; }
.fs-pick__actions { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.fs-pick__clear { font-size: 0.92rem; white-space: nowrap; }
.js .fs-pick__go { display: none; }            /* with JS the dropdowns apply themselves */
.js .fs-pick__actions:empty { display: none; }

.fs-help { position: relative; display: inline-flex; }
.fs-help__btn { width: 20px; height: 20px; padding: 0; border: 1.5px solid var(--fs-steel); border-radius: 50%; background: transparent; color: var(--fs-steel); font: 700 0.75rem/1 var(--fs-font); cursor: help; }
.fs-help__btn:hover, .fs-help__btn:focus-visible { border-color: var(--fs-navy); background: var(--fs-navy); color: #fff; }
.fs-help__tip { position: absolute; z-index: 40; top: calc(100% + 8px); left: -12px; width: min(360px, 78vw); padding: 14px 16px; background: var(--fs-navy); color: #E4ECF6; border-radius: var(--fs-radius); font-size: 0.88rem; font-weight: 400; line-height: 1.45; box-shadow: 0 10px 28px rgba(20, 33, 61, 0.22); visibility: hidden; opacity: 0; transition: opacity 0.12s ease; }
.fs-help__tip::before { content: ""; position: absolute; top: -6px; left: 16px; width: 12px; height: 12px; background: var(--fs-navy); transform: rotate(45deg); }
.fs-help:hover .fs-help__tip, .fs-help:focus-within .fs-help__tip { visibility: visible; opacity: 1; }
.fs-help__intro, .fs-help__item { display: block; }
.fs-help__intro { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.fs-help__item + .fs-help__item { margin-top: 5px; }
.fs-help__item b { color: #fff; font-weight: 700; }

@media (max-width: 820px) {
    .fs-pick { grid-template-columns: 1fr; }
    .fs-help__tip { left: -80px; }
    .fs-help__tip::before { left: 84px; }
}

/* Filters */
.fs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 18px; padding: 14px 16px; background: var(--fs-paper); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); }
.fs-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fs-filters__label { font-size: 0.85rem; font-weight: 700; color: var(--fs-steel); }
.fs-filters ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fs-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid #9FB0BF; border-radius: 999px; background: #fff; color: var(--fs-ink); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.fs-chip:hover { border-color: var(--fs-navy); color: var(--fs-navy); }
.fs-chip.is-on { background: var(--fs-navy); border-color: var(--fs-navy); color: #fff; }
.fs-filters__clear { margin-left: auto; font-size: 0.92rem; }
.fs-count { margin: 0 0 8px; font-size: 0.9rem; color: var(--fs-steel); }
.fs-empty { padding: 28px; background: var(--fs-paper); border: 1px dashed #9FB0BF; border-radius: var(--fs-radius); }
.fs-empty p:last-child { margin: 0; }

/* ==========================================================================
   Pages and prose
   ========================================================================== */

.fs-crumbs { font-size: 0.88rem; color: var(--fs-steel); margin: 0 0 18px; }
.fs-crumbs a { color: var(--fs-steel); }
.fs-crumb-sep { margin: 0 8px; opacity: 0.6; }
.woocommerce .fs-crumbs { margin: 0 0 18px; padding: 0; font-size: 0.88rem; color: var(--fs-steel); }

.fs-page__head { margin: 0 0 28px; }
.fs-page__head h1 { margin-bottom: 0.3em; }

.fs-prose > p, .fs-prose > ul, .fs-prose > ol, .fs-prose > dl, .fs-prose > blockquote { max-width: 88ch; }
/* The quote tool, tables and callouts use the full content width, in line with the header. */
.fs-prose .fsq, .fsq { max-width: none; }
.fs-prose h2 { margin-top: 1.7em; }
.fs-prose h3 { margin-top: 1.4em; }
.fs-prose li { margin-bottom: 0.35em; }
.fs-prose .fs-table-wrap { margin: 1.4em 0 1.8em; }
.fs-prose table:not(.fs-table):not(.fst-tiers):not(.shop_table) { width: 100%; max-width: none; border-collapse: collapse; margin: 1.2em 0 1.8em; background: var(--fs-paper); border: 1px solid var(--fs-line); font-size: 0.97rem; }
.fs-prose table:not(.fs-table):not(.fst-tiers):not(.shop_table) th,
.fs-prose table:not(.fs-table):not(.fst-tiers):not(.shop_table) td { padding: 10px 14px; border-top: 1px solid var(--fs-line); text-align: left; vertical-align: top; }
.fs-prose table:not(.fs-table):not(.fst-tiers):not(.shop_table) thead th { border-top: 0; border-bottom: 2px solid var(--fs-navy); font-size: 0.85rem; color: var(--fs-steel); }

.fs-callout { max-width: none; margin: 1.6em 0; padding: 18px 20px; background: var(--fs-paper); border: 1px solid var(--fs-line); border-left: 4px solid var(--fs-cyan); border-radius: var(--fs-radius); }
.fs-callout > :last-child { margin-bottom: 0; }

.fs-list { list-style: none; padding: 0; margin: 0; max-width: 70ch; }
.fs-list li { padding: 14px 0; border-top: 1px solid var(--fs-line); }
.fs-list a { font-weight: 700; }

/* Forms (contact form, WooCommerce fields) */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], input[type="url"], select, textarea {
    width: 100%; max-width: 100%; min-height: 46px; padding: 9px 12px;
    border: 1px solid #9FB0BF; border-radius: var(--fs-radius); background: #fff; color: var(--fs-ink); font: inherit;
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { border-color: var(--fs-navy); }
.wpcf7 form { max-width: 640px; }
.wpcf7 form p { margin-bottom: 16px; }
.wpcf7 small { display: block; margin: 2px 0 6px; }

/* ==========================================================================
   WooCommerce single product, basket, notices
   ========================================================================== */

.woocommerce div.product .product_title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--fs-navy); font-size: 1.7rem; font-weight: 760; }
.woocommerce div.product p.price small { font-size: 0.85rem; }
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: stretch; margin: 1.2em 0; }
.woocommerce div.product form.cart .quantity .qty { width: 84px; min-height: 46px; text-align: center; }
.woocommerce div.product .stock, .woocommerce div.product .fst-mto { color: var(--fs-navy); font-weight: 600; font-size: 0.98rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: var(--fs-radius) var(--fs-radius) 0 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--fs-paper); }
.woocommerce div.product .woocommerce-tabs .panel { background: var(--fs-paper); padding: 22px; border: 1px solid var(--fs-line); border-top: 0; max-width: 100%; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 1.25rem; }
.woocommerce table.shop_attributes th { width: 200px; font-weight: 650; color: var(--fs-steel); }
.woocommerce table.shop_attributes td { font-style: normal; padding: 8px 12px; }
.woocommerce table.shop_attributes td p { padding: 0; margin: 0; }
.woocommerce table.shop_attributes { border-top: 0; margin-bottom: 0; }
.woocommerce div.product .product_meta { font-size: 0.9rem; color: var(--fs-steel); }
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta .tagged_as { display: none; }
.woocommerce div.product .images img { background: var(--fs-paper); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); }
.woocommerce .related.products > h2 { margin-top: 1.6em; }
.fs-custom-note { margin-top: 1.2em; padding-top: 1em; border-top: 1px solid var(--fs-line); font-size: 0.98rem; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--fs-cyan); background: var(--fs-paper); border-radius: var(--fs-radius); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--fs-blue); }
.woocommerce table.shop_table { background: var(--fs-paper); border-color: var(--fs-line); border-radius: var(--fs-radius); }

.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; font-stretch: 100%; font-weight: 650; color: var(--fs-ink); }
.woocommerce ul.products li.product .price { color: var(--fs-navy); font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */

.fs-foot { background: var(--fs-navy); color: #C9D6E6; font-size: 0.95rem; }
.fs-foot a { color: #fff; text-decoration: none; }
.fs-foot a:hover { color: var(--fs-cyan); text-decoration: underline; }
.fs-foot__in { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px clamp(24px, 4vw, 56px); padding-block: 48px 32px; }
.fs-foot__brand { font-size: 1.2rem; font-weight: 760; font-stretch: 112%; color: #fff; margin-bottom: 0.4em; }
.fs-foot h2 { font-size: 0.95rem; font-stretch: 108%; color: #fff; margin-bottom: 0.7em; }
.fs-foot ul { list-style: none; margin: 0; padding: 0; }
.fs-foot li { padding: 4px 0; }
.fs-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 18px 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; }
.fs-foot__legal p { margin: 0; }
@media (max-width: 860px) { .fs-foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fs-foot__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
