/* ============================================================
   FLORA77 - Product Detail (product-detail.css)
   Additional product detail page styles
   ============================================================ */

/* ── Thumb Gallery ── */
.pd-thumb-gallery {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.pd-thumb-gallery::-webkit-scrollbar { height: 4px; }
.pd-thumb-gallery::-webkit-scrollbar-thumb {
  background: var(--border, rgba(255,255,255,0.08));
  border-radius: 4px;
}

.pd-thumb-btn {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1.5px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-surface, #16213e);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
  padding: 4px;
}

.pd-thumb-btn:hover { border-color: var(--accent-light, #4ade80); }
.pd-thumb-btn.active { border-color: var(--accent, #22c55e); border-width: 2px; }

.pd-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Mobile Slider ── */
.pd-mobile-slider-wrapper {
  display: none;
  position: relative;
}

.pd-mobile-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.pd-mobile-slider::-webkit-scrollbar { display: none; }

.pd-mslide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary, #0a0a1a);
  aspect-ratio: 1/1;
}

.pd-mslide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.pd-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .pd-mobile-slider-wrapper { display: block; }
  .pd-thumb-gallery { display: none; }
  .pd-main-image { display: none; }
}

/* ── Payment Installment ── */
.inst-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.inst-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
  margin: 0;
}

.inst-head-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(34,197,94,0.15);
  color: var(--accent, #22c55e);
  font-weight: 600;
}

.inst-bank-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.bank-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-surface, #16213e);
  color: var(--text-muted, #6b6b80);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bank-tab.active {
  background: rgba(34,197,94,0.1);
  border-color: var(--accent, #22c55e);
  color: var(--accent, #22c55e);
}

.inst-month-list { display: flex; flex-direction: column; gap: 6px; }

.inst-month-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface, #16213e);
  border-radius: 8px;
  font-size: 13px;
}

.tenor-badge {
  background: var(--accent, #22c55e);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.amount { flex: 1; color: var(--text-primary, #e8e8f0); font-weight: 600; }

.tag-zero {
  background: rgba(34,197,94,0.15);
  color: var(--accent, #22c55e);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.inst-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--accent, #22c55e);
}

.inst-disclaimer {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted, #6b6b80);
  font-style: italic;
}

/* ── Alt Installment Banner ── */
.inst-alt-banner--compact {
  padding: 16px;
}

.iab-top { text-align: center; margin-bottom: 10px; }

.iab-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #22c55e);
  margin-bottom: 2px;
}

.iab-sub { font-size: 11px; color: var(--text-muted, #6b6b80); }

.iab-logos-compact {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.logo-fin {
  height: 20px;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.iab-cta--compact {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--accent, #22c55e);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.iab-footnote--compact {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted, #6b6b80);
  margin-top: 6px;
}

/* ── Voucher Minimal ── */
.pd-voucher-minimal {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdv-min-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdv-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent, #22c55e), var(--accent-dark, #16a34a));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.pdv-badge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow, rgba(34,197,94,0.3));
}

.pdv-badge-icon { color: #fff; flex-shrink: 0; }

.pdv-badge-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.pdv-badge-code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.pdv-min-copy {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-surface, #16213e);
  color: var(--accent, #22c55e);
  cursor: pointer;
}

.pdv-min-copy:hover {
  background: var(--accent, #22c55e);
  color: #fff;
  border-color: var(--accent, #22c55e);
}

.pdv-min-copy.copied {
  background: var(--accent, #22c55e);
  color: #fff;
}

/* ── Product Compare Section ── */
.pd-compare-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg-surface, #16213e);
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.pd-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  color: var(--text-secondary, #a0a0b8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pd-compare-btn:hover {
  border-color: var(--accent, #22c55e);
  color: var(--accent, #22c55e);
}

.compare-note {
  font-size: 11px;
  color: var(--text-muted, #6b6b80);
}

@media (max-width: 640px) {
  .pd-thumb-gallery { display: none; }
  .pd-compare-section { display: none; }
}
