/* RP and Chill storefront — static preview styles */

:root {
  --bg: #0c0a12;
  --bg-raise: #131020;
  --bg-card: #16122a;
  --border: #272040;
  --border-soft: #1e1935;
  --ink: #f2effa;
  --ink-mute: #a79fc4;
  --ink-dim: #6f6792;
  --cyan: #5ed4f8;
  --cyan-deep: #2ba8d4;
  --pink: #ff4f7a;
  --purple: #6b2bd9;
  --orange: #ff8a3d;
  --sunset: linear-gradient(135deg, #6b2bd9 0%, #e0408a 55%, #ff8a3d 100%);
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 8px 28px rgba(4, 2, 10, 0.55);
  --font: "Outfit", system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row {
  display: flex; align-items: center; gap: 18px;
  height: 58px;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img { height: 40px; width: auto; }
.logo-link:hover { text-decoration: none; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  color: var(--ink-mute); font-weight: 500; font-size: 14px;
  padding: 7px 11px; border-radius: var(--radius-sm);
}
.main-nav a:hover { color: var(--ink); background: var(--bg-raise); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--cyan); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-box { position: relative; }
.search-box input {
  width: 190px; padding: 7px 12px 7px 32px;
  background: var(--bg-raise); border: 1px solid var(--border);
  border-radius: 999px; color: var(--ink); font-size: 13px; font-family: inherit;
}
.search-box input::placeholder { color: var(--ink-dim); }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-dim); }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 290px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 13px; color: var(--ink); font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--bg-raise); text-decoration: none; }
.search-results .price { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.search-results .empty { padding: 12px; color: var(--ink-dim); font-size: 13px; }

.currency-select {
  background: var(--bg-raise); border: 1px solid var(--border); color: var(--ink-mute);
  border-radius: var(--radius-sm); padding: 7px 8px; font-size: 13px; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; transition: filter .15s, background .15s;
  min-height: 36px;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-cyan { background: var(--cyan); color: #06222e; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink-mute); }
.btn-ghost:hover { color: var(--ink); }
.btn-sunset { background: var(--sunset); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.btn-sm { padding: 5px 11px; font-size: 13px; min-height: 30px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count.hidden { display: none; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(3, 2, 8, 0.6);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 100;
  background: var(--bg-raise); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border-soft);
}
.cart-head h2 { margin: 0; font-size: 16px; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 18px; }
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.cart-item .thumb { width: 46px; height: 46px; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-item .meta { flex: 1; min-width: 0; }
.cart-item .meta .name { font-size: 13px; font-weight: 600; }
.cart-item .meta .price { font-size: 13px; color: var(--cyan); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1;
}
.qty span { font-size: 13px; min-width: 16px; text-align: center; }
.cart-empty { color: var(--ink-dim); text-align: center; padding: 40px 10px; font-size: 14px; }
.cart-foot { padding: 16px 18px; border-top: 1px solid var(--border-soft); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.cart-foot .btn { width: 100%; }
.cart-note { font-size: 11.5px; color: var(--ink-dim); text-align: center; margin: 8px 0 0; }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--ink-mute); font-size: 16px; margin: 0 0 22px; max-width: 46ch; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.video-ph {
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: linear-gradient(145deg, #1b1430 0%, #241038 50%, #2d1026 100%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-mute); font-size: 13px; position: relative; overflow: hidden;
}
.video-ph::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(0deg, rgba(107, 43, 217, .22), transparent);
}
.play-badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sunset); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(224, 64, 138, 0.5);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--bg-raise); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 14px 22px; margin: 10px 0 8px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-mute); }
.trust-item strong { color: var(--ink); font-size: 15px; display: block; line-height: 1.2; }
.trust-item .ico { color: var(--cyan); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.section-head .more { font-size: 13.5px; font-weight: 600; }

/* ---------- Product cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.p-card:hover { border-color: var(--border); transform: translateY(-2px); }
.p-card .thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--bg-raise); flex-shrink: 0; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.p-card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 4px; color: #fff; background: rgba(10, 8, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.badge.free { background: var(--cyan); color: #06222e; border-color: transparent; }
.badge.new { background: var(--pink); border-color: transparent; }
.badge.soon { background: var(--purple); border-color: transparent; }
.badge.bundle, .badge.best { background: var(--sunset); border-color: transparent; }
.p-card .body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.p-card h3 {
  margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2 * 1.3em);
}
.p-card h3 a { color: var(--ink); }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; }
.p-card .fw-row { display: flex; gap: 4px; flex-wrap: wrap; }
.fw-tag {
  font-size: 10.5px; font-weight: 600; color: var(--ink-dim);
  border: 1px solid var(--border-soft); border-radius: 4px; padding: 1.5px 6px;
}
.p-card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-card .price { font-weight: 700; font-size: 15px; color: var(--cyan); }
.p-card .price .free-txt { color: var(--cyan); }
.p-card .btn { position: relative; z-index: 2; }

.thumb-grad { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.thumb-grad span { font-size: 26px; font-weight: 800; color: rgba(255, 255, 255, 0.85); letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.g-pink { background: linear-gradient(135deg, #3c1030, #e0408a 90%); }
.g-cyan { background: linear-gradient(135deg, #0b2740, #2ba8d4 90%); }
.g-purple { background: linear-gradient(135deg, #1d1040, #6b2bd9 90%); }
.g-orange { background: linear-gradient(135deg, #3a1708, #ff8a3d 95%); }
.g-sunset { background: var(--sunset); }

/* ---------- Reviews ---------- */
.reviews-carousel { position: relative; }
.reviews-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 16px 18px;
}
.review-card .stars { color: var(--orange); font-size: 13px; letter-spacing: 2px; }
.review-card p { margin: 10px 0 12px; color: var(--ink-mute); font-size: 13.5px; }
.review-card .who { font-size: 12.5px; color: var(--ink-dim); font-weight: 600; }
.review-card .who b { color: var(--ink); font-weight: 600; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-raise); color: var(--ink-mute); cursor: pointer; font-size: 14px;
}
.carousel-nav button:hover { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item summary {
  cursor: pointer; padding: 14px 4px; font-weight: 600; font-size: 14.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 18px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 4px 14px; color: var(--ink-mute); font-size: 13.5px; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft); margin-top: 30px;
  padding: 34px 0 90px; background: var(--bg-raise);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--ink-mute); font-size: 13.5px; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand img { height: 46px; margin-bottom: 10px; }
.footer-brand p { color: var(--ink-dim); font-size: 13px; margin: 0 0 4px; max-width: 34ch; }
.footer-legal {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--ink-dim); font-size: 12px;
}

/* ---------- Products page ---------- */
.page-head { padding: 30px 0 6px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.4px; }
.page-head p { margin: 0; color: var(--ink-mute); font-size: 14.5px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0 6px; }
.chip {
  border: 1px solid var(--border); background: var(--bg-raise); color: var(--ink-mute);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--cyan); border-color: var(--cyan); color: #06222e; font-weight: 600; }
.chip.fw.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.filter-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.sort-select {
  margin-left: auto; background: var(--bg-raise); border: 1px solid var(--border);
  color: var(--ink-mute); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.results-count { color: var(--ink-dim); font-size: 13px; padding: 8px 0 14px; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; padding: 30px 0 10px; }
.gallery-main { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs .t { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-soft); cursor: pointer; opacity: .65; }
.gallery-thumbs .t.active, .gallery-thumbs .t:hover { opacity: 1; border-color: var(--cyan); }
.product-info h1 { margin: 2px 0 8px; font-size: 26px; letter-spacing: -0.4px; line-height: 1.2; }
.product-info .crumb { font-size: 12.5px; color: var(--ink-dim); }
.product-info .crumb a { color: var(--ink-dim); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.price-big { font-size: 28px; font-weight: 800; color: var(--cyan); }
.compare-at { color: var(--ink-dim); text-decoration: line-through; font-size: 15px; }
.product-info .desc { color: var(--ink-mute); font-size: 14.5px; margin: 10px 0 16px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fw-support { background: var(--bg-raise); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 12px 14px; }
.fw-support h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); }
.fw-support .fw-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fw-support .fw-tag { font-size: 12px; padding: 4px 10px; color: var(--ink-mute); border-color: var(--border); }
.fw-support .fw-tag.yes { color: var(--cyan); border-color: rgba(94, 212, 248, 0.4); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.feature-card h3 { margin: 0 0 5px; font-size: 14px; color: var(--ink); }
.feature-card p { margin: 0; font-size: 13px; color: var(--ink-mute); }

/* ---------- Bundles ---------- */
.bundle-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px;
}
.bundle-card .thumb { min-height: 220px; position: relative; overflow: hidden; }
.bundle-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.bundle-card .body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.bundle-card h2 { margin: 0; font-size: 21px; }
.bundle-card ul { margin: 0; padding-left: 18px; color: var(--ink-mute); font-size: 13.5px; display: grid; gap: 4px; }
.bundle-card .row { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(14, 11, 22, 0.97); border-top: 1px solid var(--border);
  padding: 4px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav .row { display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink-dim); font-size: 10.5px; font-weight: 600; padding: 6px 0; min-height: 48px;
}
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a[aria-current="page"], .bottom-nav a.active { color: var(--cyan); }
.bottom-nav svg { width: 20px; height: 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%) translateY(10px);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 120;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Modal (mock checkout / sign-in) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 110; background: rgba(3, 2, 8, 0.7);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-raise); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 400px; width: 100%; padding: 24px; text-align: center;
}
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { color: var(--ink-mute); font-size: 13.5px; margin: 0 0 18px; }
.modal .btn { width: 100%; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-track { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reviews-track { grid-template-columns: 1fr; }
  .hero { padding-block: 28px 20px; }
  .hero h1 { font-size: 29px; }
  .search-box input { width: 120px; }
  .currency-select, .signin-area { display: none; }
  .bottom-nav { display: block; }
  .trust-strip { gap: 12px; padding: 12px 16px; }
  .trust-item { flex-basis: calc(50% - 12px); }
  .feature-grid { grid-template-columns: 1fr; }
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-card .thumb { min-height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 24px 0; }
  .header-row { gap: 10px; }
}

/* ---------- Product page v2 (story + sticky buy rail) ---------- */
.pv2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding: 26px 0 10px; }
.pv2-main { min-width: 0; }

.pv2-hero .crumb { font-size: 12.5px; color: var(--ink-dim); }
.pv2-hero .crumb a { color: var(--ink-dim); }
.pv2-hero h1 { margin: 6px 0 6px; font-size: 30px; letter-spacing: -0.5px; line-height: 1.15; }
.pv2-hero .pitch { color: var(--ink-mute); font-size: 15.5px; margin: 0 0 16px; max-width: 58ch; }

.video-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: linear-gradient(145deg, #1b1430 0%, #241038 55%, #2d1026 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; color: var(--ink-mute); cursor: pointer; font-family: inherit; font-size: 13.5px;
}
.video-card:hover { border-color: var(--cyan); }
.video-card .play-badge { width: 40px; height: 40px; flex-shrink: 0; }
.video-card strong { display: block; color: var(--ink); font-size: 14px; }

/* Compact media strip (thumbs feed the lightbox) */
.media-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.media-strip .ms-thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border-soft); padding: 0; cursor: zoom-in; background: var(--bg-raise);
}
.media-strip .ms-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-strip .ms-thumb:hover, .media-strip .ms-thumb:focus-visible { border-color: var(--cyan); }
.media-strip .ms-thumb .ms-n {
  position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 700;
  background: rgba(10, 8, 18, 0.78); color: var(--ink-mute); border-radius: 4px; padding: 1px 5px;
}

/* Segmented control */
.seg { display: flex; gap: 4px; background: var(--bg-raise); border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px; margin: 20px 0 6px; width: max-content; max-width: 100%; overflow-x: auto; }
.seg button {
  border: 0; background: transparent; color: var(--ink-mute); font-family: inherit;
  font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--bg-card); color: var(--cyan); border: 1px solid var(--border); padding: 6px 15px; }
.tab-panel { padding-top: 16px; }
.tab-panel[hidden] { display: none; }

/* Overview checklist */
.check-list { display: grid; gap: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.check-list .row { display: flex; gap: 12px; padding: 11px 14px; background: var(--bg-card); border-bottom: 1px solid var(--border-soft); }
.check-list .row:last-child { border-bottom: 0; }
.check-list .tick { color: var(--cyan); font-weight: 800; flex-shrink: 0; }
.check-list .row b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.check-list .row span.d { color: var(--ink-mute); font-size: 13px; }

/* Guided tour */
.tour-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.tour-row:last-child { border-bottom: 0; }
.tour-row:nth-child(even) .shot { order: 2; }
.tour-txt .tour-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--sunset);
  color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.tour-txt h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.2px; }
.tour-txt .cap { color: var(--ink-dim); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.tour-txt ul { margin: 0; padding-left: 18px; color: var(--ink-mute); font-size: 13.5px; display: grid; gap: 5px; }

.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: visible; }
.shot .shot-img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border-soft); cursor: zoom-in; }
.shot .zoom-hint { position: absolute; right: 8px; bottom: 8px; font-size: 10.5px; font-weight: 700; color: var(--ink-mute); background: rgba(10,8,18,.78); border-radius: 4px; padding: 2px 7px; pointer-events: none; }

/* Watch / Explain preview clips */
.shot .shot-clip { display: none; width: 100%; border-radius: var(--radius); border: 1px solid var(--border-soft); background: #0c0a12; }
.shot.mode-watch .shot-clip { display: block; }
.shot.mode-watch .shot-img, .shot.mode-watch .zoom-hint, .shot.mode-watch .hotspot, .shot.mode-watch .hs-tip { display: none; }
.shot-mode { position: absolute; top: 8px; left: 8px; z-index: 4; display: flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); background: rgba(10,8,18,.85); }
.sm-btn { border: 0; background: transparent; color: var(--ink-mute); font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; cursor: pointer; }
.sm-btn[aria-pressed="true"] { background: var(--pink); color: #fff; }
.sm-btn:not([aria-pressed="true"]):hover { color: var(--ink); }

.hotspot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; border: 2px solid #fff; background: var(--pink);
  cursor: pointer; padding: 0; z-index: 3;
  box-shadow: 0 0 0 4px rgba(255, 79, 122, 0.3), 0 2px 8px rgba(0,0,0,.5);
  animation: hs-pulse 2.2s infinite;
}
.hotspot::after { content: "+"; color: #fff; font-weight: 800; font-size: 14px; line-height: 18px; display: block; }
.hotspot[aria-expanded="true"] { background: var(--cyan); animation: none; }
.hotspot[aria-expanded="true"]::after { content: "×"; color: #06222e; }
@keyframes hs-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 79, 122, 0.3), 0 2px 8px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 9px rgba(255, 79, 122, 0.12), 0 2px 8px rgba(0,0,0,.5); }
}
.hs-tip {
  position: absolute; z-index: 5; width: 210px;
  background: var(--bg-raise); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 11px; box-shadow: var(--shadow); font-size: 12px; color: var(--ink-mute);
}
.hs-tip b { display: block; color: var(--cyan); font-size: 12px; margin-bottom: 2px; }

/* Specs */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.spec-card h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); }
.spec-card ul { margin: 0; padding-left: 16px; color: var(--ink-mute); font-size: 13px; display: grid; gap: 4px; }
.spec-card p { margin: 0; color: var(--ink-mute); font-size: 13px; }

/* Changelog */
.cl-entry { border-left: 2px solid var(--border); padding: 2px 0 16px 16px; position: relative; }
.cl-entry::before { content: ""; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.cl-entry .cl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.cl-entry .cl-head b { font-size: 14px; color: var(--ink); }
.cl-entry .cl-head span { font-size: 12px; color: var(--ink-dim); }
.cl-entry ul { margin: 0; padding-left: 16px; color: var(--ink-mute); font-size: 13px; display: grid; gap: 3px; }

/* Sticky buy rail */
.buy-panel { position: sticky; top: 74px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.buy-panel .bp-price { font-size: 26px; font-weight: 800; color: var(--cyan); }
.buy-panel .bp-price .compare-at { font-size: 14px; margin-left: 8px; }
.buy-panel .btn { width: 100%; }
.bp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bp-meta { font-size: 12px; color: var(--ink-dim); display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.bp-meta b { color: var(--ink-mute); }
.bp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.bp-list li { font-size: 12.5px; color: var(--ink-mute); display: flex; gap: 8px; }
.bp-list li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
.bp-h { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-dim); }

/* Mobile buy bar */
.buy-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(14, 11, 22, 0.97); border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center; gap: 12px;
}
.buy-bar .bb-name { font-size: 12px; color: var(--ink-dim); line-height: 1.2; }
.buy-bar .bb-price { font-size: 17px; font-weight: 800; color: var(--cyan); }
.buy-bar .btn { margin-left: auto; flex-shrink: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(5, 3, 12, 0.92); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox .lb-img { max-width: min(1100px, 92vw); max-height: 74vh; border-radius: var(--radius); border: 1px solid var(--border); }
.lightbox .lb-cap { color: var(--ink-mute); font-size: 13.5px; margin-top: 12px; text-align: center; max-width: 70ch; }
.lightbox .lb-cap b { color: var(--ink); }
.lightbox .lb-count { color: var(--ink-dim); font-size: 12px; margin-top: 4px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-raise); color: var(--ink); font-size: 19px; cursor: pointer;
}
.lb-btn:hover { border-color: var(--cyan); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-raise); color: var(--ink); font-size: 16px; cursor: pointer; }

/* Catalog empty state */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  border: 1px dashed var(--border); border-radius: var(--radius); color: var(--ink-mute);
}
.empty-state h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.empty-state p { margin: 0; font-size: 13.5px; }

@media (max-width: 960px) {
  .pv2 { grid-template-columns: 1fr; gap: 24px; }
  .buy-panel { position: static; top: auto; }
  .buy-bar { display: flex; }
  .tour-row { grid-template-columns: 1fr; gap: 12px; }
  .tour-row:nth-child(even) .shot { order: 0; }
  .spec-grid { grid-template-columns: 1fr; }
  body[data-page="product"] { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .buy-bar { bottom: 62px; }
  .pv2-hero h1 { font-size: 24px; }
  body[data-page="product"] { padding-bottom: 128px; }
}

/* Showcase video overlay (embedded YouTube, loaded on click) */
.vid-overlay{position:fixed;inset:0;z-index:200;background:rgba(6,3,14,.86);display:flex;align-items:center;justify-content:center;padding:24px}
.vid-box{position:relative;width:min(1100px,100%);aspect-ratio:16/9;border-radius:14px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 0 1px rgba(94,212,248,.25)}
.vid-box iframe{width:100%;height:100%;border:0;display:block;background:#000}
.vid-close{position:absolute;top:8px;right:8px;z-index:1;width:36px;height:36px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:22px;cursor:pointer}
.vid-close:focus-visible{outline:2px solid #5ed4f8;outline-offset:2px}

/* Showcase video poster (thumbnail + play button) */
.video-poster{position:relative;display:block;width:100%;aspect-ratio:16/9;margin:14px 0 12px;padding:0;border:0;border-radius:14px;overflow:hidden;cursor:pointer;background:#000;box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 0 1px rgba(94,212,248,.18)}
.video-poster img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease,filter .35s ease;filter:brightness(.85)}
.video-poster:hover img,.video-poster:focus-visible img{transform:scale(1.03);filter:brightness(1)}
.video-poster:focus-visible{outline:2px solid #5ed4f8;outline-offset:3px}
.vp-play{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding-left:4px;background:linear-gradient(135deg,#ff4f7a,#6b2bd9);box-shadow:0 0 0 6px rgba(255,79,122,.18),0 8px 24px rgba(0,0,0,.5)}
.vp-label{position:absolute;left:14px;bottom:12px;padding:6px 10px;border-radius:8px;background:rgba(6,3,14,.7);color:#fff;font-size:.85rem}
@media (prefers-reduced-motion:reduce){.video-poster img{transition:none}.video-poster:hover img{transform:none}}

/* modal: space between stacked buttons */
#modal-body .btn{margin-bottom:10px}

/* ---------- Header sign-in state ---------- */
.signin-area { display: flex; align-items: center; gap: 6px; }
.signin-user {
  display: inline-flex; align-items: center; gap: 7px; max-width: 200px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-mute);
  background: var(--bg-raise); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px; min-height: 30px;
}
.signin-user .su-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; flex-shrink: 0; }
.signin-user .su-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout-btn {
  border: 0; background: transparent; color: var(--ink-dim); cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 4px; min-height: 30px;
}
.signout-btn:hover { color: var(--pink); }

/* ---------- Mobile polish (small screens) ---------- */
@media (max-width: 640px) {
  body { overflow-x: clip; }
  .signin-area { display: none; } /* header is tight at 390px; sign-in flows via add-to-cart */
  .wrap { padding: 0 14px; }
  /* Tap targets ≥44px */
  .btn, .chip, .qty button, .seg button { min-height: 44px; }
  .btn-sm { min-height: 44px; padding: 8px 14px; }
  .qty button { width: auto; min-width: 44px; padding: 0 10px; }
  .search-box input { min-height: 40px; }
  .cart-btn, .signin-area .btn { min-height: 44px; min-width: 44px; }
  .carousel-nav button, .lb-close { width: 44px; height: 44px; }
  .lb-btn { width: 44px; height: 44px; }
  .card-grid { gap: 10px; }
  .p-card .body { padding: 10px 11px 12px; gap: 6px; }
  .section-head { margin-bottom: 14px; }
  .signin-user { max-width: 130px; }
  /* Bigger sticky buy bar on product pages */
  .buy-bar { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .buy-bar .btn { min-height: 50px; padding: 12px 24px; font-size: 15px; }
  .buy-bar .bb-price { font-size: 19px; }
  .media-strip { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .footer-grid { gap: 18px; }
  .site-footer { padding: 26px 0 96px; }
}
