/* ==========================================================
   4C4W Chapple — Homepage Styles
   Dark / grainy / military-cowboy theme, baby blue accents
   ========================================================== */

:root {
  --bg: #121310;            /* near-black with an olive cast */
  --header: #050505;        /* header black */
  --panel: #1b1d17;         /* gunmetal olive */
  --olive: #3d4430;         /* olive drab */
  --leather: #8a6a45;       /* saddle leather */
  --sand: #c9b99a;          /* worn canvas */
  --text: #ece7dc;          /* aged paper white */
  --muted: #9a9585;
  --accent: #4BD1CB;        /* site accent teal (was baby blue) */
  --accent-hover: #7FE0DA;  /* lighter teal for hover */
  --accent-ink: #0d171c;    /* dark text on baby blue */
  --menu-hover: #4BD1CB;    /* menu hover teal */
  --accent-text: #4BD1CB;   /* teal for accent text */
  --menu-font: "Lulo Clean", "Arial Black", Arial, Helvetica, sans-serif;
}

/* Lulo Clean — place your licensed font files in the fonts/ folder */
@font-face {
  font-family: "Lulo Clean";
  src: url("fonts/LuloClean.woff") format("woff"),
       url("fonts/LuloClean.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, button, input { font-family: Arial, Helvetica, sans-serif; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- Grain overlay ---------- */
/* never let anything push the page sideways on phones */
html, body { overflow-x: clip; }

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid #1f2119;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 40px;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-placeholder {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px dashed var(--muted);
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--muted);
}

.logo-img { height: 72px; width: auto; display: block; }


.wordmark {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}

/* ---------- Nav ---------- */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: var(--menu-font);
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link.active { color: var(--accent-text); }

.nav-link:hover,
.nav-link:focus-visible,
.dropdown.open > .nav-link { color: var(--menu-hover); outline: none; }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; display: flex; align-items: center; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--olive);
  border-top: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 6px 0;
  z-index: 10;
}

.dropdown-menu.align-right { left: auto; right: 0; transform: none; }

.dropdown.open .dropdown-menu,
.dropdown-hover:hover .dropdown-menu,
.dropdown-hover:focus-within .dropdown-menu { display: block; }

.dropdown-hover:hover > .nav-link { color: var(--menu-hover); }

/* invisible bridge so the menu doesn't close while the mouse crosses the gap */
.dropdown-hover .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-family: var(--menu-font);
  font-size: 10.5px;
  font-weight: normal;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible { background: var(--olive); color: var(--menu-hover); outline: none; }

/* ---------- Right side ---------- */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.made-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
}

.flag-img {
  width: 42px;
  height: 28px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  text-decoration: none;
  padding: 2px;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.icon-btn svg.filled { fill: currentColor; stroke: none; }
.icon-btn svg.chevron { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--accent-hover); }

.cart-count {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: bold;
  color: var(--accent-ink);
}

/* ---------- Search bar ---------- */
.search-bar {
  display: none;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px 14px;
  gap: 10px;
}

.search-bar.open { display: flex; }

.search-bar input {
  flex: 1;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--olive);
  color: var(--text);
  font-size: 15px;
}

.search-bar input:focus { outline: 2px solid var(--accent); }

/* ---------- Buttons ---------- */
.search-bar button,
.btn,
.chat-form button {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover,
.btn:hover,
.chat-form button:hover { background: var(--accent-hover); }

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid var(--accent);
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--accent); }

/* ==================== SOCIAL ==================== */
.social {
  position: fixed;
  left: 16px;
  top: 42%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--header);
  border: 1px solid #333;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover { background: var(--accent); color: var(--accent-ink); }

/* ==================== FIXED BACKGROUND PHOTOS ====================
   The photo stays put while the page scrolls over it.
   clip-path keeps each photo inside its own section; the fixed
   ::before layer holds the photo (works on iPhone, unlike
   background-attachment: fixed). */
.hero,
.page-hero {
  clip-path: inset(0);
}

.hero::before,
.page-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--panel);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero::before {
  background-image:
    linear-gradient(rgba(10, 11, 9, 0.42), rgba(10, 11, 9, 0.42)),
    url("images/hero.jpg");
}

/* The section right under a banner tucks 2px up under it, so no
   hairline gap appears at 125% / 150% Windows display scaling */
.hero + section,
.page-hero + section {
  position: relative;
  z-index: 1;
  margin-top: -2px;
}

/* Soft fade into the page at the bottom of each banner */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}

.hero-tagline,
.hero-content,
.page-hero-content { z-index: 1; }

.page-hero-content { position: relative; }

/* ==================== HERO ==================== */
main { flex: 1; }

.hero {
  position: relative;
  min-height: 640px;
  height: calc(100vh - 96px);
  max-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 60px 96px; /* bottom room so the chat button doesn't cover the tiles */
}

.hero-tagline {
  position: absolute;
  top: 48px;
  right: 22%;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* ---------- Rotating "Handcrafted ___" line ---------- */
.hero-rotator {
  margin-top: 28px;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.rotator-word {
  display: inline-block;
  min-width: 1ch;
  color: var(--accent-text);
  border-bottom: 3px solid var(--menu-hover);
  padding-bottom: 2px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotator-word.out {
  opacity: 0;
  transform: translateY(-12px);
}

/* ---------- Service tiles ---------- */
.service-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 8px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(10, 11, 9, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 185, 154, 0.18);
  border-top: 3px solid var(--accent);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.service-tile svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.service-tile span {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.service-tile:hover,
.service-tile:focus-visible {
  transform: translateY(-4px);
  background: rgba(10, 11, 9, 0.8);
  border-top-color: var(--menu-hover);
  color: var(--menu-hover);
  outline: none;
}

/* Four larger tiles */
.service-strip--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  gap: 14px;
}

.service-strip--4 .service-tile { padding: 24px 12px 20px; gap: 12px; }
.service-strip--4 .service-tile svg { width: 38px; height: 38px; }
.service-strip--4 .service-tile span { font-size: 13px; letter-spacing: 2px; }

.service-tile:hover svg,
.service-tile:focus-visible svg { stroke: var(--menu-hover); }


/* ==================== INNER PAGE BANNER ==================== */
.page-hero {
  position: relative;
  min-height: 460px;
  height: 60vh;
  max-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 70px;
}

/* Holsters banner (All, IWB, OWB): the title block sits in the gap between
   the center soldier's eyes and the Arkansas patch on his shoulder.
   The photo is fixed to the screen, so its position depends on the screen's
   shape; --u scales the text so the whole block always fits that gap. */
.page-hero--holsters {
  --u: 1vw;
  --hdr: 97px;
  height: calc(82vh - 96px);
  min-height: 540px;
  max-height: none;
  padding: 0;
}

.page-hero--holsters::after {
  background: linear-gradient(180deg, transparent 82%, var(--bg) 100%);
}

.page-hero--holsters .page-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 12px;
  top: calc(10.27vw + 30vh - var(--hdr));
  transform: translateY(-50%);
}

.page-hero--holsters .page-kicker {
  font-size: max(10px, calc(var(--u) * 1.05));
  letter-spacing: 0.4em;
  margin-bottom: calc(var(--u) * 0.7);
}

.page-hero--holsters .page-title {
  font-size: calc(var(--u) * 4.2);
  line-height: 1;
}

.page-hero--holsters .divider {
  margin: calc(var(--u) * 0.6) auto;
}

.page-hero--holsters .divider .divider-logo {
  width: calc(var(--u) * 2.8);
  height: calc(var(--u) * 2.8);
}

.page-hero--holsters .page-sub {
  font-size: max(10px, calc(var(--u) * 1.2));
  letter-spacing: 0.25em;
}

/* Taller screens (tablets, phones, squarish monitors) */
@media (max-aspect-ratio: 3/2) {
  .page-hero--holsters { --u: min(1.5vh, 2vw); }
  .page-hero--holsters .page-hero-content { top: calc(45.4vh - var(--hdr)); }
}

@media (max-width: 1200px) {
  .page-hero--holsters { --hdr: 83px; }
}

.page-hero--holsters::before {
  background-image:
    linear-gradient(rgba(10, 11, 9, 0.5), rgba(10, 11, 9, 0.5)),
    url("images/holsters-hero.jpg");
  background-position: center 30%;
}

/* "Be the difference." on inner pages, matching the homepage */
.page-kicker {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.page-sub {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.page-hero--gallery::before {
  background-image:
    linear-gradient(rgba(10, 11, 9, 0.5), rgba(10, 11, 9, 0.5)),
    url("images/hero.jpg");
  background-position: center 35%;
}

.page-hero--woodworking::before {
  background-image:
    linear-gradient(rgba(10, 11, 9, 0.55), rgba(10, 11, 9, 0.55)),
    url("images/woodworking-hero.jpg"),
    url("images/hero.jpg");
  background-position: 55% 38%; /* plane, board and shavings in view; the photo is tall */
}

.page-hero--home-goods::before {
  background-image:
    linear-gradient(rgba(10, 11, 9, 0.55), rgba(10, 11, 9, 0.55)),
    url("images/home-goods-hero.jpg"),
    url("images/hero.jpg");
  background-position: center 35%;
}

.page-hero--engraving::before {
  background-image:
    linear-gradient(rgba(10, 11, 9, 0.55), rgba(10, 11, 9, 0.55)),
    url("images/engraving-hero.jpg"),
    url("images/hero.jpg");
  background-position: 28% 45%; /* keeps the laser head in view on phones */
}

/* Banner video (fixed like the photos, dimmed so the title stays readable) */
.page-hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
  pointer-events: none;
}

/* ---------- Category cards ---------- */
.service-cards.cards-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.category-card p { flex: 1; margin-bottom: 18px; }

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--menu-hover);
}

.category-card:hover .btn { background: var(--accent-hover); }

/* ==================== RANCH BANNER ==================== */
.ranch-banner {
  background: var(--bg);
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.ranch-banner img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
}

/* ==================== OUR STORY ==================== */
.story {
  background: var(--accent);
  color: var(--accent-ink);
}

.story-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 70px 40px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 50px;
}

.story h2 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-sub {
  margin-top: 16px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.story-text p { font-size: 17px; line-height: 1.7; }
.story-text p + p { margin-top: 18px; }

/* ==================== OUR SERVICES ==================== */
.services {
  background:
    linear-gradient(180deg, var(--bg) 0, rgba(18, 19, 16, 0) 260px),
    radial-gradient(ellipse at 15% 0%, rgba(61, 68, 48, 0.4), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(138, 106, 69, 0.2), transparent 50%),
    var(--bg);
}

.services-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head p { color: var(--sand); font-size: 17px; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 22px;
  max-width: 380px;
}

.divider .line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--leather), transparent); }
.divider .star { color: var(--accent-text); font-size: 18px; }

/* 4C4W logo in the middle of each divider */
.divider .divider-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  fill: var(--accent-text);
  stroke: var(--accent-text);
  stroke-width: 5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--olive);
  border-top: 4px solid var(--accent);
  padding: 30px 26px;
}

.service-card h3 {
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent-text);
}

.service-card p { color: var(--sand); font-size: 15px; line-height: 1.7; }

.kydex-feature {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.kydex-feature img {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  border: 1px solid var(--olive);
}

.btn { display: inline-block; }
.btn-lg { padding: 16px 40px; font-size: 16px; letter-spacing: 3px; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--header);
  border-top: 2px solid var(--olive);
  color: var(--muted);
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 50px 40px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

.footer-tag { margin: 4px 0 18px; color: var(--accent-text); letter-spacing: 2px; }

.footer-social { display: flex; gap: 10px; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.footer-links a:hover { color: var(--accent-text); }

.subscribe { display: flex; flex-direction: column; gap: 12px; }

.subscribe-title {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

.subscribe input[type="email"] {
  padding: 11px 14px;
  background: var(--panel);
  border: 1px solid var(--olive);
  color: var(--text);
  font-size: 15px;
}

.subscribe input[type="email"]:focus { outline: 2px solid var(--accent); }

.check { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.subscribe .btn { align-self: flex-start; }
.subscribe-msg { color: var(--accent-text); font-weight: bold; }

.copyright {
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 18px 20px 90px;
  border-top: 1px solid #1f2119;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ==================== CHAT ==================== */
.chat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
}

.chat-btn:hover { background: var(--accent-hover); }
.chat-btn svg { width: 26px; height: 26px; fill: currentColor; }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 150;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--panel);
  border: 1px solid var(--olive);
  border-top: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--olive);
  letter-spacing: 2px;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chat-msg {
  margin: 16px;
  padding: 12px;
  background: var(--olive);
  font-size: 14px;
}

.chat-form { display: flex; gap: 8px; padding: 0 16px 16px; }

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--olive);
  color: var(--text);
}

/* ==================== GALLERY PAGE ==================== */
.gallery-section {
  background:
    linear-gradient(180deg, var(--bg) 0, rgba(18, 19, 16, 0) 260px),
    radial-gradient(ellipse at 15% 0%, rgba(61, 68, 48, 0.4), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(138, 106, 69, 0.2), transparent 50%),
    var(--bg);
}

.gallery-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 40px 90px;
}

/* ---------- Filter buttons ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(201, 185, 154, 0.3);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent-text);
  outline: none;
}

.gallery-subfilters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -24px 0 36px;
  padding-top: 14px;
  border-top: 1px solid var(--olive);
}

.gallery-subfilters[hidden] { display: none; }

.sub-btn {
  padding: 7px 14px;
  background: transparent;
  color: var(--sand);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sub-btn:hover, .sub-btn:focus-visible { color: var(--accent-text); border-color: var(--olive); outline: none; }
.sub-btn.is-active { color: var(--accent-text); border-color: var(--accent); }

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Staggered photo wall ---------- */
.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 16px;
  background: var(--panel);
  border: 1px solid var(--olive);
  animation: gallery-in 0.35s ease both;
}

.gallery-item[hidden] { display: none; }

@keyframes gallery-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .gallery-item { animation: none; } }

.gallery-media {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  position: relative;
}

.gallery-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.9) contrast(1.05);
}

.gallery-open { cursor: zoom-in; }

.gallery-open:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.gallery-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* "Photo coming soon" spots */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(201, 185, 154, 0.04) 0 2px, transparent 2px 12px),
    radial-gradient(ellipse at 50% 40%, rgba(61, 68, 48, 0.6), rgba(18, 19, 16, 0.9));
  color: var(--muted);
}

.gallery-placeholder svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--leather);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-placeholder span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
  border-top: 3px solid var(--accent);
}

.g-cat {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
}

.g-title { font-size: 15px; color: var(--text); }

.gallery-empty {
  text-align: center;
  color: var(--sand);
  padding: 40px 0;
  letter-spacing: 1px;
}

/* ---------- Call to action ---------- */
.gallery-cta {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
}

.gallery-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px;
}

.gallery-cta h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.1;
}

.gallery-cta p { font-size: 18px; margin: 16px 0 28px; }

.btn-dark { background: var(--accent-ink); color: var(--accent-text); }
.btn-dark:hover { background: #000; }

/* ---------- Photo viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(5, 5, 5, 0.94);
}

.lightbox[hidden] { display: none; }

.lb-figure { max-width: 100%; max-height: 100%; text-align: center; }

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  display: block;
  margin: 0 auto;
  border: 1px solid var(--olive);
}

.lb-figure figcaption {
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lb-btn {
  position: absolute;
  background: rgba(27, 29, 23, 0.85);
  border: 1px solid var(--olive);
  color: var(--accent-text);
  font-size: 34px;
  line-height: 1;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.lb-btn:hover,
.lb-btn:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }

.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.lightbox.single .lb-prev,
.lightbox.single .lb-next { display: none; }

body.no-scroll { overflow: hidden; }

/* ==================== SHOP PAGES (IWB / OWB) ==================== */
.shop-section {
  background:
    linear-gradient(180deg, var(--bg) 0, rgba(18, 19, 16, 0) 260px),
    radial-gradient(ellipse at 15% 0%, rgba(61, 68, 48, 0.4), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(138, 106, 69, 0.2), transparent 50%),
    var(--bg);
}

.shop-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}

.breadcrumb a { color: var(--sand); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current] { color: var(--accent-text); }

/* ---------- IWB / OWB switch ---------- */
.carry-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  margin: 0 auto 50px;
  border: 1px solid var(--olive);
}

.carry-switch--3 { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
.service-cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; margin: 0 auto; }

.carry-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  transition: background 0.2s, color 0.2s;
}

.carry-tab + .carry-tab { border-left: 1px solid var(--olive); }

.carry-tab strong { font-size: 20px; letter-spacing: 4px; }
.carry-tab span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

.carry-tab:hover strong { color: var(--accent-text); }

.carry-tab.is-active { background: var(--accent); color: var(--accent-ink); }
.carry-tab.is-active span { color: var(--accent-ink); }
.carry-tab.is-active:hover strong { color: var(--accent-ink); }

/* ---------- Intro ---------- */
.carry-intro {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.carry-intro h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.carry-intro p { color: var(--sand); font-size: 17px; line-height: 1.75; }
.carry-intro p + p { margin-top: 14px; }

.carry-best {
  background: var(--panel);
  border: 1px solid var(--olive);
  border-top: 4px solid var(--accent);
  padding: 26px 26px 22px;
}

.carry-best h3 {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.carry-best ul { list-style: none; }

.carry-best li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--text);
  border-bottom: 1px solid rgba(201, 185, 154, 0.1);
}

.carry-best li:last-child { border-bottom: none; }

.carry-best li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Toolbar ---------- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--olive);
  border-bottom: 1px solid var(--olive);
}

.shop-count { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

.shop-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

.shop-sort select {
  padding: 9px 12px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--olive);
  font: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: none;
  cursor: pointer;
}

.shop-sort select:focus { outline: 2px solid var(--accent); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--olive);
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:not(.is-placeholder):hover { transform: translateY(-4px); border-color: var(--accent); }

.product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-media img { transform: scale(1.04); }

.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(201, 185, 154, 0.04) 0 2px, transparent 2px 12px),
    radial-gradient(ellipse at 50% 40%, rgba(61, 68, 48, 0.6), rgba(18, 19, 16, 0.9));
  color: var(--muted);
}

.product-placeholder svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--leather);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-placeholder span { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.product-name {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-desc { color: var(--sand); font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 18px; }

.is-placeholder .product-name,
.is-placeholder .product-desc { color: var(--muted); }

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-price { font-size: 18px; font-weight: bold; color: var(--accent-text); }
.is-placeholder .product-price { font-size: 12px; font-weight: normal; letter-spacing: 1px; color: var(--muted); }

.btn-sm { padding: 9px 14px; font-size: 11px; }
.btn[disabled] { background: transparent; color: var(--muted); border: 1px solid var(--olive); cursor: not-allowed; }

/* ---------- Perks strip ---------- */
.shop-perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.shop-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--olive);
  background: rgba(27, 29, 23, 0.6);
}

.shop-perks svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-perks strong { display: block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.shop-perks span { font-size: 14px; color: var(--sand); }
.shop-perks a { color: var(--accent-text); text-decoration: none; font-weight: bold; }
.shop-perks a:hover { text-decoration: underline; }

/* ==================== LASER ENGRAVING ==================== */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.idea-card {
  background: var(--panel);
  border: 1px solid var(--olive);
  border-top: 4px solid var(--accent);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.idea-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.idea-card svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}

.idea-card h3 {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.idea-card p { color: var(--sand); font-size: 15px; line-height: 1.6; }

/* How it works */
.steps-section {
  background: var(--header);
  border-top: 1px solid var(--olive);
  border-bottom: 1px solid var(--olive);
}

.steps-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 40px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: none;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 28px;
  right: calc(50% + 40px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--leather));
}

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-text);
}

.step h3 {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.step p { color: var(--sand); font-size: 15px; line-height: 1.6; }

.see-work { text-align: center; margin-top: 44px; }

/* Candles / Soap groups on Home Goods */
.item-group + .item-group { margin-top: 56px; }
#candles, #soap { scroll-margin-top: 90px; }

.item-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--olive);
}

.item-group-title svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Product photos on a light backdrop (white-background product shots) */
.product-media--light {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at 50% 45%, #f2f1ec, #d9d7cf);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media--light img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px 0 8px;
  mix-blend-mode: multiply; /* lets the white photo background blend into the backdrop */
}

.media-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  background: rgba(13, 23, 28, 0.85);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.product-media--light.is-photo { background: var(--panel); }
.product-media--light.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }

.product-media--fit { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.product-media--fit img { width: 100%; height: 100%; object-fit: contain; }

.thumbs--labeled { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.thumbs-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Color picker */
.swatches { margin: -6px 0 18px; }
.swatch-label { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.swatch-label strong { color: var(--text); font-weight: bold; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.product-brand { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: -4px 0 10px; }
.product-brand strong { color: var(--text); }

/* Real product photos with a thumbnail strip */
.product-media--photo { aspect-ratio: 1 / 1; overflow: hidden; }
.product-media--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--olive);
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--accent); opacity: 1; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* when a card has specs, the description no longer stretches; the price row sits at the bottom */
.product-body:has(.product-specs) .product-desc { flex: 0 0 auto; }
.product-body:has(.product-specs) .product-foot { margin-top: auto; }
.product-foot .btn { white-space: nowrap; flex-shrink: 0; }

/* "About this item" panel */
.product-specs { margin: -6px 0 18px; border: 1px solid var(--olive); background: rgba(18, 19, 16, 0.5); }

.product-specs summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-specs summary::-webkit-details-marker { display: none; }
.product-specs summary::after { content: "+"; font-size: 18px; line-height: 1; }
.product-specs[open] summary::after { content: "\2212"; }
.product-specs summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.product-specs dl { padding: 2px 12px 10px; }
.product-specs dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(201, 185, 154, 0.12); font-size: 14px; }
.product-specs dt { color: var(--muted); }
.product-specs dd { color: var(--text); text-align: right; }

/* Size picker */
.sizes { margin: 0 0 14px; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }

.size-btn {
  padding: 7px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(201, 185, 154, 0.3);
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.size-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.size-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.size-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.product-price small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 2px;
}

/* Out of stock colors */
.swatch.is-out { position: relative; opacity: 0.45; }
.swatch.is-out::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #e06c5a;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.stock-note { font-style: normal; font-weight: bold; color: #e06c5a; margin-left: 6px; letter-spacing: 1px; }
.swatch-hint { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 0.5px; }

.btn.is-disabled { background: transparent; color: var(--muted); border: 1px solid var(--olive); cursor: not-allowed; pointer-events: auto; }
.product-card.is-unavailable .swatch-target { opacity: 0.35; filter: grayscale(1); }

.product-price.price-tbd { font-size: 12px; font-weight: normal; letter-spacing: 1px; color: var(--muted); }

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.swatch-row--dense { gap: 6px; }
.swatch-row--dense .swatch { width: 24px; height: 24px; }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.section-head--wide { max-width: 1000px; }
.section-head--wide h2 { font-size: clamp(22px, 2.9vw, 38px); letter-spacing: 0.12em; line-height: 1.2; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* anchors land below the sticky header */
#custom, #popular, #request { scroll-margin-top: 90px; }

.engrave-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; }

.engrave-intro h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.engrave-intro p { color: var(--sand); font-size: 17px; line-height: 1.75; }

/* Two big buttons that jump to each section */
.jump-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.jump-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 60px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--olive);
  border-left: 4px solid var(--accent);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.jump-card:hover,
.jump-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: #20231b;
  outline: none;
}

.jump-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); }
.jump-card strong { font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.jump-text { color: var(--sand); font-size: 14px; }

.jump-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--accent-text);
}

/* Big section labels */
.section-label {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section-head .section-label { color: var(--accent-text); }

.engrave-part { border-top: 1px solid var(--olive); }

/* Popular items: 5 cards, centered */
.item-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.item-grid .item-card { flex: 0 1 calc((100% - 48px) / 3); }

/* ---------- Request form ---------- */
.request-section {
  background: var(--accent);
  color: var(--accent-ink);
}

.request-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 40px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.request-copy .section-label { color: var(--accent-ink); }

.request-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.request-copy p { font-size: 17px; line-height: 1.7; }

.request-points { list-style: none; margin-top: 22px; }

.request-points li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.request-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 9px;
  height: 9px;
  background: var(--accent-ink);
  transform: rotate(45deg);
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--olive);
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand);
}

.req { color: var(--accent-text); }

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--olive);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
  color-scheme: dark;
}

.request-form textarea { resize: vertical; min-height: 120px; }

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }

.request-form .invalid { border-color: #e06c5a; }

.file-field input { padding: 9px; cursor: pointer; }
.file-field input::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  background: var(--olive);
  color: var(--text);
  border: none;
  font: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.request-form .btn { align-self: flex-start; border: none; }

.form-status { font-size: 14px; line-height: 1.6; padding: 12px 14px; border-left: 3px solid var(--accent); background: rgba(75, 209, 203, 0.08); }
.form-status.error { border-left-color: #e06c5a; background: rgba(224, 108, 90, 0.08); }

/* highlight the form briefly when an item button jumps to it */
.request-form.flash { animation: form-flash 1.2s ease; }
@keyframes form-flash {
  0% { box-shadow: 0 0 0 0 rgba(13, 23, 28, 0.6), 0 16px 40px rgba(0, 0, 0, 0.35); }
  40% { box-shadow: 0 0 0 6px rgba(13, 23, 28, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(13, 23, 28, 0), 0 16px 40px rgba(0, 0, 0, 0.35); }
}

/* current page inside a drop-down */
.dropdown-menu a.is-current { color: var(--accent-text); }

/* ==================== PRODUCT PAGES ==================== */
.page-hero--product { min-height: 320px; height: 40vh; max-height: 420px; }
.page-hero--product .page-title { font-size: clamp(30px, 5vw, 64px); }

/* clickable cards on category pages */
.product-card[data-href] { cursor: pointer; }
.product-card[data-href] .product-name a { color: inherit; text-decoration: none; }
.product-card[data-href]:hover .product-name a,
.product-card[data-href] .product-name a:focus-visible { color: var(--accent-text); }

/* two-column product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "media body" "thumbs body";
  grid-template-rows: auto 1fr;
  column-gap: 0;
  margin-top: 10px;
}

.product-detail:hover { transform: none; }
.product-detail > .product-media { grid-area: media; border-bottom: none; border-right: 1px solid var(--olive); }
.product-detail > .thumbs { grid-area: thumbs; align-self: start; border-right: 1px solid var(--olive); border-bottom: none; }
.product-detail > .product-body { grid-area: body; padding: 30px 30px 32px; }
.product-detail .product-name { display: none; }
.product-detail .product-desc { font-size: 17px; flex: 0 0 auto; }
.product-detail .product-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--olive); }
.product-detail .product-price .price-amount { font-size: 28px; }
.product-detail .product-foot .btn { padding: 14px 26px; font-size: 13px; }
.product-detail .pd-zoom { cursor: zoom-in; }

.pd-back { display: inline-block; margin-top: 26px; color: var(--sand); text-decoration: none; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.pd-back:hover { color: var(--accent-text); }

/* related products */
.pd-related .shop-inner { padding-top: 10px; }
.pd-related-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-related-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--olive); padding-bottom: 12px; transition: border-color 0.2s, transform 0.2s; }
.pd-related-card:hover, .pd-related-card:focus-visible { border-color: var(--accent); transform: translateY(-3px); outline: none; }
.pd-related-media { aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #f2f1ec, #d9d7cf); }
.pd-related-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-related-name { padding: 0 12px; font-size: 13px; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; }
.pd-related-price { padding: 0 12px; color: var(--accent-text); font-weight: bold; font-size: 14px; }

/* photo enlarge */
.pd-lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 50px 16px; background: rgba(5, 5, 5, 0.94); cursor: zoom-out; }
.pd-lightbox[hidden] { display: none; }
.pd-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--olive); }

/* ==================== HOLSTER BUILDER ==================== */
.page-hero--builder { min-height: 320px; height: 40vh; max-height: 420px; }
.page-hero--builder::before {
  background-image: linear-gradient(rgba(10, 11, 9, 0.55), rgba(10, 11, 9, 0.55)), url("images/holsters-hero.jpg");
  background-position: center 30%;
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.builder-stage { position: sticky; top: 110px; }
.b-view { margin-top: 12px; max-width: 260px; margin-left: auto; margin-right: auto; }

.builder-preview {
  aspect-ratio: 7 / 8;
  width: 100%;
  /* keep the whole column (preview, buttons, recent builds) on screen while it follows the page */
  max-height: max(380px, calc(100vh - 385px));
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(75, 209, 203, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(201, 185, 154, 0.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(201, 185, 154, 0.04) 0 1px, transparent 1px 28px),
    var(--panel);
  border: 1px solid var(--olive);
  border-top: 4px solid var(--accent);
}

.builder-preview svg { width: 100%; height: 100%; display: block; }
.builder-note { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.b-builds { margin-top: 16px; }
.b-builds-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.b-build { padding: 0; border: 1px solid rgba(201, 185, 154, 0.25); background: #15171a; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; }
.b-build img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.b-build:hover img, .b-build:focus-visible img { transform: scale(1.06); }
.b-build:hover, .b-build:focus-visible { border-color: var(--accent); outline: none; }
.b-lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5, 6, 5, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.b-lightbox[hidden] { display: none; }
.b-lightbox img { max-width: min(92vw, 900px); max-height: 80vh; object-fit: contain; }
.b-lightbox-cap { margin: 12px 0 0; color: var(--sand); font-size: 14px; text-align: center; }
.b-lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

.builder-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.builder-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.b-step {
  border: 1px solid var(--olive);
  background: var(--panel);
  padding: 16px 18px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  margin-left: -6px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
}

.b-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  letter-spacing: 0;
}

.b-pick { color: var(--accent-text); letter-spacing: 1px; text-transform: none; font-weight: normal; }

.b-step[hidden] { display: none; }
.b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-row--single { grid-template-columns: 1fr; }
.b-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--sand); }

.b-row select {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--olive);
  font: inherit;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
  color-scheme: dark;
}

.b-row select:focus { outline: 2px solid var(--accent); }

.opt-row { display: flex; gap: 8px; }
.opt-row--wrap { flex-wrap: wrap; }
.opt-row .opt-btn { flex: 1 1 0; }
.opt-row--wrap .opt-btn { flex: 1 1 calc(50% - 4px); }

.opt-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(201, 185, 154, 0.3);
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.opt-btn em { font-style: normal; font-weight: normal; color: var(--accent-text); letter-spacing: 0.5px; }
.opt-btn.is-out { opacity: 0.5; cursor: not-allowed; flex-direction: column; gap: 4px; }
.opt-btn.is-out em { display: block; color: #e5484d; font-size: 0.85em; }
.opt-btn:hover { border-color: var(--accent); }
.opt-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt-btn.is-active em { color: var(--accent-ink); }

.swatch-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.mat-groups { display: grid; gap: 16px; }
.b-sideclips { margin-top: 14px; }
.b-sideclips[hidden] { display: none; }
#b-attach + .b-sideclips, .b-step .mat-group-label + .opt-row { margin-top: 0; }

.b-upload { margin-top: 16px; padding: 14px; border: 1px dashed var(--olive); background: rgba(0, 0, 0, 0.18); display: grid; gap: 8px; }
.b-upload[hidden] { display: none; }
.b-upload-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 10px 16px; border: 1px solid var(--accent); color: var(--accent-text); font-size: 12px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s; }
.b-upload-btn:hover, .b-upload-btn:focus-within { background: var(--accent); color: var(--accent-ink); }
.b-upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.b-upload-name { margin: 0; font-size: 14px; color: var(--text); word-break: break-all; }
.b-upload-warn { margin: 0; font-size: 13px; color: #e8b04b; }
.b-upload-warn[hidden] { display: none; }
.b-note { margin: 0; font-size: 13px; line-height: 1.5; color: #e5484d; font-style: italic; }
.mat-group-label {
  margin: 0 0 8px;
  font-family: var(--menu-font);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mat-swatch {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--sw);
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.mat-swatch--round { width: 32px; height: 32px; border-radius: 50%; }
.mat-swatch:hover { transform: scale(1.08); }
.mat-swatch.is-active { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.mat-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.b-sub { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.b-sub strong { color: var(--text); }

.b-review {
  background: var(--header);
  border: 1px solid var(--olive);
  border-top: 4px solid var(--accent);
  padding: 18px 18px 20px;
}

.b-review h3 { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.b-review dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(201, 185, 154, 0.12); font-size: 14px; }
.b-review dt { color: var(--muted); }
.b-review dd { text-align: right; }

#b-style { margin-bottom: 10px; }
.b-style-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.opt-row[hidden], .mat-group-label[hidden], .swatch-grid[hidden], .b-sub[hidden] { display: none; }
.opt-row--styles { flex-wrap: wrap; }
.opt-row--styles .opt-btn { flex: 1 1 140px; }
.b-price { color: #e5484d; font-weight: bold; letter-spacing: 1px; margin-left: 4px; }
.b-notes { width: 100%; min-height: 110px; resize: vertical; padding: 12px; background: #15171a; color: var(--text); border: 1px solid rgba(201, 185, 154, 0.3); font: inherit; font-size: 14px; line-height: 1.5; }
.b-notes:focus { outline: none; border-color: var(--accent); }
.b-photos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.b-photo-count { font-size: 13px; color: var(--muted); }
.b-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.b-thumbs:empty { display: none; }
.b-thumb { position: relative; width: 84px; height: 84px; border: 1px solid rgba(201, 185, 154, 0.3); background: #15171a center / cover no-repeat; }
.b-thumb button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: none; background: #e5484d; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.b-order-msg { margin: 12px 0 0; font-size: 13px; color: #e8b04b; }
.b-order-msg[hidden] { display: none; }
.b-req { color: #e5484d; font-size: 10px; letter-spacing: 1.5px; margin-left: 6px; }
.b-opt { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; margin-left: 6px; }
.b-checks { display: grid; gap: 8px; margin-bottom: 12px; }
.b-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(201, 185, 154, 0.25); cursor: pointer; font-size: 14px; }
.b-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.b-check:has(input:checked) { border-color: var(--accent); }
.b-mods-other { width: 100%; padding: 11px 12px; background: #15171a; color: var(--text); border: 1px solid rgba(201, 185, 154, 0.3); font: inherit; font-size: 14px; }
.b-mods-other:focus { outline: none; border-color: var(--accent); }
.b-step.is-missing { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d; animation: b-shake 0.35s; }
.b-missing { margin: 12px 0 0; font-size: 13px; color: #ff6b6f; }
.b-missing[hidden] { display: none; }
.b-help { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.b-parts { display: grid; gap: 8px; }
.b-part { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(201, 185, 154, 0.2); }
.b-part.is-picked { border-color: var(--accent); }
.b-part.is-out { opacity: 0.5; }
.b-part-name { font-size: 14px; }
.b-part-name em { font-style: normal; color: var(--accent-text); margin-left: 6px; }
.b-part.is-out .b-part-name em { color: #e5484d; }
.b-part select { margin-top: 6px; width: 100%; max-width: 220px; background: #15171a; color: var(--text); border: 1px solid rgba(201, 185, 154, 0.3); padding: 6px 8px; font: inherit; font-size: 13px; }
.b-qty { display: inline-flex; align-items: center; border: 1px solid rgba(201, 185, 154, 0.3); }
.b-qty button { width: 34px; height: 34px; background: transparent; border: none; color: var(--text); font-size: 18px; cursor: pointer; }
.b-qty button:hover:not(:disabled) { color: var(--accent-text); }
.b-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.b-qty output { min-width: 26px; text-align: center; font-weight: bold; }
.b-ack { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border: 1px solid #e5484d; background: rgba(229, 72, 77, 0.08); color: #ff6b6f; font-size: 13px; line-height: 1.5; cursor: pointer; }
.b-ack input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #e5484d; cursor: pointer; }
.b-ack.is-missing { animation: b-shake 0.35s; background: rgba(229, 72, 77, 0.18); }
@keyframes b-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#b-order[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 640px) { .b-part { grid-template-columns: 1fr auto; } .b-part-price { display: none; } }
.b-total-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.b-total { display: block; font-size: 32px; font-weight: 900; color: var(--accent-text); line-height: 1; }
.b-total-row small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
.b-total-row .btn { border: none; }

/* call-to-action on the Holsters page */
.builder-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label btn" "title btn" "text btn";
  column-gap: 24px;
  row-gap: 4px;
  align-items: center;
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--olive);
  border-left: 4px solid var(--accent);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.builder-cta:hover, .builder-cta:focus-visible { border-color: var(--accent); transform: translateY(-3px); outline: none; }
.builder-cta-label { grid-area: label; font-size: 11px; font-weight: bold; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); }
.builder-cta strong { grid-area: title; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.builder-cta > span:not(.btn):not(.builder-cta-label) { grid-area: text; color: var(--sand); }
.builder-cta .btn { grid-area: btn; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1440px) {
  .main-nav { gap: 18px; }
  .nav-link { font-size: 10.5px; letter-spacing: 0.8px; }
  .header-inner { padding: 10px 24px; gap: 18px; }
  .wordmark { font-size: 30px; }
}

/* Phone-style menu from 1200px down, so the full menu never overflows */
@media (max-width: 1200px) {
  .menu-toggle { display: flex; order: 3; }
  .header-inner { justify-content: space-between; min-height: 76px; }
  .header-right { margin-left: auto; }
  .wordmark { font-size: 28px; }
  .logo-img { height: 56px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    background: var(--header);
    border-bottom: 2px solid var(--olive);
  }

  .main-nav.open { display: flex; }
  .main-nav .nav-link { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid #1f2119; }
  .main-nav .nav-link { font-size: 12px; letter-spacing: 1px; }
  .main-nav .dropdown-menu a { font-size: 10.5px; letter-spacing: 0.8px; white-space: normal; line-height: 1.5; }
  .main-nav .dropdown { display: block; }
  .main-nav .dropdown-hover .dropdown-menu { display: block; }
  .main-nav .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; border-top: none; background: none; padding-left: 16px; min-width: 0; }
  .main-nav .dropdown-menu::before { display: none; }
  .gallery-grid { column-count: 3; }
}

@media (max-width: 1050px) {
  .hero { padding: 40px 30px; height: auto; }
  .hero-tagline { right: 30px; top: 30px; }
  .service-strip { grid-template-columns: repeat(4, 1fr); }
  .service-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social { display: none; }

  .story-inner { grid-template-columns: 1fr; gap: 24px; padding: 50px 24px; }
  .service-cards,
  .service-cards.cards-2,
  .service-cards.cards-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .gallery-inner { padding: 60px 24px 70px; }
  .shop-inner { padding: 40px 24px 70px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carry-intro { grid-template-columns: 1fr; gap: 24px; }
  .shop-perks { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .builder-stage { position: static; }
  .builder-preview { aspect-ratio: 1 / 1; max-height: none; }
  .builder-cta { grid-template-columns: 1fr; grid-template-areas: "label" "title" "text" "btn"; row-gap: 8px; }
  .builder-cta .btn { justify-self: start; margin-top: 8px; }
  .product-detail { grid-template-columns: 1fr; grid-template-areas: "media" "thumbs" "body"; grid-template-rows: auto; }
  .product-detail > .product-media, .product-detail > .thumbs { border-right: none; }
  .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step + .step::before { display: none; }
  .steps-inner { padding: 60px 24px; }
  .request-inner { grid-template-columns: 1fr; gap: 30px; padding: 60px 24px; }
  .item-grid .item-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .made-badge > span:last-child { display: none; }
  .header-inner { padding: 10px 14px; gap: 10px; }
  .header-icons { gap: 10px; }
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .shop-inner { padding: 30px 14px 60px; }
  .idea-grid { grid-template-columns: 1fr; gap: 14px; }
  .page-title { font-size: clamp(24px, 8.5vw, 48px); letter-spacing: 0.12em; }
  .page-kicker { font-size: clamp(12px, 4vw, 18px); letter-spacing: 0.22em; margin-bottom: 12px; }
  .page-hero-content { padding: 0 10px; max-width: 100%; }
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .steps-inner { padding: 50px 14px; }
  .jump-cards { grid-template-columns: 1fr; gap: 12px; }
  .jump-card { padding: 20px 50px 20px 20px; }
  .jump-card strong { font-size: 18px; }
  .item-grid { gap: 16px; }
  .item-grid .item-card { flex-basis: 100%; }
  .request-inner { padding: 50px 14px; }
  .request-form { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .b-row { grid-template-columns: 1fr; }
  .opt-row--wrap .opt-btn { flex-basis: 100%; }
  .product-detail > .product-body { padding: 22px 16px 24px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .carry-tab strong { font-size: 17px; }
  .carry-tab span { font-size: 9px; letter-spacing: 1px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-sort { justify-content: space-between; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-inner { padding: 50px 14px 60px; }
  .filter-btn { padding: 8px 12px; font-size: 11px; letter-spacing: 1.5px; }
  .gallery-placeholder svg { width: 32px; height: 32px; }
  .gallery-placeholder span { font-size: 9px; letter-spacing: 2px; }
  .lightbox { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .logo-img { height: 46px; }
  .wordmark { font-size: 22px; }
  .brand { gap: 10px; }
  .social { display: none; }
  .hero { min-height: 520px; height: auto; max-height: none; padding: 30px 16px 90px; }
  .hero-content { margin: 70px 0 36px; }
  .service-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .service-strip--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip--4 .service-tile { flex-direction: column; justify-content: center; text-align: center; padding: 16px 6px 14px; gap: 8px; }
  .service-strip--4 .service-tile svg { width: 30px; height: 30px; }
  .service-strip--4 .service-tile span { font-size: 11px; letter-spacing: 1.5px; }
  .service-tile { flex-direction: row; justify-content: flex-start; padding: 12px; gap: 10px; text-align: left; }
  .service-tile svg { width: 24px; height: 24px; flex-shrink: 0; }
  .hero-tagline { font-size: 14px; letter-spacing: 4px; }
  .services-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .chat-btn { padding: 12px 16px; font-size: 13px; }
  .search-bar { padding: 0 20px 14px; }
}

/* ==================== MOTTO (inside Our Story) ==================== */
.story-motto {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 40px;
  border-top: 2px solid rgba(13, 23, 28, 0.25);
  text-align: center;
}

.motto-label {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.motto-quote {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

.motto-text {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.7;
}

/* Very narrow phones */
@media (max-width: 380px) {
  .wordmark { font-size: 19px; }
  .brand { gap: 6px; }
  .logo-img { height: 40px; }
  .icon-btn svg.chevron { display: none; }
  .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-tile span { font-size: 10px; letter-spacing: 1px; }
}
