/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:   #f97316;
  --primary-d: #ea6307;
  --bg:        #fff;
  --surface:   #f8fafc;
  --border:    #e2e8f0;
  --text:      #1e293b;
  --muted:     #64748b;
  --radius:    10px;
}
body { font-family: system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-block; padding: .6rem 1.3rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; border: none; transition: all .15s; }
.btn--primary  { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); text-decoration: none; }
.btn--secondary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--secondary:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn--deal { background: #16a34a; color: #fff; width: 100%; text-align: center; margin-top: .75rem; }
.btn--buy { width: 100%; text-align: center; margin-bottom: .5rem; }
.btn--buy small { display: block; font-weight: 400; font-size: .75rem; opacity: .85; }

/* ── Header ─────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 2rem; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--text); font-weight: 500; }
.nav-search { margin-left: auto; display: flex; gap: .4rem; }
.nav-search input { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .85rem; }
.nav-search button { background: var(--primary); border: none; color: #fff; padding: .4rem .8rem; border-radius: var(--radius); cursor: pointer; }

/* ── Hero ──────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #fff7ed 0%, #fff 100%); padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.search-bar { display: flex; max-width: 560px; margin: 0 auto; border: 2px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.search-bar input { flex: 1; padding: .75rem 1rem; border: none; font-size: 1rem; outline: none; }
.search-bar button { background: var(--primary); color: #fff; border: none; padding: .75rem 1.5rem; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--alt { background: var(--surface); }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; }

/* ── Categories ──────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--text); transition: all .15s; }
.cat-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(249,115,22,.12); text-decoration: none; }
.cat-count { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }

/* ── Product Grid ────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card__body { padding: 1.25rem; }
.product-card__meta { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; }
.card-actions { display: flex; gap: .5rem; margin-top: .75rem; }

/* ── Stars ───────────────────────────────────────── */
.stars { color: #f59e0b; font-size: 1.1rem; }
.s-empty { color: #d1d5db; }
.s-half  { color: #fbbf24; }
.rating-num { font-weight: 700; font-size: .9rem; }

/* ── Price ───────────────────────────────────────── */
.price { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin: .5rem 0; }
.price-box { margin: 1rem 0; }
.price-current  { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; margin-left: .5rem; }
.price-saving   { font-size: .9rem; color: #16a34a; font-weight: 700; display: block; }

/* ── Badge ───────────────────────────────────────── */
.badge { background: #fff7ed; color: var(--primary); font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; display: inline-block; margin-bottom: .5rem; }

/* ── Deals ───────────────────────────────────────── */
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.deal-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.deal-discount { background: #dc2626; color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-block; padding: .2rem .7rem; border-radius: 6px; margin-bottom: .5rem; }
.deal-code { margin: .5rem 0; } .deal-code code { background: var(--surface); padding: .1rem .4rem; border-radius: 4px; font-size: .85rem; }
.deal-expires { font-size: .8rem; color: var(--muted); }

/* ── Blog Grid ───────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-grid--large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card__body { padding: 1.25rem; }
.blog-card__body h3, .blog-card__body h2 { margin: .5rem 0; font-size: 1.05rem; }
.blog-card__meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .75rem; }

/* ── Product Hero ────────────────────────────────── */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 0; }
.product-hero__image .main-image { border-radius: var(--radius); border: 1px solid var(--border); }
.gallery { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery .thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery .thumb:hover { border-color: var(--primary); }
.product-hero h1 { font-size: 1.75rem; font-weight: 800; margin: .5rem 0 1rem; }
.rating-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.review-count { color: var(--muted); font-size: .9rem; }
.buy-buttons { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .5rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.pros, .cons { padding: 1rem; border-radius: var(--radius); }
.pros { background: #f0fdf4; } .cons { background: #fff1f2; }
.pros h4 { color: #16a34a; } .cons h4 { color: #dc2626; }
.pros ul, .cons ul { padding-left: 1.2rem; font-size: .9rem; margin-top: .5rem; }

/* ── Review / Prose ──────────────────────────────── */
.review-body, .specs-section, .faq-section, .alternatives-section, .comparison-body { margin: 3rem 0; }
.review-body h2, .specs-section h2, .faq-section h2, .alternatives-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .75rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ── Specs Table ─────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.specs-table th { background: var(--surface); font-weight: 600; width: 35%; }

/* ── Compare Table ───────────────────────────────── */
.compare-title { font-size: 2rem; font-weight: 800; text-align: center; padding: 2rem 0 1rem; }
.compare-title span { color: var(--muted); font-size: 1.25rem; margin: 0 1rem; }
.compare-header { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.compare-col { background: var(--surface); border-radius: var(--radius); padding: 2rem; text-align: center; }
.compare-col img { width: 100%; max-height: 200px; object-fit: contain; margin-bottom: 1rem; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table th:first-child { background: var(--surface); font-weight: 600; }
.compare-table td:not(:first-child) { text-align: center; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { background: var(--surface); }
.faq-item p { padding: 1rem 1.25rem; }

/* ── Article ─────────────────────────────────────── */
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; font-weight: 800; margin: .75rem 0 1rem; }
.article-meta { display: flex; gap: 1.5rem; color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.ai-disclaimer { margin-top: 2rem; padding: .75rem 1rem; background: var(--surface); border-radius: var(--radius); color: var(--muted); }

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb { color: var(--muted); font-size: .85rem; padding: 1.5rem 0 0; }
.breadcrumb a { color: var(--muted); }

/* ── Toolbar ─────────────────────────────────────── */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.sort-form select { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; }

/* ── Pagination ──────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: .9rem; }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* ── Sub-cats ────────────────────────────────────── */
.sub-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.sub-cat-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: .35rem .9rem; font-size: .85rem; color: var(--text); }
.sub-cat-pill:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ── Page header ─────────────────────────────────── */
.page-header { padding: 2.5rem 0 1.5rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p, .page-desc { color: var(--muted); margin-top: .5rem; font-size: 1rem; }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: #1e293b; color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer a { color: #94a3b8; }
.site-footer strong { color: #fff; display: block; margin-bottom: .75rem; }
.site-footer ul { list-style: none; } .site-footer ul li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.disclosure { font-style: italic; }

/* ── Empty state ─────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem; color: var(--muted); font-size: 1.1rem; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .product-hero { grid-template-columns: 1fr; gap: 2rem; }
  .compare-header { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-header .container { flex-wrap: wrap; gap: 1rem; }
  .nav-search { margin-left: 0; width: 100%; }
}
