/*
Theme Name: Santa Barbara Treasures
Theme URI: https://santabarbaraloanandjewelry.com
Author: Santa Barbara Loan & Jewelry
Author URI: https://santabarbaraloanandjewelry.com
Description: Earthy, soft-toned WordPress theme for Santa Barbara Loan & Jewelry — jewelry, watches, goods, guns, instruments, collateral loans, and in-house service & repair. Includes a filterable shop library powered by a custom post type.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbt
Tags: business, portfolio, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
   Design tokens (converted from the original app's CSS custom properties)
   ------------------------------------------------------------------------- */
:root {
  --radius: 0.5rem;

  --cream: oklch(0.975 0.016 90);
  --sage: oklch(0.84 0.045 130);
  --moss: oklch(0.28 0.075 145);
  --clay: oklch(0.58 0.14 52);
  --bark: oklch(0.18 0.035 55);
  --gold: oklch(0.62 0.12 85);

  --background: oklch(0.975 0.016 90);
  --foreground: oklch(0.18 0.035 55);
  --card: oklch(0.995 0.008 90);
  --primary: oklch(0.28 0.075 145);
  --primary-foreground: oklch(0.985 0.012 90);
  --secondary: oklch(0.885 0.04 120);
  --muted-foreground: oklch(0.38 0.035 80);
  --accent: oklch(0.58 0.14 52);
  --border: oklch(0.62 0.04 100);

  --font-serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --wrap: 72rem;

}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0 0 0.5em;
  font-weight: 500;
  line-height: 1.1;
}

p { margin: 0 0 1rem; }

.site-main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.wrap--narrow { max-width: 56rem; }

.eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow--lg { font-size: 0.75rem; letter-spacing: 0.35em; }

.muted { color: var(--muted-foreground); }
.center { text-align: center; }

/* -------------------------------------------------------------------------
   Notice banner
   ------------------------------------------------------------------------- */
.notice {
  background-color: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.notice--accent {
  background-color: color-mix(in oklab, var(--accent) 12%, var(--background));
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
.notice__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.notice__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.notice--accent .notice__inner h2 {
  color: var(--accent);
}
.notice__text { max-width: 64ch; }
.notice__icon {
  display: none;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  color: var(--accent);
  align-items: center;
  justify-content: center;
}
.notice__icon svg { display: block; }
.btn--shadow { box-shadow: 0 10px 25px -10px color-mix(in oklab, var(--primary) 35%, transparent); }
.btn svg { display: inline-block; vertical-align: middle; margin-right: 0.4rem; }
@media (min-width: 768px) {
  .notice__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .notice__icon { display: flex; margin-top: 0.25rem; }
  .notice__inner .btn { flex-shrink: 0; }
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  background: var(--card); padding: 0.75rem 1rem; border-radius: 999px;
  clip: auto; clip-path: none; height: auto; width: auto;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}
.site-brand { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.site-brand:hover { text-decoration: none; }
.site-brand__name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--primary); }
.site-brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--foreground);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-sbt-category > a {
  color: var(--primary);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foreground);
  cursor: pointer;
}
.header-subtext {
  border-top: 1px solid var(--border);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: center;
  padding-block: 0.5rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    padding-bottom: 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.75rem; }
  .site-header__inner { flex-wrap: wrap; }
}

/* -------------------------------------------------------------------------
   Home hero + collage
   ------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}
.hero__collage img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, oklch(0.95 0.02 90 / 0.6), oklch(0.95 0.02 90 / 0.3), transparent),
    linear-gradient(to bottom, oklch(0.95 0.02 90 / 0.2), transparent 40%, var(--background));
}
.hero__body { position: relative; padding-block: 6rem 9rem; }
.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  max-width: 46rem;
  color: var(--bark);
  margin-bottom: 1rem;
}
.hero__subtitle { max-width: 36rem; color: color-mix(in oklab, var(--bark) 90%, transparent); }

/* -------------------------------------------------------------------------
   Option cards (home) & item cards (catalog)
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.options {
  position: relative;
  z-index: 10;
  margin-top: -5rem;
  padding-block: 2rem 4rem;
  background: color-mix(in oklab, var(--secondary) 95%, transparent);
  border-top: 2px solid color-mix(in oklab, var(--bark) 20%, transparent);
  border-bottom: 2px solid color-mix(in oklab, var(--bark) 20%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
}

.card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.card:hover { box-shadow: 0 18px 40px oklch(0 0 0 / 0.12); text-decoration: none; }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sbt-muted, #f1ece4); }
.card--wide .card__media { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.7s ease; }

.card:hover .card__media img { transform: none; }
.card__body { padding: 1.25rem; min-width: 0; }
.card__title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--foreground);
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.options .card__text { color: var(--foreground); }
.card__price {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}
.card__more { margin-top: 1rem; display: inline-block; font-size: 0.875rem; color: var(--primary); }

/* -------------------------------------------------------------------------
   Slideshow
   ------------------------------------------------------------------------- */
.slideshow {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.slideshow__slide { display: none; position: relative; }
.slideshow__slide.is-active { display: block; }
.slideshow__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slideshow__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, oklch(0.2 0.02 60 / 0.8), transparent);
  color: var(--cream);
}
.slideshow__caption h3 { color: var(--cream); margin-bottom: 0.25rem; }
.slideshow__caption p { margin: 0; font-size: 0.875rem; }
.slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: color-mix(in oklab, var(--card) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--foreground);
}
.slideshow__nav--prev { left: 0.75rem; }
.slideshow__nav--next { right: 0.75rem; }
.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
}
.slideshow__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  border: 0; padding: 0; cursor: pointer;
  background: var(--border);
}
.slideshow__dot.is-active { background: var(--accent); }

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section { padding-block: 4rem; }
.section--tint {
  background: color-mix(in oklab, var(--secondary) 40%, var(--background));
  border-block: 1px solid var(--border);
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 6rem; }
}
.split__media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.split__media img { display: block; width: 100%; height: auto; object-fit: contain; }
.split--reverse .split__media { order: -1; }
.page-title { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: 1.25rem; }
.page-intro { color: var(--muted-foreground); font-size: 1.0625rem; max-width: 34rem; }

.tiles {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--card); padding: 2rem; }
.tile h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.tile p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* Reviews */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.review {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.review__stars { color: var(--accent); letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.review__quote { font-family: var(--font-serif); font-size: 1.25rem; color: var(--foreground); }
.review__name { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); margin: 0; }

.gallery-strip {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin-top: 3rem;
}
.gallery-strip img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }

/* -------------------------------------------------------------------------
   Catalog (shop library)
   ------------------------------------------------------------------------- */
.catalog__controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .catalog__controls { grid-template-columns: repeat(3, 1fr); } }

.field {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
}
.field:focus { border-color: var(--primary); }
textarea.field, .field--block { border-radius: var(--radius); }

.catalog__status {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.catalog__reset {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-size: 0.6875rem;
}
.catalog__empty { color: var(--muted-foreground); padding-block: 2rem; }
.badge {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------
   Forms (loan / quote requests)
   ------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form label { display: grid; gap: 0.35rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.form textarea { min-height: 8rem; resize: vertical; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__notice {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 50%, var(--card));
}
.form__notice--error { border-color: oklch(0.55 0.19 27); color: oklch(0.45 0.19 27); }

/* Email CTA */
.email-cta {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 45%, var(--background));
  padding-block: 3.5rem;
}
.email-cta__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .email-cta__inner { grid-template-columns: 1.2fr 1fr; } }
.email-cta__form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.email-cta__form .field { flex: 1 1 14rem; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding-block: 3rem 2rem;
  font-size: 0.875rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.site-footer h2 { font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--foreground); }
.site-footer a:hover { color: var(--primary); }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* -------------------------------------------------------------------------
   Editor / block content defaults
   ------------------------------------------------------------------------- */
.entry-content { max-width: 46rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding-left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
}
.alignwide { max-width: var(--wrap); }
.alignfull { max-width: none; }
.sticky, .bypostauthor { /* required by Theme Check */ }

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.pagination .page-numbers {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
}
.pagination .current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

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

/* -------------------------------------------------------------------------
   Layout utilities (replaces all previously inline template styles)
   ------------------------------------------------------------------------- */
.section--flush { padding-top: 0; }
.section-tail { padding-bottom: 4rem; }
.stack-lg { margin-top: 2rem; }
.stack-xl { margin-top: 3rem; }

.card__price--lg { font-size: 1.25rem; }

.item-meta { font-size: 0.875rem; }
.item-meta dt,
.item-meta dd { display: inline; margin: 0; }

.split__media--portrait { aspect-ratio: 4 / 5; }
.split__media--wide { aspect-ratio: 16 / 9; margin-bottom: 2.5rem; }

.entry-meta { margin-top: 2rem; font-size: 0.8125rem; }
.page-intro--center { margin-inline: auto; }

.search-box { max-width: 26rem; margin: 2rem auto; }
.search-box--left { max-width: 28rem; margin: 0 0 3rem; }
.search-form__submit { margin-top: 0.5rem; }

/* -------------------------------------------------------------------------
   Contrast pass — bolder borders, deeper blocks (matches the live site)
   ------------------------------------------------------------------------- */
.site-header { border-bottom-width: 2px; }
.header-subtext {
  border-top: 2px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: var(--primary);
  color: color-mix(in oklab, var(--primary-foreground) 95%, transparent);
  font-weight: 700;
}
.card,
.tile,
.review,
.slideshow,
.field,
.form,
.gallery-strip img { border-width: 2px; border-style: solid; border-color: var(--border); }
.section--tint {
  border-top: 2px solid color-mix(in oklab, var(--bark) 20%, transparent);
  border-bottom: 2px solid color-mix(in oklab, var(--bark) 20%, transparent);
}
.site-footer { border-top-width: 2px; }
.site-nav a { font-weight: 600; }

/* Header call button */
.site-header__call { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.site-header__call-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 640px) { .site-header__call { display: none; } }

/* Hero actions */
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn--gold { background: var(--cream); color: var(--gold); border: 2px solid var(--gold); font-weight: 700; }

/* Loan steps band */
.steps {
  background: var(--primary);
  border-block: 2px solid color-mix(in oklab, var(--bark) 20%, transparent);
  padding-block: 5rem;
  color: var(--cream);
}
.steps h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 3rem); }
.steps__intro { color: color-mix(in oklab, var(--cream) 80%, transparent); max-width: 36rem; margin-inline: auto; }
.steps__rule { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.steps__rule span { display: block; width: 2.5rem; height: 1px; background: var(--gold); }
.steps__rule i { display: block; width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--gold); }
.steps__list { position: relative; margin-top: 3.5rem; padding-left: 3rem; display: grid; gap: 3rem; }
.steps__list::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: color-mix(in oklab, var(--gold) 45%, transparent);
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--primary);
}
.step__number { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 3.75rem); color: color-mix(in oklab, var(--cream) 30%, transparent); margin: 0; }
.step__dash { display: block; width: 2rem; height: 1px; background: var(--gold); margin-block: 0.5rem 1rem; }
.step h3 { color: var(--cream); font-size: clamp(1.25rem, 3vw, 1.85rem); margin-bottom: 0.5rem; }
.step p { color: color-mix(in oklab, var(--cream) 80%, transparent); max-width: 34rem; margin: 0; }

/* Catalog pagination (client-side, 12 per page) */
.catalog__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.catalog__page {
  min-width: 2.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.catalog__page.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.catalog__page[disabled] { opacity: 0.45; cursor: default; }

/* External listing link */
.card__source,
.item-source { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }

/* Small screens: two columns, tighter cards (1179 x 2556 phones) */
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card__media { aspect-ratio: 16 / 9; }
  .card__body { padding: 0.85rem; }
  .card__title { font-size: 1rem; }
  .card__text { font-size: 0.78rem; -webkit-line-clamp: 3; }
  .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .options { margin-top: -3rem; }

  /* Show whole images on phones: contain instead of cropping/zooming */
  .slideshow__slide img,
  .gallery-strip img,
  .item-media img,
  .featured-item__media img {
    object-fit: contain;
    transform: none;
    background: var(--sbt-muted, #f1ece4);
  }
  .card__media img { object-fit: cover; transform: none; }
  .card:hover .card__media img { transform: none; }
  .split__media img { object-fit: contain; height: auto; transform: none; }
  .split__media,
  .split__media--portrait { aspect-ratio: 16 / 9; }
}


/* -------------------------------------------------------------------------
   BLOCK EDITOR
   Loaded with add_editor_style( 'style.css' ) so the admin preview matches
   the front end. Kept in this stylesheet — the theme ships no other CSS file.
   ------------------------------------------------------------------------- */
.editor-styles-wrapper {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
}
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.editor-styles-wrapper a { color: var(--primary); }
.editor-styles-wrapper blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
}

/* -------------------------------------------------------------------------
   ACCESSIBILITY & PRINT (WordPress theme requirements)
   ------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--card);
  clip-path: none;
  color: var(--primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption { font-size: 0.8125rem; color: var(--muted-foreground); }
.sticky, .gallery-caption, .bypostauthor { }

@media print {
  .site-header, .site-footer, .catalog__pagination, .email-cta, form { display: none !important; }
  body { background: #fff; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}

/* Button rows for store links */
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
