/* Directional bandwidth shares the catalog's compact, readable disk layout. */
.bandwidth-duplex {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    text-align: left;
}

.bandwidth-direction {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.bandwidth-direction-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--bg-light, #f9fafb);
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
}

.bandwidth-direction-label svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bandwidth-direction-value {
    min-width: 0;
    padding-top: 1px;
    color: var(--text-main, #1f2937);
    font-size: 14px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.bandwidth-direction-note {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.bandwidth-duplex-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
}

@media (min-width: 993px) {
    .product-grid:has(.bandwidth-duplex) .product-table-header,
    .product-grid:has(.bandwidth-duplex) .product-item {
        grid-template-columns: minmax(140px, 2.3fr) minmax(40px, .65fr) minmax(75px, 1fr) minmax(210px, 2.3fr) minmax(35px, .5fr) minmax(64px, .8fr) minmax(94px, 1fr) minmax(92px, 1fr);
        column-gap: 12px;
    }

    .product-grid:has(.bandwidth-duplex) .prod-name,
    .product-grid:has(.bandwidth-duplex) .prod-spec {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .product-grid:has(.bandwidth-duplex) .btn-buy,
    .product-grid:has(.bandwidth-duplex) .btn-soldout {
        white-space: nowrap;
    }
}

@media (max-width: 992px) {
    .bandwidth-spec:has(.bandwidth-duplex) {
        align-items: flex-start;
        gap: 12px;
    }

    .bandwidth-spec:has(.bandwidth-duplex)::before {
        flex: 0 0 auto;
        line-height: 22px;
    }

    .bandwidth-duplex {
        align-items: stretch;
        max-width: calc(100% - 44px);
    }

    .bandwidth-direction-value {
        flex: 1;
        text-align: right;
    }
}
