/* Hot Tub Hero — Apple-Inspired Modern Design */

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --highlight-hover: #d63851;
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --text: #1d1d1f;
  --text-light: #6e6e73;
  --text-muted: #86868b;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --success: #00b894;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

.logo span {
  color: var(--highlight);
}

.search-bar {
  flex: 1;
  max-width: 480px;
  margin: 0 32px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-bar input:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3);
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  border: 1px solid var(--border-light);
}

.search-results.active {
  display: block;
  animation: fadeDown 0.2s var(--ease);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-item .result-category {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  padding: 7px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.header-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.header-btn.accent {
  border-color: var(--highlight);
  color: var(--highlight);
}

.header-btn.accent:hover {
  background: rgba(233, 69, 96, 0.12);
  color: #fff;
  border-color: var(--highlight);
}

.header-btn.signup {
  background: var(--highlight);
  color: #fff;
  border-color: var(--highlight);
}

.header-btn.signup:hover {
  background: var(--highlight-hover);
  border-color: var(--highlight-hover);
}

.compare-badge {
  background: var(--highlight);
  color: white;
  padding: 7px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: none;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.1px;
}

.compare-badge.active {
  display: flex;
}

.compare-badge:hover {
  background: var(--highlight-hover);
  transform: scale(1.04);
}

/* Category Navigation */
.category-nav {
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.category-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.cat-link {
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.1px;
}

.cat-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.cat-link.active {
  color: #fff;
  border-bottom-color: var(--highlight);
}

/* ===== MAIN CONTENT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #0a1628 100%);
  color: white;
  padding: 80px 48px;
  border-radius: var(--radius);
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -1.5px;
  line-height: 1.1;
  position: relative;
}

.hero p {
  font-size: 19px;
  opacity: 0.7;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.2px;
  position: relative;
}

/* ===== CATEGORY GRID ===== */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.category-card .cat-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.product-card-image {
  height: 220px;
  background: linear-gradient(145deg, #f5f5f7, #e8e8ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #c7c7cc;
  position: relative;
  overflow: hidden;
}

.product-card-image .compare-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 14px;
  z-index: 10;
}

.product-card-image .compare-check:hover {
  border-color: var(--highlight);
  background: #fff;
  transform: scale(1.1);
}

.product-card-image .compare-check.selected {
  background: var(--highlight);
  border-color: var(--highlight);
  color: white;
}

.product-card-body {
  padding: 18px 22px 22px;
}

.product-card-body .brand {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.8px;
}

.product-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 4px 0 10px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.product-card-body .price {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.product-card-body .price small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.product-card-body .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.rating .stars {
  color: #ff9500;
}

.product-card-body .quick-specs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-spec {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 980px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.product-image-main {
  background: linear-gradient(145deg, #f5f5f7, #e8e8ed);
  border-radius: var(--radius);
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: #c7c7cc;
  position: sticky;
  top: 120px;
}

.product-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.product-info .brand-name {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.product-info .detail-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.product-info .detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--text-light);
}

.product-info .description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight);
  color: white;
  padding: 15px 36px;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s var(--ease);
  border: none;
  cursor: pointer;
  letter-spacing: -0.1px;
}

.affiliate-btn:hover {
  background: var(--highlight-hover);
  transform: scale(1.04);
}

.affiliate-btn.secondary {
  background: transparent;
  color: var(--highlight);
  border: 1.5px solid var(--highlight);
  margin-left: 12px;
}

.affiliate-btn.secondary:hover {
  background: rgba(233, 69, 96, 0.06);
}

/* Spec Table */
.spec-section {
  margin-top: 48px;
}

.spec-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.5px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-table tr {
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.spec-table td {
  padding: 14px 20px;
  font-size: 14px;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 40%;
}

.spec-table td:last-child {
  color: var(--text-light);
}

/* ===== COMPARISON TABLE ===== */
.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.compare-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.compare-clear {
  background: none;
  border: 1.5px solid var(--border);
  padding: 9px 20px;
  border-radius: 980px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s var(--ease);
}

.compare-clear:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

.compare-table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  min-width: 180px;
}

.compare-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 13px;
  position: sticky;
  top: 0;
}

.compare-table th:first-child {
  background: var(--primary-light);
  min-width: 200px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.compare-table td:first-child {
  font-weight: 600;
  background: var(--bg);
  position: sticky;
  left: 0;
  z-index: 1;
}

.compare-table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}

.compare-table tr:nth-child(even) td:first-child {
  background: var(--border-light);
}

.compare-table .product-header {
  text-align: center;
  padding: 24px;
}

.compare-table .product-header .thumb {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 32px;
  color: #c7c7cc;
}

.compare-table .product-header h3 {
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}

.compare-table .product-header .compare-price {
  color: var(--highlight);
  font-weight: 700;
  font-size: 17px;
}

.compare-table .remove-compare {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.compare-table .remove-compare:hover {
  color: var(--highlight);
}

.compare-highlight {
  background: rgba(233, 69, 96, 0.04) !important;
  font-weight: 600;
  color: var(--highlight) !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--highlight);
}

.breadcrumb .sep {
  font-size: 10px;
}

/* ===== AD PLACEHOLDER ===== */
.ad-banner {
  background: var(--card-bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.ad-banner.sidebar {
  padding: 40px 20px;
}

.ad-banner.leaderboard {
  padding: 16px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 80px;
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
}

.affiliate-disclosure {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 560px;
  line-height: 1.5;
}

/* ===== SLIDESHOW ===== */
.slideshow {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 60%, #0a1628 100%);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.slideshow-viewport {
  position: relative;
  min-height: 360px;
}

.slide {
  display: none;
  animation: slideFadeIn 0.5s var(--ease);
}

.slide.active {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-image {
  flex: 0 0 300px;
  height: 280px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.slide-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.slide-content {
  flex: 1;
  color: white;
}

.slide-badge {
  display: inline-block;
  background: rgba(233, 69, 96, 0.9);
  color: white;
  padding: 5px 16px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.slide-brand {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.slide-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 420px;
}

.slide-price {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  background: var(--highlight);
  color: #fff;
  padding: 13px 32px;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.1px;
}

.slide-cta:hover {
  background: var(--highlight-hover);
  transform: scale(1.04);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.08);
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 20px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.slide-dot.active {
  background: white;
  transform: scale(1.2);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Hero Sub */
.hero-sub {
  text-align: center;
  padding: 36px 24px;
  margin-bottom: 28px;
}

.hero-sub h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-sub p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 14px;
  line-height: 1.5;
}

/* ===== IMAGE SUPPORT ===== */
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-card-image .img-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-image-main .img-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.compare-table .product-header .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xs);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease);
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--primary);
  box-shadow: var(--shadow-xl);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.empty-state p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== QUIZ ===== */
.hero-quiz-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 14px 36px;
  background: var(--highlight);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.1px;
  position: relative;
}

.hero-quiz-btn:hover {
  background: var(--highlight-hover);
  transform: scale(1.04);
}

.quiz-container {
  max-width: 620px;
  margin: 0 auto 48px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow);
}

.quiz-progress {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--highlight);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.quiz-step-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-question {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.quiz-option:hover {
  border-color: var(--highlight);
  background: rgba(233, 69, 96, 0.03);
  transform: translateY(-2px);
}

.quiz-option-icon {
  font-size: 26px;
}

.quiz-option-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.quiz-back {
  display: inline-block;
  margin-top: 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.quiz-back:hover {
  color: var(--text);
}

/* Quiz Results */
.quiz-results {
  margin-bottom: 24px;
}

.quiz-results-header {
  text-align: center;
  margin-bottom: 32px;
}

.quiz-results-header h1 {
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.quiz-results-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.quiz-restart {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 12px;
}

.quiz-restart .affiliate-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.quiz-restart .affiliate-btn.secondary:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

/* ===== EMAIL CAPTURE ===== */
.email-capture-box {
  max-width: 560px;
  margin: 48px auto;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.97) 0%, rgba(15, 52, 96, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.email-capture-box h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.email-capture-box > p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.email-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
}

.email-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.email-form input[type="email"]:focus {
  border-color: var(--highlight);
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

.email-form button {
  padding: 13px 24px;
  background: var(--highlight);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.email-form button:hover {
  background: var(--highlight-hover);
  transform: scale(1.04);
}

.email-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
}

.email-disclaimer a {
  color: var(--highlight);
  cursor: pointer;
  text-decoration: underline;
}

.email-success {
  padding: 24px;
  text-align: center;
}

.email-success-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.email-success h3 {
  margin-bottom: 6px;
  color: #fff;
}

.email-success p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* ===== STATIC PAGES ===== */
.static-page {
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.static-page h1 {
  font-size: 32px;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.8px;
}

.static-page h2 {
  font-size: 22px;
  margin: 32px 0 14px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.static-page h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--text);
}

.static-page p,
.static-page li {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.static-page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.static-page a {
  color: var(--highlight);
  text-decoration: underline;
  cursor: pointer;
}

/* ===== ADMIN AREA ===== */
.admin-login {
  max-width: 400px;
  margin: 48px auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.admin-login h1 {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.admin-login p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

.admin-login-form {
  display: flex;
  gap: 10px;
}

.admin-login-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-login-form input:focus {
  border-color: var(--highlight);
}

.admin-login-form button {
  padding: 13px 24px;
  background: var(--highlight);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.admin-login-form button:hover {
  background: var(--highlight-hover);
}

.admin-error {
  color: var(--highlight);
  font-size: 13px;
  margin-top: 12px;
}

.admin-dashboard {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h1 {
  font-size: 24px;
  letter-spacing: -0.3px;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.admin-btn {
  padding: 10px 22px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  transition: all 0.2s var(--ease);
}

.admin-btn:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

.admin-btn.primary {
  background: var(--highlight);
  color: white;
  border-color: var(--highlight);
}

.admin-btn.primary:hover {
  background: var(--highlight-hover);
}

.admin-btn.secondary {
  background: none;
}

.admin-btn.small {
  padding: 6px 16px;
  font-size: 12px;
  margin-top: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}

.admin-stat strong {
  display: block;
  font-size: 28px;
  color: var(--highlight);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.admin-stat span {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-filter label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.admin-filter select,
.admin-filter input {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-filter select:focus,
.admin-filter input:focus {
  border-color: var(--highlight);
}

.admin-filter input {
  flex: 1;
  min-width: 180px;
}

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

.admin-table thead {
  background: var(--bg);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(233, 69, 96, 0.02);
}

.admin-product-name {
  font-weight: 600;
  max-width: 250px;
}

.admin-edit-btn {
  padding: 6px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 980px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.admin-edit-btn:hover {
  background: var(--highlight);
}

.admin-empty {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
}

.admin-success-msg {
  background: #d4edda;
  color: #155724;
  padding: 14px 22px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  animation: fadeIn 0.3s var(--ease);
}

.admin-edit {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 900px;
}

.admin-edit h1 {
  font-size: 22px;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.admin-edit h2 {
  font-size: 17px;
  margin: 28px 0 14px;
  color: var(--text-light);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field.full-width {
  grid-column: 1 / -1;
}

.admin-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--highlight);
}

.admin-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-spec-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-spec-row input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.admin-spec-row input:focus {
  border-color: var(--highlight);
  outline: none;
}

.admin-spec-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.admin-spec-remove:hover {
  background: rgba(233, 69, 96, 0.08);
  color: var(--highlight);
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--card-bg);
  color: var(--text);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.35s var(--ease-spring), toastOut 0.3s var(--ease) 2.7s forwards;
  border-left: 4px solid var(--highlight);
  max-width: 360px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ===== USER MENU / AUTH HEADER ===== */
#user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-greeting {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-greeting a,
.user-greeting span[onclick] {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.user-greeting a:hover,
.user-greeting span[onclick]:hover {
  opacity: 0.7;
}

.login-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.login-link:hover {
  color: #fff;
}

/* ===== AUTH FORMS (Login / Signup) ===== */
.auth-container {
  max-width: 440px;
  margin: 80px auto;
  padding: 0 20px;
  animation: fadeIn 0.4s var(--ease);
}

.auth-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.auth-form h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.auth-form p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-error {
  background: rgba(233, 69, 96, 0.08);
  color: var(--highlight);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-switch a,
.auth-switch span[onclick] {
  color: var(--highlight);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-switch a:hover,
.auth-switch span[onclick]:hover {
  opacity: 0.8;
}

/* ===== PROFILE PAGE ===== */
.profile-container {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 20px;
  animation: fadeIn 0.4s var(--ease);
}

.profile-container h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-card div h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-card div p {
  color: var(--text-muted);
  font-size: 14px;
}

.profile-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.profile-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.profile-deal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.profile-deal-item:last-child {
  border-bottom: none;
}

/* ===== NOTIFICATION PREFERENCES ===== */
.notification-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.notification-toggle label {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-toggle input[type="checkbox"] {
  position: relative;
  width: 48px;
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.25s ease;
  outline: none;
  flex-shrink: 0;
}

.notification-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease-spring);
}

.notification-toggle input[type="checkbox"]:checked {
  background: var(--success);
}

.notification-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.notification-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.notif-cat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg);
  border: 1.5px solid var(--border-light);
  transition: all 0.2s ease;
}

.notif-cat-label:has(input:checked) {
  border-color: var(--highlight);
  background: rgba(233, 69, 96, 0.06);
  color: var(--highlight);
}

.notif-cat-label input[type="checkbox"] {
  display: none;
}

/* ===== DEALS CAROUSEL (Homepage) ===== */
.deals-carousel {
  margin-bottom: 48px;
}

.deals-carousel h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.deals-carousel .deals-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.deals-carousel .deals-scroll::-webkit-scrollbar {
  height: 4px;
}

.deals-carousel .deals-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.deals-carousel .deal-card-compact {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* ===== DEALS PAGE ===== */
.deals-header {
  margin-bottom: 28px;
}

.deals-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.deals-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.deals-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.deals-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 980px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== CATEGORY TOOLBAR (always visible) ===== */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-result-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Filters toggle button */
.cat-filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-filter-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-filter-toggle.open {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.cat-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--highlight);
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.cat-filter-toggle.open .cat-filter-badge {
  background: rgba(255,255,255,0.3);
}

.cat-toggle-chevron {
  font-size: 9px;
  opacity: 0.6;
}

.cat-filter-clear-inline {
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-filter-clear-inline:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

/* Sort dropdown in toolbar */
.cat-sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text);
  background: var(--card-bg);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.cat-sort-select:focus { border-color: var(--primary); }

/* ===== CATEGORY FILTER PANEL (collapsible) ===== */
.cat-filter-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
  margin-bottom: 0;
}

.cat-filter-panel.open {
  max-height: 800px;
  opacity: 1;
  margin-bottom: 20px;
}

.cat-filter-panel-inner {
  padding: 0;
}

/* Every filter row */
.cat-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Rows that hold multiple sub-groups side-by-side */
.cat-filter-row--multi {
  gap: 0;
  padding: 0;
}

.cat-filter-row--multi .cat-filter-group {
  flex: 1;
  min-width: 180px;
  padding: 12px 18px;
  border-right: 1px solid var(--border);
}

.cat-filter-row--multi .cat-filter-group:last-child {
  border-right: none;
}

/* Inline label (Brand / Where to Buy rows) */
.cat-filter-label--row {
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 90px;
}

.cat-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.brand-pills {
  flex-wrap: wrap;
  max-height: 76px;
  overflow-y: auto;
}

.filter-pill.small {
  padding: 5px 12px;
  font-size: 12px;
}

/* ── Collapsible filter sections (fs) ── */
.fs {
  border-bottom: 1px solid var(--border);
}

.fs--last {
  border-bottom: none;
}

.fs-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 8px;
  transition: background 0.15s ease;
}

.fs-header:hover {
  background: var(--bg);
}

.fs-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.fs-chevron {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  transform: rotate(0deg);
  line-height: 1;
}

.fs-chevron.open {
  transform: rotate(90deg);
}

.fs-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.fs-body.open {
  max-height: 300px;
}

.fs-body-inner {
  padding: 4px 18px 14px;
}

.cat-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

@media (max-width: 768px) {
  .cat-toolbar { gap: 8px; }
  .cat-result-count { display: none; }
  .fs-header { padding: 12px 14px; }
  .fs-body-inner { padding: 4px 14px 14px; }
}

.deals-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.deals-sort select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text);
  background: var(--card-bg);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.deals-sort select:focus {
  border-color: var(--highlight);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

/* ===== DEAL CARD ===== */
.deal-card,
.deal-card-compact {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.deal-card:hover,
.deal-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.deal-card-top {
  padding: 20px 20px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-badge-discount {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 980px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.deal-badge-store {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.deal-badge-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.deal-card-title {
  padding: 14px 20px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.2px;
}

.deal-card-prices {
  padding: 10px 20px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.deal-price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-price-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--highlight);
  letter-spacing: -0.5px;
}

.deal-card-meta {
  padding: 14px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  margin-top: 14px;
}

.deal-votes-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deal-vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
  color: var(--text-muted);
  line-height: 1;
}

.deal-vote-btn:hover {
  background: var(--bg);
  color: var(--highlight);
}

.deal-vote-btn.voted {
  color: var(--highlight);
}

.deal-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

.deal-comments-count {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-expiry {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.deal-expiry.expiring-soon {
  color: #e17055;
  font-weight: 600;
}

/* ===== DEAL DETAIL ===== */
.deal-detail {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 20px;
  animation: fadeIn 0.4s var(--ease);
}

.deal-detail-main {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.deal-detail-main h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.deal-detail-main p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.deal-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.deal-detail-prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.deal-detail-prices .deal-price-original {
  font-size: 18px;
}

.deal-detail-prices .deal-price-current {
  font-size: 32px;
}

.deal-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.deal-detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-vote-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.deal-vote-btn-lg {
  background: none;
  border: 2px solid var(--border);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  color: var(--text-muted);
}

.deal-vote-btn-lg:hover {
  border-color: var(--highlight);
  color: var(--highlight);
  background: rgba(233, 69, 96, 0.05);
}

.deal-vote-btn-lg.voted {
  border-color: var(--highlight);
  color: var(--highlight);
  background: rgba(233, 69, 96, 0.08);
}

.deal-score-lg {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  min-width: 40px;
  text-align: center;
}

/* ===== DEAL COMMENTS ===== */
.deal-comments-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.deal-comments-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.deal-comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.deal-comment:last-of-type {
  border-bottom: none;
}

.deal-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.deal-comment-header strong {
  font-size: 14px;
  font-weight: 600;
}

.deal-comment-header span {
  font-size: 12px;
  color: var(--text-muted);
}

.deal-comment p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.deal-comment-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.deal-comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 12px;
}

.deal-comment-form textarea:focus {
  border-color: var(--highlight);
}

/* ===== DEAL SUBMIT FORM ===== */
.deal-submit-form {
  max-width: 640px;
  margin: 48px auto;
  animation: fadeIn 0.4s var(--ease);
}

.deal-submit-form h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 22px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text-muted);
  white-space: nowrap;
  border: none;
  background: none;
}

.admin-tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.admin-tab.active {
  background: var(--card-bg);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-status-badge.pending {
  background: rgba(253, 203, 110, 0.15);
  color: #e17055;
}

.admin-status-badge.approved {
  background: rgba(0, 184, 148, 0.1);
  color: #00b894;
}

.admin-status-badge.rejected {
  background: rgba(233, 69, 96, 0.08);
  color: var(--highlight);
}

.admin-status-badge.active {
  background: rgba(0, 184, 148, 0.1);
  color: #00b894;
}

.admin-status-badge.suspended {
  background: rgba(233, 69, 96, 0.08);
  color: var(--highlight);
}

/* ===== DEALER CARDS / FIND A DEALER ===== */
.find-dealer-search {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.find-dealer-search input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 15px;
  color: var(--text);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.2s ease;
}

.find-dealer-search input:focus {
  border-color: var(--highlight);
}

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.dealer-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}

.dealer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.dealer-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.dealer-location {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dealer-card-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dealer-card-cats span {
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dealer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.dealer-contact a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 500;
}

.dealer-contact a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE — Mobile ===== */

/* Small phones (< 480px) */
@media (max-width: 480px) {
  body { font-size: 15px; }

  .header-top {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo { font-size: 17px; }

  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .search-bar input {
    padding: 10px 14px 10px 36px;
    font-size: 14px;
    border-radius: 10px;
  }

  .compare-badge {
    padding: 6px 12px;
    font-size: 11px;
  }

  .header-btn:not(.signup) {
    display: none;
  }

  .header-btn.signup {
    padding: 6px 12px;
    font-size: 11px;
  }

  .category-nav-inner {
    padding: 0 8px;
    justify-content: flex-start;
  }

  .cat-link {
    padding: 10px 14px;
    font-size: 12px;
  }

  .container {
    padding: 16px;
  }

  /* Slideshow */
  .slide.active {
    flex-direction: column;
    padding: 28px 20px 12px;
    gap: 16px;
  }

  .slide-image {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .slide-title { font-size: 22px; }
  .slide-price { font-size: 26px; margin-bottom: 14px; }
  .slide-desc { font-size: 14px; }
  .slide-cta { padding: 11px 24px; font-size: 14px; }
  .slide-arrow { width: 36px; height: 36px; font-size: 18px; }
  .slideshow-viewport { min-height: auto; }

  /* Hero */
  .hero {
    padding: 40px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
  }

  .hero h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .hero p { font-size: 15px; }
  .hero-quiz-btn { padding: 12px 28px; font-size: 15px; }
  .hero-sub h2 { font-size: 22px; }
  .hero-sub p { font-size: 14px; }

  /* Sections */
  .section-title { font-size: 22px; margin-bottom: 16px; }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
  }

  .category-card {
    padding: 20px 14px;
    border-radius: var(--radius-xs);
  }

  .category-card .cat-icon { font-size: 28px; margin-bottom: 8px; }
  .category-card h3 { font-size: 13px; }
  .category-card p { font-size: 11px; }

  /* Product Grid */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .product-card-image { height: 200px; }
  .product-card-body { padding: 14px 16px 18px; }
  .product-card-body h3 { font-size: 16px; }
  .product-card-body .price { font-size: 19px; }

  /* Product Detail */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-image-main {
    height: 240px;
    font-size: 60px;
    position: static;
  }

  .product-info h1 { font-size: 24px; }
  .product-info .detail-price { font-size: 28px; }
  .product-info .description { font-size: 14px; }

  .affiliate-btn {
    padding: 14px 24px;
    font-size: 15px;
    display: block;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
  }

  .affiliate-btn.secondary {
    margin-left: 0;
  }

  /* Spec Table */
  .spec-table td { padding: 12px 14px; font-size: 13px; }
  .spec-table td:first-child { width: 42%; }
  .spec-section h2 { font-size: 20px; }

  /* Compare */
  .compare-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .compare-header h1 { font-size: 24px; }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 12px;
    min-width: 130px;
  }

  .compare-table th:first-child { min-width: 100px; }
  .compare-table .product-header { padding: 12px; }
  .compare-table .product-header .thumb { width: 56px; height: 56px; font-size: 22px; }

  /* Breadcrumb & Misc */
  .breadcrumb { font-size: 12px; margin-bottom: 18px; flex-wrap: wrap; }
  .ad-banner { padding: 14px; font-size: 11px; margin-bottom: 16px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  footer { padding: 32px 16px 20px; margin-top: 40px; }

  /* Quiz */
  .quiz-container { padding: 24px 18px 20px; }
  .quiz-question { font-size: 20px; }
  .quiz-options { grid-template-columns: 1fr; gap: 10px; }
  .quiz-option { padding: 14px 16px; }

  /* Email */
  .email-capture-box { padding: 28px 18px 24px; margin: 32px auto; }
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }

  /* Static */
  .static-page { padding: 28px 20px; }
  .static-page h1 { font-size: 24px; }

  /* Admin */
  .admin-dashboard { padding: 18px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-filter { flex-direction: column; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-edit { padding: 20px; }
  .admin-login { padding: 28px 20px; margin: 24px auto; }
  .admin-login-form { flex-direction: column; }
  .admin-header { flex-direction: column; align-items: flex-start; }

  /* New components — small phone */
  .deals-header h1 { font-size: 26px; }
  .deals-grid { grid-template-columns: 1fr; }
  .deals-controls { flex-direction: column; align-items: stretch; }
  .deals-filter-pills { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .deal-card-compact { flex: 0 0 260px; }
  .deal-card-title { font-size: 15px; padding: 10px 16px 0; }
  .deal-card-top { padding: 16px 16px 0; }
  .deal-card-prices { padding: 8px 16px 0; }
  .deal-card-meta { padding: 12px 16px 14px; }
  .deal-price-current { font-size: 19px; }
  .deal-detail { margin: 24px auto; }
  .deal-detail-main { padding: 20px; }
  .deal-detail-main h1 { font-size: 20px; }
  .deal-detail-prices .deal-price-current { font-size: 24px; }
  .deal-vote-section { padding: 14px; gap: 10px; }
  .deal-vote-btn-lg { width: 40px; height: 40px; font-size: 18px; }
  .deal-score-lg { font-size: 22px; }
  .deal-comments-section { padding: 20px; }
  .auth-container { margin: 40px auto; }
  .auth-form { padding: 28px 20px; }
  .auth-form h2 { font-size: 24px; }
  .auth-field-row { grid-template-columns: 1fr; }
  .profile-container { margin: 28px auto; }
  .profile-container h2 { font-size: 26px; }
  .profile-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profile-section { padding: 20px; }
  .dealer-grid { grid-template-columns: 1fr; }
  .dealer-card { padding: 20px; }
  .find-dealer-search { flex-direction: column; }
  .admin-tabs { gap: 2px; padding: 3px; }
  .admin-tab { padding: 8px 14px; font-size: 13px; }
  #toast-container { right: 12px; left: 12px; top: auto; bottom: 24px; }
  .toast { max-width: 100%; }
  .notification-cats { gap: 8px; }
  .notif-cat-label { padding: 5px 10px; font-size: 12px; }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .header-top {
    height: auto;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo { font-size: 19px; }

  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .header-btn:not(.signup) { display: none; }

  .container { padding: 24px 20px; }

  .slide.active {
    flex-direction: column;
    padding: 32px 28px 16px;
    gap: 20px;
  }

  .slide-image { flex: none; width: 100%; height: 240px; }
  .slide-title { font-size: 26px; }
  .slideshow-viewport { min-height: auto; }

  .hero { padding: 48px 28px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }

  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card-image { height: 190px; }

  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-image-main { height: 300px; position: static; }

  .spec-table td { padding: 12px 16px; font-size: 13px; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .quiz-options { grid-template-columns: 1fr 1fr; }
  .email-form { flex-direction: row; }

  .admin-form-grid { grid-template-columns: 1fr; }

  /* New components — tablet */
  .deals-grid { grid-template-columns: 1fr; }
  .deals-controls { flex-direction: column; align-items: stretch; }
  .deals-filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .deal-detail-main { padding: 24px; }
  .deal-detail-main h1 { font-size: 22px; }
  .deal-detail-prices .deal-price-current { font-size: 26px; }
  .deal-vote-section { flex-wrap: wrap; }
  .auth-form { padding: 32px 24px; }
  .auth-field-row { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; text-align: center; }
  .dealer-grid { grid-template-columns: 1fr; }
  .admin-tabs { overflow-x: auto; }
}

/* Small desktop / large tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 40px; }
}

/* Large desktop (1025px+) */
@media (min-width: 1025px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Admin table scroll on small screens */
@media (max-width: 600px) {
  .admin-product-list { overflow-x: auto; }
  .admin-table { min-width: 560px; }
}

/* Touch devices — larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .cat-link { padding: 12px 16px; }
  .compare-check { width: 36px; height: 36px; }
  .slide-arrow { width: 48px; height: 48px; }
}

/* ============================================================
   ARTICLES & TIPS SECTION
   ============================================================ */

.articles-header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.articles-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.articles-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.articles-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.articles-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.article-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.article-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  flex-shrink: 0;
}
.articles-grid-sm .article-card-img {
  height: 150px;
}
.article-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.article-cat-pill {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-date, .article-read-time, .article-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.article-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}
.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}
.article-tag {
  background: rgba(var(--primary-rgb, 59,130,246),0.12);
  color: var(--highlight);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* Article Detail */
.article-detail {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 4rem;
}
.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0 0.5rem;
}
.article-breadcrumb span {
  cursor: pointer;
  transition: color 0.15s;
}
.article-breadcrumb span:hover {
  color: var(--highlight);
}
.article-hero {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  margin: 1rem 0;
}
.article-detail-inner {
  padding: 0;
}
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.article-detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 0.5rem 0;
}
.article-detail-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.article-content {
  line-height: 1.75;
  color: var(--text);
  font-size: 1rem;
  margin: 1.5rem 0;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--highlight);
}
.article-content p {
  margin-bottom: 1rem;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-content li {
  margin-bottom: 0.4rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.article-content th, .article-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--card-bg);
  font-weight: 700;
  color: var(--highlight);
}
.article-content strong {
  color: var(--text);
  font-weight: 700;
}
.article-cta-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}
.article-cta-box p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-articles h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-detail-title {
    font-size: 1.5rem;
  }
  .article-hero {
    height: 220px;
  }
}

/* ============================================================
   PRODUCT PAGE — TOP ACCESSORIES STRIP
   ============================================================ */

.accessory-section {
  margin-top: 48px;
}

.accessory-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.accessory-strip::-webkit-scrollbar {
  height: 6px;
}
.accessory-strip::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}
.accessory-strip::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.accessory-card {
  flex: 0 0 220px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.accessory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.accessory-card-img {
  width: 100%;
  height: 150px;
  background: var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accessory-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-img-fallback {
  font-size: 2.5rem;
}

.accessory-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.accessory-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.accessory-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.accessory-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--highlight);
}
.accessory-rating {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.accessory-btn {
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.accessory-btn:hover {
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 768px) {
  .accessory-card {
    flex: 0 0 180px;
  }
  .accessory-card-img {
    height: 120px;
  }
}

/* ============================================================
   MEDICAL DISCLAIMER BOX
   ============================================================ */

.medical-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-left: 4px solid #eab308;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}
.disclaimer-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.medical-disclaimer strong {
  color: #92600a;
}

@media (prefers-color-scheme: dark) {
  .medical-disclaimer {
    background: rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.3);
  }
}

/* ============================================================
   ADMIN — PRODUCT IMAGE UPLOAD PANEL
   ============================================================ */

.admin-img-panel {
  margin-top: 0.75rem;
}

.admin-img-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.admin-img-toggle:hover {
  background: rgba(255,255,255,0.13);
  color: var(--text);
}

.admin-img-form {
  margin-top: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.admin-img-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.admin-img-tab {
  flex: 1;
  padding: 5px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-img-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-img-url-input {
  width: 100%;
  background: var(--input-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 0.82rem;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}
.admin-img-url-input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-img-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-img-save {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-img-save:hover { background: var(--primary-hover, #2563eb); }

.admin-img-reset {
  background: transparent;
  color: var(--danger, #ef4444);
  border: 1px solid var(--danger, #ef4444);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-img-reset:hover { background: rgba(239,68,68,0.08); }

.admin-img-file-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}
.admin-img-file-label input[type="file"] {
  font-size: 0.8rem;
  color: var(--text);
}

.admin-img-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* ============================================================
   ADMIN — ARTICLES TAB
   ============================================================ */

.admin-articles-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-articles-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-article-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.admin-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.admin-article-row-info { flex: 1; min-width: 0; }
.admin-article-row-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.admin-article-row-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.admin-article-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.admin-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.admin-badge.new { background: #22c55e; color: #fff; }
.admin-badge.edited { background: #f59e0b; color: #fff; }

.admin-btn.small {
  padding: 4px 10px;
  font-size: 0.75rem;
}
.admin-btn.danger {
  background: transparent;
  color: var(--danger, #ef4444);
  border: 1px solid var(--danger, #ef4444);
}
.admin-btn.danger:hover { background: rgba(239,68,68,0.08); }

/* Article edit form */
.admin-article-form-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 3rem;
}
.admin-article-form-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.admin-article-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-form-row.two-col {
  flex-direction: row;
  gap: 1rem;
}
.admin-form-row.two-col > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-form-row input,
.admin-form-row select,
.admin-form-row textarea {
  background: var(--input-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.admin-form-row textarea {
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}
.admin-form-row input:focus,
.admin-form-row select:focus,
.admin-form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.admin-form-row input[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}
.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ============================================================
   ADMIN — STATS DASHBOARD
   ============================================================ */

.stats-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stat-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.stat-up { color: #22c55e !important; }
.stat-down { color: #ef4444 !important; }

.stats-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Bar chart */
.stats-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-bottom: 0;
}
.stats-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.stats-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: rgba(255,255,255,0.03);
  border-radius: 4px 4px 0 0;
}
.stats-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}
.stats-bar-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  transform: rotate(-35deg);
  transform-origin: top center;
  margin-top: 4px;
}
.stats-bar-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stats-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.stats-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.stats-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}
.stats-table tr:last-child td { border-bottom: none; }

.stats-reset {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .stats-two-col { grid-template-columns: 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row.two-col { flex-direction: column; }
  .admin-article-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   DEALS — Start/End Date Pills & Expiry Badges
   ============================================================ */

.deal-expiry-pill {
  display: inline-block;
  background: rgba(59,130,246,0.12);
  color: var(--highlight);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.deal-expiry-pill.urgent {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}
.deal-expired-badge {
  display: inline-block;
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.deal-date-range {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ============================================================
   DEALERS — Tier Badges & Card Variants
   ============================================================ */

.dealer-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.dealer-tier-badge.dealer {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.dealer-tier-badge.silver {
  background: rgba(148,163,184,0.15);
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.4);
}
.dealer-tier-badge.gold {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.4);
}

.dealer-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.dealer-card-header h3 { margin: 0; }

.dealer-card-gold {
  border-color: rgba(245,158,11,0.35) !important;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.2);
}
.dealer-card-silver {
  border-color: rgba(148,163,184,0.35) !important;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.15);
}

.active-tier {
  outline: 2px solid var(--highlight) !important;
}

/* Admin image upload */
.admin-media-section { margin-bottom: 24px; }
.admin-media-block { display: flex; flex-direction: column; gap: 10px; }
.admin-media-block label { font-weight: 600; font-size: 14px; color: var(--text-muted); }
.admin-image-preview { margin-bottom: 8px; }
.admin-image-preview img { max-width: 220px; max-height: 160px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); object-fit: cover; }
.admin-image-controls { display: flex; flex-direction: column; gap: 8px; }
.admin-image-controls input[type="text"] { width: 100%; padding: 8px 12px; background: var(--surface); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--text); font-size: 14px; }
.admin-image-upload-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.admin-image-upload-row input[type="file"] { font-size: 13px; color: var(--text); cursor: pointer; }
.admin-image-badge { font-size: 12px; color: var(--accent); font-weight: 500; }
