/* ==========================================================================
   Club webshop (*.grib.store) — Grib design system, club colour in --club.
   Everything is scoped to .ws-app; markup is rendered by js/webshop/storefront.js
   ========================================================================== */

:root {
  --club: #2F49D1;
  --club-ink: #FFFFFF;
  --club-tint: color-mix(in srgb, var(--club) 9%, white);
  --text: #1F2A33;
  --text-2: #3A4651;
  --muted: #6B7480;
  --soft: #99A2AE;
  --bg: #F4F5F8;
  --subtle: #F8F9FB;
  --border: #ECEEF2;
  --border-strong: #E0E3EA;
  --loy: #A328EB;
  --loy-dark: #8A1FC8;
  --loy-ink: #6B2A94;
  --loy-tint: #F5E8FD;
  --ok: #06A26A;
  --ok-tint: #E5FAF2;
  --warn: #B87400;
  --warn-tint: #FFF8E1;
  --danger: #DC2626;
  --danger-tint: #FEE2E2;
  --pad-x: 32px;
  --shadow-pop: 0 8px 24px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
}
@media (max-width: 759px) { :root { --pad-x: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ws-app { min-height: 100vh; display: flex; flex-direction: column; }
.ws-app a { color: var(--club-link, var(--club)); text-decoration: none; }
.ws-app a:hover { text-decoration: underline; }
.ws-app button, .ws-app input, .ws-app select, .ws-app textarea { font-family: inherit; }
.ws-app h1, .ws-app h2, .ws-app p { margin: 0; }
.ws-app [hidden] { display: none !important; }
.ws-app svg { flex-shrink: 0; }
.ws-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px var(--pad-x) 56px; display: flex; flex-direction: column; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-press:active { transform: scale(.97); }

/* ── Header ───────────────────────────────────────────────── */
.ws-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.ws-header-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad-x); height: 68px; display: flex; align-items: center; gap: 24px; }
.ws-burger { width: 40px; height: 40px; margin-left: -8px; border: none; background: transparent; border-radius: 10px; display: none; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.ws-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; min-width: 0; border: none; background: none; padding: 0; color: var(--text); text-align: left; }
.ws-brand-tile { width: 34px; height: 34px; border-radius: 9px; background: var(--club); color: var(--club-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; letter-spacing: -0.5px; flex-shrink: 0; }
.ws-brand-logo { height: 36px; max-width: 160px; object-fit: contain; display: block; }
.ws-brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.ws-brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.ws-brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.ws-nav { display: flex; align-items: stretch; gap: 4px; height: 68px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.ws-nav::-webkit-scrollbar { display: none; }
.ws-nav button { border: none; background: transparent; padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; border-top: 2px solid transparent; transition: color .15s; white-space: nowrap; }
.ws-nav button:hover { color: var(--text); }
.ws-nav button.is-on { color: var(--text); font-weight: 600; border-bottom-color: var(--club); }
.ws-spacer { flex: 1; }
.ws-head-actions { display: flex; align-items: center; gap: 6px; position: relative; }
.ws-head-btn { position: relative; height: 40px; padding: 0 12px; border: none; background: transparent; border-radius: 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ws-head-btn:hover { background: var(--bg); }
.ws-head-btn .ws-wide { display: none; }
.ws-badge-count { position: absolute; top: 3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--club); color: var(--club-ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ws-account-pill { height: 40px; padding: 0 10px 0 4px; border: 1px solid var(--border); background: #fff; border-radius: 99px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); }
.ws-avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--loy); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws-avatar.is-lg { width: 36px; height: 36px; font-size: 13px; }
.ws-pts { display: flex; align-items: center; gap: 4px; color: var(--loy); }
.ws-account-pop { position: absolute; right: 0; top: 50px; width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 30; }
.ws-account-pop .ws-pts-box { background: var(--loy-tint); border-radius: 10px; padding: 12px; display: flex; justify-content: space-between; align-items: center; }
.ws-account-pop select { height: 36px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 8px; font-size: 13px; background: #fff; }
@media (min-width: 1060px) { .ws-head-btn .ws-wide { display: inline; } .ws-nav button { padding: 0 12px; } }
@media (max-width: 759px) {
  .ws-burger { display: flex; }
  .ws-nav { display: none; }
  .ws-header-in { gap: 12px; }
  .ws-brand-name { max-width: 150px; font-size: 15px; }
}

/* ── Mobile menu ──────────────────────────────────────────── */
.ws-menu { position: fixed; inset: 0; z-index: 40; background: rgba(15,23,42,.35); }
.ws-menu-panel { width: 86%; max-width: 340px; height: 100%; overflow-y: auto; background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.ws-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ws-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.ws-icon-btn { width: 40px; height: 40px; border: none; background: var(--bg); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); }
.ws-menu-cat { height: 52px; border: none; background: transparent; border-radius: 10px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.ws-menu-cat.is-on { background: var(--bg); }
.ws-menu-cat span:last-child { font-size: 13px; font-weight: 500; color: var(--soft); }
.ws-menu-sep { height: 1px; background: var(--border); margin: 12px 0; }
.ws-menu-link { height: 48px; border: none; background: transparent; text-align: left; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────────── */
.ws-btn { height: 44px; padding: 0 18px; border: none; border-radius: 10px; background: var(--club); color: var(--club-ink); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, opacity .15s; text-decoration: none !important; }
.ws-btn:active { transform: scale(.98); }
.ws-btn:disabled { opacity: .6; cursor: progress; }
.ws-btn.is-lg { height: 48px; font-size: 15px; }
.ws-btn.is-xl { height: 50px; font-size: 15px; }
.ws-btn.is-dark { background: var(--text); color: #fff; }
.ws-btn.is-white { background: #fff; color: var(--text); }
.ws-btn.is-outline-white { background: transparent; color: var(--club-ink); border: 1px solid color-mix(in srgb, var(--club-ink) 45%, transparent); }
.ws-btn.is-outline-white:hover { background: color-mix(in srgb, var(--club-ink) 12%, transparent); }
.ws-btn.is-loy { background: var(--loy-tint); color: var(--loy-dark); }
.ws-btn.is-loy:hover { background: #EEDAFB; }
.ws-btn.is-soft { background: var(--bg); color: var(--muted); font-weight: 500; }
.ws-btn.is-block { width: 100%; }
.ws-link-btn { border: none; background: transparent; color: var(--club-link, var(--club)); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.ws-text-btn { border: none; background: transparent; font-size: 13px; color: var(--muted); cursor: pointer; padding: 0; }

/* ── Home ─────────────────────────────────────────────────── */
.ws-home { gap: 40px; }
.ws-hero-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ws-hero { flex: 3 1 420px; background: var(--club); color: var(--club-ink); border-radius: 18px; padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 220px; }
.ws-hero .ws-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ws-hero h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.6px; font-weight: 700; max-width: 560px; text-wrap: balance; }
.ws-hero p { font-size: 15px; line-height: 1.5; max-width: 480px; opacity: .92; text-wrap: pretty; }
.ws-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ws-loy-card { flex: 1 1 260px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ws-loy-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--loy-tint); color: var(--loy); display: flex; align-items: center; justify-content: center; }
.ws-loy-card .ws-big-pts { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; color: var(--loy); }
.ws-muted { color: var(--muted); }
.ws-soft { color: var(--soft); }
.ws-small { font-size: 13px; line-height: 1.5; }
.ws-xs { font-size: 12px; }
.ws-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 84px; }
.ws-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ws-section-head h2, .ws-h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.ws-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ws-cat-tile { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.ws-cat-tile:hover { border-color: var(--border-strong); box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ws-cat-tile .ws-img { aspect-ratio: 4/3; border-radius: 10px; }
.ws-cat-tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px 4px; }
.ws-cat-tile-foot span:first-child { font-size: 14px; font-weight: 600; }
.ws-cat-tile-foot span:last-child { font-size: 12px; color: var(--soft); white-space: nowrap; }
@media (max-width: 759px) {
  .ws-hero { padding: 24px; }
  .ws-hero h1 { font-size: 26px; }
  .ws-cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ── Images / placeholders ────────────────────────────────── */
.ws-img { position: relative; width: 100%; background: #ECEAE6; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ws-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-img-ph { font-size: 28px; font-weight: 700; color: rgba(31,42,51,.22); letter-spacing: -0.5px; user-select: none; }
.ws-tone-0 { background: #EDE4D5; } .ws-tone-1 { background: #DDE3EA; } .ws-tone-2 { background: #E3E8E0; }
.ws-tone-3 { background: #EFE4DA; } .ws-tone-4 { background: #E7E3EC; } .ws-tone-5 { background: #E4E6E8; }

/* ── Product cards ────────────────────────────────────────── */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
@media (max-width: 759px) { .ws-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 12px; } }
.ws-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ws-card .ws-img { aspect-ratio: 1/1; cursor: pointer; }
.ws-card-title { display: flex; flex-direction: column; gap: 2px; cursor: pointer; padding: 0 2px; border: none; background: none; text-align: left; color: var(--text); }
.ws-card-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.ws-card-sub { font-size: 12px; color: var(--muted); }
.ws-card-price { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.ws-price { font-size: 16px; font-weight: 700; }
.ws-loy-line { font-size: 12px; color: var(--loy-dark); }
.ws-loy-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 99px; background: #fff; color: var(--loy); font-size: 11px; font-weight: 600; z-index: 1; }
.ws-stock { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--warn); }
.ws-stock::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: #FFC10D; }
.ws-stock.is-out { color: var(--muted); }
.ws-stock.is-out::before { background: #C9CED6; }
.ws-card-btn { margin-top: auto; height: 40px; border: none; border-radius: 10px; background: var(--club); color: var(--club-ink); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s; }
.ws-card-btn:active { transform: scale(.97); }
.ws-card-btn.is-choose { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.ws-card-btn.is-added { background: var(--ok-tint); color: var(--ok); }
.ws-card-btn.is-off { background: var(--bg); color: var(--soft); cursor: not-allowed; }

/* ── Category ─────────────────────────────────────────────── */
.ws-cat { gap: 20px; }
.ws-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ws-crumbs a { color: var(--muted) !important; cursor: pointer; }
.ws-crumbs span:last-child { color: var(--text); }
.ws-cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ws-h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; }
.ws-seg { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.ws-seg button { height: 32px; padding: 0 12px; border: none; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.ws-seg button.is-on { background: var(--text); color: #fff; }
.ws-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin: 0 -2px; scrollbar-width: none; }
.ws-chips::-webkit-scrollbar { display: none; }
.ws-chips button { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.ws-chips button.is-on { border-color: var(--club); background: var(--club); color: var(--club-ink); }
.ws-search { position: relative; flex: 0 1 280px; }
.ws-search input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 0 12px 0 36px; font-size: 14px; color: var(--text); outline: none; }
.ws-search input:focus { border-color: var(--club); box-shadow: 0 0 0 3px var(--club-tint); }
.ws-search svg { position: absolute; left: 11px; top: 11px; color: var(--soft); }
.ws-empty { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ws-empty strong { font-size: 16px; font-weight: 600; }

/* ── Product detail ───────────────────────────────────────── */
.ws-pd { gap: 24px; }
.ws-pd-row { display: flex; flex-wrap: wrap; gap: 48px; }
.ws-pd-media { flex: 1.15 1 400px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ws-pd-media .ws-img { aspect-ratio: 1/1; border-radius: 18px; }
.ws-pd-media .ws-img-ph { font-size: 64px; }
.ws-pd-media .ws-loy-badge { top: 16px; left: 16px; height: 28px; padding: 0 10px; font-size: 12px; gap: 5px; }
.ws-pd-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ws-pd-title { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.4px; text-wrap: balance; }
.ws-pd-price { display: flex; align-items: baseline; gap: 10px; }
.ws-pd-price strong { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.ws-pd-stock { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--warn); margin-top: -8px; }
.ws-pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: #FFC10D; }
.ws-pd-stock.is-out { color: var(--muted); }
.ws-pd-stock.is-out::before { background: #C9CED6; }
.ws-loy-box { background: var(--loy-tint); border-radius: 14px; padding: 16px; display: flex; gap: 12px; }
.ws-loy-box-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--loy); display: flex; align-items: center; justify-content: center; }
.ws-loy-box strong { font-size: 14px; font-weight: 600; color: #5B1A85; display: block; }
.ws-loy-box span { font-size: 13px; color: var(--loy-ink); line-height: 1.5; text-wrap: pretty; }
.ws-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-size { min-width: 52px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--border-strong); background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.ws-size.is-on { border-color: var(--text); background: var(--text); color: #fff; }
.ws-size.is-out { background: var(--subtle); color: #C9CED6; text-decoration: line-through; cursor: not-allowed; }
.ws-field-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.ws-err-text { font-size: 12px; color: var(--danger); font-weight: 400; }
.ws-buy { display: flex; gap: 10px; }
.ws-qty { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; height: 48px; flex-shrink: 0; }
.ws-qty button { width: 44px; height: 46px; border: none; background: transparent; cursor: pointer; font-size: 18px; color: var(--text); }
.ws-qty button:disabled { color: #C9CED6; cursor: not-allowed; }
.ws-qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 15px; }
.ws-qty.is-sm { height: 38px; }
.ws-qty.is-sm button { width: 38px; height: 36px; font-size: 16px; }
.ws-qty.is-sm span { min-width: 24px; font-size: 14px; }
.ws-buy-btn { flex: 1; height: 48px; border: none; border-radius: 10px; background: var(--club); color: var(--club-ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; padding: 0 12px; }
.ws-buy-btn:active { transform: scale(.98); }
.ws-buy-btn.is-added { background: var(--ok); color: #fff; }
.ws-buy-btn.is-off { background: var(--bg); color: var(--soft); cursor: not-allowed; }
.ws-usps { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ws-usp { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.ws-usp b { font-weight: 600; }
.ws-desc { display: flex; flex-direction: column; gap: 8px; }
.ws-desc p { font-size: 14px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; white-space: pre-line; }
@media (max-width: 759px) { .ws-pd-row { gap: 20px; } .ws-pd-title { font-size: 24px; } .ws-pd-media { flex-basis: 100%; } }

/* ── Cart ─────────────────────────────────────────────────── */
.ws-cart { padding-top: 28px; gap: 20px; }
.ws-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ws-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ws-panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.ws-cart-lines { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; }
.ws-cart-line { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); }
.ws-cart-line .ws-img { flex-shrink: 0; width: 96px; height: 96px; border-radius: 10px; cursor: pointer; }
.ws-cart-line .ws-img-ph { font-size: 20px; }
.ws-cart-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-cart-line-top { display: flex; justify-content: space-between; gap: 12px; }
.ws-cart-line-name { font-size: 15px; font-weight: 600; cursor: pointer; }
.ws-cart-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-pill-loy { margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--loy-tint); color: var(--loy-dark); font-size: 11px; font-weight: 600; }
.ws-remove { height: 36px; padding: 0 10px; border: none; background: transparent; border-radius: 8px; color: var(--muted); font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ws-remove:hover { background: var(--danger-tint); color: var(--danger); }
.ws-summary { flex: 1 1 300px; max-width: 400px; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 88px; }
.ws-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ws-sum-row > span:first-child { color: var(--muted); }
.ws-sum-row.is-loy, .ws-sum-row.is-loy > span:first-child { color: var(--loy); }
.ws-free { color: var(--ok); font-weight: 500; }
.ws-hr { height: 1px; background: var(--border); }
.ws-total { display: flex; justify-content: space-between; align-items: baseline; }
.ws-total strong { font-size: 20px; font-weight: 700; }
.ws-hint-loy { background: var(--loy-tint); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--loy-ink); line-height: 1.45; }
@media (max-width: 759px) {
  .ws-cart-line .ws-img { width: 72px; height: 72px; }
  .ws-summary { max-width: none; position: static; }
  .ws-remove .ws-wide-only { display: none; }
}

/* ── Checkout ─────────────────────────────────────────────── */
.ws-co-header { background: #fff; border-bottom: 1px solid var(--border); }
.ws-co-header-in { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad-x); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-co-back { border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 0; min-width: 80px; }
.ws-co-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ws-co-brand .ws-brand-tile { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; }
.ws-co-brand .ws-brand-logo { height: 28px; }
.ws-co-brand span { font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-co-secure { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 80px; justify-content: flex-end; }
.ws-co { max-width: 1100px; padding: 24px var(--pad-x) 48px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ws-co-main { flex: 1.6 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ws-co-main h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; }
.ws-step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ws-step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ws-step-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.ws-step-no { width: 24px; height: 24px; border-radius: 99px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ws-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; }
.ws-mode button { height: 40px; border: none; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ws-mode button.is-on { background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08); color: var(--text); }
.ws-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.ws-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 calc(50% - 6px); }
.ws-field.is-full { flex-basis: 100%; }
.ws-field.is-zip { flex-basis: calc(35% - 6px); }
.ws-field.is-city { flex-basis: calc(65% - 6px); }
.ws-field > span { font-size: 13px; font-weight: 500; }
.ws-input { height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; color: var(--text); background: #fff; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
.ws-input:focus { border-color: var(--club); box-shadow: 0 0 0 3px var(--club-tint); }
.ws-input.is-err { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.ws-input::placeholder { color: var(--soft); }
@media (max-width: 759px) { .ws-field, .ws-field.is-zip, .ws-field.is-city { flex-basis: 100%; } }
.ws-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ws-alert { border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.ws-alert.is-warn { background: var(--warn-tint); color: #8A5A00; }
.ws-alert.is-err { background: var(--danger-tint); color: #991B1B; }
.ws-alert.is-ok { background: var(--ok-tint); color: #04704A; }
.ws-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--subtle); border-radius: 10px; }
.ws-who-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-who select { height: 32px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 13px; padding: 0 6px; background: #fff; max-width: 100%; }
.ws-known { display: flex; flex-direction: column; }
.ws-known-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ws-known-row > span:first-child { width: 110px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.ws-known-row > span:nth-child(2) { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.ws-known-row.is-missing > span:nth-child(2) { color: var(--soft); }
.ws-tag-missing { height: 22px; padding: 0 8px; border-radius: 99px; background: var(--warn-tint); color: var(--warn); font-size: 11px; font-weight: 600; display: flex; align-items: center; }
.ws-missing-box { border: 1px solid #FFE3A3; background: #FFFCF2; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ws-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); border: none; background: none; padding: 0; text-align: left; }
.ws-check-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #C9CED6; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws-check.is-on .ws-check-box { border-color: var(--text); background: var(--text); }

/* loyalty */
.ws-pts-meter { background: var(--loy-tint); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ws-pts-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--loy-ink); }
.ws-pts-meter-top strong { font-size: 22px; font-weight: 700; color: var(--loy); letter-spacing: -0.3px; margin-right: 6px; }
.ws-pts-bar { height: 6px; border-radius: 99px; background: #fff; overflow: hidden; }
.ws-pts-bar div { height: 100%; background: var(--loy); border-radius: 99px; transition: width .2s; }
.ws-loy-lines { display: flex; flex-direction: column; gap: 10px; }
.ws-loy-item { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; transition: border-color .15s, background .15s; }
.ws-loy-item.is-on { border-color: var(--loy); background: #FCF8FF; }
.ws-loy-item .ws-img { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.ws-loy-item .ws-img-ph { font-size: 14px; }
.ws-loy-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-loy-item-top { display: flex; justify-content: space-between; gap: 10px; }
.ws-loy-item-top strong { font-size: 14px; font-weight: 700; color: var(--loy); white-space: nowrap; }
.ws-loy-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; border: none; background: none; padding: 0; text-align: left; font-size: 13px; font-weight: 500; color: var(--text); }
.ws-loy-toggle:disabled { cursor: not-allowed; opacity: .55; }
.ws-loy-box2 { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #B9A3C9; background: #fff; display: flex; align-items: center; justify-content: center; }
.ws-loy-toggle:disabled .ws-loy-box2 { border-color: var(--border-strong); }
.ws-loy-item.is-on .ws-loy-box2 { border-color: var(--loy); background: var(--loy); }
.ws-loy-step { display: flex; align-items: center; gap: 10px; padding-left: 30px; flex-wrap: wrap; }
.ws-loy-step .ws-qty { border-color: #E7CDF8; height: 32px; border-radius: 8px; }
.ws-loy-step .ws-qty button { width: 30px; height: 30px; color: var(--loy); font-size: 15px; }
.ws-loy-step .ws-qty button:disabled { color: #D9C3EA; }
.ws-loy-step .ws-qty span { min-width: 20px; font-size: 13px; }
.ws-loy-reason { padding-left: 30px; font-size: 12px; color: var(--warn); }
.ws-loy-locked { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed #E7CDF8; border-radius: 12px; flex-wrap: wrap; }
.ws-loy-locked > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.ws-loy-locked strong { font-size: 14px; font-weight: 600; }

/* payment / delivery options */
.ws-opts { display: flex; flex-direction: column; gap: 10px; }
.ws-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; transition: border-color .15s; text-align: left; width: 100%; color: var(--text); }
.ws-opt.is-on { border-color: var(--text); background: var(--subtle); }
.ws-radio { flex-shrink: 0; width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid #C9CED6; display: flex; align-items: center; justify-content: center; }
.ws-radio::after { content: ''; width: 10px; height: 10px; border-radius: 99px; background: transparent; }
.ws-opt.is-on .ws-radio { border-color: var(--text); }
.ws-opt.is-on .ws-radio::after { background: var(--text); }
.ws-opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-opt-body strong { font-size: 14px; font-weight: 600; }
.ws-opt-body span { font-size: 13px; color: var(--muted); }
.ws-opt-mark { flex-shrink: 0; height: 28px; min-width: 44px; padding: 0 8px; border-radius: 6px; background: #CC0066; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.ws-opt-mark.is-muted { background: var(--bg); color: var(--muted); }
.ws-pickup { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--subtle); border-radius: 10px; font-size: 13px; color: var(--text-2); }

/* order summary */
.ws-co-sum { flex: 1 1 320px; max-width: 400px; position: sticky; top: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ws-sum-lines { display: flex; flex-direction: column; gap: 12px; }
.ws-sum-line { display: flex; gap: 12px; }
.ws-sum-thumb { position: relative; flex-shrink: 0; width: 48px; height: 48px; }
.ws-sum-thumb .ws-img { width: 48px; height: 48px; border-radius: 8px; }
.ws-sum-thumb .ws-img-ph { font-size: 14px; }
.ws-sum-qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--muted); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; }
.ws-sum-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-sum-line-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.ws-sum-line-loy { display: flex; justify-content: space-between; font-size: 12px; color: var(--loy); }
.ws-sum-total strong { font-size: 22px; letter-spacing: -0.3px; }
.ws-sum-pay { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 12px; background: var(--subtle); border-radius: 10px; }
.ws-sum-pay span:last-child { font-weight: 600; }
.ws-note { font-size: 11px; color: var(--soft); line-height: 1.45; text-align: center; }
.ws-mobile-bar { display: none; }
@media (max-width: 759px) {
  .ws-co-sum { max-width: none; position: static; }
  .ws-co-sum .ws-place-desktop { display: none; }
  .ws-co-secure .ws-wide-only { display: none; }
  .ws-mobile-bar { position: sticky; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--border); padding: 12px var(--pad-x) 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 -8px 24px rgba(15,23,42,.06); }
  .ws-mobile-bar .ws-btn { flex: 1; }
}

/* ── Confirmation ─────────────────────────────────────────── */
.ws-done { max-width: 760px; padding-top: 40px; padding-bottom: 64px; gap: 20px; }
.ws-done-icon { width: 48px; height: 48px; border-radius: 99px; background: var(--ok-tint); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.ws-done-icon.is-wait { background: var(--warn-tint); color: var(--warn); }
.ws-status { height: 24px; padding: 0 10px; border-radius: 99px; background: var(--ok-tint); color: var(--ok); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.ws-status.is-wait { background: var(--warn-tint); color: var(--warn); }
.ws-steps { display: flex; flex-direction: column; gap: 14px; }
.ws-next { display: flex; gap: 12px; }
.ws-next-no { flex-shrink: 0; width: 26px; height: 26px; border-radius: 99px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ws-next-no.is-ok { background: var(--ok-tint); color: var(--ok); }
.ws-next div { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.ws-next strong { font-size: 14px; font-weight: 600; }
.ws-next span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ws-done-line { display: flex; gap: 12px; align-items: center; }
.ws-done-line .ws-img { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; }
.ws-done-line .ws-img-ph { font-size: 14px; }
.ws-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ws-tile { flex: 1 1 200px; background: var(--subtle); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ws-tile span:first-child { font-size: 12px; color: var(--muted); }
.ws-tile span:last-child { font-size: 14px; font-weight: 600; }
.ws-tile.is-loy { background: var(--loy-tint); }
.ws-tile.is-loy span:first-child { color: var(--loy-ink); }
.ws-tile.is-loy span:last-child { color: var(--loy); }
.ws-spinner { width: 18px; height: 18px; border-radius: 99px; border: 2px solid currentColor; border-right-color: transparent; animation: wsSpin .8s linear infinite; display: inline-block; }
@keyframes wsSpin { to { transform: rotate(360deg); } }

/* ── Footer ───────────────────────────────────────────────── */
.ws-footer { border-top: 1px solid var(--border); background: #fff; }
.ws-footer-in { max-width: 1240px; margin: 0 auto; padding: 28px var(--pad-x); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.ws-footer-club { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ws-footer-club strong { font-weight: 600; color: var(--text); }
.ws-powered { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--soft); }
.ws-powered b { font-weight: 800; letter-spacing: .02em; color: var(--muted); }

/* ── Toast + dialog ───────────────────────────────────────── */
@keyframes wsToastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ws-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--text); color: #fff; border-radius: 12px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.2); animation: wsToastIn .18s ease-out; font-size: 14px; max-width: calc(100% - 32px); }
.ws-toast button { border: none; background: #fff; color: var(--text); border-radius: 8px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ws-dialog-back { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ws-dialog { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(15,23,42,.18); max-height: calc(100vh - 32px); overflow-y: auto; }
.ws-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ws-dialog-head strong { font-size: 18px; font-weight: 700; }

/* ── Language switcher ────────────────────────────────────── */
.ws-lang { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 8px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.ws-lang:hover { background: var(--bg); color: var(--text); }
.ws-lang select { appearance: none; -webkit-appearance: none; border: none; background: transparent; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; padding: 0 2px; outline: none; }
.ws-lang select:focus-visible { box-shadow: 0 0 0 2px var(--club-tint); border-radius: 4px; }
.ws-lang.is-foot { border: 1px solid var(--border); height: 32px; }
.ws-co-secure .ws-lang { margin-right: 8px; }
.ws-menu-langs { display: flex; flex-direction: column; gap: 2px; }
.ws-menu-langs button { height: 44px; border: none; background: transparent; border-radius: 10px; text-align: left; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
.ws-menu-langs button.is-on { background: var(--bg); font-weight: 600; }
@media (max-width: 759px) { .ws-lang.is-head { display: none; } .ws-co-secure .ws-lang.is-head { display: inline-flex; } }
