/* ================================================================
 * Product Detail Page
 * ================================================================ */

.rcs-pdp { padding: 0 !important; }

/* Crumbs */
.rcs-pdp__crumbs {
  padding: var(--rcs-space-3) var(--rcs-gutter);
  font-size: var(--rcs-size-xs);
  letter-spacing: var(--rcs-track-ui);
  text-transform: uppercase;
  color: var(--rcs-text-muted);
  font-weight: var(--rcs-fw-semi);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rcs-pdp__crumbs a { color: var(--rcs-text-muted); }

/* Gallery */
.rcs-pdp__gallery {
  position: relative;
  margin: 0;
  background: var(--rcs-surface);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  display: flex;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.rcs-pdp__gallery::-webkit-scrollbar { display: none; }
.rcs-pdp__gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  position: relative;
}
.rcs-pdp__gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dots overlay */
.rcs-pdp__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(28,26,25,0.35);
  border-radius: var(--rcs-r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}
.rcs-pdp__dot {
  width: 6px; height: 6px;
  border-radius: var(--rcs-r-pill);
  background: rgba(255,255,255,0.55);
  transition: width var(--rcs-dur-3) var(--rcs-ease-out), background var(--rcs-dur-2);
}
.rcs-pdp__dot.is-active {
  width: 22px;
  background: #fff;
}

/* Wishlist heart over gallery */
.rcs-pdp__wishlist {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: var(--rcs-r-pill);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rcs-text);
  box-shadow: var(--rcs-shadow-sm);
  z-index: 5;
}
.rcs-pdp__wishlist.is-active { color: var(--rcs-primary); }
.rcs-pdp__wishlist:active { transform: scale(0.88); }

/* Summary */
.rcs-pdp__summary {
  padding: var(--rcs-space-5) var(--rcs-gutter) 0;
}
.rcs-pdp__title {
  font-family: var(--rcs-font-display);
  font-size: var(--rcs-size-4xl);
  line-height: 1.12;
  letter-spacing: var(--rcs-track-tight);
  font-weight: var(--rcs-fw-medium);
  color: var(--rcs-primary);
  margin: 0 0 var(--rcs-space-2);
}
.rcs-pdp__rating-row {
  display: flex;
  align-items: center;
  gap: var(--rcs-space-2);
  margin: 0 0 var(--rcs-space-3);
  font-size: var(--rcs-size-sm);
  color: var(--rcs-text-muted);
}
.rcs-pdp__rating-row .ph-star { color: var(--rcs-accent); }

.rcs-pdp__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--rcs-space-3);
  margin: 0 0 var(--rcs-space-1);
}
.rcs-pdp__price {
  font-size: var(--rcs-size-5xl);
  font-weight: var(--rcs-fw-bold);
  color: var(--rcs-text);
  line-height: 1;
  font-family: var(--rcs-font-ui);
}
.rcs-pdp__price del { opacity: 0.5; font-weight: var(--rcs-fw-medium); font-size: var(--rcs-size-xl); margin-right: 8px; }
.rcs-pdp__price ins { text-decoration: none; }
.rcs-pdp__tax {
  font-size: var(--rcs-size-xs);
  color: var(--rcs-text-subtle);
  letter-spacing: var(--rcs-track-wide);
  margin: 0 0 var(--rcs-space-5);
}

.rcs-pdp__discount-pill {
  background: var(--rcs-error-soft);
  color: var(--rcs-error);
  font-size: var(--rcs-size-xs);
  padding: 4px 10px;
  border-radius: var(--rcs-r-pill);
  font-weight: var(--rcs-fw-bold);
  letter-spacing: var(--rcs-track-wide);
}

/* Trust 3-grid */
.rcs-pdp__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rcs-space-2);
  margin: 0 var(--rcs-gutter) var(--rcs-space-5);
}
.rcs-pdp__trust-item {
  background: var(--rcs-surface);
  border: 1px solid var(--rcs-outline);
  border-radius: var(--rcs-r-4);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rcs-pdp__trust-item .ph {
  color: var(--rcs-primary);
  font-size: var(--rcs-size-xl);
  margin-bottom: 2px;
}
.rcs-pdp__trust-title {
  font-size: var(--rcs-size-sm);
  font-weight: var(--rcs-fw-bold);
  color: var(--rcs-text);
  line-height: 1.2;
}
.rcs-pdp__trust-note {
  font-size: 10.5px;
  color: var(--rcs-text-muted);
  font-weight: var(--rcs-fw-medium);
  line-height: 1.2;
}

/* Delivery card */
.rcs-pdp__delivery {
  margin: 0 var(--rcs-gutter) var(--rcs-space-5);
  padding: var(--rcs-space-4);
  background: var(--rcs-surface-2);
  border: 1px solid var(--rcs-outline);
  border-radius: var(--rcs-r-5);
}
.rcs-pdp__delivery-line {
  display: flex;
  align-items: center;
  gap: var(--rcs-space-2);
  margin-bottom: var(--rcs-space-3);
}
.rcs-pdp__delivery-line .ph { color: var(--rcs-primary); font-size: var(--rcs-size-xl); flex: 0 0 auto; }
.rcs-pdp__delivery-line strong { display: block; font-size: var(--rcs-size-base); }
.rcs-pdp__delivery-line small { display: block; font-size: var(--rcs-size-sm); color: var(--rcs-text-muted); }
.rcs-pdp__pincode {
  display: flex;
  gap: var(--rcs-space-2);
}
.rcs-pdp__pincode input {
  flex: 1;
  height: 46px;
  min-height: 0;
}
.rcs-pdp__pincode button {
  height: 46px;
  padding: 0 18px;
  flex: 0 0 auto;
  min-height: 0;
}

/* Variant + qty + ATC */
.rcs-pdp__actions {
  margin: 0 var(--rcs-gutter) var(--rcs-space-5);
  display: flex;
  gap: var(--rcs-space-2);
}
.rcs-pdp__atc { flex: 1; min-height: 54px; border-radius: var(--rcs-r-5); }

/* Secondary CTA */
.rcs-pdp__ask {
  margin: 0 var(--rcs-gutter) var(--rcs-space-5);
}

/* Specs table */
.rcs-pdp__specs {
  margin: 0 var(--rcs-gutter) var(--rcs-space-5);
}

/* Accordion sections */
.rcs-pdp__sections {
  margin: 0 var(--rcs-gutter) var(--rcs-space-5);
}

/* FBT / Related */
.rcs-pdp__related {
  padding: var(--rcs-space-6) 0;
  border-top: 1px solid var(--rcs-outline);
  background: var(--rcs-canvas);
}
.rcs-pdp__related h2 {
  font-family: var(--rcs-font-display);
  font-size: var(--rcs-size-4xl);
  font-weight: var(--rcs-fw-medium);
  margin: 0 var(--rcs-gutter) var(--rcs-space-4);
}
.rcs-pdp__related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rcs-space-3);
  padding: 0 var(--rcs-gutter);
}

/* Sticky ATC bar */
.rcs-pdp-sticky {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--rcs-bottom-nav-h);
  z-index: var(--rcs-z-sticky-bar);
  background: rgba(250,246,240,0.96);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--rcs-outline);
  box-shadow: 0 -10px 28px -10px rgba(28,26,25,0.18);
  padding: 12px var(--rcs-gutter) calc(12px + var(--rcs-safe-bottom));
  display: flex;
  align-items: center;
  gap: var(--rcs-space-3);
  transform: translateY(110%);
  transition: transform var(--rcs-dur-4) var(--rcs-ease-out);
}
.rcs-pdp-sticky.is-visible { transform: translateY(0); }
.rcs-pdp-sticky__info { flex: 1; min-width: 0; }
.rcs-pdp-sticky__price {
  font-size: var(--rcs-size-xl);
  font-weight: var(--rcs-fw-bold);
  line-height: 1;
}
.rcs-pdp-sticky__meta {
  font-size: var(--rcs-size-xs);
  color: var(--rcs-text-muted);
  margin-top: 2px;
}
.rcs-pdp-sticky .rcs-btn { flex: 0 0 auto; min-height: 48px; }

/* ----- Zoom modal (tap-to-zoom on PDP gallery) ----- */
.rcs-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.96);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s var(--rcs-ease-out);
}
.rcs-zoom-modal.is-open {
  display: flex;
  opacity: 1;
}
.rcs-zoom-stage {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.rcs-zoom-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}
.rcs-zoom-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.rcs-zoom-close:active { transform: scale(.92); }
.rcs-zoom-hint {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom, 28px));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}
