@media (max-width: 426px) {
    .table-page-cart {
        display: none; /* Oculta la tabla en pantallas pequeñas */
    }

    .mobile-cart {
        display: block; /* Muestra la versión en formato tarjeta en pantallas pequeñas */
    }

    .mobile-cart-items .mobile-cart-item {
        border: 1px solid #ddd;
        padding: 10px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 8px;
    }

    .mobile-cart-item img {
        width: 90px;
        height: 140px;
        object-fit: cover;
        margin-right: 10px;
    }

    .mobile-cart-item .item-details {
        flex: 1;
        padding-right: 10px;
    }

    .mobile-cart-item .item-name {
        font-weight: bold;
        margin-bottom: 5px;
        padding-left: 7px;
    }

    .mobile-cart-item .item-price,
    .mobile-cart-item .item-total {
        font-weight: medium;
        font-size: 1.1rem;
        padding-left: 7px;
    }

    .mobile-cart-item .btn-remove {
        color: red;
        cursor: pointer;
    }

    /* Estilo para el contenedor de la cantidad */
    .wg-quantity-custom {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* Estilo para los botones de aumentar y disminuir */
        .wg-quantity-custom .btn-quantity {
            font-size: 18px; /* Tamaño del texto de los botones */
            width: 30px; /* Ancho de los botones */
            height: 30px; /* Alto de los botones */
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f1f1f1;
            border: 1px solid #ccc;
            cursor: pointer;
            user-select: none;
        }

        /* Estilo para el input */
        .wg-quantity-custom .quantity-product {
            width: 60px; /* Ancho del input */
            height: 30px; /* Alto del input */
            text-align: center; /* Centrar el valor del input */
            font-size: 16px; /* Tamaño del texto en el input */
            margin: 0 5px; /* Espacio entre el input y los botones */
            border: 1px solid #ccc;
            border-radius: 4px;
        }

    /* Estilo para el contenedor del producto en móvil */
    .mobile-cart-item .item-quantity {
        display: flex;
        align-items: center;
        justify-content: start;
        padding-left: 7px;
    }

    /* Estilo adicional para los botones de aumentar/disminuir en la vista móvil */
    .mobile-cart-item .btn-quantity {
        width: 30px;
        height: 30px;
        font-size: 18px;
        border: 1px solid #ccc;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .quantity-product-custom {
        width: 60px !important; /* Asegura que el input no se haga más pequeño */
        text-align: center;
    }
}
