:root {
  --bg: #fff;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --primary: #2563eb;
  --card: #fff;
  --surface: #fafafa;
}
html[data-theme="dark"] {
  --bg: #09090b;
  --text: #fafafa;
  --muted: #a1a1aa;
  --border: #3f3f46;
  --primary: #3b82f6;
  --card: #18181b;
  --surface: #111827;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.header-search { flex: 1; min-width: 0; position: relative; }
.header-search input,
.hero-search input,
.mobile-search input,
input[type="search"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font-size: 16px; /* iOS Safari: inputs below 16px zoom the page on focus */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-search input {
  border-radius: 12px;
  padding: .7rem 1rem;
  margin-bottom: .75rem;
}
.header-nav { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Mobile: hide header-nav, show mobile-header-right */
.mobile-header-right { display: none; align-items: center; gap: .35rem; flex-shrink: 0; margin-left: auto; }

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  padding: 9px 8px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  min-height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1rem;
  overflow: hidden;
}
.mobile-menu.open { display: block; }
.mobile-menu-links {
  display: flex; flex-direction: column; gap: .1rem;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: .15rem;
}
.mobile-menu-links a {
  display: block; padding: .65rem .75rem;
  color: var(--text); border-radius: 8px;
  font-size: .95rem; font-weight: 500;
}
.mobile-menu-links a:hover { background: var(--surface); }

/* Responsive: mobile breakpoint */
@media (max-width: 700px) {
  .header-inner { gap: .5rem; }
  .header-search { display: none; }
  .header-nav    { display: none; }
  .mobile-header-right { display: flex; }
  .logo {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* iOS Safari: prevent zoom when search field is focused */
  input[type="search"],
  .header-search input,
  .hero-search input,
  .mobile-search input,
  .search-page input[type="search"] {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}
.hero { padding: 4rem 0; background: linear-gradient(180deg, var(--surface), var(--bg)); text-align: center; }
.hero-center h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; }
.hero-search { display: flex; gap: .5rem; max-width: 640px; margin: 1.5rem auto 0; }
.hero-search button, .btn { border: 0; border-radius: 12px; padding: .75rem 1.25rem; cursor: pointer; font-weight: 600; }
.btn-primary, .hero-search button { background: var(--primary); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; padding: 2rem 0; }
.product-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--card); }
.product-card-image { display: block; aspect-ratio: 4/3; background: var(--surface); }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-card-body { padding: 1rem; }
.product-card h3 { margin: .5rem 0; font-size: 1rem; line-height: 1.35; }
.price { font-size: 1.2rem; font-weight: 700; margin-top: .5rem; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.product-page { padding: 2rem 0 4rem; }
.breadcrumb { color: var(--muted); margin-bottom: 1rem; font-size: .9rem; }
.product-hero, .product-layout, .reviews-grid, .pros-cons { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .product-hero { grid-template-columns: minmax(320px, 560px) 1fr; align-items: start; }
  .product-layout:not(.product-layout-single) { grid-template-columns: 2fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
.product-hero { align-items: start; }
.gallery { display: flex; flex-direction: column; gap: .75rem; max-width: 100%; width: 100%; }
.gallery-main-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.gallery-prev { left: .5rem; }
.gallery-next { right: .5rem; }
@media (max-width: 899px) {
  .gallery-nav { display: none; }
}
.gallery-main {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 1;
}
@media (max-width: 899px) {
  .gallery { max-width: 100%; width: 100%; margin: 0; }
  .gallery-main-wrap {
    aspect-ratio: 1 / 1;
    max-height: none;
    min-height: min(92vw, 440px);
    padding: 1.25rem 1rem;
  }
  .gallery-main {
    max-height: calc(min(92vw, 440px) - 2rem);
  }
}
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumbs button,
.gallery-thumb {
  width: 72px;
  height: 72px;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.gallery-thumbs button img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.product-intro h1 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.25; }
.rating-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .75rem;
  margin: .75rem 0 1rem;
}
.rating-summary-stats {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
  min-width: 0;
}
.rating-summary-stats strong { font-size: 1.15rem; flex-shrink: 0; }
.rating-summary-stats span { color: var(--muted); font-size: .95rem; }
.btn-leave-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .85rem;
  font-size: .82rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  position: static;
  width: auto;
  max-width: none;
}
@media (max-width: 400px) {
  .rating-summary { column-gap: .5rem; }
  .btn-leave-review { padding: .45rem .65rem; font-size: .78rem; }
}
.pricing-box-intro {
  position: static;
  margin-bottom: 1rem;
}
.pricing-box-intro h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.product-intro .summary-box { margin-bottom: 1rem; }
.product-intro .summary-box:last-child { margin-bottom: 0; }
.summary-box, .pricing-box, .rating-box, .review-form { border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; background: var(--card); }
.pricing-hint { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.pros { background: #f0fdf4; } .cons { background: #fef2f2; }
html[data-theme="dark"] .pros { background: #052e16; } html[data-theme="dark"] .cons { background: #450a0a; }
.review-form input, .review-form textarea, .review-form select { width: 100%; margin-bottom: .75rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.btn-buy { display: inline-block; background: #f97316; color: #fff; margin-top: .5rem; }
.price-row { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.price-row-price { font-size: 1.35rem; font-weight: 800; margin-bottom: .35rem; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; background: #dcfce7; color: #166534; padding: .15rem .45rem; border-radius: 6px; }
html[data-theme="dark"] .badge { background: #14532d; color: #bbf7d0; }
.spec-table div { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.5rem 0 1.25rem; background: var(--surface); }
.footer-top { padding-bottom: 1.5rem; }
.footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 1fr));
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 360px; }
.footer-logo a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.footer-tagline { margin: .75rem 0 .5rem; line-height: 1.55; color: var(--text); }
.footer-trust { margin: 0 0 .75rem; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.footer-contact a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-heading {
  margin: 0 0 .75rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.footer-nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.45;
  display: inline-block;
}
.footer-nav-list a:hover { color: var(--primary); text-decoration: underline; }
.footer-count { color: var(--muted); font-size: .85em; }
.footer-disclosures {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: grid;
  gap: .65rem;
}
.footer-disclosures .fine-print { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.footer-disclosures a { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1rem; }
.footer-copy { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }
.footer-copy a { color: var(--muted); text-decoration: none; }
.footer-copy a:hover { color: var(--primary); text-decoration: underline; }
.info-page { padding: 1.5rem 0 2rem; max-width: 820px; }
.info-page-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .75rem 0 1.25rem; }
.legal-content { line-height: 1.65; color: var(--text); }
.legal-content h2 { font-size: 1.15rem; margin: 1.75rem 0 .65rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a { color: var(--primary); }
.legal-content ul { padding-left: 1.25rem; }
.legal-content code { font-size: .9em; background: var(--card); padding: .1rem .35rem; border-radius: 4px; }
.dropdown { position: relative; }
.dropdown-btn { cursor: pointer; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 220px;
  max-width: min(320px, 80vw);
  max-height: min(360px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: .5rem;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .5rem .75rem; color: var(--text); border-radius: 8px; text-decoration: none; }
.dropdown-menu a:hover { background: var(--surface); }
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: none; z-index: 20; max-height: 420px; overflow: auto; margin-top: .35rem; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.search-suggestions a { display: block; padding: .65rem .85rem; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; }
.search-suggestions a:last-child { border-bottom: 0; }
.search-suggestions a:hover { background: var(--surface); }
.search-suggestion-label { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-right: .45rem; padding: .12rem .4rem; border-radius: 999px; vertical-align: middle; }
.search-suggestion-category .search-suggestion-label { background: #dbeafe; color: #1d4ed8; }
.search-suggestion-brand .search-suggestion-label { background: #fef3c7; color: #b45309; }
.search-suggestion-product .search-suggestion-label { background: #dcfce7; color: #15803d; }
.search-suggestions small { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }

.search-matches { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.search-match-group h2, .search-section-title { font-size: 1.05rem; margin: 0 0 .75rem; }
.search-match-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.search-match-card { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; }
.search-match-card:hover { border-color: #2563eb; }
.search-match-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.search-match-category .search-match-type { color: #1d4ed8; }
.search-match-brand .search-match-type { color: #b45309; }
.search-match-meta { font-size: .82rem; color: var(--muted); }
.search-section-title { margin-top: .5rem; }
.msg.ok { color: #16a34a; } .msg.err { color: #dc2626; }

/* ── Reviews ─────────────────────────────────────────── */
.reviews-section { margin-top: 2.5rem; }
.reviews-section > h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }

/* Overview bar */
.ratings-overview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 680px) {
  .ratings-overview { grid-template-columns: 1fr; text-align: center; }
  .ratings-cta { text-align: center; }
}

/* Left: large score */
.ratings-score-block { text-align: center; min-width: 110px; }
.ratings-score-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text);
}
.ratings-stars { display: flex; gap: 2px; justify-content: center; margin: .4rem 0 .3rem; font-size: 1.4rem; }
.star-full  { color: #f59e0b; }
.star-half  { color: #f59e0b; opacity: .55; }
.star-empty { color: var(--border); }
.ratings-count { font-size: .82rem; color: var(--muted); }

/* Center: bars */
.ratings-bars { display: flex; flex-direction: column; gap: .55rem; }
.ratings-bar-row { display: flex; align-items: center; gap: .65rem; }
.ratings-bar-label { width: 2rem; font-size: .85rem; font-weight: 600; color: var(--text); text-align: right; flex-shrink: 0; }
.ratings-bar-star  { color: #f59e0b; font-size: .8rem; }
.ratings-bar-track { flex: 1; height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; }
.ratings-bar-fill  { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 99px; transition: width .5s ease; }
.ratings-bar-count { width: 1.6rem; font-size: .8rem; color: var(--muted); text-align: right; flex-shrink: 0; }

/* Right: CTA */
.ratings-cta { text-align: center; }
.ratings-cta-text { font-size: .85rem; color: var(--muted); margin: 0 0 .75rem; }
.ratings-cta-btn { display: inline-block; padding: .65rem 1.25rem; white-space: nowrap; }

/* Review cards */
.review-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.review-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  background: var(--card);
}
.review-card-header { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .65rem; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-author { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.review-date { font-size: .78rem; color: var(--muted); }
.review-rating-badge {
  display: flex; align-items: center; gap: 2px;
  background: #f59e0b; color: #fff;
  border-radius: 8px; padding: .2rem .5rem;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0; align-self: flex-start;
}
.review-rating-badge[data-rating="1"] { background: #ef4444; }
.review-rating-badge[data-rating="2"] { background: #f97316; }
.review-rating-badge[data-rating="3"] { background: #eab308; }
.review-rating-badge[data-rating="4"] { background: #22c55e; }
.review-rating-badge[data-rating="5"] { background: #3b82f6; }
.review-badge-star { font-size: .8rem; }
.review-stars { display: flex; gap: 2px; font-size: 1rem; margin-bottom: .55rem; }
.review-comment { margin: 0; line-height: 1.65; color: var(--text); font-size: .95rem; }

/* Empty state */
.review-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--muted); border: 2px dashed var(--border);
  border-radius: 16px; margin-bottom: 2rem;
}
.review-empty svg { margin-bottom: .75rem; opacity: .4; }
.review-empty p { margin: 0; font-size: .95rem; }

/* Review form */
.review-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 2rem;
}
.review-form-wrapper h3 { margin: 0 0 1.25rem; font-size: 1.15rem; }
.review-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: var(--text); }
.form-hint { font-weight: 400; color: var(--muted); }
.review-form > div { margin-bottom: 1rem; }
.review-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .review-form .row { grid-template-columns: 1fr; } }
.review-form input,
.review-form textarea,
.review-form select {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text);
  font-size: .95rem; margin: 0;
}
.review-form textarea { resize: vertical; }

/* Star picker */
.review-form-stars-select { margin-bottom: 1.25rem; }
.star-picker { display: flex; gap: .25rem; margin-top: .35rem; }
.star-pick {
  background: none; border: none; cursor: pointer;
  font-size: 1.75rem; color: var(--border);
  padding: 0 .1rem; transition: color .15s, transform .1s;
}
.star-pick:hover, .star-pick.active { color: #f59e0b; transform: scale(1.15); }

/* ── User Reviews heading ─────────────────────────────── */
.review-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.review-list-title {
  font-size: 1.15rem; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.review-list-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700;
  min-width: 1.4rem; height: 1.4rem; border-radius: 99px; padding: 0 .35rem;
}

/* ── Reply list ──────────────────────────────────────── */
.reply-list {
  margin: 1rem 0 .75rem 1.5rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.reply-item { display: flex; gap: .65rem; }
.reply-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}
.reply-body { flex: 1; }
.reply-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; flex-wrap: wrap; }
.reply-author { font-weight: 600; font-size: .85rem; }
.reply-date { font-size: .75rem; color: var(--muted); }
.reply-comment { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--text); }

/* ── Reply section (toggle + form) ───────────────────── */
.reply-section { margin-top: .85rem; }
.reply-toggle-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 1px solid var(--border);
  color: var(--muted); font-size: .82rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 8px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.reply-toggle-btn:hover { color: var(--primary); border-color: var(--primary); }

.reply-form-wrap {
  display: none;
  margin-top: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  animation: fadeSlide .18s ease;
}
.reply-form-wrap.open { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reply-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: .5rem;
  margin-bottom: .6rem;
}
@media (max-width: 600px) { .reply-form-row { grid-template-columns: 1fr; } }
.reply-form input,
.reply-form textarea {
  width: 100%; padding: .55rem .75rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: .88rem;
}
.reply-form textarea { resize: vertical; margin-bottom: .6rem; }
.reply-form-actions { display: flex; gap: .5rem; }
.reply-cancel-btn { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
/* ── Filter bar ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.filter-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: .25rem;
  white-space: nowrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.filter-total {
  margin-left: auto;
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Pagination ─────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  transition: background .15s, color .15s, border-color .15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Comparison pages ────────────────────────────────── */
.comparison-page { padding: 2rem 0 4rem; }
.comparison-header { text-align: center; margin-bottom: 2rem; }
.comparison-badge {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: .25rem .75rem; border-radius: 99px; margin-bottom: .75rem;
}
.comparison-header h1 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 .5rem; }
.comparison-header .vs { color: var(--muted); font-weight: 400; }
.comparison-sub { color: var(--muted); margin: 0; }

.comparison-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .comparison-hero { grid-template-columns: 1fr; }
  .comparison-vs-badge { display: none; }
}
.comparison-product-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem;
  background: var(--card); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.comparison-product-img { display: block; width: 100%; max-width: 220px; aspect-ratio: 1; margin-bottom: .5rem; }
.comparison-product-img img { width: 100%; height: 100%; object-fit: contain; }
.comparison-product-card h2 { font-size: 1rem; margin: 0; line-height: 1.35; }
.comparison-rating { font-size: .9rem; }
.stars-inline { color: #f59e0b; letter-spacing: 1px; }
.comparison-price { font-size: 1.5rem; font-weight: 800; margin: .25rem 0; }
.comparison-review-link { font-size: .85rem; margin-top: .5rem; }
.comparison-vs-badge {
  align-self: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem;
  display: grid; place-items: center; flex-shrink: 0;
}

.comparison-section { margin-bottom: 2.5rem; }
.comparison-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comparison-table th, .comparison-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--surface); font-weight: 700; }
.comparison-table td:first-child { font-weight: 600; color: var(--muted); width: 28%; white-space: nowrap; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table .highlight-row td { background: color-mix(in srgb, var(--primary) 8%, transparent); font-weight: 600; }

.comparison-summaries { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .comparison-summaries { grid-template-columns: 1fr; } }
.comparison-summaries .summary-box h3 { font-size: .95rem; margin: 0 0 .5rem; }

/* Product page compare links */
.comparison-links { display: flex; flex-direction: column; gap: .5rem; }
.comparison-link-card {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); color: var(--text); transition: border-color .15s;
  min-width: 0;
}
.comparison-link-card:hover { border-color: var(--primary); }
.comparison-link-name {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-link-name-a { text-align: right; }
.comparison-link-name-b { text-align: left; }
@media (min-width: 768px) {
  .comparison-link-card { gap: .65rem; padding: .85rem 1.15rem; }
  .comparison-link-name { font-size: .88rem; }
}
.comparison-link-vs {
  font-size: .7rem; font-weight: 800; color: #fff; background: var(--primary);
  padding: .2rem .45rem; border-radius: 6px; flex-shrink: 0;
}
.comparison-link-arrow {
  font-size: .82rem; color: var(--primary); white-space: nowrap; flex-shrink: 0;
  margin-left: .15rem;
}

/* Product page sections */
.product-section { padding: 2rem 0 0; }
.category-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.category-slider-view-all {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Category product slider */
.product-slider {
  position: relative;
  padding: 0 .25rem;
}
.product-slider-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .25rem 0 1rem;
}
.product-slider-track::-webkit-scrollbar { display: none; }
.product-slider-track .product-card {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
}
.product-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  transition: border-color .15s, color .15s;
}
.product-slider-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.product-slider-prev { left: -6px; }
.product-slider-next { right: -6px; }
@media (max-width: 700px) {
  .product-slider-btn { display: none; }
}

.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1rem; }
.admin-sidebar a { display: block; padding: .5rem .75rem; color: var(--text); border-radius: 8px; margin-bottom: .25rem; }
.admin-main { padding: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border); padding: .65rem; text-align: left; }
