:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #23262f;
  --muted: #646a78;
  --brand: #3b6fd8;
  --brand-ink: #ffffff;
  --accent: #ffcf5c;
  --line: #e6e1d8;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(35, 38, 47, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171c;
    --surface: #1f2229;
    --ink: #eef0f4;
    --muted: #a3a9b6;
    --brand: #7aa2ff;
    --brand-ink: #10131a;
    --line: #2e323b;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #15171c;
  --surface: #1f2229;
  --ink: #eef0f4;
  --muted: #a3a9b6;
  --brand: #7aa2ff;
  --brand-ink: #10131a;
  --line: #2e323b;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.55;
}

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

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 0.4em; }

a { color: var(--brand); }

/* ---- Top bar ---------------------------------------------------------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Fraunces", serif; font-weight: 800; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.topbar nav { display: flex; gap: clamp(10px, 2.5vw, 24px); }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.topbar nav a:hover { color: var(--ink); }

/* ---- Hero ------------------------------------------------------------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 7vw, 88px) 0;
}
.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px;
  background: var(--accent); color: #3a2c00; border-radius: 99px;
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.cat-name { color: var(--brand); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.paw-badge {
  position: absolute; right: 4%; bottom: 6%;
  width: 104px; height: 104px; display: grid; place-items: center; text-align: center;
  background: var(--accent); color: #3a2c00; border-radius: 50%;
  font-weight: 800; font-size: 0.85rem; line-height: 1.2;
  transform: rotate(-10deg); box-shadow: var(--shadow);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 99px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-block { width: 100%; margin-top: auto; }

/* ---- Sections --------------------------------------------------------- */
.section { padding: clamp(32px, 6vw, 64px) 0; }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-sub { color: var(--muted); margin: 0 0 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ---- Product cards ---------------------------------------------------- */
.picks-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card-img { display: block; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card h3 { font-size: 1.15rem; margin: 2px 0 0; }
.tag {
  align-self: flex-start; padding: 2px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand); font-size: 0.78rem; font-weight: 800;
}
.paws { letter-spacing: 2px; color: var(--muted); font-size: 0.95rem; }
.verdict { margin: 4px 0 10px; color: var(--muted); font-style: italic; }
.video-link { font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; text-decoration: none; }

/* ---- Shop controls ---------------------------------------------------- */
.shop-controls {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin: 8px 0 24px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search {
  flex: 1 1 220px; max-width: 320px; padding: 10px 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

/* ---- Gallery ---------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.photo {
  position: relative; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; background: var(--surface); box-shadow: var(--shadow);
  font: inherit;
}
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s ease; }
.photo:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff; font-weight: 700; font-size: 0.9rem; text-align: left;
}

.lightbox {
  border: 0; padding: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink);
  max-width: min(92vw, 900px);
}
.lightbox::backdrop { background: rgba(10, 12, 16, 0.8); }
.lightbox img { max-height: 78vh; width: 100%; object-fit: contain; }
.lightbox p { margin: 0; padding: 12px 18px 16px; font-weight: 700; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---- Videos ----------------------------------------------------------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius);
  overflow: hidden; background: var(--line); box-shadow: var(--shadow);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-card:hover img { transform: scale(1.04); }
.play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55);
}
.play::after {
  content: ""; position: absolute; left: 22px; top: 17px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.video-title { font-weight: 800; line-height: 1.3; }
.channel-cta {
  grid-column: 1 / -1; text-align: center; padding: 32px 20px; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.channel-cta p { color: var(--muted); font-size: 1.1rem; margin-top: 0; }

/* ---- About + footer --------------------------------------------------- */
.about p { max-width: 65ch; font-size: 1.1rem; color: var(--muted); }

.footer {
  margin-top: 32px; padding: 32px 16px 40px; text-align: center;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.disclosure { max-width: 70ch; margin: 0 auto 12px; }

/* ---- Mobile ----------------------------------------------------------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .topbar nav a:nth-child(n+3) { display: none; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
