/**
 * Dentaluck - Nha Khoa Mall Single Product Style
 * Inspired by Nha Khoa Mall layout & Dentaluck Medical Design System
 */

/* ==========================================================
   1. BREADCRUMBS (Nha Khoa Mall Style)
   ========================================================== */
.nhakhoamall-breadcrumb-wrapper {
  background-color: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 12px 0;
  margin-bottom: 24px;
}

.nhakhoamall-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748B;
}

.nhakhoamall-breadcrumbs a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nhakhoamall-breadcrumbs a:hover {
  color: #0284C7;
  text-decoration: underline;
}

.nhakhoamall-breadcrumbs .bc-sep {
  color: #94A3B8;
  font-size: 13px;
}

.nhakhoamall-breadcrumbs .bc-current {
  color: #0F172A;
  font-weight: 600;
}

/* ==========================================================
   2. MAIN PRODUCT BOX
   ========================================================== */
.pBox {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 32px;
}

/* Title & Header Meta */
.proDetail-title {
  font-size: 26px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 12px;
}

.pInfo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13.5px;
  color: #475569;
}

.pInfo-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pInfo-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0284C7;
}

.pInfo-brand a {
  color: #0284C7;
  text-decoration: none;
}

.pInfo-brand a:hover {
  text-decoration: underline;
}

.pInfo-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #F59E0B;
}

.pInfo-rating .rating-num {
  font-weight: 700;
  color: #0F172A;
}

.pInfo-views {
  color: #64748B;
}

.pInfo-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #16A34A;
  background: #DCFCE7;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
}

/* ==========================================================
   3. 2-COLUMN HERO LAYOUT (Gallery & Details)
   ========================================================== */
.proDetail-hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

/* Left Gallery */
.proImg-gallery {
  display: flex;
  gap: 14px;
}

.gBox-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 76px;
  max-height: 440px;
  overflow-y: auto;
}

.tItem {
  width: 74px;
  height: 74px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tItem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tItem:hover,
.tItem.active {
  border-color: #0284C7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.gBox-main {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  position: relative;
  min-height: 420px;
  max-height: 480px;
}

.gBox-main img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gBox-main:hover img {
  transform: scale(1.04);
}

.badge-official {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Right Summary & Purchasing */
.proSummary-col {
  display: flex;
  flex-direction: column;
}

.short-description {
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
  background: #F8FAFC;
  border-left: 3px solid #0284C7;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

/* 2 Support & Feature Boxes */
.pFeatures-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pFeature-box {
  background: #EFF6FF;
  border: 1px dashed #93C5FD;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1E40AF;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pFeature-box .box-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1D4ED8;
}

.pSupport-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #166534;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pSupport-box .support-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pSupport-box svg,
.pFeature-box svg {
  flex-shrink: 0;
}

/* Variant & Pricing Table (Nha Khoa Mall Style) */
.variant-table-wrap {
  margin-bottom: 24px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}

.nhakhoamall-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.nhakhoamall-table thead {
  background: #F1F5F9;
  border-bottom: 2px solid #E2E8F0;
}

.nhakhoamall-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
}

.nhakhoamall-table td {
  padding: 12px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.nhakhoamall-table tr:hover {
  background-color: #F8FAFC;
}

.nhakhoamall-table .col-thumb img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

.nhakhoamall-table .col-name {
  font-weight: 600;
  color: #0F172A;
}

.nhakhoamall-table .col-unit {
  color: #64748B;
}

.nhakhoamall-table .col-price {
  font-weight: 700;
  color: #DC2626;
  font-size: 14.5px;
}

.nhakhoamall-table .col-price del {
  color: #94A3B8;
  font-size: 12px;
  font-weight: normal;
  display: block;
}

.nhakhoamall-table .col-price .percent-tag {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  display: inline-block;
  margin-top: 2px;
}

/* Stepper Quantity (- 1 +) */
.damount-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
}

.damount-btn {
  background: #F8FAFC;
  border: none;
  width: 28px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: background 0.15s;
}

.damount-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.damount-input {
  width: 42px;
  height: 30px;
  border: none;
  border-left: 1px solid #CBD5E1;
  border-right: 1px solid #CBD5E1;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
  color: #0F172A;
  padding: 0;
}

.damount-input:focus {
  outline: none;
}

/* Action Buttons */
.btn-table-cart {
  background: #F59E0B;
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-table-cart:hover {
  background: #D97706;
}

/* Standalone Pricing Box (when not using multi-row table) */
.product-price-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.price-row-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.price-current-large {
  font-size: 28px;
  font-weight: 800;
  color: #DC2626;
}

.price-regular-large {
  font-size: 16px;
  color: #94A3B8;
  text-decoration: line-through;
}

.price-discount-pill {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Big Action Row */
.product-big-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-add-cart-large {
  flex: 1;
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  text-decoration: none;
}

.btn-add-cart-large:hover {
  background: #0369A1;
  transform: translateY(-1px);
}

.btn-buy-now-large {
  flex: 1;
  background: #EA580C;
  color: #FFFFFF;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
  text-decoration: none;
}

.btn-buy-now-large:hover {
  background: #C2410C;
  transform: translateY(-1px);
}

/* Hotline Support Banner */
.product-hotline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
}

.product-hotline-bar .hotline-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0369A1;
  font-weight: 600;
}

.product-hotline-bar .hotline-phone-link {
  color: #DC2626;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

/* ==========================================================
   4. CONTENT TABS (Overview, Description, Specs, Reviews)
   ========================================================== */
.proDetail-content-section {
  margin-top: 36px;
}

.proDetail-tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 24px;
}

.tab-nav-item {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tab-nav-item:hover {
  color: #0284C7;
}

.tab-nav-item.active {
  color: #0284C7;
  font-weight: 700;
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #0284C7;
}

.tab-pane {
  display: none;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.tab-pane.active {
  display: block;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.specs-table tr {
  border-bottom: 1px solid #F1F5F9;
}

.specs-table tr:nth-child(odd) {
  background-color: #F8FAFC;
}

.specs-table th {
  width: 220px;
  padding: 10px 14px;
  color: #475569;
  font-weight: 600;
  text-align: left;
}

.specs-table td {
  padding: 10px 14px;
  color: #0F172A;
}

/* Description Typography */
.tab-pane h2, .tab-pane h3 {
  color: #0F172A;
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.tab-pane p {
  margin-bottom: 14px;
}

.tab-pane ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.tab-pane li {
  margin-bottom: 6px;
}

/* Tags Section (nTag) */
.nTag-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  color: #64748B;
}

.nTag-wrapper a {
  background: #F1F5F9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.nTag-wrapper a:hover {
  background: #0284C7;
  color: #FFFFFF;
}

/* ==========================================================
   5. RELATED PRODUCTS SECTION (pRelated)
   ========================================================== */
.pRelated-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid #F1F5F9;
}

.pRelated-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pRelated-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* ==========================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================== */
@media (max-width: 1024px) {
  .proDetail-hero-grid {
    grid-template-columns: 380px 1fr;
    gap: 24px;
  }
  .gBox-main {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .pBox {
    padding: 18px 14px;
  }
  .proDetail-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proImg-gallery {
    flex-direction: column-reverse;
  }
  .gBox-thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
  }
  .pFeatures-row {
    grid-template-columns: 1fr;
  }
  .product-big-actions {
    flex-direction: column;
  }
  .btn-add-cart-large,
  .btn-buy-now-large {
    width: 100%;
  }
  .tab-nav-item {
    padding: 10px 14px;
    font-size: 13.5px;
  }
}
