/* CompuHub homepage layout */

:root {
  --ch-primary: #0066FF;
  --ch-primary-dark: #0052CC;
  --ch-navy: #001A4D;
  --ch-navy-mid: #0A2A6B;
  --ch-gray-50: #F8F9FA;
  --ch-gray-100: #EEF1F6;
  --ch-gray-200: #DDE3EE;
  --ch-text: #0D1829;
  --ch-text-muted: #5B6B82;
  --ch-content-max: 1280px;
  --ch-content-pad: clamp(16px, 4vw, 48px);
}

/* Shared horizontal alignment for header + page content */
.ch-container {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
}

/* ── CompuHub site header (3-tier) ───────────────────────────────────────── */
.ch-site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 16px rgba(0, 26, 77, 0.12);
}

.ch-topbar {
  background: var(--ch-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
}

.ch-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 12px;
}

.ch-topbar-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ch-topbar-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ch-topbar-trust svg { flex-shrink: 0; opacity: 0.9; }

.ch-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ch-topbar-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.ch-topbar-links a:hover { color: #fff; }

.ch-main-header {
  background: #fff;
  border-bottom: 1px solid var(--ch-gray-200);
  padding-block: 14px;
  position: relative;
  z-index: 2;
}

.ch-main-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.ch-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ch-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--ch-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ch-logo-text {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 22px;
  color: var(--ch-navy);
  letter-spacing: -0.3px;
}

.ch-logo-text em {
  color: var(--ch-primary);
  font-style: normal;
}

.ch-search-wrap {
  position: relative;
  z-index: 20;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.ch-search {
  display: flex;
  width: 100%;
  border: 1px solid var(--ch-gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ch-gray-50);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ch-search:focus-within {
  border-color: var(--ch-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
  background: #fff;
}

.ch-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--ch-text);
  min-width: 0;
}

.ch-search input::placeholder { color: #9CA3AF; }

.ch-search-btn {
  background: var(--ch-primary);
  border: none;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ch-search-btn:hover { background: var(--ch-primary-dark); }

.ch-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 500;
  background: #fff;
  border: 1px solid var(--ch-gray-200);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  max-height: min(420px, 70vh);
  overflow-y: auto;
}

.ch-search-suggest[hidden] {
  display: none;
}

.ch-search-suggest-status {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ch-gray-500, #6B7280);
}

.ch-search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--ch-gray-100, #F3F4F6);
  transition: background 0.12s;
}

.ch-search-suggest-item:first-child {
  border-top: none;
}

.ch-search-suggest-item:hover,
.ch-search-suggest-item.is-active {
  background: var(--ch-gray-50, #F9FAFB);
}

.ch-search-suggest-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--ch-gray-100, #F3F4F6);
  flex-shrink: 0;
}

.ch-search-suggest-img--empty {
  display: block;
}

.ch-search-suggest-body {
  min-width: 0;
  flex: 1;
}

.ch-search-suggest-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ch-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-search-suggest-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ch-gray-500, #6B7280);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.ch-search-suggest-price {
  flex-shrink: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--ch-primary);
  white-space: nowrap;
}

.ch-search-suggest-price s {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ch-gray-400, #9CA3AF);
}

.ch-search-suggest-footer {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-primary);
  text-decoration: none;
  border-top: 1px solid var(--ch-gray-200);
  background: var(--ch-gray-50, #F9FAFB);
  border-radius: 0 0 10px 10px;
}

.ch-search-suggest-footer:hover {
  background: #EFF6FF;
}

.ch-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-header-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--ch-text-muted);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.ch-header-link:hover { color: var(--ch-primary); background: var(--ch-gray-50); }

.ch-header-link svg { color: var(--ch-navy); }

.ch-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--ch-gray-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-navy);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.ch-icon-btn:hover { border-color: var(--ch-primary); color: var(--ch-primary); }

.ch-navbar {
  --ch-nav-item-h: 36px;
  --ch-nav-gap: 6px;
  background: #fff;
  border-bottom: 1px solid var(--ch-gray-200);
}

.ch-navbar-inner {
  display: flex;
  align-items: center;
  gap: var(--ch-nav-gap);
  height: 48px;
}

.ch-categories-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ch-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  height: var(--ch-nav-item-h);
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}

.ch-categories-btn:hover { background: var(--ch-primary-dark); color: #fff; }

.ch-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--ch-nav-gap);
  flex: 1;
  min-width: 0;
  height: var(--ch-nav-item-h);
  overflow-x: auto;
  scrollbar-width: none;
}

.ch-nav-links::-webkit-scrollbar { display: none; }

.ch-nav-links li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ch-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--ch-nav-item-h);
  padding: 0 14px;
  font-family: var(--font-disp);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ch-navy);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.ch-nav-links a:hover,
.ch-nav-links a.active {
  color: var(--ch-primary);
  background: rgba(0, 102, 255, 0.06);
}

.ch-badge-new {
  font-size: 9px;
  font-weight: 700;
  background: #16A34A;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.ch-nav-hamburger {
  display: none;
  flex-shrink: 0;
}

/* ── Hero carousel ───────────────────────────────────────────────────────── */
.ch-hero {
  position: relative;
  min-height: clamp(440px, 58vh, 620px);
  overflow: hidden;
  background: var(--ch-navy);
}

.ch-hero-slides {
  position: relative;
  min-height: inherit;
}

.ch-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-color: var(--ch-navy);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 72% center;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.ch-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ch-hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--ch-hero-overlay, 0.82);
  background:
    linear-gradient(
      105deg,
      rgba(0, 12, 38, 0.98) 0%,
      rgba(0, 18, 55, 0.92) 22%,
      rgba(0, 26, 77, 0.72) 42%,
      rgba(0, 26, 77, 0.38) 62%,
      rgba(0, 26, 77, 0.12) 82%,
      transparent 100%
    ),
    linear-gradient(to top, rgba(0, 12, 38, 0.55) 0%, transparent 38%);
}

.ch-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 72px) var(--ch-content-pad) clamp(56px, 7vw, 88px);
  box-sizing: border-box;
}

.ch-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8ECBFF;
  margin-bottom: clamp(14px, 2vw, 20px);
}

.ch-hero-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--ch-primary), #4DA3FF);
  border-radius: 1px;
}

.ch-hero h1 {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.04;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.6px;
  max-width: 720px;
  margin-bottom: clamp(14px, 2vw, 20px);
  text-shadow:
    0 2px 28px rgba(0, 8, 32, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.35);
}

.ch-hero h1 .accent {
  display: block;
  margin-top: 0.12em;
  background: linear-gradient(135deg, #A8D4FF 0%, #4DA3FF 42%, #0066FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(0, 80, 200, 0.35));
}

.ch-hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: #C5DCF5;
  max-width: 540px;
  margin-bottom: clamp(24px, 3vw, 32px);
  text-shadow: 0 1px 10px rgba(0, 8, 32, 0.45);
}

.ch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ch-hero-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(24px, 4vw, 36px);
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ch-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ch-hero-dot.is-active {
  width: 26px;
  background: var(--ch-primary);
  border-color: var(--ch-primary);
}

.ch-hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ch-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--ch-primary);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ch-primary);
  box-shadow: 0 10px 28px rgba(0, 102, 255, 0.32);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ch-btn-primary:hover {
  background: var(--ch-primary-dark);
  border-color: var(--ch-primary-dark);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.ch-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0, 8, 32, 0.25);
  transition: border-color 0.15s, background 0.15s;
}

.ch-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 768px) {
  .ch-hero-slide {
    background-position: center 28%;
  }

  .ch-hero-slide-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 12, 38, 0.94) 0%,
        rgba(0, 18, 55, 0.88) 38%,
        rgba(0, 26, 77, 0.62) 68%,
        rgba(0, 26, 77, 0.35) 100%
      );
  }

  .ch-hero-inner {
    padding-bottom: clamp(64px, 12vw, 88px);
  }

  .ch-hero h1 .accent {
    margin-top: 0.08em;
  }

  .ch-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ch-btn-primary,
  .ch-btn-outline {
    justify-content: center;
  }

  .ch-hero-controls {
    bottom: 20px;
  }
}

/* ── Category quick links ─────────────────────────────────────────────────── */
.ch-categories-section {
  background: #fff;
  padding-block: 40px 48px;
}

.ch-categories-grid {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .ch-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .ch-categories-grid { grid-template-columns: repeat(6, 1fr); }
}

.ch-cat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 12px 12px 16px;
  border: 1px solid var(--ch-gray-200);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ch-cat-card:hover {
  border-color: var(--ch-primary);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
  transform: translateY(-3px);
}

.ch-cat-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ch-gray-100);
}

.ch-cat-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ch-cat-card-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ch-navy);
  margin-bottom: 4px;
}

.ch-cat-card-desc {
  font-size: 11px;
  color: var(--ch-text-muted);
  line-height: 1.4;
}

/* ── Section headers ─────────────────────────────────────────────────────── */
.ch-section {
  padding-block: 48px;
}

.ch-section-header {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  margin-bottom: 28px;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ch-section-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ch-navy);
}

.ch-section-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ch-primary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--ch-primary);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.ch-section-link:hover {
  background: var(--ch-primary);
  color: #fff;
}

/* ── Featured builds ─────────────────────────────────────────────────────── */
.ch-builds-section {
  background: linear-gradient(180deg, #eef4ff 0%, var(--ch-gray-50) 55%, #f8fafc 100%);
}

.ch-builds-grid {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .ch-builds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ch-builds-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.ch-build-card {
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7faff 52%, #eef4ff 100%) padding-box,
    linear-gradient(135deg, rgba(0, 102, 255, 0.55) 0%, rgba(0, 26, 77, 0.32) 52%, rgba(0, 102, 255, 0.42) 100%) border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 26, 77, 0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}

.ch-build-card:hover {
  box-shadow: 0 16px 40px rgba(0, 26, 77, 0.14);
  transform: translateY(-4px);
}

.ch-build-card a,
.ch-build-card a:link,
.ch-build-card a:visited {
  text-decoration: none;
}

.ch-build-img-wrap {
  background: #ffffff;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0, 26, 77, 0.06);
}

.ch-build-img-wrap img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
}

.ch-build-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }

.ch-build-tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ch-primary);
  margin-bottom: 4px;
}

.ch-build-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 15px;
  color: var(--ch-navy);
  margin-bottom: 2px;
  line-height: 1.35;
}

.ch-build-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ch-build-name a:hover,
.ch-build-name a:focus-visible {
  color: var(--ch-primary);
  text-decoration: none;
}

.ch-build-sub {
  font-size: 11px;
  color: var(--ch-text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.ch-build-specs {
  list-style: none;
  font-size: 11px;
  color: var(--ch-text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.ch-build-specs li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 26, 77, 0.06);
  line-height: 1.4;
}

.ch-build-specs li:last-child { border-bottom: none; }

.ch-build-price {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 22px;
  color: var(--ch-navy);
  margin-bottom: 12px;
}

.ch-build-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ch-build-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.14) 0%, rgba(0, 26, 77, 0.08) 100%);
  color: var(--ch-primary);
}

.ch-build-btn {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--ch-primary) 0%, var(--ch-navy-mid) 100%);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

.ch-build-btn:hover {
  background: linear-gradient(135deg, var(--ch-primary-dark) 0%, var(--ch-navy) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

/* ── Trending products ─────────────────────────────────────────────────────── */
.ch-trending-section { background: #fff; }

.ch-deals-section {
  background: var(--ch-gray-50);
}

.ch-trending-carousel {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  position: relative;
}

.ch-trending-track-wrap {
  overflow: hidden;
}

.ch-trending-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.ch-trending-track::-webkit-scrollbar { display: none; }

.ch-product-card {
  flex: 0 0 calc(50% - 7px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--ch-gray-200);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 640px) {
  .ch-product-card { flex: 0 0 calc(33.333% - 10px); }
}

@media (min-width: 900px) {
  .ch-product-card { flex: 0 0 calc(16.666% - 12px); }
}

.ch-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 26, 77, 0.1);
  transform: translateY(-3px);
}

.ch-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  color: #fff;
}

.ch-product-badge--hot { background: #DC2626; }
.ch-product-badge--new { background: var(--ch-primary); }

.ch-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  min-height: 140px;
}

.ch-product-img img {
  max-height: 110px;
  width: auto;
  object-fit: contain;
}

.ch-product-info { padding: 12px 14px 14px; background: var(--ch-gray-50); }

.ch-product-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ch-navy);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 34px;
}

.ch-product-name:hover { color: var(--ch-primary); }

.ch-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ch-product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ch-product-old-price {
  font-size: 12px;
  font-weight: 500;
  color: var(--ch-gray-500, #6B7280);
  text-decoration: line-through;
}

.ch-product-price {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 15px;
  color: var(--ch-navy);
}

.ch-product-cart {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  background: var(--ch-primary);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s;
}

.ch-product-cart svg {
  display: block;
  flex-shrink: 0;
}

.ch-product-cart:hover { background: var(--ch-primary-dark); color: #fff; }

@media (max-width: 639px) {
  .ch-trending-carousel {
    padding-inline: 12px;
  }

  .ch-trending-track {
    gap: 10px;
    scroll-padding-inline: 12px;
  }

  .ch-product-card {
    flex: 0 0 min(78vw, 300px);
    display: flex;
    flex-direction: column;
  }

  .ch-product-img {
    padding: 14px 12px;
    min-height: 118px;
  }

  .ch-product-img img {
    max-height: 96px;
  }

  .ch-product-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .ch-product-name {
    font-size: 13px;
    line-height: 1.35;
    min-height: 0;
    margin-bottom: 0;
    -webkit-line-clamp: 3;
  }

  .ch-product-footer {
    margin-top: auto;
    padding-top: 10px;
    gap: 6px;
  }

  .ch-product-price {
    font-size: 14px;
  }

  .ch-product-old-price {
    font-size: 11px;
  }

  .ch-product-cart {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .ch-product-badge {
    top: 8px;
    left: 8px;
    font-size: 8px;
    padding: 2px 6px;
  }

  .ch-section {
    padding-block: 36px;
  }

  .ch-section-header {
    margin-bottom: 20px;
    padding-inline: 12px;
  }
}

.ch-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ch-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-navy);
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s, color 0.15s;
}

.ch-carousel-nav:hover { border-color: var(--ch-primary); color: var(--ch-primary); }
.ch-carousel-nav--prev { left: -12px; }
.ch-carousel-nav--next { right: -12px; }

@media (max-width: 900px) {
  .ch-carousel-nav { display: none; }
}

/* ── Shop by Brand promo grid ─────────────────────────────────────────────── */
.ch-shop-brand-section {
  background: #fff;
}

.ch-shop-brand-grid {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ch-brand-promo {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  min-height: 180px;
  padding: 22px 20px;
  border-radius: 12px;
  background: var(--ch-brand-bg, #6B7280);
  color: var(--ch-brand-text, #fff);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 26, 77, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ch-brand-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 26, 77, 0.14);
}

.ch-brand-promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  max-width: 58%;
  flex: 1 1 auto;
}

.ch-brand-promo-logo {
  max-width: 150px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 6px;
}

.ch-brand-promo--large-left .ch-brand-promo-logo {
  max-width: 180px;
  max-height: 56px;
  margin-bottom: 8px;
}

.ch-brand-promo--small .ch-brand-promo-logo {
  max-width: 160px;
  max-height: 56px;
}

.ch-brand-promo--tall-right .ch-brand-promo-logo {
  max-width: 180px;
  max-height: 60px;
  margin-bottom: 8px;
}

.ch-brand-promo-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: inherit;
  margin: 0;
}

.ch-brand-promo-sub {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  opacity: 0.92;
  margin: 0;
}

.ch-brand-promo-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ch-brand-bg, #111);
  background: var(--ch-brand-accent, #fff);
  transition: opacity 0.15s;
}

.ch-brand-promo:hover .ch-brand-promo-cta {
  opacity: 0.92;
}

.ch-brand-promo-media {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 38%;
  max-width: 46%;
  pointer-events: none;
}

.ch-brand-promo-media img {
  display: block;
  max-width: 92%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ch-brand-promo--large-left {
  min-height: 220px;
}

.ch-brand-promo--large-left .ch-brand-promo-media {
  min-width: 36%;
  max-width: 44%;
}

.ch-brand-promo--large-left .ch-brand-promo-media img {
  max-height: 200px;
  max-width: 88%;
}

.ch-brand-promo--small {
  min-height: 170px;
}

.ch-brand-promo--small .ch-brand-promo-content {
  max-width: 62%;
}

.ch-brand-promo--small .ch-brand-promo-media {
  min-width: 34%;
  max-width: 42%;
}

.ch-brand-promo--small .ch-brand-promo-media img {
  max-height: 130px;
  max-width: 90%;
}

.ch-brand-promo--tall-right {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  align-content: stretch;
  min-height: 260px;
}

.ch-brand-promo--tall-right .ch-brand-promo-content {
  grid-row: 1;
  max-width: 100%;
  align-self: start;
}

.ch-brand-promo--tall-right .ch-brand-promo-media {
  grid-row: 2;
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: none;
  margin-top: auto;
  padding-top: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.ch-brand-promo--tall-right .ch-brand-promo-media img {
  max-height: 150px;
  max-width: min(78%, 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 768px) {
  .ch-shop-brand-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: minmax(220px, auto) minmax(180px, auto);
    gap: 16px;
  }

  .ch-brand-promo--large-left {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 240px;
  }

  .ch-brand-promo--tall-right {
    grid-column: 3;
    grid-row: 1 / 3;
    min-height: 100%;
  }

  .ch-brand-promo--small .ch-brand-promo-logo {
    max-width: 170px;
    max-height: 60px;
  }

  .ch-brand-promo--tall-right .ch-brand-promo-logo {
    max-width: 195px;
    max-height: 68px;
  }

  .ch-brand-promo--tall-right .ch-brand-promo-media img {
    max-height: 180px;
    max-width: min(82%, 220px);
  }

  .ch-brand-promo--small-1 {
    grid-column: 1;
    grid-row: 2;
  }

  .ch-brand-promo--small-2 {
    grid-column: 2;
    grid-row: 2;
  }

  .ch-brand-promo--small-3 {
    grid-column: 1 / 3;
    grid-row: 3;
  }
}

@media (min-width: 1024px) {
  .ch-brand-promo {
    padding: 26px 28px;
  }

  .ch-brand-promo--large-left {
    min-height: 260px;
  }

  .ch-brand-promo--large-left .ch-brand-promo-logo {
    max-width: 200px;
    max-height: 64px;
  }

  .ch-brand-promo--large-left .ch-brand-promo-media img {
    max-height: 230px;
  }

  .ch-brand-promo--small .ch-brand-promo-logo {
    max-width: 180px;
    max-height: 64px;
  }

  .ch-brand-promo--tall-right .ch-brand-promo-logo {
    max-width: 200px;
    max-height: 72px;
  }

  .ch-brand-promo--tall-right .ch-brand-promo-media img {
    max-height: 210px;
    max-width: min(85%, 240px);
  }
}

/* ── Brands ────────────────────────────────────────────────────────────────── */
.ch-brands-section {
  background: linear-gradient(180deg, #fff 0%, var(--ch-gray-50) 100%);
  padding: 48px 0 64px;
  border-top: 1px solid var(--ch-gray-200);
}

.ch-brands-header {
  max-width: 720px;
  margin: 0 auto 44px;
  padding-inline: var(--ch-content-pad);
  text-align: center;
}

.ch-brands-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ch-primary);
  margin-bottom: 10px;
}

.ch-brands-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ch-navy);
  margin-bottom: 10px;
}

.ch-brands-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ch-text-muted);
}

.ch-brands-marquee {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
  padding-block: 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ch-brands-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: ch-brands-scroll 48s linear infinite;
}

.ch-brands-track--reverse {
  animation-direction: reverse;
  animation-duration: 54s;
}

.ch-brands-track:hover {
  animation-play-state: paused;
}

@keyframes ch-brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ch-brand-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 84px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--ch-gray-200);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 26, 77, 0.04);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ch-brand-card:hover {
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 26, 77, 0.08);
  transform: translateY(-2px);
}

.ch-brand-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.2s, opacity 0.2s;
}

.ch-brand-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.ch-brands-grid {
  display: none;
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .ch-brands-marquee {
    display: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ch-brands-grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  .ch-brands-section {
    padding: 44px 0 52px;
  }

  .ch-brand-card {
    width: 124px;
    height: 72px;
    padding: 10px 14px;
  }

  .ch-brand-card img {
    max-height: 42px;
  }
}

/* ── Pre-footer banners ────────────────────────────────────────────────────── */
.ch-prefooter {
  padding-block: 0 48px;
  background: var(--ch-gray-50);
}

.ch-prefooter-grid {
  width: 100%;
  max-width: var(--ch-content-max);
  margin-inline: auto;
  padding-inline: var(--ch-content-pad);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .ch-prefooter-grid { grid-template-columns: 1fr 1fr; }
}

.ch-explore-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background: var(--ch-navy) center/cover no-repeat;
  text-decoration: none;
  color: #fff;
}

.ch-explore-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 26, 77, 0.92) 0%, rgba(0, 26, 77, 0.4) 100%);
}

.ch-explore-content { position: relative; z-index: 1; }

.ch-explore-content h3 {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ch-explore-content p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
  max-width: 280px;
}

.ch-community-banner {
  background: linear-gradient(135deg, var(--ch-primary) 0%, #0052CC 100%);
  border-radius: 12px;
  padding: 28px;
  color: #fff;
}

.ch-community-banner h3 {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ch-community-banner p {
  font-size: 12px;
  opacity: 0.88;
  margin-bottom: 16px;
}

.ch-community-form {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
}

.ch-community-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  border-radius: 6px 0 0 6px;
  font-size: 13px;
  min-width: 0;
}

.ch-community-form button {
  background: var(--ch-navy);
  border: none;
  color: #fff;
  padding: 0 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.ch-community-form button:hover { background: #002266; }

.ch-community-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.ch-community-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.92;
}

.ch-community-checks input { accent-color: var(--ch-navy); }

/* ── Responsive header ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ch-topbar-trust { display: none; }
  .ch-header-link span { display: none; }
  .ch-nav-links { display: none; }
  .ch-navbar { display: none; }
  .ch-nav-hamburger { display: flex; }
  .ch-main-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .ch-nav-hamburger {
    order: 1;
    flex-shrink: 0;
  }

  .ch-logo {
    order: 2;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .ch-header-actions {
    order: 3;
    flex-shrink: 0;
  }

  .ch-search-wrap {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }

  .ch-search {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .ch-main-header {
    padding-block: 10px;
  }

  .ch-main-header-inner {
    gap: 8px;
  }

  .ch-site-header .ch-container {
    padding-inline: 12px;
  }

  .ch-search-wrap { display: none; }
  .ch-header-link { display: none; }
  .ch-logo-img { height: 38px !important; max-width: min(160px, 48vw); }
  .ch-header-actions { gap: 0; }
  .ch-icon-btn { width: 38px; height: 38px; }
}

/* Homepage: no extra section padding from legacy storefront rules */
body.page-home section:not(.ch-section):not(.ch-brands-section):not(.ch-categories-section) { padding: 0; }
