/* Rebuild UI — brand palette #fbb710 + black/white */
:root {
  --primary: #fbb710;
  --primary-dark: #e6a50f;
  --ink: #111;
  --muted: #525252;
  --line: #e5e5e5;
  --bg-soft: #fafafa;
}

.rebuild-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(251, 183, 16, 0.28), transparent 50%),
    linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
  padding: 3rem 0 2.5rem;
}
.brand-kicker {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.rebuild-hero .hero-title {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.rebuild-hero .hero-subtitle {
  max-width: 40rem;
  color: var(--muted);
}
.rebuild-hero .search-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 36rem;
}
.rebuild-hero .search-input {
  flex: 1;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  padding: 0 1rem;
  font-size: 1rem;
}
.rebuild-hero .search-btn,
.btn-primary {
  background: var(--primary);
  color: #111;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { background: var(--primary-dark); color: #111; }
.btn-secondary {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #fff;
  border-radius: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.section-block { padding: 2.5rem 0; }
.section-lead { color: var(--muted); margin: 0.35rem 0 1.25rem; max-width: 40rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hub-grid, .guide-grid, .product-grid {
  display: grid;
  gap: 1rem;
}
.hub-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hub-link, .guide-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hub-link:hover, .guide-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.hub-link span, .guide-card p { color: var(--muted); font-size: 0.9rem; }

.product-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  aspect-ratio: 1.2 / 1;
  background: var(--bg-soft);
  display: block;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge-discount {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--primary);
  color: #111;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
}
.product-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-brand { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.product-title { font-size: 1rem; line-height: 1.3; margin: 0; }
.product-title a { color: inherit; text-decoration: none; }
.product-price { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.product-meta { color: var(--muted); font-size: 0.85rem; }
.product-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.cta-out { width: 100%; text-align: center; }
.cta-large { min-height: 52px; font-size: 1.05rem; margin: 1rem 0; }

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.filters-panel {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
}
.filters-form fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.filters-form legend { font-weight: 700; margin-bottom: 0.5rem; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
}
.filters-form select, .sort-bar select {
  width: 100%;
  min-height: 42px;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
}
.filter-submit { width: 100%; margin-top: 0.5rem; }
.filter-reset { display: inline-block; margin-top: 0.75rem; color: var(--muted); }
.sort-bar { margin-bottom: 1rem; }
.geo-answer {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 48rem;
  margin: 0.5rem 0 0.75rem;
}
.listing-count { color: var(--muted); }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 1rem 0 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #bbb; }
.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding: 1rem 0 2rem;
}
.product-gallery img { width: 100%; height: auto; border-radius: 0.75rem; background: var(--bg-soft); }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 0.4rem; background: #fff; }
.offers-table-wrap { overflow-x: auto; }
.offers-table { width: 100%; border-collapse: collapse; }
.offers-table th, .offers-table td {
  text-align: left;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.offers-table .best-offer { background: rgba(251, 183, 16, 0.12); }
.offer-title { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.faq-block { margin-top: 2rem; }
.faq-block dt { font-weight: 700; margin-top: 1rem; }
.faq-block dd { margin: 0.35rem 0 0; color: var(--muted); }
.brand-list { columns: 2; gap: 1.5rem; }
.brand-list li { margin-bottom: 0.4rem; }
.prose { max-width: 44rem; line-height: 1.7; }

@media (max-width: 900px) {
  .listing-layout, .product-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .brand-list { columns: 1; }
  .rebuild-hero .search-box { flex-direction: column; }
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    z-index: 50;
  }
  .nav.is-open .nav-list {
    display: grid;
    gap: 0.75rem;
  }
}
