/**
 * WooCommerce Additional Information ("További információk") - Stylish Design
 * Matches the BestLab site design system
 */

/* ─── Container ─── */
.elementor-widget-woocommerce-product-additional-information {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Heading ─── */
.elementor-widget-woocommerce-product-additional-information h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2271b1;
    display: inline-block;
    letter-spacing: -0.3px;
}

/* ─── Table Container ─── */
.woocommerce-product-attributes.shop_attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8edf2;
}

/* ─── Table Rows ─── */
.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item {
    transition: background-color 0.2s ease;
}

.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:hover {
    background-color: #f0f6fc;
}

.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child th,
.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child td {
    border-bottom: none;
}

/* ─── Label (th) ─── */
.woocommerce-product-attributes.shop_attributes th.woocommerce-product-attributes-item__label {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafb;
    border-bottom: 1px solid #e8edf2;
    border-right: 2px solid #2271b1;
    width: 35%;
    min-width: 180px;
    vertical-align: middle;
    text-align: left;
}

/* ─── Value (td) ─── */
.woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    background: #ffffff;
    border-bottom: 1px solid #e8edf2;
    vertical-align: middle;
    line-height: 1.6;
}

.woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value p {
    margin: 0;
    padding: 0;
}

/* ─── Links inside values ─── */
.woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: #edf4fb;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 2px 3px 2px 0;
    font-size: 13px;
    line-height: 1.6;
}

.woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value a:hover {
    background: #2271b1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

/* ─── Alternating row backgrounds ─── */
.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:nth-child(even) th {
    background: #f1f5f8;
}

.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:nth-child(even) td {
    background: #fafbfc;
}

/* ─── First row top corners ─── */
.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:first-child th {
    border-top-left-radius: 12px;
}

.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:first-child td {
    border-top-right-radius: 12px;
}

/* ─── Last row bottom corners ─── */
.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child th {
    border-bottom-left-radius: 12px;
}

.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child td {
    border-bottom-right-radius: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .woocommerce-product-attributes.shop_attributes {
        border-radius: 8px;
    }

    .woocommerce-product-attributes.shop_attributes th.woocommerce-product-attributes-item__label,
    .woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value {
        padding: 12px 14px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .woocommerce-product-attributes.shop_attributes th.woocommerce-product-attributes-item__label {
        border-right: none;
        border-bottom: none;
        padding-bottom: 4px;
        min-width: unset;
    }

    .woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value {
        padding-top: 4px;
    }

    .woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item {
        display: block;
        border-bottom: 1px solid #e8edf2;
    }

    .woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child {
        border-bottom: none;
    }

    .woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:first-child th {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:first-child td {
        border-top-right-radius: 0;
    }

    .woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child td {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item:last-child th {
        border-bottom-left-radius: 0;
    }

    .elementor-widget-woocommerce-product-additional-information h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .woocommerce-product-attributes.shop_attributes th.woocommerce-product-attributes-item__label {
        font-size: 12px;
    }

    .woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value {
        font-size: 13px;
    }

    .woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value a {
        font-size: 12px;
        padding: 2px 6px;
    }
}
