/* =============================================
   product_detail.css
   Dental PDP — Premium redesign
   ============================================= */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- Page wrapper ---- */
.pdp {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: #f0f2f5;
  padding: 32px 24px 60px;
  min-height: 100vh;
  color: #1a1a1a;
}

.pdp-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

/* ---- Breadcrumb ---- */
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
  margin-bottom: 22px;
}

.crumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.crumb a:hover {
  color: #185FA5;
}

.crumb span {
  color: #ccc;
}

.crumb .crumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

/* ---- Main grid ---- */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: start;
}

/* =============================================
   IMAGE PANEL
   ============================================= */
.img-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #042C53;
  color: #B5D4F4;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-img {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  overflow: hidden;
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  transition: transform 0.35s ease;
}

.main-img img:hover {
  transform: scale(1.05);
}

.thumb-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #f0f0f0;
}

.thumb {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f7f8fa;
}

.thumb:hover {
  border-color: #378ADD;
}

.thumb.active {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* =============================================
   INFO PANEL
   ============================================= */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pill badges */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.pill-blue  { background: #E6F1FB; color: #185FA5; }
.pill-green { background: #EAF3DE; color: #3B6D11; }
.pill-red   { background: #FCEBEB; color: #A32D2D; }
.pill-amber { background: #FAEEDA; color: #854F0B; }

/* Product name */
.product-name {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  line-height: 1.25;
  color: #111;
  font-weight: 400;
}

/* Sub label */
.product-sub {
  font-size: 13px;
  color: #888;
  margin-top: -8px;
}

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: flex;
  gap: 3px;
}

.star {
  width: 14px;
  height: 14px;
  background: #EF9F27;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2%  35%, 39% 35%
  );
}

.star.half {
  background: linear-gradient(90deg, #EF9F27 50%, #ddd 50%);
}

.star.empty {
  background: #ddd;
}

.rat-count {
  font-size: 13px;
  color: #888;
}

/* Divider */
.divider {
  height: 1px;
  background: #f0f0f0;
}

/* Price block */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 30px;
  font-weight: 500;
  color: #111;
  letter-spacing: -0.5px;
}

.price-old {
  font-size: 16px;
  color: #aaa;
  text-decoration: line-through;
}

.price-off {
  font-size: 13px;
  font-weight: 500;
  background: #EAF3DE;
  color: #3B6D11;
  padding: 3px 9px;
  border-radius: 5px;
}

/* Stock status */
.stock-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: #639922; }
.dot-red   { background: #E24B4A; }

.stock-label {
  font-size: 13px;
  color: #555;
}

.stock-label.stock-out {
  color: #A32D2D;
}

/* Quantity selector */
.qty-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-label {
  font-size: 13px;
  color: #666;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-num {
  width: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border: none;
  background: none;
  color: #111;
  font-family: 'DM Sans', sans-serif;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  outline: none;
}

/* Action buttons */
.action-outer {
  display: flex;
  gap: 10px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.btn-cart {
  padding: 12px 10px;
  border: 1.5px solid #185FA5;
  background: none;
  color: #185FA5;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-cart:hover {
  background: #185FA5;
  color: #fff;
}

.btn-buy {
  padding: 12px 10px;
  border: none;
  background: #185FA5;
  color: #fff;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-buy:hover {
  background: #0C447C;
}

.btn-wish {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-self: start;
  padding: 0;
  border: 1px solid #ddd;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.btn-wish:hover {
  border-color: #D4537E;
  color: #D4537E;
}

/* Delivery trust strip */
.delivery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.del-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 10px 12px;
}

.del-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #555;
}

.del-text p {
  font-size: 12px;
  font-weight: 500;
  color: #222;
  margin: 0 0 2px;
}

.del-text span {
  font-size: 11px;
  color: #888;
}

/* Highlights */
.highlights {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 16px;
}

.h-head {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
}

.h-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.h-list li {
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E6F1FB;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check svg {
  width: 9px;
  height: 9px;
}

/* =============================================
   DESCRIPTION TABS
   ============================================= */
.desc-section {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
}

.desc-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.tab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
  color: #333;
}

.tab.active {
  color: #185FA5;
  border-bottom-color: #185FA5;
  background: #fff;
}

.tab-content {
  display: none;
  padding: 28px;
  animation: fadeIn 0.2s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tc-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #111;
  margin-bottom: 12px;
}

.tc-p {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 20px;
}

.tc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tc-card {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tc-card-icon {
  width: 34px;
  height: 34px;
  background: #E6F1FB;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-card p {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  margin: 0 0 3px;
}

.tc-card span {
  font-size: 12px;
  color: #888;
}

/* Specifications table */
.spec-table {
  margin-top: 8px;
}

.spec-row {
  display: flex;
  border-bottom: 1px solid #f2f2f2;
  padding: 12px 0;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-k {
  font-size: 13px;
  color: #888;
  width: 180px;
  flex-shrink: 0;
}

.spec-v {
  font-size: 13px;
  color: #111;
  font-weight: 500;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
  }

  .main-img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .pdp {
    padding: 20px 14px 40px;
  }

  .product-name {
    font-size: 22px;
  }

  .price-now {
    font-size: 26px;
  }

  .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .tc-grid {
    grid-template-columns: 1fr;
  }

  .delivery-strip {
    grid-template-columns: 1fr;
  }

  .tab {
    padding: 12px 14px;
    font-size: 13px;
  }

  .tab-content {
    padding: 20px 16px;
  }
}