:root {
  --bg: oklch(98% 0.006 145);
  --surface: oklch(100% 0 0);
  --fg: oklch(20% 0.024 150);
  --muted: oklch(49% 0.022 150);
  --border: oklch(88% 0.012 145);
  --accent: oklch(50% 0.115 150);
  --accent-2: oklch(72% 0.13 78);
  --success: oklch(50% 0.12 150);
  --warn: oklch(70% 0.14 75);
  --danger: oklch(55% 0.16 28);
  --font-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 45px color-mix(in oklch, var(--fg) 10%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--accent) 65%, white);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  z-index: 30;
  background: var(--fg);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: color-mix(in oklch, var(--bg) 90%, white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 560;
}
.main-nav a:hover { color: var(--fg); background: color-mix(in oklch, var(--accent) 8%, transparent); }
.nav-toggle { display: none; }
.cart-button, .button, .add-button, .filter-chip, .close-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: 650 14px/1 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.cart-button {
  padding: 0 15px;
  background: var(--fg);
  color: white;
}
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--fg);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
.button.full { width: 100%; }
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(58px, 9vw, 128px) clamp(18px, 4vw, 64px) 56px;
}
.welcome-copy { max-width: 860px; }
.eyebrow, .panel-label, .product-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
}
h1 {
  max-width: 12ch;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
}
h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}
h3 {
  font-size: 20px;
  line-height: 1.22;
}
.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.welcome-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.welcome-panel strong { display: block; font-size: 18px; line-height: 1.25; }
.category-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 64px) 56px;
}
.category-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
}
.category-card span { color: var(--muted); font-weight: 650; }
.shop-section, .info-grid, .note-section, .legal-page {
  padding: 56px clamp(18px, 4vw, 64px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.section-head p:last-child { color: var(--muted); max-width: 58ch; }
.section-head.compact { grid-template-columns: 1fr; max-width: 900px; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.filter-chip {
  padding: 0 16px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.filter-chip.active { background: var(--accent); color: white; border-color: transparent; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.product-card[hidden] { display: none; }
.product-visual {
  min-height: 158px;
  aspect-ratio: 1.18 / 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  color: white;
  font: 760 64px/1 var(--font-display);
}
.product-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-visual.dog { background: linear-gradient(135deg, oklch(50% 0.1 150), oklch(70% 0.12 150)); }
.product-visual.cat { background: linear-gradient(135deg, oklch(48% 0.09 235), oklch(74% 0.08 235)); }
.product-visual.walk { background: linear-gradient(135deg, oklch(55% 0.12 78), oklch(78% 0.13 78)); color: var(--fg); }
.product-visual.care { background: linear-gradient(135deg, oklch(55% 0.10 30), oklch(78% 0.11 65)); color: var(--fg); }
.product-info p:last-child { color: var(--muted); margin-bottom: 0; }
.add-button {
  width: 100%;
  background: color-mix(in oklch, var(--accent) 12%, white);
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, white);
}
.add-button.added { background: var(--accent); color: white; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-grid .section-head { grid-column: 1 / -1; margin-bottom: 4px; }
.info-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.info-card p { color: var(--muted); }
.info-card a { font-weight: 700; color: var(--accent); text-decoration-thickness: 2px; }
.note-section {
  margin: 0 clamp(18px, 4vw, 64px) 56px;
  background: var(--fg);
  color: white;
  border-radius: 24px;
}
.note-section .eyebrow { color: var(--accent-2); }
.note-section p:last-child { max-width: 74ch; color: color-mix(in oklch, white 78%, var(--fg)); }
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(12, 20, 16, 0.42);
}
.cart-drawer.open { display: flex; }
.cart-panel {
  width: min(420px, 100%);
  height: 100%;
  padding: 26px;
  background: var(--surface);
  box-shadow: -24px 0 60px rgba(0,0,0,0.18);
}
.close-button {
  width: 44px;
  background: var(--bg);
  color: var(--fg);
  font-size: 28px;
}
.cart-lines { padding-left: 20px; color: var(--muted); }
.cookie-panel {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cookie-panel.show { display: grid; }
.cookie-panel h2 { font-size: 22px; }
.cookie-panel p { margin: 6px 0 0; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer p { margin: 8px 0 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer a { color: var(--muted); font-weight: 650; text-decoration: none; }
.site-footer.slim { display: block; }
.legal-page {
  max-width: 920px;
  margin: 0 auto;
}
.legal-page section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-page p { color: var(--muted); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 32px;
  max-width: 1120px;
}
.contact-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; justify-self: end; padding: 0 16px; background: var(--surface); border: 1px solid var(--border); }
  .main-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: start;
    flex-wrap: wrap;
  }
  .main-nav.open { display: flex; }
  .cart-button { grid-column: 1 / -1; justify-self: start; }
  .welcome, .section-head, .contact-layout { grid-template-columns: 1fr; }
  h1 { max-width: 11ch; }
  .category-band, .product-grid, .info-grid { grid-template-columns: 1fr; }
  .cookie-panel { grid-template-columns: 1fr; }
  .cookie-actions { flex-wrap: wrap; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
