/* ==========================================================================
   MF PACK MOROCCO - PRODUCT DETAIL PAGE STYLES
   Design Lumineux, Moderne & Professionnel B2B
   ========================================================================== */

.page-product-detail {
  background-color: #F8FAFC;
  color: #1E293B;
}

.breadcrumb-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 0;
  font-size: 0.875rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748B;
}

.breadcrumb a {
  color: #135C33;
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  color: #94A3B8;
}

.breadcrumb .current {
  color: #0F172A;
  font-weight: 600;
}

.product-hero-section {
  padding: 48px 0 64px 0;
}

.product-layout-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 56px;
}

/* Gallery Box */
.product-gallery-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.main-image-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: #F1F5F9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8F0;
}

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

.sku-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #0F4C28;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #E2E8F0;
  cursor: pointer;
  background: #F8FAFC;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.thumb-img:hover, .thumb-img.active {
  border-color: #135C33;
  opacity: 1;
  transform: translateY(-2px);
}

.quality-guarantee-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guarantee-item .g-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.guarantee-item strong {
  display: block;
  font-size: 0.9rem;
  color: #0F172A;
  margin-bottom: 2px;
}

.guarantee-item p {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.35;
}

/* Product Info Box */
.product-info-box {
  display: flex;
  flex-direction: column;
}

.cat-label {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #135C33;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 16px;
}

.product-lead-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 22px;
}

.usages-callout {
  background: #F0FDF4;
  border-left: 4px solid #16A34A;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 0.925rem;
  color: #14532D;
  margin-bottom: 24px;
}

.usages-callout strong {
  color: #0F4C28;
}

.features-block {
  margin-bottom: 28px;
}

.features-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 14px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.45;
}

.check-icon {
  color: #16A34A;
  font-weight: 900;
  flex-shrink: 0;
}

/* Quote Action Card */
.quote-action-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 8px;
}

.quote-header h4 {
  font-size: 1.15rem;
  color: #0F172A;
  margin-bottom: 4px;
}

.quote-header p {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 18px;
}

.quote-buttons-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

/* Specs Table */
.specs-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 56px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.specs-section h2 {
  font-size: 1.5rem;
  color: #0F172A;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #E2E8F0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid #F1F5F9;
}

.specs-table th {
  width: 35%;
  background: #F8FAFC;
  color: #334155;
  font-weight: 600;
}

.specs-table td {
  color: #0F172A;
  font-weight: 500;
}

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

/* Related Section */
.related-section {
  margin-bottom: 32px;
}

.related-section h2 {
  font-size: 1.5rem;
  color: #0F172A;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: #CBD5E1;
}

.related-thumb-link {
  display: block;
  width: 100%;
  height: 180px;
  background: #F1F5F9;
  overflow: hidden;
}

.related-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.related-card:hover .related-thumb {
  transform: scale(1.05);
}

.related-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sku-badge {
  display: inline-block;
  align-self: flex-start;
  background: #F1F5F9;
  color: #0F4C28;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.related-info h4 {
  font-size: 1.05rem;
  color: #0F172A;
  margin-bottom: 8px;
}

.related-info h4 a {
  color: inherit;
  text-decoration: none;
}

.related-info h4 a:hover {
  color: #135C33;
}

.related-info p {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.link-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: #135C33;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .product-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-gallery-box {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .specs-table th {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .quality-guarantee-box {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .guarantee-item {
    gap: 12px;
  }

  .guarantee-item strong {
    font-size: 0.92rem;
  }

  .guarantee-item p {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .breadcrumb-bar {
    padding: 10px 0;
    font-size: 0.8rem;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .product-hero-section {
    padding: 16px 0 32px 0;
  }

  .product-gallery-box {
    padding: 16px;
    border-radius: 12px;
  }

  .main-image-wrap {
    height: 240px;
    padding: 10px;
  }

  .gallery-thumbs {
    gap: 8px;
    margin-top: 12px;
  }

  .thumb-img {
    width: 58px;
    height: 58px;
    border-radius: 6px;
  }

  .product-page-title {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .product-lead-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .usages-callout {
    padding: 12px 14px;
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .features-block {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
  }

  .features-block h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .features-list li {
    font-size: 0.88rem;
    gap: 8px;
  }

  .quote-action-card {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .quote-header h4 {
    font-size: 1.05rem;
  }

  .quote-header p {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .quote-buttons-row {
    flex-direction: column;
    gap: 10px;
  }

  .quote-buttons-row .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .specs-section {
    padding: 20px 16px;
    border-radius: 12px;
    margin-bottom: 36px;
  }

  .specs-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .specs-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .specs-table th, 
  .specs-table td {
    padding: 10px 12px;
    font-size: 0.825rem;
  }

  .specs-table th {
    width: 40%;
    white-space: nowrap;
  }

  .related-section h2 {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }
}
