/**
 * Product description: basic specifications table ([oh_product_specs]).
 */

.woocommerce-Tabs-panel--description .oh-product-specs,
.entry-content .oh-product-specs {
    --oh-spec-accent: var(--oh-brand-accent, #d41a20);
    --oh-spec-label-bg: #f3f3f3;
    --oh-spec-border: #e5e5e5;
    --oh-spec-text: #333;
    margin: 1.5em 0;
    max-width: 100%;
    border: 1px solid var(--oh-spec-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.woocommerce-Tabs-panel--description .oh-product-specs__head,
.entry-content .oh-product-specs__head {
    background: var(--oh-spec-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    padding: 0.75em 1em;
    text-align: center;
}

.woocommerce-Tabs-panel--description .oh-product-specs__table,
.entry-content .oh-product-specs__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

.woocommerce-Tabs-panel--description .oh-product-specs__table th,
.woocommerce-Tabs-panel--description .oh-product-specs__table td,
.entry-content .oh-product-specs__table th,
.entry-content .oh-product-specs__table td {
    padding: 0.65em 0.85em;
    border-top: 1px solid var(--oh-spec-border);
    vertical-align: top;
    color: var(--oh-spec-text);
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.woocommerce-Tabs-panel--description .oh-product-specs__table th,
.entry-content .oh-product-specs__table th {
    width: 42%;
    background: var(--oh-spec-label-bg);
    font-weight: 700;
    text-align: inherit;
}

.woocommerce-Tabs-panel--description .oh-product-specs__table td,
.entry-content .oh-product-specs__table td {
    background: #fff;
    unicode-bidi: plaintext;
    text-align: left;
}

/* Mixed values like "180×200 King" keep their order in RTL; alignment stays on the RTL side. */
html[dir="rtl"] .woocommerce-Tabs-panel--description .oh-product-specs__table td,
html[dir="rtl"] .entry-content .oh-product-specs__table td {
    text-align: right;
}

.woocommerce-Tabs-panel--description .oh-product-specs__table tr:first-child th,
.woocommerce-Tabs-panel--description .oh-product-specs__table tr:first-child td,
.entry-content .oh-product-specs__table tr:first-child th,
.entry-content .oh-product-specs__table tr:first-child td {
    border-top: none;
}

@media (max-width: 549px) {
    .woocommerce-Tabs-panel--description .oh-product-specs__head,
    .entry-content .oh-product-specs__head {
        font-size: 0.95rem;
        padding: 0.65em 0.75em;
    }

    .woocommerce-Tabs-panel--description .oh-product-specs__table th,
    .woocommerce-Tabs-panel--description .oh-product-specs__table td,
    .entry-content .oh-product-specs__table th,
    .entry-content .oh-product-specs__table td {
        font-size: 0.875rem;
        padding: 0.55em 0.65em;
    }

    .woocommerce-Tabs-panel--description .oh-product-specs__table th,
    .entry-content .oh-product-specs__table th {
        width: 40%;
    }
}
