/* ===== PriceComparison.it - Global Styles ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Geist:wght@400;500;600;700&display=swap');

/* CSS Variables from Design System */
:root {
  /* Colors - Light Mode */
  --primary: #FF8400;
  --primary-foreground: #111111;
  --background: #F2F3F0;
  --foreground: #111111;
  --card: #FFFFFF;
  --card-foreground: #111111;
  --border: #CBCCC9;
  --muted: #F2F3F0;
  --muted-foreground: #666666;
  --secondary: #E7E8E5;
  --secondary-foreground: #111111;
  --destructive: #D93C15;
  --accent: #F2F3F0;
  --accent-foreground: #111111;
  --ring: #666666;
  --input: #CBCCC9;
  --white: #FFFFFF;
  --black: #000000;

  /* Status Colors */
  --color-success: #DFE6E1;
  --color-success-foreground: #004D1A;
  --color-warning: #E9E3D8;
  --color-warning-foreground: #804200;
  --color-error: #E5DCDA;
  --color-error-foreground: #8C1C00;
  --color-info: #DFDFE6;
  --color-info-foreground: #000066;

  /* Typography */
  --font-primary: 'JetBrains Mono', monospace;
  --font-secondary: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Border Radius */
  --radius-m: 16px;
  --radius-pill: 999px;
  --radius-none: 0px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #111111;
    --foreground: #FFFFFF;
    --card: #1A1A1A;
    --card-foreground: #FFFFFF;
    --border: #2E2E2E;
    --muted: #2E2E2E;
    --muted-foreground: #B8B9B6;
    --secondary: #2E2E2E;
    --secondary-foreground: #FFFFFF;
    --accent: #111111;
    --accent-foreground: #F2F3F0;
    --destructive: #FF5C33;
    --input: #2E2E2E;
    --color-success: #222924;
    --color-success-foreground: #B6FFCE;
    --color-warning: #291C0F;
    --color-warning-foreground: #FF8400;
    --color-error: #24100B;
    --color-error-foreground: #FF5C33;
    --color-info: #222229;
    --color-info-foreground: #B2B2FF;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ===== Typography ===== */
.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

/* ===== Layout ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header__logo-icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.header__logo-text {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--foreground);
  font-weight: 500;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__mobile-menu {
  display: none;
  color: var(--foreground);
  width: 24px;
  height: 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn--outline:hover {
  background-color: var(--secondary);
}

.btn--ghost {
  background: transparent;
  color: var(--foreground);
}

.btn--ghost:hover {
  background-color: var(--secondary);
}

.btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  height: 56px;
  padding: 0 8px 0 24px;
  width: 100%;
  max-width: 700px;
}

.search-bar__icon {
  color: var(--muted-foreground);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  padding: 0 12px;
  font-size: 16px;
  color: var(--foreground);
}

.search-bar__input::placeholder {
  color: var(--muted-foreground);
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--card);
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  max-width: 800px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 700px;
  line-height: 1.6;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.hero__trust-item i {
  color: var(--primary);
}

/* ===== Section Common ===== */
.section {
  padding: 64px 48px;
}

.section--card {
  background-color: var(--card);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section__title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
}

.section__link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.section__link:hover {
  opacity: 0.8;
}

/* ===== Category Cards ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  height: 160px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 132, 0, 0.1);
}

.category-card__icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.category-card__name {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.category-card__count {
  font-size: 12px;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== Deal Cards ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.deal-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.deal-card:hover {
  border-color: var(--primary);
}

.deal-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--secondary);
}

.deal-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-card__name {
  font-size: 15px;
  font-weight: 600;
}

.deal-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-card__price {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

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

.deal-card__shop {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ===== Badge / Label ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.badge--orange {
  background-color: var(--color-warning);
  color: var(--color-warning-foreground);
}

.badge--success {
  background-color: var(--color-success);
  color: var(--color-success-foreground);
}

.badge--secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* ===== How It Works ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.how-step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step__title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
}

.how-step__desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 48px;
}

.footer__top {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
}

.footer__brand {
  width: 300px;
  flex-shrink: 0;
}

.footer__brand-name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer__columns {
  display: flex;
  flex: 1;
  gap: 48px;
}

.footer__col-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-links a {
  font-size: 13px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer__col-links a:hover {
  color: var(--foreground);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 12px;
  color: var(--muted-foreground);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--foreground);
}

/* Simple mobile footer */
.footer--simple {
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 48px;
  font-size: 12px;
}

.breadcrumb a {
  color: var(--primary);
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb__separator {
  color: var(--muted-foreground);
}

.breadcrumb__current {
  color: var(--muted-foreground);
}

/* ===== Filter Sidebar (SERP) ===== */
.serp-layout {
  display: flex;
  gap: 32px;
  padding: 32px 48px;
}

.serp-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
}

.filter-section__title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.filter-section__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--foreground);
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.filter-option input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.serp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Result Card (SERP) ===== */
.result-card {
  display: flex;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.result-card:hover {
  border-color: var(--primary);
}

.result-card__image {
  width: 200px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--secondary);
}

.result-card__body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-card__name {
  font-size: 16px;
  font-weight: 600;
}

.result-card__price {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.result-card__meta {
  font-size: 13px;
  color: var(--muted-foreground);
}

.result-card__rating {
  font-size: 13px;
  color: var(--primary);
}

.result-card__actions {
  margin-top: auto;
}

/* ===== Chips / Subcategory Tags ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--primary);
}

.chip--active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* ===== Brand Row ===== */
.brands-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-m);
  background-color: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s;
  cursor: pointer;
}

.brand-item:hover {
  border-color: var(--primary);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--primary);
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--secondary);
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__name {
  font-size: 14px;
  font-weight: 600;
}

.product-card__price {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.product-card__offers {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ===== Category Hero ===== */
.category-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  background-color: var(--card);
  padding: 0 48px;
  height: 200px;
}

.category-hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-hero__title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
}

.category-hero__desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.category-hero__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.category-hero__image {
  width: 300px;
  height: 160px;
  border-radius: var(--radius-m);
  object-fit: cover;
  background-color: var(--secondary);
}

/* ===== SEO Content ===== */
.seo-content {
  background-color: var(--card);
  padding: 32px 48px;
}

.seo-content__title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.seo-content__text {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== Product Hero ===== */
.product-hero {
  display: flex;
  gap: 32px;
  background-color: var(--card);
  padding: 32px 48px;
}

.product-hero__image {
  width: 400px;
  height: 350px;
  border-radius: var(--radius-m);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--secondary);
}

.product-hero__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-hero__name {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
}

.product-hero__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.product-hero__stars {
  color: var(--primary);
}

.product-hero__rating-text {
  color: var(--muted-foreground);
}

/* ===== Price Box ===== */
.price-box {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-box__label {
  font-size: 12px;
  color: var(--muted-foreground);
}

.price-box__value {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.price-box__from {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ===== Comparison Table ===== */
.comparison-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: var(--card);
}

.comparison-table__row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table__row:last-child {
  border-bottom: none;
}

.comparison-table__row--header {
  background-color: var(--secondary);
  font-weight: 600;
  font-size: 12px;
  padding: 12px 16px;
}

.comparison-table__row--best {
  background-color: var(--color-success);
}

.comparison-table__store {
  flex: 1;
  font-size: 13px;
}

.comparison-table__store--best {
  font-weight: 600;
}

.comparison-table__price {
  width: 100px;
  text-align: right;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
}

.comparison-table__price--best {
  color: var(--primary);
  font-weight: 700;
}

.comparison-table__shipping {
  width: 80px;
  text-align: right;
  font-size: 12px;
  color: var(--muted-foreground);
}

.comparison-table__action {
  width: 120px;
  text-align: right;
}

/* ===== Price History ===== */
.price-history {
  background-color: var(--card);
  padding: 32px 48px;
}

.price-history__title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.price-history__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.tab {
  padding: 8px 16px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.tab--active {
  color: var(--foreground);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.chart-placeholder {
  width: 100%;
  height: 250px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.chart-placeholder__icon {
  color: var(--primary);
  width: 48px;
  height: 48px;
}

.chart-placeholder__label {
  font-size: 14px;
  color: var(--muted-foreground);
}

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

.stat-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card__label {
  font-size: 12px;
  color: var(--muted-foreground);
}

.stat-card__value {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
}

/* ===== Specs Table ===== */
.specs-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.specs-table__row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.specs-table__row:last-child {
  border-bottom: none;
}

.specs-table__row:nth-child(odd) {
  background-color: var(--secondary);
}

.specs-table__label {
  width: 200px;
  font-size: 13px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.specs-table__value {
  flex: 1;
  font-size: 13px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}

.pagination__item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-m);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination__item--active {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
}

.pagination__item:not(.pagination__item--active):hover {
  background-color: var(--secondary);
}

/* ===== SERP Info Bar ===== */
.serp-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 8px 0;
}

.serp-info__count {
  font-size: 13px;
  color: var(--muted-foreground);
}

.serp-info__sort {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* ===== Filter Button (Mobile/Tablet) ===== */
.filter-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-m);
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Responsive ===== */

/* Tablet - 768px */
@media (max-width: 1024px) {
  .header {
    height: 56px;
    padding: 0 24px;
  }

  .header__nav {
    display: none;
  }

  .header__mobile-menu {
    display: block;
  }

  .header__logo-text {
    font-size: 14px;
  }

  .header__logo-icon {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 48px 24px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__trust {
    gap: 24px;
  }

  .search-bar {
    max-width: 100%;
    height: 48px;
  }

  .section {
    padding: 40px 24px;
  }

  .section__title {
    font-size: 22px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .breadcrumb {
    padding: 12px 24px;
  }

  .serp-layout {
    padding: 24px;
  }

  .serp-sidebar {
    display: none;
  }

  .result-card__image {
    width: 150px;
    height: 150px;
  }

  .category-hero {
    flex-direction: column;
    height: auto;
    padding: 32px 24px;
    gap: 24px;
  }

  .category-hero__image {
    width: 100%;
    height: 180px;
  }

  .brands-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }

  .product-hero__image {
    width: 100%;
    height: 280px;
  }

  .product-hero__name {
    font-size: 24px;
  }

  .seo-content,
  .price-history {
    padding: 32px 24px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__brand {
    width: 100%;
  }
}

/* Mobile - 375px */
@media (max-width: 480px) {
  .header {
    height: 52px;
    padding: 0 16px;
  }

  .header__logo-text {
    font-size: 13px;
  }

  .header__logo-icon {
    width: 18px;
    height: 18px;
  }

  .hero {
    padding: 40px 16px;
    gap: 20px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__trust {
    flex-direction: column;
    gap: 12px;
  }

  .search-bar {
    height: 44px;
  }

  .search-bar__input {
    font-size: 13px;
  }

  .section {
    padding: 32px 16px;
  }

  .section__title {
    font-size: 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    flex-direction: row;
    height: auto;
    justify-content: flex-start;
    padding: 14px 16px;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    padding: 10px 16px;
    gap: 6px;
    font-size: 11px;
  }

  .serp-layout {
    flex-direction: column;
    padding: 0 16px 16px;
    gap: 12px;
  }

  .result-card {
    flex-direction: row;
  }

  .result-card__image {
    width: 100px;
    height: 120px;
  }

  .result-card__body {
    padding: 12px;
    gap: 6px;
  }

  .result-card__name {
    font-size: 13px;
  }

  .result-card__price {
    font-size: 16px;
  }

  .category-hero {
    padding: 24px 16px;
    gap: 16px;
  }

  .category-hero__title {
    font-size: 24px;
  }

  .category-hero__image {
    height: 150px;
  }

  .brands-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .brand-item {
    font-size: 12px;
    padding: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    padding: 20px 16px;
    gap: 16px;
  }

  .product-hero__image {
    height: 240px;
  }

  .product-hero__name {
    font-size: 20px;
  }

  .price-box__value {
    font-size: 24px;
  }

  .comparison-table__action {
    display: none;
  }

  .comparison-table__price {
    width: 65px;
    font-size: 13px;
  }

  .comparison-table__shipping {
    width: 50px;
    font-size: 11px;
  }

  .seo-content,
  .price-history {
    padding: 24px 16px;
  }

  .seo-content__title {
    font-size: 18px;
  }

  .seo-content__text {
    font-size: 12px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-card__label {
    font-size: 10px;
  }

  .stat-card__value {
    font-size: 14px;
  }

  .specs-table__label {
    width: 100px;
    font-size: 11px;
  }

  .specs-table__value {
    font-size: 11px;
  }

  .footer {
    padding: 16px;
  }

  .footer__columns {
    flex-direction: column;
    gap: 24px;
  }

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

  .chart-placeholder {
    height: 160px;
  }

  .pagination__item {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ===== Class Aliases & Additional Styles ===== */
/* Index page specific */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header__logo span {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
}

.header__nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header__title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
}

.section-header__link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

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

.category-card__title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

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

.deal-card__image {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: var(--secondary);
}

.deal-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.deal-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--color-warning);
  color: var(--color-warning-foreground);
  font-size: 12px;
  font-weight: 600;
}

.deal-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-card__title {
  font-size: 15px;
  font-weight: 600;
}

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

/* Hero search bar form */
.hero__search {
  width: 100%;
  max-width: 700px;
}

.hero__search-bar {
  display: flex;
  align-items: center;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  height: 56px;
  padding: 0 8px 0 24px;
}

.hero__search-icon {
  color: var(--muted-foreground);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero__search-input {
  flex: 1;
  padding: 0 12px;
  font-size: 16px;
  color: var(--foreground);
}

.hero__search-input::placeholder {
  color: var(--muted-foreground);
}

/* Hero badges */
.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  list-style: none;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.hero__badge-icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

/* How It Works section aliases */
.how-it-works {
  padding: 64px 48px;
  text-align: center;
}

.how-it-works__title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
}

.step__description {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Footer aliases */
.footer__col {
  flex: 1;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--foreground);
}

.footer__description {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-top: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

.footer__logo-icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.footer__copyright {
  font-size: 12px;
  color: var(--muted-foreground);
}

.footer__social-link {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--foreground);
}

.header__nav-link {
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--foreground);
}

.header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__search-btn-submit {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive aliases */
@media (max-width: 1024px) {
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works {
    padding: 40px 24px;
  }

  .how-it-works__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero__badges {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .categories__grid {
    grid-template-columns: 1fr;
  }

  .deals__grid {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    padding: 32px 16px;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    flex-direction: column;
    gap: 12px;
  }

  .hero__search-bar {
    height: 44px;
  }

  .hero__search-input {
    font-size: 13px;
  }

  .header__nav-list {
    display: none;
  }

  .footer__columns {
    flex-direction: column;
    gap: 24px;
  }
}
