/* =========================================================
   3FTERS — product page (listing.html) + checkout (checkout.html)
   Loaded AFTER main.css and auth.css. Only touches classes
   used on those two pages, so cart/orders/etc. are unaffected.
   ========================================================= */

:root {
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(90, 58, 34, 0.12);
  --card-shadow: 0 10px 30px rgba(90, 58, 34, 0.10);
  --soft-brown: #f4ede6;
  --line: #eadfd5;
  --muted: #7a6c61;
  --star: #e8a33d;
  --ok: #1f7a46;
  --ok-bg: #e7f6ec;
}

.pdp, .co-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* ---------- shared panel ---------- */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =========================================================
   PRODUCT PAGE
   ========================================================= */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--dark-brown); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.crumbs #crumbTitle {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* gallery */
.gallery-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--soft-brown);
  box-shadow: var(--card-shadow);
  touch-action: pan-y;
}
.gallery-stage .main-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-brown);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.gal-arrow:hover { background: var(--brown); color: #fff; }
.gal-arrow.prev { left: 12px; }
.gal-arrow.next { right: 12px; }
.gallery-stage.has-many .gal-arrow { display: flex; }
.gal-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 15, 15, .6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: none;
}
.gallery-stage.has-many .gal-count { display: block; }

.pdp .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp .thumb {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--soft-brown);
  transition: border-color .2s, transform .2s;
}
.pdp .thumb.active { border-color: var(--dark-brown); }
.pdp .thumb:hover { transform: translateY(-2px); border-color: var(--brown); }

/* info column */
.pdp-info { padding-top: 4px; }
.pdp-info .listing-badges { margin-bottom: 10px; }
.pdp-info h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #1b130e;
}
.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.stars { color: var(--star); letter-spacing: 1px; font-size: 16px; }
.stars .off { color: #d9cfc6; }

.pdp-info .listing-price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.pdp-info .price-old { color: #9a8e84; text-decoration: line-through; font-weight: 400; font-size: 18px; }
.pdp-info .sale-badge {
  background: var(--brown);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .5px;
}

.pdp-short {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a3f37;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.opt-label { font-size: 14px; font-weight: 700; color: #1b130e; min-width: 78px; }
.size-chip {
  min-width: 52px;
  text-align: center;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--dark-brown);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}
.cond-value { font-weight: 600; font-size: 14px; text-transform: capitalize; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--dark-brown);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin: 2px 0 14px;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #bfe5cc;
}
.stock-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-pill.sold { background: #fff1e6; color: #9a3412; border-color: #fdba74; }

.pdp-info .listing-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 18px 0 18px;
}
.pdp-info .btn-primary,
.pdp-info .btn-secondary {
  flex: 1;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}
.pdp-info .btn-primary { background: var(--dark-brown); }
.pdp-info .btn-primary:hover { background: #3f2815; }
.pdp-info .btn-secondary { background: var(--brown); color: #fff; border: 2px solid var(--brown); }
.pdp-info .btn-secondary:hover { background: var(--dark-brown); border-color: var(--dark-brown); }
.icon-btn {
  width: 52px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  color: var(--dark-brown);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--brown); }

.meta-list {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: #4a3f37;
  margin-bottom: 16px;
}
.meta-list b { color: #1b130e; min-width: 78px; display: inline-block; }
.meta-list a { color: var(--dark-brown); font-weight: 600; text-decoration: none; margin-right: 12px; cursor: pointer; }
.meta-list a:hover { text-decoration: underline; }

.pdp-info .safety-note {
  border-radius: 12px;
  background: var(--ok-bg);
  color: #14532d;
  border-left: 3px solid #25D366;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.trust-row div {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--soft-brown);
  line-height: 1.35;
}
.trust-row span { display: block; font-size: 20px; margin-bottom: 4px; }

/* tabs */
.pdp-tabs { margin-top: 38px; padding: 6px 28px 28px; }
.tab-bar {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  padding: 18px 2px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #a39588;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s;
}
.tab-btn:hover { color: var(--dark-brown); }
.tab-btn.active { color: #1b130e; border-bottom-color: var(--dark-brown); }
.tab-panel { display: none; padding-top: 22px; }
.tab-panel.active { display: block; }
.tab-panel p { line-height: 1.8; color: #3b322b; white-space: pre-line; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; max-width: 520px; }
.info-table th, .info-table td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.info-table th { color: var(--muted); font-weight: 600; width: 40%; }
.info-table td { text-transform: capitalize; font-weight: 600; }

.rating-summary {
  display: flex;
  gap: 34px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.rating-big { text-align: center; min-width: 130px; }
.rating-big strong { font-size: 44px; line-height: 1; color: #1b130e; }
.rating-big strong small { font-size: 16px; color: var(--muted); font-weight: 500; }
.rating-big .stars { display: block; margin: 6px 0 2px; }
.rating-big span.count { font-size: 12px; color: var(--muted); }
.rating-bars { flex: 1; min-width: 220px; display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.bar-track { height: 7px; background: #efe7df; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--star); border-radius: 6px; width: 0; transition: width .5s ease; }

.review-card { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-card:last-child { border-bottom: none; }
.avatar {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.review-head strong { font-size: 14px; }
.review-head time { font-size: 12px; color: var(--muted); }
.review-body p { font-size: 14px; color: #4a3f37; margin-top: 6px; line-height: 1.6; }
.empty-note { font-size: 14px; color: var(--muted); }

/* =========================================================
   CHECKOUT
   ========================================================= */
.co-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; }
.co-top a { color: var(--dark-brown); font-weight: 600; text-decoration: none; }
.co-top a:hover { text-decoration: underline; }
.co-top span { color: var(--muted); }

.co-main h1 { font-size: 34px; margin-bottom: 18px; color: #1b130e; }

.co-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.co-steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.co-steps li .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #cdbfb2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #fff;
  color: var(--muted);
}
.co-steps li.active { color: var(--dark-brown); }
.co-steps li.active .dot { background: var(--dark-brown); border-color: var(--dark-brown); color: #fff; }
.co-steps li.done { color: var(--ok); }
.co-steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.co-steps .line { flex: 0 0 38px; height: 1.5px; background: #bfae9f; }

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.co-form { padding: 28px; }
.co-form h2 { font-size: 17px; margin: 0 0 14px; color: #1b130e; }
.co-form h2:not(:first-child) { margin-top: 26px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #4a3f37; margin-bottom: 6px; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'Inter', sans-serif;
}
.field input:focus, .field select:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(139, 94, 60, .15); }
.field input[readonly], .field select:disabled { background: #faf6f2; color: #6b5d52; }
.field.has-error input, .field.has-error select { border-color: #c0392b; }
.field .err { display: none; color: #c0392b; font-size: 12px; margin-top: 5px; }
.field.has-error .err { display: block; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.save-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #4a3f37; margin: 4px 0 18px; cursor: pointer; }
.save-row input { width: 18px; height: 18px; accent-color: var(--dark-brown); }

.co-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--dark-brown);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .2s;
}
.co-btn:hover { background: #3f2815; transform: translateY(-1px); }
.co-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.co-btn svg { width: 20px; height: 20px; fill: #fff; }

.btn-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

#paymentStatus { display: none; margin-top: 15px; padding: 15px; border-radius: 12px; font-size: 14px; line-height: 1.6; }

/* summary */
.co-summary { padding: 26px; position: sticky; top: 20px; }
.co-summary h2 { font-size: 17px; margin: 0 0 16px; }
.co-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft-brown);
  margin-bottom: 10px;
}
.co-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #fff; flex: 0 0 72px; }
.co-item h4 { font-size: 14px; margin: 0 0 3px; line-height: 1.3; }
.co-item p { font-size: 12px; color: var(--muted); margin: 0; text-transform: capitalize; }
.co-item .price { font-weight: 700; font-size: 14px; margin-top: 5px; color: #1b130e; }
.co-item .price s { color: #9a8e84; font-weight: 400; margin-left: 6px; font-size: 12px; }

.sum-lines { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: grid; gap: 10px; font-size: 14.5px; }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-line.save { color: var(--brown); font-weight: 600; }
.sum-line .soft { color: var(--muted); font-size: 13px; text-align: right; }
.sum-total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.sum-total strong:last-child { color: var(--dark-brown); font-size: 22px; }

.co-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.co-trust span { display: block; font-size: 22px; margin-bottom: 4px; }

.how-box { margin-top: 18px; padding: 14px 16px; background: #faf6f2; border-radius: 12px; font-size: 12.5px; color: var(--muted); }
.how-box strong { display: block; color: #1b130e; margin-bottom: 8px; font-size: 13px; }
.how-box ol { padding-left: 18px; display: grid; gap: 5px; }

.wa-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--ok-bg);
  border-left: 3px solid #25D366;
  border-radius: 12px;
  font-size: 13px;
  color: #14532d;
  line-height: 1.6;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 860px) {
  body { padding: 16px !important; }
  .pdp, .co-main { padding: 14px 4px 70px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 22px; }
  .pdp-info h1 { font-size: 25px; }
  .pdp-tabs { padding: 4px 16px 20px; margin-top: 26px; }
  .tab-bar { gap: 18px; }
  .tab-btn { font-size: 14.5px; }
  .rating-summary { gap: 20px; }

  .co-main h1 { font-size: 28px; }
  .co-grid { grid-template-columns: 1fr; gap: 18px; }
  .co-summary { position: static; order: -1; padding: 20px; }
  .co-form { padding: 20px; }
  .co-steps .line { flex-basis: 16px; }
  .co-summary .co-trust, .co-summary .wa-note, .co-summary .how-box { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .co-btn { font-size: 15px; padding: 15px 10px; }
}

@media (max-width: 480px) {
  .co-steps { font-size: 12.5px; gap: 6px; flex-wrap: nowrap; }
  .co-steps .line { flex-basis: 10px; }
  .pdp .thumb { width: 62px; height: 62px; }
}

/* =========================================================
   PRODUCT PAGE v4: NEUMORPHISM (soft UI)
   One soft surface colour. Raised = light top-left + dark
   bottom-right shadow. Pressed / inputs = inset shadow.
   Solid colours only. No gradients, no blur, nothing loops.
   ========================================================= */
:root {
  --nm: #ebe5da;                      /* soft surface */
  --nm-light: #fffdf8;                /* highlight (top-left) */
  --nm-dark: rgba(120, 98, 70, .42);  /* shade (bottom-right) */
  --nm-ink: #2b2118;
  --nm-muted: #6f6154;
  --nm-brown: #5a3a22;
  --nm-brown-2: #8b5e3c;
  --nm-ok: #1f7a4d;
  --nm-out:    8px 8px 18px var(--nm-dark), -8px -8px 18px var(--nm-light);
  --nm-out-sm: 4px 4px 9px var(--nm-dark), -4px -4px 9px var(--nm-light);
  --nm-in:     inset 4px 4px 9px var(--nm-dark), inset -4px -4px 9px var(--nm-light);
  --nm-flat:   0 0 0 var(--nm-dark);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- icons ---------- */
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.17em; }
.ico-lg { width: 1.5em; height: 1.5em; }
.menu-toggle, .close-menu { color: var(--nm-brown); }
.close-menu { display: inline-grid; place-items: center; }
.menu-toggle .ico { width: 26px; height: 26px; }
.mobile-nav a .ico { margin-right: 6px; }

/* ---------- breadcrumb ---------- */
.crumbs { display: inline-flex; padding: 9px 18px; border-radius: 999px; background: var(--nm); box-shadow: var(--nm-out-sm); }
.crumbs .sep { display: inline-grid; place-items: center; opacity: .5; }
.crumbs .sep .ico { width: .95em; height: .95em; }

/* ---------- gallery ---------- */
.gallery-stage { border-radius: 30px; background: var(--nm); border: 0; padding: 12px; box-shadow: var(--nm-float); }
.gallery-stage .main-img { border-radius: 20px; transition: transform .7s var(--ease-out); }
.gallery-stage:hover .main-img { transform: scale(1.03); }
.gallery-stage .main-img.swap { animation: imgSwap .5s var(--ease-out); }
@keyframes imgSwap { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
.gallery-stage .sheen { display: none; }
.gal-arrow { border-radius: 50%; background: var(--nm); color: var(--nm-brown); border: 0; box-shadow: var(--nm-out-sm); transition: box-shadow .2s, transform .2s; }
.gal-arrow:hover { color: var(--nm-brown-2); }
.gal-arrow:active { box-shadow: var(--nm-in); }
.gal-count { background: var(--nm); color: var(--nm-brown); box-shadow: var(--nm-out-sm); }
.pdp .thumb { border-radius: 16px; border: 0; background: var(--nm); padding: 4px; box-shadow: var(--nm-out-sm); transition: box-shadow .2s, transform .3s var(--ease-out); }
.pdp .thumb img { border-radius: 12px; }
.pdp .thumb.active { box-shadow: var(--nm-in); }

/* ---------- info column ---------- */
.pdp-info { background: var(--nm); border-radius: 30px; padding: 32px 30px 28px; box-shadow: var(--nm-float); }
.pdp-info::before, .pdp-info::after { content: none; display: none; }
.pdp-info .listing-badges span { display: inline-flex; align-items: center; gap: 6px; background: var(--nm); border: 0; border-radius: 999px; box-shadow: var(--nm-out-sm); color: var(--nm-brown); }
.pdp-info h1 { letter-spacing: -.02em; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; color: var(--nm-ink); text-shadow: none; }
.pdp-info .listing-price { font-size: clamp(28px, 4vw, 36px); font-variant-numeric: tabular-nums; color: var(--nm-ink); }
.stars svg { width: 1em; height: 1em; }
.opt-row { justify-content: flex-start; }
.size-chip { border-radius: 14px; background: var(--nm); color: var(--nm-brown); border: 0; font-weight: 700; box-shadow: var(--nm-in); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-bottom: 1px dashed currentColor; color: var(--nm-brown); }

/* condition meter: inset track, solid fill */
.cond-meter { display: inline-flex; gap: 4px; }
.cond-meter i { width: 26px; height: 9px; border-radius: 99px; background: var(--nm); box-shadow: inset 2px 2px 4px var(--nm-dark), inset -2px -2px 4px var(--nm-light); overflow: hidden; position: relative; }
.cond-meter i::after { content: ""; position: absolute; inset: 0; background: var(--nm-ok); transform: scaleX(0); transform-origin: left; }
.cond-meter i.on::after { animation: meterFill .6s var(--ease-out) forwards; }
.cond-meter i:nth-child(2).on::after { animation-delay: .12s; }
.cond-meter i:nth-child(3).on::after { animation-delay: .24s; }
.cond-meter i:nth-child(4).on::after { animation-delay: .36s; }
.cond-meter i:nth-child(5).on::after { animation-delay: .48s; }
@keyframes meterFill { to { transform: scaleX(1); } }

/* stock: a sunken status slot. Static. */
.stock-pill { border-radius: 999px; padding: 7px 16px; background: var(--nm); color: var(--nm-ok); border: 0; box-shadow: var(--nm-in); font-weight: 700; }
.stock-pill::before { display: none; }
.stock-pill.sold { color: #9a3412; background: var(--nm); }

/* ---------- buttons ---------- */
.pdp-info .listing-actions { gap: 14px; flex-wrap: nowrap; margin-bottom: 22px; }
.pdp-info .btn-primary, .pdp-info .btn-secondary {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; border-radius: 999px; padding: 15px 12px; font-size: 15px; font-weight: 700; border: 0;
  transition: box-shadow .2s, transform .2s, color .2s;
}
.pdp-info .btn-primary { background: var(--nm-brown); color: #f7efe0; box-shadow: var(--nm-out-sm); }
.pdp-info .btn-secondary { background: var(--nm); color: var(--nm-brown); box-shadow: var(--nm-out-sm); }
.pdp-info .btn-primary:hover, .pdp-info .btn-secondary:hover { transform: translateY(-2px); box-shadow: 6px 6px 14px var(--nm-dark), -6px -6px 14px var(--nm-light); }
.pdp-info .btn-primary:active { transform: none; box-shadow: inset 4px 4px 9px rgba(0,0,0,.5), inset -3px -3px 7px rgba(255,255,255,.12); }
.pdp-info .btn-secondary:active { transform: none; box-shadow: var(--nm-in); }
.pdp-info .btn-primary:disabled, .pdp-info .btn-secondary:disabled { box-shadow: none; opacity: .55; cursor: not-allowed; transform: none; }
.ripple { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.3); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(5); opacity: 0; } }

.icon-btn { border-radius: 50%; width: 54px; height: 54px; background: var(--nm); color: var(--nm-brown); border: 0; display: grid; place-items: center; box-shadow: var(--nm-out-sm); transition: box-shadow .2s; flex: none; }
.icon-btn:hover { box-shadow: 6px 6px 14px var(--nm-dark), -6px -6px 14px var(--nm-light); }
.icon-btn:active, .icon-btn[aria-pressed="true"] { box-shadow: var(--nm-in); }
.icon-btn svg { width: 1.35em; height: 1.35em; }
.pop { animation: heartPop .5s var(--ease-out); }
@keyframes heartPop { 0% { transform: scale(.6); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- meta, notice, trust ---------- */
.meta-list { border-top: 0; box-shadow: inset 0 2px 3px var(--nm-dark); padding-top: 18px; }
.meta-list > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.meta-list a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin-right: 6px; border-radius: 999px; color: var(--nm-brown); background: var(--nm); box-shadow: var(--nm-out-sm); text-decoration: none; transition: box-shadow .2s; }
.meta-list a:hover { box-shadow: var(--nm-in); text-decoration: none; }
.sold-by { display: inline-flex; align-items: center; gap: 6px; }

#fitNotesBox { background: var(--nm) !important; border-radius: 16px !important; box-shadow: var(--nm-in); }
.pdp-info .safety-note { display: flex; gap: 12px; align-items: flex-start; border-radius: 18px; background: var(--nm); border: 0; padding: 14px 16px; line-height: 1.5; color: var(--nm-ink); box-shadow: var(--nm-in); }
.pdp-info .safety-note .ico { color: var(--nm-ok); margin-top: 2px; }

.trust-row { gap: 14px; }
.trust-row div { padding: 16px 8px; border-radius: 20px; background: var(--nm); color: var(--nm-muted); box-shadow: var(--nm-out-sm); transition: transform .3s var(--ease-out), box-shadow .2s; }
.trust-row div:hover { transform: translateY(-3px); }
.trust-row .tr-badge { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--nm); box-shadow: var(--nm-in); font-size: 16px; }
.trust-row div:nth-child(1) .tr-badge { color: #1f9d55; }
.trust-row div:nth-child(2) .tr-badge { color: var(--nm-brown-2); }
.trust-row div:nth-child(3) .tr-badge { color: var(--nm-ok); }

/* ---------- tabs: sunken track, raised sliding thumb ---------- */
.pdp .panel { background: var(--nm); border: 0; border-radius: 30px; box-shadow: var(--nm-float); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tab-bar { position: relative; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--nm); box-shadow: var(--nm-in); overflow-x: auto; overflow-y: hidden; max-width: 100%; scrollbar-width: none; -ms-overflow-style: none; border-bottom: 0; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn { position: relative; z-index: 1; border: 0 !important; background: transparent !important; border-radius: 999px; padding: 10px 20px; color: var(--nm-muted); font-weight: 600; white-space: nowrap; }
.tab-btn.active { color: var(--nm-brown); }
.tab-ink { position: absolute; z-index: 0; left: 0; top: 6px; bottom: 6px; height: auto; border-radius: 999px; background: var(--nm); box-shadow: var(--nm-out-sm); width: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.tab-panel.active { animation: panelIn .4s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.info-table { max-width: 560px; }

/* ---------- size guide modal ---------- */
#sizeGuideModal { background: rgba(70, 56, 40, .45) !important; }
#sizeGuideModal > div { background: var(--nm) !important; border-radius: 30px !important; padding: 28px !important; box-shadow: var(--nm-float) !important; color: var(--nm-ink); animation: popupIn .3s var(--ease-out); }
#sizeGuideModal h3 { color: var(--nm-ink); }
#sizeGuideModal p { color: var(--nm-muted) !important; }
#sizeGuideModal table { border-radius: 18px; background: var(--nm); box-shadow: var(--nm-in); padding: 6px 10px; display: table; border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
#sizeGuideModal th { color: var(--nm-brown); padding: 10px 12px !important; }
#sizeGuideModal td { padding: 10px 12px !important; }
#sizeGuideModal tr { border-bottom: 0 !important; }
#sizeGuideModal tbody tr:nth-child(even) td { background: rgba(255,253,248,.45); }
#sizeGuideModal button[aria-label="Close size guide"] { width: 40px; height: 40px; border-radius: 50%; background: var(--nm) !important; color: var(--nm-brown) !important; box-shadow: var(--nm-out-sm); transition: box-shadow .2s; }
#sizeGuideModal button[aria-label="Close size guide"]:active { box-shadow: var(--nm-in); }

/* ---------- WhatsApp floating button ---------- */
#waFabBtn { background: #25D366; color: #0b3d1f; border: 0; right: 24px !important; left: auto !important; width: auto; box-shadow: 6px 6px 14px var(--nm-dark), -4px -4px 10px var(--nm-light);
  transition: box-shadow .2s, padding .35s var(--ease-out), gap .35s; }
#waFabBtn:hover { box-shadow: 8px 8px 18px var(--nm-dark), -6px -6px 14px var(--nm-light); }
#waFabBtn:active { box-shadow: inset 4px 4px 9px rgba(0,0,0,.35); }
#waFabBtn .wa-label { max-width: 220px; overflow: hidden; transition: max-width .35s var(--ease-out), opacity .25s; }
#waFabBtn.compact { padding: 0 13px; gap: 0; width: 52px; }
#waFabBtn.compact .wa-label { max-width: 0; opacity: 0; }
#waPopup { right: 24px !important; left: auto !important; border-radius: 26px; background: var(--nm); border: 0; box-shadow: var(--nm-out); transform-origin: bottom right; }
#waPopup.open { animation: popupIn .3s var(--ease-out); }
@keyframes popupIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
#waPopupClose { display: grid; place-items: center; }
.pdp { padding-bottom: 110px; }

/* ---------- toast ---------- */
.toast { display: flex; align-items: center; gap: 10px; border-radius: 20px; background: var(--nm); color: var(--nm-ink); border: 0; box-shadow: var(--nm-out); }
.toast svg { color: var(--nm-ok); }

/* ---------- one entrance on load (plays once) ---------- */
.pdp-grid > .listing-images { animation: rise .8s var(--ease-out) both; }
.pdp-grid > .pdp-info { animation: rise .8s .1s var(--ease-out) both; }
.pdp-tabs { animation: rise .8s .2s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 760px) {
  .pdp-info { padding: 26px 20px 22px; border-radius: 26px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row div { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; }
  .trust-row .tr-badge { margin: 0; flex: none; }
  #waFabBtn { right: 14px !important; bottom: 14px; }
  #waPopup { right: 14px !important; bottom: 80px; }
}
@media (max-width: 520px) {
  .pdp-info .btn-primary svg, .pdp-info .btn-secondary svg { display: none; }
  .pdp-info .btn-primary, .pdp-info .btn-secondary { font-size: 14px; padding: 14px 6px; }
  .pdp-info .listing-actions { gap: 10px; }
  .icon-btn { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp *, .pdp *::before, .pdp *::after, #waFabBtn, #waPopup, #sizeGuideModal > div { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* focus ring is always visible */
.pdp :focus-visible, #waFabBtn:focus-visible, #sizeGuideModal :focus-visible { outline: 2px solid var(--nm-brown-2); outline-offset: 3px; }


/* ---------- cards that mention WhatsApp are green (solid, no gradient) ---------- */
.trust-row div:nth-child(1) {
  background: #d9f2e2; color: #14532d;
  box-shadow: 4px 4px 9px rgba(40,110,70,.35), -4px -4px 9px rgba(255,255,255,.9);
}
.trust-row div:nth-child(1) .tr-badge { background: #25D366; color: #fff; box-shadow: 3px 3px 7px rgba(40,110,70,.4), -3px -3px 7px rgba(255,255,255,.9); }
.pdp-info .safety-note { background: #d9f2e2; color: #14532d; box-shadow: inset 4px 4px 9px rgba(40,110,70,.3), inset -4px -4px 9px rgba(255,255,255,.85); }
.pdp-info .safety-note .ico { color: #168a47; }
.meta-list a#shareWa { background: #d9f2e2; color: #14532d; box-shadow: 3px 3px 7px rgba(40,110,70,.35), -3px -3px 7px rgba(255,255,255,.9); }
.meta-list a#shareWa:hover { box-shadow: inset 3px 3px 7px rgba(40,110,70,.35), inset -3px -3px 7px rgba(255,255,255,.9); }

/* =========================================================
   CHECKOUT NEUMORPHISM: floating panels, sunken fields
   ========================================================= */
:root {
  /* floating: a deep black shadow underneath makes the card look lifted off the page */
  --nm-float:       0 30px 38px -16px rgba(0,0,0,.6), 10px 10px 22px var(--nm-dark), -8px -8px 18px var(--nm-light);
  --nm-float-hover: 0 46px 48px -22px rgba(0,0,0,.68), 12px 12px 26px var(--nm-dark), -8px -8px 18px var(--nm-light);
  --nm-ease: cubic-bezier(.22, 1, .36, 1);
}
.co-form, .co-summary { background: var(--nm); border: 0; border-radius: 30px; box-shadow: var(--nm-float); -webkit-backdrop-filter: none; backdrop-filter: none; animation: nmRise .8s var(--nm-ease) both; }
.co-summary { animation-delay: .12s; }
.field input, .field select, .field textarea {
  background: var(--nm); border: 0; border-radius: 16px; box-shadow: var(--nm-in); padding: 13px 16px; color: var(--nm-ink); transition: box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--nm-brown-2); outline-offset: 2px; border: 0; }
.field input[readonly], .field select:disabled { box-shadow: none; opacity: .7; }
.field.has-error input, .field.has-error select { outline: 2px solid #b3261e; outline-offset: 2px; }
.co-steps li .dot { background: var(--nm); border: 0; color: var(--nm-brown); box-shadow: var(--nm-out-sm); }
.co-steps li.active .dot { background: var(--nm-brown); color: #f7efe0; }
.co-steps li.done .dot { background: var(--nm-ok); color: #fff; }
.co-steps .line { background: var(--nm); box-shadow: var(--nm-in); height: 4px; border-radius: 4px; }
.how-box { background: var(--nm); border: 0; border-radius: 20px; box-shadow: var(--nm-in); }
.co-item { background: var(--nm); border: 0; border-radius: 18px; box-shadow: var(--nm-out-sm); padding: 10px; margin-bottom: 14px; }
.co-trust > div { background: var(--nm); border: 0; border-radius: 16px; box-shadow: var(--nm-out-sm); transition: transform .3s var(--nm-ease); }
.co-trust > div:hover { transform: translateY(-3px); }
.co-form .btn-primary, .co-form .auth-btn, .co-summary .btn-primary, .co-summary .auth-btn, .co-btn {
  background: var(--nm-brown); color: #f7efe0; border: 0; border-radius: 999px; box-shadow: var(--nm-out-sm); transition: box-shadow .2s, transform .2s; }
.co-form .btn-primary:hover, .co-form .auth-btn:hover, .co-btn:hover { transform: translateY(-2px); background: var(--nm-brown); }
.co-form .btn-primary:active, .co-form .auth-btn:active, .co-btn:active { transform: none; box-shadow: inset 4px 4px 9px rgba(0,0,0,.5), inset -3px -3px 7px rgba(255,255,255,.12); }
@keyframes nmRise { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .co-form, .co-summary { animation: none !important; } }