/**
 * Product Description Styles for WooCommerce
 * 
 * Target: .woocommerce-Tabs-panel--description
 * Usage: Enqueue this stylesheet in your theme or add to theme CSS
 * 
 * Provides consistent styling for all product description sections
 * without inline styles for better performance and maintainability.
 */

/* ==========================================================================
   Base Description Container
   ========================================================================== */

.woocommerce-Tabs-panel--description {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.woocommerce-Tabs-panel--description h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
}

.woocommerce-Tabs-panel--description h2:first-of-type {
  margin-top: 0;
}

.woocommerce-Tabs-panel--description h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px 0;
}

.woocommerce-Tabs-panel--description p {
  margin: 15px 0;
  line-height: 1.8;
}

.woocommerce-Tabs-panel--description ul {
  margin: 20px 0 20px 20px;
  line-height: 1.8;
  list-style-type: disc;
}

.woocommerce-Tabs-panel--description ul li {
  margin: 10px 0;
}

.woocommerce-Tabs-panel--description strong {
  font-weight: 600;
  color: #222;
}

.woocommerce-Tabs-panel--description a {
  color: #18b7b7;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.woocommerce-Tabs-panel--description a:hover {
  color: #149999;
}

/* ==========================================================================
   Key Benefits Section
   ========================================================================== */

/* Target the first H3 after Product Overview H2 */
.woocommerce-Tabs-panel--description h2:nth-of-type(1) + p + p + p + p + h3 {
  background: #f7f7f7;
  border-left: 4px solid #22ff64;
  padding: 20px;
  margin: 30px 0 10px 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Style the UL that follows the benefits H3 */
.woocommerce-Tabs-panel--description h2:nth-of-type(1) + p + p + p + p + h3 + ul {
  background: #f7f7f7;
  border-left: 4px solid #22ff64;
  border-radius: 0 0 8px 8px;
  padding: 0 20px 20px 40px;
  margin: 0 0 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  list-style-position: outside;
}

/* Alternative: Use a wrapper approach if H3+UL pattern is consistent */
.woocommerce-Tabs-panel--description .benefits-section {
  background: #f7f7f7;
  border-left: 4px solid #22ff64;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-Tabs-panel--description .benefits-section h3 {
  margin-top: 0;
}

.woocommerce-Tabs-panel--description .benefits-section ul {
  margin: 15px 0 0 20px;
}

/* ==========================================================================
   Technical Specifications Table
   ========================================================================== */

/* Target the specs H2 and following content */
.woocommerce-Tabs-panel--description h2:nth-of-type(2) {
  background: #f7f7f7;
  border-left: 4px solid #224aff;
  padding: 20px 25px;
  margin: 40px 0 0 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.woocommerce-Tabs-panel--description h2:nth-of-type(2) + p,
.woocommerce-Tabs-panel--description h2:nth-of-type(2) + p + p,
.woocommerce-Tabs-panel--description h2:nth-of-type(2) + p + p + p {
  background: #f7f7f7;
  border-left: 4px solid #224aff;
  padding: 0 25px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Alternative: Wrapper class for specs section */
.woocommerce-Tabs-panel--description .specs-section {
  background: #f7f7f7;
  border-left: 4px solid #224aff;
  padding: 25px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-Tabs-panel--description .specs-section h2 {
  margin-top: 0;
  border-bottom: none;
}

.woocommerce-Tabs-panel--description .specs-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
}

.woocommerce-Tabs-panel--description .specs-section table thead {
  background: #f0f0f0;
}

.woocommerce-Tabs-panel--description .specs-section table th {
  text-align: left;
  padding: 12px 15px;
  font-weight: 700;
  border-bottom: 2px solid #ddd;
}

.woocommerce-Tabs-panel--description .specs-section table td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.woocommerce-Tabs-panel--description .specs-section table tbody tr:hover {
  background: #f9f9f9;
}

/* ==========================================================================
   Related Products Section
   ========================================================================== */

.woocommerce-Tabs-panel--description .related-products-section {
  background: #f7f7f7;
  border-left: 4px solid #18b7b7;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-Tabs-panel--description .related-products-section h3 {
  margin-top: 0;
  color: #18b7b7;
}

.woocommerce-Tabs-panel--description .related-products-section p {
  margin: 10px 0;
}

.woocommerce-Tabs-panel--description .related-products-section a {
  font-weight: bold;
}

/* ==========================================================================
   Complementary Products Section
   ========================================================================== */

.woocommerce-Tabs-panel--description .complementary-products-section {
  background: #f7f7f7;
  border-left: 4px solid #18b7b7;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-Tabs-panel--description .complementary-products-section h3 {
  margin-top: 0;
  color: #18b7b7;
}

.woocommerce-Tabs-panel--description .complementary-products-section strong {
  color: #18b7b7;
  display: block;
  margin: 20px 0 10px 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.woocommerce-Tabs-panel--description h2:last-of-type + h3 {
  color: #224aff;
  margin-top: 25px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .woocommerce-Tabs-panel--description h2 {
    font-size: 24px;
  }
  
  .woocommerce-Tabs-panel--description h3 {
    font-size: 20px;
  }
  
  .woocommerce-Tabs-panel--description .specs-section,
  .woocommerce-Tabs-panel--description .benefits-section,
  .woocommerce-Tabs-panel--description .related-products-section,
  .woocommerce-Tabs-panel--description .complementary-products-section {
    padding: 15px;
    margin: 20px 0;
  }
  
  .woocommerce-Tabs-panel--description .specs-section table {
    font-size: 14px;
  }
  
  .woocommerce-Tabs-panel--description .specs-section table th,
  .woocommerce-Tabs-panel--description .specs-section table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .woocommerce-Tabs-panel--description {
    font-size: 15px;
  }
  
  .woocommerce-Tabs-panel--description h2 {
    font-size: 22px;
  }
  
  .woocommerce-Tabs-panel--description h3 {
    font-size: 18px;
  }
}
