/* patipaw interactive prototype. Drawn from the "Mobile 4.0" Figma frames; values from the patipaw "DS/" styles. */

/* ---------- Page wrapper (same layout as the CVM prototype) ---------- */
.ppp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 48px;
  padding: 48px;
  background: var(--panel);
  border-radius: var(--radius-md);
}
.ppp .pp-phone { width: 324px; }
.ppp-k {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.ppp-k-gap { margin-top: 32px; }
.ppp-title { margin: 0 0 8px; font-size: 22px; }
.ppp-lead { margin: 0 0 24px; color: var(--text-2); }
.ppp-scen { display: flex; flex-wrap: wrap; gap: 8px; }
.ppp-scen button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: 500 14px/1 Inter, sans-serif;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ppp-scen button:hover { border-color: #2E7D32; color: #2E7D32; }
.ppp-scen button[aria-pressed="true"] { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.ppp-scen button:focus-visible { outline: 2px solid #2E7D32; outline-offset: 2px; }
.ppp-try { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ppp-try li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.ppp-try li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EDF7EE;
  color: #276B2E;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.ppp-try b { color: var(--text); font-weight: 600; }
.ppp-note { margin: 24px 0 0; font-size: 14px; color: var(--text-3); }

/* ---------- Phone frame ---------- */
.pp-phone {
  --bw: 8px;
  position: relative;
  box-sizing: content-box;
  width: calc(100% - 2 * var(--bw));
  aspect-ratio: 393 / 852;
  border: var(--bw) solid #1f1f1f;
  border-radius: 44px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .18);
  isolation: isolate;
}

/* Home page card */
.case--green .case-media { background: linear-gradient(160deg, #8fd197 0%, #2e7d32 100%); }
.case--green .case-cat { color: #2E7D32; }
.case--green .pp-duo { width: 84%; }

/* Web + mobile pair: a browser window with the phone overlapping its corner */
.pp-duo { position: relative; width: 100%; padding-right: 12%; box-sizing: border-box; }
.pp-duo-web { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 56px rgba(20, 50, 22, .22); }
.pp-duo-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #ECE8E0; }
.pp-duo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFC9BD; }
.pp-duo-view { aspect-ratio: 1440 / 900; overflow: hidden; }
.pp-duo-view img { display: block; width: 100%; height: auto; animation: pp-duo-scroll 18s ease-in-out 2s infinite; }
@keyframes pp-duo-scroll { 0%, 12% { transform: none; } 42%, 62% { transform: translateY(-34%); } 92%, 100% { transform: none; } }
.pp-duo > [data-pp] { position: absolute; right: 0; bottom: -6%; width: 24%; }
.pp-duo .pp-phone { --bw: 7px; border-radius: 30px; box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 24px 56px rgba(20, 50, 22, .3); }
.pp-duo--sm .pp-duo-web { border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.pp-duo--sm .pp-duo-bar { gap: 3px; height: 12px; padding: 0 6px; }
.pp-duo--sm .pp-duo-bar i { width: 4px; height: 4px; }
.pp-duo--sm .pp-phone { --bw: 3px; border-radius: 14px; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); }
@media (max-width: 640px) {
  .pp-duo { padding-right: 16%; }
  .pp-duo > [data-pp] { width: 30%; bottom: -10%; }
  .pp-duo .pp-phone { --bw: 4px; border-radius: 18px; }
  .pp-duo-bar { gap: 4px; height: 16px; padding: 0 8px; }
  .pp-duo-bar i { width: 5px; height: 5px; }
}
@media (prefers-reduced-motion: reduce) { .pp-duo-view img { animation: none; } }

/* ---------- App + tokens (4.0: one green for logo and actions) ---------- */
.pp-app {
  --bg: #fff;
  --surface: #FAF8F4;
  --backdrop: #F1ECE4;
  --line: #E4DFD6;
  --text: #363636;
  --muted: #6B6B6B;
  --action: #2E7D32;
  --action-hover: #256B2A;
  --green50: #EDF7EE;
  --rating: #E9A21B;
  --r: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  position: absolute;
  top: 0;
  left: 0;
  width: 393px;
  height: 852px;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  font: 400 16px/24px Inter, system-ui, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.pp-app *, .pp-app *::before, .pp-app *::after { box-sizing: border-box; }
.pp-app h1, .pp-app h2, .pp-app h3, .pp-app p, .pp-app dl, .pp-app dd, .pp-app ul { margin: 0; padding: 0; }
/* :where keeps this reset at class weight, so later component classes win */
.pp-app :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pp-app button:focus-visible, .pp-app input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.pp-app img { display: block; }
.pp-muted { color: var(--muted); font-size: 14px; line-height: 20px; }

/* Status bar */
.pp-status {
  flex: none;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 32px;
  font-size: 15px;
  font-weight: 600;
  background: var(--bg);
}
.pp-status-r { display: flex; align-items: center; gap: 6px; }

/* Screen container + transitions */
.pp-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pp-push { animation: pp-push .34s var(--ease); }
.pp-view:not(.pp-push):not(.pp-stay) { animation: pp-fade .25s ease; }
@keyframes pp-push { from { transform: translateX(40px); opacity: 0; } }
@keyframes pp-fade { from { opacity: 0; } }
.pp-stay .pp-in { animation: none; }

.pp-in { animation: pp-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
@keyframes pp-in { from { transform: translateY(12px); opacity: 0; } }

.pp-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.pp-scroll::-webkit-scrollbar { display: none; }

/* Header: logo, then search, account, bag, menu */
.pp-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 4px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.pp-logo { color: var(--action); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; }
.pp-head-r { display: flex; }
.pp-ib { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); transition: background .15s; }
.pp-ib:hover, .pp-ib[aria-current="page"] { background: var(--backdrop); }
.pp-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--action);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}
.pp-count.bump { animation: pp-bump .4s var(--ease); }
@keyframes pp-bump { 40% { transform: scale(1.35); } }

/* Menu drawer */
.pp-drawer { position: absolute; inset: 0; z-index: 6; }
.pp-drawer[hidden] { display: none; }
.pp-scrim { position: absolute; inset: 0; width: 100%; background: rgba(30, 30, 30, .4) !important; opacity: 0; transition: opacity .28s; }
.pp-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 60px 16px 16px;
  background: var(--bg);
  box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
}
.pp-drawer.open .pp-scrim { opacity: 1; }
.pp-drawer.open .pp-panel { transform: none; }
.pp-panel-x { position: absolute; top: 8px; right: 8px; }
.pp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
}
.pp-nav svg { color: var(--muted); }
.pp-nav:hover, .pp-nav.on { color: var(--action); }
.pp-nav.on svg { color: var(--action); }

/* Toast */
.pp-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: #2B2B2B;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.pp-toast:empty { display: none; }
.pp-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.pp-toast button { flex: none; color: #9EDDA4; font-weight: 600; }

/* Buttons: 8px radius, 48px tall, sentence case */
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r);
  background: var(--action) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.pp-btn:hover { background: var(--action-hover) !important; }
.pp-btn--outline { background: var(--bg) !important; color: var(--action) !important; box-shadow: inset 0 0 0 1.5px var(--action); }
.pp-btn--outline:hover { background: var(--green50) !important; }
.pp-btn--sm { height: 40px; padding: 0 14px; font-size: 14px; }
.pp-btn--full { display: flex; width: 100%; }
.pp-btn.is-added { animation: pp-added .4s var(--ease); }
.pp-btn--outline.is-added { background: var(--green50) !important; }
.pp-btn:active, .pp-press { transform: scale(.96); }
@keyframes pp-added { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } }
.pp-link { align-self: flex-start; color: var(--action) !important; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pp-link--c { align-self: center; display: block; width: 100%; margin-top: 12px; padding: 12px 0; text-align: center; }

/* Sections + type */
.pp-sec { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; }
.pp-sec--gap { padding-top: 24px; }
.pp-sec--band { background: var(--backdrop); padding-top: 24px; }
.pp-display { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.01em; }
.pp-h1 { font-size: 24px; line-height: 32px; font-weight: 600; }
.pp-h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.pp-h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.pp-over { color: var(--action); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: -8px; }
.pp-lead, .pp-sub { color: var(--muted); }
.pp-sub { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--text); }
.pp-body { font-size: 16px; line-height: 24px; }
.pp-price { font-size: 18px; line-height: 24px; font-weight: 700; }

/* Breadcrumb */
.pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.pp-crumbs button { text-decoration: underline; text-underline-offset: 3px; }
.pp-crumbs button:hover { color: var(--action); }
.pp-crumbs span { color: var(--text); }

/* Section head: title + "View all ›" */
.pp-sechead { display: flex; align-items: center; justify-content: space-between; }
.pp-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--action) !important; font-size: 14px; font-weight: 600; }
.pp-more:hover { text-decoration: underline; }

/* Home hero */
.pp-hero { height: 240px; border-radius: var(--r); overflow: hidden; background: var(--backdrop); }
.pp-hero img { width: 100%; height: 100%; object-fit: cover; }
.pp-cta { display: grid; gap: 12px; }

/* Shop by pet: photo cards that lead into the filtered list */
.pp-pets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-pet { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.pp-pet-img { display: block; height: 140px; margin-bottom: 6px; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pp-pet-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pp-pet:hover .pp-pet-img img { transform: scale(1.04); }
.pp-pet .pp-muted { font-size: 14px; line-height: 20px; }

/* Pet filter chips on list screens */
.pp-chips { display: flex; gap: 8px; }
.pp-chip { min-height: 36px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text) !important; font-size: 14px; font-weight: 500; transition: background .15s, box-shadow .15s; }
.pp-chip:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.pp-chip[aria-current] { background: var(--action) !important; box-shadow: none; color: #fff !important; }

/* Product card */
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; align-items: stretch; }
.pp-card { display: flex; flex-direction: column; min-width: 0; }
.pp-card-hit { display: flex; flex-direction: column; gap: 4px; }
.pp-card-img { display: block; height: 180px; margin-bottom: 4px; border-radius: var(--r); overflow: hidden; background: var(--bg); }
.pp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pp-card:hover .pp-card-img img { transform: scale(1.04); }
.pp-card-name { font-size: 16px; line-height: 24px; font-weight: 500; }
.pp-sp { flex: 1; min-height: 12px; }
.pp-card .pp-btn { width: 100%; }

/* Category tools */
.pp-tools { display: flex; gap: 8px; }
.pp-count-line { color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: -4px; }

/* Reviews */
.pp-rvs { display: flex; flex-direction: column; gap: 12px; }
.pp-rv { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pp-rv p { font-size: 16px; line-height: 24px; }
.pp-rv b { font-size: 14px; line-height: 20px; font-weight: 600; }
.pp-rv .pp-muted { margin-top: -6px; }
.pp-rv-photo { width: 100%; height: 160px; border-radius: var(--r); object-fit: cover; }
.pp-stars { display: inline-flex; gap: 2px; color: var(--rating); }

/* Features */
.pp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 24px 16px 32px; }
.pp-feats > div { display: flex; flex-direction: column; align-items: flex-start; }
.pp-feat-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: var(--r); background: var(--green50); color: var(--action); }
.pp-feats h3 { margin-bottom: 4px; font-size: 16px; line-height: 24px; font-weight: 600; }

/* Delivery box */
.pp-deliv { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--green50); }
.pp-deliv > div { display: flex; gap: 12px; }
.pp-deliv svg { flex: none; margin-top: 2px; color: var(--action); }
.pp-deliv p { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.pp-deliv b { font-size: 16px; line-height: 24px; font-weight: 600; }
.pp-deliv span { color: var(--muted); }

/* Product page */
.pp-pdp-img { height: 340px; border-radius: var(--r); overflow: hidden; background: var(--bg); }
.pp-pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-pdp-img + .pp-h1 { margin-bottom: -12px; }
.pp-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.pp-rating span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.pp-buyrow { display: flex; gap: 12px; }
.pp-buyrow .pp-btn { flex: 1; }
.pp-buyrow .pp-stepper { height: 48px; }
.pp-details { border-top: 1px solid var(--line); margin-top: -8px; }
.pp-details div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.pp-details dt { color: var(--muted); }

/* Footer: green50 */
.pp-foot { display: flex; flex-direction: column; gap: 12px; padding: 32px 16px; background: var(--green50); font-size: 14px; line-height: 20px; }
.pp-foot-cols { display: flex; gap: 48px; margin-bottom: 12px; }
.pp-foot-cols > div { display: flex; flex-direction: column; align-items: flex-start; }
.pp-foot-cols h2 { margin-bottom: 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.pp-foot-cols button { color: var(--muted); font-size: 16px; line-height: 40px; }
.pp-foot-cols button:hover { color: var(--action); }
.pp-foot-lead { font-size: 16px; line-height: 24px; font-weight: 500; }
.pp-foot .pp-copy { margin-top: 12px; color: var(--muted); }
.pp-signed { display: flex; align-items: center; gap: 6px; height: 48px; color: var(--action) !important; font-weight: 600; }

/* Form fields: visible label above every input */
.pp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.pp-field input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #BDB7AC;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px Inter, system-ui, sans-serif;
}
.pp-pw { position: relative; display: block; }
.pp-pw input { padding-right: 48px; }
.pp-pw-eye { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
.pp-pw-eye[aria-pressed="true"] { color: var(--action); }

/* Boxes: sign in, new customer, order summary */
.pp-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pp-login { gap: 16px; }
.pp-err { color: #B3261E; font-size: 14px; line-height: 20px; }
.pp-err:empty { display: none; }
.pp-perks ul { display: grid; gap: 8px; margin-top: 8px; list-style: none; }
.pp-perks li { display: flex; align-items: center; gap: 8px; }
.pp-perks svg { color: var(--action); }

/* About */
.pp-about { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pp-about-img { height: 200px; border-radius: var(--r); overflow: hidden; }
.pp-about-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-about-cta { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; padding: 24px 16px; border-radius: var(--r); background: var(--green50); }

/* Bag */
.pp-line { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pp-line img { flex: none; width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; }
.pp-line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-line h3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.pp-line-row { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.pp-line-sum { flex: none; font-size: 16px; line-height: 24px; }
.pp-stepper { display: inline-flex; align-items: center; height: 40px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
.pp-stepper button { display: grid; place-items: center; width: 40px; height: 100%; border-radius: var(--r); transition: background .15s; }
.pp-stepper button:hover:not(:disabled) { background: var(--backdrop); }
.pp-stepper button:disabled { color: #C9C4BA; cursor: default; }
.pp-stepper output { min-width: 24px; font-size: 16px; font-weight: 600; text-align: center; }
.pp-sum dl { display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.pp-sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.pp-sum dt { color: var(--muted); }
.pp-sum .pp-total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 18px; line-height: 24px; font-weight: 700; }
.pp-sum .pp-total dt { color: var(--text); }
.pp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; color: var(--muted); text-align: center; }
.pp-empty > svg { color: var(--action); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pp-app *, .pp-app *::before, .pp-app *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ppp { grid-template-columns: 1fr; justify-items: center; gap: 32px; padding: 32px 16px; }
  .ppp-side { width: 100%; max-width: 420px; }
}
@media (max-width: 400px) {
  .ppp .pp-phone { --bw: 6px; width: calc(100% - 12px); max-width: 308px; border-radius: 36px; }
}
