/* MemRadar — Main Stylesheet */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.5;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-mem { color: #111827; }
.logo-radar { color: #2563eb; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
}
.nav-link:hover { color: #2563eb; }

.btn-alert {
  background: #2563eb;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-alert:hover { background: #1d4ed8; }

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto 32px;
}

.search-form {
  display: flex;
  max-width: 680px;
  margin: 0 auto 12px;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
}

.search-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  border: none;
  outline: none;
  color: #111827;
  background: #fff;
}

.search-btn {
  padding: 16px 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-btn:hover { background: #1d4ed8; }

.search-hint {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ── Market Pulse ── */
.market-pulse {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 32px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 16px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pulse-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pulse-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.pulse-change {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.pulse-up .pulse-change { color: #dc2626; }
.pulse-down .pulse-change { color: #16a34a; }
.pulse-neutral .pulse-change { color: #d97706; }

.pulse-detail {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ── Popular Products ── */
.popular-products {
  padding: 56px 0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.product-image-placeholder {
  height: 120px;
  background: #f3f4f6;
}

.product-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-brand {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-top: 6px;
}

.product-retailer {
  font-size: 0.78rem;
  color: #9ca3af;
}

.product-track-btn {
  display: block;
  margin: 0 16px 16px;
  padding: 9px;
  text-align: center;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}
.product-track-btn:hover { background: #dbeafe; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 32px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  font-size: 0.9rem;
  color: #374151;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #6b7280;
}
.footer-nav a:hover { color: #2563eb; }

.footer-legal {
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-social { display: flex; justify-content: center; }
.footer-social-link {
  color: #9ca3af;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 6px;
  transition: color 0.15s;
}
.footer-social-link:hover { color: #6b7280; }
html.dark .footer-social-link { color: #64748b; }
html.dark .footer-social-link:hover { color: #94a3b8; }

/* ── Content Pages ── */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content-page .page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.content-page .page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
}

.content-page .page-header p {
  margin-top: 8px;
  font-size: 1rem;
  color: #6b7280;
}

.content-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 36px 0 10px;
}

.content-page p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-page a {
  color: #2563eb;
}
.content-page a:hover { text-decoration: underline; }

.content-page ul {
  margin: 0 0 16px 20px;
}

.content-page ul li {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 6px;
}

.content-page .updated {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: -8px;
  margin-bottom: 0;
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #374151;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}
.theme-toggle:hover {
  color: #2563eb;
  background: #f3f4f6;
}

/* ── Transitions (applied before dark overrides) ── */
body,
.site-header,
.search-form,
.search-input,
.market-pulse,
.pulse-card,
.product-card,
.product-image-placeholder,
.product-track-btn,
.site-footer,
.content-page .page-header,
.content-page {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ── Dark Mode ── */
html.dark body {
  background: #0f1623;
  color: #f1f5f9;
}

html.dark .site-header {
  background: #0f1623;
  border-bottom-color: #2d3f55;
}

html.dark .logo-mem,
html.dark a.logo .logo-mem,
html.dark .site-header .logo-mem { color: #ffffff !important; }

html.dark .nav-link { color: #94a3b8; }
html.dark .nav-link:hover { color: #2563eb; }

html.dark .theme-toggle { color: #94a3b8; }
html.dark .theme-toggle:hover { color: #2563eb; background: #1a2332; }

html.dark .hero h1 { color: #f1f5f9; }
html.dark .hero-sub { color: #94a3b8; }
html.dark .search-hint { color: #64748b; }
html.dark .search-hint a { color: #64748b; }

html.dark .search-form {
  border-color: #2d3f55;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
html.dark .search-input {
  background: #1a2332;
  color: #f1f5f9;
}
html.dark .search-input::placeholder { color: #64748b; }

html.dark .market-pulse {
  background: #141e2d;
  border-top-color: #2d3f55;
  border-bottom-color: #2d3f55;
}
html.dark .section-label { color: #64748b; }
html.dark .pulse-card {
  background: #1a2332;
  border-color: #2d3f55;
}
html.dark .pulse-category { color: #94a3b8; }
html.dark .pulse-detail { color: #64748b; }

html.dark .section-title { color: #f1f5f9; }
html.dark .product-card { border-color: #2d3f55; }
html.dark .product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
html.dark .product-image-placeholder { background: #141e2d; }
html.dark .product-brand { color: #64748b; }
html.dark .product-name { color: #f1f5f9; }
html.dark .product-price { color: #f1f5f9; }
html.dark .product-retailer { color: #64748b; }
html.dark .product-track-btn {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
}
html.dark .product-track-btn:hover { background: rgba(37, 99, 235, 0.25); }

html.dark .site-footer { border-top-color: #2d3f55; }
html.dark .footer-brand { color: #94a3b8; }
html.dark .footer-nav a { color: #64748b; }
html.dark .footer-nav a:hover { color: #2563eb; }
html.dark .footer-legal { color: #64748b; }

html.dark .content-page .page-header { border-bottom-color: #2d3f55; }
html.dark .content-page .page-header h1 { color: #f1f5f9; }
html.dark .content-page .page-header p { color: #94a3b8; }
html.dark .content-page h2 { color: #f1f5f9; }
html.dark .content-page p { color: #94a3b8; }
html.dark .content-page ul li { color: #94a3b8; }
html.dark .content-page .updated { color: #64748b; }
html.dark .content-page a { color: #93c5fd; }

/* ── Alert Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-card {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}
.modal-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: background 0.2s ease;
}
.modal-dot.active { background: #2563eb; }
.modal-step-label {
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
}
.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.modal-close-btn:hover { color: #374151; background: #f3f4f6; }
.modal-body { padding: 24px; }
.modal-step { display: none; }
.modal-step.active {
  display: block;
  animation: modalStepIn 0.2s ease;
}
@keyframes modalStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.modal-subheading {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 20px;
}
.modal-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-search-wrap .modal-btn-primary { width: 100%; }
.modal-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s;
  font-family: inherit;
}
.modal-input:focus { border-color: #2563eb; }
.modal-btn-primary {
  padding: 12px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.modal-btn-primary:hover { background: #1d4ed8; }
.modal-btn-secondary {
  padding: 12px 20px;
  background: transparent;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.modal-btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }
.modal-btn-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
  font-family: inherit;
}
.modal-btn-back:hover { color: #374151; }
.modal-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-result-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.modal-result-card:hover { border-color: #2563eb; background: #f8fbff; }
.modal-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}
.modal-badge--ram { background: #eff6ff; color: #2563eb; }
.modal-badge--ssd { background: #f0fdf4; color: #16a34a; }
.modal-result-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.modal-result-price { font-size: 0.85rem; color: #6b7280; }
.modal-chevron { color: #9ca3af; flex-shrink: 0; }
.modal-selected-product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 20px;
}
.modal-selected-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.modal-field { margin-bottom: 16px; }
.modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}
.modal-price-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s;
}
.modal-price-wrap:focus-within { border-color: #2563eb; }
.modal-price-symbol {
  padding: 12px 12px 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-right: 1.5px solid #e5e7eb;
  user-select: none;
}
.modal-price-input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  outline: none;
  padding: 12px 16px;
}
.modal-price-input::-webkit-outer-spin-button,
.modal-price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.modal-price-input[type=number] { -moz-appearance: textfield; }
.modal-field-error {
  display: block;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 5px;
  min-height: 18px;
}
.modal-field-hint {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 5px;
}
.modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.modal-success { text-align: center; padding: 8px 0 8px; }
.modal-success-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.modal-success-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  margin: 12px 0 8px;
}
.modal-success-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 4px;
}
.modal-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.modal-success-actions .modal-btn-primary,
.modal-success-actions .modal-btn-secondary { width: 100%; text-align: center; }

/* Modal dark mode */
html.dark .modal-overlay { background: rgba(0, 0, 0, 0.75); }
html.dark .modal-card { background: #1a2332; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
html.dark .modal-close-btn { color: #64748b; }
html.dark .modal-close-btn:hover { color: #f1f5f9; background: #0f1623; }
html.dark .modal-dot { background: #2d3f55; }
html.dark .modal-dot.active { background: #2563eb; }
html.dark .modal-step-label { color: #64748b; }
html.dark .modal-heading { color: #f1f5f9; }
html.dark .modal-subheading { color: #64748b; }
html.dark .modal-input { background: #0f1623; border-color: #2d3f55; color: #f1f5f9; }
html.dark .modal-input::placeholder { color: #4b5563; }
html.dark .modal-input:focus { border-color: #2563eb; }
html.dark .modal-result-card { background: #0f1623; border-color: #2d3f55; }
html.dark .modal-result-card:hover { border-color: #2563eb; background: #111e30; }
html.dark .modal-result-name { color: #f1f5f9; }
html.dark .modal-result-price { color: #64748b; }
html.dark .modal-badge--ram { background: rgba(37,99,235,0.15); color: #93c5fd; }
html.dark .modal-badge--ssd { background: rgba(22,163,74,0.15); color: #86efac; }
html.dark .modal-selected-product { background: #0f1623; }
html.dark .modal-selected-name { color: #f1f5f9; }
html.dark .modal-label { color: #94a3b8; }
html.dark .modal-price-wrap { background: #0f1623; border-color: #2d3f55; }
html.dark .modal-price-wrap:focus-within { border-color: #2563eb; }
html.dark .modal-price-symbol { background: #141e2d; border-right-color: #2d3f55; color: #64748b; }
html.dark .modal-price-input { background: #0f1623; color: #f1f5f9; }
html.dark .modal-footer-row { border-top-color: #2d3f55; }
html.dark .modal-success-actions { border-top-color: #2d3f55; }
html.dark .modal-btn-back { color: #64748b; }
html.dark .modal-btn-back:hover { color: #94a3b8; }
html.dark .modal-btn-secondary { color: #94a3b8; border-color: #2d3f55; }
html.dark .modal-btn-secondary:hover { background: #141e2d; border-color: #374151; }
html.dark .modal-success-icon { background: rgba(37,99,235,0.15); }
html.dark .modal-success-text { color: #94a3b8; }
html.dark .modal-success-hint { color: #64748b; }
html.dark .modal-field-hint { color: #64748b; }

/* ── Listing Pages (RAM / SSD) ── */
.listing-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid #e5e7eb;
}
.listing-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
  margin-bottom: 8px;
}
.listing-hero p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 20px;
  max-width: 500px;
}
.filter-bar-wrap {
  position: sticky;
  top: 65px;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.filter-bar { padding: 0; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 0;
}
.filter-row + .filter-row {
  border-top: 1px solid #e5e7eb;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-pill {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.filter-pill:hover { border-color: #2563eb; color: #2563eb; }
.filter-pill.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.filter-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.filter-select {
  padding: 5px 28px 5px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.filter-select:focus { outline: none; border-color: #2563eb; }
.listing-section { padding: 40px 0 64px; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Empty state */
.listing-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}
.radar-pulse {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
}
.radar-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #2563eb;
  opacity: 0;
  animation: radarRing 2.4s ease-out infinite;
}
.radar-pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.radar-pulse-ring:nth-child(3) { animation-delay: 1.6s; }
.radar-pulse-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-pulse-dot::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
}
@keyframes radarRing {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.listing-empty h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}
.listing-empty p {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

/* Product card (listing) */
.listing-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.15s, transform 0.15s;
}
.listing-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.listing-card-img {
  height: 140px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.listing-card-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.listing-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}
.listing-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.listing-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
}
.listing-card-was {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.listing-card-change {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.listing-card-change--down { background: #f0fdf4; color: #16a34a; }
.listing-card-change--up   { background: #fef2f2; color: #dc2626; }
.listing-card-sparkline {
  height: 36px;
  background: #f9fafb;
  border-radius: 4px;
  margin-top: 4px;
}
.listing-card-retailer {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}
.listing-card-actions {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
}
.listing-card-deal-btn {
  flex: 1;
  padding: 9px;
  text-align: center;
  background: #2563eb;
  color: #fff;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.listing-card-deal-btn:hover { background: #1d4ed8; }
.listing-card-alert-btn {
  padding: 9px 12px;
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.listing-card-alert-btn:hover { background: #eff6ff; }

/* Listing about / SEO text */
.listing-about {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 48px 0;
}
.listing-about-inner { max-width: 720px; }
.listing-about h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}
.listing-about p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 16px;
}
.listing-about p:last-child { margin-bottom: 0; }
.listing-about a { color: #2563eb; }
.listing-about a:hover { text-decoration: underline; }
html.dark .listing-about { background: #141e2d; border-top-color: #2d3f55; }
html.dark .listing-about h2 { color: #94a3b8; }
html.dark .listing-about p { color: #64748b; }
html.dark .listing-about a { color: #93c5fd; }

/* Dark mode — listing pages */
html.dark .listing-hero { border-bottom-color: #2d3f55; }
html.dark .listing-hero h1 { color: #f1f5f9; }
html.dark .listing-hero p { color: #64748b; }
html.dark .filter-bar-wrap { background: #0f1623; border-bottom-color: #2d3f55; }
html.dark .filter-row + .filter-row { border-top-color: #2d3f55; }
html.dark .filter-pill { background: #1a2332; border-color: #2d3f55; color: #94a3b8; }
html.dark .filter-pill:hover { border-color: #2563eb; color: #93c5fd; }
html.dark .filter-pill.active { background: #2563eb; border-color: #2563eb; color: #fff; }
html.dark .filter-divider { background: #2d3f55; }
html.dark .filter-select {
  background-color: #1a2332;
  border-color: #2d3f55;
  color: #94a3b8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html.dark .filter-label { color: #64748b; }
html.dark .listing-empty h2 { color: #f1f5f9; }
html.dark .listing-empty p { color: #64748b; }
html.dark .listing-card { background: #1a2332; border-color: #2d3f55; }
html.dark .listing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
html.dark .listing-card-img { background: #141e2d; }
html.dark .listing-card-name { color: #f1f5f9; }
html.dark .listing-card-brand { color: #64748b; }
html.dark .listing-card-price { color: #f1f5f9; }
html.dark .listing-card-sparkline { background: #141e2d; }
html.dark .listing-card-retailer { color: #64748b; }
html.dark .listing-card-alert-btn { color: #93c5fd; border-color: #2563eb; }
html.dark .listing-card-alert-btn:hover { background: rgba(37,99,235,0.15); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  nav .nav-link { display: none; }
  .filter-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-row + .filter-row { padding-top: 12px; }
  .filter-group { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { flex-direction: column; border-radius: 10px; }
  .search-btn { border-radius: 0 0 8px 8px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-footer-row { flex-wrap: wrap; gap: 8px; }
  .modal-footer-row .modal-btn-primary { flex: 1; min-width: 120px; }
  .listing-hero { padding: 32px 0 28px; }
  .listing-hero h1 { font-size: 1.5rem; }
  .filter-bar-wrap { top: 57px; }
  .listing-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   Product Detail Page (PDP)
   ══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.pdp-breadcrumb {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}
.pdp-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 0.82rem;
  color: #9ca3af;
}
.pdp-breadcrumb-list a { color: #6b7280; }
.pdp-breadcrumb-list a:hover { color: #2563eb; text-decoration: underline; }
.pdp-breadcrumb-list [aria-current="page"] { color: #374151; font-weight: 500; }

/* ── Product Header ── */
.pdp-header-section {
  padding: 32px 0 36px;
  border-bottom: 1px solid #e5e7eb;
}
.pdp-header-inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Image Carousel ── */
.pdp-carousel { display: flex; flex-direction: column; gap: 12px; }
.pdp-carousel-main-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp-carousel-main {
  flex: 1;
  aspect-ratio: 1;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-carousel-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pdp-carousel-img-icon { color: #d1d5db; }
.pdp-carousel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pdp-carousel-arrow:hover { border-color: #2563eb; color: #2563eb; }
.pdp-carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 44px; /* align with main image, accounting for arrow width */
}
.pdp-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.pdp-thumb.active { border-color: #2563eb; }
.pdp-thumb:hover { border-color: #93c5fd; }
.pdp-thumb-img {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
}

/* ── Product Info Column ── */
.pdp-info-col { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }

.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.pdp-badge--brand { background: #f3f4f6; color: #374151; }
.pdp-badge--cat   { background: #eff6ff; color: #2563eb; }

.pdp-product-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #111827;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdp-stars {
  position: relative;
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
}
.pdp-stars-bg { color: #d1d5db; letter-spacing: 2px; }
.pdp-stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fbbf24;
  letter-spacing: 2px;
}
.pdp-rating-text { font-size: 0.88rem; color: #6b7280; }
.pdp-rating-link { color: #2563eb; }
.pdp-rating-link:hover { text-decoration: underline; }

.pdp-spec-summary {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Share Buttons ── */
.pdp-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.pdp-share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.pdp-share-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
  line-height: 1;
}
.pdp-share-btn:hover {
  color: #374151;
  border-color: #d1d5db;
  background: #f9fafb;
}

/* ── Stats Region ── */
.pdp-stats-region {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 28px 0;
}
.pdp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.pdp-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pdp-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pdp-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
  line-height: 1.15;
}
.pdp-stat-note {
  font-size: 0.75rem;
  color: #9ca3af;
}
.pdp-stat--low { border-left: 3px solid #16a34a; }
.pdp-stat--low .pdp-stat-value { color: #16a34a; }
.pdp-stat--high { border-left: 3px solid #dc2626; }
.pdp-stat--high .pdp-stat-value { color: #dc2626; }

/* ── Value Metric ── */
.pdp-value-metric {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}
.pdp-value-per-gb { color: #374151; }
.pdp-value-avg { color: #9ca3af; }

/* ── Buy Indicator ── */
.pdp-buy-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.pdp-buy-indicator--good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.pdp-buy-indicator--caution {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.pdp-buy-indicator-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdp-buy-indicator--good .pdp-buy-indicator-icon {
  background: #dcfce7;
  color: #16a34a;
}
.pdp-buy-indicator--caution .pdp-buy-indicator-icon {
  background: #fef9c3;
  color: #d97706;
}
.pdp-buy-indicator-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdp-buy-indicator-body strong { font-weight: 700; }
.pdp-buy-indicator-body span { opacity: 0.85; }

/* ── Sections ── */
.pdp-section {
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}
.pdp-section-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

/* ── Chart ── */
.pdp-section--chart { background: #fff; }
.pdp-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.pdp-chart-header .pdp-section-heading { margin-bottom: 0; }
.pdp-range-btns {
  display: flex;
  gap: 4px;
}
.pdp-range-btn {
  padding: 5px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
}
.pdp-range-btn:hover { border-color: #2563eb; color: #2563eb; }
.pdp-range-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.pdp-chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 14px;
}
.pdp-chart-disclaimer {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* ── Retailer Table ── */
.pdp-retailers-wrap { overflow-x: auto; margin-bottom: 12px; }
.pdp-retailers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.pdp-retailers-table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 0 16px 10px;
  border-bottom: 1px solid #e5e7eb;
}
.pdp-retailers-table thead th:last-child { text-align: right; }
.pdp-retailers-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f3f4f6;
}
.pdp-retailers-table tbody td {
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #374151;
  vertical-align: middle;
}
.pdp-retailer-name { font-weight: 700; color: #111827; }
.pdp-retailer-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.pdp-stock {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.pdp-stock--in  { background: #f0fdf4; color: #16a34a; }
.pdp-stock--out { background: #fef2f2; color: #dc2626; }
.pdp-buy-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  float: right;
}
.pdp-buy-btn:hover { background: #1d4ed8; }
.pdp-retailers-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.78rem;
  color: #9ca3af;
}
.pdp-retailers-meta a { color: #6b7280; }
.pdp-retailers-meta a:hover { color: #2563eb; text-decoration: underline; }
.pdp-retailers-updated { font-weight: 500; }

/* ── Alert Section ── */
.pdp-alert-section {
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}
.pdp-alert-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.pdp-alert-card-left h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.pdp-alert-card-left p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}
.pdp-alert-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  background: #dbeafe;
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.pdp-alert-fields {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.pdp-alert-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pdp-alert-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}
.pdp-alert-price-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s;
  height: 42px;
}
.pdp-alert-price-wrap:focus-within { border-color: #2563eb; }
.pdp-alert-currency {
  padding: 0 10px 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  background: #f0f9ff;
  border-right: 1.5px solid #bfdbfe;
  height: 100%;
  display: flex;
  align-items: center;
  user-select: none;
}
.pdp-alert-price-wrap input {
  border: none;
  outline: none;
  flex: 1;
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  background: transparent;
  width: 90px;
  font-family: inherit;
}
.pdp-alert-price-wrap input::-webkit-outer-spin-button,
.pdp-alert-price-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-alert-price-wrap input[type=number] { -moz-appearance: textfield; }
.pdp-alert-field--email input {
  width: 100%;
  padding: 0 14px;
  height: 42px;
  font-size: 0.92rem;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s;
  font-family: inherit;
}
.pdp-alert-field--email input:focus { border-color: #2563eb; }
.pdp-alert-submit-btn {
  height: 42px;
  padding: 0 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: inherit;
  align-self: end;
}
.pdp-alert-submit-btn:hover { background: #1d4ed8; }
.pdp-alert-disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}
.pdp-alert-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 16px 0;
}
.pdp-alert-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-alert-success p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

/* ── Specifications ── */
.pdp-specs-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.pdp-spec-row {
  display: contents;
}
.pdp-spec-row dt,
.pdp-spec-row dd {
  padding: 12px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}
.pdp-spec-row:last-child dt,
.pdp-spec-row:last-child dd { border-bottom: none; }
.pdp-spec-row dt {
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.pdp-spec-row dd { color: #111827; }

/* ── Related Products ── */
.pdp-related-section {
  padding: 40px 0 60px;
}
.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pdp-related-per-gb {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   PDP Dark Mode
   ══════════════════════════════════════════════════════════════ */
html.dark .pdp-breadcrumb { border-bottom-color: #2d3f55; }
html.dark .pdp-breadcrumb-list { color: #64748b; }
html.dark .pdp-breadcrumb-list a { color: #64748b; }
html.dark .pdp-breadcrumb-list [aria-current="page"] { color: #94a3b8; }

html.dark .pdp-header-section { border-bottom-color: #2d3f55; }
html.dark .pdp-carousel-main {
  background: #141e2d;
  border-color: #2d3f55;
}
html.dark .pdp-carousel-img-icon { color: #2d3f55; }
html.dark .pdp-carousel-arrow { background: #1a2332; border-color: #2d3f55; color: #94a3b8; }
html.dark .pdp-carousel-arrow:hover { border-color: #2563eb; color: #93c5fd; }
html.dark .pdp-thumb { border-color: #2d3f55; }
html.dark .pdp-thumb.active { border-color: #2563eb; }
html.dark .pdp-thumb-img { background: #141e2d; }
html.dark .pdp-badge--brand { background: #1a2332; color: #94a3b8; }
html.dark .pdp-badge--cat  { background: rgba(37,99,235,0.15); color: #93c5fd; }
html.dark .pdp-product-title { color: #f1f5f9; }
html.dark .pdp-rating-text { color: #64748b; }
html.dark .pdp-stars-bg { color: #2d3f55; }
html.dark .pdp-spec-summary { color: #64748b; }
html.dark .pdp-share-btn { border-color: #2d3f55; color: #64748b; }
html.dark .pdp-share-btn:hover { color: #94a3b8; border-color: #374151; background: #1a2332; }

html.dark .pdp-stats-region { background: #141e2d; border-bottom-color: #2d3f55; }
html.dark .pdp-stat { background: #1a2332; border-color: #2d3f55; }
html.dark .pdp-stat-label { color: #64748b; }
html.dark .pdp-stat-value { color: #f1f5f9; }
html.dark .pdp-stat--low .pdp-stat-value { color: #4ade80; }
html.dark .pdp-stat--high .pdp-stat-value { color: #f87171; }
html.dark .pdp-stat-note { color: #64748b; }
html.dark .pdp-value-metric { color: #64748b; }
html.dark .pdp-value-per-gb { color: #94a3b8; }
html.dark .pdp-buy-indicator--good {
  background: rgba(22,163,74,0.1);
  border-color: rgba(22,163,74,0.25);
  color: #4ade80;
}
html.dark .pdp-buy-indicator--good .pdp-buy-indicator-icon { background: rgba(22,163,74,0.15); color: #4ade80; }
html.dark .pdp-buy-indicator--caution {
  background: rgba(217,119,6,0.1);
  border-color: rgba(217,119,6,0.25);
  color: #fbbf24;
}

html.dark .pdp-section { border-bottom-color: #2d3f55; }
html.dark .pdp-section--chart { background: #0f1623; }
html.dark .pdp-section-heading { color: #f1f5f9; }
html.dark .pdp-range-btn { border-color: #2d3f55; color: #94a3b8; background: transparent; }
html.dark .pdp-range-btn:hover { border-color: #2563eb; color: #93c5fd; }
html.dark .pdp-range-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
html.dark .pdp-chart-disclaimer { color: #64748b; }

html.dark .pdp-retailers-table thead th { color: #64748b; border-bottom-color: #2d3f55; }
html.dark .pdp-retailers-table tbody tr:not(:last-child) td { border-bottom-color: #1a2332; }
html.dark .pdp-retailers-table tbody td { color: #94a3b8; }
html.dark .pdp-retailer-name { color: #f1f5f9; }
html.dark .pdp-retailer-price { color: #f1f5f9; }
html.dark .pdp-retailers-meta { color: #64748b; }
html.dark .pdp-retailers-meta a { color: #64748b; }
html.dark .pdp-retailers-meta a:hover { color: #93c5fd; }

html.dark .pdp-alert-section { border-bottom-color: #2d3f55; }
html.dark .pdp-alert-card {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.2);
}
html.dark .pdp-alert-card-left h2 { color: #f1f5f9; }
html.dark .pdp-alert-card-left p { color: #64748b; }
html.dark .pdp-alert-product-tag { background: rgba(37,99,235,0.15); color: #93c5fd; }
html.dark .pdp-alert-field label { color: #94a3b8; }
html.dark .pdp-alert-price-wrap { background: #0f1623; border-color: #2d3f55; }
html.dark .pdp-alert-price-wrap:focus-within { border-color: #2563eb; }
html.dark .pdp-alert-currency { background: #141e2d; border-right-color: #2d3f55; color: #64748b; }
html.dark .pdp-alert-price-wrap input { color: #f1f5f9; }
html.dark .pdp-alert-field--email input { background: #0f1623; border-color: #2d3f55; color: #f1f5f9; }
html.dark .pdp-alert-field--email input:focus { border-color: #2563eb; }
html.dark .pdp-alert-field--email input::placeholder { color: #4b5563; }
html.dark .pdp-alert-disclaimer { color: #64748b; }
html.dark .pdp-alert-success-icon { background: rgba(22,163,74,0.15); color: #4ade80; }
html.dark .pdp-alert-success p { color: #94a3b8; }

html.dark .pdp-specs-dl { border-color: #2d3f55; }
html.dark .pdp-spec-row dt { background: #141e2d; color: #64748b; border-right-color: #2d3f55; border-bottom-color: #2d3f55; }
html.dark .pdp-spec-row dd { color: #f1f5f9; border-bottom-color: #2d3f55; }

html.dark .pdp-related-per-gb { color: #64748b; }

/* ══════════════════════════════════════════════════════════════
   PDP Responsive
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pdp-header-inner { grid-template-columns: 360px 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .pdp-header-inner { grid-template-columns: 1fr; gap: 28px; }
  .pdp-carousel-main { max-height: 380px; }
  .pdp-product-title { font-size: 1.4rem; }
  .pdp-alert-card { grid-template-columns: 1fr; gap: 24px; }
  .pdp-related-grid { grid-template-columns: repeat(3, 260px); overflow-x: auto; padding-bottom: 8px; }
}

@media (max-width: 768px) {
  .pdp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-alert-fields { grid-template-columns: 1fr; }
  .pdp-alert-submit-btn { width: 100%; }
  .pdp-specs-dl { grid-template-columns: 1fr; }
  .pdp-spec-row dt,
  .pdp-spec-row dd { border-right: none; }
  .pdp-spec-row dt { border-bottom: none; padding-bottom: 4px; }
}

@media (max-width: 480px) {
  .pdp-breadcrumb-list { font-size: 0.75rem; }
  .pdp-product-title { font-size: 1.25rem; }
  .pdp-header-section { padding: 20px 0 24px; }
  .pdp-stats-grid { gap: 10px; }
  .pdp-stat-value { font-size: 1.3rem; }
  .pdp-chart-container { height: 220px; }
  .pdp-range-btn { padding: 4px 9px; font-size: 0.75rem; }
  .pdp-alert-card { padding: 20px; }
  .pdp-section { padding: 28px 0; }
  .pdp-related-section { padding: 28px 0 44px; }
}

/* ══════════════════════════════════════════════════════════════
   Coming Soon Banner
   ══════════════════════════════════════════════════════════════ */
.coming-soon-banner {
  background: rgba(37, 99, 235, 0.08);
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  padding: 14px 0;
}
.coming-soon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.coming-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  position: relative;
}
.coming-soon-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  opacity: 0;
  animation: cs-pulse 1.8s ease-out infinite;
}
@keyframes cs-pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.coming-soon-text {
  font-size: 0.9rem;
  color: #1e40af;
  line-height: 1.4;
  text-align: center;
}
.coming-soon-text strong { font-weight: 700; }

html.dark .coming-soon-banner {
  background: rgba(37, 99, 235, 0.14);
  border-top-color: rgba(37, 99, 235, 0.28);
  border-bottom-color: rgba(37, 99, 235, 0.28);
}
html.dark .coming-soon-text  { color: #93c5fd; }
html.dark .coming-soon-dot   { background: #3b82f6; }
html.dark .coming-soon-dot::after { border-color: #3b82f6; }

@media (max-width: 600px) {
  .coming-soon-text { font-size: 0.85rem; }
}

/* ── Market Pulse — last updated ── */
.pulse-updated {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 14px;
  text-align: right;
}
html.dark .pulse-updated { color: #64748b; }

/* ══════════════════════════════════════════════════════════════
   FAQ Page
   ══════════════════════════════════════════════════════════════ */
.faq-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid #e5e7eb;
}
.faq-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}
.faq-hero p {
  font-size: 1.05rem;
  color: #6b7280;
}
.faq-section {
  padding: 48px 0 72px;
}
.faq-list {}
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.faq-question:hover .faq-q-text { color: #2563eb; }
.faq-q-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.45;
  min-width: 0;
}
.faq-chevron {
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  transition: transform 0.22s ease;
  margin-top: 3px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* max-height transition — no display:none so toggle is always reliable */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-body {
  padding: 0 0 22px;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
}
.faq-answer-body a { color: #2563eb; }
.faq-answer-body a:hover { text-decoration: underline; }

html.dark .faq-hero { border-bottom-color: #2d3f55; }
html.dark .faq-hero h1 { color: #f1f5f9; }
html.dark .faq-hero p  { color: #64748b; }
html.dark .faq-item { border-bottom-color: #2d3f55; }
html.dark .faq-item:first-child { border-top-color: #2d3f55; }
html.dark .faq-q-text { color: #f1f5f9; }
html.dark .faq-question:hover .faq-q-text { color: #60a5fa; }
html.dark .faq-chevron { color: #64748b; }
html.dark .faq-answer-body { color: #94a3b8; }
html.dark .faq-answer-body a { color: #60a5fa; }

@media (max-width: 768px) {
  .faq-hero h1  { font-size: 1.6rem; }
  .faq-q-text   { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .faq-hero     { padding: 36px 0 28px; }
  .faq-hero h1  { font-size: 1.4rem; }
}
