/* Mobile PDP — Ugaoo-style stacked layout */
html.pdp-compact body.pdp-page,
body.pdp-page {
  overflow-x: hidden;
  background: #fff7f4;
}

body.pdp-page .pdp {
  background: #fff7f4;
  padding: 0.65rem 0 5.5rem;
}

body.pdp-page .pdp-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

body.pdp-page .pdp-wrap.container {
  width: 100%;
  max-width: 100%;
  padding-inline: 1rem;
}

body.pdp-page .pdp-mobile-head.mobile-only,
body.pdp-page .pdp-thumbs--mobile,
body.pdp-page .pdp-thumbs--desktop,
body.pdp-page .gal-dots,
body.pdp-page .price-breakdown,
body.pdp-page .gift-check,
body.pdp-page .pdp-cta,
body.pdp-page .pdp-extra-actions {
  display: none !important;
}

body.pdp-page .pdp-marquee.mobile-only {
  display: block !important;
  margin: 0.1rem -1rem 0.75rem;
  width: calc(100% + 2rem);
  max-width: none;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
}

body.pdp-page .pdp-marquee__item {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
}

body.pdp-page .pdp-marquee__dot {
  font-size: 0.74rem !important;
  color: rgba(26, 26, 26, 0.32) !important;
}

body.pdp-page .pdp-marquee__track {
  animation-duration: 16s !important;
}

body.pdp-page .pdp-gallery-col {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}

body.pdp-page .pdp-gallery {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  grid-area: auto !important;
  border-radius: 12px !important;
  margin: 0 !important;
  background: #f3eee6;
  overflow: hidden;
  position: relative;
}

body.pdp-page .pdp-badge-off {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  background: #0a4d3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(10, 77, 60, 0.3);
  pointer-events: none;
}

body.pdp-page .pdp-gallery:has(.pdp-badge-off) .gal-counter {
  top: auto;
  bottom: 2.4rem;
  right: 0.65rem;
}

body.pdp-page .pdp-gallery img,
body.pdp-page .pdp-gallery video.pdp-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.pdp-page .pdp-gallery video.pdp-main-video {
  object-fit: contain;
  background: #0a0a0a;
}

body.pdp-page .gal-nav {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.pdp-page .gal-prev { left: 10px; }
body.pdp-page .gal-next { right: 10px; }

body.pdp-page .pdp-info { padding: 0; }

body.pdp-page .pdp-rating {
  font-size: 0.82rem;
  color: #646464;
  margin: 0.15rem 0 0.85rem;
  gap: 0.28rem;
}

body.pdp-page .pdp-rating .star { color: #00a93d; font-size: 0.95rem; }
body.pdp-page .pdp-rating strong { color: #1a1a1a; font-weight: 700; }

body.pdp-page .pdp-block {
  margin-bottom: 1.05rem;
}

body.pdp-page .pdp-block h2,
body.pdp-page .pdp-block-head h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: #042018;
  margin-bottom: 0.55rem;
}

body.pdp-page .pdp-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

body.pdp-page .pdp-block-head h2 { margin-bottom: 0; }

body.pdp-page .text-link {
  font-size: 0.88rem;
  color: #00a859;
  text-decoration: underline;
}

body.pdp-page .size-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
}

body.pdp-page .size-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0.78rem 0.5rem !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  border: 1.5px solid #d9d2bf !important;
  background: #fff !important;
  color: #20281f !important;
}

body.pdp-page .size-btn.active {
  background: #00a859 !important;
  border-color: #00a859 !important;
  color: #fff !important;
}

body.pdp-page .size-btn small { display: none !important; }

body.pdp-page .planter-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

body.pdp-page .planter-card {
  flex: 0 0 78px !important;
  padding: 0.55rem 0.3rem 0.5rem !important;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #20281f !important;
}

body.pdp-page .planter-card.active {
  background: #00a859 !important;
  border-color: #00a859 !important;
  color: #fff !important;
}

body.pdp-page .planter-icon {
  min-height: 30px !important;
  margin-bottom: 0.2rem !important;
}

body.pdp-page .planter-icon svg {
  width: 26px !important;
  height: 26px !important;
}

body.pdp-page .planter-img {
  width: 32px !important;
  height: 32px !important;
}

body.pdp-page .planter-name {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}

body.pdp-page .planter-price {
  font-size: 0.7rem !important;
}

body.pdp-page .color-swatch {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px #ddd;
}

body.pdp-page .color-swatch.active {
  box-shadow: inset 0 0 0 2px #009252 !important;
  transform: scale(1.08);
}

body.pdp-page .pdp-price-row { margin: 0.35rem 0 0; }
body.pdp-page .pdp-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0a4d3c;
}
body.pdp-page .pdp-compare {
  font-size: 0.95rem;
  color: #999;
}
body.pdp-page .tax-note {
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

body.pdp-page .pdp-block:has(.offer-box) {
  display: none !important;
}

body.pdp-page .pdp-specs {
  display: block !important;
  margin: 0.85rem 0 0.35rem;
  border: 1px solid rgba(10, 77, 60, 0.12);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

body.pdp-page .pdp-specs > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #042018;
  user-select: none;
}

body.pdp-page .pdp-specs > summary::-webkit-details-marker { display: none; }

body.pdp-page .pdp-specs > summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #0a4d3c;
  line-height: 1;
}

body.pdp-page .pdp-specs[open] > summary::after { content: '−'; }

body.pdp-page .pdp-specs .spec-list {
  display: grid !important;
  margin: 0;
  padding: 0 1rem 0.85rem;
  border-top: 1px solid rgba(10, 77, 60, 0.08);
}

body.pdp-page .spec-row {
  display: grid !important;
  grid-template-columns: minmax(90px, 38%) 1fr;
  gap: 0.45rem 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
}

body.pdp-page .spec-row:last-child { border-bottom: none; }
body.pdp-page .spec-row dt { color: #666; font-weight: 600; }
body.pdp-page .spec-row dd { margin: 0; color: #1a1a1a; }

body.pdp-page .pdp-related {
  padding: 1rem 0 1.25rem;
}

body.pdp-page .pdp-sticky-bar.mobile-only {
  display: flex !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #ececec;
}

body.pdp-page .wa-fab {
  bottom: 4.6rem;
  right: 0.85rem;
}

@media (min-width: 1024px) {
  html:not(.pdp-compact) body.pdp-page .pdp-grid {
    display: grid !important;
    grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr) !important;
    gap: 2.25rem !important;
  }
  html:not(.pdp-compact) body.pdp-page .pdp-gallery-col {
    display: grid !important;
    grid-template-columns: 76px 1fr !important;
    grid-template-areas: "thumbs gallery" !important;
    width: auto !important;
    margin-inline: 0 !important;
    gap: 12px !important;
  }
  html:not(.pdp-compact) body.pdp-page .pdp-gallery {
    grid-area: gallery !important;
    aspect-ratio: 1 !important;
    border-radius: 12px !important;
  }
  html:not(.pdp-compact) body.pdp-page .pdp-thumbs--desktop { display: flex !important; }
  html:not(.pdp-compact) body.pdp-page .pdp-cta { display: grid !important; }
  html:not(.pdp-compact) body.pdp-page .pdp-sticky-bar.mobile-only,
  html:not(.pdp-compact) body.pdp-page .pdp-mobile-head.mobile-only,
  html:not(.pdp-compact) body.pdp-page .pdp-marquee.mobile-only { display: none !important; }
  html:not(.pdp-compact) body.pdp-page .size-btn small { display: inline !important; }
  html:not(.pdp-compact) body.pdp-page .gift-check,
  html:not(.pdp-compact) body.pdp-page .pdp-block:has(.offer-box),
  html:not(.pdp-compact) body.pdp-page .gal-dots { display: revert !important; }
}
