/* =========================================================
   PipQo — Everyday Senior Dog Home Care
   Shared design system (mobile-first)
   Brand line: Every Extra Step Matters.
   Palette: deep forest green · warm cream · ink · muted amber
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --forest:        #2f4538;
  --forest-deep:   #24372c;
  --forest-soft:   #3d5748;
  --forest-tint:   #e7ede6;
  --cream:         #f7f2e8;
  --cream-deep:    #efe7d6;
  --paper:         #fffdf7;
  --ink:           #232a25;
  --ink-soft:      #46504a;
  --muted:         #646e63;
  --line:          #e2dac9;
  --line-soft:     #ece5d6;
  --amber:         #b97a2e;
  --amber-deep:    #935e1f;
  --amber-tint:    #f5e9d6;
  --inkblue:       #38494f;
  --clay:          #b08d68;
  --danger:        #a23b32;
  --success:       #3c6b4a;

  /* Typography */
  --font-serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Source Sans 3", "Public Sans", -apple-system, BlinkMacSystemFont,
                "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Spacing & shape */
  --container: 1140px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(35,42,37,.06), 0 2px 8px rgba(35,42,37,.05);
  --shadow:    0 6px 24px rgba(35,42,37,.09);
  --shadow-lg: 0 18px 50px rgba(35,42,37,.14);

  /* Header */
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-deep);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
figure { margin: 0; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(34px, 5vw, 56px); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: #eef2ec; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--cream-deep { background: var(--cream-deep); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: .9rem;
}
.section--forest .eyebrow { color: #d8b27a; }
.lead { font-size: 1.13rem; color: var(--ink-soft); }
.section--forest .lead { color: #d8e0d5; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.28rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .1s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); color: #fff; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); color: #fff; }
.btn-outline {
  background: transparent; color: var(--forest); border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest-deep); }
.btn-light:hover { background: var(--cream); color: var(--forest-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.06rem; }
.btn-sm { padding: .6em 1.05em; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,242,232,.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--forest-deep);
}
.brand-tag {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: .5em .8em;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .96rem;
}
.nav-links a:hover { background: var(--forest-tint); color: var(--forest-deep); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--forest-deep); background: var(--forest-tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--forest-deep);
}
.icon-btn:hover { background: var(--forest-tint); text-decoration: none; }
.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: inline-flex; }
/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(20,28,23,.5); }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--cream);
  padding: 22px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-menu__head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu nav a {
  display: block;
  padding: .8em .4em;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--forest-deep);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu nav a:hover { text-decoration: none; color: var(--amber-deep); }
.mobile-menu__foot { margin-top: 22px; font-size: .9rem; color: var(--muted); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 1.8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.22rem; margin-bottom: .35em; }
.card__text { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card__link {
  margin-top: 14px;
  font-weight: 700;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: 6px;
}
.card:hover .card__link { color: var(--amber-deep); }

/* Need / category card with icon */
.need-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  height: 100%;
  color: var(--ink);
}
.need-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); }
.need-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--forest-tint);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.need-card h3 { font-size: 1.25rem; }
.need-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.need-card .card__link { margin-top: 8px; }

/* Feature / proof tile */
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  height: 100%;
}
.tile__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--amber-tint); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tile h3 { font-size: 1.16rem; }
.tile p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .35em .8em;
  border-radius: 999px;
  background: var(--forest-tint);
  color: var(--forest-deep);
}
.pill--amber { background: var(--amber-tint); color: var(--amber-deep); }
.pill--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.callout {
  display: flex;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.callout__icon { flex: 0 0 auto; color: var(--amber-deep); }
.callout p:last-child { margin: 0; }
.callout--forest { background: var(--forest-tint); border-left-color: var(--forest); }
.callout--danger { border-left-color: var(--danger); background: #f8ecea; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: .7em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background-color: var(--forest-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4538' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.crosslist li::before {
  background-color: #f3e0dd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a23b32' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1.4em; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: .95rem;
  min-width: 480px;
}
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th { background: var(--forest); color: #fff; font-weight: 700; border-bottom: none; white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: #faf6ee; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .center { text-align: center; }

/* ---------- FAQ accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 20px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--forest-deep);
}
.accordion__q:hover { background: #faf6ee; }
.accordion__icon { flex: 0 0 auto; transition: transform .2s ease; color: var(--amber-deep); }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__a { display: none; padding: 0 20px 18px; color: var(--ink-soft); }
.accordion__item.is-open .accordion__a { display: block; }
.accordion__a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .94rem; margin-bottom: 6px; color: var(--forest-deep); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.input, select.input, textarea.input {
  width: 100%;
  padding: .8em .95em;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-tint);
}
textarea.input { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.checkbox-field input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form .input { flex: 1 1 240px; }
.signup-form .btn { flex: 0 0 auto; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding-block: 18px 4px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.pdp { display: grid; gap: clamp(26px, 4vw, 48px); padding-bottom: 40px; }
.pdp-gallery__main {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line);
}
.pdp-gallery__main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pdp-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-gallery__thumbs button {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--line); background: var(--paper); padding: 0;
}
.pdp-gallery__thumbs button.is-active { border-color: var(--forest); }
.pdp-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-buy {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
  align-self: start;
}
.pdp-price { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--forest-deep); margin-bottom: 4px; }
.pdp-price .was { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.pdp-meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--ink-soft); margin: 14px 0; }
.pdp-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.variant-group { margin: 18px 0; }
.variant-group > legend, .variant-label {
  font-weight: 700; font-size: .94rem; color: var(--forest-deep); margin-bottom: 10px; display: block;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 9px; }
.variant-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-options label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px;
  padding: .6em 1.05em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700; font-size: .95rem;
  cursor: pointer;
}
.variant-options input:checked + label { background: var(--forest); color: #fff; border-color: var(--forest); }
.variant-options input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.qty-stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; color: var(--forest-deep); }
.qty-stepper input { width: 48px; height: 44px; border: 0; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-buy .btn { margin-top: 6px; }
.pdp-assurances { margin-top: 18px; display: grid; gap: 10px; font-size: .9rem; }
.pdp-assurances div { display: flex; gap: 10px; align-items: flex-start; }
.pdp-assurances svg { flex: 0 0 auto; margin-top: 2px; color: var(--forest); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .pdp-buy { position: sticky; top: calc(var(--header-h) + 18px); }
}

/* Sticky mobile add-to-cart */
.sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,253,247,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(35,42,37,.1);
}
.sticky-atc__info { min-width: 0; margin-right: auto; }
.sticky-atc__info strong { display: block; font-size: .82rem; line-height: 1.2; color: var(--forest-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__info span { font-size: .92rem; font-weight: 700; color: var(--amber-deep); }
.sticky-atc .btn { padding: .8em 1.3em; }
@media (max-width: 899px) {
  .sticky-atc { display: flex; }
  body.has-sticky-atc { padding-bottom: 76px; }
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; gap: 28px; align-items: start; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.cart-line:last-child { border-bottom: none; }
.cart-line__thumb { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-weight: 700; color: var(--forest-deep); font-size: .98rem; }
.cart-line__variant { font-size: .85rem; color: var(--muted); }
.cart-line__remove { background: none; border: 0; color: var(--danger); font-size: .82rem; padding: 4px 0; margin-top: 6px; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line__price { font-weight: 700; }
.cart-summary {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.cart-summary h2 { font-size: 1.35rem; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: .97rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; color: var(--forest-deep); }
.summary-row.total span:last-child { font-family: var(--font-serif); }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.5fr .9fr; }
  .cart-summary { position: sticky; top: calc(var(--header-h) + 18px); }
}
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { margin: 0 auto 20px; color: var(--clay); }

/* Checkout */
.checkout-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 940px) {
  .checkout-grid { grid-template-columns: 1.4fr .9fr; }
  .checkout-review { position: sticky; top: calc(var(--header-h) + 18px); }
}
.order-review-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.order-review-line .qty-pill {
  display: inline-flex; min-width: 22px; height: 22px; border-radius: 999px;
  background: var(--forest-tint); color: var(--forest-deep); font-size: .8rem;
  align-items: center; justify-content: center; margin-right: 8px; font-weight: 700;
}
.payment-option {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 12px; background: #fff;
}
.payment-option.is-selected { border-color: var(--forest); background: var(--forest-tint); }
.payment-option label { display: flex; gap: 12px; align-items: center; font-weight: 700; cursor: pointer; }
.payment-option .payment-body { margin-top: 12px; padding-left: 30px; }
.payment-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Reviews / story ---------- */
.story-banner {
  border: 1px dashed var(--clay);
  border-radius: var(--radius);
  background: var(--amber-tint);
  padding: 28px;
  text-align: center;
}
.story-banner p:last-child { margin-bottom: 0; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.review-card__who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest-tint); color: var(--forest-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-serif);
}
.review-card__who strong { display: block; color: var(--forest-deep); }
.review-card__who span { font-size: .82rem; color: var(--muted); }
.review-card p { font-size: .96rem; color: var(--ink-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Guides ---------- */
.guide-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.guide-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); }
.guide-card__media { aspect-ratio: 16/9; overflow: hidden; }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.guide-card__meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.guide-card h2, .guide-card h3 { font-size: 1.22rem; }
.guide-card p { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 30px; }
.toc h2 { font-size: 1.05rem; }
.toc ol { margin: 0; columns: 2; column-gap: 30px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- Fit guide ---------- */
.measure-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.measure-panel svg { margin: 0 auto 16px; max-width: 280px; }
.measure-panel h3 { font-size: 1.15rem; }
.measure-panel p { font-size: .92rem; color: var(--ink-soft); text-align: left; }
.size-rec { background: var(--forest-tint); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: #cdd6cb;
  padding: clamp(48px, 6vw, 72px) 0 28px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #cdd6cb; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .55em; font-size: .94rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: .92rem; color: #b6c0b4; margin: 14px 0 0; max-width: 30em; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,.1); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: .84rem; color: #9fab9d; justify-content: space-between;
}
.footer-pay { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-pay .pay-chip {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.1); color: #e7ede5;
  padding: .3em .65em; border-radius: 5px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 120%);
  z-index: 300;
  background: var(--forest-deep); color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-lg);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast a { color: #f0d3a6; font-weight: 700; }
.toast svg { flex: 0 0 auto; }

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.ai-note {
  font-size: .8rem; color: var(--muted); font-style: italic;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* =========================================================
   PipQo Premium Layer v1 — 2026-10-18
   安静奢华打磨层：字体节奏 / 卡片质感 / 微交互 / 信任可视化
   仅叠加在 pipqo-child 既有设计系统之上，全部使用既有变量
   ========================================================= */

/* ---------- 1. 字体与阅读节奏 ---------- */
body { font-optical-sizing: auto; }
h1, h2 { letter-spacing: -.022em; }
.hero h1 { font-weight: 600; letter-spacing: -.028em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.prose p, .entry-content p { max-width: 68ch; }
.eyebrow { letter-spacing: .22em !important; font-weight: 700; }
::selection { background: var(--amber-tint); color: var(--forest-deep); }

/* ---------- 2. 按钮：克制的浮起微交互 ---------- */
.btn, .button, .single_add_to_cart_button, .checkout-button, .wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease !important;
}
.btn-primary:hover, .button:hover, .single_add_to_cart_button:hover, .checkout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(36,55,44,.22);
}
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(185,122,46,.28); }
.btn-outline:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(36,55,44,.14); }
.btn:active, .button:active { transform: translateY(0); }

/* ---------- 3. 卡片与图片：纸感 + 呼吸 ---------- */
.tile, .need-card, .card, .woocommerce ul.products li.product {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile:hover, .need-card:hover, .card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(35,42,37,.10);
  border-color: var(--line) !important;
}
.woocommerce ul.products li.product img { transition: transform .4s ease; }
.woocommerce ul.products li.product:hover img { transform: scale(1.03); }
.card__media img, .split__media img, .hero__grid img {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(35,42,37,.14);
}

/* ---------- 4. 区块节奏与细节 ---------- */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section-head { margin-bottom: 34px; }
.section-head h2 { position: relative; }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
blockquote {
  border-left: 3px solid var(--amber);
  background: var(--paper);
  padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink-soft);
}
.callout { border-radius: var(--radius); }
.accordion__item { border-radius: var(--radius-sm); overflow: hidden; }
.accordion__q { transition: background .15s ease; }
.accordion__q:hover { background: var(--forest-tint); }

/* ---------- 5. 页头：更轻的悬浮 ---------- */
.site-header { box-shadow: 0 1px 0 rgba(226,218,201,.6); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .28em;
  height: 2px; border-radius: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { background: transparent; }

/* ---------- 6. 产品页：信任条 + 桌面留白 ---------- */
.pq-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 18px 0 6px; padding: 14px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.pq-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pq-trust svg { color: var(--forest); flex: none; }
.woocommerce div.product form.cart { margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { letter-spacing: -.01em; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
@media (min-width: 1024px) {
  .woocommerce div.product .summary { padding-top: 8px; }
  /* 长描述区块桌面收窄，消除失控留白 */
  div.product .section .container, div.product .prose { max-width: 920px; }
  div.product .section { padding-block: clamp(30px, 4vw, 48px); }
}

/* ---------- 7. 首页氛围图组件 ---------- */
.pq-fig { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 44px rgba(35,42,37,.13); }
.pq-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pq-fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,37,0) 62%, rgba(35,42,37,.18));
  pointer-events: none;
}
.pq-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .pq-duo { grid-template-columns: 1fr; } }

/* ---------- 8. 评价区钩子 ---------- */
.pq-review-hook {
  background: var(--amber-tint); border: 1px dashed var(--amber);
  border-radius: var(--radius); padding: 18px 22px; margin: 18px 0;
  font-size: .98rem; color: var(--ink-soft);
}
.pq-review-hook strong { color: var(--forest-deep); }

/* ---------- 9. 表单与焦点 ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px;
}
.input, input[type=email], input[type=text], input[type=tel], textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, input[type=email]:focus, input[type=text]:focus, textarea:focus {
  border-color: var(--forest) !important; box-shadow: 0 0 0 3px var(--forest-tint);
}

/* ---------- 10. 页脚 ---------- */
.site-footer .brand-name { letter-spacing: .04em; }
.footer-bottom { letter-spacing: .02em; }

/* ---------- 11. 滚动细腻度 ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .need-card, .card, .woocommerce ul.products li.product { transition: none !important; }
}

/* ---------- 12. 补强：产品页元信息对比度 ---------- */
.woocommerce div.product .product_meta {
  color: var(--ink-soft) !important;
  font-size: .9rem;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.woocommerce div.product .product_meta a { color: var(--forest); text-decoration: underline; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
/* 评价钩子区域内的文字 */
.pq-review-hook a { color: var(--amber-deep); text-decoration: underline; }
/* 移动端图片圆角 */
@media (max-width: 720px) {
  .pq-fig img, .card__media img, .split__media img { border-radius: var(--radius); }
  .pq-duo { gap: 12px; }
}

/* ---------- 13. 修正 Kadence 对 meta span 的浅色覆盖 ---------- */
.woocommerce div.product .product_meta > span {
  color: var(--ink-soft) !important;
  font-size: .9rem; font-weight: 400;
}
.woocommerce div.product .product_meta > span a { color: var(--forest) !important; }
