@font-face {
  font-family: "BristleDisplay";
  src: url("/static/brand/fonts/eurostile.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: light;
  --ink: #141413;
  --muted: #6f6c65;
  --line: #dedad2;
  --line-strong: #c7c1b7;
  --paper: #ffffff;
  --surface: #fbfaf7;
  --white: #ffffff;
  --accent: #22221f;
  --success: #1f6a45;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(31, 29, 25, 0.08);
  font-family: "BristleDisplay", ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);

  /* Storefront fluid system */
  --sf-space-1: clamp(0.32rem, 0.26rem + 0.18vw, 0.50rem);
  --sf-space-2: clamp(0.52rem, 0.40rem + 0.34vw, 0.80rem);
  --sf-space-3: clamp(0.78rem, 0.58rem + 0.58vw, 1.24rem);
  --sf-space-4: clamp(1.05rem, 0.74rem + 0.90vw, 1.78rem);
  --sf-space-5: clamp(1.48rem, 0.98rem + 1.48vw, 2.72rem);
  --sf-space-6: clamp(2.00rem, 1.22rem + 2.28vw, 4.00rem);

  --sf-page-x: clamp(0.90rem, 0.42rem + 2.28vw, 2.75rem);
  --sf-header-h: clamp(3.20rem, 2.88rem + 0.88vw, 4.20rem);

  --sf-text-xs: clamp(0.60rem, 0.56rem + 0.12vw, 0.68rem);
  --sf-text-sm: clamp(0.71rem, 0.65rem + 0.18vw, 0.84rem);
  --sf-text-md: clamp(0.86rem, 0.78rem + 0.25vw, 1.02rem);

  --sf-nav-text: clamp(0.64rem, 0.58rem + 0.18vw, 0.76rem);
  --sf-nav-gap: clamp(0.56rem, 0.16rem + 1.10vw, 1.38rem);
  --sf-mobile-icon-size: clamp(1.18rem, 1.02rem + 0.52vw, 1.46rem);

  --sf-wordmark-size: clamp(1.24rem, 1.00rem + 0.72vw, 1.76rem);
  --sf-wordmark-track: clamp(0.026em, 0.022em + 0.014vw, 0.044em);

  --sf-hero-title: clamp(2.15rem, 1.12rem + 5.15vw, 5.85rem);
  --sf-hero-content-w: min(73.75rem, calc(100% - (2 * var(--sf-page-x))));
  --sf-hero-pad-top: clamp(2.50rem, 1.55rem + 3.60vh, 5.20rem);
  --sf-hero-pad-bottom: clamp(2.00rem, 1.18rem + 3.50vh, 4.20rem);

  --sf-cta-h: clamp(2.85rem, 2.52rem + 0.82vw, 3.40rem);
  --sf-cta-x: clamp(1.05rem, 0.70rem + 1.12vw, 1.82rem);
  --sf-cta-text: clamp(0.67rem, 0.61rem + 0.16vw, 0.78rem);
}

* { box-sizing: border-box; }
html {
  background: #fff;
}
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.storefront-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}


.storefront-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  min-height: 620px;
  padding: clamp(72px, 10vw, 144px) clamp(20px, 6vw, 88px) 72px;
}

.hero-copy { max-width: 880px; }
.storefront-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-copy h1,
.catalog-hero h1,
.product-info h1,
.section-heading h2 {
  margin: 0;
  font-family: "BristleDisplay", Inter, sans-serif;
  font-weight: normal;
  letter-spacing: -0.045em;
}

.hero-copy h1 { max-width: 820px; font-size: clamp(3.1rem, 7vw, 7.2rem); line-height: 0.91; }
.hero-copy > p { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.storefront-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}
.storefront-button.primary { background: var(--ink); color: var(--white); }
.storefront-button.ghost { background: transparent; color: var(--ink); }

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line-strong);
  box-shadow: var(--shadow);
}
.hero-panel > div { min-height: 150px; padding: 28px; background: var(--surface); }
.hero-panel span { display: block; color: var(--muted); font-size: 0.82rem; }
.hero-panel strong { display: block; margin-top: 14px; font-family: "BristleDisplay", sans-serif; font-size: 3rem; }
.hero-panel p { grid-column: 1 / -1; margin: 0; padding: 24px 28px; background: var(--surface); color: var(--muted); line-height: 1.6; }

.storefront-section { padding: 64px clamp(20px, 6vw, 88px); }
.category-strip-section { padding-top: 28px; padding-bottom: 28px; border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.section-heading a { border-bottom: 1px solid var(--ink); font-size: 0.88rem; font-weight: 700; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading.compact h2 { font-size: 1.6rem; }

.category-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.category-strip a { flex: 0 0 auto; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 0.88rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.product-card { min-width: 0; }
.product-card-media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.product-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms ease; }
.product-card:hover .product-card-media img { transform: scale(1.018); }
.product-image-fallback { font-family: "BristleDisplay", sans-serif; font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: 0.12em; color: #a09a90; }
.product-card-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; background: var(--ink); color: white; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.product-card-copy { padding: 15px 2px 0; }
.product-card-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.75rem; }
.product-card-meta span + span::before { content: "·"; margin-right: 8px; }
.product-card h3 { margin: 8px 0 14px; font-size: 1.05rem; line-height: 1.35; }
.product-card-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.product-card-foot strong { font-size: 0.95rem; }
.product-card-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-card-price > span { color: var(--muted); font-size: 0.75rem; text-decoration: line-through; }
.availability-dot { color: var(--muted); font-size: 0.75rem; }
.availability-dot.is-available { color: var(--success); }

.storefront-empty { padding: clamp(42px, 7vw, 86px); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(251, 250, 247, 0.5); text-align: center; }
.storefront-empty span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; }
.storefront-empty h3 { margin: 12px 0 8px; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.storefront-empty p { max-width: 620px; margin: 0 auto; color: var(--muted); line-height: 1.65; }

.catalog-hero { padding: 84px clamp(20px, 6vw, 88px) 46px; border-bottom: 1px solid var(--line); }
.catalog-hero h1 { font-size: clamp(3rem, 6vw, 6rem); }
.catalog-hero p { margin: 16px 0 0; color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: minmax(210px, 270px) 1fr; gap: 42px; padding: 46px clamp(20px, 6vw, 88px) 84px; }
.catalog-filters { align-self: start; display: grid; gap: 18px; position: sticky; top: 112px; }
.catalog-filters label { display: grid; gap: 8px; }
.catalog-filters label > span { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; }
.catalog-filters input,
.catalog-filters select { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: var(--surface); color: var(--ink); }
.filter-reset { justify-self: start; color: var(--muted); font-size: 0.82rem; border-bottom: 1px solid var(--muted); }
.catalog-results-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; color: var(--muted); font-size: 0.84rem; }
.catalog-results-head strong { color: var(--ink); }

.product-detail { padding: 28px clamp(20px, 6vw, 88px) 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; color: var(--muted); font-size: 0.78rem; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr); gap: clamp(32px, 6vw, 86px); align-items: start; }
.product-gallery { min-width: 0; }
.product-main-media { display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.product-main-media img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.product-thumbnail { aspect-ratio: 1 / 1; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.product-thumbnail.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.product-info { position: sticky; top: 116px; padding-top: 12px; }
.product-info h1 { font-size: clamp(2.8rem, 5vw, 5.3rem); line-height: 0.95; }
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.product-price-row strong { font-size: 1.45rem; }
.product-price-row span { color: var(--muted); text-decoration: line-through; }
.product-stock { margin-top: 12px; color: var(--muted); font-size: 0.85rem; }
.product-stock.is-available { color: var(--success); }
.variant-picker { margin-top: 34px; }
.variant-picker > span, .product-description > span { display: block; margin-bottom: 10px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; }
.variant-options { display: grid; gap: 8px; }
.variant-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: transparent; text-align: left; cursor: pointer; }
.variant-option.is-active { border-color: var(--ink); background: var(--surface); }
.variant-option small { color: var(--muted); }
.product-description { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.product-description p { margin: 0; color: #45433f; line-height: 1.75; }
.product-phase-note { margin-top: 30px; padding: 18px 20px; border-radius: 16px; background: #ebe7de; }
.product-phase-note strong { display: block; margin-bottom: 5px; }
.product-phase-note p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }

.storefront-footer { display: flex; justify-content: space-between; gap: 28px; padding: 46px clamp(20px, 6vw, 88px); border-top: 1px solid var(--line); }
.storefront-footer > div:first-child { display: grid; gap: 6px; }
.storefront-footer strong { font-family: "BristleDisplay", sans-serif; letter-spacing: 0.08em; }
.storefront-footer span, .storefront-footer a { color: var(--muted); font-size: 0.82rem; }
.storefront-footer-links { display: flex; gap: 22px; align-items: center; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .storefront-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { max-width: 620px; }
  .product-detail-grid { grid-template-columns: 1fr 0.82fr; gap: 32px; }
}

@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters .storefront-button, .filter-reset { align-self: end; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-info { position: static; }
}

@media (max-width: 540px) {
  .storefront-hero { padding: 64px 18px 48px; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-panel > div { min-height: 120px; padding: 20px; }
  .hero-panel strong { font-size: 2.2rem; }
  .storefront-section, .catalog-hero, .catalog-layout, .product-detail { padding-left: 18px; padding-right: 18px; }
  .product-grid { gap: 20px 10px; }
  .product-card-media { border-radius: 14px; }
  .product-card-foot { align-items: flex-start; flex-direction: column; gap: 5px; }
  .catalog-filters { grid-template-columns: 1fr; }
  .product-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-info h1 { font-size: clamp(2.6rem, 13vw, 4.2rem); }
  .storefront-footer { flex-direction: column; }
}
.variant-dimension { margin-top: 18px; }
.variant-dimension > span { display: block; margin-bottom: 9px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; }
.variant-value-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-value-option { min-width: 48px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.variant-value-option:hover { background: var(--surface); }
.variant-value-option.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.variant-selection-summary { min-height: 1.25rem; margin-top: 12px; color: var(--muted); font-size: 0.78rem; }
@media (max-width: 680px) {
  .variant-value-option { min-width: 44px; min-height: 40px; padding: 8px 12px; }
}

/* ==========================================================================
   BRISTLE STOREFRONT — FLUID RESPONSIVE SYSTEM
   Canonical homepage header, navigation, wordmark and hero.
   Sizing flows continuously with clamp(); breakpoints alter structure only.
   ========================================================================== */

@font-face {
  font-family: "Bristle Reospec";
  src: url("/static/brand/fonts/reospec.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  font-display: block;
}

.storefront-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  min-height: var(--sf-header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sf-space-3);
  padding-inline: var(--sf-page-x);
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  background: rgb(0 0 0 / 0.32);
  color: #fff;
  font-size: var(--sf-nav-text);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.storefront-header-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sf-nav-gap);
  white-space: nowrap;
}

.storefront-mobile-control {
  display: none;
  width: var(--sf-mobile-icon-size);
  height: var(--sf-mobile-icon-size);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  place-items: center;
  cursor: pointer;
}

.storefront-mobile-control svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-header-left {
  justify-content: flex-start;
}

.storefront-header-right {
  justify-content: flex-end;
  color: inherit;
}

.storefront-header-left > span,
.storefront-header-right > span {
  color: inherit;
  font-size: var(--sf-nav-text);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.055em;
}

@font-face {
  font-family: "Bristle Wordmark DemiBold";
  src: url("/static/brand/fonts/ttfirsneuetrialdemibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

.storefront-wordmark {
  color: inherit;
  font-family: "Bristle Wordmark DemiBold", sans-serif;
  font-size: var(--sf-wordmark-size);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--sf-wordmark-track);
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  opacity: 1;
}

.storefront-wordmark:hover {
  opacity: 1;
}

.storefront-home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #090909;
  color: #fff;
}

.storefront-home-hero-media,
.storefront-home-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.storefront-home-hero-media {
  z-index: 0;
}

.storefront-home-hero-media img {
  object-fit: cover;
  object-position: center;
}

.storefront-home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgb(0 0 0 / 0.38),
      rgb(0 0 0 / 0.04) 52%,
      transparent 74%
    );
  pointer-events: none;
}

.storefront-home-hero-content {
  position: relative;
  z-index: 2;
  width: var(--sf-hero-content-w);
  margin-inline: auto;
  padding:
    var(--sf-hero-pad-top)
    0
    var(--sf-hero-pad-bottom);
  text-align: center;
}

.storefront-home-hero-content h1 {
  max-width: min(72rem, 92vw);
  margin: 0 auto;
  font-family: "Bristle Reospec", sans-serif;
  font-size: var(--sf-hero-title);
  font-weight: normal;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.storefront-home-hero-cta {
  width: fit-content;
  min-width: clamp(9rem, 7rem + 5vw, 14.5rem);
  min-height: var(--sf-cta-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.55rem, 1.05rem + 1.75vw, 2.65rem);
  padding-inline: var(--sf-cta-x);
  border: 1px solid rgb(255 255 255 / 0.78);
  background: transparent;
  color: #fff;
  font-size: var(--sf-cta-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.storefront-home-hero-cta:hover {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

/*
 * Responsive mobile mode:
 * clamp() continues sizing smoothly.
 * Only navigation information architecture changes.
 */
@media (max-width: 46rem) {
  .storefront-header-left > span,
  .storefront-header-right > span {
    display: none;
  }

  .storefront-mobile-control {
    display: inline-grid;
  }

  .storefront-header-right {
    gap: clamp(0.72rem, 0.58rem + 0.45vw, 0.94rem);
  }

  .storefront-home-hero-content h1 {
    max-width: 100%;
  }

  .storefront-home-hero-cta {
    width: clamp(10.5rem, 54vw, 17.5rem);
  }
}

@media (max-width: 24rem) {
  .storefront-header {
    gap: var(--sf-space-1);
  }
}
