/* =========================================================
   Home Techy — Tokoo-inspired electronics theme (Blue)
   ========================================================= */
:root {
  --navy: #0a1733;
  --navy-2: #0d1d40;
  --blue: #1466d6;
  --blue-600: #0f57bd;
  --blue-700: #0b4596;
  --cyan: #18c3ff;
  --ink: #1b2435;
  --text: #2b3650;
  --muted: #6b7488;
  --faint: #9aa3b6;
  --line: #e7ebf2;
  --line-2: #dde3ee;
  --bg: #f3f5fa;
  --card: #ffffff;
  --star: #ff9f1a;
  --good: #18a86b;
  --bad: #e2574c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -14px rgba(16, 35, 75, 0.28);
  --shadow-sm: 0 4px 14px -8px rgba(16, 35, 75, 0.25);
  --maxw: 1240px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ============ Top bar ============ */
.topbar {
  background: var(--navy);
  color: #c7d0e6;
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; gap: 16px;
}
.topbar-inner .tagline { display: flex; align-items: center; gap: 8px; }
.topbar-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-links a { color: #c7d0e6; }
.topbar-links a:hover { color: #fff; }

/* ============ Main header ============ */
.header-main { background: #fff; border-bottom: 1px solid var(--line); }
.header-main-inner {
  display: flex; align-items: center; gap: 28px; height: 86px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.5rem; letter-spacing: 0.3px;
  color: var(--ink); white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 16px -6px rgba(20, 102, 214, 0.7);
}
.brand b { color: var(--blue); }
.brand-logo {
  height: 54px; width: auto; display: block;
  border-radius: 10px; box-shadow: 0 4px 14px -8px rgba(10, 23, 51, 0.55);
}
.footer-brand { display: inline-block; }
.footer-brand .brand-logo { height: 62px; border-radius: 12px; box-shadow: none; }

/* Search (Tokoo-style: category select + input + button) */
.search {
  flex: 1; max-width: 720px; height: 50px;
  display: flex; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 102, 214, 0.14); }
.search-cat {
  border: none; background: #f5f7fb; color: var(--ink);
  padding: 0 34px 0 16px; font-size: 0.85rem; font-weight: 600;
  border-right: 1px solid var(--line-2); cursor: pointer; max-width: 170px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.search-cat:focus { outline: none; }
.search input {
  flex: 1; border: none; padding: 0 18px; font-size: 0.95rem; color: var(--ink);
  min-width: 0; background: #fff;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; }
.search button {
  border: none; background: var(--blue); color: #fff;
  padding: 0 28px; font-size: 0.92rem; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; gap: 9px; letter-spacing: 0.2px;
}
.search button:hover { background: var(--blue-600); }
.search button svg { width: 18px; height: 18px; }

.header-extra { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-deal {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); font-size: 0.9rem; white-space: nowrap;
}
.header-deal .ic { font-size: 1.4rem; }
.header-deal small { display: block; color: var(--muted); font-weight: 500; font-size: 0.72rem; }

.header-toggle {
  display: none; margin-left: auto;
  background: var(--blue); color: #fff; border: none;
  width: 46px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer;
}

/* ============ Main nav (blue bar) ============ */
.mainnav { background: var(--blue); position: sticky; top: 0; z-index: 60; }
.mainnav-inner { display: flex; align-items: stretch; gap: 0; }

/* Departments dropdown */
.departments { position: relative; }
.dept-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--blue-700); color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.92rem; padding: 0 22px; height: 52px;
  min-width: 250px; border-radius: 0;
}
.dept-btn .chev { margin-left: auto; transition: transform 0.2s; }
.departments:hover .dept-btn .chev { transform: rotate(180deg); }
.dept-menu {
  position: absolute; top: 100%; left: 0; width: 280px;
  background: #fff; border: 1px solid var(--line); border-top: none;
  list-style: none; margin: 0; padding: 6px 0;
  box-shadow: var(--shadow); z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: 0.16s;
}
.departments:hover .dept-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dept-item { position: relative; }
.dept-item > a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 18px; color: var(--text); font-size: 0.9rem; font-weight: 600;
}
.dept-item > a .ic { font-size: 1.1rem; width: 22px; text-align: center; }
.dept-item > a .caret { margin-left: auto; color: var(--faint); }
.dept-item:hover > a { background: #f1f6fe; color: var(--blue); }

/* nested flyout */
.dept-flyout {
  position: absolute; top: 0; left: 100%; min-width: 320px; max-width: 360px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 18px 20px; min-height: 100%;
  opacity: 0; visibility: hidden; transform: translateX(6px); transition: 0.16s;
}
.dept-item:hover .dept-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
.dept-flyout h5 {
  margin: 0 0 12px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted);
}
.dept-flyout ul { list-style: none; margin: 0 0 12px; padding: 0; }
.dept-flyout li { margin-bottom: 9px; }
.dept-flyout li a { color: var(--text); font-size: 0.88rem; font-weight: 500; }
.dept-flyout li a:hover { color: var(--blue); }
.dept-flyout .flyout-all { font-weight: 700; font-size: 0.85rem; }
.dept-flyout .empty { color: var(--faint); font-size: 0.85rem; }

/* horizontal links */
.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links > li > a {
  display: flex; align-items: center; height: 52px; padding: 0 18px;
  color: #eaf1ff; font-size: 0.88rem; font-weight: 600;
}
.nav-links > li > a:hover, .nav-links > li > a.active {
  background: var(--blue-600); color: #fff;
}
.nav-right { margin-left: auto; display: flex; align-items: center; padding-right: 4px; }
.nav-badge {
  color: #cfe2ff; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 7px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; padding: 12px 24px;
  border: 1px solid transparent; cursor: pointer; font-size: 0.92rem;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-price {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(20, 102, 214, 0.9);
}
.btn-price:hover { background: var(--blue-600); color: #fff; }
.btn-amazon {
  background: linear-gradient(135deg, #ff9f1a, #ff7a00); color: #2a1800;
  box-shadow: 0 10px 24px -12px rgba(255, 140, 0, 0.8);
}
.btn-amazon:hover { color: #2a1800; }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ============ Hero (home-v4 style: departments rail + slider) ============ */
.home-hero { padding: 22px 0 8px; }
.home-hero-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: stretch; }
.cat-rail {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 0; overflow: hidden;
}
.cat-rail h4 {
  margin: 0; padding: 12px 18px; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--line);
}
.cat-rail a {
  display: flex; align-items: center; gap: 11px; padding: 10px 18px;
  color: var(--text); font-size: 0.9rem; font-weight: 600;
}
.cat-rail a:hover { background: #f1f6fe; color: var(--blue); }
.cat-rail a .ic { font-size: 1.1rem; width: 22px; text-align: center; }

.hero-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-700) 55%, var(--blue) 100%);
  color: #fff; display: flex; min-height: 360px;
}
.hero-banner .hero-copy { padding: 46px 44px; max-width: 56%; display: flex; flex-direction: column; justify-content: center; }
.hero-banner .eyebrow {
  display: inline-block; width: fit-content; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #0a1733;
  background: var(--cyan); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero-banner h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.12; margin: 0 0 14px; font-weight: 800; }
.hero-banner p { color: #cdd9f3; font-size: 1.05rem; margin: 0 0 24px; }
.hero-banner .hero-img {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%; height: 100%;
  object-fit: cover; opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}

/* ============ Service strip ============ */
.services { margin: 22px 0 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
}
.service .ic { font-size: 1.8rem; }
.service strong { display: block; font-size: 0.92rem; color: var(--ink); }
.service span { font-size: 0.8rem; color: var(--muted); }

/* ============ Sections ============ */
.section { padding: 34px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; border-bottom: 2px solid var(--line); padding-bottom: 12px;
}
.section-head h2 { font-size: 1.4rem; margin: 0; font-weight: 800; color: var(--ink); position: relative; }
.section-head .sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.section-head a.more { color: var(--blue); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line-2); color: var(--text);
  padding: 9px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.chip:hover { color: var(--blue); border-color: var(--blue); }

/* ============ Cards ============ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: 0.16s;
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.card .thumb-wrap { position: relative; display: block; }
.card .thumb {
  aspect-ratio: 4/3; width: 100%; object-fit: contain; background: #ffffff;
}
.card .badge {
  position: absolute; top: 10px; left: 10px; background: var(--blue); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
}
.card .card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.card .cat-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.card h3 { font-size: 0.98rem; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--blue); }
.card .excerpt { color: var(--muted); font-size: 0.84rem; margin: 0 0 12px; flex: 1; }
.card .stars { color: var(--star); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; }
.card .stars .empty { color: #d6dbe6; }
.card .stars .rnum { color: var(--muted); font-size: 0.78rem; margin-left: 5px; letter-spacing: 0; }
.card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card .price-label { font-size: 0.8rem; color: var(--muted); }
.card .btn-price { padding: 9px 16px; font-size: 0.82rem; }
.card .read-row { margin-top: 10px; }
.card .read-link { color: var(--blue); font-weight: 700; font-size: 0.82rem; }

/* stars helper (generic) */
.stars { color: var(--star); letter-spacing: 1px; }
.stars .empty { color: #d6dbe6; }

/* ============ Category hero ============ */
.cat-hero {
  background: linear-gradient(120deg, var(--navy), var(--blue-700));
  color: #fff; padding: 40px 0; margin-bottom: 26px;
}
.cat-hero .icon { font-size: 2.4rem; }
.cat-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 6px 0 10px; font-weight: 800; }
.cat-hero p { color: #cdd9f3; max-width: 680px; font-size: 1rem; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 7px; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0 10px; }
.pagination a, .pagination span {
  padding: 9px 15px; border-radius: 8px; border: 1px solid var(--line-2);
  color: var(--text); font-size: 0.9rem; font-weight: 600; background: #fff;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============ Article ============ */
.article-wrap { padding: 22px 0 50px; }
.article-header { margin: 0 0 22px; }
.article-header .cat-tag { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.76rem; }
.article-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.18; margin: 10px 0 12px; font-weight: 800; color: var(--ink); }
.article-header .deck { color: var(--muted); font-size: 1.12rem; margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.article-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0 0 26px; box-shadow: var(--shadow-sm); }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.disclosure-strip {
  background: #eaf2fe; border: 1px solid #cfe0fb; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.82rem; color: #2f4d7a; margin: 0 0 26px;
}
.disclosure-strip b { color: var(--blue-700); }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; }
.prose { font-size: 1.04rem; color: var(--text); }
.prose h2 { font-size: 1.45rem; margin: 34px 0 12px; font-weight: 800; color: var(--ink); scroll-margin-top: 80px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.prose img { border-radius: var(--radius-sm); margin: 20px 0; }
/* Buttons inside the article body must keep their own colors, not link styling */
.prose a.btn { text-decoration: none; }
.prose a.btn-amazon { color: #2a1800; }
.prose a.btn-price { color: #fff; }
.prose a.btn-outline { color: var(--ink); }

.sidebar { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 20px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc h4 { margin: 0 0 12px; font-size: 0.76rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text); font-size: 0.88rem; }
.toc a:hover { color: var(--blue); }

/* product box */
.product-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.product-box.standalone { margin: 28px 0; }
.product-box img.product-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f4f6fb;
  border-radius: var(--radius-sm); margin-bottom: 14px;
}
.product-box .editor-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--blue); background: #eaf2fe;
  border-radius: 999px; padding: 4px 11px; margin-bottom: 12px;
}
.product-box h4 { margin: 0 0 8px; font-size: 1.08rem; color: var(--ink); }
.product-box .stars { font-size: 1rem; }
.product-box .rnum { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.product-box .price-row { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.product-box .price { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.product-box .disclosure-mini { font-size: 0.72rem; color: var(--faint); margin-top: 12px; text-align: center; }

/* pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pc-card { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.pc-card.pros { background: #effaf4; border-color: #c6ecd9; }
.pc-card.cons { background: #fef0ef; border-color: #f7d2cf; }
.pc-card h4 { margin: 0 0 13px; display: flex; align-items: center; gap: 8px; font-size: 1.02rem; color: var(--ink); }
.pc-card ul { list-style: none; padding: 0; margin: 0; }
.pc-card li { padding-left: 25px; position: relative; margin-bottom: 9px; font-size: 0.92rem; color: var(--text); }
.pc-card.pros li::before { content: "✔"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.pc-card.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* feature list */
.feature-list { list-style: none; padding: 0; margin: 0 0 18px; }
.feature-list li { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: "›"; color: var(--blue); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.feature-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 0.92rem; }

/* CTA banner */
.cta-banner {
  margin: 32px 0; padding: 28px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(120deg, var(--navy), var(--blue-700)); color: #fff;
}
.cta-banner h3 { margin: 0 0 8px; font-size: 1.25rem; color: #fff; }
.cta-banner p { color: #cdd9f3; margin: 0 0 16px; }
.cta-banner .stars { justify-content: center; }
.cta-banner .rnum { color: #cdd9f3; }

/* ============ Static pages ============ */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 36px 0 56px; }
.page-wrap h1 { font-size: 2rem; margin-bottom: 8px; color: var(--ink); }
.page-wrap h2 { font-size: 1.3rem; margin-top: 30px; color: var(--ink); }
.page-wrap p, .page-wrap li { color: var(--text); }

/* ============ Newsletter ============ */
.newsletter {
  background: linear-gradient(120deg, var(--navy), var(--blue-700)); color: #fff;
  border-radius: var(--radius); padding: 36px; text-align: center; margin: 26px 0;
}
.newsletter h2 { margin: 0 0 8px; color: #fff; }
.newsletter p { color: #cdd9f3; margin: 0 auto 20px; max-width: 480px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter input { flex: 1; padding: 13px 18px; border-radius: 999px; border: none; font-size: 0.95rem; }
.newsletter input:focus { outline: none; }

/* ============ Search results ============ */
.search-head { padding: 26px 0 6px; }
.search-head h1 { font-size: 1.6rem; margin: 0 0 6px; color: var(--ink); }
.search-head p { color: var(--muted); margin: 0; }
.no-results { text-align: center; padding: 50px 0; color: var(--muted); }

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #aeb9d4; margin-top: 40px; padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aeb9d4; font-size: 0.88rem; }
.site-footer a:hover { color: #fff; }
.footer-about .brand { color: #fff; margin-bottom: 14px; }
.footer-about .brand b { color: var(--cyan); }
.footer-about p { color: #9aa6c4; font-size: 0.88rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: #8794b5; font-size: 0.8rem;
}

/* ============ Mobile panel ============ */
.mobile-panel { display: none; }

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .cat-rail { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Mobile / small tablet ===== */
@media (max-width: 860px) {
  /* Top bar: links live in the menu on mobile; keep a tidy tagline */
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-inner .tagline {
    font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* Header: logo + hamburger on row 1, full-width search on row 2 */
  .header-main-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .brand-logo { height: 46px; }
  .search { order: 3; width: 100%; max-width: none; flex-basis: 100%; height: 48px; }
  .header-extra { display: none; }
  .header-toggle { display: block; }
  .mainnav { display: none; }
  .nav-links, .departments { display: none; }

  /* Hero stacks: copy on top, image full-width below */
  .hero-banner { flex-direction: column; min-height: 0; }
  .hero-banner .hero-copy { max-width: 100%; padding: 30px 26px; }
  .hero-banner h1 { font-size: 1.9rem; }
  .hero-banner p { font-size: 1rem; }
  .hero-banner .hero-img {
    position: static; width: 100%; height: 200px; opacity: 1;
    -webkit-mask-image: none; mask-image: none;
  }

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

  /* Mobile dropdown panel */
  .mobile-panel { display: none; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-panel.open { display: block; }
  .mobile-panel .mp-section { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .mobile-panel h5 { margin: 0; padding: 8px 18px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
  .mobile-panel a { display: block; padding: 11px 18px; color: var(--text); font-weight: 600; font-size: 0.92rem; }
  .mobile-panel a:hover { background: #f1f6fe; color: var(--blue); }
}

/* ===== Phones ===== */
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .section { padding: 24px 0; }
  .section-head h2 { font-size: 1.25rem; }

  /* Compact search: narrow category, icon-only button */
  .search-cat { max-width: 102px; padding: 0 26px 0 12px; font-size: 0.74rem; }
  .search input { padding: 0 12px; font-size: 0.9rem; }
  .search button { padding: 0 16px; }
  .search button span { display: none; }

  /* Single-column cards for readability */
  .grid, .grid.cols-3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  /* Typography scale-down */
  .hero-banner h1 { font-size: 1.7rem; }
  .hero-banner .hero-copy { padding: 26px 20px; }
  .article-header h1 { font-size: 1.55rem; }
  .cat-hero { padding: 30px 0; }
  .cat-hero h1 { font-size: 1.6rem; }
  .page-wrap h1 { font-size: 1.7rem; }

  /* Stacked / tightened blocks */
  .proscons { grid-template-columns: 1fr; }
  .newsletter { padding: 26px 20px; }
  .newsletter form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .article-meta { gap: 10px; }
  .cta-banner { padding: 22px 18px; }
  .product-box { padding: 16px; }
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.3rem; }
}
