/* =========================================================
   60-tabs.css — BeautyTrouvailles Product Tabs
   Version: 3.0 — Clean Tab System
   
   Contents:
   1. Section Container
   2. Tab Buttons
   3. Tab Panels
   4. Description Content
   5. Details Table
   6. Shipping Info
   7. Reviews Summary
   ========================================================= */

/* =========================
   1. SECTION CONTAINER
   ========================= */
.bt-custom-product-page .bt-tabs-section {
  padding: var(--bt-section-pad) 0;
}

/* =========================
   2. TAB BUTTONS
   ========================= */
.bt-custom-product-page .bt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bt-space-3);
  align-items: center;
  margin-bottom: var(--bt-space-4);
}

.bt-custom-product-page .bt-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--bt-space-2);
  
  padding: var(--bt-space-3) var(--bt-space-4);
  border-radius: var(--bt-radius-full);
  border: 1px solid var(--bt-border);
  background: var(--bt-bg-card);
  
  font-family: var(--bt-font-body);
  font-weight: 900;
  font-size: var(--bt-text-sm);
  color: var(--bt-navy);
  white-space: nowrap;
  cursor: pointer;
  
  box-shadow: var(--bt-shadow-xs);
  transition: transform var(--bt-transition-base),
              box-shadow var(--bt-transition-base),
              background var(--bt-transition-base),
              border-color var(--bt-transition-base);
}

.bt-custom-product-page .bt-tab i {
  color: var(--bt-pink);
  font-size: var(--bt-text-base);
  line-height: 1;
}

.bt-custom-product-page .bt-tab svg {
  width: 16px;
  height: 16px;
  color: var(--bt-pink);
}

.bt-custom-product-page .bt-tab:hover {
  transform: translateY(-1px);
  border-color: var(--bt-pink-border);
  box-shadow: var(--bt-shadow-sm);
}

.bt-custom-product-page .bt-tab.active {
  background: var(--bt-pink-subtle);
  border-color: var(--bt-pink-border);
  box-shadow: 0 10px 24px rgba(212, 20, 90, 0.12);
}

.bt-custom-product-page .bt-tab:focus-visible {
  outline: 2px solid var(--bt-pink);
  outline-offset: 2px;
}

/* =========================
   3. TAB PANELS
   ========================= */
.bt-custom-product-page .bt-tab-content {
  display: none;
  padding: var(--bt-card-padding);
  border-radius: var(--bt-card-radius);
  background: var(--bt-bg-card);
  border: var(--bt-card-border);
  box-shadow: var(--bt-shadow-card);
  
  /* Smooth entry */
  animation: bt-fade-in 0.2s ease-out;
}

.bt-custom-product-page .bt-tab-content.active {
  display: block;
}

@keyframes bt-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   4. DESCRIPTION CONTENT
   Handles WooCommerce rich text with:
   - Emoji-prefixed headings
   - Bulleted lists with emojis
   - Bold highlights
   - Proper text hierarchy
   ========================= */
.bt-custom-product-page .bt-description-content {
  font-weight: 500;
  font-size: var(--bt-text-base);
  color: var(--bt-text);
  line-height: var(--bt-leading-relaxed);
}

/* Paragraphs */
.bt-custom-product-page .bt-description-content p {
  margin-bottom: var(--bt-space-4);
}

.bt-custom-product-page .bt-description-content p:last-child {
  margin-bottom: 0;
}

/* === HEADINGS === */
/* All headings get consistent, moderate sizing */
.bt-custom-product-page .bt-description-content h1,
.bt-custom-product-page .bt-description-content h2,
.bt-custom-product-page .bt-description-content h3,
.bt-custom-product-page .bt-description-content h4 {
  font-family: var(--bt-font-body);
  font-weight: 800;
  color: var(--bt-navy);
  line-height: var(--bt-leading-snug);
  margin-top: var(--bt-space-6);
  margin-bottom: var(--bt-space-3);
}

/* First heading doesn't need top margin */
.bt-custom-product-page .bt-description-content > h1:first-child,
.bt-custom-product-page .bt-description-content > h2:first-child,
.bt-custom-product-page .bt-description-content > h3:first-child,
.bt-custom-product-page .bt-description-content > h4:first-child {
  margin-top: 0;
}

/* Size scale - intentionally compressed */
.bt-custom-product-page .bt-description-content h1 {
  font-size: var(--bt-text-xl); /* 18px */
}

.bt-custom-product-page .bt-description-content h2 {
  font-size: var(--bt-text-lg); /* 16px */
}

.bt-custom-product-page .bt-description-content h3,
.bt-custom-product-page .bt-description-content h4 {
  font-size: var(--bt-text-md); /* 15px */
}

/* === LISTS === */
.bt-custom-product-page .bt-description-content ul,
.bt-custom-product-page .bt-description-content ol {
  margin: var(--bt-space-3) 0;
  padding-left: var(--bt-space-5);
}

.bt-custom-product-page .bt-description-content li {
  margin-bottom: var(--bt-space-2);
  padding-left: var(--bt-space-1);
}

.bt-custom-product-page .bt-description-content li:last-child {
  margin-bottom: 0;
}

/* Remove default bullets when content has emojis */
.bt-custom-product-page .bt-description-content ul {
  list-style: disc;
}

/* === BOLD TEXT === */
.bt-custom-product-page .bt-description-content strong,
.bt-custom-product-page .bt-description-content b {
  font-weight: 700;
  color: var(--bt-navy);
}

/* === UNDERLINE === */
.bt-custom-product-page .bt-description-content u {
  text-underline-offset: 2px;
}

/* === LINKS === */
.bt-custom-product-page .bt-description-content a {
  color: var(--bt-pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--bt-transition-fast);
}

.bt-custom-product-page .bt-description-content a:hover {
  color: var(--bt-pink-600);
}

/* === EMOJI LINES (no bullet) === 
   Lines that start with emoji get special treatment */
.bt-custom-product-page .bt-description-content p:has(> br),
.bt-custom-product-page .bt-description-content div {
  /* Lines broken by <br> tags */
}

/* === STYLED BLOCKS === 
   Important notes, warnings, highlights */
.bt-custom-product-page .bt-description-content blockquote {
  margin: var(--bt-space-4) 0;
  padding: var(--bt-space-4);
  padding-left: var(--bt-space-5);
  border-left: 3px solid var(--bt-pink);
  background: var(--bt-pink-subtle);
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
  font-style: normal;
}

/* === HORIZONTAL RULE === */
.bt-custom-product-page .bt-description-content hr {
  border: none;
  height: 1px;
  background: var(--bt-border);
  margin: var(--bt-space-5) 0;
}

/* === IMAGES IN DESCRIPTION === */
.bt-custom-product-page .bt-description-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bt-radius-md);
  margin: var(--bt-space-4) 0;
}

/* === TABLE IN DESCRIPTION === */
.bt-custom-product-page .bt-description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--bt-space-4) 0;
  font-size: var(--bt-text-sm);
}

.bt-custom-product-page .bt-description-content table th,
.bt-custom-product-page .bt-description-content table td {
  padding: var(--bt-space-3);
  border: 1px solid var(--bt-border);
  text-align: left;
}

.bt-custom-product-page .bt-description-content table th {
  background: var(--bt-bg-soft);
  font-weight: 700;
  color: var(--bt-navy);
}

/* === RESPONSIVE === */
@media (max-width: 520px) {
  .bt-custom-product-page .bt-description-content {
    font-size: 14px;
    line-height: 1.7;
  }
  
  .bt-custom-product-page .bt-description-content h1 {
    font-size: var(--bt-text-lg);
  }
  
  .bt-custom-product-page .bt-description-content h2,
  .bt-custom-product-page .bt-description-content h3,
  .bt-custom-product-page .bt-description-content h4 {
    font-size: var(--bt-text-md);
  }
}

/* =========================
   5. DETAILS TABLE
   ========================= */
.bt-custom-product-page .bt-details-table {
  width: 100%;
  border-collapse: collapse;
}

.bt-custom-product-page .bt-details-table th,
.bt-custom-product-page .bt-details-table td {
  text-align: left;
  padding: var(--bt-space-3) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  font-size: var(--bt-text-base);
  vertical-align: top;
}

.bt-custom-product-page .bt-details-table th {
  width: 180px;
  font-weight: 900;
  color: var(--bt-navy);
  padding-right: var(--bt-space-4);
}

.bt-custom-product-page .bt-details-table td {
  font-weight: 700;
  color: var(--bt-text-secondary);
}

.bt-custom-product-page .bt-details-table tr:last-child th,
.bt-custom-product-page .bt-details-table tr:last-child td {
  border-bottom: none;
}

/* =========================
   6. SHIPPING INFO
   ========================= */
.bt-custom-product-page .bt-shipping-info {
  display: grid;
  gap: var(--bt-space-3);
}

/* Shipping option card */
.bt-custom-product-page .bt-shipping-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--bt-space-4);
  align-items: center;
  
  padding: var(--bt-space-4);
  border-radius: var(--bt-radius-xl);
  border: 1px solid var(--bt-border);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.98));
  box-shadow: var(--bt-shadow-sm);
  
  transition: transform var(--bt-transition-base),
              box-shadow var(--bt-transition-base),
              border-color var(--bt-transition-base);
}

.bt-custom-product-page .bt-shipping-option:hover {
  transform: translateY(-2px);
  border-color: var(--bt-pink-border);
  box-shadow: var(--bt-shadow-md);
}

/* Shipping icon */
.bt-custom-product-page .bt-shipping-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  
  display: grid;
  place-items: center;
  
  border-radius: var(--bt-radius-xl);
  background: var(--bt-pink-subtle);
  border: 1px solid var(--bt-pink-border);
  box-shadow: 0 8px 20px rgba(212, 20, 90, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  
  color: var(--bt-pink);
}

.bt-custom-product-page .bt-shipping-icon i {
  font-size: 20px;
}

.bt-custom-product-page .bt-shipping-icon svg,
.bt-custom-product-page .bt-ship-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bt-custom-product-page .bt-ship-svg--sm {
  width: 18px;
  height: 18px;
}

/* Shipping details */
.bt-custom-product-page .bt-shipping-details {
  min-width: 0;
  display: grid;
  gap: var(--bt-space-1);
}

.bt-custom-product-page .bt-shipping-details h4 {
  margin: 0;
  font-family: var(--bt-font-body);
  font-weight: 950;
  font-size: var(--bt-text-xl);
  color: var(--bt-navy);
  letter-spacing: 0.1px;
  line-height: var(--bt-leading-tight);
}

.bt-custom-product-page .bt-shipping-details p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--bt-space-2);
  flex-wrap: wrap;
  
  font-weight: 700;
  font-size: var(--bt-text-base);
  color: var(--bt-muted);
  line-height: var(--bt-leading-snug);
}

/* Price chip in shipping */
.bt-custom-product-page .bt-shipping-details p strong {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: var(--bt-radius-full);
  
  background: var(--bt-pink-subtle);
  border: 1px solid var(--bt-pink-border);
  
  font-weight: 950;
  font-size: var(--bt-text-sm);
  color: var(--bt-navy);
  white-space: nowrap;
  line-height: 1;
}

/* Free shipping note */
.bt-custom-product-page .bt-shipping-note {
  display: flex;
  align-items: center;
  gap: var(--bt-space-3);
  
  padding: var(--bt-space-4);
  border-radius: var(--bt-radius-lg);
  background: var(--bt-success-bg);
  border: 1px solid var(--bt-success-border);
  
  font-weight: 900;
  font-size: var(--bt-text-base);
  color: var(--bt-green-800);
  line-height: var(--bt-leading-snug);
}

.bt-custom-product-page .bt-shipping-note i,
.bt-custom-product-page .bt-shipping-note svg,
.bt-custom-product-page .bt-shipping-note-icon {
  color: var(--bt-success);
  flex-shrink: 0;
}

.bt-custom-product-page .bt-shipping-note strong {
  font-weight: 950;
}

/* =========================
   7. REVIEWS SUMMARY
   ========================= */
.bt-custom-product-page .bt-reviews-summary {
  display: grid;
  gap: var(--bt-space-3);
  margin-bottom: var(--bt-space-4);
}

.bt-custom-product-page .bt-rating-big {
  padding: var(--bt-space-4);
  border-radius: var(--bt-radius-xl);
  border: 1px solid var(--bt-border);
  background: var(--bt-pink-subtle);
  box-shadow: var(--bt-shadow-xs);
}

.bt-custom-product-page .bt-rating-number {
  font-size: var(--bt-text-4xl);
  font-weight: 900;
  color: var(--bt-navy);
  line-height: 1;
}

.bt-custom-product-page .bt-rating-stars {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: var(--bt-space-2);
}

.bt-custom-product-page .bt-rating-stars i {
  color: var(--bt-amber-500);
  font-size: var(--bt-text-lg);
}

.bt-custom-product-page .bt-rating-count {
  display: block;
  margin-top: var(--bt-space-3);
  font-weight: 800;
  font-size: var(--bt-text-sm);
  color: var(--bt-muted);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 767px) {
  .bt-custom-product-page .bt-details-table th {
    width: 140px;
  }
  
  .bt-custom-product-page .bt-shipping-option {
    gap: var(--bt-space-3);
    padding: var(--bt-space-3);
  }
  
  .bt-custom-product-page .bt-shipping-icon {
    width: 50px;
    height: 50px;
  }
  
  .bt-custom-product-page .bt-shipping-details h4 {
    font-size: var(--bt-text-lg);
  }
  
  /* Price badge on own line on mobile */
  .bt-custom-product-page .bt-shipping-details p strong {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .bt-custom-product-page .bt-tab {
    padding: var(--bt-space-2) var(--bt-space-3);
    font-size: var(--bt-text-xs);
  }
  
  .bt-custom-product-page .bt-tab-content {
    padding: var(--bt-space-4);
  }
  
  .bt-custom-product-page .bt-details-table th,
  .bt-custom-product-page .bt-details-table td {
    font-size: var(--bt-text-sm);
  }
}