/*
Theme Name: HorrorBuzz Store
Theme URI: https://horrorbuzz.store/
Author: Webstruction for HorrorBuzz
Author URI: https://horrorbuzz.com/
Description: Bespoke classic theme for the HorrorBuzz merch store. Dark scheme, ember orange, Bebas Neue / Roboto, WooCommerce-native. Scare us. We like it.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horrorbuzz
Tags: e-commerce, custom-colors, custom-menu, featured-images, translation-ready
WC requires at least: 8.0
WC tested up to: 10.9
*/

/* ============================================================
   HorrorBuzz Store â€” shared design system
   Ported from the approved mock (css/style.css). Tokens, chrome,
   cards, buttons â€” reused by every template. Fonts self-hosted.
   ============================================================ */

/* ---------- Self-hosted fonts ---------- */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/bebas-neue-400.woff2") format("woff2");
}

/* Roboto v51 ships as a single variable file covering the full weight axis */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/roboto.woff2") format("woff2");
}

:root {
  --bg:          #0C0403;
  --bg-deep:     #0A0302;
  --panel:       #130A06;
  --panel-hi:    #1B0F08;

  --ember:       #F0522E;
  --ember-hot:   #FF6B3D;
  --ember-deep:  #C43B1D;
  --blood:       #7E2318;

  --bone:        #EFE6DC;
  --ash:         #A89A92;

  --line:        rgba(240, 82, 46, 0.14);
  --line-soft:   rgba(239, 230, 220, 0.10);

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body:    "Roboto", Arial, sans-serif;

  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --torn: polygon(0 0, 100% 0, 100% 55%, 97% 90%, 94% 45%, 91% 100%,
    88% 60%, 85% 95%, 82% 50%, 79% 100%, 76% 65%, 73% 92%, 70% 48%,
    67% 100%, 64% 58%, 61% 96%, 58% 44%, 55% 100%, 52% 62%, 49% 90%,
    46% 50%, 43% 98%, 40% 55%, 37% 100%, 34% 60%, 31% 92%, 28% 46%,
    25% 100%, 22% 58%, 19% 94%, 16% 50%, 13% 100%, 10% 62%, 7% 90%,
    4% 48%, 2% 96%, 0 55%);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ember); color: #140502; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: #3a211a;
  border-radius: 6px;
  border: 3px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--ember-deep); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden,
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--ember);
  color: #140502;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Garment SVG palette (decorative motifs only) ---------- */

.garment { display: block; }

.fill-black    { fill: #1d1512; }
.fill-blood    { fill: var(--blood); }
.fill-bone     { fill: #e9dfd2; }
.fill-ash      { fill: #4e4844; }
.fill-ember    { fill: var(--ember); }
.fill-deep     { fill: #5e1a10; }
.fill-rim      { fill: rgba(239, 230, 220, 0.14); }
.fill-dark-rim { fill: rgba(12, 4, 3, 0.30); }
.fill-none     { fill: none; }

.stroke-rim   { stroke: rgba(239, 230, 220, 0.20); stroke-width: 2; }
.stroke-ember { stroke: var(--ember); stroke-width: 2.5; fill: none; }
.stroke-bone  { stroke: #e9dfd2; stroke-width: 2; fill: none; }

.print-display { font-family: var(--font-display); letter-spacing: 0.05em; }
.print-ember   { fill: var(--ember); }
.print-bone    { fill: var(--bone); }
.print-deep    { fill: #5e1a10; }

/* ---------- Announcement ticker ---------- */

.ticker {
  background: var(--ember);
  color: #140502;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 52s linear infinite;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0.45rem 1.125rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tick-sep { font-size: 0.8em; opacity: 0.6; }

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem var(--gutter);
  background: rgba(12, 4, 3, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.brand img {
  width: 110px;
  height: auto;
  filter: invert(1) sepia(0.9) saturate(2.7) hue-rotate(-55deg) brightness(0.94); /* black wordmark â†’ bone on dark */
}
.brand-store {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #140502;
  background: var(--ember);
  padding: 0.28rem 0.5rem 0.18rem;
  border-radius: 2px;
  transform: rotate(-4deg) translateY(-4px);
}

.main-nav { margin-inline: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--bone);
  padding: 0.35rem 0.1rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--ember-hot); }
.main-nav a.is-active,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a,
.main-nav li.current-product_cat-ancestor > a {
  color: var(--ember);
  border-bottom-color: var(--ember);
}
/* wp_nav_menu puts item classes on the <li>, so style both it and its link. */
.nav-mothership, .main-nav .nav-mothership > a { opacity: 0.55; }
.main-nav .nav-mothership > a, a.nav-mothership { font-size: 1.05rem; }
.nav-mothership:hover, .main-nav .nav-mothership > a:hover { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--bone);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover {
  color: var(--ember);
  border-color: var(--line);
  background: rgba(240, 82, 46, 0.06);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding-inline: 3px;
  display: grid;
  place-items: center;
  background: var(--ember);
  color: #140502;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
}
.cart-count:empty,
.cart-count.is-empty { display: none; }

.menu-btn { display: none; }

/* Header search reveal (nav.js toggles .is-open) */
.header-search {
  position: absolute;
  top: 100%;
  right: var(--gutter);
  left: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  display: none;
  padding: 0.75rem 0 0;
}
.header-search.is-open { display: block; }
.header-search form {
  display: flex;
  gap: 0.6rem;
  max-width: 520px;
  margin-left: auto;
}
.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
}
.header-search input::placeholder { color: #6b6b6b; }

/* Product search form (header reveal + empty-state) */
.hb-search-form { display: flex; gap: 0.6rem; }
.hb-search-form .search-field {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
}
.hb-search-form .search-field::placeholder { color: #6b6b6b; }
.hb-search-form .hb-search-submit {
  display: inline-grid;
  place-items: center;
  padding: 0.6rem 1rem;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vh, 6.5rem) var(--gutter) clamp(7rem, 14vh, 10rem);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 42% at 50% 104%, rgba(240, 82, 46, 0.38), transparent 68%),
    radial-gradient(ellipse 40% 34% at 82% 20%, rgba(240, 82, 46, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-ghost {
  position: absolute;
  right: -3%;
  bottom: -6%;
  font-family: var(--font-display);
  font-size: clamp(11rem, 32vw, 27rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 82, 46, 0.09);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
}

.hero h1 {
  font-size: clamp(4.6rem, 11vw, 9.5rem);
  line-height: 0.88;
  margin: 0.5rem 0 1.25rem;
  color: var(--bone);
}

.flicker {
  color: var(--ember);
  text-shadow:
    0 0 18px rgba(240, 82, 46, 0.55),
    0 0 60px rgba(240, 82, 46, 0.30);
  animation: flicker 4.5s linear infinite;
}

@keyframes flicker {
  0%, 88%, 100% { opacity: 1; }
  89%  { opacity: 0.4; }
  90%  { opacity: 1; }
  92%  { opacity: 0.55; }
  93%  { opacity: 1; }
  95.5%{ opacity: 0.7; }
  96%  { opacity: 1; }
}

.hero-sub {
  max-width: 44ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ash);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Featured product */

.hero-product {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-product .garment,
.hero-product .hero-photo {
  /* width: min(400px, 88%); */
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 42px rgba(240, 82, 46, 0.14));
  animation: float 7s ease-in-out infinite;
}
/* Featured product photo sits inside the ring chrome â€” kept smaller than the
   440px ring so the dashed orbit still reads around it, as in the mock. */
.hero-product .hero-photo {
  /* width: min(320px, 72%); */
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-product-ring {
  position: absolute;
  width: min(440px, 96%);
  aspect-ratio: 1;
  border: 1px dashed rgba(240, 82, 46, 0.35);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}

.hero-price-tag {
  position: absolute;
  top: 8%;
  right: 6%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: #140502;
  background: var(--bone);
  padding: 0.45rem 0.85rem 0.3rem;
  border-radius: 2px;
  transform: rotate(6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Hands rising from the bottom of the hero */

.hero-hands {
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-inline: 4%;
  pointer-events: none;
}

.hand {
  width: clamp(64px, 9vw, 126px);
  height: auto;
  fill: #080302;
  stroke: rgba(240, 82, 46, 0.35);
  stroke-width: 3;
  filter: drop-shadow(0 -8px 26px rgba(240, 82, 46, 0.30));
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero-hands .h1 { transform: translateY(18%); animation-delay: 0.30s; }
.hero-hands .h2 { transform: translateY(42%) scaleX(-1); width: clamp(44px, 6vw, 84px); animation-delay: 0.55s; }
.hero-hands .h3 { transform: translateY(8%) rotate(-4deg); animation-delay: 0.15s; }
.hero-hands .h4 { transform: translateY(50%) scaleX(-1) rotate(3deg); width: clamp(40px, 5.5vw, 78px); animation-delay: 0.70s; }
.hero-hands .h5 { transform: translateY(26%) rotate(2deg); animation-delay: 0.45s; }

@keyframes rise {
  from { translate: 0 105%; }
  to   { translate: 0 0; }
}

/* Ember drip line at the hero's ragged edge */

.hero > .torn-edge {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 14px;
  background: var(--ember);
  clip-path: var(--torn);
  opacity: 0.9;
}

/* ---------- Entry reveals ---------- */

.reveal {
  opacity: 0;
  animation: reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.15s; }
.r3 { animation-delay: 0.28s; }
.r4 { animation-delay: 0.40s; }
.r5 { animation-delay: 0.52s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Shared section chrome ---------- */

.categories, .shop, .reviews {
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter);
}

/* anchor jumps must clear the sticky header */
#main, #collections, #shop { scroll-margin-top: 96px; }

.section-head {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--bone);
}

.head-note {
  font-size: 0.45em;
  letter-spacing: 0.18em;
  color: var(--ember);
}

.see-all {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ember);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.see-all:hover { color: var(--ember-hot); border-bottom-color: currentColor; }

/* ---------- Categories ---------- */

.category-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.9rem 0.9rem 1.5rem;
  background: linear-gradient(165deg, var(--panel-hi), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Large category imagery — the photo fills the card width */
.category-card .category-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* SVG fallback stays proportional inside the same footprint */
.category-card .garment {
  width: 62%;
  height: auto;
  aspect-ratio: 1;
  margin: 1.25rem 0 1.6rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 82, 46, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(240, 82, 46, 0.12);
}
.category-card:hover .garment,
.category-card:hover .category-photo { transform: rotate(-4deg) scale(1.06); }

.category-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bone);
}
.category-card:hover .category-name { color: var(--ember); }

.category-count {
  font-size: 0.83rem;
  color: var(--ash);
}

/* ---------- Products ---------- */

.product-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
}

.product-card { display: flex; flex-direction: column; }

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, var(--panel-hi), var(--bg-deep) 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-media .garment {
  width: 76%;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Product photo fills the square media panel */
.product-media .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-media,
.product-card:focus-within .product-media {
  transform: translateY(-6px);
  border-color: rgba(240, 82, 46, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 34px rgba(240, 82, 46, 0.10);
}
.product-card:hover .garment,
.product-card:focus-within .garment {
  transform: rotate(-2.5deg) scale(1.04);
}
.product-card:hover .product-photo,
.product-card:focus-within .product-photo {
  transform: scale(1.05);
}

.quick-add {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.65rem 0 0.5rem;
  background: var(--ember);
  color: #140502;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(103%);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add { transform: translateY(0); }

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem 0.18rem;
  border-radius: 2px;
}
.badge-new     { background: var(--ember); color: #140502; }
.badge-limited { background: #140502; color: var(--ember); border: 1px solid var(--ember); }
.badge-soldout { background: #2a2320; color: var(--ash); }

.is-soldout .garment,
.is-soldout .product-photo { opacity: 0.5; filter: grayscale(0.6); }
.is-soldout .quick-add { background: #2a2320; color: var(--bone); }

.product-info { padding: 0.9rem 0.25rem 0; }

.product-info h3 {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.product-info h3 a { color: var(--bone); transition: color 0.2s ease; }
.product-info h3 a:hover { color: var(--ember); }

.product-meta {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--ash);
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--bone);
}
/* WooCommerce wraps prices in its own tags â€” keep them on-brand */
.price .woocommerce-Price-amount { color: var(--bone); }
.price del { color: var(--ash); font-weight: 400; margin-right: 0.35rem; }
.price ins { text-decoration: none; }

.swatches { display: inline-flex; gap: 0.4rem; }

.sw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.sw.is-on { outline: 1px solid var(--ember); outline-offset: 2px; }

.sw-black { background: #1a1210; }
.sw-blood { background: var(--blood); }
.sw-bone  { background: #e9dfd2; }
.sw-ash   { background: #55504c; }
.sw-ember { background: var(--ember); }

/* ---------- Collection banner ---------- */

.collection-banner {
  position: relative;
  margin-block: 2rem;
  padding: clamp(5rem, 12vh, 7.5rem) var(--gutter);
  background: linear-gradient(115deg, var(--ember-deep), var(--ember) 25%, var(--ember-hot));
  text-align: center;
  overflow: hidden;
}

.collection-banner .torn-top,
.collection-banner .torn-bottom {
  position: absolute;
  inset-inline: 0;
  height: 22px;
  background: var(--bg);
  z-index: 2;
}
.collection-banner .torn-top    { top: -1px; clip-path: var(--torn); }
.collection-banner .torn-bottom { bottom: -1px; clip-path: var(--torn); transform: scaleY(-1); }

.collection-inner { position: relative; z-index: 1; }

.eyebrow-dark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #140502;
}

.collection-banner h2 {
  font-size: clamp(3.6rem, 9vw, 7rem);
  color: #140502;
  margin: 0.5rem 0 1rem;
}

.collection-sub {
  max-width: 44ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #140502;
}

.collection-hands {
  position: absolute;
  inset-inline: 5%;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.collection-hands .hand {
  width: clamp(84px, 10vw, 140px);
  fill: rgba(20, 5, 2, 0.92);
  stroke: none;
  filter: none;
  animation: none;
}
.collection-hands .flip { transform: scaleX(-1) translateY(14%); }

/* ---------- Reviews ---------- */

.review-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.review-card:nth-child(1) { transform: rotate(-0.6deg); }
.review-card:nth-child(2) { transform: rotate(0.4deg) translateY(8px); }
.review-card:nth-child(3) { transform: rotate(-0.3deg); }
.review-card:hover { transform: rotate(0) translateY(0); border-color: var(--line); }

.stars {
  color: var(--ember);
  letter-spacing: 5px;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.review-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--bone);
}

.review-card figcaption {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- Brand strip ---------- */

.brand-strip { padding: 1rem var(--gutter) 4rem; }

.brand-strip-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(150deg, var(--panel-hi), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strip-logo {
  width: clamp(150px, 18vw, 220px);
  flex-shrink: 0;
  filter: invert(1) sepia(0.9) saturate(2.7) hue-rotate(-55deg) brightness(0.94);
  opacity: 0.92;
}

.brand-strip h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 0.75rem; }

.brand-strip p {
  max-width: 58ch;
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.text-link {
  font-weight: 500;
  color: var(--ember);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--ember-hot); border-bottom-color: currentColor; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.9rem 1.7rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ember);
  color: #140502;
}
.btn-primary:hover {
  background: var(--ember-hot);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 82, 46, 0.35);
}

.btn-ghost {
  border-color: rgba(239, 230, 220, 0.3);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
  transform: translateY(-2px);
}

.btn-dark {
  background: #140502;
  color: var(--bone);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 5, 2, 0.5);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 3.5rem var(--gutter) 1.5rem;
}

.footer-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand img { width: 130px; filter: invert(1) sepia(0.9) saturate(2.7) hue-rotate(-55deg) brightness(0.94); }

.footer-tag {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0.9rem 0 1.25rem;
}

.socials { display: flex; gap: 0.5rem; }

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--ash);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { color: var(--ember); border-color: var(--ember); }

.site-footer h3 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-bottom: 1rem;
}

.site-footer nav li { margin-bottom: 0.55rem; }

.site-footer nav a {
  font-size: 0.93rem;
  color: var(--ash);
  transition: color 0.2s ease;
}
.site-footer nav a:hover { color: var(--bone); }

.footer-legal {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 230, 220, 0.07);
  font-size: 0.82rem;
  color: var(--ash);
}

.payments { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.payments span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* ---------- Grain overlay ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   WordPress / WooCommerce integration (theme additions)
   ============================================================ */

/* Keep the sticky header clear of the admin bar for logged-in staff */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* WooCommerce notices restyled to the brand voice */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  max-width: var(--container);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 0.95rem;
}
.woocommerce-error { border-left-color: var(--ember-deep); }
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a { color: var(--ember); border-bottom: 1px solid transparent; }
.woocommerce-message a:hover,
.woocommerce-info a:hover { color: var(--ember-hot); border-bottom-color: currentColor; }
.woocommerce-error { display: grid; gap: 0.35rem; }

/* Generic page content (page.php, About/Contact/Shipping/etc.) */
.page-shell {
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) clamp(3.5rem, 8vh, 5.5rem);
}
.page-inner {
  max-width: 760px;
  margin-inline: auto;
}
.page-inner.is-wide { max-width: var(--container); }
.page-title {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.92;
  color: var(--bone);
  margin-bottom: 1.5rem;
}
.page-content { color: var(--ash); line-height: 1.75; font-size: 1.02rem; }
.page-content > * + * { margin-top: 1.15rem; }
.page-content h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--bone); margin-top: 2.25rem; }
.page-content h3 { font-size: 1.5rem; color: var(--ember); margin-top: 1.75rem; }
.page-content a { color: var(--ember); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.page-content a:hover { color: var(--ember-hot); border-bottom-color: currentColor; }
.page-content ul { list-style: none; display: grid; gap: 0.55rem; }
.page-content ul li { padding-left: 1.1rem; text-indent: -1.1rem; }
.page-content ul li::before { content: "â˜ "; margin-right: 0.55rem; color: var(--ember); font-size: 0.85em; }
.page-content ol { padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.page-content strong { color: var(--bone); }
.page-content table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.page-content th, .page-content td { padding: 0.65rem 0.75rem; border: 1px solid var(--line-soft); text-align: left; }
.page-content th { font-family: var(--font-display); letter-spacing: 0.06em; color: var(--bone); background: var(--panel); }
.page-content blockquote {
  margin: 1.25rem 0; padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--ember); color: var(--bone);
}
.page-lead { font-size: 1.15rem; color: var(--bone); line-height: 1.7; }
.contact-cta { margin-top: 2rem; }

/* 404 */
.error404-shell {
  min-height: 52vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter);
}
.error404-shell h1 {
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 0.85;
  color: var(--ember);
  text-shadow: 0 0 40px rgba(240,82,46,0.3);
}
.error404-shell p { margin: 1rem auto 2rem; max-width: 42ch; color: var(--ash); }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .main-nav a { font-size: 1rem; letter-spacing: 0.07em; }
  .main-nav .nav-mothership > a, a.nav-mothership { font-size: 0.9rem; }
  .main-nav ul { gap: clamp(0.6rem, 1.4vw, 1.25rem); }
  .site-header { gap: 1.25rem; }
}

@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .menu-btn { display: grid; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #0d0504;
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.25rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  }
  body.nav-open .main-nav { display: block; }
  body.nav-open .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  body.nav-open .main-nav a { font-size: 1.25rem; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-product { max-width: 340px; margin-inline: auto; }
  .hero-ghost { font-size: clamp(9rem, 40vw, 16rem); bottom: 24%; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .review-card:nth-child(2) { transform: rotate(0.4deg); }

  .brand-strip-inner { flex-direction: column; text-align: center; align-items: center; }
  .brand-strip p { margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .ticker-items { font-size: 0.9rem; }

  .brand img { width: 92px; }
  .site-header { gap: 0.75rem; }
  .header-actions { gap: 0.15rem; }
  .icon-btn { width: 36px; height: 36px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .category-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .category-card { padding: 1.4rem 0.9rem 1.2rem; }
  .category-card .garment { width: 66%; margin: 0.9rem 0 1.1rem; }
  .category-card .category-photo { margin-bottom: 0.85rem; }
  .category-name { font-size: 1.35rem; }

  .product-grid { gap: 1.25rem 0.9rem; }
  .product-info h3 { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .icon-btn.account-btn { display: none; }
}
