/* WorthIt Web Design System — 1:1 Flutter Parity (Light + Dark Mode) */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface-subbar: #F4F6F9;
  --surface-card: #F1F5F9;
  --surface-elevated: #FFFFFF;
  --surface-chip: #E2E8F0;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #0E141B;
  --text-muted: #4B5563;
  --text-subtle: #64748B;
  --blue: #0969E9;
  --blue-hover: #0757C2;
  --blue-soft: #EBF3FF;
  --blue-border: #93C5FD;
  --green: #16A34A;
  --green-solid: #008000;
  --green-soft: #DCFCE7;
  --value-accent: #0969E9;
  --value-pill-bg: #0969E9;
  --value-pill-fg: #FFFFFF;
  --scrollbar-thumb: rgba(100, 116, 139, 0.36);
  --scrollbar-thumb-hover: rgba(100, 116, 139, 0.58);
  --orange: #F18805;
  --orange-soft: #FEF3C7;
  --danger: #DC2626;
  --danger-soft: rgba(220, 38, 38, 0.10);
  --footer-bg: #0E141B;
  --footer-text: #E6EBF2;
  --footer-muted: #9BA7B8;
  --footer-link: #7DB4FF;
  --shadow-sm: 0 2px 8px rgba(14, 20, 27, 0.06);
  --shadow-md: 0 10px 28px rgba(14, 20, 27, 0.12);
  --shadow-lg: 0 18px 44px rgba(14, 20, 27, 0.18);
  --radius-card: 16px;
  --radius-ctrl: 12px;
  --radius-pill: 999px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Public Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"],
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E141B;
  --surface-subbar: #131A23;
  --surface-card: #171C24;
  --surface-elevated: #1E242E;
  --surface-chip: #252C38;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F1F5F9;
  --text-muted: #9BA7B8;
  --text-subtle: #64748B;
  --blue: #0969E9;
  --blue-hover: #1D7BF5;
  --blue-soft: rgba(9, 105, 233, 0.20);
  --blue-border: rgba(125, 180, 255, 0.45);
  --green: #16A34A;
  --green-solid: #008000;
  --green-soft: rgba(22, 163, 74, 0.20);
  --value-accent: #0969E9;
  --value-pill-bg: #0969E9;
  --value-pill-fg: #FFFFFF;
  --scrollbar-thumb: rgba(148, 163, 184, 0.28);
  --scrollbar-thumb-hover: rgba(148, 163, 184, 0.48);
  --orange: #F18805;
  --orange-soft: rgba(241, 136, 5, 0.18);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --footer-bg: #0B1016;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
*::-webkit-scrollbar-corner { background: transparent; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font-family: inherit; }
img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #0969E9;
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  padding: 10px 16px;
  border-radius: var(--radius-ctrl);
  background: #0969E9;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: top .12s ease, opacity .12s ease;
}
.skip-link:focus-visible {
  top: 12px;
  opacity: 1;
  pointer-events: auto;
  z-index: 9999;
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  text-decoration: none;
}

.w-main:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.w-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.w-main {
  flex: 1 0 auto;
  padding: 20px 0 56px;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-feature-settings: "liga" 0, "dlig" 0;
  color: var(--text);
}
.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "liga" 0, "dlig" 0;
}

/* ── Topbar & Mega Menu ──────────────────────────────────────────────── */
.w-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.w-topbar-row {
  height: 72px;
  background: var(--bg);
}
.w-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.worthit-logo {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  font-feature-settings: "liga" 0, "dlig" 0;
}
.worthit-logo:hover { text-decoration: none; opacity: 0.92; }
.worthit-logo .w-worth { color: var(--text); }
.worthit-logo .w-it { color: var(--blue); }

.topbar-search-wrap {
  flex: 1 1 auto;
  position: relative;
  max-width: 680px;
}
.topbar-search {
  height: 42px;
  display: flex;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 6px 0 14px;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.topbar-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}
.topbar-search .search-ico {
  color: var(--text-subtle);
  flex-shrink: 0;
  display: inline-flex;
}
.topbar-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.topbar-search input:focus-visible {
  outline: none;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search .search-go-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.topbar-search .search-go-btn:hover { background: var(--blue-soft); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 160;
  display: none;
}
.search-dropdown.open { display: block; }
.sd-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.sd-cat-row:hover { text-decoration: none; background: var(--blue-soft); }
.sd-cat-row .sd-cat-ico { color: var(--blue); display: inline-flex; }
.sd-cat-row .sd-cat-chev { margin-left: auto; color: var(--text-subtle); }
.sd-prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.sd-prod-row:hover { text-decoration: none; background: var(--surface-card); }
.sd-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sd-thumb img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-prod-info { flex: 1 1 auto; min-width: 0; }
.sd-prod-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-prod-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.sd-all-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--blue);
  color: #FFFFFF;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}
.sd-all-btn:hover { text-decoration: none; background: var(--blue-hover); }
.sd-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.top-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.top-act:hover { background: var(--surface-card); text-decoration: none; }
.top-act svg { width: 18px; height: 18px; flex-shrink: 0; }
.notif-badge {
  position: absolute;
  top: 2px;
  left: 20px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.top-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  white-space: nowrap;
}
.top-login-btn:hover { background: var(--blue-hover); text-decoration: none; }

/* Category Subbar */
.w-catbar {
  height: 46px;
  background: var(--surface-subbar);
  border-bottom: 1px solid var(--border);
}
.w-catbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.w-catbar-items {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
}
.w-catbar-items::-webkit-scrollbar { display: none; }
.cat-l1-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 4px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.cat-l1-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: #0969E9;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.cat-l1-btn.hover-arming::after {
  transition: transform 280ms linear;
  transform: scaleX(1);
}
.cat-l1-btn[aria-expanded="true"]::after {
  transition: none;
  transform: scaleX(1);
}
.cat-l1-btn.active,
.cat-l1-btn.hover-arming,
.cat-l1-btn[aria-expanded="true"],
.cat-l1-btn:hover {
  color: var(--blue);
}
.cat-l1-btn .l1-chev {
  display: inline-flex;
  align-items: center;
  transition: transform .18s ease;
}
.cat-l1-btn[aria-expanded="true"] .l1-chev {
  transform: rotate(180deg);
}
.cat-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.72;
  white-space: nowrap;
  user-select: none;
}
.tulossa-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-chip);
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.1;
}

.how-scores-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.how-scores-pill:hover { filter: brightness(0.97); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px 0 32px;
  display: none;
  z-index: 120;
  max-height: calc(100vh - 125px);
  overflow-y: auto;
}
.mega-menu.open { display: block; }
.mega-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 18px;
  color: var(--text);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 36px;
}
.mega-col-title {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.mega-col-title:hover { color: var(--blue); text-decoration: underline; }
.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mega-links a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 0;
}
.mega-links a:hover { color: var(--blue); text-decoration: underline; }

/* ── Seasonal Promo Banner ───────────────────────────────────────────── */
.seasonal-promo-banner {
  min-height: 124px;
  max-height: 158px;
  padding: 20px 26px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #0E141B 0%, #15253B 58%, #0A2E63 100%);
  border: 1px solid rgba(9, 105, 233, 0.30);
  box-shadow: var(--shadow-sm);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.seasonal-promo-banner.theme-christmas {
  background: linear-gradient(135deg, #0F1C2E 0%, #173452 55%, #1E4D7B 100%);
}
.seasonal-promo-banner.theme-brand {
  background: linear-gradient(135deg, #0969E9 0%, #074EB0 62%, #0E141B 100%);
}
[data-theme="dark"] .seasonal-promo-banner {
  background: linear-gradient(135deg, #151F2E 0%, #102A4E 55%, #093878 100%);
  border-color: rgba(125, 180, 255, 0.32);
}
.seasonal-promo-content {
  flex: 1 1 auto;
  min-width: 0;
}
.seasonal-promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9, 105, 233, 0.28);
  border: 1px solid rgba(125, 180, 255, 0.42);
  color: #BAE6FD;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.seasonal-promo-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.seasonal-promo-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #CBD5E1;
  max-width: 720px;
}
.seasonal-promo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.seasonal-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #0969E9;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(9, 105, 233, 0.36);
}
.seasonal-promo-cta:hover {
  background: #1D7BF5;
  text-decoration: none;
}
.seasonal-promo-sec {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.seasonal-promo-sec:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* ── Product Cards & Carousels ──────────────────────────────────────── */
.w-section { margin-bottom: 34px; }
.w-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.w-sec-head h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.w-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.w-carousel {
  position: relative;
}
.w-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.w-carousel-track::-webkit-scrollbar { display: none; }
.w-carousel-track .w-card {
  flex: 0 0 210px;
  width: 210px;
}
.w-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity .15s, transform .15s;
}
.w-carousel-btn svg { display: block; flex-shrink: 0; }
.w-carousel-btn:hover { background: var(--surface-card); }
.w-carousel-btn.prev { left: -12px; }
.w-carousel-btn.next { right: -12px; }
.w-carousel-btn.hidden { opacity: 0; pointer-events: none; }

/* Unified Product Card */
.w-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.w-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.w-card-stage {
  position: relative;
  height: 176px;
  min-height: 176px;
  max-height: 176px;
  flex: 0 0 176px;
  flex-shrink: 0;
  overflow: hidden;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.w-card-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.w-card-fav {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.w-card-fav:hover { background: #FFFFFF; }
.w-card-fav.active { color: var(--blue); }
.w-card-fav.active svg { fill: currentColor; }

.w-score-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3.5px 8.5px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.w-score-pill.value { background: #0969E9; color: #FFFFFF; }
.w-score-pill.inline { position: static; display: inline-flex; align-items: center; }

.w-card-cmp {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(14, 20, 27, 0.66);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.w-card-cmp:hover { background: rgba(14, 20, 27, 0.85); }
.w-card-cmp.active {
  background: var(--blue);
  border-color: var(--blue);
}

.w-card-body {
  padding: 9px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
}
.w-card-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 31px;
}
.w-card-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.w-card-price {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.w-card-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.w-disc-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6.5px;
  border-radius: var(--radius-pill);
  background: #0969E9;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.w-card-store {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grids & List View */
.w-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.w-grid-detailed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.w-grid-detailed .w-card-stage {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  flex: 0 0 200px;
}
.w-grid-detailed .w-card-title { font-size: 14px; }
.w-grid-detailed .w-card-price { font-size: 16.5px; }

.w-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.w-list-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 148px;
  min-height: 148px;
  max-height: 148px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text);
}
.w-list-card:hover { text-decoration: none; border-color: var(--border-strong); }
.w-list-card .w-card-stage {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  height: 148px;
  min-height: 148px;
  max-height: 148px;
  flex: 0 0 148px;
  overflow: hidden;
  padding: 12px;
  border-bottom: none;
  border-right: 1px solid var(--border);
}
.w-list-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.w-list-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.w-list-specs {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

/* ── Pills, Buttons, Breadcrumbs ─────────────────────────────────────── */
.w-back-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.w-back-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.w-back-btn svg { display: block; flex-shrink: 0; }
.w-back-btn:hover { background: var(--surface-card); text-decoration: none; }

.w-cat-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.w-cat-head-main {
  flex: 1 1 auto;
  min-width: 0;
}
.w-cat-head-main .w-crumbs { margin: 0 0 2px; }

.w-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.w-crumbs a { color: var(--text-muted); font-weight: 500; }
.w-crumbs a:hover { color: var(--blue); }

.w-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.w-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.w-pill:hover { background: var(--surface-chip); text-decoration: none; }
.w-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
}

.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-ctrl);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.w-btn:hover { text-decoration: none; }
.w-btn-primary { background: var(--blue); color: #FFFFFF; }
.w-btn-primary:hover { background: var(--blue-hover); }
.w-btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.w-btn-secondary:hover { background: var(--surface-card); }
.w-btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.w-btn-full { width: 100%; }

/* ── L3 Catalog Layout & Filters ─────────────────────────────────────── */
.w-catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.w-filter-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 146px);
  overflow-y: auto;
}
.w-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.w-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}
.w-filter-reset {
  background: transparent;
  border: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.w-filter-input {
  width: 100%;
  height: 38px;
  border-radius: var(--radius-ctrl);
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.w-filter-input:focus { border-color: var(--blue); }
.w-input-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.w-input-search-wrap .w-input-ico {
  position: absolute;
  left: 11px;
  color: var(--text-subtle);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
}
.w-input-search-wrap .w-filter-input {
  padding-left: 34px;
  margin-bottom: 0;
}

.w-facet-group {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.w-facet-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.w-facet-body { margin-top: 10px; }
.w-facet-group.collapsed .w-facet-body { display: none; }

.w-range-vals {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.w-range-field {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
}
.w-range-field:focus-within {
  border-color: #0969E9;
  box-shadow: 0 0 0 2px var(--blue-soft);
}
.w-range-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0;
}
.w-range-input:focus-visible { outline: none; }
.w-range-unit {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
}
.w-range-sep {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}
.w-dual-range {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
}
.w-dual-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-chip);
}
.w-dual-fill {
  position: absolute;
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
}
.w-dual-range input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.w-dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.w-dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.w-dual-range input[type="range"]:focus-visible {
  outline: none;
}
.w-dual-range input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #0969E9;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.w-dual-range input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid #0969E9;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.w-check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: none;
  overflow: visible;
}
.w-show-more-btn {
  margin-top: 8px;
  padding: 2px 0;
  background: transparent;
  border: none;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.w-show-more-btn:hover { text-decoration: underline; }
.w-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.w-check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}
.w-check-row .cnt {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.w-cat-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.w-cat-search-input {
  flex: 1 1 auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.w-cat-search-input input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}

.w-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.w-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w-select {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.w-icon-square {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.w-icon-square:hover { background: var(--surface-chip); }
.w-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.w-prod-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.w-view-switch {
  display: inline-flex;
  padding: 2px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 2px;
}
.w-view-btn {
  width: 30px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.w-view-btn.active {
  background: var(--blue);
  color: #FFFFFF;
}
.w-mobile-filter-btn {
  display: none;
}

/* SEO Verdict & Table (Clean Light Surface) */
.w-verdict-box {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin: 12px 0 16px;
}
.w-verdict-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.w-verdict-box p { margin: 0; font-size: 14px; color: var(--text); }

.w-surface-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
}

.w-table-wrap {
  overflow-x: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin: 14px 0 22px;
}
.w-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.w-table-wrap th,
.w-table-wrap td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.w-table-wrap th {
  background: var(--surface-card);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.w-table-wrap tr:last-child td { border-bottom: none; }

/* ── Product Detail Page (PDP) ───────────────────────────────────────── */
.pdp-top-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pdp-top-crumb a { color: var(--text-muted); }
.pdp-top-crumb a:hover { color: var(--blue); }
.pdp-id-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
}
.pdp-id-copy:hover { background: var(--surface-card); }

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
}
.pdp-left-col, .pdp-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdp-right-col > .w-accordion:last-child {
  margin-bottom: 0;
}
.pdp-gallery-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  flex: 1 1 auto;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-gallery-card img {
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.pdp-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: none;
  background: rgba(14, 20, 27, 0.56);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pdp-gal-arrow svg { display: block; flex-shrink: 0; }
.pdp-gal-arrow.prev { left: 14px; }
.pdp-gal-arrow.next { right: 14px; }
.pdp-gal-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}
.pdp-gal-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
}
.pdp-gal-dot.active {
  width: 18px;
  background: var(--blue);
}

.pdp-title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.02em;
}
.pdp-price-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pdp-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pdp-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.pdp-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pdp-action-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp-circle-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pdp-circle-btn svg { display: block; flex-shrink: 0; }
.pdp-circle-btn:hover { background: var(--surface-chip); }
.pdp-circle-btn.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.pdp-circle-btn.active .heart-svg { fill: currentColor; }

.pdp-meta-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.pdp-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pdp-meta-chip:hover { background: var(--surface-chip); }

/* WorthIt-pisteet Card */
.pdp-score-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}
.pdp-score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pdp-score-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.pdp-score-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.pdp-subscore { margin-top: 12px; }
.pdp-subscore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pdp-subscore-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.pdp-sub-pill {
  padding: 2.5px 9px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.pdp-sub-pill.value { background: #0969E9; color: #FFFFFF; }
.pdp-sub-pill.blue { background: #0969E9; color: #FFFFFF; }
.pdp-bar-track {
  position: relative;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-chip);
}
.pdp-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}
.pdp-bar-fill.value { background: #0969E9; }
.pdp-bar-fill.blue { background: #0969E9; }
.pdp-median-tick {
  position: absolute;
  top: -3px;
  width: 2.5px;
  height: 13px;
  border-radius: 2px;
  background: #0E141B;
  box-shadow: 0 0 0 1.5px #FFFFFF;
  transform: translateX(-50%);
}
[data-theme="dark"] .pdp-median-tick {
  background: #FFFFFF;
  box-shadow: 0 0 0 1.5px #0E141B;
}
.pdp-median-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Accordion Cards */
.w-accordion {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 14px;
}
.w-accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.w-accordion-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}
.w-accordion.collapsed .w-accordion-body { display: none; }
.w-accordion-head .acc-chev { transition: transform .15s; color: var(--text-muted); }
.w-accordion.collapsed .w-accordion-head .acc-chev { transform: rotate(180deg); }

.pdp-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.pdp-store-row:last-child { border-bottom: none; padding-bottom: 0; }
.pdp-store-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.pdp-stock-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.pdp-store-price-go {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-store-go-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pdp-store-go-btn svg { display: block; flex-shrink: 0; }
.pdp-store-go-btn:hover { background: var(--blue-hover); text-decoration: none; }

.pdp-highlights-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}
.pdp-highlights-list li { margin-bottom: 8px; }
.pdp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.pdp-highlights-grid li { margin-bottom: 0; }

/* Price & Score History Chart Card */
.chart-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  overflow: hidden;
  margin-top: 12px;
}
.chart-seg-btn {
  padding: 9px 12px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.chart-seg-btn.active {
  background: var(--blue);
  color: #FFFFFF;
}
.chart-range-row {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.chart-range-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chart-range-btn.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding-top: 2px;
}
.pdp-chart-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 184px;
}
.pdp-chart-yaxis {
  flex: 0 0 58px;
  width: 58px;
  position: relative;
  height: 184px;
  user-select: none;
}
.pdp-chart-ytick {
  position: absolute;
  right: 2px;
  transform: translateY(-50%);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pdp-chart-plot {
  flex: 1 1 auto;
  min-width: 0;
  height: 184px;
  position: relative;
}
.pdp-chart-plot .svg-chart {
  width: 100%;
  height: 184px;
  max-height: 184px;
  display: block;
}
.pdp-chart-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0969E9;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}
.pdp-chart-xaxis {
  margin-left: 66px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  z-index: 10;
  display: none;
  white-space: nowrap;
}

/* Specs Table & Benchmark Pills */
.spec-group-block {
  border-bottom: 1px solid var(--border);
}
.spec-group-block:last-child { border-bottom: none; }
.spec-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-chip);
  border: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.spec-group-block.collapsed .spec-rows { display: none; }
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
}
.spec-row-key {
  flex: 0 0 38%;
  color: var(--text-muted);
  font-weight: 500;
}
.spec-row-val {
  flex: 1 1 auto;
  font-weight: 700;
  color: var(--text);
}
.spec-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.spec-score-pill:hover { background: var(--blue); color: #FFFFFF; }

/* OOS Box */
.oos-box {
  background: var(--orange-soft);
  border: 2px solid var(--orange);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.oos-box h2 { margin: 0 0 8px; font-size: 17px; }

/* ── Map View (/kartta/) ─────────────────────────────────────────────── */
.map-split {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 20px;
  height: 700px;
}
.map-sidebar {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.map-sb-head {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.map-sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.map-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.map-store-list {
  flex: 1 1 42%;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
}
.map-store-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.map-store-item.active { background: var(--blue-soft); }
.map-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.map-dot.open { background: var(--blue); }
.map-dot.closed { background: var(--danger); }
.map-dot.unknown { background: var(--text-muted); }

.map-store-detail {
  flex: 1 1 58%;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-mini-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.map-mini-card {
  flex: 0 0 175px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}
.map-mini-card:hover { text-decoration: none; border-color: var(--blue); }
.map-mini-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.map-mini-thumb img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.map-canvas {
  width: 100%;
  height: 700px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1;
}

/* ── Profile & Favorites ─────────────────────────────────────────────── */
.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guest-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.theme-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  gap: 3px;
  margin-top: 12px;
}
.theme-seg-btn {
  height: 38px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.theme-seg-btn.active {
  background: var(--blue);
  color: #FFFFFF;
}
.profile-row-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.profile-row-btn:first-of-type { border-top: none; }
.profile-row-btn .chev { margin-left: auto; color: var(--text-muted); }

/* ── Modals, Top Sheet & Compare Bar ─────────────────────────────────── */
.w-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 27, 0.56);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.w-modal-backdrop.open { display: flex; }
.w-modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.w-modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-strong);
  margin: 10px auto 0;
}
.w-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.w-modal-body { padding: 18px 20px 24px; }
.w-modal-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.w-modal-icon-btn svg { display: block; flex-shrink: 0; }
.w-modal-icon-btn:hover { background: var(--surface-card); color: var(--text); }

/* Official OAuth Buttons (Google & Apple Brand Guidelines) */
.oauth-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.oauth-btn-google {
  background: #FFFFFF;
  color: #1F1F1F;
  border: 1px solid #747775;
}
.oauth-btn-google:hover { background: #F8FAFC; }
[data-theme="dark"] .oauth-btn-google {
  background: #131314;
  color: #E3E3E3;
  border: 1px solid #8E918F;
}
[data-theme="dark"] .oauth-btn-google:hover { background: #1F2022; }
.oauth-btn-apple {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}
.oauth-btn-apple:hover { background: #1A1A1A; }
[data-theme="dark"] .oauth-btn-apple {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #FFFFFF;
}
[data-theme="dark"] .oauth-btn-apple:hover { background: #F1F5F9; }

/* Spec Benchmark Modal (11th Screenshot) */
.bm-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.bm-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.bm-sec-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: var(--surface-card);
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.bm-section.collapsed .bm-sec-body { display: none; }
.bm-sec-body { padding: 13px 15px; }
.bm-scores-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 11px;
}
.bm-score-col + .bm-score-col {
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.bm-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.bm-big-p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}
.bm-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue);
  margin: 10px 0 6px;
}
.bm-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: var(--surface-card);
  margin: 8px 0;
}
.bm-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
}
.bm-mark-med {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateX(-50%);
}
.bm-mark-avg {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #FFFFFF;
  border: 1.5px solid #0E141B;
  transform: translateX(-50%);
}
.bm-legend-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}
.bm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bm-swatch-med {
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: var(--orange);
  display: inline-block;
}
.bm-swatch-avg {
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: #FFFFFF;
  border: 1.5px solid #0E141B;
  display: inline-block;
}
.bm-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Notifications Top Sheet */
.notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 27, 0.45);
  z-index: 280;
  display: none;
}
.notif-backdrop.open { display: block; }
.notif-sheet {
  position: fixed;
  top: 64px;
  right: max(24px, calc((100vw - 1400px) / 2 + 24px));
  width: min(440px, calc(100vw - 24px));
  max-height: 75vh;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 290;
}
.notif-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
.notif-sheet-body { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

/* Compare Bar */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 210;
  padding: 10px 0;
  display: none;
}
.compare-bar.open { display: block; }
.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compare-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex: 1 1 auto;
}
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  max-width: 190px;
}
.compare-chip img {
  width: 26px;
  height: 26px;
  min-width: 26px;
  flex-shrink: 0;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 5px;
  padding: 2px;
}
.compare-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-chip button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
}

/* Toast */
.w-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0E141B;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 400;
  display: none;
}
.w-toast.open { display: block; }

/* ── Dark Footer (1:1 Screenshot) ────────────────────────────────────── */
.w-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 0;
  margin-top: auto;
}
.w-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.w-footer h3 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}
.w-footer p {
  color: var(--footer-muted);
  font-size: 13.5px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.w-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.w-footer a, .w-footer-link-btn {
  color: var(--footer-link);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(125, 180, 255, 0.45);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.w-footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--footer-muted);
}
.w-footer-tulossa {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #1A2330;
  border: 1px solid #2D3A4C;
  color: var(--footer-muted);
}
.w-footer-bottom {
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid #2A3441;
  font-size: 12.5px;
  color: rgba(230, 235, 242, 0.72);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .w-catalog-layout { grid-template-columns: 1fr; }
  .w-filter-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 260;
    max-height: none;
    border-radius: 0;
  }
  .w-filter-sidebar.mobile-open { display: block; }
  .w-mobile-filter-btn { display: inline-flex; }
  .map-split { grid-template-columns: 1fr; height: auto; }
  .map-sidebar { height: 520px; }
  .map-canvas { height: 420px; }
}
@media (max-width: 820px) {
  .w-container { padding: 0 16px; }
  .w-topbar-inner { gap: 10px; }
  .top-act .act-label { display: none; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery-card { height: 300px; min-height: 280px; }
  .pdp-gallery-card img { max-height: 250px; }
  .w-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 767px) {
  .seasonal-promo-banner {
    max-height: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 14px;
  }
  .seasonal-promo-actions { flex-wrap: wrap; }
  .pdp-highlights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .w-topbar-row { height: auto; padding: 10px 0; }
  .w-topbar-inner { flex-wrap: wrap; }
  .topbar-search-wrap { order: 3; flex: 1 1 100%; max-width: none; }
  .w-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .w-grid-detailed { grid-template-columns: 1fr; }
  .w-card-stage {
    height: 148px;
    min-height: 148px;
    max-height: 148px;
    flex: 0 0 148px;
    padding: 10px;
  }
  .w-grid-detailed .w-card-stage {
    height: 168px;
    min-height: 168px;
    max-height: 168px;
    flex: 0 0 168px;
  }
  .w-list-card {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
  }
  .w-list-card .w-card-stage {
    width: 124px;
    min-width: 124px;
    max-width: 124px;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    flex: 0 0 124px;
  }
  .w-carousel-track .w-card { flex: 0 0 176px; width: 176px; }
  .w-carousel-btn { display: none; }
  .how-scores-pill .how-label { display: none; }
  .notif-sheet { top: 0; right: 0; left: 0; width: 100%; border-radius: 0 0 20px 20px; }
}
