/* Microlab-style Product Detail — Janosci */
.pdp-ml {
  --pdp-navy: #0d1b4b;
  --pdp-blue: #1677ff;
  --pdp-gold: #f5b301;
  --pdp-border: #e2e8f0;
  --pdp-muted: #64748b;
  background: #ffffff;
  padding-bottom: 3rem;
}
.pdp-ml .container { max-width: 1180px; }
.pdp-ml-crumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--pdp-muted);
}
.pdp-ml-crumb a { color: var(--pdp-muted); text-decoration: none; }
.pdp-ml-crumb a:hover { color: var(--pdp-blue); }
.pdp-ml-crumb .sep { margin: 0 0.35rem; opacity: 0.5; }
.pdp-ml-crumb .current { color: var(--pdp-navy); font-weight: 700; }

.pdp-ml-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.pdp-ml-gallery {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: none;
  position: sticky;
  top: 90px;
}
.pdp-ml-gallery-grid { display: flex; gap: 0.85rem; align-items: flex-start; }
.pdp-ml-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 72px;
  max-height: 420px;
  overflow-y: auto;
}
.pdp-ml-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 2px solid var(--pdp-border);
  background: #fff;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}
.pdp-ml-thumb.active { border-color: var(--pdp-blue); }
.pdp-ml-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-ml-main {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--pdp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
}
.pdp-ml-main img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  padding: 1.25rem;
}

.pdp-ml-buy {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  box-shadow: none;
}
.pdp-ml-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.65rem; }
.pdp-ml-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}
.pdp-ml-badge.muted { background: #f1f5f9; color: #64748b; }
.pdp-ml-title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pdp-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pdp-ml-sku {
  font-size: 0.8rem;
  color: var(--pdp-muted);
  margin-bottom: 0.75rem;
}
.pdp-ml-sku strong { color: #334155; }
.pdp-ml-short {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.pdp-ml-rating {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  color: var(--pdp-muted);
}
.pdp-ml-rating .stars { color: #f59e0b; }
.pdp-ml-pricebox {
  background: #f8fafc;
  border: 1px solid var(--pdp-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.pdp-ml-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.pdp-ml-price .now {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pdp-navy);
}
.pdp-ml-price .was {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 1rem;
}
.pdp-ml-price .off {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.pdp-ml-pricebox p {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: var(--pdp-muted);
}
.pdp-ml-stock { font-size: 0.84rem; font-weight: 700; margin-bottom: 1rem; }
.pdp-ml-stock.in { color: #16a34a; }
.pdp-ml-stock.low { color: #d97706; }
.pdp-ml-stock.out { color: #dc2626; }

.pdp-ml-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.pdp-ml-qty-ctrl {
  display: inline-flex;
  border: 1.5px solid var(--pdp-border);
  border-radius: 10px;
  overflow: hidden;
}
.pdp-ml-qty-ctrl button {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
}
.pdp-ml-qty-ctrl input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 700;
}
.pdp-ml-actions { display: grid; gap: 0.55rem; margin-bottom: 0.85rem; }
.pdp-ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border-radius: 11px;
  padding: 0.78rem 1rem;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.pdp-ml-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.pdp-ml-btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0d1b4b;
}
.pdp-ml-btn-outline {
  background: #fff;
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
}
.pdp-ml-btn-wa {
  background: #25d366;
  color: #fff;
}
.pdp-ml-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.pdp-ml-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.pdp-ml-trust div {
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.55rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pdp-muted);
}
.pdp-ml-trust i { display: block; color: var(--pdp-blue); margin-bottom: 0.25rem; font-size: 0.9rem; }

.pdp-ml-tabs-wrap {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.pdp-ml-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--pdp-border);
  background: #f8fafc;
}
.pdp-ml-tab {
  border: none;
  background: transparent;
  padding: 0.9rem 1.15rem;
  font-weight: 800;
  font-size: 0.84rem;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pdp-ml-tab.active {
  color: var(--pdp-navy);
  border-bottom-color: var(--pdp-blue);
  background: #fff;
}
.pdp-ml-panel { display: none; padding: 1.35rem 1.4rem; }
.pdp-ml-panel.active { display: block; }
.pdp-ml-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--pdp-navy);
}
.pdp-ml-panel p, .pdp-ml-panel li {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
}
.pdp-ml-list { margin: 0; padding-left: 1.15rem; }
.pdp-ml-list li { margin-bottom: 0.45rem; }
.pdp-ml-spec {
  width: 100%;
  border-collapse: collapse;
}
.pdp-ml-spec th,
.pdp-ml-spec td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.pdp-ml-spec th {
  width: 38%;
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
}
.pdp-ml-spec td { color: #0f172a; font-weight: 600; }
.pdp-ml-faq details {
  border: 1px solid var(--pdp-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.55rem;
  background: #fafbfc;
}
.pdp-ml-faq summary {
  font-weight: 800;
  color: var(--pdp-navy);
  cursor: pointer;
  font-size: 0.9rem;
}
.pdp-ml-faq p { margin: 0.55rem 0 0; }
.pdp-ml-why {
  background: linear-gradient(135deg, #0d1b4b, #1e3a8a);
  color: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.5rem;
}
.pdp-ml-why h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.pdp-ml-why ul { margin: 0; padding-left: 1.1rem; }
.pdp-ml-why li { margin-bottom: 0.4rem; font-size: 0.88rem; opacity: 0.92; }
.pdp-ml-related h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--pdp-navy);
}

.pdp-ml-quote {
  font-size: 1.35rem !important;
  color: var(--pdp-blue) !important;
}
.pdp-ml-quote-note {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pdp-muted);
  margin-top: 0.15rem;
}
.pdp-ml-quote-actions {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.pdp-ml-prose {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
  max-width: 920px;
}
.pdp-ml-prose p { margin: 0 0 0.85rem; }
.pdp-ml-prose h2, .pdp-ml-prose h3 {
  color: var(--pdp-navy);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}
.pdp-ml-prose ul, .pdp-ml-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.pdp-ml-prose li { margin-bottom: 0.35rem; }
.pdp-ml-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.86rem;
}
.pdp-ml-prose th, .pdp-ml-prose td {
  border: 1px solid var(--pdp-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}
.pdp-ml-prose th { background: #f8fafc; font-weight: 700; }
.pdp-ml-prose hr { border: none; border-top: 1px solid var(--pdp-border); margin: 1.25rem 0; }
.pdp-ml-prose strong { color: #0f172a; }
.pdp-ml-muted { color: var(--pdp-muted); }

.pdp-ml-btn-primary {
  background: linear-gradient(135deg, #1677ff, #0958d9);
}

@media (max-width: 900px) {
  .pdp-ml-top { grid-template-columns: 1fr; }
  .pdp-ml-gallery { position: static; }
  .pdp-ml-gallery-grid { flex-direction: column-reverse; }
  .pdp-ml-thumbs { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; }
  .pdp-ml-trust { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .pdp-ml-row2 { grid-template-columns: 1fr; }
  .pdp-ml-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .pdp-ml-tab { white-space: nowrap; }
}
