/**
 * StoreMage - Frontend Styles
 * Styles for WooCommerce product display pages
 */

/* ====================================
   Product Details (Definition Lists)
   Modern Card/Table Style
   ==================================== */

/* Apply to WooCommerce product descriptions */
.woocommerce-product-details__short-description dl,
.woocommerce-Tabs-panel--description dl,
.product-description dl,
.entry-content dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
}

.woocommerce-product-details__short-description dt,
.woocommerce-Tabs-panel--description dt,
.product-description dt,
.entry-content dt {
    background: #f9fafb;
    padding: 12px 16px;
    font-weight: 600;
    color: #1f2937;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    margin: 0;
}

.woocommerce-product-details__short-description dd,
.woocommerce-Tabs-panel--description dd,
.product-description dd,
.entry-content dd {
    background: #ffffff;
    padding: 12px 16px;
    color: #4b5563;
    margin: 0;
    font-size: 14px;
}

/* Alternating row backgrounds for better readability */
.woocommerce-product-details__short-description dt:nth-of-type(even),
.woocommerce-product-details__short-description dd:nth-of-type(even),
.woocommerce-Tabs-panel--description dt:nth-of-type(even),
.woocommerce-Tabs-panel--description dd:nth-of-type(even),
.product-description dt:nth-of-type(even),
.product-description dd:nth-of-type(even),
.entry-content dt:nth-of-type(even),
.entry-content dd:nth-of-type(even) {
    background: #f3f4f6;
}

/* Responsive: Stack vertically on mobile */
@media screen and (max-width: 600px) {
    .woocommerce-product-details__short-description dl,
    .woocommerce-Tabs-panel--description dl,
    .product-description dl,
    .entry-content dl {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-product-details__short-description dt,
    .woocommerce-Tabs-panel--description dt,
    .product-description dt,
    .entry-content dt {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 8px;
    }
    
    .woocommerce-product-details__short-description dd,
    .woocommerce-Tabs-panel--description dd,
    .product-description dd,
    .entry-content dd {
        padding-top: 8px;
        margin-bottom: 12px;
    }
}

/* ====================================
   Enhanced Product Content Typography
   ==================================== */

/* Ensure proper spacing and readability for AI-generated content */
.woocommerce-product-details__short-description h2,
.woocommerce-Tabs-panel--description h2,
.product-description h2,
.entry-content h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5em;
}

.woocommerce-product-details__short-description ul,
.woocommerce-Tabs-panel--description ul,
.product-description ul,
.entry-content ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

.woocommerce-product-details__short-description li,
.woocommerce-Tabs-panel--description li,
.product-description li,
.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.woocommerce-product-details__short-description li strong,
.woocommerce-Tabs-panel--description li strong,
.product-description li strong,
.entry-content li strong {
    color: #1d2327;
    font-weight: 600;
}
