/* Product detail page — aligned with shop / premium cards */
.product-detail-page {
  background: var(--white);
}

.product-detail-wrap {
  padding: 24px 0 0;
  background: var(--white);
}

.breadcrumb {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: left;
}

.breadcrumb a {
  color: var(--text-mid);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-mid);
  font-weight: 500;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

.product-gallery { position: relative; }

.product-gallery-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FAFAF8;
  border: 1px solid var(--border);
}

.product-main-img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 20px;
  background: #FAFAF8;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pdp-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
  background: #FAFAF8;
}

.pdp-thumb.active,
.pdp-thumb:hover {
  border-color: var(--earth);
}

.pdp-thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: #f4f8f0;
}

.pdp-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #000;
}

.pdp-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdp-video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #000;
}

.pdp-video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--green);
  font-weight: 600;
}

.product-gallery .badge,
.product-gallery .product-card__badge {
  top: 12px;
  left: 12px;
  position: absolute;
  z-index: 2;
}

.product-detail-info h1 {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  color: var(--earth);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-detail-info .product-card__brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.product-price-lg {
  margin: 12px 0 16px;
  padding-top: 0 !important;
}

.product-price-lg .price-sale {
  font-size: 1.5rem;
}

.product-lead {
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.product-trust-list {
  list-style: none;
  margin-bottom: 20px;
}
.product-trust-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 4px 0;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--earth);
}
.qty-btn:hover { background: var(--cream); }

.qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
}

.btn-add-pdp {
  flex: 1;
  min-width: 160px;
  justify-content: center;
  padding: 12px 20px;
  background: var(--earth);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.product-meta-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.product-meta-box code {
  background: var(--white);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.pdp-size-row {
  margin-bottom: 16px;
}
.pdp-size-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.pdp-pincode {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.pdp-pincode input {
  width: 88px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pdp-pincode button {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
}

.pdp-delivery-msg {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.product-tabs-section {
  padding: 40px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-tab {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-mid);
}

.product-tab.active {
  background: var(--earth);
  color: var(--cream);
  border-color: var(--earth);
}

.product-tab-panel {
  display: none;
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 0.92rem;
}
.product-tab-panel.active { display: block; }

.pdp-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pdp-related {
  padding: 48px 0 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.pdp-related .section-head {
  margin-bottom: 24px;
  text-align: center;
}

.pdp-related .section-head h2 {
  font-family: var(--font-display);
  color: var(--earth);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0;
}

.pdp-related .products-grid--premium {
  gap: 20px 16px;
}

.pdp-reviews-mini {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }

  .pdp-sticky-bar {
    display: flex;
  }

  body.product-detail-page.has-bottom-nav .pdp-sticky-bar {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .pdp-related .products-grid--premium {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (min-width: 901px) {
  .pdp-sticky-bar { display: none !important; }
}
