/* Shared header chrome — loaded on every page (index + all categories).
   Header and nav are a fixed part of the site: identical layout, type,
   and spacing everywhere. The only thing that's allowed to differ between
   categories is background/border tint, and even that comes for free from
   each theme's own --paper/--border variables — there is no per-theme
   override of these rules anywhere. */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 96px;
  box-sizing: border-box;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
}
.site-footer .brand-logo {
  height: 54px;
}
.header-cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  /* Darkened from #25a75b to give the white label a 4.5:1 (WCAG AA)
     contrast ratio — verified with a relative-luminance calculation. */
  background: #1e8649;
  color: #fff;
  border: none;
  box-shadow: none;
  transition: background 0.15s ease;
}
.header-cta:hover {
  background: #1c8548;
}

/* Shared cross-category navigation strip, used on every page. Deliberately
   uses only variables every theme defines (--ink, --ink-soft, --border,
   --paper) so it blends into whichever theme it's loaded alongside without
   per-theme tuning. */

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.category-nav-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.category-nav-item:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}
.category-nav-item.current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.category-nav-item.all {
  font-style: italic;
}

/* Shared search box + empty-state, used on every categories/*.html page
   alongside whichever theme is loaded — same variable-only approach as
   the nav above. */
.product-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.product-search {
  width: 100%;
  max-width: 360px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  font-family: inherit;
}
.product-search:focus {
  border-color: var(--ink-soft);
}
.no-results {
  text-align: center;
  color: var(--ink-soft);
  margin: -8px 0 32px;
}

/* Shared hero content rhythm — icon, kicker, heading, sub, and button sit
   at the same position on every page. The icon slot is always reserved at
   a fixed size; pages with no real icon get an empty placeholder in its
   place so nothing below it shifts. The heading gets a fixed minimum
   height so each theme's own font size doesn't push the paragraph/button
   to a different position further down. Each theme keeps its own colors,
   fonts, and copy — only these two box dimensions are shared. */
.hero-icon,
.hero-diya {
  display: block;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
}
.hero-icon svg,
.hero-diya svg {
  width: 100%;
  height: 100%;
}
.hero h1 {
  min-height: 108px;
}

@media (max-width: 600px) {
  .header-cta {
    display: none;
  }
  .header-inner { min-height: 64px; padding: 10px 16px; }
  .brand-logo { height: 36px; }
  .category-nav { gap: 5px; padding: 8px 10px; }
  .category-nav-item { font-size: 0.66rem; padding: 5px 9px; }
  .hero-icon,
  .hero-diya { width: 26px; height: 26px; margin-bottom: 6px; }
  .hero h1 { min-height: 56px; }
}

/* Lets keyboard/screen-reader users jump straight past the header and the
   8-item category nav instead of tabbing through all of it on every page.
   Off-screen until focused, so sighted mouse users never see it. */
.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* Keyboard-focus indicator, shared by every page. Only fires for keyboard
   navigation (:focus-visible), not a mouse click, so it doesn't add a ring
   around every button someone taps. A white ring plus a dark halo means it
   stays visible regardless of which theme's background sits underneath —
   unlike a plain browser-default outline, which some themes/backgrounds
   can make hard to see, and which is easy to accidentally suppress (as a
   couple of theme files already did for the search box, since fixed). */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.65);
}
