/* Product detail — mobile-first, uses theme.css tokens. */

.phone.pdp {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.phone.pdp .tabbar { display: none; }

.pdp-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-gallery {
  position: relative;
  height: 280px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pdp-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}
.pdp-slide {
  position: relative;
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  background: var(--white);
}
.pdp-slide img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  object-fit: contain;
  object-position: center;
  display: block;
}
.pdp-slide .emoji { font-size: 72px; line-height: 1; }
.pdp-hit {
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  background: none;
  border: 0;
}
.pdp-hit.is-left { left: 0; }
.pdp-hit.is-right { right: 0; }
.pdp-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.pdp-dots button {
  width: 6px; height: 6px; padding: 0;
  border: 0; border-radius: 99px;
  background: var(--line);
}
.pdp-dots button.is-on {
  width: 18px;
  background: var(--navy);
}
.pdp-thumbs {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.pdp-thumbs button {
  width: 40px; height: 40px; padding: 0;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
.pdp-thumbs button.is-on { border-color: var(--navy); }
.pdp-thumbs img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 4px; display: block;
}
.pdp-badges {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.pdp-badges .tag {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  padding: 4px 8px; border-radius: 99px;
  color: var(--white); background: var(--navy);
}
.pdp-badges .tag.is-lime { background: var(--lime); color: var(--navy-deep); }

.pdp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 16px 0;
  padding: 16px;
}
.pdp-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.pdp-meta .brand { margin: 0; }
.pdp-meta .cat { font-size: 12px; color: var(--muted); }
.pdp-name {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  line-height: 1.25; margin: 0 0 10px;
  color: var(--navy);
}
.pdp-rating {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.pdp-stars {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--lime); color: var(--navy-deep);
  font-size: 12px; font-weight: 800;
  padding: 4px 8px; border-radius: 8px;
}
.pdp-stars svg { width: 12px; height: 12px; }
.pdp-rating .muted { font-size: 12px; }
.pdp-stock {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--green2);
}
.pdp-stock.is-out { color: #c2410c; }
.pdp-stock i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); display: block;
}
.pdp-stock.is-out i { background: #c2410c; }

.pdp-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.pdp-price .selling {
  font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1;
}
.pdp-price .mrp {
  font-size: 14px; color: var(--muted); text-decoration: line-through;
}
.pdp-price .off {
  font-size: 11px; font-weight: 700; color: var(--green2);
  background: var(--lime-tint); border: 1px solid var(--lime-line);
  padding: 3px 8px; border-radius: 6px;
}
.pdp-tax { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.pdp-ship {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 16px 0;
  padding: 10px 12px;
  background: var(--lime-tint); border: 1px solid var(--lime-line);
  border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
}
.pdp-ship svg { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; }

.pdp-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy); margin: 0 0 12px;
}
.pdp-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-choice {
  display: flex; flex-direction: column; align-items: center;
  min-width: 64px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--navy);
}
.pdp-choice b { font-size: 13.5px; }
.pdp-choice span { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.pdp-choice.is-on {
  background: var(--navy); color: var(--white); border-color: transparent;
}
.pdp-choice.is-on span { color: rgba(247, 249, 251, 0.7); }
.pdp-choice:disabled {
  background: var(--bg); color: var(--line); cursor: not-allowed;
}

.pdp-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pdp-trust .cell {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: var(--bg); border-radius: 12px;
}
.pdp-trust .ic {
  width: 28px; height: 28px; color: var(--lime); flex-shrink: 0;
}
.pdp-trust .ic svg { width: 100%; height: 100%; }
.pdp-trust b { display: block; font-size: 11.5px; color: var(--navy); }
.pdp-trust span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.pdp-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: -16px -16px 16px;
}
.pdp-tabs button {
  flex: 1; padding: 14px 8px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.pdp-tabs button.is-on {
  color: var(--navy); border-bottom-color: var(--navy);
}
.pdp-copy { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.pdp-points { display: flex; flex-direction: column; gap: 8px; }
.pdp-points .row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--navy); line-height: 1.45;
}
.pdp-points svg { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; margin-top: 1px; }
.pdp-facts {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.pdp-facts .row {
  display: flex; font-size: 12.5px;
  border-top: 1px solid var(--line);
}
.pdp-facts .row:first-child { border-top: 0; }
.pdp-facts .row:nth-child(odd) { background: var(--bg); }
.pdp-facts dt {
  width: 38%; padding: 10px 12px; margin: 0;
  font-weight: 600; color: var(--muted);
}
.pdp-facts dd { flex: 1; padding: 10px 12px; margin: 0; color: var(--navy); }

.pdp-use {
  display: flex; gap: 10px; padding: 10px 12px;
  background: var(--lime-tint); border-radius: 12px; margin-bottom: 8px;
}
.pdp-use .e { font-size: 20px; line-height: 1; }
.pdp-use b { display: block; font-size: 13px; color: var(--navy); }
.pdp-use span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.pdp-note {
  margin-top: 12px; padding: 12px;
  background: var(--amber-tint); border: 1px solid #f0d7b0;
  border-radius: 12px; font-size: 12px; color: #8a5a18; line-height: 1.5;
}

.pdp-score { display: flex; gap: 16px; margin-bottom: 18px; }
.pdp-score .big { text-align: center; }
.pdp-score .n {
  font-family: var(--font-serif); font-size: 36px; font-weight: 600; color: var(--navy);
}
.pdp-score .muted { font-size: 11px; }
.pdp-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pdp-bars .row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.pdp-bars .track {
  flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden;
}
.pdp-bars .fill { height: 100%; background: var(--lime); border-radius: 99px; }
.pdp-review { padding: 14px 0; border-top: 1px solid var(--line); }
.pdp-review:first-of-type { border-top: 0; padding-top: 0; }
.pdp-review .who { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pdp-review b { display: block; font-size: 13px; color: var(--navy); }
.pdp-review .when { font-size: 11px; color: var(--muted); }
.pdp-review p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.pdp-faq { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.pdp-faq button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; background: none; border: 0;
  text-align: left; font-size: 13px; font-weight: 600; color: var(--navy);
}
.pdp-faq button svg {
  width: 16px; height: 16px; color: var(--muted); flex-shrink: 0;
  transition: transform 0.15s;
}
.pdp-faq button.is-on svg { transform: rotate(180deg); }
.pdp-faq .body { display: none; padding: 0 14px 12px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.pdp-faq.is-open .body { display: block; }

.pdp-related { padding: 16px; }
.pdp-related .sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0; margin-bottom: 12px;
}
.pdp-related .see-all { font-size: 13px; font-weight: 700; color: var(--navy); }
.pdp-related .prod-row {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 0; scrollbar-width: none;
}
.pdp-related .prod-row::-webkit-scrollbar { display: none; }
.pdp-related .prod-row .pcard { flex-shrink: 0; width: 150px; }
.pdp-related .prod-row .pcard .thumb { height: 118px; }
.pdp-related .prod-row .pcard .name { font-size: 13px; min-height: 34px; }
a.pdp-choice { color: inherit; }

.phone .pdp-thumbs { display: none; }

.pdp-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 28;
  max-width: 430px;
  margin: 0 auto;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.pdp-cta .now {
  flex-shrink: 0;
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0;
}
.pdp-cta .now .selling { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.pdp-cta .now .mrp { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.pdp-cta-actions {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
}
.pdp-cta-actions .btn-navy,
.pdp-cta-actions .btn-lime {
  flex: 1; min-width: 0;
  height: 40px; padding: 0 10px; border-radius: 12px; font-size: 13px;
  white-space: nowrap;
}
.pdp-cta-actions .qty-step {
  flex: 1; height: 40px; border-radius: 12px;
}
.pdp-cta .btn-navy.is-disabled {
  background: var(--line); color: var(--muted); cursor: not-allowed;
}

.phone.pdp .topbar .icon-btn.is-search {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: 0 6px 14px rgba(21, 44, 70, 0.32);
}

.pdp-desktop { background: var(--bg); min-height: 100vh; }
.pdp-desktop .pdp-cta { display: none; }
.pdp-desktop .phone { display: none; }

.pdp-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  padding: 18px 0 0; min-width: 0;
}
.pdp-crumbs a:hover { color: var(--navy); }
.pdp-crumbs svg { width: 12px; height: 12px; flex-shrink: 0; }
.pdp-crumbs .now {
  color: var(--navy); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin: 28px 0 40px;
}
.pdp-col-gallery { position: sticky; top: 88px; }
.pdp-desktop .pdp-gallery {
  height: 460px; border: 1px solid var(--line); border-radius: 18px;
  margin: 0;
}
.pdp-desktop .pdp-dots { display: none; }
.pdp-desktop .pdp-thumbs {
  position: static; transform: none;
  display: flex; flex-direction: row; flex-wrap: wrap;
  margin-top: 12px; left: auto; top: auto;
}
.pdp-desktop .pdp-thumbs button { width: 68px; height: 68px; }
.pdp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  display: none; align-items: center; justify-content: center; z-index: 3;
}
.pdp-desktop .pdp-arrow { display: flex; }
.pdp-arrow.is-left { left: 12px; }
.pdp-arrow.is-right { right: 12px; }
.pdp-arrow svg { width: 16px; height: 16px; }

.pdp-desktop .pdp-card { margin: 0 0 16px; padding: 22px; }
.pdp-desktop .pdp-name { font-size: 32px; margin-bottom: 14px; }
.pdp-desktop .pdp-price .selling { font-size: 32px; }
.pdp-desktop .pdp-tabs { margin: -22px -22px 20px; }
.pdp-desktop .pdp-tabs button { padding: 16px 12px; font-size: 14px; }
.pdp-desktop .pdp-trust-band { padding: 16px 22px; margin-bottom: 24px; }
.pdp-desktop .pdp-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}
.pdp-desktop .pdp-trust .cell { padding: 12px 14px; }
.pdp-desktop .pdp-related .prod-row { display: none; }
.pdp-desktop .pdp-related { padding: 22px; margin-bottom: 8px; }
.pdp-desktop .pdp-related .sec-head h2 { font-size: 22px; }

.pdp-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pdp-actions .btn-navy { flex: 1; height: 48px; border-radius: 12px; font-size: 15px; }
.pdp-qty {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--white); flex-shrink: 0;
}
.pdp-qty button {
  width: 44px; border: 0; background: none;
  font-size: 18px; font-weight: 700; color: var(--navy);
}
.pdp-qty .n {
  min-width: 36px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.btn-outline {
  width: 100%; height: 48px; margin-top: 10px;
  border-radius: 12px; border: 1.5px solid var(--navy);
  background: transparent; color: var(--navy);
  font-size: 14px; font-weight: 700;
}
.btn-outline:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.pdp-pick { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }

.sort-wrap { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 10px 4px 4px;
}
.user-chip .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  width: 240px; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-card); padding: 8px;
}
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--navy);
}
.user-menu a:hover, .user-menu button:hover { background: var(--bg); }
.user-menu .out { color: #b4533a; font-weight: 700; }

.pdp-mini { position: fixed; inset: 0; z-index: 80; }
.pdp-mini .scrim { position: absolute; inset: 0; background: rgba(21, 44, 70, 0.4); }
.pdp-mini .panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(400px, 100%);
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -14px 0 45px rgba(21, 44, 70, 0.18);
}
.pdp-mini .hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.pdp-mini .hd b { display: block; font-size: 14px; }
.pdp-mini .hd span { font-size: 12px; color: var(--muted); }
.pdp-mini .body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.pdp-mini .empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.pdp-mini .row {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px;
}
.pdp-mini .thumb {
  width: 56px; height: 56px; border-radius: 12px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.pdp-mini .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pdp-mini .meta { min-width: 0; flex: 1; }
.pdp-mini .meta .name {
  font-size: 13px; font-weight: 700; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdp-mini .ft {
  border-top: 1px solid var(--line); padding: 16px 20px;
}
.pdp-mini .sum {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.pdp-mini .sum b { font-size: 18px; }
.pdp-mini .ft .btn-navy { width: 100%; height: 44px; border-radius: 12px; }

.pdp-uses {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pdp-desktop .pdp-uses { grid-template-columns: 1fr 1fr; }
.pdp-desktop .pdp-use { margin: 0; }

@media (max-width: 960px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 20px; }
  .pdp-col-gallery { position: static; }
  .pdp-desktop .pdp-gallery { height: 360px; }
  .pdp-desktop .pdp-name { font-size: 26px; }
  .pdp-uses { grid-template-columns: 1fr; }
}
