/* styles.css */
/* ==========================================================================
   CreasedBrim - Hand-Tooled Western Saddlery, Hatmaker & Bootmaker Showroom
   Aesthetic: King Ranch Saddle Shop x Tecovas x Teskey's Saddlery Showroom
   Palette:
     - Hand-Tooled Russet Latigo: #3b1d0e  (deep oiled saddle leather: #241107)
     - Sun-Bleached Rawhide:      #f5eee2  (warm chamois: #fbf7ef, studio: #ffffff)
     - Kingman Turquoise Concho:  #267370  (deep turquoise: #1b5754, wash: #e5f2f1)
     - Burnished Copper Rivet:    #b86b2b  (saddle tan highlight: #d48d46)
   Typography:
     - Display Serif: 'Playfair Display', Georgia, serif
     - Editorial Body: 'Source Sans 3', system-ui, -apple-system, sans-serif
     - Technical Specs: 'IBM Plex Mono', ui-monospace, monospace
   ========================================================================== */

:root {
  --latigo: #3b1d0e;
  --latigo-deep: #241107;
  --latigo-mid: #522915;
  --rawhide: #f5eee2;
  --rawhide-soft: #fbf7ef;
  --rawhide-warm: #ebe0ce;
  --studio: #ffffff;
  --turquoise: #1f6360;
  --turquoise-deep: #164c49;
  --turquoise-wash: #e5f2f1;
  --copper: #854714;
  --copper-trim: #b86b2b;
  --copper-bright: #e09b56;
  --copper-wash: #f9efe4;
  --crimson: #8f2d1e;
  --crimson-wash: #fbeae7;
  --ink: #22120a;
  --ink-muted: #543e30;
  --ink-faint: #5c4636;
  --line: #dccdb6;
  --line-strong: #c2ad8f;
  --shadow-card: 0 14px 34px rgba(36, 17, 7, 0.08);
  --shadow-stage: 0 24px 54px rgba(18, 8, 3, 0.42);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--rawhide);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.56;
  color: var(--ink);
  background: var(--rawhide);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 12px 18px;
  min-height: 44px;
  background: var(--latigo);
  color: var(--rawhide);
  border: 2px solid var(--copper-bright);
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
}

/* Hide third-party floating feedback button until user triggers feedback */
#htfb-btn {
  display: none !important;
}
body.show-feedback #htfb-btn {
  display: inline-flex !important;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 26px;
}

.mono {
  font-family: var(--font-mono);
}

.fine {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  border: 1.5px solid var(--copper);
  flex-shrink: 0;
}

/* ---------- Top Oiled-Harness Ledger Strip ---------- */
.concho-ledger {
  background: var(--latigo-deep);
  color: #eadcc8;
  border-bottom: 2px dashed rgba(224, 155, 86, 0.44);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.concho-ledger-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.ledger-origins {
  color: var(--copper-bright);
  font-weight: 600;
  min-width: 0;
}
.ledger-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ledger-links a {
  color: #f3e8d8;
  transition: color 0.16s ease;
}
.ledger-links a:hover {
  color: var(--copper-bright);
}

/* ---------- Saddlery Masthead & Underline Navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(245, 238, 226, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line-strong);
  box-shadow: 0 4px 18px rgba(36, 17, 7, 0.05);
}
.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(36, 17, 7, 0.28));
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.58rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--latigo);
}
.logo-text strong em {
  font-style: normal;
  font-weight: 800;
  color: var(--copper);
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.16s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2.5px;
  background: var(--turquoise);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--latigo);
}
.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}
.primary-nav a.nav-markdown {
  color: var(--crimson);
}
.primary-nav a.nav-markdown::after {
  background: var(--crimson);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 13px;
  background: var(--rawhide-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--latigo);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.tool-btn:hover {
  border-color: var(--latigo);
  background: var(--studio);
}
.saddlebag-btn {
  background: var(--latigo);
  border-color: var(--latigo);
  color: var(--rawhide);
}
.saddlebag-btn:hover {
  background: var(--latigo-mid);
  border-color: var(--latigo-mid);
  color: var(--studio);
}
.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--turquoise);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.menu-btn {
  display: none;
}

/* Mobile Drawer */
.menu-sheet[hidden] {
  display: none;
}
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(20, 9, 4, 0.62);
  display: flex;
  justify-content: flex-end;
}
.menu-panel {
  width: min(360px, 90vw);
  height: 100%;
  background: var(--rawhide);
  border-left: 3px solid var(--copper);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--latigo);
}
.menu-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--rawhide-soft);
  font-weight: 700;
  color: var(--latigo);
}
.menu-body a:hover,
.menu-body a.active {
  border-color: var(--turquoise);
  background: var(--turquoise-wash);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.78rem;
}
.btn.primary {
  background: var(--latigo);
  border-color: var(--latigo);
  color: var(--rawhide);
}
.btn.primary:hover {
  background: var(--latigo-mid);
  border-color: var(--latigo-mid);
}
.btn.copper {
  background: var(--copper);
  border-color: var(--copper);
  color: #ffffff;
}
.btn.copper:hover {
  background: #a25b20;
  border-color: #a25b20;
}
.btn.turq {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: #ffffff;
}
.btn.turq:hover {
  background: var(--turquoise-deep);
  border-color: var(--turquoise-deep);
}
.btn.rawhide-outline {
  background: rgba(245, 238, 226, 0.08);
  border-color: rgba(245, 238, 226, 0.45);
  color: var(--rawhide);
}
.btn.rawhide-outline:hover {
  background: rgba(245, 238, 226, 0.18);
  border-color: var(--copper-bright);
}
.btn.ghost {
  background: var(--studio);
  border-color: var(--line-strong);
  color: var(--latigo);
}
.btn.ghost:hover {
  border-color: var(--latigo);
  background: var(--rawhide-soft);
}
.btn.wash {
  background: var(--turquoise-wash);
  border-color: rgba(38, 115, 112, 0.34);
  color: var(--turquoise-deep);
}
.btn.wash:hover {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: #ffffff;
}

/* Home photo wall. The shade keeps rawhide text above AA contrast on white photos. */
.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 106px);
  display: flex;
  align-items: flex-end;
  background: var(--latigo-deep);
  color: var(--rawhide);
}
.photo-wall {
  position: absolute;
  inset: -26% -8%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  transform: rotate(-7deg);
  z-index: -2;
}
.wall-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: wall-drift 72s linear infinite;
  will-change: transform;
}
.wall-col.wc1 { animation-duration: 86s; animation-direction: reverse; }
.wall-col.wc2 { animation-duration: 64s; }
.wall-col.wc3 { animation-duration: 88s; animation-direction: reverse; }
.wall-col.wc4 { animation-duration: 78s; }
@keyframes wall-drift { to { transform: translateY(calc(-50% - 6px)); } }
.wall-cell {
  display: block;
  aspect-ratio: 4 / 5;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  background: var(--rawhide-soft);
}
.wall-cell img { width: 100%; height: 100%; object-fit: contain; }
.photo-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36,17,7,.25), rgba(36,17,7,.78) 25%, rgba(36,17,7,.94));
}
.photo-hero-inner { padding-top: 170px; padding-bottom: 48px; width: 100%; }
.photo-hero h1 {
  margin: 0;
  max-width: 1180px;
  color: var(--rawhide);
  font: 800 clamp(68px, 8.2vw, 124px)/1.03 var(--font-serif);
  letter-spacing: -.045em;
  text-shadow: 0 4px 24px rgba(36,17,7,.35);
}
.photo-hero h1 span { display: block; }
.photo-hero h1 em { color: var(--copper-bright); font-style: normal; }
.phone-break { display: none; }
.photo-hero-sub { max-width: 47ch; font-size: 20px; line-height: 1.45; margin: 22px 0; }
.photo-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-hero-actions .btn {
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--rawhide);
  color: var(--rawhide);
  background: var(--latigo-deep);
}
.photo-hero-actions .btn:first-child { background: var(--rawhide); color: var(--latigo-deep); }
.photo-hero-actions .btn:hover { background: var(--turquoise-deep); color: var(--rawhide); }
.photo-hero a:focus-visible { outline-color: var(--rawhide); outline-offset: 5px; }
.photo-hero-disclosure { max-width: 55ch; font-size: 13px; margin: 16px 0 0; }
.photo-hero-disclosure a { text-decoration: underline; }
@media (max-width: 640px) {
  .photo-hero { min-height: calc(100svh - 100px); }
  .photo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -14% -18%; }
  .wall-col.wc3, .wall-col.wc4 { display: none; }
  .photo-hero-inner { padding-top: 150px; padding-bottom: 28px; }
  .photo-hero h1 { font-size: clamp(45px, 13.6vw, 78px); line-height: 1.05; }
  .phone-break { display: block; }
  .photo-hero-sub { font-size: 17px; margin: 18px 0 22px; max-width: 35ch; }
  .photo-hero-actions { gap: 10px; }
  .photo-hero-actions .btn { padding: 10px 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-col { animation: none; will-change: auto; }
}

/* Home product grid and filters. */
.saddlery-hero {
  position: relative;
  background:
    radial-gradient(circle at 10% 12%, rgba(184, 107, 43, 0.14), transparent 36%),
    radial-gradient(circle at 90% 8%, rgba(31, 99, 96, 0.10), transparent 38%),
    linear-gradient(180deg, #fcf8f0 0%, var(--rawhide) 340px);
  padding: 18px 0 24px;
  border-bottom: 3px solid var(--copper-trim);
}
.saddlery-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  border-bottom: 1.5px dashed var(--line-strong);
  pointer-events: none;
}

.saddlery-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.saddlery-hero-copy {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
}

.saddlery-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 5px;
}

.concho-craft-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  background: var(--latigo);
  border: 1.5px solid var(--copper-trim);
  color: #fbf7ef;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.concho-gem {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4bc5bf;
  box-shadow: 0 0 0 2px #d8c8b0;
  flex-shrink: 0;
}

.hero-stat-ledger {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.hero-stat-ledger a {
  color: var(--turquoise-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.saddlery-hero-h {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.58rem, 2.5vw, 2.18rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--latigo);
}
.saddlery-hero-h em {
  font-style: normal;
  color: var(--copper);
  border-bottom: 2.5px solid var(--copper-trim);
}

.saddlery-hero-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

.hero-search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 0;
  max-width: 100%;
}
.hero-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--turquoise);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
.hero-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 37px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(36, 17, 7, 0.05);
}
.hero-search-box input::placeholder {
  color: var(--ink-faint);
  font-weight: 500;
}
.hero-search-box input:focus {
  outline: 2px solid var(--turquoise);
  border-color: var(--turquoise);
}

#home-sort {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--latigo);
  cursor: pointer;
}

.hero-sizer-btn {
  white-space: nowrap;
}

.saddlery-filter-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.saddlery-filter-rail .cat-chip {
  padding: 6px 11px;
  font-size: 0.81rem;
  gap: 6px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--crimson-wash);
  border: 1.5px dashed var(--crimson);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--crimson);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.toggle-chip:hover {
  border-style: solid;
  background: #f8ded9;
}
.toggle-chip.active {
  background: var(--crimson);
  border: 1.5px solid var(--crimson);
  color: #ffffff;
}

.hero-live-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.more-wrap {
  text-align: center;
  margin-top: 22px;
}

/* ---------- Saddle & Boot Houses Marquee Strip ---------- */
.houses-ribbon {
  background: var(--rawhide-soft);
  border-bottom: 1.5px solid var(--line);
  padding: 14px 0;
}
.houses-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.houses-ribbon-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1.5px solid var(--line-strong);
}
.houses-ribbon-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  flex: 1 1 640px;
}
.houses-ribbon-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--latigo);
  opacity: 0.86;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.houses-ribbon-list a:hover {
  opacity: 1;
  color: var(--turquoise);
}

/* ---------- Main Layout, Page Headers & Category Tabs ---------- */
main#view {
  flex: 1;
  padding-bottom: 64px;
}

.page-head {
  padding: 38px 0 24px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 26px;
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--latigo);
  margin: 0 0 10px;
}
.page-head .lede {
  font-size: 1.06rem;
  color: var(--ink-muted);
  max-width: 72ch;
  margin: 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 44px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
}
.sec-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--latigo);
  margin: 0 0 5px;
}
.sec-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 68ch;
}

/* Leather-stitched rectangular category tabs (NO pastel pills) */
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 8px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--rawhide-soft);
  color: var(--latigo);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cat-chip em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.cat-chip:hover {
  border-color: var(--latigo);
  background: var(--studio);
}
.cat-chip.active {
  background: var(--latigo);
  border-color: var(--latigo);
  color: var(--rawhide);
}
.cat-chip.active em {
  color: var(--copper-bright);
}

/* Filter Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--rawhide-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.toolbar input[type="search"],
.toolbar select {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  color: var(--ink);
  font-size: 0.94rem;
}
.toolbar input[type="search"] {
  flex: 1 1 260px;
}
.toolbar select {
  flex: 0 1 220px;
  font-weight: 600;
}
.toolbar-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ==========================================================================
   Product Cards - Studio Saddle & Boot Showcase Grid
   ========================================================================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}

.pcard {
  position: relative;
  background: var(--studio);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--copper-trim);
  box-shadow: var(--shadow-card);
}

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid #ece2d2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.hero-prod-grid .pcard-media {
  aspect-ratio: 1 / 0.85;
  padding: 10px;
}
.pcard-img-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.24s ease;
}
.pcard:hover .pcard-media img {
  transform: scale(1.03);
}

.deal-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--crimson);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.xgrade-flag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--turquoise);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.save-icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--latigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.save-icon-btn:hover {
  border-color: var(--latigo);
}
.save-icon-btn.saved {
  background: var(--latigo);
  border-color: var(--latigo);
  color: var(--copper-bright);
}

.pcard-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 7px;
}
.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--copper);
}
.pcard-meta a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-meta .pcard-cat-tag {
  color: var(--ink-faint);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard-title {
  font-family: var(--font-serif);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.26;
  color: var(--latigo);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-title a:hover {
  color: var(--turquoise);
}

.pcard-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.sz-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--rawhide);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.pcard-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #efe6d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.price-now {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--latigo);
}
.price-was {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.pcard-buy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--rawhide);
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--latigo);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pcard-buy:hover {
  background: var(--latigo);
  border-color: var(--latigo);
  color: var(--rawhide);
}

/* ==========================================================================
   Western Saddle Gullet & Bars Fit Bench (#saddle-fit + Homepage Bench)
   ========================================================================== */
.bench-callout {
  margin-top: 38px;
  background: var(--rawhide-soft);
  border: 2px solid var(--line-strong);
  border-top: 5px solid var(--latigo);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: start;
}

.calc-panel,
.calc-output {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px;
}

.calc-group {
  margin-bottom: 22px;
}
.calc-group:last-child {
  margin-bottom: 0;
}
.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.calc-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--latigo);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 10px 13px;
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--rawhide-soft);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.choice-btn span {
  font-weight: 700;
  font-size: 0.91rem;
}
.choice-btn small {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.choice-btn:hover {
  border-color: var(--copper);
  background: var(--studio);
}
.choice-btn.active {
  background: var(--latigo);
  border-color: var(--latigo);
  color: var(--rawhide);
}
.choice-btn.active small {
  color: var(--copper-bright);
}

.girth-readout {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--turquoise-wash);
  color: var(--turquoise-deep);
}
.girth-slider {
  width: 100%;
  height: 44px;
  accent-color: var(--turquoise);
  cursor: pointer;
}

.verdict-banner {
  background: linear-gradient(135deg, var(--latigo-deep) 0%, var(--latigo) 100%);
  color: var(--rawhide);
  border-left: 5px solid var(--turquoise);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.verdict-banner.shortback {
  border-left-color: var(--copper-bright);
}
.verdict-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ee0dc;
  margin-bottom: 6px;
}
.verdict-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.verdict-sub {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: rgba(245, 238, 226, 0.88);
}

.spec-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.spec-kv {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--rawhide-soft);
  border: 1px solid var(--line);
}
.spec-kv span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.spec-kv strong {
  font-size: 0.93rem;
  color: var(--latigo);
}

.tree-card {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.tree-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--latigo);
  margin: 0 0 6px;
}
.tree-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* ==========================================================================
   3X-1000X Felt Hat Crown & Cowboy Boot Toe Reference (#hat-guide)
   ========================================================================== */
.notice-bar {
  padding: 16px 20px;
  background: var(--copper-wash);
  border: 1px solid rgba(184, 107, 43, 0.4);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 28px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.grade-card {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-top: 4px solid var(--latigo);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grade-code {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--latigo);
  color: var(--copper-bright);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
}
.grade-name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--latigo);
  margin: 2px 0 4px;
}
.grade-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.grade-meta strong {
  color: var(--ink);
}

.crease-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.crease-card {
  background: var(--studio);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crease-svg {
  width: 100%;
  height: 78px;
  background: var(--rawhide-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 6px;
}
.crease-card h3 {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--latigo);
  margin: 2px 0 0;
}
.crease-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-muted);
}

/* Cowboy Boot Toe & Riding Heel Reference Grid */
.boot-toe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.toe-card {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-top: 4px solid var(--turquoise);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.toe-svg {
  width: 100%;
  height: 88px;
  background: var(--rawhide-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 6px;
}
.toe-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--latigo);
  margin: 0;
}
.toe-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-muted);
}

.hat-bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hat-spec-card {
  background: var(--studio);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hat-spec-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
}
.hat-thumb {
  width: 86px;
  height: 86px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #f7f3eb;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hat-badge {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--rawhide);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--latigo);
}
.hat-badge.turq {
  background: var(--turquoise-wash);
  border-color: rgba(38, 115, 112, 0.35);
  color: var(--turquoise-deep);
}

/* ==========================================================================
   Arena Rigs (#kits), Saddle Houses (#brands), Films (#feed), Detail & Prose
   ========================================================================== */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.kcard {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.kcard-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--turquoise-wash);
  color: var(--turquoise-deep);
}
.kcard-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--latigo);
  margin: 4px 0 0;
}
.kcard-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kcard-thumbs a {
  aspect-ratio: 1 / 1;
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcard-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kcard-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Saddle & Boot Houses Grid */
.brand-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--rawhide-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.brand-search-input {
  flex: 1 1 250px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.brand-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-toolbar-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bcard {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.bcard:hover {
  transform: translateY(-2px);
  border-color: var(--turquoise);
}
.bcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.bcard-title-col {
  min-width: 0;
}
.bcard-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bcard h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--latigo);
  margin: 0;
}
.bcard-deal-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--turquoise-wash);
  border: 1px solid rgba(38, 115, 112, 0.35);
  color: var(--turquoise-deep);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
}
.bcard-hq {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 3px;
}
.bcard-depth-pill {
  text-align: right;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--rawhide);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.bcard-depth-pill strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1;
  color: var(--latigo);
}
.bcard-depth-pill small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.bcard-focus {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.bcard-ph {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.bcard-ph-cell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.bcard-ph-cell:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.bcard-ph-cell img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}
.bcard-ph-flag {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--copper);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.bcard-ph-price {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(29, 12, 4, 0.86);
  color: #fbf7ef;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.bcard-policies {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--rawhide-soft);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bcard-policies a {
  color: var(--turquoise-deep);
  text-decoration: underline;
}

/* Arena & Craft Films (#feed) */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.vcard {
  background: var(--studio);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vcard-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a0d06;
  overflow: hidden;
}
.vcard-stage img,
.vcard-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.vcard-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(24, 10, 4, 0.62), rgba(24, 10, 4, 0.12));
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vcard-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: rgba(36, 17, 7, 0.9);
  border: 1.5px solid var(--copper-bright);
  color: var(--rawhide);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vcard-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.vcard-lane {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.vcard-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--latigo);
  margin: 0;
}
.vcard-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #efe6d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

/* Product Detail Page */
.pdetail {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px;
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}
.pdetail-media {
  aspect-ratio: 1 / 1;
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdetail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdetail h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--latigo);
  margin: 6px 0 14px;
}
.pdetail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--latigo);
  margin-bottom: 16px;
}

/* Trust & Prose Pages */
.prose-card {
  max-width: 820px;
  margin: 34px auto;
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-top: 5px solid var(--latigo);
  border-radius: var(--radius-md);
  padding: 34px 38px;
}
.prose-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--latigo);
  margin: 0 0 14px;
}
.prose-card h2 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  color: var(--latigo);
  margin: 26px 0 10px;
}
.prose-card p,
.prose-card li {
  color: var(--ink-muted);
  line-height: 1.65;
}
.prose-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.empty-box {
  padding: 42px 24px;
  text-align: center;
  background: var(--studio);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--latigo-deep);
  color: #e6d7c3;
  border-top: 4px solid var(--copper-trim);
  padding: 52px 0 46px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 36px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--rawhide);
  margin-bottom: 10px;
}
.footer-brand em {
  font-style: normal;
  font-weight: 800;
  color: var(--copper-bright);
}
.footer-note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(230, 215, 195, 0.8);
  margin: 0 0 10px;
  max-width: 52ch;
}
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin: 0 0 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer li a,
.site-footer .link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.93rem;
  color: #efe3d2;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}
.site-footer li a:hover,
.site-footer .link-btn:hover {
  color: var(--copper-bright);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: var(--latigo-deep);
  color: var(--rawhide);
  border: 1.5px solid var(--copper-bright);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1140px) {
  .primary-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grade-grid,
  .crease-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .boot-toe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hat-bench-grid,
  .brand-grid,
  .vid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .saddlery-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .saddlery-hero-copy,
  .saddlery-hero-controls {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }
  .hero-search-box {
    flex: 1 1 100%;
    width: 100%;
  }
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .concho-ledger-inner {
    justify-content: center;
    text-align: center;
  }
  .ledger-links {
    display: none;
  }
  .hide-sm {
    display: none;
  }
  .prod-grid,
  .grade-grid,
  .crease-grid,
  .boot-toe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kit-grid,
  .hat-bench-grid,
  .brand-grid,
  .vid-grid,
  .pdetail,
  .footer-grid,
  .choice-grid,
  .spec-kv-grid {
    grid-template-columns: 1fr;
  }
  .prose-card {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 14px;
  }
  .concho-ledger {
    letter-spacing: 0.04em;
  }
  .saddlery-hero {
    padding: 14px 0 20px;
  }
  /* Keep 2 visual product cards side-by-side on 390px phones so listings stay immediate above the fold */
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pcard-media,
  .hero-prod-grid .pcard-media {
    padding: 8px;
  }
  .pcard-body {
    padding: 10px;
    gap: 5px;
  }
  .pcard-meta .pcard-cat-tag {
    display: none;
  }
  .pcard-title {
    font-size: 0.92rem;
  }
  .pcard-sizes {
    display: none;
  }
  .price-now {
    font-size: 0.95rem;
  }
  .pcard-buy {
    padding: 0 9px;
    font-size: 0.74rem;
  }
  .saddlery-filter-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100vw - 28px);
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .saddlery-filter-rail::-webkit-scrollbar {
    display: none;
  }
  .saddlery-filter-rail .cat-chip,
  .saddlery-filter-rail .toggle-chip {
    flex-shrink: 0;
  }
  .hero-live-count {
    display: none;
  }
  .grade-grid,
  .crease-grid,
  .boot-toe-grid {
    grid-template-columns: 1fr;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Nav Shop Pill & Creators Directory
   ========================================================================== */

.primary-nav a.nav-shop {
  background: var(--latigo);
  color: var(--rawhide);
  min-height: 36px;
  padding: 0 14px;
  margin-right: 4px;
  border-radius: var(--radius-sm);
}

.primary-nav a.nav-shop::after {
  display: none;
}

.primary-nav a.nav-shop:hover,
.primary-nav a.nav-shop.active {
  background: var(--copper);
  color: #ffffff;
}

.vcard-ch-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--turquoise-deep);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.vcard-ch-btn:hover {
  color: var(--copper);
  text-decoration: underline;
}

/* Creators Directory Grid & Cards */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ccard {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-top: 3px solid var(--copper-trim);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ccard:hover {
  transform: translateY(-2px);
  border-color: var(--turquoise);
}

.ccard-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ccard-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--latigo-mid) 0%, var(--latigo-deep) 100%);
  color: var(--copper-bright);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px rgba(224, 155, 86, 0.65);
}

.ccard-title-wrap {
  min-width: 0;
  flex: 1;
}

.ccard-lane {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--turquoise);
  margin-bottom: 2px;
}

.ccard-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--latigo);
}

.ccard-name a:hover {
  color: var(--copper);
}

.ccard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.ccard-bio {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.54;
  color: var(--ink);
  flex: 1;
}

.ccard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1140px) {
  .creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .creator-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Phone header & narrow viewport fit: zero side scroll at 320-480px
   ========================================================================== */
@media (max-width: 640px) {
  .toolbar > * {
    min-width: 0;
  }
  .toolbar select,
  .toolbar input[type="search"] {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  select,
  input {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .topbar-inner {
    gap: 8px;
    min-height: 62px;
  }
  .logo {
    flex: 0 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .logo-mark svg {
    width: 34px;
    height: 34px;
  }
  .logo-text {
    min-width: 0;
  }
  .logo-text strong {
    font-size: 1.28rem;
    line-height: 0.95;
  }
  .logo-text strong em {
    display: block;
  }
  .logo-text small {
    display: none;
  }
  .topbar-tools {
    gap: 6px;
  }
  .tool-btn {
    padding: 0 8px;
    gap: 5px;
  }
  .menu-btn {
    padding: 0;
  }
  #home-sort {
    flex: 1 1 140px;
    min-width: 0;
  }
  .hero-sizer-btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 374px) {
  .wrap {
    padding: 0 10px;
  }
  .logo-text strong {
    font-size: 1.18rem;
  }
  .logo-mark svg {
    width: 30px;
    height: 30px;
  }
  .topbar-tools {
    gap: 5px;
  }
  .saddlery-filter-rail {
    max-width: calc(100vw - 20px);
  }
  .prod-grid {
    grid-template-columns: 1fr;
  }
  .pcard-meta .pcard-cat-tag {
    display: inline;
  }
}
html,
body {
  overflow-x: clip;
}

/* ==========================================================================
   Retail Filter Bar, Slide-Up Drawer & Integrated Editorial Feed
   ========================================================================== */
:root {
  --rf-ink: #241107;
  --rf-accent: #1b5754;
  --rf-border: #d6c4ac;
  --rf-tint: #f6efe4;
}

.rf-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 12px 0 18px;
  box-sizing: border-box;
}

.rf-bar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rf-search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--rf-border);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-search-field:focus-within {
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.rf-search-field svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: var(--rf-ink);
  fill: none;
  stroke-width: 2;
  opacity: 0.65;
  margin-right: 9px;
}

.rf-search-field input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--rf-ink);
  font-size: 0.94rem;
  line-height: 1.25;
  padding: 8px 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.rf-drawer-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.rf-drawer-trigger.has-active {
  border-color: var(--rf-accent);
  background: var(--rf-tint);
}

.rf-drawer-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.rf-badge[hidden] {
  display: none !important;
}

.rf-select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.rf-pill-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--rf-border) !important;
  border-radius: 999px !important;
  color: var(--rf-ink) !important;
  font-size: 0.87rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  min-height: 42px !important;
  padding: 0 34px 0 14px !important;
  margin: 0 !important;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.rf-pill-select.is-active {
  border-color: var(--rf-accent) !important;
  background-color: var(--rf-tint) !important;
}

.rf-pill-select:focus {
  outline: 2px solid var(--rf-accent);
  outline-offset: 1px;
}

.rf-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--rf-ink);
  opacity: 0.72;
}

.rf-desktop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.rf-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.rf-sale-btn.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #ffffff;
}

.rf-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px dashed var(--rf-accent);
  background: transparent;
  color: var(--rf-accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.rf-clear-btn[hidden] {
  display: none !important;
}

/* Slide-Up / Slide-Over Filter Drawer */
.rf-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 16, 24, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.rf-drawer[hidden] {
  display: none !important;
}

.rf-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rf-drawer-panel {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: #ffffff;
  color: var(--rf-ink);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.22s ease;
}

.rf-drawer.is-open .rf-drawer-panel {
  transform: translateY(0);
}

.rf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rf-border);
  background: #ffffff;
}

.rf-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-ink);
}

.rf-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rf-drawer-body {
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-overflow-scrolling: touch;
}

.rf-drawer-sec-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rf-ink);
  opacity: 0.72;
}

.rf-drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rf-drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.rf-drawer-pill.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #ffffff;
}

.rf-drawer-brand-shell {
  width: 100%;
}

.rf-drawer-brand-shell .rf-pill-select {
  width: 100%;
  min-height: 44px !important;
}

.rf-drawer-foot {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rf-border);
  background: #ffffff;
}

.rf-foot-reset {
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.rf-foot-apply {
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-accent);
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

/* Integrated Editorial & Shopping In-Feed Posts */
.rf-feed-beat {
  margin: 0 0 22px;
}

.rf-post-card {
  margin: 22px 0;
  padding: 22px 24px;
  background: #ffffff;
  border: 1.5px solid var(--rf-border);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.rf-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.rf-post-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-accent);
  margin-bottom: 4px;
}

.rf-post-title {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.24;
  color: var(--rf-ink);
}

.rf-post-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rf-accent);
  text-decoration: none;
  white-space: nowrap;
}

.rf-post-link:hover {
  text-decoration: underline;
}

.rf-vid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rf-vid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rf-tint);
  border: 1px solid var(--rf-border);
  border-radius: 14px;
  overflow: hidden;
}

.rf-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.rf-vid-stage img,
.rf-vid-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.rf-vid-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 14, 24, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rf-vid-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rf-ink);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.rf-vid-meta {
  padding: 12px 14px;
}

.rf-vid-creator {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rf-accent);
  margin-bottom: 4px;
}

.rf-vid-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 600;
  color: var(--rf-ink);
}

/* Guide / Interactive Tool Callout Card */
.rf-post-guide {
  background: linear-gradient(135deg, #ffffff 0%, var(--rf-tint) 100%);
  border-left: 4px solid var(--rf-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.rf-guide-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.rf-guide-sub {
  margin: 6px 0 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--rf-ink);
  opacity: 0.86;
}

.rf-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rf-guide-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--rf-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rf-ink);
}

.rf-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--rf-accent);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.rf-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Complete Setup / Kit Lookbook Post */
.rf-post-kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.rf-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rf-kit-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}

.rf-kit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rf-kit-info {
  min-width: 0;
}

.rf-kit-sum {
  margin: 6px 0 12px;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--rf-ink);
  opacity: 0.85;
}

.rf-kit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rf-kit-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-ink);
}

.rf-stream-sentinel {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.rf-more-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .rf-bar-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }
  .rf-search-field {
    grid-column: 1 / -1;
    width: 100%;
  }
  .rf-drawer-trigger {
    display: inline-flex;
    width: 100%;
  }
  .rf-sort-shell {
    width: 100%;
    display: flex;
  }
  .rf-sort-shell .rf-pill-select {
    width: 100%;
    min-height: 44px !important;
  }
  .rf-desktop-row,
  .rf-hero-cta {
    display: none !important;
  }
  .rf-post-card {
    padding: 16px;
    margin: 16px 0;
  }
  .rf-post-kit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .rf-vid-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rf-kit-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pcard-meta > span,
  .pcard-meta .pcard-cat-tag,
  .prod-meta .spec-tag,
  .p-meta > span {
    display: none !important;
  }
  .pcard-meta,
  .prod-meta,
  .p-meta {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
}
/* Dated store markdowns. */
.deals-page, .deal-preview { padding-top: 2rem; padding-bottom: 2rem; }
.deal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.deal-card img { width: 100%; height: auto; object-fit: contain; }
.deal-card h3 { font-size: 1.1rem; line-height: 1.3; }
.deal-prices { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.deal-percent { color: #255852; font-weight: 700; }
.deal-date { font-size: .9rem; }
.deal-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.deal-filters select { min-height: 44px; max-width: 100%; font: inherit; padding: .5rem; }
.deal-group { margin-top: 2rem; }
.photo-hero-actions .deal-accent { background: #f3c384; color: #26180d; border-color: #f3c384; }
.hts { --hts-bg: #f3c384; --hts-fg: #26180d; }
@media (max-width: 900px) { .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .deal-grid { grid-template-columns: minmax(0, 1fr); } }

/* Home sequence and static front doors. */
.home-sequence { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.home-product { min-width:0; }
.home-break { grid-column:1 / -1; min-width:0; }
.break-links, .static-links { display:flex; flex-wrap:wrap; gap:12px; }
.gift-photos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.gift-photos img { width:100%; height:auto; object-fit:contain; }
.static-page { padding-block:28px; }
.static-page h1, .static-page h2, .static-page h3 { overflow-wrap:anywhere; }
.static-page section { margin-block:32px; }
.static-page .pcard { min-width:0; }
.static-page .pcard img { width:100%; height:auto; }
.static-page a { overflow-wrap:anywhere; }
@media(max-width:640px) { .home-sequence { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .static-page .prod-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.static-page .vcard > img { width:100%; height:auto; }

/* Keep loading status available to screen readers without covering the footer. */
.stream-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rf-stream-sentinel:focus-visible {
  outline: 2px solid var(--rf-border);
}
.amazon-option { margin: 10px 0 0; font-size: 12px; color: var(--ink-muted); }
.amazon-option a { color: inherit; text-underline-offset: 3px; }

/* Cookie preferences banner and footer trigger. */
.ck{position:fixed;z-index:10000;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(680px,calc(100% - 20px));padding:12px 16px;background:var(--rawhide,#f5eee2);color:var(--ink,#22120a);border:1px solid var(--line-strong,#c2ad8f);border-radius:var(--radius-md,8px);box-shadow:0 12px 32px rgba(18,8,3,.28);font:500 13px/1.5 'Source Sans 3',system-ui,sans-serif}
.ck-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ck-text{margin:0;flex:1 1 260px;min-width:0;line-height:1.5;color:var(--ink,#22120a)}.ck-btns{display:flex;gap:8px;margin-left:auto}.ck button{font-family:'Source Sans 3',system-ui,sans-serif;font-size:13px;font-weight:600;min-height:44px;padding:10px 16px;border-radius:var(--radius-sm,4px);border:1px solid transparent;cursor:pointer;background:var(--latigo,#3b1d0e);color:var(--studio,#fff)}.ck-btns button:last-child{background:var(--rawhide-warm,#ebe0ce);color:var(--ink,#22120a);border-color:var(--line-strong,#c2ad8f)}.ck .ck-more-btn{display:inline-flex;align-items:center;background:transparent;color:var(--turquoise-deep,#164c49);padding:4px 6px;min-height:32px;text-decoration:underline;border:0;box-shadow:none}.ck-more{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;padding-top:12px;margin-top:12px;border-top:1px solid var(--line,#dccdb6)}.ck-more a{display:inline-flex;align-items:center;min-height:44px;color:var(--turquoise-deep,#164c49);text-decoration:underline}.ck-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}.ck-switch input{appearance:none;width:40px;height:24px;min-height:24px;padding:0;flex:none;margin:0;border-radius:999px;background:#9ca3af;border:0;position:relative;cursor:pointer}.ck-switch input:after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s}.ck-switch input:checked{background:var(--turquoise-deep,#164c49)}.ck-switch input:checked:after{transform:translateX(16px)}.ck-switch input:disabled{opacity:.45}.ck-settings{background:transparent;border:0;color:inherit;font:inherit;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:520px){.ck{padding:10px 12px;font-size:12px}.ck-text{flex-basis:180px}.ck button{font-size:12px;padding-inline:14px}.ck-btns{gap:8px}}
@media(prefers-reduced-motion:reduce){.ck-switch input:after{transition:none}}
