/* ============================================================
   Pet Deals — "Best Friends" storefront theme
   A warm, playful catalog system descended from the Lawn "Seed
   Catalog" bones: bright cream paper, a coral primary + fresh
   teal accent + sunny marigold, square corners, and a hard
   letterpress offset shadow. The wordmark is set in marvin-round
   (rounded display sans); headings & prices are brevia (bold
   italic); body is Spectral; labels are Space Mono. Translated
   from the design handoff prototype (inline styles).
   ============================================================ */
:root {
  /* palette ("Best Friends" handoff tokens) */
  --ink: #3a2a22;        /* warm near-black — primary text */
  --paper: #fdf5e8;      /* page background — bright cream */
  --kraft: #ffe1b8;      /* hero band background — sunny peach */
  --green: #e95c44;      /* primary brand — playful coral */
  --green-deep: #16524c; /* footer — deep teal */
  --terra: #1f8a78;      /* secondary accent — fresh teal */
  --ochre: #f0a93b;      /* warm accent — marigold */
  --img-bg: #fbf6ea;     /* product-image tile (slightly lighter than paper) */

  /* derived / alpha values */
  --line: rgba(58, 42, 34, 0.13);   /* ink @ ~13% — card + tile borders */
  --dash: rgba(58, 42, 34, 0.20);   /* ink @ ~20% — dashed price divider */
  --green-soft: rgba(233, 92, 68, 0.08);
  --card-shadow: 3px 3px 0 rgba(233, 92, 68, 0.12);       /* hard offset — letterpress, not blur */
  --card-shadow-hover: 5px 5px 0 rgba(233, 92, 68, 0.20);
  --paper-tex:
    radial-gradient(circle at 20% 15%, rgba(233, 92, 68, 0.05) 0, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(31, 138, 120, 0.05) 0, transparent 50%);

  /* type families */
  --logo: "marvin-round", "Trebuchet MS", system-ui, sans-serif; /* the wordmark / site name ONLY */
  --disp: "brevia", Georgia, serif;       /* expressive display — used italic 700 on headings & prices */
  --serif: "Spectral", Georgia, serif;    /* body */
  --mono: "Space Mono", ui-monospace, monospace; /* labels / figures-as-labels */

  --maxw: 1180px;
  --gutter: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  background-image: var(--paper-tex);
  line-height: 1.5;
  /* Make any missing weight fall back to a real face instead of a faux-bold. */
  font-synthesis: none;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
/* brevia is a bold-italic display face — headings always carry the italic. */
h1, h2, h3 { font-family: var(--disp); font-style: italic; font-weight: 700; line-height: 1.1; color: var(--ink); }

/* the playful paw mark (5 ellipses) — color comes from the wrapper */
.paw { display: block; }
.paw ellipse { fill: currentColor; }

/* visible focus rings for keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible,
.search-btn:focus-visible, .opt-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* square corners everywhere are intentional; the page width is fixed-centered */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 22px 0 8px; }

/* ---------- Header ---------- */
.site-header { background: transparent; border-bottom: 2px solid var(--green); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 15px; color: var(--green); }
.brand:hover { text-decoration: none; }
.brand-paw { width: 44px; height: 44px; color: var(--green); transform: rotate(-12deg); }
.brand-name {
  font-family: var(--logo); font-weight: 700; font-size: 38px;
  letter-spacing: .01em; line-height: 1; color: var(--green); text-transform: uppercase; white-space: nowrap;
}

/* always-visible search bar — bordered box with a leading coral icon */
.searchbox {
  display: flex; align-items: center; gap: 9px; flex: 0 1 280px; min-width: 180px;
  border: 1.5px solid var(--green); background: var(--paper); padding: 9px 13px;
}
.searchbox-icon {
  border: 0; background: transparent; color: var(--green); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 0; flex-shrink: 0;
}
.searchbox input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink);
}
.searchbox input::placeholder { color: var(--ink); opacity: .42; }

/* primary nav — its own row under the wordmark */
.mainnav {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter) 13px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid rgba(233, 92, 68, 0.2);
}
.mainnav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.mainnav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--green); }

/* ---------- Hero band (landing only) ---------- */
.hero { background: var(--kraft); border-bottom: 2px solid var(--green); }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero-text { flex: 1; max-width: 760px; }
.hero-h1 { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 40px; line-height: 1.04; margin: 0 0 15px; color: var(--ink); }
.hero-h1 .hl { color: var(--green); }
.hero-sub { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink); opacity: .9; max-width: 540px; }

/* the playful paw trail — teal, coral, marigold padding up the right side */
.paw-trail { position: relative; width: 300px; height: 156px; flex-shrink: 0; }
.paw-trail .paw { position: absolute; }
.pt1 { left: 6px;   top: 92px; width: 50px; height: 50px; color: var(--terra); transform: rotate(-22deg); opacity: .9; }
.pt2 { left: 90px;  top: 46px; width: 68px; height: 68px; color: var(--green); transform: rotate(4deg); }
.pt3 { left: 184px; top: 0;    width: 92px; height: 92px; color: var(--ochre); transform: rotate(24deg); }

/* ---------- Section heading rows (inline double-hairline + label) ---------- */
.section-head {
  max-width: var(--maxw); margin: 0 auto; padding: 34px var(--gutter) 0;
  display: flex; align-items: center; gap: 16px;
}
.section-head h2 { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 26px; margin: 0; color: var(--ink); white-space: nowrap; }
.hairline { flex: 1; height: 0; border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); opacity: .4; padding-top: 3px; }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--terra); white-space: nowrap; }

/* heading style reused by inner/grid pages */
.section-title { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 26px; margin: 0 0 16px; color: var(--ink); display: flex; align-items: center; gap: 16px; }
.section-title::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); opacity: .4; padding-top: 3px; }
.section-more { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.section-more a { color: var(--terra); }
.page-head { margin: 8px 0 18px; }
.page-title { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 34px; margin: 0 0 .15em; color: var(--ink); }
.page-sub { font-family: var(--serif); color: var(--ink); opacity: .6; margin: 0; font-size: 15px; }

/* ---------- Deal card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--card-shadow); color: var(--ink);
  transition: transform .13s ease, box-shadow .13s ease;
}
.card:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: var(--card-shadow-hover); }
.card-media { position: relative; height: 196px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: contain; }
.card-img--placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(60, 48, 30, .5);
  background: var(--img-bg);
  background-image: repeating-linear-gradient(135deg, rgba(199, 173, 119, .2) 0 9px, transparent 9px 18px);
}
.card.is-oos .card-img { opacity: .6; }

/* SAVE tag — teal luggage tag, notched left edge + paper dot */
.save-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--terra); color: var(--paper);
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px 4px 8px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.save-tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--paper); margin-left: 4px; }

/* tier label — coral, underlined, top-right */
.tier {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); border-bottom: 1.5px solid var(--green); padding-bottom: 1px;
}
.oos-tag {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(58, 42, 34, .8); color: var(--paper);
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px;
}

.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 7px; }
.card-title { font-family: var(--serif); font-size: 16.5px; line-height: 1.32; color: var(--ink); flex: 1; }
.card-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; border-top: 1px dashed var(--dash); padding-top: 12px; flex-wrap: wrap; }
.price { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 26px; color: var(--green); line-height: 1; }
.was { font-family: var(--serif); font-size: 14px; color: var(--ink); opacity: .5; text-decoration: line-through; }
.variation-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .55; margin-top: 6px; }

.empty { font-family: var(--serif); color: var(--ink); opacity: .6; padding: 32px 0; font-size: 1.05rem; }

/* ---------- New This Week strip ---------- */
.newgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.na { display: flex; flex-direction: column; border-top: 2px solid var(--green); padding-top: 12px; color: var(--ink); }
.na:hover { text-decoration: none; }
.na:hover .na-name { text-decoration: underline; text-underline-offset: 2px; }
.na-media { position: relative; height: 118px; background: var(--img-bg); border: 1px solid var(--line); margin-bottom: 11px; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.na-media img { width: 100%; height: 100%; object-fit: contain; }
.na-brand { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 4px; }
.na-name { font-family: var(--serif); font-size: 13px; line-height: 1.3; color: var(--ink); min-height: 50px; }
.na-price { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 18px; color: var(--green); margin-top: 6px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px 0 8px; }
.pagination a { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 18px; border: 1px solid var(--green); color: var(--green); background: var(--paper); }
.pagination a:hover { text-decoration: none; background: var(--green); color: var(--paper); }
.page-current { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink); opacity: .6; }

/* ---------- CTA buttons ---------- */
.cta {
  display: inline-block; background: var(--green); color: var(--paper);
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 11px 22px; border: 2px solid var(--green); margin: 6px 8px 6px 0;
  transition: transform .13s ease, box-shadow .13s ease;
}
.cta:hover { text-decoration: none; box-shadow: var(--card-shadow-hover); transform: translate(-1px, -1px); }
.cta--small { padding: 10px 18px; }
.cta--ghost { background: var(--paper); color: var(--green); }
.cta--ghost:hover { background: var(--green); color: var(--paper); }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding-top: 30px; padding-bottom: 44px; }
.detail-media { position: relative; background: var(--img-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); padding: 28px; display: flex; align-items: center; justify-content: center; }
.detail-media img { max-height: 460px; width: auto; object-fit: contain; }
.detail-img--placeholder {
  width: 100%; min-height: 360px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(60, 48, 30, .5);
  background-image: repeating-linear-gradient(135deg, rgba(199, 173, 119, .2) 0 9px, transparent 9px 18px);
}
.detail-brand { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); }
.detail-title { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1.1; margin: 8px 0 16px; color: var(--ink); }
.detail-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-price { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 38px; color: var(--green); line-height: 1; }
.save-chip { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; background: var(--terra); color: var(--paper); padding: 3px 9px; }
.badge--inline { display: inline-block; margin: 2px 0 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); border-bottom: 1.5px solid var(--green); padding-bottom: 1px; }
.oos-note { font-family: var(--serif); color: var(--terra); font-size: .95rem; }
.detail-tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); border: 1px solid var(--line); color: var(--green); padding: 6px 12px; }
.tag:hover { text-decoration: none; border-color: var(--green); }
.detail-disclaimer { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.6; color: rgba(58, 42, 34, .55); margin-top: 26px; }

/* ---------- Other Options (variant list below the fold, #64/#65) ---------- */
.opts-section { padding-top: 6px; padding-bottom: 48px; }
.opts-head {
  font-family: var(--disp); font-size: 25px; margin: 0 0 4px; color: var(--ink);
  display: flex; align-items: center; gap: 16px;
}
.opts-head::after {
  content: ""; flex: 1; height: 0;
  border-top: 1px solid var(--green); border-bottom: 1px solid var(--green);
  opacity: .4; padding-top: 3px;
}
.opts-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin: 0 0 18px; }

.opt-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.opt-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto 130px;
  align-items: center; gap: 20px;
  padding: 14px; border-bottom: 1px solid var(--line);
  color: var(--ink); background: var(--paper);
  transition: transform .13s ease, box-shadow .13s ease;
}
.opt-row:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: var(--card-shadow-hover); }
.opt-row.is-oos { opacity: .6; }

.opt-thumb { width: 56px; height: 56px; background: var(--img-bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.opt-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.opt-thumb-ph { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: rgba(60, 48, 30, .45); }

.opt-meta { min-width: 0; }
.opt-name { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.3; }
.opt-attrs { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink); opacity: .8; margin-top: 5px; }

.opt-tag { justify-self: start; }
.opt-deal {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--terra); color: var(--paper);
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px 4px 8px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.opt-deal::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--paper); }
.opt-flat { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .4; }

.opt-price { text-align: right; }
.opt-price .now { display: block; font-family: var(--disp); font-size: 24px; color: var(--green); line-height: 1; }
.opt-price .was { display: block; font-family: var(--serif); font-size: 13px; color: var(--ink); opacity: .5; text-decoration: line-through; margin-top: 3px; }
/* Like-for-like cheaper-than-current flag (color-only variants, in stock).
   Sits in front of the price; the whole row is outlined. Both the badge and the
   outline are colour-coded by how much you save: subtle for a small saving,
   loud for a big one. */
.cheaper-badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 5px 10px; font-family: var(--mono); }
.cheaper-badge .cb-top { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cheaper-badge .cb-amt { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.cheaper-badge.lvl-lo  { color: var(--green); background: var(--green-soft); }
.cheaper-badge.lvl-mid { color: var(--paper); background: var(--green); }
.cheaper-badge.lvl-hi  { color: var(--paper); background: var(--terra); }
.opt-row.is-cheaper { outline: 2px solid var(--green); outline-offset: -2px; }
.opt-row.is-cheaper.lvl-hi { outline-color: var(--terra); }

.opt-cta {
  justify-self: end; text-align: center; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 16px; border: 1.5px solid var(--green); color: var(--green); background: var(--paper);
}
.opt-cta:hover { text-decoration: none; }
.opt-row:hover .opt-cta { background: var(--green); color: var(--paper); }

/* Collapse long lists past VARIANT_PREVIEW (JS adds .is-collapsed) */
.opt-row--extra { /* visible by default (no-JS) */ }
.opts-section.is-collapsed .opt-row--extra { display: none; }
.opts-toggle {
  display: none; margin-top: 14px; border: 1px solid var(--green); background: var(--paper);
  color: var(--green); font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 9px 18px; cursor: pointer;
}
.opts-section.is-collapsed .opts-toggle { display: inline-block; }

@media (max-width: 700px) {
  .opt-row { grid-template-columns: 44px 1fr auto; gap: 12px; row-gap: 8px; }
  .opt-thumb { width: 44px; height: 44px; }
  .opt-tag { grid-column: 2; justify-self: start; }
  .opt-price { grid-column: 3; grid-row: 1; }
  .opt-cta { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---------- Posts / blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-stub { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--card-shadow); color: var(--ink); transition: transform .13s ease, box-shadow .13s ease; }
.post-stub:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: var(--card-shadow-hover); }
.post-stub-media { aspect-ratio: 16 / 9; background: var(--img-bg); border-bottom: 1px solid var(--line); }
.post-stub-media img { width: 100%; height: 100%; object-fit: cover; }
.post-stub-body { padding: 14px 16px 18px; }
.post-stub-body h3 { margin: 0 0 6px; font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 18px; }
.post-stub-date { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.post-stub-body p { font-family: var(--serif); color: var(--ink); opacity: .7; font-size: .92rem; margin: 8px 0 0; }

.post { max-width: 760px; padding-top: 30px; padding-bottom: 44px; }
.post-title { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 36px; line-height: 1.08; margin: 0 0 .2em; }
.post-date { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.post-hero { margin: 22px 0; border: 1px solid var(--line); overflow: hidden; }
.post-content { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.post-content h2 { font-family: var(--disp); font-style: italic; font-weight: 700; margin-top: 1.6em; }
.post-content img { border: 1px solid var(--line); margin: 1.2em 0; }
.post-back { margin-top: 32px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; padding-top: 30px; padding-bottom: 48px; }
.prose h1 { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 34px; margin-bottom: .4em; }
.prose h2 { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 22px; margin-top: 1.5em; }
.prose p { font-family: var(--serif); margin: 0 0 1.1em; font-size: 1.05rem; }

/* ---------- Search ---------- */
.search-page-form { display: flex; gap: 8px; margin-top: 12px; max-width: 520px; }
.search-page-form input { flex: 1; font-family: var(--serif); padding: 12px 16px; border: 1px solid var(--line); background: var(--paper); font-size: 1rem; }
.search-page-form button { border: 2px solid var(--green); background: var(--green); color: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 22px; cursor: pointer; }
.search-page-form button:hover { box-shadow: var(--card-shadow-hover); }
.search-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink); opacity: .6; margin: 4px 0 18px; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 70px 20px; }
.error-code { font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 5rem; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--paper); margin-top: 36px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 30px var(--gutter) 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 1px solid rgba(253, 245, 232, .2); padding-bottom: 20px; }
.footer-brand { font-family: var(--logo); font-weight: 700; font-size: 24px; color: var(--paper); white-space: nowrap; display: flex; align-items: center; gap: 11px; text-transform: uppercase; }
.footer-brand:hover { text-decoration: none; }
.footer-paw { width: 26px; height: 26px; color: var(--paper); transform: rotate(-12deg); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.footer-disclaimer { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; line-height: 1.7; color: var(--paper); opacity: .6; margin: 16px 0 0; }

/* ---------- Animal-type chicklet filter (#54) ---------- */
.animal-filter {
  border-bottom: 1px solid rgba(233, 92, 68, 0.18);
  background: var(--paper);
  padding: 10px 0 11px;
}
.animal-filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.animal-filter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .5;
  flex-shrink: 0;
}
.animal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.animal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .1s ease, background .1s ease, color .1s ease;
  white-space: nowrap;
}
.animal-pill:hover {
  border-color: var(--terra);
  color: var(--terra);
  text-decoration: none;
}
.animal-pill.is-active {
  border-color: var(--terra);
  background: var(--terra);
  color: var(--paper);
  box-shadow: 2px 2px 0 rgba(31, 138, 120, 0.18);
}
.animal-pill.is-active:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}
.animal-pill:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.animal-pill--clear {
  border-color: transparent;
  color: var(--terra);
  opacity: .8;
  padding-left: 8px;
  padding-right: 8px;
}
.animal-pill--clear:hover {
  opacity: 1;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.animal-pill-count {
  font-family: var(--mono);
  font-size: 9px;
  opacity: .7;
  font-weight: 400;
}
.animal-pill.is-active .animal-pill-count {
  opacity: .85;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .newgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; align-items: center; gap: 14px; }
  .brand { order: 1; }
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .searchbox { order: 3; flex-basis: 100%; }
  .mainnav { display: none; flex-direction: column; align-items: flex-start; gap: 16px; }
  body.nav-open .mainnav { display: flex; }
  .hero-inner { flex-wrap: wrap; gap: 20px; }
  .hero-text { flex-basis: 100%; }
  .hero-h1 { font-size: 32px; }
  .paw-trail { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-media img { max-height: 360px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 26px; }
  .brand-paw { width: 34px; height: 34px; }
  .grid { grid-template-columns: 1fr; }
  .newgrid { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 16px; }
  .hero-h1 { font-size: 28px; }
}
