/* GOALKIT — Product Detail Page */

body.pd-page { padding-bottom: 84px; }
body.pd-page.lang-bn { font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif; }

/* Breadcrumb */
.pd-breadcrumb {
  font-size: 13px;
  color: var(--text-muted, #9ba3b0);
  padding: 14px 16px 4px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pd-breadcrumb a {
  color: var(--text-muted, #9ba3b0);
  text-decoration: none;
}
.pd-breadcrumb a:hover { color: var(--lime, #D9FE06); }
.pd-breadcrumb span { color: var(--text, #e8eaee); }

/* 2-col layout */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  padding: 18px 16px 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 8px; }
}

/* === GALLERY === */
.pd-gallery { position: sticky; top: 18px; }
@media (max-width: 900px) { .pd-gallery { position: static; } }

.pd-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--charcoal-3, #2a2f38);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.pd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: block;
}
.pd-slide.is-active { opacity: 1; z-index: 1; cursor: zoom-in; }

.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20,24,31,0.78);
  color: #fff;
  border: 1.5px solid rgba(217,254,6,0.65);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px 0;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
}
.pd-stage:hover .pd-nav { opacity: 1; }
.pd-nav:hover { background: var(--lime, #D9FE06); color: var(--charcoal, #14181F); border-color: var(--lime, #D9FE06); }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }

.pd-tier-badge {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  background: var(--lime, #D9FE06); color: var(--charcoal, #14181F);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 13px; letter-spacing: 1px;
  padding: 5px 11px; border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}
.pd-save-badge {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  background: var(--charcoal, #14181F); color: var(--lime, #D9FE06); border: 1px solid var(--lime, #D9FE06);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.pd-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--charcoal-3, #2a2f38);
  padding: 0;
  cursor: pointer;
  background: var(--charcoal-2, #1f252f);
  transition: border-color 0.15s ease, transform 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--lime, #D9FE06); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .pd-nav { opacity: 1; width: 38px; height: 38px; font-size: 22px; }
  .pd-thumbs { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
}

/* === INFO === */
.pd-cat-label {
  display: inline-block;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--lime, #D9FE06);
  margin-bottom: 6px;
}
.pd-name {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}
.lang-bn .pd-name { font-family: 'Noto Sans Bengali', 'Bebas Neue', sans-serif; }

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.pd-price {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(34px, 6vw, 48px);
  color: var(--lime, #D9FE06);
  line-height: 1;
  letter-spacing: 1px;
}
.lang-bn .pd-price { font-family: 'Noto Sans Bengali', 'Bebas Neue', sans-serif; }
.pd-compare {
  font-size: 18px;
  color: var(--text-muted, #9ba3b0);
  text-decoration: line-through;
}
.pd-save-pill {
  font-size: 12px;
  background: rgba(217,254,6,0.10);
  color: var(--lime, #D9FE06);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(217,254,6,0.35);
}

.pd-trust-row {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--charcoal-2, #1f252f);
  border: 1px solid var(--charcoal-3, #2a2f38);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--text, #e8eaee);
}
.pd-trust-row li { display: flex; align-items: center; gap: 6px; }

.pd-scarcity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(217,254,6,0.06);
  border: 1px solid rgba(217,254,6,0.25);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text, #e8eaee);
  margin: 0 0 18px;
}
/* Sold-out products: hide the "Only N left" scarcity strip so it never
   contradicts the OUT OF STOCK badge (JS adds body.pd-is-stockout). */
body.pd-is-stockout .pd-scarcity { display: none; }
.pd-scarcity-dot {
  width: 9px; height: 9px;
  background: var(--lime, #D9FE06);
  border-radius: 50%;
  flex: 0 0 auto;
  animation: pdPulse 1.4s ease-in-out infinite;
}
@keyframes pdPulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(217,254,6,0.6); }
  50%      { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 8px rgba(217,254,6,0); }
}

.pd-sizes { border: none; padding: 0; margin: 0 0 18px; }
.pd-sizes legend {
  font-size: 13px;
  color: var(--text-muted, #9ba3b0);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.pd-sizes-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size {
  min-width: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--charcoal-3, #2a2f38);
  background: transparent;
  color: var(--text, #e8eaee);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.pd-size:hover { border-color: var(--lime, #D9FE06); transform: translateY(-1px); }
.pd-size.is-active {
  background: var(--lime, #D9FE06);
  color: var(--charcoal, #14181F);
  border-color: var(--lime, #D9FE06);
}

.pd-tryon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1.5px dashed var(--lime, #D9FE06);
  background: linear-gradient(135deg, rgba(217,254,6,0.10), rgba(217,254,6,0.02));
  color: var(--lime, #D9FE06);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.pd-tryon:hover {
  background: var(--lime, #D9FE06);
  color: var(--charcoal, #14181F);
  border-style: solid;
  transform: translateY(-1px);
}
.pd-tryon:hover .pd-tryon-badge { background: var(--charcoal, #14181F); color: var(--lime, #D9FE06); }
.pd-tryon-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--lime, #D9FE06);
  color: var(--charcoal, #14181F);
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.pd-tryon svg { flex-shrink: 0; }

.pd-cta-row { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }

/* ===== Out-of-stock state ===== */
.pd-stockout {
  background: rgba(218,41,28,0.08);
  border: 1px solid rgba(218,41,28,0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.pd-stockout-badge {
  display: inline-block;
  background: var(--bd-red, #DA291C);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.pd-stockout p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted, #9ba3b0);
}
.pd-cta-row.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(1);
}
.pd-sticky-btn.is-disabled {
  background: var(--charcoal-3, #2a3140);
  color: var(--text-muted, #9ba3b0);
  pointer-events: none;
  cursor: not-allowed;
}
.pd-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pd-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pd-cta:active { transform: translateY(0); }
.pd-cta-wa { background: var(--lime, #D9FE06); color: var(--charcoal, #14181F); box-shadow: 0 8px 24px rgba(217,254,6,0.30); }
.pd-cta-fb { background: var(--charcoal-2, #1f252f); color: #fff; border: 1.5px solid var(--charcoal-3, #2a3140); }
.pd-cta-fb:hover { border-color: var(--lime, #D9FE06); color: var(--lime, #D9FE06); }

.pd-custom {
  background: linear-gradient(135deg, rgba(217,254,6,0.07), rgba(217,254,6,0.02));
  border: 1px solid rgba(217,254,6,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 14px;
}
.pd-custom strong { color: var(--lime, #D9FE06); display: block; margin-bottom: 4px; font-size: 14px; }
.pd-custom p { margin: 0; color: var(--text-muted, #9ba3b0); font-size: 13px; line-height: 1.5; }

.pd-delivery {
  background: var(--charcoal-2, #1f252f);
  border: 1px solid var(--charcoal-3, #2a2f38);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 13px;
}
.pd-delivery strong { display: block; margin-bottom: 8px; color: var(--text, #e8eaee); font-size: 14px; }
.pd-delivery-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-top: 1px solid var(--charcoal-3, #2a2f38);
  color: var(--text-muted, #9ba3b0);
}
.pd-delivery-row:first-of-type { border-top: none; padding-top: 0; }
.pd-delivery-row b { color: var(--lime, #D9FE06); font-weight: 800; font-size: 13px; }

.pd-details {
  border-top: 1px solid var(--charcoal-3, #2a2f38);
  padding: 14px 0;
}
.pd-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
  color: var(--text, #e8eaee);
}
.pd-details summary::-webkit-details-marker { display: none; }
.pd-details summary::after { content: '+'; font-size: 22px; color: var(--lime, #D9FE06); line-height: 1; }
.pd-details[open] summary::after { content: '−'; }
.pd-details p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted, #9ba3b0);
}

.pd-share {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 13px; color: var(--text-muted, #9ba3b0);
}
.pd-share a {
  color: var(--lime, #D9FE06);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(217,254,6,0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pd-share a:hover { background: rgba(217,254,6,0.08); }

/* RELATED */
.pd-related { padding: 30px 16px; }
.pd-related h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.lang-bn .pd-related h2 { font-family: 'Noto Sans Bengali', 'Bebas Neue', sans-serif; }

/* FAQ */
.pd-faq { padding: 20px 16px 60px; }
.pd-faq h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.lang-bn .pd-faq h2 { font-family: 'Noto Sans Bengali', 'Bebas Neue', sans-serif; }
.pd-faq .faq-item {
  border-top: 1px solid var(--charcoal-3, #2a2f38);
  padding: 14px 0;
}
.pd-faq .faq-item:last-child { border-bottom: 1px solid var(--charcoal-3, #2a2f38); }
.pd-faq .faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text, #e8eaee);
}
.pd-faq .faq-item summary::-webkit-details-marker { display: none; }
.pd-faq .faq-item summary::after { content: '+'; font-size: 22px; color: var(--lime, #D9FE06); }
.pd-faq .faq-item[open] summary::after { content: '−'; }
.pd-faq .faq-item p {
  margin: 8px 0 0;
  color: var(--text-muted, #9ba3b0);
  font-size: 14px;
  line-height: 1.6;
}

/* STICKY MOBILE CTA */
.pd-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--charcoal, #14181F);
  border-top: 1px solid var(--charcoal-3, #2a2f38);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 80;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
}
.pd-sticky-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pd-sticky-name {
  font-size: 12px;
  color: var(--text-muted, #9ba3b0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-sticky-price {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  color: var(--lime, #D9FE06);
  line-height: 1;
  letter-spacing: 0.5px;
}
.pd-sticky-btn {
  background: var(--lime, #D9FE06);
  color: var(--charcoal, #14181F);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(217,254,6,0.30);
}
.pd-sticky-btn:hover { filter: brightness(1.05); }

@media (max-width: 900px) {
  .pd-sticky-cta { display: flex; }
  body.pd-page { padding-bottom: 90px; }
  .pd-trust-row { grid-template-columns: 1fr 1fr; font-size: 12.5px; }
}
@media (max-width: 380px) {
  .pd-trust-row { grid-template-columns: 1fr; }
}

/* === CLOSE / BACK BUTTON (fixed top-left on every detail page) === */
.pd-close {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 24, 31, 0.85);
  color: var(--white, #fff);
  border: 1.5px solid var(--charcoal-3, #2a3140);
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(.2,1.2,.3,1), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pd-close:hover {
  border-color: var(--lime, #D9FE06);
  color: var(--lime, #D9FE06);
  transform: translateX(-2px);
}
.pd-close:active { transform: scale(0.97); }
.pd-close svg { flex-shrink: 0; transition: transform 0.25s cubic-bezier(.2,1.4,.3,1); }
.pd-close:hover svg { transform: translateX(-3px); }
@media (max-width: 600px) {
  .pd-close { padding: 8px 14px 8px 10px; font-size: 13px; top: 10px; left: 10px; }
  .pd-close-label { display: none; }
  .pd-close { padding: 9px; border-radius: 50%; }
}

/* Static detail page — visible zoom button (top-right corner of stage) */
.pd-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 24, 31, 0.85);
  color: #fff;
  border: 1.5px solid var(--charcoal-3, #2a3140);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.2s cubic-bezier(.2,1.2,.3,1);
  -webkit-appearance: none;
  appearance: none;
}
.pd-zoom-btn:hover {
  border-color: var(--lime, #D9FE06);
  color: var(--lime, #D9FE06);
  transform: scale(1.08);
}
.pd-zoom-btn:active { transform: scale(0.96); }
.pd-zoom-btn svg { display: block; }
