:root {
  --bg-page: #ffffff;
  --bg-muted: #f2f6f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-soft: #ecfeff;
  --accent: #f97316;
  --accent-soft: #fff7ed;
  --hero-bg: #07111e;
  --hero-panel: #0c1b2e;
  --hero-card: #11243d;
  --hero-line: #1d3554;
  --hero-cyan: #22d3ee;
  --hero-green: #10b981;
  --hero-red: #ef4444;
  --border: #e2e8f0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 84px;
  overflow-x: hidden;
  max-width: 100%;
}

.gallery-col,
.details-col {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 76px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #091322;
}

.brand-wordmark span {
  color: var(--primary);
}

/* Main 2-Column Layout */
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.product-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 36px;
  align-items: start;
}

/* Left Sticky Gallery */
.gallery-sticky {
  position: sticky;
  top: 96px;
}

.gallery-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #091322;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  background: #091322;
}

.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-promo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #0891b2, #0e7490, #f97316);
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.promo-pill {
  background: #091322;
  color: #22d3ee;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(9, 19, 34, 0.65);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-btn {
  flex: 0 0 54px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #091322;
  cursor: pointer;
  position: relative;
}

.thumb-btn.active {
  border-color: var(--primary);
}

.thumb-btn img,
.thumb-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Column */
.product-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--text-main);
}

/* Dark Hero Promo Card */
.hero-card {
  background: var(--hero-bg);
  color: #eef4fb;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--hero-line);
  margin-bottom: 18px;
}

.hero-top-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-tech {
  background: rgba(34, 211, 238, 0.14);
  color: var(--hero-cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-hot {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.hero-trust-line {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 6px;
}

.hero-h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #ffffff;
}

.hero-h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--hero-cyan);
}

.hero-subline {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.metric-box {
  background: var(--hero-panel);
  border: 1px solid var(--hero-line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--hero-cyan);
  letter-spacing: 0.05em;
}

.metric-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.metric-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.compare-card {
  background: var(--hero-panel);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
}

.compare-card.bad {
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.compare-card.good {
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.compare-head {
  font-weight: 700;
  margin-bottom: 4px;
}

.compare-card.bad .compare-head { color: #fca5a5; }
.compare-card.good .compare-head { color: #6ee7b7; }

.compare-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.4;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.feature-item {
  background: var(--hero-card);
  border: 1px solid var(--hero-line);
  border-radius: 10px;
  padding: 12px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.feature-item p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.early-deal-box {
  background: var(--hero-panel);
  border: 1px solid var(--hero-line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.early-deal-title {
  font-size: 13px;
  font-weight: 700;
  color: #fdba74;
  margin-bottom: 10px;
}

.early-deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deal-option {
  position: relative;
  background: var(--hero-card);
  border: 1.5px solid var(--hero-line);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deal-option.active {
  border-color: var(--hero-cyan);
  background: rgba(8, 145, 178, 0.22);
}

.deal-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.deal-qty {
  font-size: 13px;
  font-weight: 700;
}

.deal-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--hero-cyan);
}

.deal-price del {
  font-size: 11px;
  color: #64748b;
  margin-left: 4px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  padding-top: 8px;
  border-top: 1px solid var(--hero-line);
}

/* Price Banner */
.price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #fff7ed 0%, #ecfeff 55%, #0891b2 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.price-now {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-right: 10px;
}

.price-was {
  font-size: 13px;
  color: var(--text-muted);
}

.discount-badge {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
}

/* Tier List */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.tier-row.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.tier-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tier-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tier-save {
  font-style: normal;
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.tier-price {
  font-weight: 800;
  color: var(--primary-dark);
}

/* Variants */
.variant-group {
  margin-bottom: 14px;
}

.variant-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.variant-label strong {
  color: var(--text-main);
}

.variant-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: var(--primary-soft);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: var(--primary-dark);
}

.variant-swatch img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.variant-pill {
  padding: 8px 18px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Express Checkout */
.express-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.express-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.lightning-icon {
  width: 24px;
  height: 24px;
}

.paypal-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #ffc439;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.paypal-word { color: #003087; }
.paypal-pal { color: #0079c1; }

.express-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Assurance Card */
.assurance-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.assurance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.assurance-icon {
  color: var(--primary);
  font-weight: 700;
}

/* Sticky Tab Navigation */
.tab-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  background: #fff;
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.tab-link {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Description & Specs */
.desc-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
}

.specs-section {
  margin-top: 28px;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.specs-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.specs-table th,
.specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.specs-table th {
  width: 34%;
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text-main);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: 36px 20px 28px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-brand-row {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 16px;
}

.footer-wordmark {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 6px;
}

.footer-company-info {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-company-info a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.payment-badges img {
  height: 26px;
  width: auto;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 2px 4px;
  object-fit: contain;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal-bar {
  margin-top: 24px;
  background: #0b1726;
  color: #cbd5e1;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
}

.footer-legal-bar a {
  color: #e2e8f0;
  transition: color 0.15s ease;
}

.footer-legal-bar a:hover {
  color: var(--hero-cyan);
  text-decoration: underline;
}

.legal-sep {
  color: #334155;
}

/* Sticky Bottom Bar */
.sticky-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  min-width: 54px;
}

.buynow-btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Floating Stack */
.floating-stack {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 44;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.support-btn {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-summary {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 600;
  margin: 0 0 14px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

.modal-form input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}

.track-result,
.policy-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

/* Responsive */
@media (min-width: 901px) {
  .details-col {
    max-height: calc(100vh - 96px - 76px);
    overflow-y: auto;
    padding-right: 10px;
  }

  .tab-nav {
    top: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 62px;
  }

  .page-shell {
    padding: 14px 14px 28px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-sticky {
    position: static;
  }

  .product-title {
    font-size: 17px;
  }

  .hero-card {
    padding: 16px;
  }

  .hero-h1 {
    font-size: 20px;
  }

  .metric-grid,
  .compare-grid,
  .feature-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    top: 62px;
  }

  .sticky-bottom-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  }

  .buynow-btn {
    height: 50px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
  }

  .floating-stack {
    right: 12px;
    bottom: 82px;
  }

  .float-btn {
    width: 38px;
    height: 38px;
  }
}
