/* Match the Wavefront example table while keeping catalog controls scoped. */
.iberoptics-catalog {
    --catalog-padding-x: clamp(8px, 1vw, 14px);
    --catalog-padding-y: clamp(8px, .8vw, 12px);
    --catalog-font-size: clamp(12px, .9vw, 13px);
    --catalog-heading-size: clamp(10.5px, .8vw, 12px);
    --catalog-cell-width: 90px;
    --catalog-model-width: 180px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #2b2b2b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.iberoptics-catalog .iberoptics-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}
.iberoptics-catalog .iberoptics-toolbar label {
    display: flex;
    flex: 1 1 130px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
}
.iberoptics-catalog .iberoptics-toolbar .iberoptics-search-label { flex: 2 1 220px; }
.iberoptics-catalog .iberoptics-toolbar input,
.iberoptics-catalog .iberoptics-toolbar select {
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d9cabe;
    border-radius: 4px;
    background-color: #fff;
    color: #2b2b2b;
    font: inherit;
    font-weight: 400;
}
.iberoptics-catalog .iberoptics-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #f1ebe4;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 3%);
    -webkit-overflow-scrolling: touch;
}
.iberoptics-catalog .iberoptics-table-scroll::-webkit-scrollbar { height: 6px; }
.iberoptics-catalog .iberoptics-table-scroll::-webkit-scrollbar-track { background: #fbfaf8; }
.iberoptics-catalog .iberoptics-table-scroll::-webkit-scrollbar-thumb { background: #cca383; border-radius: 3px; }
.iberoptics-catalog .iberoptics-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    text-align: left;
}
.iberoptics-catalog .iberoptics-table th,
.iberoptics-catalog .iberoptics-table td {
    min-width: var(--catalog-cell-width);
    padding: var(--catalog-padding-y) var(--catalog-padding-x);
    border: 0;
    border-bottom: 1px solid #f1ebe4;
    vertical-align: middle;
    font-size: var(--catalog-font-size);
    line-height: 1.45;
    overflow-wrap: normal;
}
.iberoptics-catalog .iberoptics-table th:first-child { min-width: var(--catalog-model-width); }
.iberoptics-catalog .iberoptics-table thead {
    background: var(--e-global-color-astglobalcolor0, var(--ast-global-color-0, #f70f0f));
}
.iberoptics-catalog .iberoptics-table thead th { padding: 0; color: #fff; }
.iberoptics-catalog .iberoptics-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: calc(var(--catalog-padding-y) + 2px) var(--catalog-padding-x);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: var(--catalog-heading-size);
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
}
.iberoptics-catalog .iberoptics-sort:hover { background: rgb(0 0 0 / 12%); color: #fff; }
.iberoptics-catalog .iberoptics-sort-icon { flex-shrink: 0; font-size: 14px; }
.iberoptics-catalog .iberoptics-table tbody tr { background: #fff; transition: background-color .2s ease; }
.iberoptics-catalog .iberoptics-table tbody tr.iberoptics-row-even { background: #fbfaf8; }
.iberoptics-catalog .iberoptics-table tbody tr:hover { background: #f5eee6; }
.iberoptics-catalog .iberoptics-table tbody th { font-weight: 600; text-transform: none; letter-spacing: normal; }
.iberoptics-catalog .iberoptics-table tbody a { color: #2b2b2b; text-decoration: underline; text-underline-offset: 3px; }
.iberoptics-catalog .iberoptics-table tbody a:hover { color: var(--ast-global-color-1, #b81e1e); }
.iberoptics-catalog .iberoptics-datasheet { white-space: nowrap; }
.iberoptics-catalog [hidden] { display: none !important; }
.iberoptics-catalog .iberoptics-empty { margin: 0; padding: 16px; background: #fbfaf8; }
.iberoptics-catalog .iberoptics-sort:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.iberoptics-catalog input:focus-visible,
.iberoptics-catalog select:focus-visible,
.iberoptics-catalog .iberoptics-table-scroll:focus-visible { outline: 2px solid var(--ast-global-color-1, #b81e1e); outline-offset: 2px; }
.iberoptics-catalog caption,
.iberoptics-catalog .iberoptics-sort-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@media (max-width: 1024px) {
    .iberoptics-catalog {
        --catalog-cell-width: 80px;
        --catalog-model-width: 160px;
    }
    .iberoptics-catalog .iberoptics-toolbar { gap: 10px; margin-bottom: 12px; }
}
@media (max-width: 767px) {
    .iberoptics-catalog {
        --catalog-padding-x: 8px;
        --catalog-padding-y: 8px;
        --catalog-font-size: 12px;
        --catalog-heading-size: 10.5px;
        --catalog-cell-width: 72px;
        --catalog-model-width: 148px;
    }
    .iberoptics-catalog .iberoptics-toolbar { gap: 8px; margin-bottom: 10px; }
    .iberoptics-catalog .iberoptics-toolbar label { flex-basis: calc(50% - 4px); }
    .iberoptics-catalog .iberoptics-toolbar .iberoptics-search-label { flex-basis: 100%; }
    .iberoptics-catalog .iberoptics-toolbar input,
    .iberoptics-catalog .iberoptics-toolbar select { height: 38px; padding: 6px 8px; }
    .iberoptics-catalog .iberoptics-sort { min-height: 44px; gap: 4px; letter-spacing: .03em; }
}

.iberoptics-manufacturer-specs { max-width: 100%; overflow-x: auto; }
.iberoptics-manufacturer-specs table { font-size: 14px; min-width: 420px; }
.iberoptics-manufacturer-specs th, .iberoptics-manufacturer-specs td { padding: 8px; vertical-align: top; }
.iberoptics-family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.iberoptics-family-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce5eb; padding: 20px; overflow-wrap: anywhere; }
.iberoptics-family-card > .button { align-self: flex-start; margin-top: auto; }
.iberoptics-family-card img { display: block; width: 100%; height: 220px; object-fit: contain; margin-bottom: 16px; }
.iberoptics-family-card h2, .iberoptics-family-card h3 { font-size: 20px; }
.iberoptics-model-summary { font-size: 14px; line-height: 1.6; }
.iberoptics-model-features { margin: 0 0 20px; }
.iberoptics-model-features > div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%); gap: 6px; margin-bottom: 8px; }
.iberoptics-model-features dt { font-weight: 600; }
.iberoptics-model-features dd { margin: 0; }
.iberoptics-product-sheet, .iberoptics-product-configuration { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.iberoptics-product-sheet section + section { margin-top: 28px; }
.iberoptics-product-sheet h2, .woocommerce-Tabs-panel--additional_information > h2 { font-size: 24px; margin-bottom: 16px; }
.iberoptics-product-configuration { margin-top: 24px; }
.iberoptics-product-configuration summary { cursor: pointer; font-size: 18px; font-weight: 600; padding: 12px 0; }
.iberoptics-product-configuration summary:focus-visible { outline: 3px solid #0877ba; outline-offset: 3px; }
.iberoptics-product-configuration h2, .iberoptics-product-configuration h3 { font-size: 18px; margin: 20px 0 12px; }
.woocommerce-Tabs-panel--additional_information table, .iberoptics-product-configuration table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.woocommerce-Tabs-panel--additional_information table.shop_attributes { table-layout: fixed; }
.woocommerce-Tabs-panel--additional_information table.shop_attributes th { width: 34%; }
.woocommerce-Tabs-panel--additional_information th, .iberoptics-product-configuration th { text-align: left; font-weight: 600; }
.woocommerce-Tabs-panel--additional_information th, .woocommerce-Tabs-panel--additional_information td, .iberoptics-product-configuration th, .iberoptics-product-configuration td { padding: 10px 12px; vertical-align: top; overflow-wrap: anywhere; border: 1px solid #e1e6ea; }
.iberoptics-family-card a:focus-visible, .iberoptics-family-pagination a:focus-visible { outline: 3px solid #0877ba; outline-offset: 3px; }
.iberoptics-family-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.iberoptics-family-pagination a, .iberoptics-family-pagination span { display: inline-flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; border: 1px solid #dce5eb; }
.iberoptics-family-pagination [aria-current] { background: #edf5fa; font-weight: 700; }
@media (max-width: 1024px) { .iberoptics-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .iberoptics-family-grid { grid-template-columns: minmax(0, 1fr); } }
