/**
 * WD Operations Suite — Product Content Styles
 * Applied to WooCommerce single product pages for description tables.
 */

/* ── Base table ── */
.woocommerce-product-details__short-description table,
.woocommerce-Tabs-panel table,
.product .entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    border: 1px solid #d1d5db;
    table-layout: auto;
    font-size: 14px;
}

.woocommerce-product-details__short-description table td,
.woocommerce-product-details__short-description table th,
.woocommerce-Tabs-panel table td,
.woocommerce-Tabs-panel table th,
.product .entry-content table td,
.product .entry-content table th {
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    vertical-align: top;
    text-align: left;
}

.woocommerce-product-details__short-description table th,
.woocommerce-Tabs-panel table th,
.product .entry-content table th {
    background: #f3f4f6;
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
}

/* ── Striped ── */
.woocommerce-product-details__short-description table.wd-table-striped tr:nth-child(even) td,
.woocommerce-Tabs-panel table.wd-table-striped tr:nth-child(even) td,
.product .entry-content table.wd-table-striped tr:nth-child(even) td {
    background: #f9fafb;
}

.woocommerce-product-details__short-description table.wd-table-striped th,
.woocommerce-Tabs-panel table.wd-table-striped th,
.product .entry-content table.wd-table-striped th {
    background: #1e3a5f;
    color: #fff;
    border-color: #17304d;
}

.woocommerce-product-details__short-description table.wd-table-striped,
.woocommerce-product-details__short-description table.wd-table-striped td,
.woocommerce-Tabs-panel table.wd-table-striped,
.woocommerce-Tabs-panel table.wd-table-striped td,
.product .entry-content table.wd-table-striped,
.product .entry-content table.wd-table-striped td {
    border-color: #e5e7eb;
}

/* ── Compact ── */
.woocommerce-product-details__short-description table.wd-table-compact td,
.woocommerce-product-details__short-description table.wd-table-compact th,
.woocommerce-Tabs-panel table.wd-table-compact td,
.woocommerce-Tabs-panel table.wd-table-compact th,
.product .entry-content table.wd-table-compact td,
.product .entry-content table.wd-table-compact th {
    padding: 5px 10px;
    font-size: 13px;
}

.woocommerce-product-details__short-description table.wd-table-compact th,
.woocommerce-Tabs-panel table.wd-table-compact th,
.product .entry-content table.wd-table-compact th {
    font-size: 12px;
}

/* ── Borderless ── */
.woocommerce-product-details__short-description table.wd-table-borderless,
.woocommerce-product-details__short-description table.wd-table-borderless td,
.woocommerce-product-details__short-description table.wd-table-borderless th,
.woocommerce-Tabs-panel table.wd-table-borderless,
.woocommerce-Tabs-panel table.wd-table-borderless td,
.woocommerce-Tabs-panel table.wd-table-borderless th,
.product .entry-content table.wd-table-borderless,
.product .entry-content table.wd-table-borderless td,
.product .entry-content table.wd-table-borderless th {
    border-color: transparent;
}

.woocommerce-product-details__short-description table.wd-table-borderless td,
.woocommerce-Tabs-panel table.wd-table-borderless td,
.product .entry-content table.wd-table-borderless td {
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-product-details__short-description table.wd-table-borderless th,
.woocommerce-Tabs-panel table.wd-table-borderless th,
.product .entry-content table.wd-table-borderless th {
    background: transparent;
    font-weight: 700;
    border-bottom: 2px solid #1f2937;
}

/* ── Responsive: horizontal scroll on mobile ── */
@media (max-width: 600px) {
    .woocommerce-product-details__short-description table,
    .woocommerce-Tabs-panel table,
    .product .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
