.catalog-products-table-wrap {
    padding: 0 20px;

    @media (min-width: 768px) {
        padding: 0 48px;
    }
}

.catalog-products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;

    thead tr {
        background: #f3f3f3;
        border-bottom: 1px solid #e0e0e0;
    }

    th {
        padding: 12px 16px;
        font-weight: 700;
        color: #333;
        text-align: left;
        white-space: nowrap;
    }

    tbody tr {
        border-bottom: 1px solid #ececec;
        transition: background-color 0.15s ease;

        &:nth-child(even) {
            background: #fafafa;
        }

        &:hover {
            background: #f0f7ff;
        }
    }
}

.catalog-products-table__row {
    cursor: pointer;
}

.catalog-products-table__code {
    padding: 14px 16px;
    color: #444;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.catalog-products-table__name {
    padding: 14px 16px;
    color: #222;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.35;
}

.catalog-products-table__price {
    padding: 14px 16px;
    color: #222;
    white-space: nowrap;
    font-weight: 600;
}

.catalog-products-table__price-bs {
    padding: 14px 16px;
    color: #555;
    white-space: nowrap;
}

.catalog-products-table__col-status {
    width: 80px;
    text-align: center !important;
}

.catalog-products-table__status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
}

.catalog-products-table__status-dot--available {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.catalog-products-table__status-dot--unavailable {
    background: #adb5bd;
    box-shadow: 0 0 0 2px rgba(173, 181, 189, 0.25);
}

@media (max-width: 767px) {
    .catalog-products-table {
        font-size: 12px;
    }

    .catalog-products-table th,
    .catalog-products-table td {
        padding: 10px 8px;
    }

    .catalog-products-table__name {
        min-width: 140px;
    }
}

/* Columna de cantidad (InputNumber) */
.catalog-products-table__col-quantity {
    text-align: center !important;
    white-space: nowrap;
}

.catalog-products-table__quantity {
    max-width: 110px;
    margin: 0 auto;
}

/* Columna de "Añadir al carrito" */
.catalog-products-table__col-cart {
    text-align: center !important;
    white-space: nowrap;
}

.catalog-products-table__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
        border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.catalog-products-table__add:hover {
    /* Azul oscuro con degradado mas oscuro (igual que el boton de producto) */
    background: linear-gradient(135deg, #0056b3 0%, #001a3d 100%);
    color: #fff;
    transform: translateY(-1px);
}

.catalog-products-table__add--added {
    background: #198754;
    color: #fff;

    &:hover {
        background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, #146c43 2%, #146c43 98%, rgba(0,0,0,0.5) 100%);
    }

    &:active {
        background: #146c43;
    }
}

/* ===== Badge "En oferta" en la columna de nombre (vista tipo lista / tabla) ===== */
.catalog-products-table__offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.catalog-products-table__product-name {
    font-weight: 600;
    font-size: 17px;
    color: #222;
    text-decoration: none;

    &:hover {
        color: #0d6efd;
        text-decoration: underline;
    }
}

/* Precio original tachado (antes del descuento) */
.catalog-products-table__price-original {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    text-decoration: line-through;
    margin-top: 2px;
}

.catalog-products-table__price-current {
    font-weight: 700;
    color: #222;
}
