:root {
  --paper: #f4eee4;
  --paper-deep: #e7dccb;
  --card: #fffaf3;
  --ink: #1b140f;
  --muted: #5c4b3e;
  --line: rgba(27, 20, 15, 0.12);
  --oxblood: #7d221c;
  --oxblood-dark: #541612;
  --brass: #9c7340;
  --brass-bright: #d7b57a;
  --pine: #243028;
  --shadow: 0 20px 50px rgba(48, 28, 12, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(215, 181, 122, 0.18), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--oxblood-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.topbar {
  background: var(--ink);
  color: #f6efe4;
  font-size: 13px;
}
.topbar-inner, .header-inner, .wrap, .footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex;
  gap: 10px 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 0;
}
.topbar a { color: var(--brass-bright); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 238, 228, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  padding: 12px 0;
}
.header-inner .nav { flex: 1; }
.header-inner .tools { margin-left: auto; }
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand img {
  display: block;
  width: auto;
  height: 52px;
}
@media (min-width: 768px) {
  .brand img { height: 64px; }
}
.brand strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 560; letter-spacing: -0.03em; line-height: 1; }
.brand span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.header-inner { position: relative; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.nav-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.nav a, .nav-shop-btn { color: var(--ink); text-decoration: none; font-size: 14.5px; }
.nav a:hover, .nav-shop-btn:hover, .nav-shop-btn[aria-expanded="true"] { color: var(--oxblood); }
.nav-shop { position: relative; }
.nav-shop-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-shop-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}
.nav-shop-btn[aria-expanded="true"] .nav-shop-caret { transform: rotate(180deg); }
/* display:none is the default so the menu stays closed even if JS
   has not loaded. Do not set display:grid on this rule — it would
   override the hidden attribute and leave the menu permanently open. */
.nav-shop-list {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  grid-template-columns: 1fr 1fr;
  min-width: 420px;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-shop-list:not([hidden]) { display: grid; }
.nav-shop-list[hidden] { display: none !important; }
.nav-shop-list a {
  display: block;
  padding: 8px 16px;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
}
.nav-shop-list a:hover,
.nav-shop-list a:focus-visible { background: var(--paper-deep); color: var(--oxblood); }
.nav-shop-list li:first-child a { font-weight: 600; }
.nav-shop-list li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
.tools { display: flex; gap: 8px; align-items: center; }
.search { display: flex; border: 1px solid var(--line); background: var(--card); border-radius: 999px; overflow: hidden; }
.search input { border: 0; background: transparent; padding: 8px 12px; width: 140px; }
.search button, .icon-link {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.cart-link { font-weight: 600; white-space: nowrap; }

.banner {
  background: #3d2a16;
  color: #f8f1e6;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}
.banner a { color: var(--brass-bright); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero.hero-photo {
  position: relative;
  display: block !important;
  grid-template-columns: none;
  padding: 0;
  margin: 0 0 8px;
  overflow: hidden;
  color: #f6efe4;
  background: #1b140f;
}
.hero-bg,
.hero-bg-figure,
.hero-bg-figure picture,
.hero-bg-figure img {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  display: block;
  background: #1b140f;
}
.hero-bg-figure img {
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 72%;
  background: transparent;
}
.hero-bg-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 10, 8, 0.8) 0%, rgba(15, 10, 8, 0.56) 38%, rgba(15, 10, 8, 0.2) 70%, rgba(15, 10, 8, 0.28) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  min-height: 540px;
}
.hero-photo .kicker { color: var(--brass-bright); }
.hero-photo h1,
.hero-photo .heritage-line { color: #f6efe4; }
.hero-photo .lede { color: rgba(246, 239, 228, 0.9); }
.hero-photo .btn-ghost { border-color: #f6efe4; color: #f6efe4; }
.hero-photo .btn-ghost:hover { background: #f6efe4; color: var(--ink); }
.hero-photo .hero-stage img { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.hero-photo .hero-stage img.secondary { border-color: rgba(246, 239, 228, 0.92); }
.hero-bg-figure .photo-credit { z-index: 3; }

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brass);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); margin: 0 0 12px; max-width: 20ch; }
.lede { font-size: 18px; color: var(--muted); max-width: 46ch; }
.heritage-line { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; max-width: 38ch; margin: 0 0 12px; }
.heritage { margin: 8px 0 28px; }
.heritage h2 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 44px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
}
.btn-primary { background: var(--oxblood); color: #fffaf3; }
.btn-primary:hover { background: var(--oxblood-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 8px 12px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.hero-stage { position: relative; min-width: 0; min-height: 360px; }
.hero-stage img {
  width: 72%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--paper-deep);
  border-radius: 18px 18px 80px 18px;
  box-shadow: var(--shadow);
}
.hero-stage img.secondary {
  position: absolute;
  width: 46%;
  right: 0;
  bottom: 10px;
  border-radius: 16px;
  border: 6px solid var(--paper);
}

.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.section-head a { color: var(--muted); }

.cat-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-card, .product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.cat-card img, .product-card img, .ph {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--paper-deep);
}
.ph { display: grid; place-items: center; font-family: var(--serif); font-size: 42px; color: var(--brass); }
.cat-card div, .product-card div { padding: 12px 12px 14px; }
.cat-card strong, .product-card strong { display: block; font-size: 16px; line-height: 1.25; }
.cat-card { transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.cat-card img, .cat-card .ph { aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.cat-card .cat-card-copy { padding: 10px 12px 12px; min-height: 4.6em; }
.cat-card .cat-card-copy strong { font-size: 15px; line-height: 1.3; }
.cat-card:hover { border-color: rgba(27, 20, 15, 0.22); box-shadow: var(--shadow); }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.price { margin: 8px 0 0; }
.price s { color: var(--muted); margin-right: 6px; }
.badge {
  display: inline-block;
  background: var(--oxblood);
  color: white;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.badge-low { background: #8a5a12; }
.badge-out { background: #3d342c; }
.search button { display: grid; place-items: center; }
.card-box {
  border: 1px solid #d8dde6;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.card-box input {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  outline: none;
}
.card-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d8dde6; }
.card-row input + input { border-left: 1px solid #d8dde6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat strong { display: block; font-family: var(--serif); font-size: 32px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.quotes { display: grid; gap: 12px; }
blockquote { margin: 0; }
blockquote p { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
blockquote footer { color: var(--muted); font-size: 14px; font-family: var(--sans); }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.map { border: 0; width: 100%; height: 280px; border-radius: 16px; background: var(--paper-deep); }

.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0; }
.crumbs a { color: inherit; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.toolbar select, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
}
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.gallery-main { background: var(--paper-deep); border-radius: 18px; overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; border-radius: 10px; overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--oxblood); }
.thumbs img { width: 72px; height: 72px; object-fit: cover; }
.product-buy h1 { font-size: clamp(34px, 4vw, 52px); margin: 6px 0 8px; }
.choices { display: grid; gap: 10px; margin: 14px 0; }
.stock { font-size: 14px; color: var(--pine); }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose h2, .prose h3, .prose h4 { margin: 1.2rem 0 0.4rem; }

.cart-line, .stack { display: grid; gap: 12px; }
.cart-line {
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.cart-line img, .cart-line .ph { width: 92px; height: 92px; border-radius: 10px; }
.qty { width: 72px; }
.totals { display: flex; justify-content: space-between; font-size: 20px; font-family: var(--serif); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field span { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.notice {
  background: #fff4e5;
  border: 1px solid #e2c59a;
  padding: 10px 12px;
  border-radius: 12px;
}
.notice.error { background: #fdeceb; border-color: #e4b2ae; }
.empty { padding: 28px 0 40px; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.site-footer { background: var(--ink); color: #f4eee4; margin-top: 40px; padding: 36px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 18px; }
.site-footer a { color: var(--brass-bright); text-decoration: none; }
.site-footer h3 { margin: 0 0 8px; font-size: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 12px; color: #cbbba6; font-size: 13px; }

.admin-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.status { text-transform: capitalize; }


.rodeo-lede { margin: 0 0 16px; }
.rodeo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rodeo-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.rodeo-card strong { display: block; font-family: var(--serif); font-size: 22px; margin: 4px 0 6px; }
.rodeo-card p { margin: 0; color: var(--muted); }
.rodeo-card .kicker { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .can-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .can-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
/* From 768px up, keep a one-line header so laptop and scaled-Windows widths
   do not wrap into a stacked, mobile-looking bar. Categories live in the Shop
   dropdown, and in the phone Menu below 768px. */
@media (min-width: 768px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; }
}

/* Tablet: two-column content, compact type. No hamburger. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-inner { gap: 20px; padding: 36px 0 28px; }
  .hero h1 { font-size: clamp(32px, 5vw, 46px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phone only */
@media (max-width: 767px) {
  .nav-button { display: inline-flex; margin-left: auto; }
  .header-inner .tools { margin-left: 0; width: 100%; }
  .nav {
    display: none;
    order: 5;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
  }
  .nav-toggle:checked ~ .nav {
    display: grid;
    max-height: min(70vh, calc(100dvh - 220px));
    overflow-y: auto;
  }
  .nav-shop-list {
    position: static;
    grid-template-columns: 1fr;
    min-width: 0;
    max-height: none;
    overflow: visible;
    margin: 4px 0 2px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-shop-list:not([hidden]) { display: grid; }
  .nav-shop-list li:first-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .nav-shop-list a { padding: 8px 4px; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .hero-inner, .split, .product-layout, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 28px 0 24px; gap: 20px; min-height: 0; }
  .hero-stage { min-height: 0; }
  .hero-stage img.secondary { position: static; width: 48%; margin-top: -80px; margin-left: auto; }
  .hero-bg-figure::after {
    background: linear-gradient(180deg, rgba(15, 10, 8, 0.78) 0%, rgba(15, 10, 8, 0.5) 48%, rgba(15, 10, 8, 0.3) 100%);
  }
  .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rodeo-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}


/* About hero: store sign photo, text over the sky, sign and horse left clear. */
.about-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1b140f;
  margin: 4px 0 28px;
  aspect-ratio: var(--hero-aspect, 2624 / 1616);
  display: flex;
  align-items: flex-start;
}
.about-hero-bg, .about-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.about-hero-bg img {
  object-fit: cover;
  object-position: center center;
}
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 10, 8, 0.58) 0%, rgba(15, 10, 8, 0.28) 34%, rgba(15, 10, 8, 0.04) 58%, rgba(15, 10, 8, 0.06) 100%),
    linear-gradient(90deg, rgba(15, 10, 8, 0.28) 0%, rgba(15, 10, 8, 0) 48%);
}
.about-hero-text {
  position: relative;
  z-index: 2;
  padding: 32px 36px 0;
  max-width: min(24rem, 44%);
}
.about-hero h1 {
  color: #f6efe4;
  margin: 0 0 8px;
  font-size: clamp(40px, 5.4vw, 72px);
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(15, 10, 8, 0.35);
}
.about-hero .lede {
  color: rgba(246, 239, 228, 0.96);
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  max-width: 16em;
  text-shadow: 0 1px 12px rgba(15, 10, 8, 0.35);
}
@media (max-width: 767px) {
  .about-hero { border-radius: 14px; }
  .about-hero-text { padding: 12px 14px 0; max-width: 72%; }
  .about-hero h1 { font-size: clamp(28px, 8.4vw, 34px); }
  .about-hero .lede { font-size: 15px; max-width: 14em; }
}

/* Visit hero: storefront photo, title over the parking lot so lettering and horse stay clear. */
.visit-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1b140f;
  margin: 4px 0 28px;
  aspect-ratio: var(--hero-aspect, 2752 / 1536);
  display: flex;
  align-items: flex-end;
}
.visit-hero-bg, .visit-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.visit-hero-bg img {
  object-fit: cover;
  object-position: center 40%;
}
.visit-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(15, 10, 8, 0.72) 0%, rgba(15, 10, 8, 0.34) 30%, rgba(15, 10, 8, 0.04) 52%, rgba(15, 10, 8, 0.08) 100%);
}
.visit-hero-text {
  position: relative;
  z-index: 2;
  padding: 0 36px 28px;
  max-width: min(38rem, 90%);
}
.visit-hero .kicker { color: var(--brass-bright); }
.visit-hero h1 {
  color: #f6efe4;
  margin: 0;
  font-size: clamp(32px, 4.6vw, 60px);
  text-shadow: 0 2px 18px rgba(15, 10, 8, 0.45);
}
@media (max-width: 767px) {
  .visit-hero { border-radius: 14px; }
  .visit-hero-text { padding: 0 14px 14px; max-width: 94%; }
  .visit-hero h1 { font-size: clamp(26px, 7.2vw, 34px); }
}

.page-header, .category-header {
  position: relative;
  margin: 0 0 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-deep);
}
.page-header img, .category-header img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--header-aspect, 2.4 / 1);
  object-fit: cover;
  object-position: center 40%;
}
.photo-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(27, 20, 15, 0.66);
  color: #f6efe4;
  font-size: 12px;
  line-height: 1.3;
}
.photo-credit a {
  color: var(--brass-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 767px) {
  .page-header img, .category-header img { aspect-ratio: var(--header-aspect-mobile, 1.8 / 1); }
  .photo-credit { font-size: 11px; left: 8px; bottom: 8px; }
}

/* Shop the look */
.look-photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper-deep); }
.look-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.look-photo .photo-credit { z-index: 2; }
.looks-lede { margin: -4px 0 16px; }
.look-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 70vw);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.look-card {
  position: relative;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.look-card .look-photo { border-radius: 0; }
.look-card:hover { border-color: rgba(27, 20, 15, 0.22); box-shadow: var(--shadow); }
.look-card-copy { padding: 12px 14px 14px; }
.look-card h3 { margin: 0; font-size: 22px; }
.look-card h3 a { color: inherit; text-decoration: none; }
.look-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.look-card h3 a:focus-visible { outline: none; }
.look-card:focus-within { outline: 3px solid var(--brass); outline-offset: 2px; }
.look-card .meta { margin: 4px 0 0; }
@media (min-width: 768px) {
  .look-strip { grid-auto-columns: minmax(0, calc((100% - 12px) / 2)); }
}
@media (min-width: 1024px) {
  .look-strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
}

.looks-head h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 10px; }
.looks-head .lede { max-width: 60ch; }
.look-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.look {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.look:first-of-type { border-top: 0; }
.looks-group-head { margin: 32px 0 0; padding: 32px 0 8px; border-top: 3px solid var(--brass); }
.looks-group-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 10px; }
.looks-group-head .lede { max-width: 60ch; }
.looks-group-head + .look { border-top: 0; }
.look-body h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }
.look-line { font-size: 18px; color: var(--muted); margin: 0 0 14px; max-width: 52ch; }
.look-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.look-item {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}
.look-item.is-off { opacity: 0.55; }
.look-item.is-out { opacity: 0.6; }
.look-pick { display: grid; place-items: center; min-width: 28px; min-height: 28px; cursor: pointer; }
.look-pick input { width: 20px; height: 20px; accent-color: var(--oxblood); cursor: pointer; }
.look-thumb img, .look-thumb .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; font-size: 24px; }
.look-item-copy { display: grid; gap: 2px; min-width: 0; }
.look-item-copy a { color: inherit; text-decoration: none; }
.look-item-copy a:hover strong { text-decoration: underline; }
.look-item-copy strong { font-size: 15px; line-height: 1.3; }
.look-item-copy .meta { margin: 0; }
.look-size select {
  margin-top: 6px;
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}
.look-price { font-weight: 600; white-space: nowrap; }
.look-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.look-total { margin: 0; font-family: var(--serif); font-size: 22px; }
.look-total strong { font-weight: 640; }
.look-total .meta { font-family: var(--sans); font-size: 14px; margin-left: 4px; }
.look-help { margin-top: 10px; }
.look-help a { color: inherit; }
.look .notice p { margin: 0; }
.looks-story { margin-top: 12px; padding: 24px; }
.looks-story h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); }
.looks-story p { max-width: 62ch; }

.complete-look-inner { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
.complete-look-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.complete-look h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.complete-look-items { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.complete-look-items a { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.3; }
.complete-look-items a:hover { text-decoration: underline; }
.complete-look-items img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }

@media (max-width: 899px) {
  .look { grid-template-columns: 1fr; gap: 16px; }
  .look-photo img { aspect-ratio: 4 / 3; }
  .look-card .look-photo img { aspect-ratio: 4 / 5; }
}
@media (max-width: 767px) {
  .look-item { grid-template-columns: auto 56px minmax(0, 1fr); }
  .look-thumb img, .look-thumb .ph { width: 56px; height: 56px; }
  .look-price { grid-column: 3; justify-self: start; font-size: 15px; }
  .look-foot .btn { width: 100%; }
  .complete-look-inner { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .look > .look-photo { position: sticky; top: 16px; }
}
.product-style { margin: 0 0 4px; font-size: 14px; color: var(--muted); }


/* Western 101 */
.guides-head { margin: 0 0 28px; }
.guides-head h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 10px; }
.guides-head .lede { max-width: 60ch; }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 28px;
}
.guide-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.guide-card:hover { border-color: rgba(27, 20, 15, 0.22); box-shadow: var(--shadow); }
.guide-photo, .guide-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}
.guide-hero { border-radius: 18px; }
.guide-photo img, .guide-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.guide-photo .photo-credit, .guide-hero .photo-credit { z-index: 2; }
.guide-card-copy { padding: 14px 16px 16px; }
.guide-card-copy h2 { margin: 0 0 6px; font-size: 24px; }
.guide-card-copy h2 a { color: inherit; text-decoration: none; }
.guide-card-copy h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.guide-card-copy h2 a:focus-visible { outline: none; }
.guide-card:focus-within { outline: 3px solid var(--brass); outline-offset: 2px; }
.guide-card-copy p { margin: 0; color: var(--muted); }
.guide-head { margin: 18px 0 8px; }
.guide-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 10px; }
.guide-head .lede { max-width: 60ch; }
.guide-body { margin: 0 0 28px; }
.guide-body p, .guide-body li { font-size: 17px; line-height: 1.55; }
.guide-more {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.guide-card-compact { padding: 16px 18px; }
.guide-card-compact h3 { margin: 0 0 6px; font-size: 20px; }
.guide-card-compact h3 a { color: inherit; text-decoration: none; }
.guide-card-compact h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (min-width: 768px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Law enforcement */
.agency-head { margin: 0 0 28px; }
.agency-head h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 10px; }
.agency-head .lede { max-width: 60ch; }
.agency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin: 0 0 36px;
}
.agency-grid .prose ol { margin: 0 0 12px; padding-left: 1.2rem; }
.agency-grid .prose li { margin: 0 0 8px; }
.agency-grid h2 { margin: 0 0 10px; }
@media (min-width: 900px) {
  .agency-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; }
}


/* Oldest family-owned western stores directory */
/* Hero: Lou Taubert storefront. Height follows the title and intro. Overlay stays
   at least 0.66 over the photo so cream text meets WCAG AA on the brightest areas. */
.directory-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1b140f;
  margin: 4px 0 28px;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
}
@media (min-width: 768px) {
  /* Taller on desktop so the top of the vertical sign sits above the title. */
  .directory-hero { min-height: 540px; }
}
.directory-hero-bg, .directory-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.directory-hero-bg img {
  object-fit: cover;
  /* Keep the tall vertical sign in a narrow mobile crop; favor the upper facade on wide crops. */
  object-position: 36% 30%;
}
.directory-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 10, 8, 0.66) 0%, rgba(15, 10, 8, 0.72) 40%, rgba(15, 10, 8, 0.80) 100%);
}
.directory-hero-text {
  position: relative;
  z-index: 2;
  padding: 32px 36px 36px;
  max-width: 46rem;
}
.directory-hero h1 {
  color: #f6efe4;
  font-size: clamp(32px, 4.6vw, 52px);
  margin: 0 0 16px;
  text-shadow: 0 2px 18px rgba(15, 10, 8, 0.45);
}
.directory-hero .prose,
.directory-hero .prose p {
  color: #f6efe4;
  text-shadow: 0 1px 12px rgba(15, 10, 8, 0.45);
}
.directory-hero .prose p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .directory-hero { border-radius: 14px; min-height: 280px; }
  .directory-hero-text { padding: 20px 16px 22px; max-width: none; }
  .directory-hero h1 { font-size: clamp(28px, 8vw, 34px); }
}
.directory-note { margin: 0 0 24px; }
.copy-placeholder {
  display: inline;
  padding: 0 0.3em;
  background: rgba(184, 140, 58, 0.22);
  border-bottom: 2px dashed var(--brass, #b08a3a);
  font-style: normal;
  white-space: nowrap;
}
.state-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 16px;
}
.state-filter label { display: grid; gap: 4px; font-weight: 600; }
.state-filter select { min-width: 10rem; padding: 8px 10px; }
.directory-count { margin: 0 0 16px; }
.western-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 48px;
}
.western-store-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.western-store-card h2 { margin: 0 0 12px; font-size: 22px; }
.western-store-card p { margin: 0 0 10px; }
.western-store-card p:last-child { margin-bottom: 0; }
.western-store-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1px;
}

/* Directory: make the founded year stand out */
.western-store-year-line { margin: 0.35rem 0 0.6rem; }
.western-store-year { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; color: var(--oxblood); letter-spacing: 0.01em; }


/* The Back Room */
.nav a.nav-back-room {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--brass);
  font-weight: 500;
}
.nav a.nav-back-room:hover { color: var(--oxblood); }

body.back-room-page {
  background: var(--ink);
  color: #f4eee4;
}
body.back-room-page .site-header {
  background: rgba(27, 20, 15, 0.96);
  border-bottom-color: rgba(215, 181, 122, 0.22);
  color: #f4eee4;
}
body.back-room-page .brand,
body.back-room-page .nav a,
body.back-room-page .nav-shop-btn,
body.back-room-page .cart-link,
body.back-room-page .search button {
  color: #f4eee4;
}
body.back-room-page .brand span { color: var(--brass-bright); }
body.back-room-page .nav a:hover,
body.back-room-page .nav-shop-btn:hover,
body.back-room-page .nav-shop-btn[aria-expanded="true"] { color: var(--brass-bright); }
body.back-room-page .nav a.nav-back-room { color: var(--brass-bright); }
body.back-room-page .nav a.nav-back-room:hover { color: #f4eee4; }
body.back-room-page .nav-button {
  background: transparent;
  color: #f4eee4;
  border-color: rgba(215, 181, 122, 0.4);
}
body.back-room-page .search {
  background: rgba(244, 238, 228, 0.06);
  border-color: rgba(215, 181, 122, 0.3);
  color: #f4eee4;
}
body.back-room-page .search input { color: #f4eee4; }
body.back-room-page .site-footer { margin-top: 0; }

.back-room {
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
  padding: 48px 0 80px;
}
.back-room-panel {
  width: min(34rem, calc(100% - 32px));
  margin: 0 auto;
}
.back-room-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--brass-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
.back-room-lock { display: block; }
.back-room h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #f6efe4;
  margin: 0 0 16px;
}
.back-room-lede {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  max-width: 34ch;
  color: rgba(246, 239, 228, 0.88);
}
.back-room-error {
  margin: 0 0 16px;
  color: #e8c4a8;
}
.back-room-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.back-room-form input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 181, 122, 0.45);
  border-radius: 4px;
  background: transparent;
  color: #f6efe4;
  font: inherit;
  font-size: 16px;
}
.back-room-form input::placeholder { color: rgba(246, 239, 228, 0.45); }
.back-room-form .btn {
  background: var(--brass);
  color: var(--ink);
  border: 0;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 600;
}
.back-room-form .btn:hover { background: var(--brass-bright); color: var(--ink); }
.back-room-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--brass-bright);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.back-room-rule::before,
.back-room-rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(215, 181, 122, 0.28);
}
.back-room-help { margin: 0; color: rgba(246, 239, 228, 0.8); }
.back-room-help a { color: var(--brass-bright); }
.back-room-coming { margin-top: 8px; max-width: 40ch; }
.back-room-coming h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 12px;
  color: #f6efe4;
}
.back-room-coming p { margin: 0; line-height: 1.55; color: rgba(246, 239, 228, 0.88); }
.back-room-coming a { color: var(--brass-bright); }
.back-room-products { margin-top: 28px; }
@media (max-width: 720px) {
  .back-room { align-items: start; padding-top: 28px; }
}

/* Western 101 categories */
.w101-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.w101-chip {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.w101-chip:hover { border-color: var(--ink); }
.w101-chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.w101-chip:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.guide-cat {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.guide-card-copy p.guide-cat { color: var(--brass); }
.guide-card-compact { position: relative; }
.guide-head .kicker a { color: inherit; }
.guide-body h3 { margin: 22px 0 8px; font-size: 20px; }

/* Western 101 inline store photos */
.guide-inline-photo { margin: 22px 0 26px; max-width: 440px; }
.guide-inline-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: var(--paper-deep);
}
