/* Paktory Store — Editorial High-Conversion Digital Marketplace CSS (Desktop + Mobile First Polish) */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-light: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #0f172a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 44px -10px rgba(15, 23, 42, 0.16);
  --max-w: 1240px;
  --header-h: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Announcement Bar */
.announcement-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.announcement-inner strong { color: #fff; font-weight: 700; }
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  flex-shrink: 0;
}
.announcement-link {
  color: #60a5fa;
  font-weight: 700;
  white-space: nowrap;
}
.announcement-link:hover { text-decoration: underline; }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--surface-2);
  color: var(--ink);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.12s, background 0.15s;
}
.header-cta:hover { background: #1e293b; }

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer {
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer-inner {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-drawer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.mobile-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.mobile-nav-item.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.mobile-nav-item .m-count {
  font-size: 11.5px;
  opacity: 0.7;
  font-family: "JetBrains Mono", monospace;
}
.mobile-drawer-actions {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-drawer-cta { width: 100%; }
.mobile-drawer-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-light);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px 56px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.08), transparent 42%),
    radial-gradient(circle at 86% 24%, rgba(14, 165, 233, 0.07), transparent 36%),
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.78fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.eyebrow-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.text-gradient {
  background: linear-gradient(120deg, #1d4ed8 0%, #0284c7 60%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 16.5px;
  color: var(--ink-muted);
  max-width: 590px;
  margin-bottom: 26px;
  line-height: 1.62;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: #94a3b8; background: var(--surface); }
.btn-lg { padding: 13px 24px; min-height: 48px; }

/* Hero Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-item strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.stat-item span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Trust Panel */
.trust-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.trust-panel-head { margin-bottom: 16px; }
.trust-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.trust-panel h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-list {
  list-style: none;
  display: grid;
  gap: 13px;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.8px;
  color: var(--ink-muted);
}
.trust-list strong { color: var(--ink); }
.trust-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.trust-check {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.pay-badges {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pay-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

/* Catalog Section */
.catalog-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 76px;
}
.catalog-sticky-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0 -24px 20px;
  padding: 12px 24px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog-sticky-bar.stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-tab {
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}
.cat-tab:hover { border-color: #94a3b8; color: var(--ink); }
.cat-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.cat-tab .count {
  opacity: 0.72;
  font-weight: 500;
  margin-left: 4px;
  font-size: 12px;
}
.search-sort {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  color: var(--ink-light);
  pointer-events: none;
}
.search-input, .sort-select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input {
  width: 240px;
  padding: 0 12px 0 36px;
}
.sort-select {
  padding: 0 12px;
  font-weight: 600;
}
.search-input:focus, .sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cat-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-banner h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.cat-banner p { font-size: 13.5px; color: var(--ink-muted); margin-top: 2px; }
.cat-count-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Rich Architectural Card Cover (No generic empty color blocks) */
.card-cover {
  height: 152px;
  padding: 16px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
  pointer-events: none;
}
.card-cover::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -46px;
  bottom: -64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, transparent 70%);
  pointer-events: none;
}
.card-cover-top, .card-cover-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.card-cat-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 9px;
  border-radius: 7px;
}
.card-badge {
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  color: #0f172a;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.card-cover-bottom {
  align-items: flex-end;
}
.card-item-count {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-sku-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 7px;
  border-radius: 6px;
}
.card-cover-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.16;
  pointer-events: none;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.card-tagline {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  flex: 1;
  line-height: 1.5;
}
.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.format-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-muted);
  border: 1px solid #e2e8f0;
}
.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price-box {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.price-now {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-old {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: line-through;
}
.price-save {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 6px;
  border-radius: 5px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-card-detail {
  padding: 9px 12px;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-card-detail:hover { background: var(--surface); }
.btn-card-buy {
  padding: 9px 15px;
  min-height: 38px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-card-buy:hover { background: var(--accent-hover); }

/* All-Access Banner */
.bundle-strip {
  max-width: var(--max-w);
  margin: 0 auto 68px;
  padding: 0 24px;
}
.bundle-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.35), transparent 50%), #0f172a;
  color: #fff;
  border-radius: 22px;
  padding: 40px 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}
.bundle-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #60a5fa;
  margin-bottom: 10px;
}
.bundle-card h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.bundle-card p {
  color: #cbd5e1;
  max-width: 600px;
  font-size: 15px;
  margin-bottom: 16px;
}
.bundle-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.bundle-price-col {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bundle-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bundle-was {
  font-size: 18px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}
.bundle-price strong {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.bundle-sub {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* FAQ Accordion */
.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
}
.faq-inner {
  max-width: 920px;
  margin: 0 auto;
}
.faq-header { text-align: center; margin-bottom: 28px; }
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.faq-inner h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-light);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-item p {
  font-size: 13.8px;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px calc(52px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.footer-email { color: var(--accent); font-weight: 700; }
.footer-copy { font-size: 12px; color: var(--ink-light); margin-top: 6px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Modal / Mobile Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-drag-handle {
  display: none;
  justify-content: center;
  padding: 8px 0 4px;
  background: transparent;
}
.modal-drag-handle span {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #cbd5e1;
}
.modal-header {
  padding: 22px 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.modal-cat { font-size: 12px; font-weight: 700; opacity: 0.9; margin-bottom: 6px; }
.modal-title { font-size: 20px; font-weight: 800; line-height: 1.25; }
.modal-close {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-content {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-tagline { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 14px; }
.modal-subhead {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  margin-top: 16px;
}
.modal-includes {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}
.modal-includes li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
}
.modal-notice {
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 45;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Legal Pages */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-meta { color: var(--ink-light); font-size: 13.5px; margin-bottom: 32px; }
.legal-page h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--ink-muted); margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 680px) {
  :root { --header-h: 60px; }

  .announcement-inner {
    font-size: 12px;
    padding: 8px 14px;
    gap: 6px;
  }
  .header-inner { padding: 0 16px; }
  .header-cta {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  /* Hero Mobile */
  .hero { padding: 28px 16px 32px; }
  .eyebrow {
    font-size: 11.5px;
    padding: 4px 10px 4px 5px;
    margin-bottom: 14px;
  }
  .hero h1 { font-size: 30px; line-height: 1.14; margin-bottom: 12px; }
  .hero p.lead { font-size: 15px; margin-bottom: 20px; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    width: 100%;
    padding: 14px 16px;
  }
  .stat-divider { display: none; }

  .trust-panel { padding: 18px; border-radius: 14px; }
  .trust-list { gap: 10px; }
  .trust-list li { font-size: 13px; }

  /* Catalog Mobile: Horizontal Scrollable Pill Strip + Full-Width Search */
  .catalog-section { padding: 16px 16px 52px; max-width: 100%; overflow-x: clip; }
  .catalog-sticky-bar {
    margin: 0 0 16px;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 2px 0 4px;
    margin: 0;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab {
    flex-shrink: 0;
    padding: 8px 13px;
    font-size: 13px;
  }
  .search-sort {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
  }
  .search-wrap { width: 100%; }
  .search-input {
    width: 100%;
    font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  }
  .sort-select {
    font-size: 14px;
    max-width: 132px;
  }

  .cat-banner { padding: 14px 16px; margin-bottom: 16px; }
  .cat-banner h2 { font-size: 16.5px; }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-cover { height: 134px; padding: 14px 16px; }
  .card-body { padding: 16px; }
  .card-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }
  .btn-card-detail, .btn-card-buy {
    min-height: 44px;
    font-size: 14px;
  }

  /* Bundle Card Mobile */
  .bundle-strip { padding: 0 16px; margin-bottom: 48px; }
  .bundle-card { padding: 26px 20px; border-radius: 18px; gap: 20px; }
  .bundle-price-col {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .bundle-cta { width: 100%; }

  /* FAQ & Footer Mobile */
  .faq-section { padding: 44px 16px; }
  .faq-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { padding: 32px 16px calc(44px + env(safe-area-inset-bottom, 0px)); }

  /* Mobile Bottom Sheet Modal */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
  }
  .modal-drag-handle { display: flex; }
  .modal-header { padding: 16px 18px; }
  .modal-title { font-size: 18px; }
  .modal-content { padding: 16px 18px; }
  .modal-footer {
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .modal-buy-btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
}
