/* ==========================================================================
   teleskopy.pl v2 - design system
   Tokens -> base -> layout -> components -> pages -> utilities
   ========================================================================== */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f5f7fa;
  --paper: #ffffff;
  --ink: #101c2a;
  --ink-2: #33414f;
  --muted: #5f6d7c;
  --line: #e5e9ef;
  --line-strong: #cbd3dd;

  --brand: #123a6b;
  --brand-strong: #0c2a50;
  --brand-soft: #eaf1fa;
  --action: #1560d4;
  --action-hover: #0f4fb3;
  --action-soft: #e8f0fd;
  --action-ring: rgba(21, 96, 212, 0.28);

  --sale: #c8203a;
  --sale-soft: #fdecef;
  --ok: #15803d;
  --ok-soft: #e8f6ed;
  --info: #0e7490;
  --warn: #b45309;
  --warn-soft: #fff5e6;
  --danger: #b91c1c;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(16, 28, 42, 0.05);
  --shadow: 0 1px 2px rgba(16, 28, 42, 0.04), 0 10px 28px -10px rgba(16, 28, 42, 0.12);
  --shadow-l: 0 2px 4px rgba(16, 28, 42, 0.04), 0 24px 48px -16px rgba(16, 28, 42, 0.22);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1280px;
  --gutter: 16px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "calt";
}
::selection { background: var(--brand-soft); color: var(--brand-strong); }
img { max-width: 100%; height: auto; }
a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--action-ring); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.v2-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.v2-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.v2-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.v2-skip:focus { left: 8px; background: var(--paper); padding: 10px 14px; border-radius: var(--radius-s); box-shadow: var(--shadow-l); }

.v2-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 24px; } }

/* ---------- top bar ---------- */
.v2-topbar { background: var(--brand-strong); color: #d8e3f2; font-size: 13px; }
.v2-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.v2-usp { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.v2-usp li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.v2-usp .v2-icon { width: 16px; height: 16px; opacity: .85; }
.v2-topbar-links { display: flex; gap: 18px; white-space: nowrap; }
.v2-topbar-links a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.v2-topbar-links .v2-icon { width: 15px; height: 15px; }
@media (max-width: 1280px) { .v2-usp li:nth-child(n+2) { display: none; } }
@media (max-width: 640px) { .v2-topbar-links { display: none; } .v2-usp li { font-size: 12px; } }

/* Classic / modern layout switch (top bar + mobile drawer) */
.v2-layout-switch { display: inline-flex; align-items: center; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 600; }
.v2-layout-switch a, .v2-layout-switch .is-current { padding: 2px 10px; border-radius: 999px; line-height: 1.5; }
.v2-topbar-links .v2-layout-switch a { color: #d8e3f2; }
.v2-topbar-links .v2-layout-switch a:hover { color: #fff; text-decoration: none; }
.v2-layout-switch .is-current { background: #fff; color: var(--brand-strong); }
.v2-layout-switch.is-drawer { background: var(--bg); font-size: 14px; }
.v2-layout-switch.is-drawer a { color: var(--ink-2); padding: 6px 14px; }
.v2-layout-switch.is-drawer .is-current { padding: 6px 14px; background: var(--brand); color: #fff; }
.v2-drawer-extra .v2-drawer-layout { padding: 10px 20px; }
.v2-drawer-extra .v2-drawer-layout a { display: inline; }

/* currency switcher */
.v2-cur { position: relative; }
.v2-cur summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-weight: 600; color: #fff; }
.v2-cur summary::-webkit-details-marker { display: none; }
.v2-cur summary .v2-icon { width: 14px; height: 14px; transition: transform .15s; }
.v2-cur[open] summary .v2-icon { transform: rotate(180deg); }
.v2-cur ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px; margin: 0; padding: 6px 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-l); }
.v2-cur ul a { display: flex; gap: 8px; align-items: baseline; padding: 8px 14px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.v2-cur ul a span { color: var(--muted); font-weight: 400; font-size: 13px; }
.v2-cur ul a:hover, .v2-cur ul a.is-current { background: var(--bg); color: var(--brand); text-decoration: none; }
.v2-cur.is-up ul { top: auto; bottom: calc(100% + 8px); }
.v2-cur.is-inline summary { color: var(--ink); }
.v2-cur.is-inline ul { position: static; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; }
.v2-drawer-cur { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 10px 20px; color: var(--ink-2); }
.v2-drawer-cur .v2-cur { flex: 1 1 100%; }
.v2-footer-prefs { display: flex; gap: 18px; align-items: center; }

/* ---------- header ---------- */
.v2-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-s); }
.v2-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.v2-logo { flex: none; display: block; line-height: 0; }
.v2-logo img { height: 44px; width: auto; }
.v2-search { flex: 1; position: relative; max-width: 680px; margin: 0 auto; }
.v2-search input {
  width: 100%; height: 48px; padding: 0 54px 0 20px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.v2-search input::placeholder { color: #7d8a97; }
.v2-search input:focus { outline: none; background: var(--paper); border-color: var(--action); box-shadow: 0 0 0 4px var(--action-ring); }
.v2-search-btn {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; transition: background .15s;
}
.v2-search-btn:hover { background: var(--brand-strong); }
.v2-search-btn .v2-icon { width: 18px; height: 18px; }
.v2-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.v2-tool {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px;
  padding: 6px 8px; border-radius: var(--radius-s); color: var(--ink); font-size: 12px; font-weight: 500;
}
.v2-tool:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.v2-tool .v2-icon { width: 24px; height: 24px; }
.v2-tool-label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-tool-icon { position: relative; line-height: 0; }
.v2-badge {
  position: absolute; top: -6px; right: -10px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 20px; text-align: center; border: 2px solid var(--paper);
}
.v2-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--ink);
}
.v2-iconbtn:hover { background: var(--bg); }
.v2-nav-toggle { display: none; }

/* search suggestions */
.v2-search.is-loading .v2-search-btn .v2-icon { animation: v2-pulse .8s ease-in-out infinite alternate; }
@keyframes v2-pulse { to { opacity: .35; } }
.v2-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70;
  max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 8px 0;
}
.v2-suggest-head { margin: 0; padding: 8px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v2-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.v2-suggest a:hover, .v2-suggest a[aria-selected="true"] { background: var(--action-soft); color: var(--ink); text-decoration: none; }
.v2-suggest mark { background: none; color: inherit; font-weight: 700; }
.v2-suggest-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.v2-suggest-link { justify-content: space-between; font-size: 14px; }
.v2-suggest-link small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.v2-suggest-img { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.v2-suggest-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v2-suggest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v2-suggest-info small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.v2-suggest-name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-suggest-info .v2-stock-dot { font-size: 12px; }
.v2-suggest-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.v2-suggest-price strong { font-size: 15px; }
.v2-suggest-price strong.is-sale { color: var(--sale); }
.v2-suggest-price s { color: var(--muted); font-size: 12px; }
.v2-suggest a.v2-suggest-all { justify-content: center; gap: 4px; margin-top: 4px; border-top: 1px solid var(--line); padding: 12px 16px 6px; font-weight: 600; color: var(--action); }
.v2-suggest-all .v2-icon { width: 16px; height: 16px; }
.v2-suggest-empty { margin: 0; padding: 14px 16px; color: var(--muted); }
@media (max-width: 1023px) { .v2-suggest { max-height: 65vh; } }
@media (max-width: 560px) { .v2-suggest-img { width: 44px; height: 44px; } .v2-suggest-links { grid-template-columns: 1fr; } }

/* language + currency (header tools row) */
.v2-prefs { position: relative; }
.v2-prefs > summary { list-style: none; cursor: pointer; }
.v2-prefs > summary::-webkit-details-marker { display: none; }
.v2-prefs[open] > summary { background: var(--bg); }
.v2-prefs-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 75; min-width: 220px; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
}
.v2-prefs-title { margin: 0; padding: 8px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v2-prefs-panel ul { list-style: none; margin: 0 0 4px; padding: 0; }
.v2-prefs-panel a { display: flex; gap: 8px; align-items: baseline; padding: 8px 16px; color: var(--ink); font-weight: 600; font-size: 14px; }
.v2-prefs-panel a span { color: var(--muted); font-weight: 400; font-size: 13px; }
.v2-prefs-panel a:hover { background: var(--bg); text-decoration: none; color: var(--brand); }
.v2-prefs-panel a.is-current { color: var(--brand); }
.v2-prefs-panel a.is-current::after { content: ""; margin-left: auto; width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
@media (max-width: 1023px) {
  .v2-prefs .v2-tool-label { display: inline; font-size: 11px; }
}

/* main menu + mega panels */
.v2-menu { border-top: 1px solid var(--line); background: var(--paper); }
.v2-menu-list { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.v2-menu-list::-webkit-scrollbar { display: none; }
.v2-menu-item { position: static; }
.v2-menu-link {
  display: block; padding: 13px 13px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; letter-spacing: -0.005em;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.v2-menu-link:hover, .v2-menu-item:focus-within > .v2-menu-link { color: var(--brand); text-decoration: none; border-bottom-color: var(--line-strong); }
.v2-menu-link.is-current { color: var(--brand); border-bottom-color: var(--brand); }
.v2-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(20, 33, 46, .12); padding: 22px 0 26px;
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s .15s;
  pointer-events: none;
}
@media (hover: hover) and (min-width: 1024px) {
  .v2-menu-item.has-panel:hover > .v2-menu-panel,
  .v2-menu-item.has-panel.is-open > .v2-menu-panel {
    visibility: visible; opacity: 1; transform: none; transition-delay: .12s, .12s, .12s, 0s; pointer-events: auto;
  }
}
.v2-menu-item.has-panel:focus-within > .v2-menu-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.v2-menu-panel-title { margin: 0 0 12px; font-weight: 700; font-size: 17px; }
.v2-menu-panel-title a { color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.v2-menu-cols { columns: 4 200px; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.v2-menu-cols li { break-inside: avoid; }
.v2-menu-cols a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.v2-menu-cols a:hover { color: var(--action); }

/* "More" dropdown for categories that do not fit in one line (filled by v2.js) */
.v2-menu-list.is-fit { overflow: visible; }
.v2-menu-more { position: relative; }
.v2-menu-more > button { display: inline-flex; align-items: center; gap: 4px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; }
.v2-menu-more > button .v2-icon { width: 16px; height: 16px; transition: transform .15s; }
.v2-menu-more.is-open > button .v2-icon { transform: rotate(180deg); }
.v2-menu-more.has-current > button { color: var(--brand); border-bottom-color: var(--brand); }
.v2-menu-more-list {
  position: absolute; right: 0; top: 100%; z-index: 5; min-width: 240px; max-height: 70vh; overflow-y: auto;
  margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 30px rgba(20, 33, 46, .12);
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s .15s;
}
.v2-menu-more.is-open > .v2-menu-more-list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 1024px) {
  .v2-menu-more:hover > .v2-menu-more-list { visibility: visible; opacity: 1; transform: none; transition-delay: .12s, .12s, .12s, 0s; }
}
.v2-menu-more-list a { display: block; padding: 9px 18px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.v2-menu-more-list a:hover, .v2-menu-more-list a.is-current { background: var(--bg); color: var(--brand); text-decoration: none; }
.v2-menu-item.is-overflow { display: none; }

/* Brands menu item: always right-aligned after the categories / "Wiecej", with a divider. */
.v2-menu-brands { margin-left: auto; position: static; display: flex; align-items: center; }
.v2-menu-brands::before { content: ""; width: 1px; height: 20px; background: var(--line-strong); margin-right: 8px; }
.v2-menu-brands > .v2-menu-link { display: inline-flex; align-items: center; gap: 4px; }
.v2-menu-brands > .v2-menu-link .v2-icon { width: 16px; height: 16px; }
.v2-brand-logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.v2-brand-logos a { display: flex; align-items: center; justify-content: center; height: 64px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 13px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.v2-brand-logos a:hover { border-color: var(--action); box-shadow: var(--shadow); text-decoration: none; }
.v2-brand-logos img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* mobile drawer */
.v2-drawer { position: fixed; inset: 0; z-index: 80; }
.v2-drawer-backdrop { position: absolute; inset: 0; background: rgba(12, 20, 30, .45); animation: v2-fade .2s var(--ease); }
.v2-drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain; animation: v2-slide .25s var(--ease); box-shadow: var(--shadow-l);
  padding-bottom: env(safe-area-inset-bottom);
}
.v2-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.v2-drawer-head p { margin: 0; font-weight: 700; font-size: 17px; }
.v2-drawer-list, .v2-drawer-list ul, .v2-drawer-extra { list-style: none; margin: 0; padding: 0; }
.v2-drawer-list > li { border-bottom: 1px solid var(--line); }
.v2-drawer-list a, .v2-drawer-list summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; color: var(--ink); font-weight: 600; }
.v2-drawer-list summary { cursor: pointer; list-style: none; }
.v2-drawer-list summary::-webkit-details-marker { display: none; }
.v2-drawer-list details[open] > summary .v2-icon { transform: rotate(180deg); }
.v2-drawer-list ul { background: var(--bg); padding: 4px 0; }
.v2-drawer-list ul a { font-weight: 400; padding: 10px 20px 10px 32px; }
.v2-drawer-list ul a.is-all { font-weight: 600; color: var(--action); }
.v2-drawer-extra { padding: 12px 0 24px; }
.v2-drawer-extra a { display: block; padding: 10px 20px; color: var(--ink-2); }
body.v2-locked { overflow: hidden; }
@keyframes v2-fade { from { opacity: 0; } }
@keyframes v2-slide { from { transform: translateX(-100%); } }

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .v2-nav-toggle { display: inline-grid; }
  .v2-menu { display: none; }
  .v2-bar { flex-wrap: wrap; gap: 8px 6px; padding-top: 8px; padding-bottom: 10px; }
  .v2-nav-toggle { width: 40px; margin-left: -8px; }
  .v2-logo img { height: 32px; }
  .v2-search { order: 5; flex: 1 1 100%; max-width: none; }
  .v2-search input { height: 44px; }
  .v2-tools { margin-left: auto; gap: 2px; }
  .v2-tool { min-width: 42px; padding: 6px 4px; }
  .v2-tool-label { display: none; }
}

/* ---------- main ---------- */
.v2-main { padding: 20px 0 64px; min-height: 50vh; }
.v2-main:focus { outline: none; }

/* breadcrumbs */
.v2-crumbs { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.v2-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.v2-crumbs li { display: flex; align-items: center; gap: 4px; }
.v2-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #9aa6b2; border-top: 1.5px solid #9aa6b2; transform: rotate(45deg); margin: 0 6px 0 2px; }
.v2-crumbs a { color: var(--muted); }
.v2-crumbs a:hover { color: var(--action); }
.v2-crumbs [aria-current] span { color: var(--ink-2); }
@media (max-width: 640px) {
  .v2-crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
}

/* page heading */
.v2-hero { margin: 4px 0 24px; }
.v2-hero h1 { margin: 0 0 6px; }
.v2-hero p, .v2-lead { color: var(--muted); margin: 0; max-width: 62em; }
.v2-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.v2-page-head h1 { margin: 0; }
.v2-count { color: var(--muted); font-size: 14px; }

/* sections */
.v2-section { margin: 52px 0; }
.v2-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.v2-section-head h2 { margin: 0; }
.v2-section-head + .v2-grid, .v2-section-head + .v2-cats { margin-top: 4px; }
.v2-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.v2-more .v2-icon { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.v2-btn, button.v2-btn, a.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px; letter-spacing: -0.005em;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  -webkit-appearance: none; appearance: none;
}
.v2-btn:hover { border-color: var(--ink-2); color: var(--ink); text-decoration: none; }
.v2-btn:active { transform: translateY(1px); }
.v2-btn-primary, button.v2-btn-primary, a.v2-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(16,28,42,.12); }
.v2-btn-primary:hover, a.v2-btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.v2-btn-quiet, button.v2-btn-quiet { background: transparent; border-color: transparent; color: var(--action); padding-left: 8px; padding-right: 8px; }
.v2-btn-quiet:hover { background: var(--action-soft); border-color: transparent; color: var(--action-hover); }
.v2-btn-lg { min-height: 54px; font-size: 17px; padding: 14px 26px; border-radius: 12px; }
.v2-btn-block { width: 100%; }
.v2-btn[disabled], .v2-btn.is-busy { opacity: .6; pointer-events: none; }
.v2-btn .v2-icon { width: 20px; height: 20px; }

/* ---------- forms ---------- */
.v2-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.v2-field > span, .v2-field > label, .v2-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.v2-field input, .v2-field select, .v2-field textarea,
.v2-panel input[type="text"], .v2-panel input[type="password"], .v2-panel input[type="email"],
.v2-panel input[type="tel"], .v2-panel input[type="search"], .v2-panel input[type="number"], .v2-panel input[type="date"],
.v2-panel select, .v2-panel textarea, .v2-input, .sc2-input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.v2-field textarea, .v2-panel textarea, textarea.v2-input, textarea.sc2-input { min-height: 110px; resize: vertical; }
.v2-field input:focus, .v2-field select:focus, .v2-field textarea:focus,
.v2-panel input:focus, .v2-panel select:focus, .v2-panel textarea:focus, .v2-input:focus, .sc2-input:focus {
  outline: none; border-color: var(--action); box-shadow: 0 0 0 4px var(--action-ring);
}
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6c7b' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px !important; }
.v2-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.v2-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--action); flex: none; }
.v2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.v2-form-grid .is-wide { grid-column: 1 / -1; }
.v2-hint { font-size: 13px; color: var(--muted); }
.inputRequirement, .v2-req { color: var(--sale); font-size: 13px; }
@media (max-width: 640px) { .v2-form-grid { grid-template-columns: 1fr; } }

/* osC messageStack output */
.v2-notices { margin: 0 0 16px; }
.v2-notices table { width: 100%; border-collapse: collapse; }
.v2-notices td { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: #7a3c00; border: 1px solid #f6d6a8; font-size: 15px; }
.v2-notices .messageStackSuccess td, .v2-notices td.messageStackSuccess { background: var(--ok-soft); border-color: #b9e2c7; color: #115a2c; }
.v2-notices img { display: none; }
.v2-alert { padding: 12px 16px; border-radius: 10px; background: var(--warn-soft); border: 1px solid #f6d6a8; color: #7a3c00; margin: 0 0 16px; }
.v2-alert.is-ok { background: var(--ok-soft); border-color: #b9e2c7; color: #115a2c; }
.v2-alert.is-info { background: var(--action-soft); border-color: #c6d9f7; color: #123f86; }

/* create account: login box + divider */
.v2-login-box { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.v2-login-box h2 { font-size: 19px; }
.v2-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.v2-or::before, .v2-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- panels / generic blocks ---------- */
.v2-panel { background: var(--paper); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.v2-panel > h2:first-child, .v2-panel > h3:first-child { margin-top: 0; }
.v2-panel + .v2-panel { margin-top: 16px; }
.v2-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v2-split > .v2-panel + .v2-panel { margin-top: 0; }
.v2-list { list-style: none; margin: 0; padding: 0; }
.v2-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.v2-list li:last-child a { border-bottom: 0; }
.v2-list a:hover { color: var(--action); text-decoration: none; }
.v2-list a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .4; flex: none; }
.v2-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.v2-empty { color: var(--muted); }
.v2-stock { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.v2-empty-state { text-align: center; padding: 48px 16px; background: var(--paper); border-radius: var(--radius-l); border: 1px dashed var(--line-strong); color: var(--muted); }
.v2-empty-state .v2-icon { width: 40px; height: 40px; color: var(--line-strong); margin-bottom: 8px; }
.v2-empty-state h2 { color: var(--ink); }
.v2-order-row, .v2-review {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.v2-review img { width: 96px; height: 96px; object-fit: contain; }
.v2-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 20px; font-weight: 700; }
@media (max-width: 760px) {
  .v2-split { grid-template-columns: 1fr; }
  .v2-panel { padding: 18px; border-radius: var(--radius); }
  .v2-order-row, .v2-review { grid-template-columns: 1fr; }
}

/* prose: CMS / product descriptions with legacy HTML */
.v2-prose { background: var(--paper); border-radius: var(--radius-l); padding: 32px; border: 1px solid var(--line); overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.v2-prose b, .v2-prose strong { color: var(--ink); }
.v2-prose img { max-width: 100% !important; height: auto !important; }
.v2-prose table { max-width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.v2-prose td, .v2-prose th { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.v2-prose iframe, .v2-prose video { max-width: 100%; }
.v2-prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.v2-prose font { font-size: inherit !important; font-family: inherit !important; }
.v2-prose ul, .v2-prose ol { padding-left: 1.3em; }
.v2-prose li { margin: 4px 0; }
@media (max-width: 640px) { .v2-prose { padding: 18px; } }

/* Legacy helper classes used inside product descriptions (from the live stylesheet.css /
   shopping_cart2.css), rebuilt responsive. */
/* "Zastosowania" box: rows of equal cells (icon / label / stars). */
.v2-prose .tabelka {
  width: 100%; max-width: 600px; height: auto; margin: 16px auto; padding: 14px 12px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px;
}
.v2-prose .tabelka .rzad { width: auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.v2-prose .tabelka .komorka {
  float: none; width: auto; min-width: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; line-height: 1.2; color: var(--ink-2);
}
.v2-prose .tabelka img { max-width: 100% !important; height: auto !important; width: auto; }
.v2-prose .tabelka img[src*="stars_"] { max-width: 90px !important; }
/* Generic float-based "div tables". */
.v2-prose .tablediv { width: 100%; overflow: hidden; display: flow-root; }
.v2-prose .rowdiv { width: 100%; display: flow-root; }
.v2-prose .cellcolumn, .v2-prose .cellcolumn_left { float: left; max-width: 100%; }
.v2-prose .cellcolumn_left { margin: 0 3px 0 5px; width: 210px; }
@media (max-width: 560px) { .v2-prose .cellcolumn, .v2-prose .cellcolumn_left { float: none; width: auto; margin: 0 0 8px; } }
/* Technical parameters text blocks. */
.v2-prose .param_tech, .v2-prose .param_tech2, .v2-prose ul.param_tech, .v2-prose td.param_tech { font-family: inherit; font-size: 15px; line-height: 1.65; margin-left: 0; margin-right: 0; }
.v2-prose .param_tech_header { font-family: inherit; font-size: 15px; font-weight: 700; margin: 16px 0 6px; }
.v2-prose .productSpecialPrice, .productSpecialPrice { color: var(--sale); font-family: inherit; }

/* brands page */
.v2-brands-tools { position: sticky; top: calc(var(--header-h) + 50px); z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 20px; padding: 12px; background: rgba(245,247,250,.96); backdrop-filter: blur(8px); border-radius: var(--radius); }
.v2-brands-tools .v2-input { max-width: 320px; }
.v2-brand-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.v2-brand-letters a { min-width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.v2-brand-letters a:hover { border-color: var(--action); color: var(--action); text-decoration: none; }
.v2-brand-group { margin: 0 0 28px; scroll-margin-top: calc(var(--header-h) + 130px); }
.v2-brand-group h2 { font-size: 22px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.v2-brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.v2-brand-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); }
.v2-brand-list a:hover { border-color: var(--action); box-shadow: var(--shadow); text-decoration: none; }
.v2-brand-logo { flex: none; width: 56px; height: 40px; display: grid; place-items: center; }
.v2-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v2-brand-logo .v2-icon { color: var(--line-strong); }
.v2-brand-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.v2-brand-count { flex: none; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .v2-brands-tools { top: calc(var(--header-h) + 60px); } .v2-brands-tools .v2-input { max-width: none; } .v2-brand-list { grid-template-columns: 1fr; } }

/* ---------- product cards ---------- */
.v2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .v2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.v2-card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease);
}
.v2-card:hover { box-shadow: var(--shadow-l); border-color: transparent; transform: translateY(-3px); }
/* Fixed square frame: every photo gets the same box whatever its proportions (object-fit keeps it undistorted). */
.v2-card-media { position: relative; display: block; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: #fff; }
@supports not (aspect-ratio: 1 / 1) { .v2-card-media { height: 0; padding-bottom: 100%; } }
.v2-card-media img { position: absolute; top: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; object-fit: contain; }
.v2-badge-sale { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; }
.v2-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 4px 14px 14px; }
.v2-card-brand { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.v2-card-title { margin: 0; font-family: var(--font); font-size: 14.5px; font-weight: 500; line-height: 1.38; letter-spacing: 0; }
.v2-card-name { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2-card-name::after { content: ""; position: absolute; inset: 0; }
.v2-card-name:hover { color: var(--action); text-decoration: none; }
.v2-card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.v2-card-price, .v2-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.v2-price-now { font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.v2-price-now.is-sale { color: var(--sale); }
.v2-price-old { color: var(--muted); font-size: 13px; }
.v2-price-ask { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .v2-card-body { padding: 2px 10px 12px; } .v2-price-now { font-size: 16px; } .v2-card-title { font-size: 13.5px; } }

/* availability dot */
.v2-stock-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.v2-stock-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.v2-stock-dot.is-in { color: var(--ok); }
.v2-stock-dot.is-order { color: var(--info); }
.v2-stock-dot.is-preorder { color: var(--warn); }
.v2-stock-dot.is-out { color: var(--danger); }

/* home: category showcase (photo + name), at most 3 rows; smaller screens scroll sideways */
.v2-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.v2-cat {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-s);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease);
}
.v2-cat:hover { text-decoration: none; color: var(--brand); border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.v2-cat-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; }
.v2-cat-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; object-fit: contain; transition: transform .3s var(--ease); }
.v2-cat:hover .v2-cat-img img { transform: scale(1.05); }
.v2-cat-img .v2-icon { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; color: var(--line-strong); }
.v2-cat-name {
  display: flex; align-items: center; justify-content: center; flex: 1; min-height: 2.9em; padding: 6px 8px 8px;
  border-top: 1px solid var(--line); background: var(--bg);
  text-align: center; font-family: var(--font-display); font-size: 13.5px; font-weight: 700; line-height: 1.25;
}
.v2-cat:hover .v2-cat-name { background: var(--brand-soft); }
@media (max-width: 1100px) {
  .v2-cats {
    grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 128px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  }
  .v2-cats > li { scroll-snap-align: start; }
}
@media (max-width: 560px) { .v2-cats { grid-auto-columns: 108px; gap: 8px; } .v2-cat-name { font-size: 12px; } }

/* sub-category chips */
.v2-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.v2-chips a, .v2-chips span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line-strong); color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.v2-chips a:hover { border-color: var(--action); color: var(--action); text-decoration: none; }
.v2-chips .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 640px) { .v2-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; } .v2-chips a, .v2-chips span { white-space: nowrap; } }

/* listing toolbar */
.v2-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.v2-toolbar-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.v2-sort, .v2-filter { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.v2-sort label, .v2-filter label { color: var(--muted); white-space: nowrap; }
.v2-sort select, .v2-filter select { min-height: 38px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background-color: var(--paper); font-size: 14px; max-width: 240px; }
@media (max-width: 640px) { .v2-toolbar { padding: 10px; } .v2-sort, .v2-filter { flex: 1 1 100%; } .v2-sort select, .v2-filter select { flex: 1; max-width: none; } }

/* category intro text */
.v2-intro { position: relative; margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.v2-intro-body { max-height: 4.8em; overflow: hidden; }
.v2-intro.is-open .v2-intro-body { max-height: none; }
.v2-intro:not(.is-open) .v2-intro-body { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.v2-intro-toggle { border: 0; background: none; color: var(--action); font-weight: 600; padding: 4px 0; }
.v2-intro img { max-width: 100%; height: auto; }
.v2-intro-full .v2-intro-body { max-height: none; -webkit-mask-image: none; mask-image: none; }

/* featured block filter (nested categories) */
.v2-filters { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; margin: 0 0 20px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.v2-filters .v2-label { display: block; margin-bottom: 6px; }
.v2-filters-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v2-filters-price .v2-label { flex-basis: 100%; margin-bottom: 0; }
.v2-filters-price input { width: 110px; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--paper); }
.v2-filters-price input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 4px var(--action-ring); }
.v2-filters-brands { border: 0; margin: 0; padding: 0; flex: 1 1 320px; min-width: 0; }
.v2-filters-brands .v2-chips { margin: 0; }
.v2-filters-actions { display: flex; gap: 8px; align-items: center; }
.v2-chip-check { position: relative; cursor: pointer; }
.v2-chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v2-chip-check span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line-strong); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.v2-chip-check:hover span { border-color: var(--action); color: var(--action); }
.v2-chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.v2-chip-check input:focus-visible + span { outline: 3px solid var(--action-ring); outline-offset: 2px; }
@media (max-width: 640px) { .v2-filters { padding: 14px; } .v2-filters-actions { flex-basis: 100%; } .v2-filters-actions .v2-btn-primary { flex: 1; } }

/* brand header */
.v2-brand-head { display: flex; align-items: center; gap: 20px; margin: 0 0 20px; }
.v2-brand-head img { max-height: 64px; width: auto; background: #fff; padding: 8px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); }

/* pager */
.v2-pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.v2-pager a, .v2-pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.v2-pager a { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.v2-pager a:hover { border-color: var(--action); color: var(--action); text-decoration: none; }
.v2-pager .is-current { background: var(--brand); color: #fff; }
.v2-pager-gap { color: var(--muted); min-width: 20px !important; }
@media (max-width: 560px) { .v2-pager-step span { display: none; } }

/* ---------- home ---------- */
.v2-home-promo { margin: 0 0 32px; }
.v2-home-promo img { border-radius: var(--radius); }
.v2-home-promo .home-promo-banner img, .v2-home-promo > p img { display: block; margin: 0 auto; }
/* Brand logos from TEXT_MAIN: the language file ships its own inline styles; these override them.
   Always one row: boxes shrink to fit on desktop, the row scrolls sideways on small screens. */
.v2-home-promo .brand-logo-container {
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;
  width: 100%; margin: 20px auto 0; padding: 0; gap: 10px;
}
.v2-home-promo .brand-logo-container a {
  flex: 1 1 0; min-width: 0; max-width: 118px; height: 58px; padding: 6px 8px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); transition: box-shadow .2s, transform .2s var(--ease);
}
.v2-home-promo .brand-logo-container a:hover { transform: translateY(-2px); box-shadow: var(--shadow); opacity: 1; }
.v2-home-promo .brand-logo-container img { max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) {
  .v2-home-promo .brand-logo-container {
    justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 8px;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; width: auto;
  }
  .v2-home-promo .brand-logo-container::-webkit-scrollbar { display: none; }
  .v2-home-promo .brand-logo-container a { flex: 0 0 96px; max-width: none; height: 52px; }
}

/* ---------- product page ---------- */
.v2-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: 40px; align-items: start; }
.v2-gallery { position: sticky; top: calc(var(--header-h) + 64px); max-width: 560px; width: 100%; justify-self: center; }
.v2-gallery-stage { position: relative; background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.v2-gallery-stage > button.v2-gallery-zoom { all: unset; cursor: zoom-in; position: absolute; inset: 0; }
.v2-gallery-stage > button.v2-gallery-zoom:focus-visible { outline: 3px solid var(--action-ring); outline-offset: -3px; }
.v2-gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 24px; }
.v2-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); }
.v2-gallery-nav:hover { background: #fff; }
.v2-gallery-nav.is-prev { left: 12px; }
.v2-gallery-nav.is-next { right: 12px; }
.v2-gallery-count { position: absolute; bottom: 12px; right: 12px; background: rgba(20,33,46,.7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.v2-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.v2-thumbs button { position: relative; aspect-ratio: 1 / 1; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0; overflow: hidden; }
.v2-thumbs button:hover { border-color: var(--line-strong); }
.v2-thumbs button.is-current { border-color: var(--action); box-shadow: 0 0 0 2px var(--action-ring); }
.v2-thumbs img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); max-width: none; object-fit: contain; }
.v2-thumbs-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 42, 80, .62); color: #fff; font-size: 18px; font-weight: 700; }

.v2-buy { display: flex; flex-direction: column; gap: 14px; }
.v2-buy-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v2-buy-brand a { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v2-buy-brand img { max-height: 36px; width: auto; }
/* Desktop: brand logos are 124x100 images with built-in margins, so show them at 2x (still below native size). */
@media (min-width: 961px) { .v2-buy-brand img { max-height: 72px; } }
.v2-buy h1 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.v2-buy-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.v2-buy-meta a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.v2-buy-meta a:hover { color: var(--action); }
.v2-buy-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.v2-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.v2-buy-price .v2-price-now { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.v2-buy-price .v2-price-old { font-size: 16px; }
.v2-buy-save { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: var(--sale-soft); color: var(--sale); font-weight: 700; font-size: 13px; }
.v2-buy-netto { color: var(--muted); font-size: 13px; margin-top: -8px; }
.v2-buy-code { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--sale-soft); border: 1px solid #f7c6cf; color: #8f1a2c; font-size: 14px; }
.v2-buy-code strong { font-size: 18px; color: var(--sale); white-space: nowrap; }
.v2-buy-row { display: flex; gap: 10px; align-items: stretch; }
.v2-buy-row .v2-btn-primary { flex: 1; }
.v2-qty-stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--paper); flex: none; }
.v2-qty-stepper button { width: 40px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.v2-qty-stepper button:hover { background: var(--bg); }
.v2-qty-stepper .v2-icon { width: 16px; height: 16px; }
/* Selector is deliberately specific: it must beat the generic ".v2-panel input[type=number]" field style (cart form is a panel). */
.v2-qty-stepper input[type="number"] {
  width: 46px; min-width: 0; min-height: 0; height: auto; padding: 0; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.v2-qty-stepper input::-webkit-outer-spin-button, .v2-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v2-qty-stepper input[type="number"]:focus { outline: none; border: 0; box-shadow: none; }
.v2-qty-stepper:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-ring); }
.v2-avail { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.v2-avail-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.v2-avail-row > span:first-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.v2-avail-row .v2-icon { width: 18px; height: 18px; color: var(--muted); }
.v2-avail-ship { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: #115a2c; font-size: 14px; }
.v2-avail-ship .v2-icon { color: var(--ok); }
.v2-pickups { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v2-pickups img { height: 26px; width: auto; }
.v2-perks { display: grid; gap: 10px; }
.v2-perk { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14px; }
.v2-perk img { max-height: 40px; width: auto; }
.v2-perk strong { display: block; }
.v2-perk .v2-icon { color: var(--action); width: 24px; height: 24px; }
.v2-perk button { all: unset; cursor: pointer; line-height: 0; }
.v2-perk-free { background: var(--ok-soft); border-color: #b9e2c7; color: #115a2c; }
.v2-perk-free .v2-icon { color: var(--ok); }

.v2-options { display: grid; gap: 12px; }

/* product details (sections with sticky local nav) */
.v2-pdp-nav { position: sticky; top: var(--header-h); z-index: 20; margin: 40px 0 0; background: rgba(244, 246, 249, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.v2-pdp-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.v2-pdp-nav a { display: block; padding: 14px 14px; color: var(--ink-2); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.v2-pdp-nav a:hover, .v2-pdp-nav a.is-current { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.v2-pdp-section { padding-top: 28px; }
.v2-pdp-section > h2 { margin-bottom: 16px; }
.v2-hints { background: var(--brand-soft); border-radius: var(--radius-l); padding: 22px 26px; margin-bottom: 16px; }
.v2-hints ul { margin: 0; padding-left: 1.2em; }
.v2-pdp-code { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* copy name / code buttons, pickup line, seasonal message */
.v2-copy { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; vertical-align: middle; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); cursor: pointer; }
.v2-copy:hover { color: var(--action); border-color: var(--action); }
.v2-copy .v2-icon { width: 16px; height: 16px; }
.v2-copy.is-small { width: 24px; height: 24px; border-radius: 6px; }
.v2-copy.is-small .v2-icon { width: 13px; height: 13px; }
.v2-avail-pickup { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; }
.v2-avail-pickup .v2-icon { color: var(--brand); flex: none; }
.v2-avail-pickup a { font-weight: 700; }
.v2-seasons { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid #f6d6a8; color: #6b3a00; text-align: center; font-weight: 600; }
.v2-seasons img { max-width: 100%; height: auto; }

/* reviews */
.v2-stars { position: relative; display: inline-block; width: 90px; height: 18px; vertical-align: -3px; background: #d5dbe3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L1.8 6.8l5-.7z'/%3E%3C/svg%3E") repeat-x left / 18px 18px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L1.8 6.8l5-.7z'/%3E%3C/svg%3E") repeat-x left / 18px 18px; }
.v2-stars-fill { position: absolute; inset: 0 auto 0 0; background: #f5a524; }
.v2-review-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.v2-review-summary strong { font-size: 28px; }
.v2-review-list { display: grid; gap: 12px; }
.v2-review-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.v2-review-item header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.v2-review-item header strong { color: var(--ink); }
.v2-review-item p { margin: 0; white-space: pre-line; }

/* mobile sticky buy bar */
/* Floating add-to-cart (PDP). Bottom bar by default; card beside the content on wide screens. */
.v2-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,33,46,.1);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .25s var(--ease); pointer-events: none;
}
.v2-buybar.is-on { transform: none; pointer-events: auto; }
.v2-buybar-in { display: flex; align-items: center; gap: 14px; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.v2-buybar-img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; flex: none; }
.v2-buybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-buybar-name { font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-buybar-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: none; }
.v2-buybar-price strong { font-size: 20px; }
.v2-buybar-price strong.is-sale { color: var(--sale); }
.v2-buybar-price s { font-size: 12px; color: var(--muted); }
.v2-buybar .v2-btn { flex: none; }
body.v2-has-buybar .v2-footer { padding-bottom: 88px; }
/* Keep the chat bubble (includes/chat-widget.php) above the bottom bar. */
body.v2-buybar-on #tpl-chat-widget { bottom: 92px !important; transition: bottom .25s; }
@media (max-width: 640px) {
  .v2-buybar-img, .v2-buybar-info .v2-stock-dot { display: none; }
  .v2-buybar-info { display: none; }
  .v2-buybar-price { align-items: flex-start; }
  .v2-buybar .v2-btn { flex: 1; }
}
/* Wide screens: there is room beside the 1280px content - float a card there, below the header (live-shop style). */
@media (min-width: 1820px) {
  .v2-buybar {
    left: calc(50% + var(--max) / 2 + 16px); right: auto; bottom: auto; top: 150px; width: 240px;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
    transform: translateY(-8px); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .v2-buybar.is-on { transform: none; opacity: 1; }
  .v2-buybar-in { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  .v2-buybar-img { width: 100%; height: 150px; }
  .v2-buybar-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .v2-buybar-price { align-items: flex-start; }
  .v2-buybar-price strong { font-size: 24px; }
  .v2-buybar .v2-btn { width: 100%; }
  body.v2-has-buybar .v2-footer { padding-bottom: 0; }
  body.v2-buybar-on #tpl-chat-widget { bottom: 20px !important; }
}

@media (max-width: 960px) {
  .v2-product { grid-template-columns: 1fr; gap: 24px; }
  .v2-gallery { position: static; }
}
@media (max-width: 560px) {
  .v2-gallery-stage { border-radius: var(--radius); }
  .v2-gallery-stage img { padding: 12px; }
  .v2-buy-price .v2-price-now { font-size: 30px; }
  .v2-buy-box { padding: 16px; }
  .v2-hints { padding: 16px 18px; }
}

/* lightbox */
.v2-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 14, 22, .92); display: grid; place-items: center; animation: v2-fade .2s; }
.v2-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 8px; }
.v2-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.v2-lightbox button:hover { background: rgba(255,255,255,.26); }
.v2-lightbox .is-close { top: 16px; right: 16px; }
.v2-lightbox .is-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.v2-lightbox .is-next { right: 16px; top: 50%; transform: translateY(-50%); }
.v2-lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cfd8e3; font-size: 14px; }

/* ---------- cart ---------- */
.v2-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.v2-cart.is-updating .v2-cart-items, .v2-cart.is-updating .v2-summary { opacity: .6; pointer-events: none; transition: opacity .15s; }
.v2-cart-items { list-style: none; margin: 0; padding: 0; }
.v2-cart-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.v2-cart-row:first-child { padding-top: 4px; }
.v2-cart-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.v2-cart-img { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.v2-cart-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v2-cart-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v2-cart-name { color: var(--ink); font-weight: 600; line-height: 1.35; }
.v2-cart-attr, .v2-cart-unit { font-size: 13px; color: var(--muted); }
.v2-cart-warn { font-size: 13px; color: var(--danger); font-weight: 600; }
.v2-cart-controls { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.v2-cart-controls .v2-qty-stepper { height: 40px; }
.v2-cart-line { text-align: right; font-weight: 700; font-size: 17px; white-space: nowrap; }
.v2-link-btn { border: 0; background: none; padding: 6px 4px; color: var(--muted); font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.v2-link-btn:hover { color: var(--danger); }
.v2-link-btn .v2-icon { width: 16px; height: 16px; }

.v2-summary { position: sticky; top: calc(var(--header-h) + 60px); }
.v2-summary .v2-panel { padding: 22px; }
.v2-summary h2 { font-size: 20px; margin-bottom: 14px; }
.v2-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.v2-sum-row > span:first-child { color: var(--ink-2); }
.v2-sum-row.is-discount { color: var(--sale); }
.v2-sum-row.is-discount > span:first-child { color: #8f1a2c; }
.v2-sum-row.is-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.v2-sum-row.is-total strong { font-size: 24px; }
.v2-sum-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.v2-summary .v2-btn-primary { margin-top: 16px; }
.v2-summary .v2-btn-quiet { margin-top: 6px; }
.v2-trust { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.v2-trust li { display: flex; gap: 8px; align-items: flex-start; }
.v2-trust .v2-icon { width: 16px; height: 16px; color: var(--ok); margin-top: 2px; }
.v2-summary-extra { margin-top: 14px; display: grid; gap: 10px; }
.v2-summary-extra img { max-width: 100%; height: auto; }

.v2-ship-country { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.v2-ship-country label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.v2-ship-country select { min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background-color: var(--paper); flex: 1; max-width: 320px; }
.v2-ship-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v2-ship-list.is-loading { opacity: .5; }
.v2-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.v2-opt:hover { border-color: var(--line-strong); }
.v2-opt input[type="radio"] { width: 18px; height: 18px; accent-color: var(--action); flex: none; margin: 0; }
.v2-opt.is-selected, .v2-opt:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.v2-opt-title { flex: 1; min-width: 0; }
.v2-opt-cost { font-weight: 700; white-space: nowrap; }
.v2-ship-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.v2-pickup-strip { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.v2-pickup-strip strong { font-size: 14px; }
.v2-pickup-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.v2-pickup-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.v2-pickup-item img { height: 24px; width: auto; }

@media (max-width: 1023px) {
  .v2-cart { grid-template-columns: 1fr; }
  .v2-summary { position: static; }
}
@media (max-width: 560px) {
  .v2-cart-row { grid-template-columns: 72px minmax(0, 1fr); }
  .v2-cart-img { width: 72px; height: 72px; }
  .v2-cart-line { grid-column: 2; text-align: left; }
}

/* ---------- checkout ---------- */
.v2-steps { display: flex; list-style: none; margin: 0 0 24px; padding: 0; gap: 8px; counter-reset: s; }
.v2-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 600; border-top: 3px solid var(--line); }
.v2-steps-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 13px; flex: none; }
.v2-steps-n .v2-icon { width: 15px; height: 15px; }
.v2-steps .is-done { color: var(--ok); border-top-color: var(--ok); }
.v2-steps .is-done .v2-steps-n { background: var(--ok); color: #fff; }
.v2-steps .is-current { color: var(--ink); border-top-color: var(--action); }
.v2-steps .is-current .v2-steps-n { background: var(--action); color: #fff; }
@media (max-width: 560px) { .v2-steps li:not(.is-current) .v2-steps-l { display: none; } .v2-steps li:not(.is-current) { flex: 0 0 auto; } }

.v2-co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.v2-co-main { display: grid; gap: 16px; min-width: 0; }
.v2-co-aside { position: sticky; top: calc(var(--header-h) + 60px); display: grid; gap: 16px; }
.v2-co .v2-panel + .v2-panel { margin-top: 0; }
.v2-co-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.v2-co-block-head h2 { font-size: 19px; margin: 0; }
.v2-co-block-head a { font-size: 14px; font-weight: 600; }
.v2-co-lines { list-style: none; margin: 0; padding: 0; }
.v2-co-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.v2-co-lines li:last-child { border-bottom: 0; }
.v2-co-lines .q { color: var(--muted); font-weight: 600; }
.v2-co-lines strong { white-space: nowrap; }
.v2-co-lines small { color: var(--muted); display: block; }
.v2-address { font-style: normal; line-height: 1.6; color: var(--ink-2); }
.v2-meta-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.v2-meta-block .v2-co-block-head { margin-bottom: 4px; }
.v2-meta-block .v2-co-block-head h3 { font-size: 14px; color: var(--muted); margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.v2-co-submit { display: grid; gap: 12px; }
.v2-co-submit .v2-hint { text-align: center; }
@media (max-width: 1023px) { .v2-co { grid-template-columns: 1fr; } .v2-co-aside { position: static; } }

/* live payment/shipping option markup (sc2-* classes kept for module JS compatibility) */
.v2-co .sc2-opt-list { display: grid; gap: 8px; }
.v2-co .sc2-opt { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.v2-co .sc2-opt:hover { border-color: var(--line-strong); }
.v2-co .sc2-opt.is-selected { border-color: var(--action); background: var(--action-soft); }
.v2-co .sc2-opt.is-disabled { opacity: .45; cursor: not-allowed; background: var(--bg); }
.v2-co .sc2-opt-main { display: flex; align-items: center; gap: 12px; }
.v2-co .sc2-opt-radio { width: 18px; height: 18px; accent-color: var(--action); margin: 0; flex: none; }
.v2-co .sc2-opt-title { flex: 1; min-width: 0; line-height: 1.4; }
.v2-co .sc2-opt-title small { color: var(--muted); }
.v2-co .sc2-opt-ship { display: flex; align-items: center; gap: 12px; }
.v2-co .sc2-opt-ship .sc2-opt-main { flex: 1; }
.v2-co .sc2-opt-cost { font-weight: 700; white-space: nowrap; }
.v2-co .sc2-opt-error { color: var(--danger); font-size: 14px; margin-top: 6px; }
/* Payment method options (PayU banks, BLIK, cards...) as a grid of logo tiles.
   The radio stays in the markup (the payment module reads it) but is visually hidden;
   the whole tile is clickable (checkout.js) and shows the selection. */
.v2-co .sc2-pay-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 14px 0 2px; }
.v2-co .sc2-pay-field {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 68px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s;
}
.v2-co .sc2-pay-field:hover { border-color: var(--line-strong); }
.v2-co .sc2-pay-field.is-selected, .v2-co .sc2-pay-field:has(input[name="pay_type"]:checked:not(:disabled)) { border-color: var(--action); box-shadow: 0 0 0 2px var(--action-ring); }
.v2-co .sc2-pay-field-title { font-size: 12px; line-height: 1.2; color: var(--ink-2); }
.v2-co .sc2-pay-field-input { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.v2-co .sc2-pay-field input[name="pay_type"][type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.v2-co .sc2-pay-field:has(input[type="radio"]:focus-visible) { outline: 3px solid var(--action-ring); outline-offset: 2px; }
/* Module markup brings inline borders/backgrounds on the logos; neutralise them. */
.v2-co .sc2-pay-field img { max-height: 40px; max-width: 100%; width: auto; height: auto; border: 0 !important; background: none !important; }
/* Fields with a select (e.g. PayU 0% instalments) need a full row. */
.v2-co .sc2-pay-field:has(select) { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; cursor: default; min-height: 0; }
.v2-co .sc2-pay-field select { min-height: 38px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 4px 36px 4px 10px; background-color: var(--paper); }
.v2-co .sc2-pay-field table { border-collapse: collapse; }
.v2-co .sc2-pay-field td { padding: 2px 4px; }
@media (max-width: 560px) { .v2-co .sc2-pay-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .v2-co .sc2-pay-field { min-height: 58px; } }
.v2-co .sc2-ship-pickup-mini { margin: -2px 0 4px 30px; border: 0; background: none; color: var(--action); font-weight: 600; font-size: 14px; padding: 4px 0; text-align: left; }
.v2-co .sc2-pickup { margin-top: 8px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg); }
.v2-co .sc2-pickup-head { font-weight: 700; margin-bottom: 4px; }
.v2-co .sc2-pickup-card { margin: 10px 0; padding: 12px 14px; background: var(--paper); border-radius: 10px; border: 1px solid var(--line); }
.v2-co .sc2-pickup-empty { color: var(--muted); }
.v2-co .sc2-pickup-text { font-weight: 600; }
.v2-co .sc2-pickup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-co .sc2-pickup-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.v2-co .sc2-pickup-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.v2-co .sc2-pickup-item img { height: 24px; width: auto; }
.v2-co .sc2-ship-hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.v2-co .sc2-stock-warn { color: var(--danger); font-weight: 600; }
.v2-totals .v2-sum-row:last-child { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.v2-totals .v2-sum-row:last-child strong { font-size: 22px; }
.v2-raty { display: grid; gap: 12px; }

/* address picker */
.v2-addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.v2-addr { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.v2-addr input { width: 18px; height: 18px; accent-color: var(--action); margin-top: 3px; flex: none; }
.v2-addr:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.v2-addr address { font-style: normal; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* success */
.v2-success { text-align: center; max-width: 680px; margin: 0 auto; }
.v2-success-icon { width: 72px; height: 72px; margin: 8px auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.v2-success-icon .v2-icon { width: 38px; height: 38px; stroke-width: 2.4; }
.v2-success .v2-actions { justify-content: center; }

/* ---------- account ---------- */
.v2-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.v2-account-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.v2-account-card:hover { border-color: var(--action); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.v2-account-card .v2-icon { width: 26px; height: 26px; color: var(--action); }
.v2-account-card strong { display: block; margin-bottom: 2px; }
.v2-account-card span { font-size: 13px; color: var(--muted); }
.v2-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v2-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.v2-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.v2-table tr:last-child td { border-bottom: 0; }
.v2-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
@media (max-width: 640px) {
  .v2-table thead { display: none; }
  .v2-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .v2-table td { border: 0; padding: 2px 0; }
}

/* ---------- footer ---------- */
.v2-footer { background: var(--brand-strong); color: #c6d3e4; font-size: 14px; margin-top: 24px; }
.v2-footer a { color: #e5edf7; }
.v2-footer a:hover { color: #fff; }
.v2-footer-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.v2-footer-trust div { display: flex; gap: 12px; align-items: center; }
.v2-footer-trust p { margin: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.v2-footer-trust strong { color: #fff; font-weight: 650; font-size: 15px; }
.v2-footer-trust span { color: #aebfd6; font-size: 13px; }
.v2-footer-trust .v2-icon { width: 28px; height: 28px; color: #8fb6ec; }
.v2-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding: 36px 0; }
.v2-footer-logo img { height: 40px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }
.v2-footer address { font-style: normal; margin-top: 14px; line-height: 1.7; }
.v2-footer-title { font-family: var(--font-display); color: #fff; font-weight: 700; margin: 0 0 12px; font-size: 15px; }
.v2-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* footer: our stores */
.v2-footer-stores { padding: 0 0 32px; }
.v2-footer-stores-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.v2-store { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.v2-store > .v2-icon { width: 28px; height: 28px; color: #8fb6ec; flex: none; }
.v2-store div { display: flex; flex-direction: column; gap: 3px; }
.v2-store strong { color: #fff; font-family: var(--font-display); font-size: 16px; }
.v2-store span { color: #c6d3e4; }
.v2-store .v2-store-hours, .v2-store a { display: inline-flex; align-items: center; gap: 6px; }
.v2-store .v2-icon { width: 15px; height: 15px; }
.v2-store a { margin-top: 4px; font-weight: 600; }
@media (max-width: 640px) { .v2-footer-stores-grid { grid-template-columns: 1fr; } }
.v2-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.v2-footer-bottom p { margin: 0; }
.v2-footer-bottom a { display: inline-flex; gap: 6px; align-items: center; }
.v2-footer-bottom .v2-icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .v2-footer-trust { grid-template-columns: 1fr; gap: 12px; }
  .v2-footer-grid { grid-template-columns: 1fr 1fr; }
  .v2-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .v2-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- toast ---------- */
.v2-toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: var(--shadow-l); font-size: 15px; transition: opacity .2s, transform .2s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.v2-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .v2-topbar, .v2-header, .v2-drawer, .v2-footer, .v2-buybar, .v2-pdp-nav, #tpl-chat-widget { display: none !important; }
  body { background: #fff; }
  .v2-panel, .v2-prose, .v2-card { box-shadow: none; border-color: #ccc; }
}
