/* ============================================================
   DrumReviewer.com — production stylesheet
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-soft: #f4efe7;
  --surface-warm: #fdfaf3;
  --border: #e6e0d4;
  --border-strong: #c9bfae;
  --text: #1a1715;
  --text-muted: #5e564e;
  --text-soft: #8a8278;
  --accent: #b91c4b;
  --accent-hover: #9a1639;
  --accent-soft: rgba(185, 28, 75, 0.08);
  --accent-fg: #ffffff;
  --gold: #c8821a;
  --gold-soft: rgba(200, 130, 26, 0.12);
  --success: #047857;
  --link: #b91c4b;
  --shadow-sm: 0 1px 2px rgba(26, 23, 21, 0.06), 0 1px 3px rgba(26, 23, 21, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 23, 21, 0.08), 0 2px 4px rgba(26, 23, 21, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 23, 21, 0.12), 0 4px 8px rgba(26, 23, 21, 0.06);

  /* Category accent colors */
  --cat-acoustic: #c2410c;
  --cat-electronic: #0e7490;
  --cat-snares: #b91c1c;
  --cat-cymbals: #a16207;
  --cat-hardware: #475569;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1715;
  --surface: #252220;
  --surface-soft: #2e2a26;
  --surface-warm: #2a2622;
  --border: #3d3833;
  --border-strong: #5a544c;
  --text: #f5f1ea;
  --text-muted: #b8b0a4;
  --text-soft: #8a8278;
  --accent: #f87171;
  --accent-hover: #fb7185;
  --accent-soft: rgba(248, 113, 113, 0.14);
  --accent-fg: #1a1715;
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.16);
  --success: #4ade80;
  --link: #fb7185;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 40px 0 80px;
}

/* ============================================================
   Header / navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .site-header {
  background: rgba(26, 23, 21, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 120ms ease, background 120ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.7;
}

.nav-dropdown[open] summary {
  color: var(--text);
  background: var(--surface-soft);
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: var(--surface-soft);
  color: var(--accent);
}

.dropdown-panel a[aria-disabled="true"] {
  color: var(--text-soft);
  cursor: not-allowed;
  font-style: italic;
}

.dropdown-panel a[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--text-soft);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 60px 0 48px;
  background: linear-gradient(180deg, var(--surface-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lede {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.hero-search input {
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--text-soft);
}

.hero-search button {
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.hero-search button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ============================================================
   Section headers
   ============================================================ */

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-head {
  margin-bottom: 28px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.section-head-left {
  text-align: left;
  margin-bottom: 24px;
}

/* ============================================================
   Category cards (homepage)
   ============================================================ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cat-card {
  display: grid;
  gap: 12px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--cat-color, var(--accent));
}

.cat-card:not(.disabled):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cat-color, var(--accent));
}

.cat-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cat-card.cat-acoustic { --cat-color: var(--cat-acoustic); }
.cat-card.cat-electronic { --cat-color: var(--cat-electronic); }
.cat-card.cat-snares { --cat-color: var(--cat-snares); }
.cat-card.cat-cymbals { --cat-color: var(--cat-cymbals); }
.cat-card.cat-hardware { --cat-color: var(--cat-hardware); }

.cat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 14%, transparent);
  color: var(--cat-color, var(--accent));
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.cat-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cat-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cat-status {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-card:not(.disabled) .cat-status {
  color: var(--cat-color, var(--accent));
}

/* ============================================================
   Product cards
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  color: var(--text);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-thumb {
  display: grid;
  place-items: center;
  height: 160px;
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface-warm) 100%);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 12px;
}

.product-thumb strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
  margin-top: 6px;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.product-card .brand {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.product-price .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dr-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  color: var(--gold);
  font-size: 16px;
}

.dr-score small {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--border);
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Product page
   ============================================================ */

.breadcrumb {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.product-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.product-tagline {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-headline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.score-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.score-card .price-big {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.score-card .price-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: -8px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.score-row .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.score-row .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.score-row .value small {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ============================================================
   Two-column layout on product pages
   ============================================================ */

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel h3:first-child {
  margin-top: 0;
}

.panel ul {
  margin: 0;
  padding-left: 20px;
}

.panel ul li {
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.5;
}

.panel p {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.6;
}

.panel p:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ============================================================
   Kit contents table
   ============================================================ */

.kit-contents {
  display: grid;
  gap: 10px;
}

.kit-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  align-items: baseline;
}

.kit-row .kit-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kit-row .kit-value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.kit-row .kit-value strong {
  color: var(--text);
  font-weight: 700;
}

.kit-row .kit-value small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================
   Specs table
   ============================================================ */

.spec-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
}

.spec-list .spec-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.spec-list .spec-value {
  font-size: 14px;
  color: var(--text);
}

/* ============================================================
   Search page
   ============================================================ */

.search-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 84px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  gap: 14px;
}

.filter-panel h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.filter-group {
  display: grid;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-group select,
.filter-group input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================================
   Compare page
   ============================================================ */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}

.compare-table thead th {
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.compare-table thead th.product-col {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.compare-table tbody tr:hover {
  background: var(--surface-warm);
}

.compare-table .row-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: 180px;
}

.compare-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================================
   Recommended-for badges
   ============================================================ */

.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.use-case {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-warm);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   Legal pages
   ============================================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

.legal-page h1 {
  margin: 0 0 24px;
  font-size: 36px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.legal-page p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .kit-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero-search {
    flex-direction: column;
    padding: 8px;
  }

  .hero-search button {
    width: 100%;
    padding: 14px;
  }

  .section {
    padding: 36px 0;
  }
}

/* Category-page facet sections */
.facet-block { margin: 18px 0 28px; }
.facet-heading {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.facet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.facet-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e6e1d8);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.facet-chip:hover {
  border-color: var(--accent, #b91c4b);
  box-shadow: 0 4px 14px rgba(185, 28, 75, 0.10);
  transform: translateY(-1px);
}
.facet-count {
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent, #b91c4b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Active filter pills on search results */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.active-filters-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border, #e6e1d8);
  background: var(--surface, #fff);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.filter-pill:hover {
  border-color: var(--accent, #b91c4b);
  color: var(--accent, #b91c4b);
}
.filter-pill .pill-x {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.7;
}
.filter-pill:hover .pill-x { opacity: 1; }
.filter-pill-clear {
  border-style: dashed;
  color: var(--text-muted);
  font-weight: 700;
}
.filter-pill-clear:hover {
  border-color: var(--accent, #b91c4b);
  color: var(--accent, #b91c4b);
}

/* Refine link on facet listing pages */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.results-refine {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #b91c4b);
  text-decoration: none;
}
.results-refine:hover { text-decoration: underline; }

/* ===== Electronic Drums landing: brand + browse tiles ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: var(--text);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e6e1d8);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .1s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #b91c4b);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}
.brand-logo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border, #e6e1d8);
}
.brand-logo-img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}
/* Monogram shows by default; when a logo <img> loads it sits on top and covers it.
   If the <img> fails it removes itself (onerror), leaving the monogram visible. */
.brand-logo-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent, #b91c4b);
  opacity: 0.85;
}
.brand-logo-img { position: relative; z-index: 1; background: transparent; }
.brand-tile-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
}
.brand-tile-name { font-weight: 700; font-size: 16px; }
.brand-tile-count { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.browse-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e6e1d8);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .1s ease, box-shadow .18s ease, border-color .18s ease;
}
.browse-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #b91c4b);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}
.browse-tile-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: #ece7df;
  overflow: hidden;
}
.browse-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.browse-tile-img-empty {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-soft, #f3efe8) 0%, var(--surface-warm, #ece7df) 100%);
}
.browse-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
}
.browse-tile-label { font-weight: 700; font-size: 15px; }
.browse-tile-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #b91c4b);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.browse-cta { margin-top: 28px; }

@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .browse-grid { grid-template-columns: 1fr 1fr; }
}

/* Contact page */
.contact-email-line { margin: 22px 0; }
.legal-page h2 { margin-top: 28px; font-size: 20px; font-weight: 700; }

/* Product images on cards (white matte so kits read cleanly) */
.product-thumb.has-image {
  background: #ffffff;
  padding: 10px;
  height: 160px;
  overflow: hidden;
}
.product-thumb.has-image img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

/* Product page hero image */
.product-hero-image {
  background: #ffffff;
  border: 1px solid var(--border, #e6e1d8);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-hero-image img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
