:root {
  --bg: #f4f4f6;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --green: #16a34a;
  --green-hover: #15803d;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-hover: 0 10px 25px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Header */
header { background: var(--card); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 10; }
header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; }
header h1 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
header h1 a { color: var(--text); }
header h1 a:hover { text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }
header nav { display: flex; gap: 16px; align-items: center; }
header nav a { color: var(--muted); font-size: 13px; font-weight: 500; }
header nav a:hover { color: var(--text); text-decoration: none; }
.nav-drop { position: relative; }
.nav-drop .dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; min-width: 130px; box-shadow: var(--shadow-hover);
}
.nav-drop:hover .dropdown { display: flex; flex-direction: column; gap: 2px; }
.dropdown a { display: block; padding: 6px 10px; border-radius: 4px; font-size: 13px; color: var(--text); }
.dropdown a:hover { background: var(--bg); }

/* Search */
.search-wrap { position: relative; }
#search-input {
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px;
  font-size: 13px; width: 180px; background: var(--bg); color: var(--text); outline: none;
}
#search-input:focus { border-color: var(--accent); }
#search-results {
  display: none; position: absolute; top: 100%; right: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  width: 300px; margin-top: 4px; box-shadow: var(--shadow-hover);
}
#search-results.active { display: block; }
.sr-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.sr-item:last-child { border: none; }
.sr-item:hover { background: var(--bg); text-decoration: none; }
.sr-item strong { display: block; margin-bottom: 2px; }
.sr-item mark { background: #fef3c7; }
.sr-none { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }

/* Homepage */
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; position: relative; }
.page-title::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: 4px; border-radius: 2px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }
.article-card .card-img { width: 100%; height: 170px; background: #f0f0f0; overflow: hidden; }
.article-card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .card-body { padding: 14px; }
.article-card .card-body .meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.article-card .card-body h2 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); }
.article-card:hover .card-body h2 { color: var(--accent); }
.article-card .card-body p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.article-card .card-cat {
  display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
  background: #fff7ed; color: var(--accent);
}

/* Article page */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.disclosure {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px;
  padding: 10px 14px; font-size: 12px; line-height: 1.5; margin-bottom: 20px; color: #92400e;
}
.article-header { display: flex; gap: 24px; margin-bottom: 20px; align-items: flex-start; }
.header-content { flex: 1; }
.header-image { width: 200px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #f0f0f0; }
.header-image img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .article-header { flex-direction: column-reverse; } .header-image { width: 100%; max-width: 300px; } }
article h1 { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; letter-spacing: -.5px; }
article .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
article .excerpt { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.author-line { font-size: 12px; color: var(--muted); }
.verified-badge {
  display: inline-block; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin-left: 6px; text-transform: uppercase; letter-spacing: .3px;
}
.verified-line { font-size: 12px; color: #166534; margin-bottom: 4px; }
.product-hero { display: flex; gap: 24px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.product-hero .hero-img { width: 240px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.product-hero .hero-img img { width: 100%; height: auto; display: block; }
.product-hero .hero-info { flex: 1; }
.product-hero .hero-info p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.buy-btn {
  display: inline-flex; align-items: center; background: var(--green); color: #fff;
  font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 8px;
  transition: background .15s; gap: 4px;
}
.buy-btn:hover { background: var(--green-hover); text-decoration: none; color: #fff; }

/* Product cards in roundups */
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.product-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.product-card p { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.product-card .price { font-size: 15px; font-weight: 600; color: var(--accent); }
.pros-cons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pros, .cons { font-size: 13px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; }
.pros { background: #f0fdf4; color: #166534; }
.cons { background: #fef2f2; color: #991b1b; }
.article-body { max-width: 680px; }
.article-body p { margin-bottom: 18px; font-size: 15px; line-height: 1.7; color: var(--text); }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; font-size: 15px; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 32px 0 14px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
.article-body p:has(.buy-btn) { margin-top: 6px; }

/* Related */
.related-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500;
  transition: box-shadow .15s;
}
.related-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.related-card img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; }
@media (max-width: 500px) { .related-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Footer */
footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); text-align: center; }
footer nav { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
footer a { color: var(--muted); }

/* Responsive header */
@media (max-width: 600px) {
  .menu-toggle { display: block; }
  header nav { display: none; width: 100%; flex-direction: column; padding-top: 10px; gap: 6px; }
  header.open nav { display: flex; }
  header.open .menu-toggle { color: var(--accent); }
  #search-input { width: 140px; }
  #search-results { width: 260px; right: auto; left: 0; }
}
