/* JustNerdy Product Layout Styles */

/* Description Styling (Targeting standard WooCommerce description area) */
.woocommerce-Tabs-panel--description,
.elementor-widget-woocommerce-product-content {
    font-size: 1.05em;
    line-height: 1.7;
    color: #4a4a4a; /* Softer text color than pure black */
    margin-bottom: 2em;
}

.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3,
.elementor-widget-woocommerce-product-content h2,
.elementor-widget-woocommerce-product-content h3 {
    color: #000000; /* Dark Title color */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.woocommerce-Tabs-panel--description p,
.elementor-widget-woocommerce-product-content p {
    margin-bottom: 1.2em;
}

/* Additional Information Grid */
.justnerdy-additional-info-grid, .woocommerce-product-details__short-description .justnerdy-additional-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea; /* Visual separation from description */
}

/* Individual Info Card */
.justnerdy-info-card {
    display: flex;
    align-items: center;
    background-color: #f3f4f6; /* JustNerdy Grey BG */
    border-radius: 8px;
    padding: 12px 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.justnerdy-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Slight shadow on hover */
    background-color: #007bff0D; /* Light Primary BG */
}

/* Icon Styling */
.justnerdy-info-icon {
    font-size: 1.5em;
    color: #007bff; /* JustNerdy Primary/Accent */
    margin-right: 15px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

/* Content Area within Card */
.justnerdy-info-content {
    display: flex;
    flex-direction: column;
}

.justnerdy-info-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #6c757d; /* JustNerdy Secondary */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.justnerdy-info-value {
    font-size: 1em;
    color: #000000; /* Dark Text */
    font-weight: 500;
}

/* Hide the default WooCommerce H2 for Additional Information if it exists to make it cleaner */
.woocommerce-Tabs-panel--additional_information h2,
.woocommerce-product-details__short-description h2 {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .justnerdy-additional-info-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 10px;
    }
    
    .justnerdy-info-card {
        padding: 15px; /* Slightly larger padding for touch targets */
    }
}