/* ==========================================================================
   NOBLE DEFENSE APPAREL — STYLESHEET
   Design tokens live at the top. Change colors/fonts there and they
   propagate through the whole site.
   ========================================================================== */

:root {
  /* ---- color ----
     Palette is pulled directly from the logo: near-black, bone, and the
     oxblood crimson from the APPAREL rule. --brass/--brass-bright are the
     accent variables used throughout the sheet; they now hold the logo red.
     Change these two values and the whole site's accent changes.          */
  --ink:          #0b0b0b;   /* primary background, near-black */
  --panel:        #141414;   /* raised panel */
  --panel-2:      #1b1b1b;
  --line:         rgba(233, 230, 221, 0.13);
  --line-strong:  rgba(233, 230, 221, 0.26);
  --bone:         #eae6db;   /* primary text on dark */
  --bone-dim:     #a8a49a;
  --brass:        #8e2a2a;   /* accent — logo crimson */
  --brass-bright: #b53c3c;   /* accent, lifted for hover/highlight */
  --steel:        #414b57;   /* LEO nod, used sparingly */
  --redline:      #b53c3c;   /* error / alert text */
  --ok:           #4b6b45;
  --accent-text:  #d2665f;   /* accent for SMALL text — lifted so it stays legible on black */

  /* ---- type ---- */
  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-body:    "Inter", -apple-system, sans-serif;
  --f-serif:   "Frank Ruhl Libre", Georgia, serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* ---- scale ---- */
  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-text);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 0 0 0.4em;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 0; }
.section-head p { color: var(--bone-dim); max-width: 46ch; margin: 0; }

section { padding: 96px 0; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.btn {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--bone);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn-solid {
  background: var(--brass);
  color: var(--ink);
}
.btn-solid:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.btn-ghost {
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(12,12,11,0.85), transparent);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12,12,11,0.96);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* Logo lockup: the shield mark sits beside the stacked wordmark in the
   header (compact), and the full stacked logo is used in the footer.
   Swap the image files in images/brand/ to update the logo everywhere. */
.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo img { height: 42px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .logo img { height: 34px; }
.logo-text {
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
}
.logo-text span {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-top: 4px;
}
.footer-logo img { height: 128px; width: auto; margin-bottom: 20px; }
@media (max-width: 520px) {
  .logo img { height: 34px; }
  .logo-text { font-size: 16px; }
  .logo-text span { font-size: 8.5px; letter-spacing: 0.2em; }
}
.primary-nav { display: flex; gap: 34px; }
.primary-nav a {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.primary-nav a:hover { color: var(--bone); border-color: var(--brass); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  background: none; border: none; color: var(--bone);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em;
}
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  background: var(--brass); color: var(--ink);
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  color: var(--bone); padding: 9px 11px;
}

@media (max-width: 880px) {
  .primary-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    background: var(--panel);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid var(--line);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 64px),
    radial-gradient(ellipse 90% 60% at 50% 0%, #201f14 0%, var(--ink) 62%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 30%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-kicker {
  font-family: var(--f-mono);
  color: var(--accent-text);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}
.hero-sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--bone-dim);
  max-width: 52ch;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* manifest strip */
.manifest-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 0;
}
.manifest-track {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.manifest-track span { color: var(--accent-text); margin-right: 8px; }

/* ==========================================================================
   PRODUCT CARDS + GRID
   ========================================================================== */
.rail-wrap { overflow-x: auto; margin: 0 -28px; padding: 0 28px 8px; }
.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: none; padding: 0; background: #232318;
  display: block; width: 100%;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.img-fallback { display: flex; align-items: center; justify-content: center; }
.card-media.img-fallback::before {
  content: "Add product photo →\A images/products/";
  white-space: pre;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone-dim);
  text-align: center;
  padding: 0 16px;
}
.card-media.img-fallback img { display: none; }

.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: var(--accent-text);
  border: 1px solid var(--brass-bright);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 5px 9px; text-transform: uppercase;
}
.card-unit {
  position: absolute; bottom: 0; right: 0; z-index: 2;
  background: rgba(12,12,11,0.82);
  color: var(--bone);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  padding: 7px 11px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card-body { padding: 16px 16px 4px; flex: 1; }
.card-title {
  font-family: var(--f-display);
  font-size: 16px; letter-spacing: 0.01em;
  margin: 0 0 8px;
}
.card-price {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--bone);
  margin: 0;
}
.price-compare {
  color: var(--bone-dim);
  text-decoration: line-through;
  margin-left: 8px;
  font-size: 12.5px;
}
.card-cta {
  margin: 14px 16px 16px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.card-cta:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

.empty-note { color: var(--bone-dim); font-family: var(--f-mono); font-size: 13px; }

.policy-body h4 {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--accent-text);
  margin: 30px 0 10px;
}
.policy-body h4:first-of-type { margin-top: 8px; }
.policy-body p {
  color: var(--bone-dim);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* shop tabs */
.shop-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px;
}
.shop-tab {
  background: none; border: 1px solid var(--line-strong); color: var(--bone-dim);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 10px 18px; border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.shop-tab.is-active, .shop-tab:hover { background: var(--brass); color: var(--bone); border-color: var(--brass); }

/* secondary "Shop by Service" filter — deliberately quieter than the
   primary type tabs above: smaller text, no fill, thin underline for
   the active state instead of a solid chip. It's a refinement, not a
   second identical choice. */
.service-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: -14px 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.service-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.service-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.service-chip {
  background: none; border: none;
  color: var(--bone-dim);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-chip:hover { color: var(--bone); }
.service-chip.is-active { color: var(--accent-text); border-color: var(--accent-text); }

/* ==========================================================================
   MISSION SECTION
   ========================================================================== */
.mission {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.mission blockquote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  margin: 20px 0 28px;
  color: var(--bone);
}
.mission cite {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mission-media {
  aspect-ratio: 4/5;
  background: #232318;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--bone-dim);
  text-align: center; padding: 24px;
}
.stat b {
  display: block; font-family: var(--f-display); font-size: 34px; color: var(--accent-text);
}
.stat span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim); }

@media (max-width: 880px) {
  .mission-grid { grid-template-columns: 1fr; }
  .mission-media { order: -1; aspect-ratio: 16/9; }
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  border: 1px solid var(--line);
  padding: 26px 22px;
  text-align: center;
}
.trust-item svg { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 14px; }
.trust-item h4 { font-size: 14px; margin-bottom: 6px; }
.trust-item p { color: var(--bone-dim); font-size: 13.5px; margin: 0; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
}
.testimonial .stars { color: var(--accent-text); letter-spacing: 3px; margin-bottom: 16px; display: block; }
.testimonial p.quote { font-family: var(--f-serif); font-style: italic; font-size: 17px; line-height: 1.6; margin-bottom: 18px; }
.testimonial .who { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim); }
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter {
  background: linear-gradient(120deg, #201a0d, #14140d);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter h2 { font-size: clamp(26px, 4vw, 38px); }
.newsletter p { color: var(--bone-dim); max-width: 50ch; margin: 0 auto 30px; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 460px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input[type=email] {
  flex: 1; min-width: 220px;
  background: var(--ink); border: 1px solid var(--line-strong);
  color: var(--bone); padding: 15px 16px; font-family: var(--f-body);
  border-radius: var(--radius);
}
.form-note { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--bone-dim); min-height: 1.2em; }
.form-note.is-success { color: var(--accent-text); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--bone-dim); font-size: 14px; max-width: 32ch; }
.footer-col h5 {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--bone-dim); font-size: 14px; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--bone-dim);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */
#quickview {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8,8,7,0.82);
  padding: 24px;
}
#quickview.is-open { display: flex; }
.qv-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  max-width: 880px; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  max-height: 88vh;
  overflow: auto;
}
.qv-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--ink); border: 1px solid var(--line-strong);
  color: var(--bone); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.qv-image { background: #232318; position: relative; }
.qv-image img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.qv-info { padding: 40px; display: flex; flex-direction: column; }
.qv-unit {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; display: block;
}
.qv-title { font-size: 26px; margin-bottom: 10px; }
.qv-price { font-family: var(--f-mono); color: var(--bone); font-size: 17px; margin-bottom: 18px; }
.qv-desc { color: var(--bone-dim); margin-bottom: 22px; }
.qv-details {
  font-size: 13.5px; color: var(--bone-dim);
  padding-left: 18px; margin: 0 0 26px;
  display: grid; gap: 6px;
}
.qv-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bone-dim); margin-bottom: 10px; display: block;
}
.qv-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.size-chip {
  border: 1px solid var(--line-strong); background: none; color: var(--bone);
  font-family: var(--f-mono); font-size: 12.5px; padding: 9px 14px; border-radius: var(--radius);
  transition: all 0.15s var(--ease);
}
.size-chip:hover { border-color: var(--brass); }
.size-chip.is-selected { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.qv-error { color: var(--redline); font-size: 12.5px; min-height: 1.4em; margin: 8px 0 4px; font-family: var(--f-mono); }

.qv-row { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.qty-stepper-lg {
  display: flex; align-items: center; border: 1px solid var(--line-strong);
}
.qty-stepper-lg button {
  background: none; border: none; color: var(--bone); width: 40px; height: 48px; font-size: 16px;
}
.qty-stepper-lg input {
  width: 46px; text-align: center; background: none; border: none; color: var(--bone);
  font-family: var(--f-mono); font-size: 15px;
}

@media (max-width: 720px) {
  .qv-card { grid-template-columns: 1fr; }
  .qv-image img { min-height: 220px; }
  .qv-info { padding: 28px; }
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
#cart-overlay {
  position: fixed; inset: 0; background: rgba(8,8,7,0.7);
  z-index: 80; display: none;
}
#cart-overlay.is-open { display: block; }

#cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85;
  width: min(420px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
#cart-drawer.is-open { transform: translateX(0); }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 24px 18px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-size: 18px; }
#cart-lines { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 18px; align-content: start; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; }
.cart-line img { width: 64px; height: 76px; object-fit: cover; border: 1px solid var(--line); }
.cart-line-title { font-size: 14.5px; margin: 0 0 4px; font-family: var(--f-display); text-transform: none; letter-spacing: 0; }
.cart-line-meta { font-family: var(--f-mono); font-size: 12px; color: var(--bone-dim); margin: 0 0 10px; }
.qty-stepper { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); padding: 4px 10px; }
.qty-stepper button { background: none; border: none; color: var(--bone); font-size: 14px; }
.cart-line-remove { background: none; border: none; color: var(--bone-dim); font-size: 18px; }
.cart-line-remove:hover { color: var(--redline); }
.cart-foot { padding: 22px 24px 28px; border-top: 1px solid var(--line); }
.promo-label {
  display: block;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bone-dim); margin-bottom: 8px;
}
.promo-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-row input {
  flex: 1 1 auto; min-width: 0;
  background: var(--ink); border: 1px solid var(--line-strong);
  color: var(--bone); padding: 11px 12px;
  font-family: var(--f-mono); font-size: 12.5px; border-radius: var(--radius);
}
.promo-apply-btn {
  flex: 0 0 auto; width: auto;
  font-size: 11px; padding: 11px 16px; white-space: nowrap;
}
.promo-message {
  font-family: var(--f-mono); font-size: 11.5px;
  margin: 0 0 14px; min-height: 1.2em;
}
.promo-message.is-error { color: var(--redline); }
.promo-message.is-success { color: var(--accent-text); }
.promo-remove {
  background: none; border: none; color: var(--bone-dim);
  font-size: 13px; margin-left: 4px; padding: 0; cursor: pointer;
}
.promo-remove:hover { color: var(--redline); }

.ship-state-row { margin-bottom: 18px; }
.ship-state-row select {
  width: 100%;
  background: var(--ink); border: 1px solid var(--line-strong);
  color: var(--bone); padding: 11px 12px;
  font-family: var(--f-mono); font-size: 12.5px; border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a49a' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.ship-state-row select:invalid { color: var(--bone-dim); }

.cart-subtotal-row { display: flex; justify-content: space-between; font-family: var(--f-mono); margin-bottom: 8px; }
.cart-discount-row {
  display: none; justify-content: space-between; font-family: var(--f-mono);
  font-size: 13.5px; color: var(--accent-text); margin-bottom: 8px;
}
.cart-discount-row.is-visible { display: flex; }
.cart-tax-row {
  display: none; justify-content: space-between; font-family: var(--f-mono);
  font-size: 13.5px; color: var(--bone-dim); margin-bottom: 8px;
}
.cart-tax-row.is-visible { display: flex; }
.cart-total-row {
  display: none; justify-content: space-between; font-family: var(--f-mono);
  font-weight: 600; font-size: 15px;
  border-top: 1px solid var(--line); padding-top: 10px; margin: 4px 0 16px;
}
.cart-total-row.is-visible { display: flex; }
#ship-state-prompt { display: none; }
#ship-state-prompt.is-visible { display: block; }
.cart-note { font-size: 12px; color: var(--bone-dim); margin-top: 12px; text-align: center; }

/* checkout note modal — explains the next manual step after a real
   PayPal payment (placing the matching fulfillment order) */
#checkout-note {
  position: fixed; z-index: 95; inset: 0;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
#checkout-note.is-open { display: flex; }
.checkout-note-card {
  background: var(--panel); border: 1px solid var(--brass);
  max-width: 440px; padding: 34px; position: relative;
}
.checkout-note-card h4 { margin-bottom: 14px; }
.checkout-note-card p { color: var(--bone-dim); font-size: 14.5px; margin-bottom: 10px; }
.checkout-note-card .qv-close { top: 12px; right: 12px; }

/* size guide modal — opened from Quick View's size selector, or from the
   footer link (which works cross-page via the #size-guide hash) */
#size-guide-modal {
  position: fixed; z-index: 95; inset: 0;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
#size-guide-modal.is-open { display: flex; }
.size-guide-card { max-width: 560px; max-height: 88vh; overflow: auto; }

.qv-size-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.qv-size-head .qv-label { margin-bottom: 0; }
.size-guide-link {
  background: none; border: none; color: var(--bone-dim);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 3px; padding: 0;
}
.size-guide-link:hover { color: var(--accent-text); }

/* ==========================================================================
   UTIL
   ========================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ==========================================================================
   EMAIL SIGNUP POPUP (10% off first order)
   ========================================================================== */
#email-popup {
  position: fixed; z-index: 98; inset: 0;
  display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(11,11,11,0.72);
}
#email-popup.is-open { display: flex; }
.email-popup-card, .email-popup-success {
  background: var(--panel); border: 1px solid var(--brass);
  max-width: 440px; width: 100%; padding: 38px 34px; position: relative;
  text-align: center;
}
.email-popup-card h4, .email-popup-success h4 {
  font-size: 26px; margin-bottom: 12px;
}
.email-popup-copy {
  color: var(--bone-dim); font-size: 14.5px; margin-bottom: 22px; line-height: 1.5;
}
#email-popup-form { display: flex; flex-direction: column; gap: 12px; }
#email-popup-input {
  background: var(--ink); border: 1px solid var(--line); color: var(--bone);
  padding: 13px 16px; font-family: var(--f-body); font-size: 14.5px;
  width: 100%;
}
#email-popup-input:focus { outline: none; border-color: var(--accent); }
.email-popup-error {
  color: var(--accent-text); font-size: 12.5px; margin-top: 10px; margin-bottom: 0;
}
.email-popup-skip {
  background: none; border: none; color: var(--bone-dim);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 3px;
  margin-top: 18px; padding: 0; cursor: pointer;
}
.email-popup-skip:hover { color: var(--accent-text); }
.email-popup-code {
  font-family: var(--f-mono); font-size: 22px; letter-spacing: 0.12em;
  color: var(--accent-text); border: 1px dashed var(--brass);
  padding: 14px; margin-bottom: 22px; background: var(--ink);
}
#email-popup .qv-close { top: 12px; right: 12px; }

.order-number-tag {
  display: inline-block; margin-top: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--accent-text); border: 1px dashed var(--brass);
  padding: 6px 12px;
}
