/* ==========================================================================
   SunViet Flatsome Child — Main Stylesheet
   Components: topbar · header · nav · hero · flash-sale · categories ·
   product-card · toplist · comparison · sidebar · filter · product-detail ·
   blog · share · footer · utilities
   Breakpoints: 480 · 768 · 1024 · 1240
   ========================================================================== */

/* --------------------------------------------------------------------------
   BASE RESETS & HELPERS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

img, svg { max-width: 100%; display: block; }

.fas, .far, .fab { font-size: inherit; }

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

button { cursor: pointer; border: none; background: none; padding: 0; font: inherit; }

ul, ol { list-style: none; margin: 0; padding: 0; }

/* Tabular nums for VND prices */
.sv-price,
[class*="sv-"] .price,
[class*="sv-"] .amount {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Global transitions */
a, button, input, .sv-card, .sv-btn,
[class*="sv-"]:not(.sv-topbar):not(.sv-footer):not(.sv-nav) {
  transition: all .2s ease;
}


/* ==========================================================================
   1. ANNOUNCEMENT BAR (.sv-topbar)
   ========================================================================== */
.sv-topbar {
  background: var(--sv-navy);
  color: var(--sv-white);
  font-size: 12px;
  line-height: 1;
  padding: 0 16px;
}

.sv-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 1240px;
  margin: 0 auto;
  height: 36px;
  flex-wrap: wrap;
}

.sv-topbar__hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--sv-amber);
  white-space: nowrap;
}

.sv-topbar__hotline .fas { color: var(--sv-amber); }

.sv-topbar__promos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.sv-topbar__promo-link {
  color: var(--sv-g200);
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

.sv-topbar__promo-link:hover {
  color: var(--sv-white);
  border-bottom-color: var(--sv-amber);
}

.sv-topbar__promo-link--hot {
  color: var(--sv-amber);
  font-weight: 600;
}

.sv-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.sv-topbar__actions a {
  color: var(--sv-g200);
  font-size: 11px;
}

.sv-topbar__actions a:hover { color: var(--sv-white); }

@media (max-width: 768px) {
  .sv-topbar__promos { display: none; }
  .sv-topbar__inner { justify-content: space-between; }
}


/* ==========================================================================
   2. STICKY HEADER (.sv-header-inner)
   ========================================================================== */
.sv-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--sv-white);
  box-shadow: var(--sv-shadow-sm);
}

.sv-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
}

/* Logo */
.sv-logo {
  flex-shrink: 0;
  max-width: 140px;
}

.sv-logo img { height: 44px; width: auto; object-fit: contain; }

/* Search bar */
.sv-search {
  flex: 1;
  position: relative;
  min-width: 0;
}

.sv-search__input {
  width: 100%;
  height: 44px;
  border: 2px solid var(--sv-border);
  border-radius: 6px;
  padding: 0 50px 0 16px;
  font-size: 14px;
  color: var(--sv-text);
  background: var(--sv-g50);
  outline: none;
}

.sv-search__input:focus {
  border-color: var(--sv-red);
  background: var(--sv-white);
}

.sv-search__input::placeholder { color: var(--sv-muted); }

.sv-search__btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 48px;
  background: var(--sv-red);
  color: var(--sv-white);
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-search__btn:hover { background: var(--sv-red-dark); }

/* Action buttons */
.sv-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sv-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--sv-text);
  font-size: 10px;
  white-space: nowrap;
  background: transparent;
}

.sv-action-btn:hover {
  background: var(--sv-g100);
  color: var(--sv-red);
}

.sv-action-btn .fas,
.sv-action-btn .far {
  font-size: 20px;
}

.sv-action-btn__label { font-weight: 500; }

.sv-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  background: var(--sv-red);
  color: var(--sv-white);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

@media (max-width: 768px) {
  .sv-action-btn__label { display: none; }
  .sv-action-btn { padding: 6px 8px; }
  .sv-logo { max-width: 100px; }
}

@media (max-width: 480px) {
  .sv-header-inner { gap: 8px; padding: 8px 12px; }
  .sv-header-actions { gap: 0; }
}


/* ==========================================================================
   3. NAV BAR (.sv-nav)
   ========================================================================== */
.sv-nav {
  background: var(--sv-red);
  position: relative;
  z-index: 800;
}

.sv-nav__inner {
  display: flex;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}

/* Category toggle button */
.sv-nav__cat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--sv-navy);
  color: var(--sv-white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.sv-nav__cat-toggle:hover { background: var(--sv-navy2); }

.sv-nav__cat-toggle .fas { font-size: 14px; }

/* Nav items */
.sv-nav__items {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-nav__items::-webkit-scrollbar { display: none; }

.sv-nav__item {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--sv-white);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 44px;
  position: relative;
}

.sv-nav__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--sv-white);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.sv-nav__item:hover { background: rgba(255,255,255,.12); }
.sv-nav__item:hover::after { transform: scaleX(1); }

.sv-nav__item--hot { color: var(--sv-amber); font-weight: 700; }
.sv-nav__item--hot:hover { background: rgba(245,166,35,.15); }

/* Dropdown */
.sv-nav__dropdown {
  position: relative;
}

.sv-nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--sv-white);
  box-shadow: var(--sv-shadow-md);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 1000;
}

.sv-nav__dropdown:hover .sv-nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sv-nav__dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--sv-text);
}

.sv-nav__dropdown-menu a:hover {
  background: var(--sv-g100);
  color: var(--sv-red);
}

@media (max-width: 768px) {
  .sv-nav__items { display: none; }
  .sv-nav__cat-toggle { flex: 1; justify-content: center; }
}


/* ==========================================================================
   4. HERO SLIDER (.sv-hero)
   ========================================================================== */
.sv-hero {
  position: relative;
  overflow: hidden;
  background: var(--sv-navy);
}

.sv-hero__track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}

.sv-hero__slide {
  flex-shrink: 0;
  width: 100%;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Gradient slides by modifier */
.sv-hero__slide--1 { background: linear-gradient(135deg, var(--sv-navy) 0%, #2A3F6F 60%, var(--sv-red) 100%); }
.sv-hero__slide--2 { background: linear-gradient(135deg, #1A1A2E 0%, var(--sv-navy2) 60%, var(--sv-orange) 100%); }
.sv-hero__slide--3 { background: linear-gradient(135deg, #0D1320 0%, var(--sv-navy) 50%, var(--sv-amber) 100%); }

.sv-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.sv-hero__badge {
  display: inline-block;
  background: var(--sv-red);
  color: var(--sv-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.sv-hero__title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  color: var(--sv-white);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 560px;
}

.sv-hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  max-width: 440px;
}

.sv-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: all .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.sv-btn--primary {
  background: var(--sv-red);
  color: var(--sv-white);
  border-color: var(--sv-red);
}

.sv-btn--primary:hover {
  background: var(--sv-red-dark);
  border-color: var(--sv-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196,30,58,.4);
}

.sv-btn--outline {
  background: transparent;
  color: var(--sv-white);
  border-color: rgba(255,255,255,.6);
}

.sv-btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--sv-white);
}

.sv-btn--navy {
  background: var(--sv-navy);
  color: var(--sv-white);
  border-color: var(--sv-navy);
}

.sv-btn--navy:hover { background: var(--sv-navy2); }

.sv-btn--sm { padding: 8px 16px; font-size: 12px; }
.sv-btn--lg { padding: 14px 32px; font-size: 15px; }

/* Hero image */
.sv-hero__img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  object-fit: cover;
  opacity: .85;
}

/* Dot navigation */
.sv-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.sv-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}

.sv-hero__dot--active {
  width: 24px;
  background: var(--sv-white);
}

/* Prev/next arrows */
.sv-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: var(--sv-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.25);
}

.sv-hero__arrow:hover { background: rgba(255,255,255,.3); }
.sv-hero__arrow--prev { left: 16px; }
.sv-hero__arrow--next { right: 16px; }

@media (min-width: 768px) {
  .sv-hero__slide { min-height: 440px; }
}

@media (min-width: 1024px) {
  .sv-hero__slide { min-height: 520px; }
}

@media (max-width: 480px) {
  .sv-hero__img { display: none; }
  .sv-hero__content { padding: 36px 16px; }
}


/* ==========================================================================
   5. FLASH SALE (.sv-flash-sale)
   ========================================================================== */
.sv-flash-sale {
  background: linear-gradient(135deg, var(--sv-red-dark) 0%, var(--sv-red) 50%, var(--sv-orange) 100%);
  padding: 24px 0;
  overflow: hidden;
}

.sv-flash-sale__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}

.sv-flash-sale__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--sv-white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sv-flash-sale__title .fas { color: var(--sv-amber); font-size: 20px; }

/* Countdown timer */
.sv-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sv-countdown__label {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  margin-right: 6px;
  white-space: nowrap;
}

.sv-countdown__box {
  min-width: 40px;
  height: 42px;
  background: var(--sv-navy);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.sv-countdown__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--sv-white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sv-countdown__unit {
  font-size: 9px;
  color: var(--sv-g400);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sv-countdown__sep {
  color: var(--sv-white);
  font-size: 18px;
  font-weight: 700;
  opacity: .7;
  margin: 0 2px;
}

/* Product cards row */
.sv-flash-sale__grid {
  display: flex;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sv-flash-sale__grid::-webkit-scrollbar { display: none; }

.sv-flash-sale__card {
  flex-shrink: 0;
  width: 180px;
  background: var(--sv-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sv-shadow-md);
}

@media (min-width: 768px) { .sv-flash-sale__card { width: 200px; } }
@media (min-width: 1024px) { .sv-flash-sale__card { width: 220px; } }

.sv-flash-sale__card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  background: var(--sv-g50);
}

.sv-flash-sale__card-body { padding: 10px 12px 12px; }

.sv-flash-sale__card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  line-height: 1.4;
}

.sv-flash-sale__price-new {
  font-size: 15px;
  font-weight: 700;
  color: var(--sv-red);
  display: block;
}

.sv-flash-sale__price-old {
  font-size: 11px;
  color: var(--sv-muted);
  text-decoration: line-through;
}

/* Progress bar */
.sv-progress {
  margin-top: 8px;
}

.sv-progress__label {
  font-size: 10px;
  color: var(--sv-muted);
  margin-bottom: 4px;
}

.sv-progress__track {
  height: 6px;
  background: var(--sv-g200);
  border-radius: 3px;
  overflow: hidden;
}

.sv-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sv-red) 0%, var(--sv-orange) 100%);
  border-radius: 3px;
  transition: width .3s ease;
}


/* ==========================================================================
   6. CATEGORY GRID (.sv-cat-grid)
   ========================================================================== */
.sv-cat-grid {
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 16px;
}

.sv-cat-grid__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sv-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-cat-grid__title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--sv-red) 0%, transparent 100%);
}

.sv-cat-grid__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (min-width: 480px) { .sv-cat-grid__grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 768px) { .sv-cat-grid__grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 1024px) { .sv-cat-grid__grid { grid-template-columns: repeat(10, 1fr); gap: 16px; } }

.sv-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--sv-white);
  border-radius: 10px;
  border: 1px solid var(--sv-border);
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.sv-cat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-md);
  border-color: var(--sv-red);
}

.sv-cat-item__icon {
  width: 48px;
  height: 48px;
  background: var(--sv-g100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--sv-navy);
  transition: all .2s ease;
}

.sv-cat-item:hover .sv-cat-item__icon {
  background: var(--sv-red-bg);
  color: var(--sv-red);
}

.sv-cat-item__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sv-text);
  line-height: 1.3;
}


/* ==========================================================================
   7. PRODUCT CARD (.sv-product-card)
   ========================================================================== */
.sv-product-card {
  background: var(--sv-white);
  border-radius: 10px;
  border: 1px solid var(--sv-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
}

.sv-product-card:hover {
  box-shadow: var(--sv-shadow-md);
  transform: translateY(-3px);
  border-color: var(--sv-g200);
}

/* Image area */
.sv-product-card__media {
  position: relative;
  overflow: hidden;
  background: var(--sv-g50);
  aspect-ratio: 1 / 1;
}

.sv-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s ease;
}

.sv-product-card:hover .sv-product-card__img { transform: scale(1.05); }

/* Hover actions */
.sv-product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all .2s ease;
}

.sv-product-card:hover .sv-product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.sv-product-card__action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sv-white);
  color: var(--sv-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: var(--sv-shadow-sm);
  border: 1px solid var(--sv-border);
  transition: all .2s ease;
}

.sv-product-card__action-btn:hover {
  background: var(--sv-red);
  color: var(--sv-white);
  border-color: var(--sv-red);
}

/* Badges */
.sv-product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sv-badge-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.6;
  white-space: nowrap;
}

.sv-badge-pill--sale { background: var(--sv-red); color: var(--sv-white); }
.sv-badge-pill--new { background: var(--sv-green); color: var(--sv-white); }
.sv-badge-pill--hot { background: var(--sv-orange); color: var(--sv-white); }
.sv-badge-pill--brand { background: var(--sv-navy); color: var(--sv-white); }

/* Card body */
.sv-product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sv-product-card__brand {
  font-size: 10px;
  font-weight: 600;
  color: var(--sv-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sv-product-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

/* Stars */
.sv-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sv-stars__icons {
  display: flex;
  gap: 1px;
  color: var(--sv-amber);
  font-size: 11px;
}

.sv-stars__count {
  font-size: 11px;
  color: var(--sv-muted);
}

/* Price */
.sv-product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.sv-price--new {
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-red);
}

.sv-price--old {
  font-size: 12px;
  color: var(--sv-muted);
  text-decoration: line-through;
}

/* Add-to-cart */
.sv-product-card__footer { padding: 0 12px 12px; }

.sv-btn-cart {
  width: 100%;
  height: 38px;
  background: var(--sv-red);
  color: var(--sv-white);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--sv-red);
  cursor: pointer;
  transition: all .2s ease;
}

.sv-btn-cart:hover {
  background: var(--sv-red-dark);
  border-color: var(--sv-red-dark);
}

.sv-btn-cart--outline {
  background: transparent;
  color: var(--sv-red);
}

.sv-btn-cart--outline:hover {
  background: var(--sv-red);
  color: var(--sv-white);
}


/* ==========================================================================
   8. TOPLIST HERO (.sv-toplist-hero)
   ========================================================================== */
.sv-toplist-hero {
  background: linear-gradient(135deg, var(--sv-navy) 0%, var(--sv-navy2) 50%, var(--sv-red) 100%);
  padding: 48px 16px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sv-toplist-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.sv-toplist-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sv-toplist-hero__badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sv-toplist-hero__h1 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  color: var(--sv-white);
  line-height: 1.25;
  margin: 0 0 16px;
}

.sv-toplist-hero__intro {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Author meta */
.sv-toplist-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

.sv-toplist-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sv-toplist-hero__meta .fas { font-size: 11px; }

.sv-toplist-hero__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  object-fit: cover;
}

/* Summary stats */
.sv-toplist-hero__stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.sv-toplist-hero__stat {
  text-align: center;
}

.sv-toplist-hero__stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--sv-amber);
  line-height: 1;
}

.sv-toplist-hero__stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
}


/* ==========================================================================
   9. TOPLIST FILTER BAR (.sv-filter-bar)
   ========================================================================== */
.sv-filter-bar {
  position: sticky;
  top: 88px;
  z-index: 700;
  background: var(--sv-white);
  border-bottom: 1px solid var(--sv-border);
  box-shadow: var(--sv-shadow-sm);
}

.sv-filter-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-filter-bar__inner::-webkit-scrollbar { display: none; }

.sv-filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sv-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all .2s ease;
}

.sv-filter-tab:hover {
  color: var(--sv-text);
  background: var(--sv-g50);
}

.sv-filter-tab--active {
  color: var(--sv-red);
  border-bottom-color: var(--sv-red);
  font-weight: 600;
}

.sv-filter-tab__count {
  background: var(--sv-g200);
  color: var(--sv-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
}

.sv-filter-tab--active .sv-filter-tab__count {
  background: var(--sv-red-bg);
  color: var(--sv-red);
}


/* ==========================================================================
   10. TOPLIST CARD (.sv-toplist-card)
   ========================================================================== */
.sv-toplist-card {
  display: flex;
  background: var(--sv-white);
  border-radius: 12px;
  border: 1px solid var(--sv-border);
  overflow: hidden;
  margin-bottom: 16px;
  transition: all .2s ease;
}

.sv-toplist-card:hover {
  box-shadow: var(--sv-shadow-md);
  transform: translateY(-2px);
}

/* Image area with gradient by category */
.sv-toplist-card__img-area {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sv-toplist-card__img-area--red    { background: linear-gradient(145deg, #fff5f5, var(--sv-red-bg)); }
.sv-toplist-card__img-area--navy   { background: linear-gradient(145deg, #f0f3ff, #dde3f5); }
.sv-toplist-card__img-area--green  { background: linear-gradient(145deg, #f0fff4, #dcfce7); }
.sv-toplist-card__img-area--amber  { background: linear-gradient(145deg, #fffbeb, #fef3c7); }

.sv-toplist-card__product-img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

/* TOP N badge */
.sv-top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sv-amber), #c8860f);
  color: var(--sv-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(212,160,23,.5);
}

.sv-top-badge__num { font-size: 16px; }
.sv-top-badge__top { font-size: 8px; text-transform: uppercase; opacity: .85; }

/* Card body */
.sv-toplist-card__body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sv-toplist-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-text);
  line-height: 1.3;
}

.sv-toplist-card__excerpt {
  font-size: 13px;
  color: var(--sv-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mini-ranking row */
.sv-mini-ranks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sv-mini-rank {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sv-g100);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--sv-text);
}

.sv-mini-rank__label { color: var(--sv-muted); }
.sv-mini-rank__val { font-weight: 700; }
.sv-mini-rank__val--top { color: var(--sv-red); }

@media (max-width: 480px) {
  .sv-toplist-card { flex-direction: column; }
  .sv-toplist-card__img-area { width: 100%; height: 160px; }
}

@media (min-width: 768px) {
  .sv-toplist-card__img-area { width: 180px; }
}


/* ==========================================================================
   11. TOPLIST RANKING ITEM (.sv-rank-item)
   ========================================================================== */
.sv-rank-item {
  display: grid;
  grid-template-columns: 60px 160px 1fr;
  gap: 20px;
  background: var(--sv-white);
  border-radius: 14px;
  border: 1px solid var(--sv-border);
  padding: 24px;
  margin-bottom: 20px;
  align-items: start;
  transition: all .2s ease;
}

.sv-rank-item:hover { box-shadow: var(--sv-shadow-md); }

/* Rank column */
.sv-rank-item__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sv-rank-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--sv-white);
}

.sv-rank-num--1 { background: linear-gradient(135deg, #FFD700, #FFA500); box-shadow: 0 3px 10px rgba(255,165,0,.5); }
.sv-rank-num--2 { background: linear-gradient(135deg, #C0C0C0, #A8A9AD); }
.sv-rank-num--3 { background: linear-gradient(135deg, #CD7F32, #A0522D); }
.sv-rank-num--n { background: var(--sv-navy); font-size: 18px; }

/* Score ring (SVG-based progress circle) */
.sv-score-ring {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: 4px;
}

.sv-score-ring__svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.sv-score-ring__track { fill: none; stroke: var(--sv-g200); stroke-width: 4; }
.sv-score-ring__fill  { fill: none; stroke: var(--sv-red); stroke-width: 4; stroke-linecap: round; }

.sv-score-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--sv-text);
}

/* Product image */
.sv-rank-item__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sv-rank-item__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--sv-g50);
  border-radius: 8px;
  padding: 10px;
}

/* Main content */
.sv-rank-item__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-rank-item__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--sv-text);
  line-height: 1.3;
}

.sv-rank-item__desc {
  font-size: 13px;
  color: var(--sv-muted);
  line-height: 1.6;
}

/* Pros/cons grid */
.sv-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sv-pros-list, .sv-cons-list { display: flex; flex-direction: column; gap: 5px; }

.sv-pros-list__title, .sv-cons-list__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.sv-pros-list__title { color: var(--sv-green); }
.sv-cons-list__title { color: var(--sv-red); }

.sv-pros-list li, .sv-cons-list li {
  font-size: 12px;
  color: var(--sv-text);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.45;
}

.sv-pros-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--sv-green);
  font-size: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sv-cons-list li::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--sv-red);
  font-size: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Price + CTA row */
.sv-rank-item__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--sv-border);
}

.sv-rank-item__price-new {
  font-size: 20px;
  font-weight: 800;
  color: var(--sv-red);
}

.sv-rank-item__price-old {
  font-size: 13px;
  color: var(--sv-muted);
  text-decoration: line-through;
}

@media (max-width: 768px) {
  .sv-rank-item { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .sv-rank-item__rank { flex-direction: row; }
  .sv-pros-cons { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .sv-rank-item { grid-template-columns: 60px 200px 1fr; }
}


/* ==========================================================================
   12. COMPARISON TABLE (.sv-comp-table)
   ========================================================================== */
.sv-comp-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sv-border);
  margin: 24px 0;
  overflow-x: auto;
}

.sv-comp-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 13px;
}

.sv-comp-table thead tr {
  background: var(--sv-navy);
  color: var(--sv-white);
}

.sv-comp-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.sv-comp-table thead th:first-child { width: 160px; }

.sv-comp-table tbody tr:nth-child(even) { background: var(--sv-g50); }
.sv-comp-table tbody tr:hover { background: var(--sv-red-bg); }

.sv-comp-table td {
  padding: 12px 16px;
  color: var(--sv-text);
  border-bottom: 1px solid var(--sv-border);
  vertical-align: middle;
}

.sv-comp-table td:first-child {
  font-weight: 600;
  color: var(--sv-navy);
  font-size: 12px;
}

/* Score bars */
.sv-score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-score-bar__track {
  flex: 1;
  height: 6px;
  background: var(--sv-g200);
  border-radius: 3px;
  overflow: hidden;
}

.sv-score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sv-red), var(--sv-orange));
  border-radius: 3px;
}

.sv-score-bar__val {
  font-size: 11px;
  font-weight: 700;
  color: var(--sv-text);
  min-width: 28px;
  text-align: right;
}

/* Rank pills */
.sv-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.sv-rank-pill--1 { background: #FEF3C7; color: #92400E; }
.sv-rank-pill--2 { background: #F1F5F9; color: #475569; }
.sv-rank-pill--3 { background: #FEF2F2; color: #9B1C1C; }
.sv-rank-pill--n { background: var(--sv-g100); color: var(--sv-muted); }


/* ==========================================================================
   13. VERDICT BOX (.sv-verdict)
   ========================================================================== */
.sv-verdict {
  background: linear-gradient(135deg, var(--sv-navy) 0%, var(--sv-navy2) 100%);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
  color: var(--sv-white);
}

.sv-verdict::before {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 80px;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}

.sv-verdict__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sv-amber);
  margin-bottom: 10px;
}

.sv-verdict__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.sv-verdict__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sv-verdict__col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}

.sv-verdict__col-title--best { color: var(--sv-amber); }

.sv-verdict__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
  line-height: 1.45;
}

.sv-verdict__item .fas { color: var(--sv-amber); font-size: 11px; margin-top: 2px; flex-shrink: 0; }

@media (max-width: 600px) {
  .sv-verdict__grid { grid-template-columns: 1fr; }
  .sv-verdict { padding: 20px; }
}


/* ==========================================================================
   14. SIDEBAR WIDGETS (.sv-sidebar-toc, .sv-widget)
   ========================================================================== */
.sv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sv-widget {
  background: var(--sv-white);
  border-radius: 12px;
  border: 1px solid var(--sv-border);
  overflow: hidden;
}

.sv-widget__head {
  background: var(--sv-navy);
  color: var(--sv-white);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-widget__head .fas { color: var(--sv-amber); font-size: 12px; }

.sv-widget__body { padding: 14px 16px; }

/* TOC */
.sv-sidebar-toc__list { display: flex; flex-direction: column; gap: 2px; }

.sv-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--sv-text);
  cursor: pointer;
  transition: all .2s ease;
  border-left: 2px solid transparent;
}

.sv-toc-item:hover {
  background: var(--sv-g100);
  color: var(--sv-red);
}

.sv-toc-item--active {
  background: var(--sv-red-bg);
  color: var(--sv-red);
  border-left-color: var(--sv-red);
  font-weight: 600;
}

.sv-toc-item__num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sv-g200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}

.sv-toc-item--active .sv-toc-item__num {
  background: var(--sv-red);
  color: var(--sv-white);
}

/* Winner widget */
.sv-winner-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--sv-border);
}

.sv-winner-card:last-child { border-bottom: none; padding-bottom: 0; }

.sv-winner-card__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--sv-g50);
  border-radius: 8px;
  padding: 6px;
  flex-shrink: 0;
}

.sv-winner-card__rank {
  font-size: 10px;
  font-weight: 700;
  color: var(--sv-amber);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sv-winner-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-winner-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--sv-red);
}

/* Related posts widget */
.sv-related-post {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--sv-border);
}

.sv-related-post:last-child { border-bottom: none; padding-bottom: 0; }

.sv-related-post__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--sv-g100);
}

.sv-related-post__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-related-post__date { font-size: 10px; color: var(--sv-muted); margin-top: 3px; }


/* ==========================================================================
   15. PRODUCT FILTER SIDEBAR (.sv-filter-sidebar)
   ========================================================================== */
.sv-filter-sidebar {
  background: var(--sv-white);
  border-radius: 12px;
  border: 1px solid var(--sv-border);
  overflow: hidden;
}

.sv-filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sv-border);
}

.sv-filter-sidebar__head-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sv-text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.sv-filter-sidebar__clear {
  font-size: 12px;
  color: var(--sv-red);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Accordion sections */
.sv-filter-section { border-bottom: 1px solid var(--sv-border); }
.sv-filter-section:last-child { border-bottom: none; }

.sv-filter-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text);
}

.sv-filter-section__toggle .fas {
  color: var(--sv-muted);
  font-size: 11px;
  transition: transform .2s ease;
}

.sv-filter-section--open .sv-filter-section__toggle .fas { transform: rotate(180deg); }

.sv-filter-section__body {
  padding: 4px 16px 14px;
  display: none;
}

.sv-filter-section--open .sv-filter-section__body { display: block; }

/* Price slider */
.sv-price-slider {
  position: relative;
  margin: 8px 0 16px;
}

.sv-price-slider__track {
  height: 4px;
  background: var(--sv-g200);
  border-radius: 2px;
  position: relative;
}

.sv-price-slider__fill {
  position: absolute;
  height: 100%;
  background: var(--sv-red);
  border-radius: 2px;
}

.sv-price-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  opacity: 0;
  cursor: pointer;
  top: 0;
  pointer-events: none;
}

.sv-price-slider__thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--sv-white);
  border: 2px solid var(--sv-red);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: var(--sv-shadow-sm);
}

.sv-price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sv-muted);
  margin-top: 8px;
}

/* Checkboxes */
.sv-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--sv-text);
}

.sv-filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sv-red);
  cursor: pointer;
  flex-shrink: 0;
}

.sv-filter-checkbox__count {
  margin-left: auto;
  font-size: 11px;
  color: var(--sv-muted);
}

/* Color swatches */
.sv-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.sv-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--sv-border);
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}

.sv-swatch:hover { transform: scale(1.15); }

.sv-swatch--active {
  border-color: var(--sv-red);
  box-shadow: 0 0 0 2px var(--sv-red-bg);
}

.sv-swatch--active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--sv-white);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}


/* ==========================================================================
   16. PRODUCT DETAIL (.sv-product-detail)
   ========================================================================== */
.sv-product-detail {
  max-width: 1240px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .sv-product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .sv-product-detail { grid-template-columns: 520px 1fr; }
}

/* Gallery */
.sv-gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--sv-g50);
  border-radius: 12px;
  border: 1px solid var(--sv-border);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.sv-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.sv-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-gallery__thumbs::-webkit-scrollbar { display: none; }

.sv-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 2px solid var(--sv-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sv-g50);
  padding: 4px;
  transition: all .2s ease;
}

.sv-gallery__thumb--active { border-color: var(--sv-red); }
.sv-gallery__thumb:hover { border-color: var(--sv-red); }
.sv-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Buy info column */
.sv-product-info__brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.sv-product-info__name {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--sv-text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.sv-product-info__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.sv-product-info__price-block {
  background: var(--sv-red-bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.sv-product-info__price-new {
  font-size: 30px;
  font-weight: 800;
  color: var(--sv-red);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.sv-product-info__price-old {
  font-size: 14px;
  color: var(--sv-muted);
  text-decoration: line-through;
}

.sv-product-info__discount {
  display: inline-block;
  background: var(--sv-red);
  color: var(--sv-white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* Variant selector */
.sv-variant-group { margin-bottom: 16px; }

.sv-variant-group__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text);
  margin-bottom: 8px;
}

.sv-variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sv-variant-option {
  padding: 7px 16px;
  border: 1.5px solid var(--sv-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--sv-text);
  cursor: pointer;
  transition: all .2s ease;
  background: var(--sv-white);
}

.sv-variant-option:hover { border-color: var(--sv-red); color: var(--sv-red); }

.sv-variant-option--active {
  border-color: var(--sv-red);
  background: var(--sv-red-bg);
  color: var(--sv-red);
  font-weight: 600;
}

.sv-variant-option--disabled {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Quantity + add cart */
.sv-quantity-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.sv-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--sv-border);
  border-radius: 6px;
  overflow: hidden;
}

.sv-qty__btn {
  width: 36px;
  height: 44px;
  background: var(--sv-g100);
  color: var(--sv-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.sv-qty__btn:hover { background: var(--sv-g200); }

.sv-qty__input {
  width: 48px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--sv-border);
  border-right: 1px solid var(--sv-border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-text);
  background: var(--sv-white);
  outline: none;
}

/* Sticky buy bar */
.sv-sticky-buy {
  position: sticky;
  bottom: 0;
  z-index: 800;
  background: var(--sv-white);
  border-top: 1px solid var(--sv-border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}

.sv-sticky-buy__name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-sticky-buy__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-red);
  white-space: nowrap;
}

/* Trust badges */
.sv-trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--sv-border);
}

.sv-trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--sv-text);
}

.sv-trust-badge .fas {
  color: var(--sv-green);
  font-size: 14px;
}

/* Product tabs */
.sv-product-tabs {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.sv-tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--sv-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-tabs__nav::-webkit-scrollbar { display: none; }

.sv-tab-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sv-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all .2s ease;
}

.sv-tab-btn:hover { color: var(--sv-text); }

.sv-tab-btn--active {
  color: var(--sv-red);
  border-bottom-color: var(--sv-red);
  font-weight: 600;
}

.sv-tab-panel {
  padding: 24px 0;
  display: none;
}

.sv-tab-panel--active { display: block; }


/* ==========================================================================
   17. BLOG CARDS (.sv-blog-card)
   ========================================================================== */
.sv-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 480px) { .sv-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .sv-blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sv-blog-grid { grid-template-columns: repeat(4, 1fr); } }

.sv-blog-card {
  background: var(--sv-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sv-border);
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
}

.sv-blog-card:hover {
  box-shadow: var(--sv-shadow-md);
  transform: translateY(-3px);
}

.sv-blog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Gradient thumbnails by category */
.sv-blog-card__thumb--reviews   { background: linear-gradient(135deg, var(--sv-navy), var(--sv-red)); }
.sv-blog-card__thumb--tips      { background: linear-gradient(135deg, #1d4ed8, #7c3aed); }
.sv-blog-card__thumb--news      { background: linear-gradient(135deg, var(--sv-green), #059669); }
.sv-blog-card__thumb--compare   { background: linear-gradient(135deg, var(--sv-orange), var(--sv-amber)); }

.sv-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.sv-blog-card:hover .sv-blog-card__img { transform: scale(1.06); }

/* Category badge */
.sv-blog-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sv-red);
  color: var(--sv-white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 1;
}

/* Reading time */
.sv-blog-card__meta {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  color: var(--sv-white);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sv-blog-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sv-blog-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sv-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-blog-card__title:hover { color: var(--sv-red); }

.sv-blog-card__excerpt {
  font-size: 12px;
  color: var(--sv-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sv-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sv-muted);
  padding-top: 8px;
  border-top: 1px solid var(--sv-border);
}


/* ==========================================================================
   18. SHARE BAR (.sv-share-bar)
   ========================================================================== */
.sv-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--sv-border);
  margin-top: 24px;
}

.sv-share-bar__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-text);
  margin-right: 4px;
  white-space: nowrap;
}

.sv-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-white);
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.sv-share-btn:hover { transform: translateY(-1px); opacity: .9; }

.sv-share-btn--facebook { background: #1877F2; }
.sv-share-btn--zalo     { background: #0068FF; }
.sv-share-btn--twitter  { background: #1DA1F2; }
.sv-share-btn--copy     { background: var(--sv-navy); }
.sv-share-btn--pinterest { background: #E60023; }

.sv-share-btn .fab,
.sv-share-btn .fas { font-size: 14px; }


/* ==========================================================================
   19. FOOTER (.sv-footer)
   ========================================================================== */
.sv-footer {
  background: var(--sv-navy);
  color: rgba(255,255,255,.75);
  margin-top: 48px;
}

.sv-footer__top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 480px) { .sv-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .sv-footer__top { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sv-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }

/* Col: brand */
.sv-footer__brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.sv-footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: rgba(255,255,255,.65);
}

.sv-footer__socials {
  display: flex;
  gap: 10px;
}

.sv-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .2s ease;
}

.sv-social-icon:hover {
  background: var(--sv-red);
  color: var(--sv-white);
  transform: translateY(-2px);
}

/* Col: links */
.sv-footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--sv-white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.sv-footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sv-footer__link {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sv-footer__link:hover {
  color: var(--sv-white);
  padding-left: 4px;
}

.sv-footer__link .fas { font-size: 10px; color: var(--sv-amber); }

/* Newsletter */
.sv-newsletter { margin-top: 4px; }

.sv-newsletter__label {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
  line-height: 1.5;
}

.sv-newsletter__form {
  display: flex;
  gap: 8px;
}

.sv-newsletter__input {
  flex: 1;
  height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  color: var(--sv-white);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.sv-newsletter__input::placeholder { color: rgba(255,255,255,.35); }
.sv-newsletter__input:focus { border-color: var(--sv-red); background: rgba(255,255,255,.1); }

.sv-newsletter__btn {
  height: 40px;
  padding: 0 16px;
  background: var(--sv-red);
  color: var(--sv-white);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.sv-newsletter__btn:hover { background: var(--sv-red-dark); }

/* Footer bottom bar */
.sv-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px;
}

.sv-footer__bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

.sv-footer__payments {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sv-payment-icon {
  height: 22px;
  width: auto;
  opacity: .6;
  filter: brightness(0) invert(1);
}


/* ==========================================================================
   20. UTILITIES
   ========================================================================== */

/* Reading progress bar */
.sv-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--sv-red), var(--sv-orange));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* Back to top */
.sv-back-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--sv-navy);
  color: var(--sv-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--sv-shadow-md);
  cursor: pointer;
  border: none;
  z-index: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all .2s ease;
}

.sv-back-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sv-back-top:hover { background: var(--sv-red); transform: translateY(-2px); }

/* Toast notification */
.sv-toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.sv-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sv-navy);
  color: var(--sv-white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--sv-shadow-md);
  pointer-events: auto;
  animation: sv-toast-in .3s ease forwards;
  min-width: 220px;
  max-width: 360px;
}

.sv-toast--success { border-left: 3px solid var(--sv-green); }
.sv-toast--error   { border-left: 3px solid var(--sv-red); }
.sv-toast--info    { border-left: 3px solid #3B82F6; }

.sv-toast .fas { font-size: 14px; }
.sv-toast--success .fas { color: var(--sv-green); }
.sv-toast--error .fas   { color: var(--sv-red); }
.sv-toast--info .fas    { color: #3B82F6; }

.sv-toast--hiding { animation: sv-toast-out .3s ease forwards; }

@keyframes sv-toast-in {
  from { opacity: 0; transform: translateY(16px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sv-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(.95); }
}

/* Theme toggle */
.sv-theme-toggle {
  width: 40px;
  height: 22px;
  background: var(--sv-g200);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background .2s ease;
}

.sv-theme-toggle--dark { background: var(--sv-navy2); }

.sv-theme-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--sv-white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.sv-theme-toggle--dark::after { transform: translateX(18px); }

/* Skeleton loader */
.sv-skeleton {
  background: linear-gradient(90deg, var(--sv-g100) 25%, var(--sv-g200) 50%, var(--sv-g100) 75%);
  background-size: 200% 100%;
  animation: sv-skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes sv-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Section wrapper */
.sv-section {
  max-width: 1240px;
  margin: 36px auto;
  padding: 0 16px;
}

.sv-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sv-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sv-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-section__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--sv-red);
  border-radius: 2px;
}

.sv-section__more {
  font-size: 13px;
  color: var(--sv-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.sv-section__more:hover { text-decoration: underline; }

/* Lazy-load fade-in */
.sv-lazy-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.sv-lazy-fade--in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive layout helpers ---- */
.sv-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1240px) {
  .sv-container { padding: 0 24px; }
}

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

@media (max-width: 768px) {
  .sv-grid-3, .sv-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .sv-grid-2, .sv-grid-3, .sv-grid-4 { grid-template-columns: 1fr; }
}

/* Dark mode overrides for white backgrounds */
@media (prefers-color-scheme: dark) {
  .sv-product-card,
  .sv-widget,
  .sv-filter-sidebar,
  .sv-blog-card,
  .sv-toplist-card,
  .sv-rank-item,
  .sv-verdict,
  .sv-header,
  .sv-filter-bar,
  .sv-sticky-buy {
    background: var(--sv-white);
    border-color: var(--sv-border);
  }

  .sv-search__input { background: var(--sv-g50); color: var(--sv-text); }
  .sv-comp-table tbody tr:nth-child(even) { background: var(--sv-g50); }
  .sv-tabs__nav { border-color: var(--sv-border); }
}

/* Explicit dark theme via data-theme attribute */
:root[data-theme="dark"] .sv-product-card,
:root[data-theme="dark"] .sv-widget,
:root[data-theme="dark"] .sv-filter-sidebar,
:root[data-theme="dark"] .sv-blog-card,
:root[data-theme="dark"] .sv-toplist-card,
:root[data-theme="dark"] .sv-rank-item,
:root[data-theme="dark"] .sv-header,
:root[data-theme="dark"] .sv-filter-bar,
:root[data-theme="dark"] .sv-sticky-buy {
  background: var(--sv-white);
  border-color: var(--sv-border);
}

:root[data-theme="light"] .sv-product-card,
:root[data-theme="light"] .sv-widget,
:root[data-theme="light"] .sv-filter-sidebar,
:root[data-theme="light"] .sv-blog-card,
:root[data-theme="light"] .sv-toplist-card,
:root[data-theme="light"] .sv-rank-item,
:root[data-theme="light"] .sv-header,
:root[data-theme="light"] .sv-filter-bar,
:root[data-theme="light"] .sv-sticky-buy {
  background: #ffffff;
  border-color: #E8E8E8;
}
