/* ==========================================================================
   WattSwap — store (store-integrated.html). Builds on css/ws-premium.css
   (product-card styles are shared there).
   ========================================================================== */

.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.st-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 96px);
  background: var(--bg);
}
.st-hero > .wp-wrap { position: relative; z-index: 2; }
.st-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.st-aurora .wp-fx.is-live { opacity: 0.4; }
.st-aurora::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 25% 50%, rgba(1, 3, 8, 0.55), rgba(1, 3, 8, 0) 100%),
    linear-gradient(to bottom, rgba(1, 3, 8, 0) 70%, var(--bg) 100%);
}
.st-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.st-hero-copy .display { margin: 8px 0 22px; font-size: clamp(44px, 6vw, 88px); }
.st-hero-copy .lede { max-width: 46ch; margin-bottom: 26px; }
.st-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.st-trust .wp-chip svg { width: 15px; height: 15px; flex: none; color: var(--cyan); }
.st-trust .st-chip-ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.st-trust .st-chip-ok svg { color: var(--ok); }
.st-hero-art { width: 100%; aspect-ratio: 16 / 10; }
.st-hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 102, 255, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }

/* ---------- Drive filter ---------- */
.st-drive { padding-bottom: 8px; }
.st-drive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(8px, 2vw, 24px); }
.ws-drive-filter {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: clamp(22px, 2.4vw, 32px); cursor: pointer; color: var(--t1); font: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s var(--ease), transform 0.5s var(--ease), background 0.35s;
}
.ws-drive-filter:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--card-2); }
.ws-drive-filter:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.ws-drive-filter .ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: var(--iri-soft); border: 1px solid var(--line); color: var(--cyan); }
.ws-drive-filter .ico svg { width: 21px; height: 21px; }
.ws-drive-filter b { font-size: clamp(20px, 1.9vw, 25px); font-weight: 650; letter-spacing: -0.03em; }
.ws-drive-filter .sub { color: var(--t3); font-size: 14px; }
.ws-drive-filter .pick { margin-top: 12px; padding-top: 12px; width: 100%; border-top: 1px solid var(--line); color: var(--t2); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ws-drive-filter[aria-pressed='true'] {
  border-color: transparent; background: var(--card-2);
  box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 40px -8px rgba(0, 217, 245, 0.45), var(--shadow-card);
}
.ws-drive-filter[aria-pressed='true'] .pick { color: var(--t1); }
.st-drive-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; margin-top: 20px; }
.st-count { margin: 0; color: var(--t3); font-size: 14px; font-variant-numeric: tabular-nums; }
#ws-drive-clear { background: none; border: 0; cursor: pointer; font: inherit; }

/* ---------- Product grid extras ---------- */
.st-grid-sec { padding-top: 24px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.ws-product-card.is-out { display: none; }
.ws-product-card.is-in { animation: stPop 0.6s var(--ease) both; }
@keyframes stPop { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }

.ws-product-card .ws-product-name { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.pc-note.ws-product-note { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.pc-note.ws-product-note span + span::before { content: '·'; margin-right: 8px; }
.pc-note.ws-product-note span:empty { display: none; }
.pc-aud { margin: 10px 0 0; color: var(--t1); font-size: 14.5px; }
.ws-product-includes { margin: 8px 0 0; color: var(--t3); font-size: 13px; line-height: 1.5; }
.pc-price .sale:empty::before { content: '—'; color: var(--t3); }
.pc-note .ws-product-note, .ws-product-note { color: var(--t3); }

/* Help cards */
.st-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.st-help .wp-card { display: flex; flex-direction: column; align-items: flex-start; }
.st-help .h3 { margin-bottom: 10px; }
.st-help .body-copy { margin-bottom: 24px; }
.st-help .btn { margin-top: auto; }

/* ---------- Compare ---------- */
.st-cmp thead th a { color: inherit; transition: color 0.2s; }
.st-cmp thead th a:hover { color: var(--cyan); }
.st-cmp tbody td { color: var(--t2); }
.st-cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.st-cmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.st-cmp td[data-ws-price]:empty::before { content: '—'; color: var(--t3); }
.st-cmp .st-sale td, .st-cmp .st-sale th { color: var(--t1); font-weight: 650; }
.st-fine { margin: 20px 0 0; max-width: 70ch; color: var(--t3); font-size: 14px; }

/* ---------- Join / Enjoy ---------- */
.st-moat .h2 { margin: 6px 0 14px; font-size: clamp(26px, 3vw, 40px); }

/* ---------- Toast ---------- */
#ws-toast { align-items: center; }
#ws-toast .st-toast-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .st-hero-grid { grid-template-columns: 1fr; }
  .st-hero-art { order: -1; aspect-ratio: 4 / 3; max-width: 640px; margin-inline: auto; }
  .st-drive-grid { grid-template-columns: 1fr; }
  .ws-drive-filter { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .ws-drive-filter .ico { margin-bottom: 0; }
  .ws-drive-filter .sub { flex-basis: 100%; }
  .st-help { grid-template-columns: 1fr; }
}
