/* ===== Description style: default =====
   Loaded by templates/store/description/desc_default.html when the
   product's description_style is 'default'.
*/

/* Markdown tables inside the description */
.description-box table {
    width: auto;
    min-width: 0;
    max-width: 720px;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}
.description-box table th,
.description-box table td {
    padding: 8px 14px;
    text-align: left;
    vertical-align: middle;
    border: 1px solid #c9c9c9;
    color: var(--text-primary);
}
.description-box table th {
    width: 35%;
    font-weight: 600;
    background: #f7f7f7;
}
/* Specs tables use an empty | | | first row as the Markdown header;
   collapse it so no visible header row shows. */
.description-box table th:empty { display: none; }

/* Kalles-style tabs */
.desc-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}
.desc-tabs .desc-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 14px;
    color: #6b7482;
    cursor: pointer;
}
.desc-tabs .desc-tab-btn:hover { color: #7a2e14; }
.desc-tabs .desc-tab-btn.active { color: #b45309; border-bottom-color: #b45309; }
[data-desc-tabpane] { display: none; }
[data-desc-tabpane].active { display: block; }
[data-theme="dark"] .desc-tabs { border-bottom-color: #3d3d4a; }
[data-theme="dark"] .desc-tabs .desc-tab-btn { color: #9aa0ab; }
[data-theme="dark"] .desc-tabs .desc-tab-btn:hover { color: #e7e7ef; }
[data-theme="dark"] .desc-tabs .desc-tab-btn.active { color: #e8a33d; border-bottom-color: #b45309; }

/* Admin ProductTable block (key/value) */
.product-attr-table {
    width: 100%;
    max-width: 720px;
    margin-bottom: 1.5rem;
    border: 1px solid #c9c9c9;
    border-collapse: collapse;
}
.product-attr-table th.attr__label {
    width: 35%;
    background: #f7f7f7;
    font-weight: 600;
    text-transform: capitalize;
    border-color: #c9c9c9;
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
}
.product-attr-table td.attr__value {
    border-color: #c9c9c9;
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
}

/* Dark theme */
[data-theme="dark"] .product-attr-table,
[data-theme="dark"] .product-attr-table th.attr__label,
[data-theme="dark"] .product-attr-table td.attr__value,
[data-theme="dark"] .description-box table th,
[data-theme="dark"] .description-box table td {
    border-color: #3d3d4a;
}
[data-theme="dark"] .product-attr-table th.attr__label,
[data-theme="dark"] .description-box table th {
    background: #2d2d3a;
    color: #e7e7ef;
}