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

:root {
  /* Warm color palette for 主婦層 */
  --color-bg: #fdf8f4;
  --color-surface: #ffffff;
  --color-surface-alt: #fef5ed;
  --color-primary: #e07c4a;
  --color-primary-light: #f4a574;
  --color-primary-dark: #c4612e;
  --color-accent: #d4584a;
  --color-text: #3d2c22;
  --color-text-secondary: #8b7060;
  --color-text-light: #b09a8a;
  --color-border: #ede0d4;
  --color-border-light: #f5ece4;
  --color-success: #5a9e6f;
  --color-warning: #e0a040;
  --color-rank-1: #e8a840;
  --color-rank-2: #9aadad;
  --color-rank-3: #c48a6a;

  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(61,44,34,0.06);
  --shadow-md: 0 4px 12px rgba(61,44,34,0.08);
  --shadow-lg: 0 8px 24px rgba(61,44,34,0.12);
  --max-width: 960px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-feature-settings: 'palt' 1;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { color: var(--color-primary); }

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

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, #ff691f 0%, var(--color-primary-light) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(61,44,34,0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.site-logo:hover { color: #fff; }

.logo-icon { font-size: 1.3rem; }

.site-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
}

/* ===== Main ===== */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 48px 16px 36px;
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

/* ===== Category Grid (Top Page) ===== */
.categories-section { margin-bottom: 40px; }

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--color-text);
}

.category-name { font-size: 1rem; font-weight: 700; }
.category-count { font-size: 0.78rem; color: var(--color-text-secondary); }

/* ===== Recent Grid ===== */
.recent-section { margin-bottom: 40px; }

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

.recent-card {
  display: block;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.recent-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  background: var(--color-surface-alt);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.recent-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.recent-meta { font-size: 0.78rem; color: var(--color-text-secondary); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { margin: 0 4px; }

/* ===== Section Hero ===== */
.section-hero { margin-bottom: 24px; }

.section-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-hero-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ===== Subcategory Grid ===== */
.subcategory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.subcategory-card {
  display: block;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.subcategory-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}

.subcategory-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.subcategory-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.subcategory-meta { font-size: 0.8rem; color: var(--color-text-secondary); }
.subcategory-date { font-size: 0.75rem; color: var(--color-text-light); margin-top: 4px; }

/* ===== Comparison Article ===== */
.comparison-article { margin-bottom: 40px; }

.comparison-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.comparison-lead {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.comparison-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* ===== Footer ===== */
.site-footer {
  background: #3d2c22;
  color: rgba(255,255,255,0.6);
  margin-top: 48px;
}

.footer-note, .footer-copyright { color: rgba(255,255,255,0.5); }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  margin-bottom: 28px;
  text-align: left;
}

.footer-nav-heading {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-list a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-list a:hover {
  color: var(--color-primary-light);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ===== Category Thumbnails ===== */
.category-thumb, .subcategory-thumb, .recent-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg);
}

.category-thumb img, .subcategory-thumb img, .recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.category-thumb { width: 88px; height: 88px; margin-bottom: 4px; border-radius: var(--radius-md); }

/* Subcategory card with horizontal layout */
.subcategory-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subcategory-body { flex: 1; }

/* Recent card with horizontal layout */
.recent-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recent-body { flex: 1; }

/* ===== Comparison Meta ===== */
.comparison-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ===== Product Cards ===== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  border-top: 3px solid var(--color-border);
  position: relative;
}

.product-card[data-rank="1"] { border-top-color: var(--color-rank-1); }
.product-card[data-rank="2"] { border-top-color: var(--color-rank-2); }
.product-card[data-rank="3"] { border-top-color: var(--color-rank-3); }

.product-card-header {
  display: flex;
  gap: 12px;
  padding: 16px;
  position: relative;
}

.rank-badge {
  position: absolute;
  top: -4px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-text-light);
  color: #fff;
  z-index: 1;
  letter-spacing: 0.05em;
}

.rank-1 { background: var(--color-rank-1); font-size: 0.85rem; padding: 5px 14px; }
.rank-2 { background: var(--color-rank-2); }
.rank-3 { background: var(--color-rank-3); }

.product-card-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
}

.product-card-image img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.2s;
}

.product-card-image:hover img { transform: scale(1.05); }

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-brand {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.sakura-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 99px;
  background: #e8f5e9;
  color: #2e7d32;
}

.sakura-B { background: #fff3e0; color: #e65100; }

/* Highlight (features) */
.product-highlight {
  padding: 14px 16px;
  background: #fff8f0;
  border-left: 3px solid var(--color-primary);
  margin: 0 16px 12px;
  border-radius: var(--radius-sm);
}

.product-recommend {
  margin-bottom: 10px;
}

.recommend-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.recommend-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

/* Features */
.features-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.features-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.5;
  padding: 0;
}

.features-list li {
  padding: 8px 10px 8px 28px;
  position: relative;
  margin-bottom: 4px;
}

.features-list li::before {
  content: "\2714";
  color: var(--color-success);
  position: absolute;
  left: 10px;
  font-size: 0.72rem;
  top: 10px;
}

.product-price-unknown {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Variations */
.product-variations {
  padding: 0 16px 12px;
}

.variation-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.variation-label {
  font-weight: 700;
  color: var(--color-text-secondary);
  white-space: nowrap;
  min-width: fit-content;
}

.variation-label::after { content: ":"; }

.variation-options {
  color: var(--color-text);
}

/* Specs */
.product-specs {
  padding: 0 16px 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.specs-table tr:nth-child(odd) { background: var(--color-surface-alt); }
.specs-table tr:nth-child(even) { background: var(--color-surface); }

.specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border-light);
}

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

.spec-label {
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  width: 35%;
  white-space: nowrap;
  background: rgba(0,0,0,0.02);
}

.spec-value {
  color: var(--color-text);
  font-weight: 500;
}

/* Reviews */
.product-reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 12px;
}

.reviews-heading {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.reviews-heading-good { background: #e8f5e9; color: #2e7d32; }
.reviews-heading-bad { background: #fce4ec; color: #c62828; }

.product-reviews ul {
  list-style: none;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text);
}

.product-reviews li {
  padding: 4px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-reviews li .review-dot {
  font-weight: 700;
  margin-right: 4px;
}

.reviews-good .review-dot { color: var(--color-success); }
.reviews-bad .review-dot { color: var(--color-accent); }

/* CTA */
.product-cta {
  padding: 12px 16px 16px;
}

.cta-button {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s;
}

.cta-button:hover { opacity: 0.85; color: #fff; }

.cta-amazon { background: #e88f2a; }

/* ===== Filter Bar ===== */
.filter-bar {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  margin-bottom: 12px;
}

.filter-row:last-child { margin-bottom: 0; }

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

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

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

.filter-chip-active:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s;
  gap: 4px;
}

.filter-toggle-btn:hover { background: var(--color-border-light); }

.filter-toggle-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.filter-collapsible {
  margin-top: 12px;
}

.filter-chips-wrap {
  max-height: 80px;
  overflow-y: auto;
}

.filter-count {
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-left: 2px;
}

.filter-chip-active .filter-count { color: rgba(255,255,255,0.7); }

.filter-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.filter-active-label {
  color: var(--color-text);
  font-weight: 500;
}

.filter-clear {
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  padding: 4px 8px;
}

.filter-clear:hover { text-decoration: underline; }

.show-more-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.show-more-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.no-result {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== Compare Mode ===== */
.compare-toggle {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.compare-toggle:hover,
.compare-toggle-active {
  background: var(--color-primary);
  color: #fff;
}

.compare-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.compare-swap {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s;
}

.compare-swap:hover { background: var(--color-surface-alt); }

.compare-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.compare-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--color-text);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compare-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  position: relative;
}

.compare-card .rank-badge {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.compare-card-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-card-image img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.compare-card .product-brand { font-size: 0.65rem; }
.compare-card .product-name { font-size: 0.78rem; -webkit-line-clamp: 3; margin-bottom: 4px; }
.compare-card .product-price { font-size: 0.95rem; margin-bottom: 4px; }
.compare-card .product-recommend { padding: 8px 0; }
.compare-card .recommend-label { font-size: 0.65rem; }
.compare-card .recommend-text { font-size: 0.75rem; }
.compare-card .product-specs { padding: 8px 0; }
.compare-card .specs-table { font-size: 0.72rem; }
.compare-card .spec-label { width: auto; padding-right: 8px; }
.compare-card .product-reviews { grid-template-columns: 1fr; gap: 8px; padding: 8px 0; }
.compare-card .reviews-heading { font-size: 0.65rem; }
.compare-card .product-reviews ul { font-size: 0.72rem; }
.compare-card .product-cta { padding: 8px 0; }
.compare-card .cta-button { font-size: 0.78rem; padding: 8px 12px; }

/* ===== Desktop ===== */
@media (min-width: 768px) {
  html { font-size: 17px; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  .section-title { font-size: 1.25rem; }

  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .subcategory-grid { grid-template-columns: repeat(2, 1fr); }

  .section-hero-title { font-size: 2rem; }
  .section-hero-desc { font-size: 1.05rem; }
  .comparison-meta { font-size: 0.9rem; }

  .site-main { max-width: 1040px; }

  /* Product card - larger on desktop */
  .product-card-header { gap: 24px; padding: 28px; }

  .product-card-image { width: 160px; height: 160px; }
  .product-card-image img { max-width: 150px; max-height: 150px; }

  .product-list { gap: 24px; }

  .product-brand { font-size: 0.8rem; }
  .product-name { font-size: 1.1rem; -webkit-line-clamp: 3; }
  .product-price { font-size: 1.35rem; }
  .sakura-badge { font-size: 0.75rem; padding: 2px 10px; }

  .rank-badge { font-size: 0.8rem; padding: 3px 10px; }

  .product-recommend, .product-specs, .product-reviews, .product-cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .recommend-label { font-size: 0.8rem; }
  .recommend-text { font-size: 1.05rem; }
  .product-highlight { padding: 16px 24px; margin: 0 28px 16px; }
  .features-label { font-size: 0.9rem; }
  .features-list { font-size: 0.92rem; }

  .specs-table { font-size: 0.95rem; }
  .specs-table td { padding: 10px 16px; }
  .spec-label { font-size: 0.9rem; }

  .reviews-heading { font-size: 0.85rem; padding: 3px 12px; }
  .product-reviews ul { font-size: 0.9rem; }
  .product-reviews li { padding: 3px 0; }

  .cta-button { font-size: 1rem; padding: 14px 20px; }

  .filter-chip { font-size: 0.85rem; padding: 8px 16px; }
  .filter-label { font-size: 0.85rem; }
  .filter-toggle-btn { font-size: 1rem; }

  .compare-toggle { font-size: 1rem; }
  .show-more-btn { font-size: 1rem; }
}

/* ===== TOP PAGE REDESIGN ===== */

/* Hero */
.top-hero {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #fddcc4 100%);
  text-align: center;
  padding: 52px 5% 80px;
  position: relative;
  overflow: hidden;
}

.top-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.top-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.top-hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.top-hero-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
  margin-bottom: 14px;
  position: relative;
}

.top-hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  position: relative;
}

/* Search */
.top-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.top-search-box {
  display: flex;
  background: #fff;
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 16px rgba(61,44,34,0.10);
  border: 1px solid var(--color-border);
}

.top-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--color-text);
  background: transparent;
}

.top-search-box input::placeholder { color: var(--color-text-light); }

.top-search-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.top-search-btn:hover { background: var(--color-primary-dark); }

/* Search results dropdown */
.top-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(61,44,34,0.12);
  border: 1px solid var(--color-border);
  list-style: none;
  z-index: 200;
  overflow: hidden;
}

.top-search-results li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s;
}

.top-search-results li a:hover { background: var(--color-surface-alt); }

.top-search-results .sr-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f0e8e0;
  padding: 4px;
  flex-shrink: 0;
}

.top-search-results .sr-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.top-search-results .sr-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.top-search-results .sr-parent {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

/* Main wrapper */
.top-main {
  max-width: 1100px;
  margin: -40px auto 60px;
  padding: 0 5%;
}

/* Section */
.top-section { margin-bottom: 48px; }

.top-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.top-section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* Category grid */
.top-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.top-cat-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.top-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.top-cat-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
}

.top-cat-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffdfc3;
  border-top: 2px solid var(--color-primary-light);
}

.top-cat-name { font-weight: 700; font-size: 0.97rem; }
.top-cat-count { font-size: 0.78rem; color: var(--color-text-secondary); }

/* Article grid */
.top-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.top-article-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.top-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.top-article-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(224,124,74,0.92);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.top-article-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.top-article-label--new {
  background: #4caf7d;
  color: #fff;
}

.top-article-label--hot {
  background: #e05a4a;
  color: #fff;
  top: 36px;
}

.top-article-label--new ~ .top-article-label--hot {
  top: 36px;
}

.top-article-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
}

.top-article-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffdfc3;
  border-top: 2px solid var(--color-primary-light);
}

.top-article-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-surface-alt);
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
}

.top-article-title { font-weight: 700; font-size: 0.93rem; line-height: 1.4; }
.top-article-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1.5px solid var(--color-primary-light);
  border-radius: 99px;
  padding: 2px 10px;
  width: fit-content;
}

/* Mobile */
@media (max-width: 600px) {
  .top-hero { padding: 40px 5% 60px; }
  .top-hero-title { font-size: 1.3rem; }
  .top-main { margin-top: -32px; }
  .top-cat-grid,
  .top-article-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .top-cat-img,
  .top-article-img { height: 120px; padding: 10px; }
  .top-search-box { border-radius: 12px; }
}

@media (min-width: 768px) {
  .top-hero-title { font-size: 2.1rem; }
  .top-hero-sub { font-size: 1rem; }
}
