:root {
  --ink: #111816;
  --muted: #69746f;
  --soft: #f4f6ef;
  --line: rgba(17, 24, 22, .1);
  --card: #ffffff;
  --lime: #c8ff45;
  --teal: #1db79f;
  --orange: #ff7a45;
  --violet: #5c3df2;
  --gold: #f2bf47;
  --shadow: 0 12px 28px rgba(17, 24, 22, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -4%, rgba(29, 183, 159, .2), transparent 28%),
    linear-gradient(180deg, #fbfaf3 0%, #eff4f1 48%, #eef0f5 100%);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.phone-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 126px 12px 90px;
}

.app-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  padding: 10px 12px 12px;
  background: rgba(251, 250, 243, .84);
  border-bottom: 1px solid rgba(17, 24, 22, .08);
  backdrop-filter: blur(18px);
}

.location-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.ghost-icon,
.cart-fab,
.close-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 22, .08);
}

.ghost-icon,
.cart-fab {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.ghost-icon svg,
.cart-fab svg,
.global-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-copy span,
.location-copy strong {
  display: block;
}

.location-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.location-copy strong {
  margin-top: 2px;
  font-size: 14px;
}

.cart-fab { position: relative; }

.cart-fab span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.global-search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 24, 22, .07);
}

.global-search svg { color: var(--muted); }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }

.page { display: none; animation: enter .24s ease both; }
.page.active { display: block; }

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

.hero-commerce {
  min-height: 474px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #111816;
  box-shadow: var(--shadow);
}

.hero-commerce img {
  width: 100%;
  height: 474px;
  object-fit: cover;
  opacity: .78;
}

.hero-commerce::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 16, .08) 0%, rgba(10, 18, 16, .38) 42%, rgba(10, 18, 16, .93) 100%),
    radial-gradient(circle at 82% 16%, rgba(200, 255, 69, .36), transparent 26%);
}

.hero-overlay {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.badge,
.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge {
  color: #111816;
  background: var(--lime);
}

.kicker {
  color: #147363;
  background: rgba(29, 183, 159, .14);
}

.hero-overlay h1,
.page-title h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 9vw, 46px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-overlay p,
.page-title p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.6;
}

.page-title {
  padding: 8px 4px 14px;
}

.page-title p {
  color: var(--muted);
}

.solid-btn,
.dark-btn,
.checkout-button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
}

.solid-btn {
  margin-top: 18px;
  color: #111816;
  background: var(--lime);
  box-shadow: 0 12px 22px rgba(165, 207, 42, .28);
}

.dark-btn {
  color: #fff;
  background: #111816;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.service-row div,
.section-block,
.real-store-card,
.subscription-panel,
.calculator,
.faq-card,
.profile-card,
.order-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(17, 24, 22, .08);
}

.service-row div {
  min-height: 76px;
  padding: 12px 10px;
}

.service-row strong,
.service-row span {
  display: block;
}

.service-row strong { font-size: 18px; }
.service-row span { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; }

.section-block,
.real-store-card,
.subscription-panel,
.calculator,
.faq-card,
.profile-card,
.order-card {
  margin-top: 12px;
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2,
.real-store-card h2,
.subscription-panel h2,
.faq-card h2,
.order-card h2,
.drawer-head h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.text-btn {
  border: 0;
  padding: 0;
  color: #147363;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.category-grid button {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(200, 255, 69, .2), transparent),
    #f8faf5;
}

.category-grid span,
.category-grid small {
  display: block;
}

.category-grid span { font-size: 17px; font-weight: 800; }
.category-grid small { margin-top: 7px; color: var(--muted); font-weight: 700; }

.horizontal-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 154px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.horizontal-products::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar { display: none; }

.mini-product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.mini-product .product-art {
  height: 116px;
}

.mini-product-body {
  padding: 10px;
}

.mini-product h3,
.product-row h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.24;
}

.mini-product strong,
.product-row strong {
  display: block;
  margin-top: 8px;
}

.real-store-card {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 22, .96), rgba(28, 87, 76, .94)),
    url("assets/hero-bowl.jpg") center / cover;
  background-blend-mode: multiply;
}

.real-store-card .kicker { color: #111816; background: var(--lime); }
.real-store-card p { color: rgba(255, 255, 255, .68); line-height: 1.55; font-size: 13px; }

.mini-pack-stack {
  position: relative;
  min-height: 188px;
}

.mini-pack-stack span {
  position: absolute;
  width: 68px;
  height: 116px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #111816, var(--teal));
  box-shadow: 0 14px 26px rgba(0, 0, 0, .25);
}

.mini-pack-stack span:nth-child(1) { right: 40px; top: 18px; transform: rotate(-9deg); }
.mini-pack-stack span:nth-child(2) { right: 12px; top: 42px; background: linear-gradient(150deg, #351f5f, #ff7a45); }
.mini-pack-stack span:nth-child(3) { right: 28px; top: 78px; background: linear-gradient(150deg, #163a54, #c8ff45); }

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 2px -12px 12px;
  padding: 0 12px 2px;
  scrollbar-width: none;
}

.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  white-space: nowrap;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}

.filter-chip.active {
  color: #111816;
  background: var(--lime);
  border-color: transparent;
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sort-row select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 9px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(17, 24, 22, .07);
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 128px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #edf4ef, #dfeeea);
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.product-art::before { width: 78px; height: 78px; right: -24px; top: 8px; }
.product-art::after { width: 56px; height: 56px; left: -18px; bottom: 10px; }

.bag-art {
  width: 72px;
  height: 108px;
  position: relative;
  z-index: 1;
  padding: 15px 10px;
  border-radius: 8px 8px 12px 12px;
  color: #fff;
  background: linear-gradient(150deg, var(--bag-a), var(--bag-b));
  box-shadow: 0 16px 26px rgba(17, 24, 22, .2);
  transform: rotate(-4deg);
}

.bag-art span,
.bag-art small {
  display: block;
  font-weight: 800;
}

.bag-art span { font-size: 13px; line-height: 1; }
.bag-art small { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 9px; }

.product-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rating-line {
  color: #926013;
  font-size: 11px;
  font-weight: 800;
}

.product-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 7px;
  color: #31554d;
  background: rgba(29, 183, 159, .12);
  font-size: 10px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: end;
  margin-top: auto;
}

.price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.add-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  color: #111816;
  background: var(--lime);
  font-size: 22px;
  font-weight: 900;
}

.voucher-list,
.bundle-grid,
.article-list,
.account-menu {
  display: grid;
  gap: 10px;
}

.voucher-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  color: #111816;
  background:
    linear-gradient(135deg, rgba(200,255,69,.28), rgba(255,255,255,.9)),
    #fff;
  border: 1px dashed rgba(17,24,22,.22);
}

.voucher-card.accent {
  background:
    linear-gradient(135deg, rgba(255,122,69,.2), rgba(255,255,255,.92)),
    #fff;
}

.voucher-card strong,
.voucher-card span {
  display: block;
}

.voucher-card strong { font-size: 20px; }
.voucher-card span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.voucher-card button { height: 38px; border: 0; border-radius: var(--radius); background: #111816; color: #fff; font-weight: 800; }

.subscription-panel {
  color: #fff;
  background:
    linear-gradient(150deg, rgba(17,24,22,.96), rgba(30,86,77,.94)),
    url("assets/paws-bowl.jpg") center / cover;
  background-blend-mode: multiply;
}

.subscription-panel .kicker { color: #111816; background: var(--lime); }

.plan-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.plan {
  min-height: 76px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
}

.plan strong { color: #fff; }
.plan.active { color: #111816; background: var(--lime); border-color: transparent; }
.plan.active strong { color: #111816; }

.clean-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
}

.clean-list li { padding-left: 18px; position: relative; }
.clean-list li::before { content: ""; width: 7px; height: 7px; position: absolute; left: 0; top: 6px; border-radius: 50%; background: var(--lime); }

.bundle-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.bundle-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calculator label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calculator input,
.calculator select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.portion-result {
  grid-column: 1 / -1;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  color: #fff;
  background: #111816;
}

.portion-result span { color: rgba(255,255,255,.68); font-size: 13px; font-weight: 700; }
.portion-result strong { font-size: 22px; }

.article-list article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.article-list img {
  width: 92px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-list strong { display: block; font-size: 14px; line-height: 1.25; }
.article-list p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.faq-card details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq-card details:first-of-type { margin-top: 10px; }
.faq-card summary { font-weight: 800; }
.faq-card p { color: var(--muted); line-height: 1.5; font-size: 13px; }

.profile-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #111816;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  font-size: 20px;
  font-weight: 900;
}

.profile-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.profile-card h1 { margin: 4px 0 4px; font-size: 26px; }
.profile-card p, .order-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 12px 0;
}

.timeline span {
  height: 8px;
  border-radius: 999px;
  background: rgba(17,24,22,.12);
}

.timeline .done { background: linear-gradient(90deg, var(--lime), var(--teal)); }

.account-menu button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  background: #fff;
}

.account-menu strong,
.account-menu span { display: block; }
.account-menu span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.cart-drawer,
.detail-sheet {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(6, 10, 9, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.cart-drawer.open,
.detail-sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel,
.detail-panel {
  width: min(100%, 456px);
  max-height: 86vh;
  overflow: auto;
  padding: 16px;
  border-radius: 12px 12px var(--radius) var(--radius);
  background: #fff;
  box-shadow: 0 -20px 48px rgba(0,0,0,.22);
  transform: translateY(22px);
  transition: transform .22s ease;
}

.cart-drawer.open .drawer-panel,
.detail-sheet.open .detail-panel { transform: translateY(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.close-button {
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.cart-empty {
  padding: 24px 10px;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--soft);
}

.cart-line small { display: block; margin-top: 4px; color: var(--muted); }

.quantity {
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.quantity button {
  height: 30px;
  border: 0;
  background: #fff;
  font-weight: 900;
}

.quantity span { text-align: center; font-size: 12px; font-weight: 800; }

.cart-summary {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.cart-summary strong { color: var(--ink); }
.checkout-button { width: 100%; color: #111816; background: var(--lime); }

.detail-hero {
  height: 210px;
  margin: -4px -4px 14px;
  border-radius: var(--radius);
}

.sku-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.sku-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.detail-list li {
  padding-left: 18px;
  position: relative;
}

.detail-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 6px;
  background: var(--teal);
}

.bottom-nav {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 460px);
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(17, 24, 22, .9);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 38px rgba(17,24,22,.28);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  border: 0;
  border-radius: var(--radius);
  color: rgba(255,255,255,.64);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button.active {
  color: #111816;
  background: var(--lime);
}

@media (min-width: 420px) {
  .product-list { grid-template-columns: 1fr; }
  .hero-commerce { min-height: 500px; }
  .hero-commerce img { height: 500px; }
}

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