/* ===== ESTILOS PARA CARRITO MÓVIL ===== */

/* Contenedor principal del carrito móvil */
.ps-shopping__mobile {
    margin-bottom: 20px;
}

.ps-shopping__items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-shopping__items li {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Producto del carrito móvil */
.ps-product--cart-mobile {
    display: flex;
    padding: 15px;
    position: relative;
}

/* Botón de eliminar */
.ps-product--cart-mobile .ps-product__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.ps-product--cart-mobile .ps-product__remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ps-product--cart-mobile .ps-product__remove a:hover {
    background: #ff3742;
    transform: scale(1.1);
}

/* Thumbnail del producto */
.ps-product--cart-mobile .ps-product__thumbnail {
    flex: 0 0 80px;
    margin-right: 15px;
}

.ps-product--cart-mobile .ps-product__thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

/* Contenido del producto */
.ps-product--cart-mobile .ps-product__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

/* Título del producto */
.ps-product--cart-mobile .ps-product__title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.ps-product--cart-mobile .ps-product__title a {
    color: #333;
    text-decoration: none;
}

.ps-product--cart-mobile .ps-product__title a:hover {
    color: #EC008C;
}

/* Meta información (precio, laboratorio, presentación) */
.ps-product--cart-mobile .ps-product__meta {
    margin-bottom: 10px;
}

.ps-product--cart-mobile .ps-product__meta .ps-product__price {
    font-size: 16px;
    font-weight: bold;
    color: #EC008C;
    display: block;
    margin-bottom: 4px;
}

.ps-product--cart-mobile .ps-product__meta small {
    font-size: 12px;
    display: block;
    line-height: 1.3;
}

.ps-product--cart-mobile .ps-product__meta .text-info {
    color: #17a2b8 !important;
    font-weight: 500;
}

.ps-product--cart-mobile .ps-product__meta .text-muted {
    color: #6c757d !important;
}

/* Controles de cantidad */
.ps-product--cart-mobile .ps-product__quantity {
    margin-bottom: 8px;
}

.ps-product--cart-mobile .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-product--cart-mobile .quantity-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.ps-product--cart-mobile .quantity-btn:hover {
    background: #e9ecef;
    border-color: #EC008C;
    color: #EC008C;
}

.ps-product--cart-mobile .quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.ps-product--cart-mobile .quantity-input:focus {
    outline: none;
    border-color: #EC008C;
    box-shadow: 0 0 0 2px rgba(236, 0, 140, 0.1);
}

/* Subtotal */
.ps-product--cart-mobile .ps-product__subtotal {
    margin-top: auto;
}

.ps-product--cart-mobile .ps-product__subtotal .subtotal-amount {
    font-size: 16px;
    font-weight: bold;
    color: #EC008C;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .ps-product--cart-mobile {
        padding: 12px;
    }
    
    .ps-product--cart-mobile .ps-product__thumbnail {
        flex: 0 0 70px;
        margin-right: 12px;
    }
    
    .ps-product--cart-mobile .ps-product__thumbnail img {
        width: 70px;
        height: 70px;
    }
    
    .ps-product--cart-mobile .ps-product__content {
        min-height: 70px;
    }
    
    .ps-product--cart-mobile .ps-product__title {
        font-size: 13px;
    }
    
    .ps-product--cart-mobile .ps-product__meta .ps-product__price {
        font-size: 15px;
    }
    
    .ps-product--cart-mobile .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .ps-product--cart-mobile .quantity-input {
        width: 45px;
        font-size: 13px;
    }
}

/* Animaciones */
.ps-product--cart-mobile {
    transition: all 0.3s ease;
}

.ps-product--cart-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estados de carga */
.ps-product--cart-mobile.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ps-product--cart-mobile.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #EC008C;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensajes de estado */
.cart-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.cart-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cart-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cart-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
