:root {
  color-scheme: light;
  --bg: #fdeef1;
  --bg-accent: #f7cac9;
  --ink: #2d3a35;
  --muted: #5a6b63;
  --card: #fef2f4;
  --primary: #365551;
  --secondary: #5a7a76;
  --teal-mid: #7a9e98;
  --teal-light: #8fb5af;
  --accent: var(--primary);
  --accent-dark: var(--secondary);
  --chip: #f7cac9;
  --shadow: 0 18px 40px rgba(54, 85, 81, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 980px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-accent), var(--bg) 55%),
    linear-gradient(130deg, #fff7f8 0%, var(--bg) 40%, var(--card) 100%);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(54, 85, 81, 0.22);
  background: #fff;
}

.hero-text h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 6px;
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(54, 85, 81, 0.32);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--teal-light);
}

.btn-ghost:hover,
.btn-ghost:focus {
  box-shadow: 0 8px 18px rgba(54, 85, 81, 0.14);
  transform: translateY(-1px);
}

.btn-petsdeli {
  background: #2d4f9e;
  color: #fff;
  box-shadow: 0 10px 20px rgba(45, 79, 158, 0.35);
}

.btn-petsdeli:hover,
.btn-petsdeli:focus {
  background: #244184;
  transform: translateY(-1px);
}

.btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.btn .icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.chip-row {
  margin: 26px 0 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.chip-row::-webkit-scrollbar {
  height: 6px;
}

.chip-row::-webkit-scrollbar-thumb {
  background: var(--teal-light);
  border-radius: 999px;
}

.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.categories {
  display: grid;
  gap: 26px;
}

.category {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.category-header h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(22px, 3.6vw, 28px);
  margin: 0;
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #d8e2e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(54, 85, 81, 0.14);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f3f7f6;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.product-card .btn {
  justify-content: center;
  width: 100%;
}

.footer {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.noscript {
  background: #fff8f8;
  border: 1px solid var(--chip);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  margin: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 32px;
  }
}

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