/* TTFC Essex - site styles. Plain CSS, no build step. */

:root {
    --ink: #1b2026;
    --ink-2: #47515c;
    --muted: #6b7380;
    --line: #e6e1d9;
    --line-2: #d6cfc4;
    --bg: #f6f4f0;
    --surface: #fff;
    --dark: #1d232a;
    --dark-2: #2a323b;
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-soft: #fff3eb;
    --ok: #15803d;
    --ok-soft: #ecfdf3;
    --warn: #a15c07;
    --warn-soft: #fff8e6;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(20, 24, 30, .05), 0 10px 30px -18px rgba(20, 24, 30, .35);
    --shadow-lg: 0 2px 4px rgba(20, 24, 30, .05), 0 24px 48px -24px rgba(20, 24, 30, .45);
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 70ch; }
.page { padding-block: 28px 64px; }

/* ------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.15em; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.04); border-color: transparent; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .45em .8em; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.actions-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ------------------------------------------------------------ header */
.topbar { background: var(--dark); color: #d9dde2; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .45rem; }
.topbar-note .icon { color: #ffb489; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #ffb489; }
.topbar-links { gap: 1.25rem !important; flex: none; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 10px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 58px; width: auto; }
.header-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; display: flex; }
.header-search input {
    width: 100%; padding: .7em 3em .7em 1em; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--bg); transition: border-color .15s, background .15s;
}
.header-search input:focus { background: var(--surface); border-color: var(--ink-2); outline: none; }
.header-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 2.6em; border: 0; border-radius: 999px; background: var(--dark); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.basket-btn {
    position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .6em 1em;
    border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 650; text-decoration: none;
}
.basket-btn:hover { background: #ffe6d5; color: var(--accent-hover); }
.basket-count {
    min-width: 1.5em; height: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: #fff;
    font-size: .78rem; display: inline-grid; place-items: center; font-weight: 700;
}
.basket-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm); padding: .55em; cursor: pointer; line-height: 0; }

.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.site-nav a {
    display: block; padding: .75em .9em; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem;
    white-space: nowrap; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------ home */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 48px 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-hover); background: var(--accent-soft); border-radius: 999px; padding: .3em .85em; font-size: .85rem; font-weight: 650; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-figure figcaption {
    position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.94); border-radius: 12px; padding: .65em 1em;
    font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: .5rem; align-items: center;
}
.hero-figure figcaption .icon { color: var(--accent); }

.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -28px; position: relative; }
.usp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.usp-icon { flex: none; line-height: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.usp-icon .icon { width: 22px; height: 22px; }
.usp strong { display: block; font-size: .98rem; }
.usp span { font-size: .87rem; color: var(--muted); line-height: 1.45; display: block; }

.section { padding-block: 56px 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel-dark { background: var(--dark); color: #e6e9ec; border-color: var(--dark); }
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark a:not(.btn) { color: #ffb489; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: .2em; }
.panel-dark .ticks .icon { color: #7ee2a3; }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; justify-content: center; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.brands img { height: 44px; width: auto; }

/* ------------------------------------------------------------ cards & grids */
.range-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.range-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .2s, transform .2s;
}
.range-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.range-card .thumb { overflow: hidden; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.range-card .thumb img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.range-card .thumb.cover { padding: 0; }
.range-card .thumb.cover { display: block; }
.range-card .thumb.cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; }
.range-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.range-card h3 { margin: 0; font-size: 1.08rem; }
.range-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.range-card .meta { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--ink-2); }
.range-card .meta strong { color: var(--ink); }
.range-card .go { color: var(--accent); display: inline-flex; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .2s; }
.p-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.p-card img { aspect-ratio: 1; object-fit: contain; width: 100%; background: #fff; }
.p-card .name { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.p-card .code { font-size: .78rem; color: var(--muted); }
.p-card .price { font-weight: 700; margin-top: auto; }

.badge { display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent-hover); border-color: #ffd9c0; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #bbf0cf; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f8e1a8; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #fbcaca; }

/* ------------------------------------------------------------ page furniture */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin: 0; }

.callout { border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.callout > .icon { margin-top: .2em; }
.callout p:last-child { margin-bottom: 0; }
.callout-ok { background: var(--ok-soft); border-color: #bbf0cf; color: #14532d; }
.callout-warn { background: var(--warn-soft); border-color: #f8e1a8; color: #713f12; }
.callout-danger, .callout-error { background: var(--danger-soft); border-color: #fbcaca; color: #7f1d1d; }
.callout-info { background: #eff6ff; border-color: #c7dcfb; color: #1e3a8a; }
.flash { margin-top: 18px; }

.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose > :last-child { margin-bottom: 0; }

.empty-state { text-align: center; padding: 48px 0; }
.empty-state .lede { margin-inline: auto; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.empty-icon .icon { width: 30px; height: 30px; }
.search-inline { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto 1.25rem; }
.search-inline input { flex: 1; }

/* ------------------------------------------------------------ range page */
.cat-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; margin-bottom: 28px; }
.cat-intro .build {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; width: 260px;
    text-decoration: none; color: var(--ink-2); font-size: .85rem; display: block; text-align: center;
}
.cat-intro .build img { display: block; margin: 0 auto 6px; }
.cat-intro .build:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.video-link { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.video-link .play { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.video-link .play .icon { width: 14px; height: 14px; fill: currentColor; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filter-bar input { max-width: 340px; flex: 1; min-width: 200px; }
.filter-bar .count { font-size: .88rem; color: var(--muted); }

/* overflow-x: if a table is ever wider than the page, it scrolls inside its border rather than spilling out. */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.ptable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ptable th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; padding: 10px 8px; background: #faf9f6; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; line-height: 1.3; }
.ptable th .unit { font-weight: 500; text-transform: none; letter-spacing: 0; }
.ptable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable th:first-child, .ptable td:first-child { padding-left: 12px; }
.ptable th:last-child, .ptable td:last-child { padding-right: 12px; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: #fcfbf9; }
.ptable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable .group-row td { background: #faf9f6; font-weight: 700; font-size: .85rem; color: var(--ink-2); padding-block: 8px; }
.ptable .thumb-cell { width: 64px; }
.ptable .thumb-cell img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); display: block; }
.ptable .pname { min-width: 200px; }
.ptable .pname a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ptable .pname a:hover { color: var(--accent); text-decoration: underline; }
.ptable .pcode { display: block; font-size: .78rem; color: var(--muted); }
.ptable .price-cell { font-weight: 700; }
.ptable .buy-cell { width: 1%; white-space: nowrap; }

.buy-row { display: inline-flex; gap: .4rem; align-items: center; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty input[type=number] { width: 3.2em; border: 0; border-radius: 0; box-shadow: none; text-align: center; padding: .45em 0; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button { border: 0; background: transparent; padding: 0 .55em; cursor: pointer; color: var(--ink-2); line-height: 0; }
.qty button:hover { background: var(--bg); color: var(--ink); }
.qty-lg input[type=number] { width: 3.6em; padding: .7em 0; font-size: 1.05rem; }
.qty-lg button { padding: 0 .8em; }
.qty-compact input[type=number] { width: 3em; padding: .4em 0; }

/* ------------------------------------------------------------ product page */
.pp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.pp-media { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; place-items: center; aspect-ratio: 1; position: sticky; top: 140px; }
.pp-media img { width: 100%; max-width: 360px; height: auto; object-fit: contain; image-rendering: auto; }
.pp-media .no-img { color: var(--line-2); }
.pp-media .no-img .icon { width: 72px; height: 72px; }
.pp-info h1 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); margin-bottom: .35em; }
.pp-codes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 18px; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.buy-box .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.buy-box .price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: .35em; }
.buy-box .buy-row { display: flex; margin-top: 16px; gap: .6rem; }
.buy-box .buy-row .btn { flex: 1; }
/* Quantity + add form on its own row, with the phone button underneath (browse mode, price on request) */
.buy-box > .buy-row { flex-wrap: wrap; }
.buy-box > .buy-row > form { flex: 1 1 100%; display: flex; gap: .6rem; }
.buy-box > .buy-row > a.btn { flex: 0 0 auto; }
.buy-box .assure { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--ink-2); }
.buy-box .assure li { display: flex; gap: .5rem; align-items: center; }
.buy-box .assure .icon { color: var(--ok); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 50%; font-weight: 550; color: var(--ink-2); background: #faf9f6; }
.pp-section { margin-top: 44px; }
.about-box { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; align-items: center; }

/* ------------------------------------------------------------ basket / checkout / pay */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.summary { position: sticky; top: 140px; }
.summary .panel { padding: 22px; }
.summary h2 { font-size: 1.2rem; }
.totals { width: 100%; border-collapse: collapse; font-size: .95rem; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .grand td { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.2rem; font-weight: 800; }
.totals .vat td { font-size: .85rem; color: var(--muted); padding-top: 0; }
.summary .btn-block { margin-top: 16px; }
.summary .secure { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

.basket-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.basket-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.basket-item:last-child { border-bottom: 0; }
.basket-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.basket-item .name { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; display: block; }
.basket-item .name:hover { color: var(--accent); }
.basket-item .sub { font-size: .82rem; color: var(--muted); }
.basket-item .line-total { font-weight: 700; min-width: 6em; text-align: right; font-variant-numeric: tabular-nums; }
.basket-item .controls { display: flex; gap: .4rem; align-items: center; }
.icon-btn { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: .45em; cursor: pointer; color: var(--muted); line-height: 0; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .88rem; }
.steps li { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--line-2); }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-weight: 700; font-size: .78rem; }
.steps .done .n { background: var(--ok); color: #fff; }
.steps .current { color: var(--ink); font-weight: 650; }
.steps .current .n { background: var(--accent); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], select, textarea {
    width: 100%; padding: .7em .85em; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(194, 65, 12, .15); }
textarea { min-height: 120px; resize: vertical; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .82rem; margin-top: .25rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.checkbox input { margin-top: .3em; width: 1.05em; height: 1.05em; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -5000px; }
fieldset.panel { margin: 0 0 18px; }
fieldset.panel legend { font-weight: 700; font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: 14px; }
fieldset.panel legend + * { clear: both; }

.mini-lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .88rem; }
.mini-lines img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mini-lines .q { color: var(--muted); }

.pay-methods { display: grid; gap: 16px; }
.pay-method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pay-method h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 14px; }
.pay-method h2 .icon { color: var(--accent); }
.wallets { display: grid; gap: 10px; margin-bottom: 16px; }
.wallets > div, .wallets > button { min-height: 48px; }
#sq-apple-pay {
    -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black;
    border: 0; border-radius: 10px; height: 48px; width: 100%; cursor: pointer;
}
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#sq-card { min-height: 90px; }
.pay-error { margin-top: 12px; }
.pay-overlay { position: fixed; inset: 0; background: rgba(246, 244, 240, .85); z-index: 80; display: grid; place-items: center; }
.pay-overlay .box { background: var(--surface); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-lg); text-align: center; font-weight: 600; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.test-banner { background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 12px, #fff1c9 12px, #fff1c9 24px); border: 1px solid #f8e1a8; color: #713f12; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }

.receipt-head { text-align: center; padding: 16px 0 24px; }
.receipt-head .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin: 0 auto 14px; }
.receipt-head .tick .icon { width: 36px; height: 36px; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.receipt-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt-table .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.dl-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4em; }

/* ------------------------------------------------------------ gallery, brochures, map */
.gallery-section { margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; position: relative; background: var(--line); aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .85rem; font-weight: 600; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1000px); width: 100%; }
.lightbox::backdrop { background: rgba(10, 12, 15, .88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: #fff; text-align: center; padding: 10px; font-weight: 600; }
.lightbox .lb-btn { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-prev .icon { transform: rotate(180deg); }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-close { top: 28px; right: 16px; transform: none; }

.brochure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.brochure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .2s, border-color .15s; }
.brochure:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); color: inherit; }
.brochure img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; background: var(--bg); border-radius: 8px; }
.brochure .t { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.brochure .m { margin-top: auto; font-size: .8rem; color: var(--accent); display: flex; gap: .3rem; align-items: center; font-weight: 600; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: stretch; }
.map { height: 480px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 0; background: #e8e4dc; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: .25em; }
.contact-list a { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ footer, toast */
.site-footer { background: var(--dark); color: #b8c0c9; margin-top: 64px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 32px; padding-block: 48px 32px; }
.footer-h { color: #fff; font-size: .95rem; margin-bottom: .9em; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #e2e6ea; text-decoration: none; }
.site-footer a:hover { color: #ffb489; text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--dark-2); padding-block: 20px 28px; font-size: .8rem; color: #8b95a1; }
.footer-legal p { margin: 0 0 .4em; }
.pay-badges { list-style: none; padding: 0; margin: 12px 0 0; display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.pay-badges li { background: #fff; color: #1d232a; border-radius: 6px; padding: .2em .55em; font-size: .74rem; font-weight: 750; letter-spacing: .01em; }
.buy-box .pay-badges li, .summary .pay-badges li { background: var(--bg); border: 1px solid var(--line); }

.toast {
    position: fixed; z-index: 90; right: 20px; bottom: 20px; max-width: 380px; background: var(--dark); color: #fff;
    border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
    animation: toast-in .25s ease;
}
.toast .icon { color: #7ee2a3; }
.toast .t-body { flex: 1; font-size: .92rem; }
.toast a { color: #ffb489; font-weight: 650; }
.toast.is-error .icon { color: #fca5a5; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
    .usps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .shop-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
    .hero-inner, .split, .pp-grid, .shop-grid, .map-layout, .about-box { grid-template-columns: 1fr; }
    .hero-inner { gap: 28px; padding-block: 28px 48px; }
    .pp-media, .summary { position: static; }
    .pp-media { aspect-ratio: auto; padding: 20px; }
    .pp-media img { max-width: 280px; }
    .cat-intro { grid-template-columns: 1fr; }
    .cat-intro .build { width: auto; max-width: 320px; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
    .header-inner { flex-wrap: wrap; gap: 10px 14px; }
    .header-actions { margin-left: auto; }
    .menu-btn { display: inline-flex; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; padding-block: 6px; }
    .site-nav a { border-bottom: 0; border-left: 3px solid transparent; }
    .site-nav a[aria-current="page"] { border-left-color: var(--accent); background: var(--bg); }
    .no-js .site-nav { display: block; }
    .no-js .site-nav ul { flex-direction: row; }
    .map { height: 380px; }
}
/* Product tables become cards on tablets and phones: two per row on tablets, one on phones. */
@media (max-width: 900px) {
    .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
    .ptable thead { display: none; }
    .ptable tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
    .ptable tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 76px; position: relative; min-height: 76px; display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 12px; }
    .ptable .pname, .ptable .price-cell, .ptable .buy-cell { flex-basis: 100%; }
    .ptable tbody tr.group-row { grid-column: 1 / -1; background: transparent; border: 0; padding: 14px 0 0; min-height: 0; }
    .ptable .group-row td { background: transparent; padding: 0; }
    .ptable td, .ptable td:first-child, .ptable td:last-child { border: 0; padding: 0; }
    .ptable .thumb-cell { position: absolute; left: 12px; top: 12px; width: auto; }
    .ptable .pname { min-width: 0; }
    .ptable td.spec { display: inline; text-align: left; font-size: .82rem; color: var(--muted); }
    .ptable td.spec:empty { display: none; }
    .ptable td.spec::before { content: attr(data-label) " "; }
    .ptable .price-cell { text-align: left; font-size: 1.05rem; padding-top: 6px; }
    .ptable .buy-cell { width: auto; margin-top: 8px; }
    .ptable .buy-cell .buy-row { display: flex; }
    .ptable .buy-cell .btn { flex: 1; }
}

@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .brand img { height: 46px; }
    .basket-label, .hide-sm { display: none !important; }
    .topbar-inner { min-height: 34px; font-size: .8rem; }
    .topbar-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; display: inline-block; }
    .usps { grid-template-columns: 1fr; margin-top: -20px; }
    .section { padding-top: 40px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .panel { padding: 20px; }

    .basket-item { grid-template-columns: 60px minmax(0, 1fr); gap: 10px 12px; }
    .basket-item img { width: 60px; height: 60px; }
    .basket-item .controls { grid-column: 2; }
    .basket-item .line-total { grid-column: 2; text-align: left; }
    .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
}

@media print {
    .topbar, .site-header, .site-footer, .no-print, .toast { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    .panel { box-shadow: none; border: 0; padding: 0; }
    .page { padding: 0; }
}
