/* ============================================================
   The customer side of a shop — storefront and portal. Its own sheet, isolated from the back office's core:
   it carries the shop's brand. The brand colours come from brand.css (--ws-primary, --ws-secondary and their
   derived tones); everything else is defined here. Classes: ws-*.
   ============================================================ */
:root {
    --ws-bg: #ffffff;
    --ws-surface: #ffffff;
    --ws-surface-2: #f7f8f9;
    --ws-surface-3: #eff1f3;
    --ws-text: #16201a;
    --ws-text-2: #4b5563;
    --ws-text-3: #8a948d;
    --ws-border: #e3e8e4;
    --ws-border-strong: #cfd6d1;
    --ws-ok: #1f7a43;
    --ws-ok-soft: #e3f0e6;
    --ws-warn: #8a5a0b;
    --ws-warn-soft: #fbf0dd;
    --ws-danger: #b42318;
    --ws-danger-soft: #fdecea;
    --ws-info: #2d4e8c;
    --ws-info-soft: #e8eef9;
    --ws-radius: 14px;
    --ws-radius-sm: 9px;
    --ws-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --ws-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ws-font-serif: Georgia, "Times New Roman", serif;
    --ws-primary: #2f6b3f;
    --ws-primary-hover: #29603a;
    --ws-primary-soft: #eaf1ec;
    --ws-primary-softer: #f5f8f6;
    --ws-on-primary: #ffffff;
    --ws-secondary: #e9eef8;
    --ws-ink: #111418;
    --ws-ink-2: #1c2128;
    --ws-ink-3: #343b45;
    --ws-on-ink: #ffffff;
    --ws-scrim: rgba(0, 0, 0, .55);
    --ws-scrim-soft: rgba(0, 0, 0, .18);
    --ws-shadow-drawer: -12px 0 40px rgba(16, 24, 40, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ws-font); font-size: 15px; line-height: 1.5; color: var(--ws-text); background: var(--ws-bg); }
a { color: var(--ws-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ws-primary); outline-offset: 2px; }
.core-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.core-icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.core-icon-sm { width: 15px; height: 15px; }
.core-icon-xl { width: 40px; height: 40px; }

/* ---------- frame ---------- */
.ws-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ws-preview { background: var(--ws-warn-soft); color: var(--ws-warn); font-size: 13px; text-align: center; padding: 6px 12px; }
.ws-preview a { color: inherit; font-weight: 600; text-decoration: underline; margin-left: 14px; }
.ws-head { border-bottom: 1px solid var(--ws-border); background: var(--ws-surface); position: sticky; top: 0; z-index: 20; }
.ws-head-bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.ws-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ws-text); }
.ws-brand:hover { text-decoration: none; }
.ws-brand img { max-height: 36px; width: auto; }
.ws-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ws-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ws-text-2); font-weight: 500; font-size: 14px; }
.ws-nav a:hover { background: var(--ws-surface-2); text-decoration: none; color: var(--ws-text); }
.ws-nav a[aria-current] { background: var(--ws-primary-soft); color: var(--ws-primary); font-weight: 600; }
.ws-head-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ws-lang { display: inline-flex; gap: 2px; }
.ws-lang a { font-size: 12px; font-weight: 600; color: var(--ws-text-3); padding: 4px 6px; border-radius: 6px; }
.ws-lang a[aria-current] { color: var(--ws-text); background: var(--ws-surface-3); }
.ws-bell { position: relative; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ws-text-2); }
.ws-bell:hover { background: var(--ws-surface-2); text-decoration: none; }
.ws-bell-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--ws-primary); color: var(--ws-on-primary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ws-me { display: inline-flex; align-items: center; gap: 10px; }
.ws-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ws-primary-soft); color: var(--ws-primary); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ws-me-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.ws-me-text strong { font-size: 14px; }
.ws-me-text span { color: var(--ws-text-3); }
.ws-main { padding: 32px 0 64px; }
.ws-foot { border-top: 1px solid var(--ws-border); color: var(--ws-text-3); font-size: 13px; padding: 24px 0; }
.ws-foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ws-foot a { color: var(--ws-text-2); margin-left: 16px; }

/* ---------- controls ---------- */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ws-border-strong); background: var(--ws-surface); color: var(--ws-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ws-btn:hover { background: var(--ws-surface-2); text-decoration: none; }
.ws-btn:disabled, .ws-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ws-btn-primary { background: var(--ws-primary); border-color: var(--ws-primary); color: var(--ws-on-primary); }
.ws-btn-primary:hover { background: var(--ws-primary-hover); }
.ws-btn-ghost { border-color: transparent; background: transparent; }
.ws-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.ws-btn-block { width: 100%; }
.ws-btn-icon { width: 36px; height: 36px; padding: 0; }
.ws-link-btn { background: none; border: 0; padding: 0; color: var(--ws-primary); font: inherit; font-weight: 600; cursor: pointer; }
.ws-field { display: flex; flex-direction: column; gap: 6px; }
.ws-label { font-size: 13px; font-weight: 600; color: var(--ws-text-2); }
.ws-input, .ws-select, .ws-textarea { width: 100%; height: 42px; border: 1px solid var(--ws-border-strong); border-radius: var(--ws-radius-sm); padding: 0 12px; font: inherit; font-size: 15px; color: var(--ws-text); background: var(--ws-surface); }
.ws-textarea { height: auto; padding: 10px 12px; resize: vertical; }
.ws-input:focus, .ws-select:focus, .ws-textarea:focus { outline: none; border-color: var(--ws-primary); box-shadow: 0 0 0 3px var(--ws-primary-soft); }
.ws-hint { font-size: 13px; color: var(--ws-text-3); }
.ws-form { display: flex; flex-direction: column; gap: 16px; }
.ws-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-row3 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.ws-row-street { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }   /* street + building number (QR-bill: kept apart) */
.ws-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.ws-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ws-primary); flex: 0 0 auto; }
.ws-check strong { display: block; }
.ws-check span span { color: var(--ws-text-3); font-size: 13px; }

/* ---------- surfaces ---------- */
.ws-card { background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); }
.ws-card-pad { padding: 22px; }
.ws-card-head h2 { flex: 1 1 auto; }
.ws-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--ws-border); }
.ws-card-body { padding: 18px 22px; }
.ws-soft { background: var(--ws-primary-softer); border-color: var(--ws-primary-soft); }
.ws-stack { display: flex; flex-direction: column; gap: 16px; }
.ws-stack-sm { display: flex; flex-direction: column; gap: 8px; }
.ws-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-muted { color: var(--ws-text-2); }
.ws-faint { color: var(--ws-text-3); }
.ws-small { font-size: 13px; }
.ws-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ws-strike { text-decoration: line-through; color: var(--ws-text-3); }
.ws-grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ws-grid-list { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.ws-sticky { position: sticky; top: 88px; }
.ws-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ws-surface-3); color: var(--ws-text-2); white-space: nowrap; }
.ws-pill-ok { background: var(--ws-ok-soft); color: var(--ws-ok); }
.ws-pill-warn { background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-pill-danger { background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-pill-info { background: var(--ws-info-soft); color: var(--ws-info); }
.ws-pill-brand { background: var(--ws-primary-soft); color: var(--ws-primary); }
.ws-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--ws-radius-sm); font-size: 14px; background: var(--ws-info-soft); color: var(--ws-info); margin-bottom: 16px; }
.ws-alert-ok { background: var(--ws-ok-soft); color: var(--ws-ok); }
.ws-alert-warn { background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-alert-danger { background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.ws-facts dt { color: var(--ws-text-2); }
.ws-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ws-facts .ws-total { font-weight: 700; font-size: 16px; color: var(--ws-text); }
.ws-empty { text-align: center; padding: 48px 24px; color: var(--ws-text-2); }
.ws-empty .core-icon { width: 40px; height: 40px; color: var(--ws-text-3); margin-bottom: 12px; }

/* ---------- tables ---------- */
.ws-table-wrap { overflow-x: auto; position: relative; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ws-table tr.is-selected td { background: var(--ws-primary-softer); }
.ws-history-filter .ws-select { width: auto; min-width: 120px; height: 36px; font-size: 14px; }
.ws-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ws-text-3); padding: 10px 14px; border-bottom: 1px solid var(--ws-border); white-space: nowrap; }
.ws-table td { padding: 12px 14px; border-bottom: 1px solid var(--ws-border); vertical-align: middle; }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table tr.is-on td { background: var(--ws-primary-softer); }
.ws-table tfoot td { font-weight: 700; border-top: 1px solid var(--ws-border-strong); }
.ws-table .ws-num { text-align: right; }
.ws-cell-name strong { display: block; font-weight: 600; }
.ws-cell-name > span { display: block; font-size: 13px; color: var(--ws-text-3); }

/* ---------- quantity stepper ---------- */
.ws-qty { display: inline-flex; align-items: center; border: 1px solid var(--ws-border-strong); border-radius: 999px; overflow: hidden; background: var(--ws-surface); }
.ws-qty button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 18px; color: var(--ws-text-2); cursor: pointer; }
.ws-qty button:hover { background: var(--ws-surface-2); }
.ws-qty input { width: 54px; height: 32px; border: 0; text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.ws-qty input::-webkit-outer-spin-button, .ws-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ws-qty input:disabled { color: var(--ws-text-2); }

/* ---------- portal: weekly list ---------- */
.ws-list-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.ws-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ws-text-2); margin-bottom: 8px; }
.ws-route { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 14px; color: var(--ws-text-2); }
.ws-deadline { text-align: right; }
.ws-deadline strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--ws-text); }
/* the order list: its picture on top, then the week's offers as cards that slide sideways (their quantity is the row's) */
.ws-list-hero { position: relative; height: 260px; margin-bottom: 24px; border-radius: var(--ws-radius); overflow: hidden; background: var(--ws-surface-2); }
.ws-list-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-list-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ws-scrim) 0%, transparent 65%); }
.ws-list-hero-text { position: absolute; left: 36px; right: 36px; bottom: 30px; z-index: 1; max-width: 560px; color: var(--ws-on-ink); }
.ws-list-hero-text .ws-kicker { color: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ws-list-hero-text h2 { margin: 6px 0 4px; font-size: 2rem; color: inherit; }
.ws-list-hero-text p { margin: 0; opacity: .9; }
.ws-offers { margin-bottom: 28px; }
.ws-offers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.ws-offers-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ws-border-strong); border-radius: 50%; background: var(--ws-surface); color: var(--ws-text); cursor: pointer; }
.ws-offers-row { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.ws-offers-row::-webkit-scrollbar { display: none; }
.ws-offer-card { display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); }
.ws-offer-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--ws-surface-2); }
.ws-offer-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-offer-card-img .ws-pill { position: absolute; left: 10px; top: 10px; }
.ws-offer-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px; }
.ws-offer-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.ws-offer-card-foot .ws-qty input { width: 42px; }
.ws-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ws-tab { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ws-border-strong); background: var(--ws-surface); font: inherit; font-size: 14px; font-weight: 500; color: var(--ws-text); cursor: pointer; }
.ws-tab[aria-selected="true"] { background: var(--ws-text); color: #ffffff; border-color: var(--ws-text); }
.ws-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ws-badge-flag { margin-left: 6px; vertical-align: 1px; }
[hidden] { display: none !important; }

/* ---------- account pages ---------- */
.ws-auth { max-width: 460px; margin: 24px auto; }
.ws-auth h1 { font-size: 1.6rem; margin-bottom: 8px; }
.ws-or { display: flex; align-items: center; gap: 12px; color: var(--ws-text-3); font-size: 13px; }
.ws-or::before, .ws-or::after { content: ""; flex: 1; height: 1px; background: var(--ws-border); }
.ws-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ws-hero h1 { font-size: 2.4rem; margin: 10px 0 14px; }
.ws-hero-lead { font-size: 17px; color: var(--ws-text-2); max-width: 560px; }
.ws-perks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ws-perks li { display: flex; gap: 10px; align-items: center; }
.ws-perks .core-icon { color: var(--ws-primary); }
.ws-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-chip { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ws-border-strong); background: var(--ws-surface); font: inherit; font-size: 14px; cursor: pointer; color: var(--ws-text); }
.ws-chip[aria-selected="true"] { background: var(--ws-text); color: #ffffff; border-color: var(--ws-text); }
.ws-choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--ws-border); border-radius: var(--ws-radius-sm); padding: 14px 16px; cursor: pointer; }
.ws-choice:has(input:checked) { border: 2px solid var(--ws-primary); background: var(--ws-primary-softer); padding: 13px 15px; }
.ws-choice input { accent-color: var(--ws-primary); margin-top: 3px; }
.ws-choice strong { display: block; }
.ws-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.ws-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ws-steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--ws-primary-soft); color: var(--ws-primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ws-steps li.is-done::before { background: var(--ws-primary); color: var(--ws-on-primary); content: "✓"; }
.ws-steps strong { display: block; }
.ws-steps span { color: var(--ws-text-3); font-size: 14px; }
.ws-moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 18px 0 0; }
.ws-moments li { border-top: 3px solid var(--ws-primary-soft); padding-top: 12px; }
.ws-moments small { color: var(--ws-primary); font-weight: 600; font-size: 13px; }
.ws-faq details { border-bottom: 1px solid var(--ws-border); padding: 14px 0; }
.ws-faq summary { cursor: pointer; font-weight: 600; }
.ws-faq p { margin-top: 8px; color: var(--ws-text-2); }
.ws-section { margin-top: 56px; }

/* ---------- my orders, templates, leader ---------- */
.ws-list-nav { display: flex; flex-direction: column; }
.ws-list-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ws-border); color: var(--ws-text); }
.ws-list-nav a:last-child { border-bottom: 0; }
.ws-list-nav a:hover { background: var(--ws-surface-2); text-decoration: none; }
.ws-list-nav a[aria-current] { background: var(--ws-primary-softer); box-shadow: inset 3px 0 0 var(--ws-primary); }
.ws-list-nav strong { display: block; font-weight: 600; }
.ws-list-nav span { font-size: 13px; color: var(--ws-text-3); }
.ws-list-nav .ws-num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ws-progress { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ws-progress li { border-top: 3px solid var(--ws-border); padding-top: 8px; font-size: 13px; color: var(--ws-text-3); }
.ws-progress li.is-done { border-top-color: var(--ws-primary); color: var(--ws-text-2); }
.ws-progress li strong { display: block; color: var(--ws-text); font-size: 14px; }
.ws-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ws-stat { border: 1px solid var(--ws-border); border-radius: var(--ws-radius-sm); padding: 14px 16px; }
.ws-stat span { display: block; font-size: 13px; color: var(--ws-text-3); }
.ws-stat strong { font-size: 1.15rem; }
.ws-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-timeline li { display: flex; gap: 10px; font-size: 14px; }
.ws-timeline li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ws-primary); margin-top: 6px; flex: 0 0 auto; }
.ws-timeline span { display: block; color: var(--ws-text-3); font-size: 13px; }
.ws-consol { display: flex; flex-direction: column; }
.ws-consol div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ws-border); }
.ws-consol div:last-child { border-bottom: 0; }
.ws-consol span > span { display: block; font-size: 13px; color: var(--ws-text-3); }
.ws-forward { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-radius: var(--ws-radius); padding: 18px 22px; background: var(--ws-text); color: #ffffff; }
.ws-forward span { color: #cbd5d0; font-size: 13px; display: block; }
.ws-forward .ws-btn { border-color: #ffffff; }

/* the Invoices board: the QR code of the open invoice */
.ws-qr { width: 180px; max-width: 100%; }
.ws-qr svg { display: block; width: 100%; height: auto; }

/* ---------- storefront (boards Main, Search, Product, Checkout, confirmations) ---------- */
.ws-topbar { background: var(--ws-primary); color: var(--ws-on-primary); font-size: 13px; text-align: center; padding: 6px 0; }
.ws-search { flex: 1 1 360px; max-width: 520px; position: relative; display: flex; align-items: center; }
.ws-search .core-icon { position: absolute; left: 12px; color: var(--ws-text-3); }
.ws-search .ws-input { padding-left: 38px; width: 100%; }
.ws-list-search { flex: 0 1 280px; margin-bottom: 14px; }   /* the order list's own search, next to its tabs */
.ws-list-search .ws-input { height: 36px; font-size: 14px; }
.ws-cart-link { position: relative; }
.ws-cart-link .ws-bell-n { position: static; margin-left: 2px; }
.ws-catbar { display: flex; gap: 22px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.ws-catbar a { color: var(--ws-text-2); white-space: nowrap; }
.ws-catbar a:hover { color: var(--ws-primary); }
.ws-crumbs { font-size: 13px; color: var(--ws-text-3); }
.ws-crumbs a { color: var(--ws-text-2); }
.ws-store-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.ws-facets { display: flex; flex-direction: column; gap: 18px; }
.ws-facet { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--ws-border); display: flex; flex-direction: column; gap: 8px; }
.ws-facet legend { font-weight: 650; margin-bottom: 8px; }
.ws-facet .ws-check { justify-content: flex-start; }
.ws-facet .ws-check .ws-faint { margin-left: auto; }
.ws-num-in { width: 84px; text-align: right; }
.ws-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.ws-pgrid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ws-pcard { display: flex; flex-direction: column; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); background: var(--ws-surface); overflow: hidden; }
.ws-pcard-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--ws-surface-2); }
.ws-pcard-img img { width: 100%; height: 100%; object-fit: cover; }
/* a product without a photo: one picture for all — the shop's own, else its logo softened on its colours, else its name */
.ws-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: size;
    background: linear-gradient(135deg, var(--ws-primary-softer), var(--ws-primary-soft)); }
.ws-noimg::before { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--ws-primary) 5%, transparent) 12px 13px); }
.ws-noimg .ws-noimg-logo { position: relative; width: auto; height: auto; max-width: 46%; max-height: 22%; object-fit: contain; opacity: .38; filter: grayscale(.35); }
.ws-noimg-name { position: relative; max-width: 80%; text-align: center; font-size: min(6cqmin, 18px); font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
    color: color-mix(in srgb, var(--ws-primary) 50%, transparent); }
.ws-noimg-own { background: var(--ws-surface-2); }
.ws-noimg-own::before { content: none; }
.ws-noimg-own img { width: 100%; height: 100%; object-fit: cover; }
.ws-pcard-badge { position: absolute; top: 10px; left: 10px; }
.ws-pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1 1 auto; }
.ws-pcard-name { font-weight: 650; color: var(--ws-text); }
.ws-pcard-meta { font-size: 13px; color: var(--ws-text-3); }
.ws-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ws-pcard-stock { font-size: 12px; color: var(--ws-text-3); }
.ws-pcard-stock.is-ok { color: var(--ws-ok); }
.ws-pcard-stock.is-low { color: var(--ws-warn); }
.ws-plist { grid-template-columns: 1fr; }
.ws-plist .ws-pcard { flex-direction: row; }
.ws-plist .ws-pcard-img { width: 180px; flex: 0 0 180px; aspect-ratio: auto; }
.ws-price strong { font-size: 1.05rem; }
.ws-price-lg strong { font-size: 1.6rem; }
.ws-buy { display: grid; justify-items: start; gap: 14px; }
.ws-btn.is-added { background: var(--ws-ok); border-color: var(--ws-ok); }
.ws-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--ws-radius); background: var(--ws-surface-2); color: var(--ws-text); }
.ws-tile:hover { background: var(--ws-primary-soft); text-decoration: none; }
.ws-tile strong { font-size: 1.05rem; }

/* ---------- the storefront home (boards Main, HomeEditorial, HomeShowcase, HomeCatalog) ---------- */
.ws-h2-lg { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.ws-band { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 56px; border-radius: 22px; min-height: 420px; }
.ws-band-solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.ws-band h1 { font-size: 3rem; line-height: 1.05; letter-spacing: -0.03em; margin: 6px 0 16px; }
.ws-band .ws-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.ws-band-lead { font-size: 17px; max-width: 520px; margin-bottom: 26px; color: var(--ws-text-2); }
.ws-band-dark { background: var(--ws-ink); color: var(--ws-on-ink); }
.ws-band-brand { background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-band-light { background: var(--ws-surface-2); color: var(--ws-text); }
.ws-band-dark .ws-kicker, .ws-band-dark .ws-band-lead, .ws-band-brand .ws-kicker, .ws-band-brand .ws-band-lead { color: inherit; opacity: .8; }
.ws-band-media { align-self: stretch; display: flex; }
.ws-band-media img { width: 100%; height: 100%; min-height: 300px; max-height: 440px; object-fit: cover; border-radius: 14px; display: block; }
.ws-btn-band { background: var(--ws-ink); border-color: var(--ws-ink); color: var(--ws-on-ink); }
.ws-btn-band:hover { background: var(--ws-ink-2); }
.ws-band-dark .ws-btn-band, .ws-band-brand .ws-btn-band, .ws-quote-ink .ws-btn-band { background: var(--ws-on-ink); border-color: var(--ws-on-ink); color: var(--ws-ink); }
.ws-band-dark .ws-btn-band:hover, .ws-band-brand .ws-btn-band:hover, .ws-quote-ink .ws-btn-band:hover { background: var(--ws-surface-2); }
.ws-btn-band-ghost { background: transparent; border-color: currentColor; color: inherit; }
.ws-btn-band-ghost:hover { background: transparent; opacity: .8; }
.ws-home-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.ws-home-top-solo { grid-template-columns: minmax(0, 1fr); }
.ws-home-top .ws-band { padding: 44px 48px; min-height: 400px; }
.ws-home-top .ws-band h1 { font-size: 2.6rem; }
.ws-promo-col { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.ws-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ws-promo { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px 26px; border-radius: 18px; border: 1px solid transparent; color: var(--ws-text); }
.ws-promo:hover { text-decoration: none; filter: brightness(.98); }
.ws-promo strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.ws-promo span { font-size: 14px; color: var(--ws-text-2); }
.ws-promo-soft { background: var(--ws-primary-soft); }
.ws-promo-plain { background: var(--ws-surface-2); }
.ws-promo-ink { background: var(--ws-ink); color: var(--ws-on-ink); }
.ws-promo-ink span { color: inherit; opacity: .75; }
.ws-promos .ws-promo { padding: 18px 20px; gap: 6px; }
.ws-promos .ws-promo strong { font-size: 1.05rem; }
.ws-promos .ws-promo-plain { background: var(--ws-surface); border-color: var(--ws-border); }
.ws-cats { display: grid; gap: 14px; }
.ws-cats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-cats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ws-cats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ws-cats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ws-cats-photo { gap: 16px; }
.ws-cats-5 .ws-coll strong, .ws-cats-6 .ws-coll strong { font-size: 1.15rem; }
.ws-cats-5 .ws-coll, .ws-cats-6 .ws-coll { padding: 16px; }
.ws-tile-icon { gap: 6px; padding: 20px; }
.ws-tile-icon .core-icon { width: 28px; height: 28px; color: var(--ws-primary); margin-bottom: 6px; stroke-width: 1.5; }
.ws-cats-round { gap: 24px 18px; }
.ws-round { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--ws-text); }
.ws-round:hover { text-decoration: none; }
.ws-round-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; margin-bottom: 8px; border-radius: 50%; overflow: hidden; background: var(--ws-surface-2); color: var(--ws-primary); }
.ws-round-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ws-round:hover .ws-round-img img { transform: scale(1.04); }
.ws-round-img .core-icon { width: 34%; height: 34%; stroke-width: 1.3; }
.ws-round strong { font-size: .98rem; }
.ws-round .ws-faint { font-size: 13px; }
.ws-coll { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.05; padding: 22px; border-radius: 18px; overflow: hidden; background: var(--ws-surface-2); color: var(--ws-text); }
.ws-coll:hover { text-decoration: none; }
.ws-coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ws-coll:hover img { transform: scale(1.03); }
.ws-coll::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ws-scrim-soft), transparent 35%, transparent 55%, var(--ws-scrim)); }
.ws-coll:has(img) { color: var(--ws-on-ink); }
.ws-coll:not(:has(img))::after { display: none; }
.ws-coll > span, .ws-coll > strong { position: relative; z-index: 1; }
.ws-coll-n { font-size: 13px; opacity: .85; }
.ws-coll strong { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; }
.ws-services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-top: 40px; border-top: 1px solid var(--ws-border); }
.ws-services .ws-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--ws-primary); }
.ws-services-lead { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.01em; }
.ws-numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.ws-numbered li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--ws-border); }
.ws-numbered li::before { counter-increment: n; content: counter(n, decimal-leading-zero); grid-row: span 2; color: var(--ws-text-3); font-size: 1.1rem; }
.ws-numbered strong { font-weight: 600; }
.ws-numbered span { color: var(--ws-text-2); font-size: 14px; }
.ws-news { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 36px 40px; border-radius: 22px; background: var(--ws-primary-softer); }
.ws-news p { font-size: 1.35rem; line-height: 1.3; max-width: 520px; }
.ws-news .ws-line { flex-wrap: nowrap; }
.ws-news .ws-input { width: 280px; max-width: 100%; }
.ws-show-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 32px 0 8px; }
.ws-show-hero h1 { font-size: 3rem; line-height: 1.05; letter-spacing: -0.03em; margin: 6px 0 16px; }
.ws-show-hero .ws-kicker { color: var(--ws-primary); }
.ws-show-frame { padding: 14px; border-radius: 26px; background: var(--ws-primary-soft); }
.ws-show-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.ws-tint { background: var(--ws-surface-2); border-radius: 24px; padding: 44px; }
.ws-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.ws-feature + .ws-feature { margin-top: 36px; }
.ws-feature-flip .ws-feature-img { order: 2; }
.ws-feature-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--ws-surface); border: 1px solid var(--ws-border); }
.ws-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-feature-text h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.ws-feature-text h3 a { color: var(--ws-text); }
.ws-feature-text .ws-price { margin: 14px 0; }
.ws-link-plain { color: var(--ws-text); font-weight: 500; }
.ws-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
.ws-about p { font-size: 16px; }
.ws-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: stretch; }
.ws-quote-ink { background: var(--ws-ink); color: var(--ws-on-ink); border-color: var(--ws-ink); }
.ws-quote-ink .ws-label, .ws-quote-ink .ws-hint { color: inherit; opacity: .75; }
.ws-quote-ink .ws-input, .ws-quote-ink .ws-textarea { background: var(--ws-ink-2); border-color: var(--ws-ink-3); color: var(--ws-on-ink); }
.ws-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ws-gallery-main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--ws-radius); background: var(--ws-surface-2); overflow: hidden; }
.ws-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.ws-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.ws-gallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--ws-border); border-radius: var(--ws-radius-sm); background: var(--ws-surface-2); cursor: pointer; overflow: hidden; }
.ws-gallery-thumbs button[aria-current] { border: 2px solid var(--ws-primary); }
.ws-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ws-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ws-variant { display: flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--ws-border-strong); border-radius: var(--ws-radius-sm); color: var(--ws-text); font-size: 13px; }
.ws-variant[aria-current] { border: 2px solid var(--ws-primary); background: var(--ws-primary-softer); }
.ws-variant:hover { text-decoration: none; }
/* the variants on several axes (variant_choice.php): swatches with the variant's photo, buttons, a list; a combination
   that does not exist is greyed, one with none left is struck */
.ws-axis .ws-label { display: block; margin-bottom: 8px; }
.ws-axis-current { font-weight: 400; color: var(--ws-text-2); }
.ws-axis-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-axis-opt { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--ws-text); text-decoration: none; }
.ws-axis-opt:hover { text-decoration: none; }
.ws-axis-swatch .ws-axis-opt { width: 48px; height: 48px; padding: 3px; border-radius: 50%; border: 2px solid transparent; }
.ws-axis-swatch .ws-axis-opt:hover { border-color: var(--ws-border-strong); }
.ws-axis-swatch .ws-axis-opt img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ws-axis-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ws-surface-3); font-weight: 600; }
.ws-axis-buttons .ws-axis-opt { min-width: 56px; height: 44px; padding: 0 14px; border: 1px solid var(--ws-border-strong); border-radius: var(--ws-radius-sm); background: var(--ws-surface); font-weight: 600; font-size: 14px; }
.ws-axis-buttons .ws-axis-opt:hover { border-color: var(--ws-text-2); }
.ws-axis-opt.is-current { border: 2px solid var(--ws-text); }
.ws-axis-opt.is-none { opacity: .35; cursor: not-allowed; }
.ws-axis-opt.is-out, .ws-axis-opt.is-out:hover { color: var(--ws-text-3); }
.ws-axis-opt.is-out::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 1px solid var(--ws-text-3); transform: rotate(-20deg); }
.ws-axis-swatch .ws-axis-opt.is-out img { opacity: .45; }
.ws-axis-select { max-width: 280px; }
.ws-axis-note { margin: 0; font-size: 13px; color: var(--ws-danger); }
/* a family on its card: the photos of its first axis, then the values of the others */
.ws-pcard-swatches { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.ws-pcard-swatches a { display: block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ws-surface); box-shadow: 0 0 0 1px var(--ws-border-strong); }
.ws-pcard-swatches a[aria-current] { box-shadow: 0 0 0 2px var(--ws-text); }
.ws-pcard-swatches img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ws-specs h3 { margin-bottom: 8px; }
.ws-prose { line-height: 1.65; }
.ws-prose p, .ws-prose ul, .ws-prose ol { margin: 0 0 12px; }
.ws-checkout-steps { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; font-size: 14px; color: var(--ws-text-3); counter-reset: c; }
.ws-checkout-steps li::before { counter-increment: c; content: counter(c); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--ws-surface-3); color: var(--ws-text-2); font-size: 12px; font-weight: 600; }
.ws-checkout-steps li[aria-current] { color: var(--ws-text); font-weight: 600; }
.ws-checkout-steps li[aria-current]::before, .ws-checkout-steps li.is-done::before { background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ws-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-pages a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ws-radius-sm); border: 1px solid var(--ws-border); color: var(--ws-text-2); }
.ws-pages a[aria-current] { background: var(--ws-text); color: #ffffff; border-color: var(--ws-text); }
.ws-block { display: block; }
.ws-inline { display: inline; }
/* split: the text on the shop's light colour and the picture side by side; round categories and product photos */
.ws-split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 430px; border-radius: 22px; overflow: hidden; background: var(--ws-secondary); }
.ws-split-hero-solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.ws-split-hero-text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 56px; }
.ws-split-hero-text .ws-kicker { color: var(--ws-primary); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; margin: 0; }
.ws-split-hero h1 { font-family: var(--ws-font-serif); font-size: 3.1rem; font-weight: 600; line-height: 1.05; }
.ws-split-hero .ws-band-lead { margin: 0; }
.ws-split-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-pgrid-round .ws-pcard { border: 0; background: transparent; text-align: center; }
.ws-pgrid-round .ws-pcard-img { width: 78%; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.ws-pgrid-round .ws-pcard-foot { justify-content: center; gap: 12px; }
/* market: the strip, the lead picture with two products beside it, the whole range as a quick list */
.ws-market-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; margin-bottom: 20px; border-radius: var(--ws-radius); background: var(--ws-primary); color: var(--ws-on-primary); font-weight: 600; }
.ws-market-strip .ws-btn-band { background: var(--ws-on-ink); border-color: var(--ws-on-ink); color: var(--ws-ink); }
.ws-market-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr); gap: 18px; }
.ws-market-lead { position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: 18px; overflow: hidden; background: var(--ws-ink); color: var(--ws-on-ink); }
.ws-market-lead:hover { text-decoration: none; }
.ws-market-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-market-lead-text { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 28px; background: linear-gradient(transparent, var(--ws-scrim)); }
.ws-market-lead-text strong { font-size: 1.9rem; line-height: 1.1; }
.ws-market-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ws-market-table td { vertical-align: middle; }
.ws-market-thumb { width: 64px; }
.ws-market-thumb a { position: relative; display: flex; width: 48px; height: 48px; border-radius: var(--ws-radius-sm); overflow: hidden; background: var(--ws-surface-2); }
.ws-market-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-market-name { font-weight: 600; color: var(--ws-text); }
.ws-market-buy { width: 1%; white-space: nowrap; }
.ws-market-buy .ws-line { flex-wrap: nowrap; justify-content: flex-end; }
.ws-market-buy .ws-num-in { width: 64px; }
/* minimal: a big serif title, the products in one numbered column */
.ws-min-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 60px; align-items: end; padding: 56px 0 44px; border-bottom: 1px solid var(--ws-text); }
.ws-min-hero .ws-kicker { color: var(--ws-primary); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; }
.ws-min-hero h1 { font-family: var(--ws-font-serif); font-size: 4.4rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.ws-min-hero p { margin: 0 0 6px; }
.ws-min-tabs { display: flex; gap: 28px; padding: 20px 0; overflow-x: auto; }
.ws-min-tabs a { color: var(--ws-text-2); font-size: 14px; white-space: nowrap; padding-bottom: 4px; }
.ws-min-tabs a[aria-current] { color: var(--ws-text); font-weight: 600; border-bottom: 2px solid var(--ws-text); }
.ws-min-list { list-style: none; margin: 0; padding: 0; counter-reset: ws-min; }
.ws-min-row { display: grid; grid-template-columns: 56px 110px minmax(0, 1fr) 160px 130px auto; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--ws-border); counter-increment: ws-min; }
.ws-min-row::before { content: counter(ws-min, decimal-leading-zero); font-family: var(--ws-font-serif); font-size: 1.8rem; color: var(--ws-text-3); }
.ws-min-img { position: relative; display: flex; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ws-surface-2); border-radius: 3px; }
.ws-min-img img { width: 100%; height: 100%; object-fit: cover; }
.ws-min-name h3 { font-family: var(--ws-font-serif); font-size: 1.45rem; font-weight: 400; }
.ws-min-name h3 a { color: var(--ws-text); }
.ws-min-about { max-width: 640px; padding: 56px 0 8px; }
.ws-min-about h2 { font-family: var(--ws-font-serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 10px; }
/* mosaic: big photo tiles — the lead, the categories, the newest product, the designer's tiles */
.ws-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 14px; }
.ws-mosaic-tile { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--ws-surface-3); color: var(--ws-on-ink); }
.ws-mosaic-tile:hover { text-decoration: none; }
.ws-mosaic-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ws-mosaic-tile:hover img { transform: scale(1.03); }
.ws-mosaic-lead { grid-column: span 2; grid-row: span 3; }
.ws-mosaic-tall { grid-row: span 2; }
.ws-mosaic-wide { grid-column: span 2; }
.ws-mosaic-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; background: linear-gradient(transparent, var(--ws-scrim)); }
.ws-mosaic-text .ws-kicker { color: inherit; margin: 0; }
.ws-mosaic-text strong { font-size: 1.3rem; line-height: 1.15; }
.ws-mosaic-text .ws-mosaic-title { font-size: 2.2rem; line-height: 1.08; letter-spacing: -0.02em; }
.ws-mosaic-text .ws-btn-band { margin-top: 6px; background: var(--ws-on-ink); border-color: var(--ws-on-ink); color: var(--ws-ink); }
.ws-mosaic-pill { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--ws-surface); color: var(--ws-text); font-size: 13px; font-weight: 600; }
.ws-mosaic-tag { position: absolute; top: 12px; left: 12px; }

/* ---------- the product's detail in a panel (Design & brand → Product detail), the photo and the "i" of the order lists ---------- */
.ws-cell-product { display: flex; align-items: center; gap: 12px; }
.ws-cell-product > div > span { display: block; font-size: 13px; color: var(--ws-text-3); }
.ws-list-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--ws-radius-sm); object-fit: cover; border: 1px solid var(--ws-border); background: var(--ws-surface-2); }
.ws-list-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--ws-text-3); }
.ws-list-thumb-square { border-radius: 2px; }
.ws-list-thumb-circle { border-radius: 50%; }
.ws-list-thumb-empty .core-icon { width: 18px; height: 18px; }
.ws-info { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ws-text-3); cursor: pointer; vertical-align: -6px; }
.ws-info:hover { color: var(--ws-primary); background: var(--ws-primary-soft); text-decoration: none; }
.ws-info .core-icon { width: 18px; height: 18px; }
.ws-show-sm { display: none; }
.ws-chip-sm { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; cursor: default; }
.ws-drawer-back { position: fixed; inset: 0; z-index: 90; background: var(--ws-scrim-soft); opacity: 0; transition: opacity .25s ease; }
.ws-drawer-back.is-open { opacity: 1; }
.ws-drawer { position: fixed; z-index: 91; overflow-y: auto; background: var(--ws-surface); box-shadow: var(--ws-shadow-drawer); }
/* the side panel comes in from the right */
.ws-drawer-panel { top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%; padding: 20px 28px 32px; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ws-drawer-panel.is-open { transform: none; }
/* the sheet over the whole page: the gallery and the rest side by side, it grows a little as it appears */
.ws-drawer-sheet { top: 32px; left: 32px; right: 32px; max-height: calc(100% - 64px); max-width: 1180px; margin: 0 auto; padding: 24px 36px 40px; border-radius: var(--ws-radius); opacity: 0; transform: scale(.97); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.ws-drawer-sheet.is-open { opacity: 1; transform: none; }
.ws-drawer.ws-drawer-sheet .ws-detail-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ws-drawer.ws-drawer-sheet .ws-gallery-main { aspect-ratio: 1 / 1; }
.ws-drawer.ws-drawer-sheet .ws-gallery-thumbs button { width: 76px; height: 76px; }
.ws-drawer.ws-drawer-sheet .ws-drawer-body { margin-top: 0; }
.ws-drawer.ws-drawer-sheet .ws-drawer-title { font-size: 2rem; }
@media (prefers-reduced-motion: reduce) {
    .ws-drawer, .ws-drawer-back { transition: none; }
}
.ws-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ws-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ws-border); border-radius: 50%; background: var(--ws-surface); color: var(--ws-text); cursor: pointer; }
.ws-drawer .ws-gallery-main { aspect-ratio: 4 / 3; }
.ws-drawer .ws-gallery-main img { object-fit: cover; }
.ws-drawer .ws-gallery-thumbs button { width: 64px; height: 64px; }
.ws-drawer .ws-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ws-drawer-body { margin-top: 18px; }
.ws-drawer-title { font-size: 1.5rem; }
.ws-drawer h3 { font-size: 15px; margin-bottom: 8px; }
.ws-drawer-open { overflow: hidden; padding-right: var(--ws-scrollbar, 0px); }

@media (max-width: 900px) {
    .ws-store-split, .ws-product, .ws-cols3 { grid-template-columns: 1fr; }
    .ws-search { order: 3; flex-basis: 100%; max-width: none; }
    .ws-head-bar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
}

.ws-btn-danger { background: var(--ws-danger); border-color: var(--ws-danger); color: var(--ws-on-primary); }
.ws-btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.ws-narrow { max-width: 640px; margin: 0 auto; }
.ws-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-checks li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--ws-radius-sm); border: 1px solid var(--ws-border); border-left-width: 4px; }
.ws-checks li span { font-size: 13px; color: var(--ws-text-2); }
.ws-checks .is-ok { border-left-color: var(--ws-ok); }
.ws-checks .is-bad { border-left-color: var(--ws-danger); background: var(--ws-danger-soft); }
.ws-checks .is-warn { border-left-color: var(--ws-warn); background: var(--ws-warn-soft); }
.ws-checks .is-info { border-left-color: var(--ws-info); background: var(--ws-info-soft); }

/* the widget's frame */
.ws-widget { background: transparent; }
.ws-widget-form { padding: 4px; }

/* spacing helpers last, so they win over the components' own margins */
.ws-mt { margin-top: 24px; }
.ws-mb { margin-bottom: 24px; }
.ws-mt-sm { margin-top: 10px; }
.ws-mb-sm { margin-bottom: 12px; }

/* a licence key: selectable as one piece */
.ws-key { font-family: ui-monospace, Consolas, monospace; font-size: 14px; padding: 4px 8px; border-radius: var(--ws-radius-sm); background: var(--ws-surface-2); border: 1px solid var(--ws-border); user-select: all; word-break: break-all; }

/* phones only: the bottom tab bar and the sticky action bars (boards MobileHome, MobileProduct, MobilePortal, MobileLeader) */
.ws-tabbar, .ws-mobilebar { display: none; }

/* ---------- phones ---------- */
@media (max-width: 960px) {
    .ws-grid-side, .ws-grid-list, .ws-hero { grid-template-columns: minmax(0, 1fr); }
    .ws-band, .ws-home-top, .ws-show-hero, .ws-feature, .ws-about, .ws-visit, .ws-services, .ws-promos { grid-template-columns: minmax(0, 1fr); }
    .ws-split-hero, .ws-market-top, .ws-min-hero { grid-template-columns: minmax(0, 1fr); }
    .ws-split-hero-text { padding: 28px; }
    .ws-split-hero h1 { font-size: 2.1rem; }
    .ws-split-hero-media { order: -1; max-height: 260px; }
    .ws-market-lead { min-height: 280px; }
    .ws-min-hero { gap: 16px; padding: 32px 0 24px; }
    .ws-min-hero h1 { font-size: 2.8rem; }
    .ws-min-row { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 6px 16px; }
    .ws-min-row::before, .ws-min-cat { display: none; }
    .ws-min-img { grid-row: span 3; }
    .ws-min-row form { grid-column: 2 / -1; }
    .ws-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; }
    .ws-mosaic-tall { grid-row: span 2; }
    .ws-cats-3, .ws-cats-4, .ws-cats-5, .ws-cats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ws-cats-round { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ws-band, .ws-home-top .ws-band { padding: 28px; min-height: 0; gap: 24px; }
    .ws-band h1, .ws-home-top .ws-band h1, .ws-show-hero h1 { font-size: 2.1rem; }
    .ws-band-media img { min-height: 200px; max-height: 260px; }
    .ws-feature-flip .ws-feature-img { order: 0; }
    .ws-feature { gap: 18px; }
    .ws-tint { padding: 24px; }
    .ws-services, .ws-about { gap: 16px; }
    .ws-sticky { position: static; }
    .ws-stats, .ws-moments { grid-template-columns: 1fr 1fr; }
    .ws-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .ws-head-bar { flex-wrap: wrap; gap: 12px; padding-top: 10px; }
    .ws-me-text { display: none; }
}
@media (max-width: 600px) {
    .ws-wrap { padding: 0 16px; }
    h1 { font-size: 1.5rem; }
    .ws-hero h1 { font-size: 1.9rem; }
    .ws-row2, .ws-row3 { grid-template-columns: 1fr; }
    .ws-row-street { grid-template-columns: 2fr 1fr; }
    .ws-news { padding: 24px; }
    .ws-news .ws-line { flex-wrap: wrap; }
    .ws-table th:nth-child(2), .ws-table td.ws-hide-sm { display: none; }
    .ws-progress { grid-template-columns: 1fr 1fr; }
    .ws-hide-sm { display: none; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .ws-nav { display: none; }
    .ws-head-bar { flex-wrap: wrap; gap: 8px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
    .ws-head-tools { gap: 2px; }
    .ws-lang a { padding: 4px 4px; }
    .ws-brand img { max-height: 30px; }
    .ws-catbar { gap: 8px; }
    .ws-catbar a { padding: 6px 12px; border-radius: 999px; background: var(--ws-surface-2); }
    .ws-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ws-surface); border-top: 1px solid var(--ws-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .ws-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 500; color: var(--ws-text-3); }
    .ws-tabbar a:hover { text-decoration: none; }
    .ws-tabbar a[aria-current] { color: var(--ws-primary); font-weight: 600; }
    .ws-tabbar .core-icon { width: 22px; height: 22px; }
    .ws-mobilebar, .ws-buy, .ws-forward { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 10; }
    .ws-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px -16px 0; padding: 12px 16px; background: var(--ws-surface); border-top: 1px solid var(--ws-border); box-shadow: var(--ws-shadow); }
    .ws-mobilebar > div { display: flex; flex-direction: column; }
    .ws-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 -16px; padding: 12px 16px; background: var(--ws-surface); border-top: 1px solid var(--ws-border); box-shadow: var(--ws-shadow); }
    .ws-buy .ws-price-lg { font-size: 1.15rem; }
    .ws-buy > p { display: none; }
    .ws-qty input { width: 40px; }
    .ws-drawer-panel { padding: 16px 20px 28px; }
    .ws-drawer-sheet { inset: 0; border-radius: 0; padding: 16px 20px 28px; }
    .ws-drawer.ws-drawer-sheet .ws-detail-main { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ws-drawer.ws-drawer-sheet .ws-gallery-main { aspect-ratio: 4 / 3; }
    .ws-drawer.ws-drawer-sheet .ws-drawer-title { font-size: 1.5rem; }
    .ws-show-sm { display: inline; }
    .ws-list-search { flex: 1 1 100%; }
    .ws-list-hero { height: 170px; }
    .ws-list-hero-text { left: 18px; right: 18px; bottom: 16px; }
    .ws-list-hero-text h2 { font-size: 1.35rem; }
    .ws-list-hero-text p { font-size: 14px; }
    .ws-offers-head h2 { font-size: 1.1rem; }
    .ws-offers-arrow { display: none; }
    .ws-offers-row { grid-auto-columns: 46%; gap: 10px; }
    .ws-offer-card-body { padding: 10px; }
    .ws-offer-card-foot { flex-direction: column; align-items: stretch; }
    .ws-offer-card-foot .ws-qty { justify-content: space-between; }
    /* the order list: each product on two lines — photo, name and facts across; price and quantity under them */
    .ws-table-list thead { display: none; }
    .ws-table-list tr[data-ws-row] { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "price qty"; gap: 10px 12px; padding: 14px 16px; border-bottom: 1px solid var(--ws-border); }
    .ws-table-list tr[data-ws-row] td { padding: 0; border: 0; background: none; }
    .ws-table-list tr[data-ws-row].is-on { background: var(--ws-primary-softer); }
    .ws-table-list tr[data-ws-row] > td:first-child { grid-area: name; }
    .ws-table-list .ws-cell-price { grid-area: price; align-self: center; text-align: left; font-weight: 600; }
    .ws-table-list .ws-cell-price .ws-show-sm { font-weight: 400; }
    .ws-table-list .ws-cell-qty { grid-area: qty; justify-self: end; }
    .ws-table-list .ws-cell-product { align-items: flex-start; }
    .ws-table-list .ws-list-thumb { width: 44px; height: 44px; flex-basis: 44px; }
}
