:root {
  --ink: #14241f;
  --ink-soft: #3d534b;
  --leaf: #2f6b55;
  --leaf-deep: #1e4638;
  --mist: #e7f1ec;
  --sky: #d7e8f0;
  --sun: #d4922a;
  --sun-ink: #3a2a0a;
  --paper: #f3f8f5;
  --line: rgba(20, 36, 31, 0.12);
  --shadow: 0 18px 40px rgba(20, 36, 31, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 146, 42, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(47, 107, 85, 0.14), transparent 32%),
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 38%, var(--mist) 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: rgba(243, 248, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header .brand {
  font-size: 1.35rem;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-header nav a:hover {
  color: var(--leaf-deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 36, 31, 0.18) 0%, rgba(20, 36, 31, 0.62) 100%),
    url("https://images.unsplash.com/photo-1558788353-f76d92427f16?w=1800&q=80") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 8vh;
  color: #f7fbf8;
  animation: rise 900ms ease both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.15;
}

.lede {
  margin: 1rem 0 0;
  max-width: 38ch;
  color: rgba(247, 251, 248, 0.9);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--sun);
  color: var(--sun-ink);
}

.btn-primary:hover {
  background: #e0a336;
}

.btn-ghost {
  background: transparent;
  color: #f7fbf8;
  border-color: rgba(247, 251, 248, 0.55);
}

.btn-ghost:hover {
  background: rgba(247, 251, 248, 0.12);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
  animation: rise 700ms ease both;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product {
  width: 100%;
  display: grid;
  gap: 0.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  animation: rise 800ms ease both;
}

.product:nth-child(2) { animation-delay: 60ms; }
.product:nth-child(3) { animation-delay: 120ms; }
.product:nth-child(4) { animation-delay: 180ms; }

.product:hover,
.product:focus-visible {
  border-color: rgba(47, 107, 85, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.product img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  font-weight: 600;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 500;
}

.product-price {
  color: var(--leaf-deep);
}

.product-action {
  padding: 0 1rem 1rem;
  color: var(--leaf);
  font-size: 0.92rem;
  font-weight: 700;
}

.product.is-added .product-action {
  color: var(--ink);
}

.bag-status {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.care-panel {
  display: grid;
  gap: 1.5rem;
}

.care-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.care-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  animation: rise 900ms ease both;
}

.visit-details {
  display: grid;
  gap: 1.25rem;
  max-width: 28rem;
}

.visit-details p {
  margin: 0;
  color: var(--ink-soft);
}

.visit-details strong {
  color: var(--ink);
}

.site-footer {
  padding: 2rem clamp(1rem, 3vw, 2rem) 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer .brand {
  color: var(--ink);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.5%, 0); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .care-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-header nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media,
  .hero-copy,
  .section-head,
  .product,
  .care-figure img {
    animation: none !important;
  }
  .btn,
  .product {
    transition: none;
  }
}
