:root {
  --ink: #1c1a1d;
  --muted: #5e5862;
  --bg: #f6f1f3;
  --card: #ffffff;
  --line: #eadfe3;
  --accent: #c2256a;
  --accent-dark: #8e184c;
  --deep: #3a2458;
  --soft: #fff5f8;
  --ok: #1f6b4a;
  --warn: #8a4b12;
  --shadow: 0 10px 30px rgba(58, 36, 88, 0.08);
  --radius: 22px;
  --header: 4.5rem;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Trebuchet MS", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}
body.in { background: #f4f0f2; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(1.7rem, 7.2vw, 3.4rem); max-width: 100%; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.preview {
  margin: 0;
  padding: 0.45rem 1rem;
  background: var(--deep);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}
.preview a { color: #fff; }
.top {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0.35rem 9.5rem 0.35rem 0.75rem;
  max-width: 100%;
}
.top-actions {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}
.logo { display: flex; min-width: 0; }
.logo img { height: 46px; width: auto; max-width: 148px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; flex: 0 0 auto; }
.icon-btn, .text-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #1c1a1d;
  padding: 0 0.55rem;
  flex: 0 0 auto;
  white-space: nowrap;
}
a.text-btn { font-weight: 600; border: 1px solid var(--line); background: #fff; }
.cart-btn { position: relative; }
.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
}
.chips {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.92rem;
}
.chips a[aria-current="page"] { background: var(--deep); color: white; }
body.in .chips { display: none; }

main { padding: 1rem 1rem 7.5rem; }
.wrap { max-width: 1120px; margin: 0 auto; }
.stack { display: grid; gap: 0.9rem; }
.muted { color: var(--muted); }
.pad { padding: 0.25rem 0; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.hero {
  display: grid;
  gap: 1rem;
  padding-top: 0.4rem;
}
.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.lede { font-size: 1.08rem; color: var(--muted); margin-top: 0.7rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.btn {
  appearance: none;
  border: 0;
  min-height: 52px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}
.btn.secondary { background: var(--deep); }
.btn.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; }
.grid-2 { display: grid; gap: 0.8rem; }
.product-card img, .bag {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: linear-gradient(180deg, #fff, #f7eef2);
  border-radius: 18px;
}
.price { font-weight: 650; font-size: 1.25rem; }
.was { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 0.35rem; font-size: 0.95rem; }
.benefit {
  background: white;
  border-radius: 18px;
  padding: 0.95rem;
}
.benefit strong { display: block; margin-bottom: 0.25rem; }
.example {
  display: grid;
  gap: 0.8rem;
  background: white;
  border-radius: 28px;
  padding: 0.8rem;
  box-shadow: var(--shadow);
}
.example img { width: 100%; height: 220px; object-fit: cover; border-radius: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
}
.field { display: grid; gap: 0.35rem; }
.field span, label.lbl { font-size: 0.86rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #e2d5da;
  background: white;
  padding: 0.75rem 0.85rem;
}
textarea { min-height: 96px; resize: vertical; }
.choice { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.choice label {
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.choice input { width: auto; min-height: 0; }
.stepper { display: flex; align-items: center; gap: 0.4rem; }
.stepper button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}
.stepper input { width: 4rem; text-align: center; }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.size {
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.75rem;
  min-height: 72px;
}
.size[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.dog-hero { display: grid; gap: 0.8rem; }
.portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: #efe4ea;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: Fraunces, Georgia, serif;
  font-size: 4rem;
  color: var(--deep);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.list { display: grid; gap: 0.55rem; }
.list a.card, a.card { text-decoration: none; color: inherit; display: block; }
.meta { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.note {
  background: #f8f4ea;
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  color: #4e4638;
  font-size: 0.92rem;
}
.warn { color: var(--warn); }
.ok { color: var(--ok); }
.sticky-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
body.in .sticky-action { bottom: calc(64px + env(safe-area-inset-bottom)); }
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: white;
  border-top: 1px solid var(--line);
  padding: 0.25rem 0.4rem calc(0.25rem + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
body.in .tabbar { display: grid; }
.tabbar a {
  text-decoration: none;
  color: var(--muted);
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar svg { width: 24px; height: 24px; }
.toast {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 40;
  background: var(--ink);
  color: white;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.toast.show { opacity: 1; }
.footer { display: grid; gap: 0.35rem; padding: 1.5rem 0 0.5rem; color: var(--muted); font-size: 0.92rem; }
.footer a { color: var(--muted); }
.split { display: grid; gap: 0.8rem; }
.hidden { display: none !important; }
.error { color: #9d1230; font-weight: 600; }

@media (min-width: 960px) {
  h1 { font-size: 3.4rem; }
  main { padding: 1.5rem 1.5rem 3rem; }
  body.in main { padding-bottom: 3rem; }
  .tabbar, body.in .tabbar { display: none; }
  body.in .chips { display: flex; }
  .sticky-action { position: static; padding: 0; background: transparent; border: 0; }
  .hero, .split, .dog-hero, .home-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .example { grid-template-columns: 220px 1fr; align-items: center; }
  .example img { height: 100%; min-height: 220px; }
  .checkout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
