/* WhatsMobile — hand-written CSS, no framework (08-performance-requirements.md).
   Palette locked to the live site's existing colors (10-design-direction.md):
   orange accent #F0800E, navy header/footer #14141F, white background. */

:root {
  --accent: #F0800E;
  --accent-dark: #d16f0a;
  --navy: #14141F;
  --navy-soft: #1e1e2e;
  --text: #1a1a1f;
  --text-muted: #6b6b76;
  --border: #e6e6ea;
  --bg-soft: #f7f7f9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 20, 31, 0.08);
  --shadow-hover: 0 8px 24px rgba(20, 20, 31, 0.12);
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: inherit; font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* <picture> wrappers (productPicture() in functions.php) need the same
   constraint as plain <img> — without it, a flex/grid item containing a
   <picture> can size to the source image's full intrinsic width instead of
   shrinking to fit, which is what was pushing product-hero__image (and
   anywhere else using it) past the mobile viewport edge. */
picture { display: block; max-width: 100%; min-width: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max-width); margin: 16px auto 0; padding: 0 20px;
  background: transparent; color: #fff;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; gap: 24px; background: var(--accent); border-radius: 12px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
/* Navy text on the orange bar (not white) — white-on-orange only hits a
   2.69:1 contrast ratio, well under the WCAG AA 4.5:1 minimum for normal text. */
.main-nav a { font-size: 0.95rem; color: var(--navy); font-weight: 600; transition: opacity 0.15s; }
.main-nav a:hover, .main-nav a.active { text-decoration: underline; }
.social-links { display: flex; gap: 14px; align-items: center; }
.social-links a { color: #fff; }
.social-links a:hover { color: var(--navy); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 34px; height: 34px; padding: 0; border: none; background: transparent; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px; margin-left: 3px;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: 10px; vertical-align: middle;
}

@media (max-width: 860px) {
  .site-header__bar { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .social-links { display: none; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; gap: 2px; order: 3;
    padding-top: 12px; margin-top: 10px; border-top: 1px solid rgba(20, 20, 31, 0.15);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 4px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 14px 0; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Hero / Phone Finder ---------- */
.hero {
  margin: 24px 0 0; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, #23233a 100%);
  color: #fff;
}
.hero h1 { font-size: 1.9rem; color: #fff; }
.hero p { color: #b9b9c6; margin: 0; }

/* ---------- Grid toolbar (heading + search + sort/brand controls, one line above the grid) ---------- */
.grid-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 16px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.grid-toolbar__title { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.grid-toolbar h1 { font-size: 1.7rem; margin: 0; white-space: nowrap; flex-shrink: 0; }
.grid-search {
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 160px; max-width: 100%;
  border: 1.5px solid var(--border); border-radius: 20px; padding: 6px 6px 6px 14px; background: #fff;
}
.grid-search:focus-within { border-color: var(--accent); }
.grid-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.grid-search input { flex: 1; min-width: 0; border: none; outline: none; font-size: 0.85rem; background: none; }
.grid-search button {
  background: var(--accent); color: #fff; border: none; border-radius: 15px;
  padding: 7px 14px; font-size: 0.78rem; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.grid-search button:hover { background: var(--accent-dark); }

/* ---------- Controls row (sort + brand, right side of the toolbar) ---------- */
.controls-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex-shrink: 0; }
.controls-row select {
  font-size: 0.9rem; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--text);
}
@media (max-width: 700px) {
  .grid-toolbar { justify-content: flex-start; }
  .controls-row { width: 100%; }
  .grid-toolbar__title { flex-wrap: wrap; }
  .grid-search { min-width: 0; width: 100%; }
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-bottom: 48px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 460px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__image { padding: 10px; }
  .card__body { padding: 10px; gap: 6px; }
  .card__title { font-size: 0.8rem; }
  .card__price { font-size: 0.95rem; }
  .card__compare, .card__view { font-size: 0.62rem; padding: 5px 4px; }
  .card__compare input { width: 11px; height: 11px; }
}

.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card__badge {
  position: absolute; top: 10px; right: 10px; background: var(--navy); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; z-index: 1;
}
.card__badge.rating-good, .badge-inline.rating-good { background: #1c8a4b; }
.card__badge.rating-mid,  .badge-inline.rating-mid  { background: var(--accent); }
.card__badge.rating-low,  .badge-inline.rating-low  { background: #b23b3b; }
.badge-inline {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 700;
  min-width: 30px; height: 26px; padding: 0 8px; border-radius: 20px;
}
.card__image { aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 16px; min-width: 0; }
.card__image img { max-height: 100%; object-fit: contain; }
.card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 0.95rem; font-weight: 600; text-align: center; }
.card__title a:hover { color: var(--accent); }
.card__price { color: var(--accent); font-weight: 800; font-size: 1.15rem; text-align: center; }
.card__footer { display: flex; align-items: stretch; gap: 6px; margin-top: auto; padding-top: 6px; }
.card__compare {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 0.68rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 6px;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.card__compare:hover { border-color: var(--accent); color: var(--accent); }
.card__compare:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(240, 128, 14, 0.08); }
.card__compare input { width: 12px; height: 12px; margin: 0; accent-color: var(--accent); }
.card__view {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--navy);
  border-radius: 20px; padding: 6px 6px; transition: background 0.15s;
}
.card__view:hover { background: var(--navy-soft); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 32px 0 8px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Sidebar widgets ---------- */
.widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.widget h2 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.widget-search { display: flex; gap: 8px; }
.widget-search input { flex: 1; min-width: 0; }
.widget-search button { background: var(--accent); border: none; color: #fff; border-radius: 8px; padding: 0 14px; cursor: pointer; }

.brand-list { display: flex; flex-direction: column; }
.brand-list__item {
  padding: 9px 4px; font-size: 0.85rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border); transition: color 0.15s, padding-left 0.15s;
}
.brand-list__item:last-child { border-bottom: none; }
.brand-list__item:hover { color: var(--accent); padding-left: 8px; }
.brand-list + a.view-all { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--accent); }

.arrival-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.arrival-item:last-child { border-bottom: none; }
.arrival-item img { width: 52px; height: 52px; object-fit: contain; background: var(--bg-soft); border-radius: 6px; flex-shrink: 0; }
.arrival-item__title { font-size: 0.85rem; font-weight: 600; }
.arrival-item__price { color: var(--accent); font-weight: 700; font-size: 0.85rem; }

.filter-group { margin-bottom: 16px; }
.filter-group h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); margin: 0 0 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { font-size: 0.78rem; padding: 5px 10px; border: 1px solid var(--border); border-radius: 20px; }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-chip:hover { border-color: var(--accent); }

/* ---------- Product detail page ---------- */
.product-hero { display: grid; grid-template-columns: 380px 1fr; gap: 36px; padding: 20px 0 40px; }
@media (max-width: 800px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero__image { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 24px; aspect-ratio: 1/1; min-width: 0; }
.product-hero__image img { max-height: 100%; object-fit: contain; }
.product-hero__info h1 { font-size: 1.6rem; margin-bottom: 6px; }
.product-hero__meta { display: flex; gap: 10px; align-items: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 14px; flex-wrap: wrap; }
.product-hero__meta a:hover { color: var(--accent); }
.product-hero__price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.price-disclaimer { font-size: 0.76rem; color: var(--text-muted); margin: 0 0 14px; }
.product-hero__rating { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); padding: 6px 12px; border-radius: 20px; font-weight: 700; margin-bottom: 18px; }
.product-hero__actions { margin-bottom: 20px; }
.product-hero__actions label { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

.spec-teaser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 480px) { .spec-teaser { grid-template-columns: 1fr; } }
.spec-teaser li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft);
}
.spec-teaser__icon {
  flex-shrink: 0; width: 30px; height: 30px; padding: 5px; box-sizing: border-box;
  background: var(--accent); color: #fff; border-radius: 7px;
}
.spec-teaser__icon svg { width: 100%; height: 100%; }
.spec-teaser b { display: block; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.spec-teaser li > span:last-child { font-size: 0.85rem; line-height: 1.35; min-width: 0; }

.spec-section { margin-bottom: 32px; }
.spec-section h2 { font-size: 1.2rem; border-left: 4px solid var(--accent); padding-left: 10px; margin-bottom: 16px; }

/* Full spec sheet — one card per category, icon header, definition-grid rows */
.spec-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .spec-card-grid { grid-template-columns: 1fr; } }
.spec-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.spec-card__header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--accent); }
.spec-card__icon { flex-shrink: 0; width: 20px; height: 20px; color: #fff; }
.spec-card__icon svg { width: 100%; height: 100%; }
.spec-card__header h3 { margin: 0; font-size: 0.95rem; color: #fff; }
.spec-card__rows { margin: 0; padding: 2px 16px; }
.spec-row { display: grid; grid-template-columns: 42% 58%; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { margin: 0; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.spec-row dd { margin: 0; font-size: 0.87rem; word-break: break-word; }

.rating-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.rating-bar__label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }
.rating-bar__track { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: var(--accent); }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Compare page ---------- */
.icon-inline { display: inline-flex; width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; color: var(--accent); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.9rem; padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); }

.compare-hint { color: var(--text-muted); font-size: 0.9rem; padding: 16px 0; }

.compare-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; margin-top: 22px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-columns {
  display: grid; grid-template-columns: 150px repeat(var(--cols), 200px);
  width: max-content;
}
.compare-col { border-left: 1px solid var(--border); }
.compare-col:first-child { border-left: none; }
.compare-col--label { background: var(--bg-soft); }
.compare-col__spacer { height: 198px; }

.compare-quick-label, .compare-quick-value {
  padding: 11px 14px; border-top: 1px solid var(--border); font-size: 0.85rem;
  display: flex; align-items: center; min-height: 20px; line-height: 1.35;
}
.compare-col--label .compare-quick-label:first-child { border-top: none; }
.compare-col:not(.compare-col--label) .compare-quick-value:first-of-type { border-top: none; }
.compare-quick-label { color: var(--text-muted); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.3px; }
.compare-quick-value.is-diff { background: #fff4e8; font-weight: 700; color: var(--accent-dark); }
.compare-quick-value--price { color: var(--accent); font-weight: 800; font-size: 1rem; }
.compare-na { color: var(--text-muted); }

.compare-card { position: relative; text-align: center; padding: 18px 12px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.compare-card__image { display: block; width: 90px; height: 90px; margin: 0 auto 8px; }
.compare-card__image img { width: 100%; height: 100%; object-fit: contain; }
.compare-card__title { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.compare-card__title a:hover { color: var(--accent); }
.compare-card__brand { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.compare-remove {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; font-size: 0.7rem; line-height: 1;
}
.compare-remove:hover { border-color: #b23b3b; color: #b23b3b; }

.compare-col--add { display: flex; align-items: flex-start; justify-content: center; padding: 18px 10px; }
.compare-add-slot {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 10px; border: 1.5px dashed var(--border); border-radius: 10px;
  background: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.compare-add-slot:hover { border-color: var(--accent); color: var(--accent); background: #fff8f0; }
.compare-add-slot__icon {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--bg-soft); font-size: 1.2rem; line-height: 1;
}
.compare-add-slot:hover .compare-add-slot__icon { background: var(--accent); color: #fff; }

/* ---------- Add-a-phone picker modal ---------- */
.compare-modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: flex-start; justify-content: center; padding: 5vh 16px; }
.compare-modal.is-open { display: flex; }
.compare-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 31, 0.55); }
.compare-modal__panel {
  position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 640px;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.compare-modal__close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; z-index: 2;
}
.compare-modal__close:hover { border-color: #b23b3b; color: #b23b3b; }
.compare-modal__search {
  display: flex; align-items: center; gap: 10px; padding: 20px 52px 16px 22px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.compare-modal__search svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.compare-modal__search input {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 1.05rem; color: var(--text); background: none;
}
.compare-modal__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 18px 22px 24px; overflow-y: auto;
}
@media (max-width: 560px) { .compare-modal__grid { grid-template-columns: repeat(2, 1fr); } }

.compare-search__item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.compare-search__item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.compare-search__item-img { width: 100%; aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.compare-search__item-img img { width: 100%; height: 100%; object-fit: contain; }
.compare-search__item-title { font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.compare-search__item-price { font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.compare-search__empty { grid-column: 1/-1; padding: 30px 10px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfcfd8; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 40px 0 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 0.85rem; color: #a9a9b6; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2a2a3a; padding: 16px 0; font-size: 0.8rem; text-align: center; color: #8b8b98; }
.site-disclaimer { max-width: 760px; margin: 0 auto 10px; font-size: 0.74rem; line-height: 1.5; color: #6f6f7d; }

/* ---------- Ad slots ----------
   Reserved space is fixed via inline min-height (set per placement in PHP)
   so an ad populating asynchronously never shifts surrounding content. No
   visible box/label while empty — it's just blank reserved space until the
   owner pastes real ad code in admin/settings/index.php. */
.ad-slot { margin: 16px 0; overflow: hidden; }
.ad-slot .adsbygoogle { width: 100%; }

/* ---------- Brand archive description (below H1, above the grid) ---------- */
.brand-description { padding-bottom: 20px; }
.brand-description p { margin: 0 0 14px; color: var(--text); font-size: 0.92rem; }
.brand-description h2 { font-size: 1.05rem; border-left: 4px solid var(--accent); padding-left: 10px; margin: 22px 0 12px; }

/* ---------- Static content pages (About Us etc.) ---------- */
.content-page { max-width: 760px; padding: 8px 0 48px; }
.content-page h1 { font-size: 1.7rem; margin-bottom: 18px; }
.content-page__body p { margin: 0 0 16px; color: var(--text); }
.content-page__body h2 { font-size: 1.15rem; border-left: 4px solid var(--accent); padding-left: 10px; margin: 28px 0 14px; }
.content-page__body ul { margin: 0 0 16px; padding-left: 22px; }
.content-page__body li { margin-bottom: 6px; }

/* ---------- Brand directory (/brands/) ---------- */
.brand-directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 48px; }
@media (max-width: 860px) { .brand-directory { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .brand-directory { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.brand-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 22px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.brand-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--accent); }
.brand-tile__logo {
  width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 50%; overflow: hidden; color: var(--accent);
}
.brand-tile__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.brand-tile__logo svg { width: 32px; height: 32px; }
.brand-tile__name { font-weight: 700; font-size: 0.95rem; }
.brand-tile__count { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 520px; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 700; }
.form-row input, .form-row textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font: inherit; color: var(--text); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-row--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: 8px; padding: 12px 16px; font-size: 0.9rem; margin-bottom: 18px; }
.form-notice--success { background: #eaf7ef; color: #1c8a4b; }
.form-notice--error { background: #fdecec; color: #b23b3b; }
.form-notice--error ul { margin: 0; padding-left: 18px; }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
