/* PawVital / 毛孩健坊 — Demo store styles */
:root {
  --cream: #F7F1E8;
  --cream-dark: #EDE4D6;
  --sand: #E8DCC8;
  --earth: #8B6F47;
  --earth-deep: #5C4A32;
  --charcoal: #2C2620;
  --ink: #3D3429;
  --muted: #7A6F62;
  --sage: #7A9E7E;
  --sage-deep: #5F8A64;
  --sage-soft: #E4EFE5;
  --sage-mist: #F0F6F1;
  --terracotta: #C4785A;
  --terracotta-soft: #F5E4DC;
  --honey: #D4A574;
  --honey-soft: #F8F0E4;
  --white: #FFFcf8;
  --border: rgba(92, 74, 50, 0.12);
  --shadow: 0 10px 32px rgba(44, 38, 32, 0.07);
  --shadow-lg: 0 20px 56px rgba(44, 38, 32, 0.11);
  --shadow-card: 0 4px 18px rgba(44, 38, 32, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif TC", Georgia, "Songti TC", serif;
  --max: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--sage-mist), transparent 55%),
    var(--cream);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--earth); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Demo banner */
.demo-banner {
  background: var(--earth-deep);
  color: var(--cream);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}
.demo-banner strong { color: #F0D9A8; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img, .logo svg { height: 48px; width: auto; }
.nav-desktop { display: none; gap: 0.15rem; align-items: center; }
.nav-desktop a {
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  padding: 0.45rem 0.7rem; border-radius: 999px;
}
.nav-desktop a:hover, .nav-desktop a.active {
  background: var(--sage-soft); color: var(--sage-deep);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; font-size: 0.78rem; font-weight: 600;
}
.lang-switch a {
  padding: 0.35rem 0.65rem; color: var(--muted); background: transparent;
}
.lang-switch a.active { background: var(--sage); color: white; }
.cart-btn {
  position: relative; border: none; background: var(--white);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.45rem 0.85rem; cursor: pointer; font: inherit;
  color: var(--ink); display: inline-flex; align-items: center; gap: 0.35rem;
}
.cart-btn:hover { border-color: var(--sage); }
.cart-count {
  background: var(--terracotta); color: white; font-size: 0.72rem;
  font-weight: 700; min-width: 1.25rem; height: 1.25rem;
  border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 0.3rem;
}
.menu-toggle {
  display: inline-flex; border: 1px solid var(--border); background: var(--white);
  border-radius: 10px; padding: 0.5rem 0.65rem; cursor: pointer; font: inherit;
}
.nav-mobile {
  display: none; flex-direction: column; padding: 0.5rem 0 1rem; gap: 0.25rem;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.7rem 0.5rem; color: var(--ink); font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--sage-soft); }
@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--sage); color: white; box-shadow: 0 4px 14px rgba(122, 158, 126, 0.35);
}
.btn-primary:hover { background: var(--sage-deep); color: white; }
.btn-secondary {
  background: var(--white); color: var(--ink); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--sage); color: var(--sage-deep); }
.btn-accent {
  background: var(--terracotta); color: white;
  box-shadow: 0 4px 14px rgba(196, 120, 90, 0.3);
}
.btn-accent:hover { background: #B26548; color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none;
}

/* Hero — original PawVital warm wellness look */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 95% 0%, rgba(122, 158, 126, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 5% 90%, rgba(212, 165, 116, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 70%, rgba(196, 120, 90, 0.1), transparent 50%),
    linear-gradient(180deg, var(--sage-mist) 0%, var(--cream) 48%, var(--cream) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: auto -10% -20% 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(122,158,126,0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: 2.75rem; align-items: center; position: relative;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.25rem; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,252,248,0.85); color: var(--sage-deep);
  border: 1px solid rgba(122,158,126,0.25);
  font-size: 0.78rem; font-weight: 700; padding: 0.4rem 0.95rem;
  border-radius: 999px; margin-bottom: 1.15rem; letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(95,138,100,0.08);
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  max-width: 12em;
}
.hero-lead {
  font-size: 1.1rem; color: var(--muted); max-width: 34em;
  line-height: 1.75;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat strong {
  display: block; font-family: var(--font-serif);
  font-size: 1.35rem; color: var(--charcoal); line-height: 1.2;
}
.hero-stat span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.hero-card {
  background: rgba(255,252,248,0.92);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
  border: 1px solid rgba(92,74,50,0.1);
  backdrop-filter: blur(8px);
}
.hero-visual {
  aspect-ratio: 1; border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,252,248,0.7), transparent 45%),
    linear-gradient(155deg, var(--sage-soft) 0%, var(--honey-soft) 42%, var(--terracotta-soft) 78%, var(--sand));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute; width: 140%; height: 50%; bottom: -15%; left: -20%;
  background: radial-gradient(ellipse, rgba(92,74,50,0.06), transparent 70%);
}
.hero-visual .paw-big {
  font-size: clamp(4.5rem, 10vw, 6.5rem); opacity: 0.9;
  filter: drop-shadow(0 8px 20px rgba(92,74,50,0.12));
  z-index: 1;
}
.hero-float {
  position: absolute; z-index: 2;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.45rem 0.85rem;
  font-size: 0.75rem; font-weight: 700; color: var(--earth-deep);
  box-shadow: var(--shadow-card);
}
.hero-float.a { top: 12%; left: 8%; }
.hero-float.b { bottom: 14%; right: 8%; background: var(--sage-soft); color: var(--sage-deep); }
.trust-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-top: 1rem;
}
@media (min-width: 600px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-pill {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.9rem 0.75rem; text-align: center; font-size: 0.82rem; font-weight: 600;
  color: var(--earth-deep);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.trust-pill:hover { border-color: rgba(122,158,126,0.45); transform: translateY(-2px); }
.trust-pill span { display: block; font-size: 1.3rem; margin-bottom: 0.3rem; }

/* Sections */
.section { padding: 3.75rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(237,228,214,0.65), var(--cream-dark));
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1.15rem; margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); margin: 0;
  letter-spacing: -0.015em;
}
.section-head p { margin: 0.45rem 0 0; color: var(--muted); max-width: 42em; font-size: 0.98rem; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.75rem; }
.chip {
  border: 1px solid var(--border); background: rgba(255,252,248,0.9); color: var(--ink);
  border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.84rem;
  font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.chip:hover { border-color: var(--sage); color: var(--sage-deep); transform: translateY(-1px); }
.chip.active {
  background: var(--sage); color: white; border-color: var(--sage);
  box-shadow: 0 4px 12px rgba(122,158,126,0.28);
}

/* Product grid */
.product-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(122, 158, 126, 0.28);
}
.product-media {
  aspect-ratio: 1; background:
    linear-gradient(160deg, var(--honey-soft), var(--sage-mist) 60%, var(--sand));
  display: grid; place-items: center; position: relative;
  text-decoration: none; overflow: hidden;
}
.product-media.has-photo { background: var(--sage-mist); }
.product-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 1rem;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media .illus {
  width: 72%; height: 72%; border-radius: 50%;
  display: grid; place-items: center; font-size: 3rem;
}
.product-tags {
  position: absolute; top: 0.85rem; left: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.35rem; z-index: 2;
}
.tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  background: rgba(255,252,248,0.95);
  color: var(--earth-deep);
  box-shadow: 0 2px 8px rgba(44,38,32,0.06);
}
.tag.dog { color: #5A6B8A; }
.tag.cat { color: #8A5A72; }
.tag.both { color: var(--sage-deep); }
.product-body { padding: 1.2rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: 0.72rem; font-weight: 700; color: var(--sage-deep);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.product-body h3 {
  font-size: 1.02rem; margin: 0 0 0.45rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em; line-height: 1.35;
}
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--sage-deep); }
.product-benefit {
  font-size: 0.86rem; color: var(--muted); flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.source-badge {
  font-size: 0.7rem; color: var(--muted); margin-bottom: 0.75rem;
  opacity: 0.85;
}
.product-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-top: 0.85rem; border-top: 1px dashed rgba(92,74,50,0.12);
}
.price {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700; color: var(--charcoal);
}
.price small { font-size: 0.75rem; font-weight: 600; color: var(--muted); font-family: var(--font-sans); }
.product-card .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* Product detail */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sage-deep); }
.pd-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 860px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.pd-gallery {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 1; display: grid; place-items: center; box-shadow: var(--shadow);
}
.pd-gallery .illus { width: 70%; height: 70%; border-radius: 50%; display: grid; place-items: center; font-size: 5rem; }
.pd-info .product-cat { margin-bottom: 0.5rem; }
.pd-info h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.pd-price { font-size: 1.6rem; font-weight: 800; margin: 0.75rem 0 1rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.qty-wrap {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: 999px; background: var(--white); overflow: hidden;
}
.qty-wrap button {
  border: none; background: transparent; width: 2.4rem; height: 2.6rem;
  cursor: pointer; font-size: 1.1rem; color: var(--ink);
}
.qty-wrap input {
  width: 2.5rem; border: none; text-align: center; font: inherit; font-weight: 700;
  background: transparent;
}
.pd-specs {
  margin-top: 1.5rem; background: var(--cream-dark); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; font-size: 0.92rem;
}
.pd-specs dt { font-weight: 700; color: var(--earth-deep); margin-top: 0.55rem; }
.pd-specs dd { margin: 0.15rem 0 0; color: var(--muted); }
.disclaimer-box {
  margin-top: 1.5rem; padding: 1rem 1.15rem; border-left: 4px solid var(--terracotta);
  background: var(--terracotta-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem; color: var(--earth-deep);
}

/* About / Trust / FAQ / Contact */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.75rem; }
.feature-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.45rem; box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 2.75rem; height: 2.75rem; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--sage-soft); margin-bottom: 0.85rem;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.faq-list { display: grid; gap: 0.75rem; max-width: 720px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--sage); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.15rem 1.1rem; color: var(--muted); font-size: 0.95rem; }

.contact-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card, .form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.contact-row { margin-bottom: 1rem; }
.contact-row .label { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-row .value { font-size: 1.05rem; font-weight: 600; }
.placeholder-tag {
  display: inline-block; background: #FFF3CD; color: #7A5B00; font-size: 0.72rem;
  font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 4px; margin-left: 0.35rem;
  vertical-align: middle;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; background: var(--cream);
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--sage); outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(44,38,32,0.4); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(100%, 400px);
  background: var(--cream); z-index: 210; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.2rem; }
.cart-close {
  border: none; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--ink);
}
.cart-items { flex: 1; overflow: auto; padding: 1rem 1.25rem; }
.cart-empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }
.cart-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border); align-items: start;
}
.cart-line-thumb {
  width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.4rem;
}
.cart-line h4 { margin: 0 0 0.2rem; font-size: 0.92rem; font-family: var(--font-sans); }
.cart-line .line-meta { font-size: 0.8rem; color: var(--muted); }
.cart-line-actions { display: flex; flex-direction: column; align-items: end; gap: 0.35rem; }
.cart-line-actions button {
  border: none; background: transparent; color: var(--terracotta); cursor: pointer;
  font-size: 0.78rem; font-weight: 600;
}
.cart-footer {
  padding: 1.15rem 1.25rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--white);
}
.cart-total {
  display: flex; justify-content: space-between; font-weight: 800;
  font-size: 1.1rem; margin-bottom: 1rem;
}

/* Checkout */
.checkout-layout {
  display: grid; gap: 1.5rem;
}
@media (min-width: 860px) {
  .checkout-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.checkout-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.checkout-panel h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.stripe-note {
  background: #FFF8E6; border: 1px dashed #D4A017; border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; font-size: 0.88rem; margin-bottom: 1.25rem; color: #6B5300;
}
.order-summary-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.order-summary-total {
  display: flex; justify-content: space-between; font-weight: 800;
  font-size: 1.15rem; margin-top: 0.85rem;
}
.pay-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.4em; }
.pay-status.error { color: #B42318; }
.pay-status.ok { color: var(--sage-deep); }

/* Footer */
.site-footer {
  background: var(--earth-deep); color: #E8DCC8; padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: var(--cream); font-size: 0.95rem; font-family: var(--font-sans);
  letter-spacing: 0.04em; margin-bottom: 0.85rem;
}
.site-footer a { color: #D4C4A8; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.85; max-width: 28em; }
.footer-bottom {
  border-top: 1px solid rgba(232, 220, 200, 0.2); padding-top: 1.25rem;
  font-size: 0.8rem; opacity: 0.8; display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between;
}
.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--charcoal); color: white; padding: 0.75rem 1.25rem;
  border-radius: 999px; font-size: 0.9rem; font-weight: 600; z-index: 300;
  transition: transform 0.25s; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Page hero small */
/* page-hero-enhanced */
.page-hero {
  padding: 2.75rem 0 1.75rem;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(122,158,126,0.16), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(212,165,116,0.14), transparent 50%),
    linear-gradient(180deg, var(--sage-mist), var(--cream));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--muted); max-width: 44em; margin: 0;
  font-size: 1.02rem; line-height: 1.7;
}
/* page-hero-enhanced */
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 0.4rem; }
/* page-hero-enhanced */
.page-hero p { color: var(--muted); margin: 0; max-width: 40em; }

.illus-joint { background: linear-gradient(145deg, #D8E8DA, #B8D4BC); }
.illus-coat { background: linear-gradient(145deg, #F0DCC8, #E8C4A8); }
.illus-gut { background: linear-gradient(145deg, #D8E4F0, #B8CCE0); }
.illus-calm { background: linear-gradient(145deg, #E8D8F0, #D0B8E0); }
.illus-immune { background: linear-gradient(145deg, #F0E0C8, #E0C898); }
.illus-dental { background: linear-gradient(145deg, #D8F0EC, #B0DCD4); }
.illus-senior { background: linear-gradient(145deg, #E8E0D0, #D0C4B0); }
.illus-grow { background: linear-gradient(145deg, #F0E8D0, #E8D8A8); }

/* Product photos */
.product-media img, .pd-gallery img, .cart-line-thumb img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.product-media { background: #fff; padding: 0.75rem; }
.product-media .illus { display: none; }
.product-media.has-photo .illus { display: none; }
.pd-gallery { padding: 1.25rem; background: #fff; }
.pd-gallery .illus { display: none; }
.cart-line-thumb { overflow: hidden; background: #fff; border: 1px solid var(--border); }
.cart-line-thumb img { object-fit: contain; }
.source-badge {
  font-size: 0.68rem; color: var(--muted); margin-top: 0.35rem;
}
.pagination {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  align-items: center; margin-top: 2rem;
}
.pagination button, .pagination span {
  min-width: 2.4rem; height: 2.4rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white);
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink);
}
.pagination button:hover:not(:disabled) { border-color: var(--sage); color: var(--sage-deep); }
.pagination button.active { background: var(--sage); color: #fff; border-color: var(--sage); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.catalog-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.logo-mark { height: 48px; width: auto; }
.brand-lockup { display: flex; align-items: center; gap: 0.65rem; }
.brand-lockup .logo-icon { width: 44px; height: 44px; }
.search-bar {
  width: 100%; max-width: 420px; margin-bottom: 1rem;
  padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  font: inherit; background: var(--white);
}


/* Soft brand accents */
.btn-primary { letter-spacing: 0.02em; }
.logo img, .logo svg { transition: transform 0.25s var(--ease); }
.logo:hover img, .logo:hover svg { transform: scale(1.03); }
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; margin-bottom: 0.5rem;
}
#catalog-search, .catalog-search {
  border-radius: 999px !important;
  border: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
  background: var(--white);
  min-width: min(100%, 260px);
  font: inherit;
}
#catalog-search:focus, .catalog-search:focus {
  outline: 2px solid var(--sage); outline-offset: 1px;
}
