/* ============================================================
   MARTAL — Product Details Page
   product-details.css | Appended to style.css | Mobile-First
   All variables, buttons, typography, layout, and utility
   classes are inherited from style.css. This file adds ONLY
   new selectors required for the product details page.
   ============================================================ */


/* ── 1. BREADCRUMB ─────────────────────────────────────────── */
.pd-breadcrumb-section {
  padding-block: var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}

.pd-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.pd-breadcrumb__item {
  display: flex;
  align-items: center;
}

.pd-breadcrumb__link {
  font-size: 13px;
  color: var(--clr-muted);
  font-weight: 600;
  transition: color var(--t-fast);
}

.pd-breadcrumb__link:hover {
  color: var(--clr-red);
}

.pd-breadcrumb__sep {
  font-size: 12px;
  color: var(--clr-light);
  margin-inline: var(--sp-1);
}

.pd-breadcrumb__item--current {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
}


/* ── 2. PRODUCT SECTION LAYOUT ─────────────────────────────── */
.pd-section {
  padding-block: var(--sp-8) var(--sp-10);
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .pd-layout {
    grid-template-columns: 55% 1fr;
  }
}


/* ── 3. GALLERY — SHARED PLACEHOLDERS ─────────────────────── */
.pd-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-red-deep);
  transition: transform var(--t-slow);
}

.pd-gallery__placeholder i {
  font-size: clamp(40px, 8vw, 64px);
  color: var(--clr-nude);
}

.pd-gallery__placeholder--brown  { background: linear-gradient(135deg, #FFF5F5, #E8D5C4); }
.pd-gallery__placeholder--brown2 { background: linear-gradient(135deg, #F5EBE0, #D4A68A); }
.pd-gallery__placeholder--natural { background: linear-gradient(135deg, #FFF8F0, #F0D0B0); }
.pd-gallery__placeholder--package { background: linear-gradient(135deg, #F8F8F8, #E8E0E0); color: var(--clr-muted); }
.pd-gallery__placeholder--package i { color: var(--clr-border-md); }


/* ── 4. GALLERY — MOBILE SWIPE ─────────────────────────────── */
.pd-gallery__desktop {
  display: none;
}

.pd-gallery__mobile-track {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--clr-rose);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.pd-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  pointer-events: none;
}

.pd-gallery__slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.pd-gallery__slide--exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

.pd-gallery__slide--exit-right {
  opacity: 0;
  transform: translateX(40px);
}

.pd-gallery__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.pd-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--clr-border-md);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), width var(--t-fast);
}

.pd-gallery__dot--active {
  background: var(--clr-red);
  width: 24px;
}

.pd-gallery__dot:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .pd-gallery__mobile-track { display: none; }
  .pd-gallery__dots         { display: none; }
  .pd-gallery__desktop      { display: flex; gap: var(--sp-4); align-items: flex-start; }
}


/* ── 5. GALLERY — DESKTOP ──────────────────────────────────── */
.pd-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-shrink: 0;
  width: 80px;
}

.pd-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.pd-gallery__thumb:hover {
  border-color: var(--clr-red);
  transform: translateX(-2px);
}

.pd-gallery__thumb--active {
  border-color: var(--clr-red);
  box-shadow: var(--shadow-red);
}

.pd-gallery__thumb:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

.pd-gallery__thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery__thumb-inner i {
  font-size: 24px;
  color: var(--clr-nude);
}

.pd-gallery__main {
  flex: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: zoom-in;
  background: var(--clr-rose);
  box-shadow: var(--shadow-md);
}

.pd-gallery__main:hover .pd-gallery__zoom-hint {
  opacity: 1;
}

.pd-gallery__main-img {
  width: 100%;
  height: 100%;
  transition: transform var(--t-slow);
}

.pd-gallery__main-img.zoomed {
  transform: scale(1.08);
  cursor: zoom-out;
}

.pd-gallery__zoom-hint {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: rgba(255,255,255,0.9);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.pd-gallery__zoom-hint i {
  font-size: 14px;
  color: var(--clr-red);
}

.pd-gallery__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
}


/* ── 6. PRODUCT INFO ───────────────────────────────────────── */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.pd-info__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pd-info__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--clr-red);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.pd-info__brand:hover {
  color: var(--clr-red-deep);
  border-color: var(--clr-red-deep);
}

.pd-info__badges {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
}

.pd-badge--korean {
  background: #E8F4FF;
  color: #1A5FA8;
  border: 1px solid #C8E0FF;
}

.pd-badge--monthly {
  background: var(--clr-rose);
  color: var(--clr-red);
  border: 1px solid var(--clr-nude);
}

.pd-badge--monthly i {
  font-size: 13px;
}

.pd-info__title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  color: var(--clr-text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0;
}

.pd-info__subtitle {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.6;
  margin-top: calc(-1 * var(--sp-2));
}

/* Rating */
.pd-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pd-rating__stars {
  color: var(--clr-red);
  font-size: 16px;
  letter-spacing: 1px;
}

.pd-rating__score {
  font-size: 15px;
  font-weight: 900;
  color: var(--clr-text);
}

.pd-rating__count {
  font-size: 13px;
  color: var(--clr-muted);
  text-decoration: underline;
  transition: color var(--t-fast);
}

.pd-rating__count:hover {
  color: var(--clr-red);
}

.pd-rating__sep {
  color: var(--clr-border-md);
}

.pd-rating__sold {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-muted);
}

/* Price */
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.pd-price__current {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 900;
  color: var(--clr-red);
  line-height: 1;
}

.pd-price__old {
  font-size: 16px;
  color: var(--clr-light);
  text-decoration: line-through;
  font-weight: 600;
}

.pd-price__discount {
  background: var(--clr-nude);
  color: var(--clr-red-deep);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* Availability */
.pd-availability {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.pd-availability__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ECC71;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
  animation: pulse-avail 2s ease-in-out infinite;
}

@keyframes pulse-avail {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,204,113,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(46,204,113,0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-availability__dot { animation: none; }
}

.pd-availability__text {
  font-size: 13px;
  font-weight: 700;
  color: #1A7A40;
}

.pd-availability__qty {
  font-size: 12px;
  font-weight: 600;
  color: #B85000;
  background: #FFF3E8;
  border-radius: var(--r-pill);
  padding: 2px 10px;
  border: 1px solid #FFD8B0;
}

/* Description */
.pd-desc {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.8;
}

.pd-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-1) 0;
}


/* ── 7. OPTION GROUPS (color, qty) ─────────────────────────── */
.pd-option-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pd-option-group__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.pd-option-group__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
}

.pd-option-group__selected {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-red);
  background: var(--clr-rose);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  border: 1px solid var(--clr-nude);
  min-width: 60px;
  text-align: center;
  transition: background var(--t-fast);
}


/* ── 8. COLOR SWATCHES ─────────────────────────────────────── */
.pd-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.pd-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-1);
  border-radius: var(--r-md);
  transition: transform var(--t-fast);
}

.pd-swatch:hover {
  transform: translateY(-2px);
}

.pd-swatch:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.pd-swatch__circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  display: block;
}

.pd-swatch:hover .pd-swatch__circle {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.pd-swatch--active .pd-swatch__circle {
  border-color: var(--clr-red);
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}

.pd-swatch__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-muted);
  transition: color var(--t-fast);
}

.pd-swatch--active .pd-swatch__name {
  color: var(--clr-red);
  font-weight: 700;
}


/* ── 9. QUANTITY SELECTOR ──────────────────────────────────── */
.pd-qty {
  display: inline-flex;
  align-items: center;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border-md);
  border-radius: var(--r-pill);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.pd-qty:focus-within {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(213,0,0,0.08);
}

.pd-qty__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--clr-text);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border: none;
  background: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.pd-qty__btn:hover {
  background: var(--clr-rose);
  color: var(--clr-red);
}

.pd-qty__btn:active {
  background: var(--clr-nude);
}

.pd-qty__btn:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: -2px;
}

.pd-qty__btn:disabled {
  color: var(--clr-light);
  cursor: not-allowed;
  background: transparent;
}

.pd-qty__val {
  min-width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--clr-text);
  border-inline: 1.5px solid var(--clr-border);
  padding-block: 10px;
  line-height: 1.4;
  transition: color var(--t-fast);
}


/* ── 10. CTA ACTIONS ───────────────────────────────────────── */
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pd-actions__primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

@media (max-width: 359px) {
  .pd-actions__primary {
    grid-template-columns: 1fr;
  }
}

.pd-actions__cart {
  flex: 1;
}

.pd-actions__buynow {
  background: var(--clr-text);
  color: #fff;
  border: 1.5px solid var(--clr-text);
  flex: 1;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.pd-actions__buynow:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}

.pd-actions__buynow:active {
  transform: translateY(0);
  box-shadow: none;
}

.pd-actions__secondary {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.pd-actions__wishlist {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border-md);
  font-size: 20px;
  flex-shrink: 0;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.pd-actions__wishlist.active {
  border-color: var(--clr-red);
  background: var(--clr-rose);
  color: var(--clr-red);
}

.pd-actions__whatsapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--clr-green);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 13px var(--sp-4);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.pd-actions__whatsapp:hover {
  background: var(--clr-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.pd-actions__whatsapp i {
  font-size: 20px;
}

/* COD strip */
.pd-cod-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--clr-rose);
  border: 1px solid var(--clr-nude);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
}

.pd-cod-strip i {
  color: var(--clr-red);
  font-size: 18px;
  flex-shrink: 0;
}


/* ── 11. FEATURES GRID ─────────────────────────────────────── */
.pd-features-section {
  padding-block: var(--sp-10);
}

.pd-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

@media (min-width: 640px) {
  .pd-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .pd-features {
    grid-template-columns: repeat(6, 1fr);
  }
}

.pd-feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-fast);
}

.pd-feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--clr-nude);
}

.pd-feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--clr-rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  transition: background var(--t-fast);
}

.pd-feature-card:hover .pd-feature-card__icon {
  background: var(--clr-red);
}

.pd-feature-card__icon i {
  color: var(--clr-red);
  font-size: 22px;
  transition: color var(--t-fast);
}

.pd-feature-card:hover .pd-feature-card__icon i {
  color: #fff;
}

.pd-feature-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.pd-feature-card__text {
  font-size: 11px;
  color: var(--clr-muted);
  line-height: 1.6;
}


/* ── 12. TABS ──────────────────────────────────────────────── */
.pd-tabs-section {
  padding-top: var(--sp-2);
}

.pd-tabs {
  position: relative;
  display: flex;
  border-bottom: 2px solid var(--clr-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.pd-tabs::-webkit-scrollbar {
  display: none;
}

.pd-tab {
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-muted);
  padding: var(--sp-3) var(--sp-5);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast);
  flex-shrink: 0;
}

.pd-tab:hover {
  color: var(--clr-text);
}

.pd-tab--active {
  color: var(--clr-red);
}

.pd-tab:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: -2px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.pd-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-rose);
  color: var(--clr-red);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  margin-inline-start: var(--sp-1);
}

.pd-tabs__indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--clr-red);
  border-radius: var(--r-pill);
  transition: left var(--t-base), width var(--t-base);
  pointer-events: none;
}


/* ── 13. TAB PANELS ────────────────────────────────────────── */
.pd-tab-panels {
  margin-top: var(--sp-8);
}

.pd-tab-panel {
  animation: fadeInPanel var(--t-base) ease forwards;
}

/* @keyframes fadeInPanel — defined in style.css §22, remove duplicate */

.pd-tab-panel__inner {
  max-width: 820px;
}

.pd-content-title {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  line-height: 1.3;
}

.pd-content-text {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.9;
  margin-bottom: var(--sp-4);
}

.pd-content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.pd-content-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 14px;
  color: var(--clr-text);
  font-weight: 600;
  line-height: 1.5;
}

.pd-content-list li i {
  color: var(--clr-red);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ── 14. SPECS TABLE ───────────────────────────────────────── */
.pd-specs-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pd-specs-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--t-fast);
}

.pd-specs-row:last-child {
  border-bottom: none;
}

.pd-specs-row:hover {
  background: var(--clr-rose);
}

.pd-specs-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
  padding: var(--sp-3) var(--sp-4);
  background: var(--clr-rose);
  border-inline-end: 1px solid var(--clr-border);
}

.pd-specs-val {
  font-size: 13px;
  color: var(--clr-muted);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
}


/* ── 15. REVIEWS ───────────────────────────────────────────── */
.pd-reviews-header {
  margin-bottom: var(--sp-8);
}

.pd-reviews-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  background: var(--clr-rose);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  border: 1px solid var(--clr-border);
}

@media (min-width: 640px) {
  .pd-reviews-summary {
    flex-direction: row;
    align-items: center;
  }
}

.pd-reviews-score {
  text-align: center;
  flex-shrink: 0;
  min-width: 120px;
}

.pd-reviews-score__num {
  display: block;
  font-size: 56px;
  font-weight: 900;
  color: var(--clr-red);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.pd-reviews-score__stars {
  color: var(--clr-red);
  font-size: 20px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: var(--sp-1);
}

.pd-reviews-score__total {
  font-size: 12px;
  color: var(--clr-muted);
  font-weight: 600;
}

.pd-reviews-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pd-rating-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.pd-rating-bar__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-text);
  width: 28px;
  flex-shrink: 0;
  text-align: start;
}

.pd-rating-bar__track {
  flex: 1;
  height: 8px;
  background: var(--clr-border-md);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.pd-rating-bar__fill {
  height: 100%;
  background: var(--clr-red);
  border-radius: var(--r-pill);
  transition: width 0.8s ease;
}

.pd-rating-bar__pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-muted);
  width: 32px;
  flex-shrink: 0;
  text-align: end;
}

/* Review upgrades */
.pd-reviews-list {
  margin-top: var(--sp-6);
}

.pd-review-card {
  position: relative;
}

.pd-review-verified {
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-5);
  font-size: 11px;
  font-weight: 700;
  color: #1A7A40;
  background: #E8F8EE;
  border-radius: var(--r-pill);
  padding: 2px 9px;
}

.pd-review-date {
  font-size: 11px;
  color: var(--clr-light);
  font-weight: 600;
  margin-top: var(--sp-2);
}


/* ── 16. SHIPPING CARDS ────────────────────────────────────── */
.pd-shipping-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .pd-shipping-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pd-shipping-card {
  background: var(--clr-rose);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.pd-shipping-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pd-shipping-card__icon {
  width: 48px;
  height: 48px;
  background: var(--clr-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.pd-shipping-card__icon i {
  color: var(--clr-red);
  font-size: 22px;
}

.pd-shipping-card__title {
  font-size: 15px;
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}

.pd-shipping-card__text {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.7;
}


/* ── 17. STICKY MOBILE BAR ─────────────────────────────────── */
.pd-sticky-bar {
  position: fixed;
  bottom: 68px; /* sits above mobile-bottom-nav */
  left: 0;
  right: 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  z-index: 650;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
}

.pd-sticky-bar.visible {
  transform: translateY(0);
}

.pd-sticky-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.pd-sticky-bar__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-sticky-bar__prices {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.pd-sticky-bar__price {
  font-size: 18px;
  font-weight: 900;
  color: var(--clr-red);
  line-height: 1;
}

.pd-sticky-bar__old {
  font-size: 12px;
  color: var(--clr-light);
  text-decoration: line-through;
}

.pd-sticky-bar__btn {
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 14px;
}

/* Hide sticky bar on desktop where CTA is always visible */
@media (min-width: 900px) {
  .pd-sticky-bar {
    display: none;
  }
}


/* ── 18. PAGE-LEVEL BOTTOM PADDING ─────────────────────────── */
/* On mobile: account for bottom-nav (68px) + sticky-bar (76px) */
@media (max-width: 899px) {
  main {
    margin-bottom: calc(68px + 76px);
  }
}


/* ── 19. PRINT ADDITIONS ───────────────────────────────────── */
@media print {
  .pd-sticky-bar,
  .pd-gallery__zoom-hint { display: none !important; }
}
