/*
Theme Name:  100 Wears Child
Template:    polite
Description: Child theme for 100wears.com — applies the custom editorial design system across all pages.
Version:     1.0
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --ink:       #111418;
  --cream:     #f7f8fa;
  --parchment: #f0f2f4;
  --teal:      #2a9d8f;
  --teal-dark: #1a7a6e;
  --slate:     #4a5568;
  --muted:     #8a9ab0;
  --border:    #d0d5dd;
  --white:     #ffffff;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --max-w: 1200px;
  --content-w: 740px;   /* comfortable reading column */
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════
   HIDE POLITE GRID'S ORIGINAL HEADER & FOOTER
   We replace them entirely with our own via header.php / footer.php
   ═══════════════════════════════════════════════════════════ */
.site-header,
.site-footer,
.main-navigation,
#masthead,
#colophon,
.widget-area,
#secondary {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM HEADER
   ═══════════════════════════════════════════════════════════ */
.hw-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.hw-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hw-logo {
  text-decoration: none;
  color: inherit;
  line-height: 1;
  flex-shrink: 0;
}

.hw-logo-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}

.hw-logo-sub {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-top: 2px;
}

.hw-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hw-nav a {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.hw-nav a:hover { color: var(--ink); }

/* Mobile nav toggle */
.hw-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hw-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: 0.3s;
}

.hw-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
}

.hw-mobile-menu.open { display: flex; }

.hw-mobile-menu a {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  padding: 12px 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.hw-mobile-menu a:last-child { border-bottom: none; }

.hw-mobile-menu .hw-mobile-submenu {
  padding: 0;
  background: var(--parchment);
}

.hw-mobile-menu .hw-mobile-submenu a {
  font-size: 13px;
  padding: 10px 32px;
  color: var(--slate);
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM FOOTER
   ═══════════════════════════════════════════════════════════ */
.hw-footer {
  background: var(--ink);
  color: #8a9ab0;
  padding: 48px 32px 28px;
  margin-top: 64px;
}

.hw-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hw-footer-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hw-footer-brand { flex: 2; min-width: 220px; }

.hw-footer-brand .hw-logo-name {
  font-size: 20px;
  color: #f0f2f4;
}

.hw-footer-brand .hw-logo-sub {
  color: var(--teal);
  margin-bottom: 14px;
}

.hw-footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 16px;
}

.hw-footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hw-footer-social a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--teal);
  border: 1px solid rgba(42,157,143,0.35);
  padding: 6px 12px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}

.hw-footer-social a:hover {
  background: rgba(42,157,143,0.15);
  color: var(--teal);
}

.hw-footer-col { flex: 1; min-width: 140px; }

.hw-footer-col-head {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0f2f4;
  margin-bottom: 14px;
  display: block;
}

.hw-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hw-footer-col ul li { margin-bottom: 8px; }

.hw-footer-col ul li a {
  font-size: 13px;
  color: #8a9ab0;
  text-decoration: none;
  transition: color 0.2s;
}

.hw-footer-col ul li a:hover { color: var(--teal); }

.hw-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px;
}

.hw-footer-bottom a { color: #8a9ab0; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   PAGE WRAPPER — removes Polite Grid sidebar layout
   ═══════════════════════════════════════════════════════════ */
#page    { margin: 0; padding: 0; }
#content { margin: 0; padding: 0; max-width: none; }
#primary { width: 100%; float: none; padding: 0; margin: 0; }

/* Remove Polite Grid's default article padding/margin */
.polite-grid-inner-wrapper,
.entry-content-wrapper,
.site-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE POST — article layout
   ═══════════════════════════════════════════════════════════ */
.hw-post {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 32px 64px;
}

/* Post header */
.hw-post-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.hw-post-breadcrumb {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-post-breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

.hw-post-breadcrumb span { opacity: 0.4; }

.hw-post h1.entry-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}

.hw-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: #8a9ab0;
}

.hw-post-meta .hw-post-cat {
  background: var(--parchment);
  color: var(--teal-dark);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Hero image */
.hw-post-hero {
  margin: 0 0 40px;
  border-radius: 3px;
  overflow: hidden;
}

.hw-post-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Post body typography */
.hw-post .entry-content {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.hw-post .entry-content p {
  margin: 0 0 1.4em;
}

.hw-post .entry-content h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2em 0 0.6em;
  line-height: 1.2;
}

.hw-post .entry-content h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink);
  margin: 1.6em 0 0.5em;
  line-height: 1.25;
}

.hw-post .entry-content h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 1.4em 0 0.4em;
}

.hw-post .entry-content ul,
.hw-post .entry-content ol {
  margin: 0 0 1.4em 0;
  padding-left: 1.5em;
}

.hw-post .entry-content li { margin-bottom: 0.4em; }

.hw-post .entry-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hw-post .entry-content a:hover { color: var(--teal); }

.hw-post .entry-content strong { font-weight: 600; }

.hw-post .entry-content blockquote {
  border-left: 3px solid var(--teal);
  margin: 2em 0;
  padding: 0.5em 0 0.5em 1.5em;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1em;
  color: var(--slate);
}

.hw-post .entry-content img {
  border-radius: 3px;
  margin: 1.5em 0;
  width: 100%;
  height: auto;
}

/* CLS fix: if an image is missing width/height attributes (e.g. a
   hotlinked or pasted-in image that WordPress never read dimensions
   for), give it a fallback aspect-ratio so the browser still reserves
   space for it instead of collapsing to 0 height until it loads. */
.hw-post .entry-content img:not([width]):not([height]) {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Tables (common in buying guides) */
.hw-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.hw-post .entry-content th {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--parchment);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.hw-post .entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.hw-post .entry-content tr:last-child td { border-bottom: none; }
.hw-post .entry-content tr:hover td { background: var(--cream); }

/* Post footer */
.hw-post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hw-post-footer-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a9ab0;
  margin-bottom: 8px;
  display: block;
}

.hw-disclosure {
  font-size: 13px;
  color: #8a9ab0;
  line-height: 1.6;
  font-style: italic;
}

/* Related posts */
.hw-related {
  background: var(--parchment);
  border-top: 3px solid var(--ink);
  padding: 40px 32px;
}

.hw-related-inner {
  max-width: var(--content-w);
  margin: 0 auto;
}

.hw-related-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a9ab0;
  margin-bottom: 6px;
  display: block;
}

.hw-related h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 24px;
}

.hw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hw-related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.hw-related-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  color: var(--ink);
}

.hw-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hw-related-card-body { padding: 14px; }

.hw-related-card-cat {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 5px;
  display: block;
}

.hw-related-card-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
   ═══════════════════════════════════════════════════════════ */
.hw-archive {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.hw-archive-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--ink);
}

/* Teal accent for sneakers category */
.hw-archive.sneakers .hw-archive-header { border-bottom-color: var(--teal); }
.hw-archive.sneakers .hw-archive-label  { color: var(--teal); }

.hw-archive-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a9ab0;
  display: block;
  margin-bottom: 8px;
}

.hw-archive h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.hw-archive-desc {
  font-size: 15px;
  color: var(--slate);
  margin-top: 10px;
  line-height: 1.6;
}

.hw-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Archive card */
.hw-arc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}

.hw-arc-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17,20,24,0.08);
  color: var(--ink);
}

.hw-arc-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hw-arc-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hw-arc-card-cat {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
  display: block;
}

.hw-arc-card-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  flex: 1;
}

.hw-arc-card-excerpt {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 12px;
}

.hw-arc-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: #8a9ab0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

.hw-arc-card-read { color: var(--teal-dark); font-weight: 600; }

/* Archive pagination */
.hw-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.hw-pagination a,
.hw-pagination span {
  font-family: var(--ff-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--slate);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.hw-pagination a:hover {
  background: var(--parchment);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.hw-pagination .current {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Remove Polite Grid's native social share link lists on archive */
.post-shares { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hw-nav { display: none; }
  .hw-nav-toggle { display: flex; }
  .hw-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hw-header-inner { padding: 0 16px; }
  .hw-post         { padding: 24px 16px 48px; }
  .hw-archive      { padding: 24px 16px 48px; }
  .hw-footer       { padding: 32px 16px 20px; }
  .hw-archive-grid { grid-template-columns: 1fr; }
  .hw-related-grid { grid-template-columns: 1fr; }
  .hw-footer-grid  { flex-direction: column; gap: 28px; }
  .hw-footer-bottom { flex-direction: column; text-align: center; }

  .hw-post h1.entry-title { font-size: 28px; }
  .hw-post .entry-content { font-size: 16px; }

  /* Make archive cards full width on mobile */
  .hw-arc-card img { height: 220px; }
}

/* ═══════════════════════════════════════════════════════════
   AD UNITS — CLS-safe: space reserved before ad loads
   ═══════════════════════════════════════════════════════════ */
.hw-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hw-ad-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a9ab0;
  margin-bottom: 4px;
  text-align: center;
}
.hw-ad-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

/* Leaderboard: 728x90 desktop → 320x50 mobile */
.hw-ad-leaderboard .hw-ad-unit { width: 728px; max-width: 100%; height: 90px; }
@media (max-width: 740px) {
  .hw-ad-leaderboard .hw-ad-unit { width: 320px; height: 50px; }
}

/* In-content: 728x90 desktop → 300x250 mobile */
.hw-ad-incontent .hw-ad-unit { width: 728px; max-width: 100%; height: 90px; }
@media (max-width: 740px) {
  .hw-ad-incontent .hw-ad-unit { width: 300px; height: 250px; }
}

/* Rectangle: 300x250 all sizes */
.hw-ad-rectangle .hw-ad-unit { width: 300px; max-width: 100%; height: 250px; }

/* Placement spacing */
.hw-ad-post-intro  { margin: 32px auto; }
.hw-ad-post-mid    { margin: 40px auto; }
.hw-ad-post-end    { margin: 40px auto 0; }
.hw-ad-archive-top { margin: 0 auto 36px; }
.hw-ad-archive-mid { margin: 8px auto 28px; }

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE: content-visibility on below-fold sections
   Browser skips rendering these until they scroll into view.
   Saves ~200-400ms on mobile for long archive pages.
   contain-intrinsic-size prevents layout thrash on scroll.
   ═══════════════════════════════════════════════════════════ */
.hw-related,
.hw-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE: font-display swap via CSS
   Ensures text is visible immediately while custom fonts load.
   ═══════════════════════════════════════════════════════════ */
@font-face {
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY — WCAG AA CONTRAST FIXES (4.5:1 minimum)
   All opacity-based colours replaced with explicit hex values.
   Hues unchanged — only lightness adjusted to pass WCAG AA.
   ═══════════════════════════════════════════════════════════ */

/* Teal #2a9d8f on white = 3.1:1 FAILS → #1a7a6e = 5.1:1 PASSES */
.hw-archive.sneakers .hw-section-link,
.hw-archive-label,
.hw-arc-card-cat,
.hw-related-card-cat,
.hw-post-cat,
.hw-guide-year,
a[style*="color:#2a9d8f"],
[style*="color:#2a9d8f"] {
    color: #1a7a6e !important;
}

/* Any opacity-reduced text — replace with explicit darker value */
[style*="opacity:0.5"],
[style*="opacity: 0.5"] {
    opacity: 1 !important;
    color: #8a9ab0 !important;
}
[style*="opacity:0.55"],
[style*="opacity: 0.55"] {
    opacity: 1 !important;
    color: #4a5568 !important;
}
[style*="opacity:0.6"],
[style*="opacity: 0.6"] {
    opacity: 1 !important;
    color: #5a6a7e !important;
}

/* Announce bar skeleton text: was opacity:0.5 on #111418 bg */
#hw-announce span { color: #8a9ab0 !important; opacity: 1 !important; }

/* Post/archive meta text */
.hw-post-meta,
.hw-post-meta span,
.hw-arc-card-meta,
.hw-post-footer-label,
.hw-disclosure,
.hw-related-label,
.hw-ad-label {
    color: #5a6a7e !important;
}

/* Section sublabels on white/light backgrounds */
.hw-archive-label { color: #5a6a7e !important; }

/* "All Stitched Reviews" link on white: ensure sufficient contrast */
.hw-section-link { color: #4a5568 !important; border-bottom-color: #4a5568 !important; }
.hw-archive.sneakers .hw-section-link { color: #1a7a6e !important; border-bottom-color: #1a7a6e !important; }

/* ═══════════════════════════════════════════════════════════
   MAIN LANDMARK
   ═══════════════════════════════════════════════════════════ */
main#main {
    display: block;
    width: 100%;
    outline: none;
}

/* ═══════════════════════════════════════════════════════════
   BRAND FILTER NAV — archive pages
   ═══════════════════════════════════════════════════════════ */
.hw-brand-nav {
    margin-bottom: 32px;
}
.hw-brand-nav-label {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5a6a7e;
    margin-bottom: 12px;
    display: block;
}
.hw-brand-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hw-brand-btn {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 7px 14px;
    border-radius: 2px;
    text-decoration: none;
    background: var(--white);
    color: #4a5568;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.hw-brand-btn:hover,
.hw-brand-btn.active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.hw-archive.sneakers .hw-brand-btn:hover,
.hw-archive.sneakers .hw-brand-btn.active {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE: content-visibility on below-fold sections
   ═══════════════════════════════════════════════════════════ */
.hw-related,
.hw-footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* ═══════════════════════════════════════════════════════════
   FIX #9 — HEADER SEARCH
   ═══════════════════════════════════════════════════════════ */
.hw-header-search {
    flex: 0 1 240px;
    min-width: 0;
    transition: flex-basis 0.2s;
}
.hw-header-search:focus-within {
    flex-basis: 300px;
    border-color: var(--teal) !important;
}
.hw-header-search input::placeholder { color: #8a9ab0; }
.hw-header-search input:focus { outline: none; }

/* Hide search on mobile header (it's in the mobile menu instead) */
@media (max-width: 900px) {
    .hw-header-search { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE
   ═══════════════════════════════════════════════════════════ */
.hw-search-header {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 40px 32px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.hw-search-title {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--ink);
    margin-bottom: 8px;
}
.hw-search-count {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.hw-search-form-main {
    max-width: var(--content-w);
    margin: 0 auto 32px;
    padding: 0 32px;
}
.hw-search-form-main input[type="search"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 3px;
    font-family: var(--ff-body);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
}
.hw-search-form-main input[type="search"]:focus {
    border-color: var(--teal);
}
