:root {
  color-scheme: light;
  --ink: #1f2421;
  --muted: #68736c;
  --paper: #fffaf2;
  --surface: #ffffff;
  --mist: #eef6f2;
  --line: #d8ded7;
  --forest: #214f3b;
  --teal: #127978;
  --coral: #d96c4f;
  --sun: #f7b84b;
  --berry: #8b3a62;
  --shadow: 0 18px 50px rgba(31, 36, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(33, 79, 59, 0.16);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.primary-nav,
.header-actions,
.hero-actions,
.purchase-options,
.checkout-steps,
.trust-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--forest);
}

.primary-nav {
  justify-content: center;
  color: #334139;
  font-weight: 700;
}

.primary-nav a.is-active {
  color: var(--forest);
  border-bottom: 3px solid var(--forest);
  padding-bottom: 4px;
}

.menu-toggle {
  display: none;
}

.header-actions {
  justify-content: end;
  color: var(--muted);
  font-size: 14px;
}

.market-control {
  display: flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.market-control select {
  min-height: 38px;
  border-radius: 999px;
  padding: 7px 10px;
}

.page-view {
  min-height: calc(100vh - 155px);
  outline: none;
}

.route-hero {
  min-height: 42vh;
  padding: clamp(36px, 7vw, 86px) clamp(18px, 6vw, 72px);
  background:
    linear-gradient(140deg, rgba(33, 79, 59, 0.08), rgba(217, 108, 79, 0.12)),
    #fffaf2;
}

.route-hero h1 {
  max-width: 980px;
}

.market-summary,
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.market-summary span,
.market-summary strong,
.toolbar-row span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.single-column {
  grid-template-columns: 1fr;
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 7vw, 86px) clamp(18px, 6vw, 72px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.hero-text,
.feature-commerce p,
.section-heading p {
  color: #445048;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.button,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
button.primary {
  color: #ffffff;
  background: var(--forest);
}

.button.secondary,
button.secondary {
  color: var(--forest);
  background: #ffffff;
  border-color: var(--line);
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.connection-pill {
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid rgba(18, 121, 120, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--teal);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.warning {
  color: #9a3412;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(33, 79, 59, 0.08), rgba(217, 108, 79, 0.16)),
    radial-gradient(circle at 30% 30%, rgba(247, 184, 75, 0.35), transparent 35%),
    #dfeee7;
  box-shadow: var(--shadow);
}

.photo-card {
  position: absolute;
  inset: 34px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(31, 36, 33, 0), rgba(31, 36, 33, 0.55)),
    url("https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.floating-note,
.mini-product {
  position: absolute;
  max-width: 260px;
  border-radius: 18px;
  padding: 16px;
  color: #ffffff;
  background: rgba(33, 79, 59, 0.88);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.floating-note {
  left: 12px;
  bottom: 80px;
}

.mini-product {
  right: 18px;
  top: 48px;
  background: rgba(139, 58, 98, 0.9);
}

.experience-band,
.daily-section,
.journey-section,
.feature-commerce,
.shop-layout,
.diary-section,
.checkout-shell,
.account-shell,
.story-band {
  padding: clamp(42px, 7vw, 88px) clamp(18px, 6vw, 72px);
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.daily-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(33, 79, 59, 0.13);
  border-radius: 22px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 36, 33, 0.07);
}

.journey-timeline {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(4, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.journey-pet-card,
.journey-item {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 36, 33, 0.08);
}

.journey-pet-card {
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest), var(--berry));
}

.journey-pet-card strong,
.journey-item strong {
  font-size: 22px;
}

.journey-item p,
.journey-item small,
.journey-pet-card span,
.journey-pet-card small {
  color: inherit;
  opacity: 0.76;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.experience-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 24px;
  padding: 18px;
  color: #ffffff;
  background: var(--forest);
  font-size: 22px;
  font-weight: 900;
}

.experience-tile span {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.experience-tile.toys { background: var(--coral); }
.experience-tile.wear { background: var(--teal); }
.experience-tile.accessories { background: var(--berry); }
.experience-tile.collections { background: #6b5a2e; }

.feature-commerce {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 36px;
  align-items: stretch;
  background: #ffffff;
}

.purchase-options span,
.trust-grid span,
.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--mist);
  color: var(--forest);
  font-weight: 800;
  font-size: 13px;
}

.box-showcase,
.product-grid,
.diary-grid {
  display: grid;
  gap: 18px;
}

.box-showcase {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.box-card,
.product-card,
.diary-card,
.editor-panel,
.cart-panel,
.checkout-panel,
.account-nav,
.detail-dock {
  border: 1px solid rgba(33, 79, 59, 0.13);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 36, 33, 0.07);
}

.box-card,
.product-card,
.diary-card {
  overflow: hidden;
}

.card-image {
  min-height: 210px;
  background:
    linear-gradient(140deg, rgba(18, 121, 120, 0.12), rgba(247, 184, 75, 0.25)),
    #e9f2ed;
}

.box-card .card-image {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(31, 36, 33, 0), rgba(31, 36, 33, 0.5)),
    url("https://images.unsplash.com/photo-1601758125946-6ec2ef64daf8?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.card-body {
  padding: 18px;
}

.card-body strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.muted,
.form-state {
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.shop-filters {
  position: sticky;
  top: 88px;
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card button {
  width: 100%;
  margin-top: 12px;
}

.detail-dock {
  margin-top: 22px;
  padding: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1fr;
  gap: 20px;
}

.relationship-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diary-section {
  background: #203a31;
  color: #ffffff;
}

.diary-section .eyebrow,
.diary-section .section-heading p,
.diary-section .muted {
  color: #c7e2d6;
}

.diary-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.diary-card {
  color: var(--ink);
}

.diary-card .card-image {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(31, 36, 33, 0), rgba(31, 36, 33, 0.42)),
    url("https://images.unsplash.com/photo-1583337130417-3346a1be7dee?auto=format&fit=crop&w=900&q=80") center/cover;
}

.checkout-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}

.cart-panel,
.checkout-panel,
.editor-panel,
.account-nav {
  padding: 22px;
}

.checkout-steps {
  align-items: stretch;
  counter-reset: step;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.checkout-steps li {
  counter-increment: step;
  flex: 1;
  min-width: 110px;
  border-bottom: 3px solid var(--forest);
  padding-bottom: 8px;
  font-weight: 800;
}

form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #334139;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  background: #ffffff;
}

.account-nav {
  display: grid;
  gap: 8px;
  align-self: start;
}

.account-nav a {
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--mist);
  font-weight: 800;
}

.account-content {
  display: grid;
  gap: 18px;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 72px);
  color: #ffffff;
  background: var(--forest);
}

@media (max-width: 1024px) {
  .hero-section,
  .feature-commerce,
  .shop-layout,
  .checkout-shell,
  .account-shell,
  .story-band {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-filters {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 20px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    grid-column: 1;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 2;
    border-radius: 8px;
    padding: 8px 12px;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 390px;
  }

  .experience-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
