.cart-container {
    max-width: 900px;
    margin: auto;
    padding: 80px 20px;
}

.cart-item {
    background: #1f2937; 
    margin: 20px;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Contenedor derecho dentro de cada item */
.cart-right {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre cantidad, precio y botón */
}

/* Contenedor izquierdo con imagen y info */
.cart-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Imagen del producto en el carrito */
.cart-item .cart-product-image {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #374151;
    display: block;
    flex-shrink: 0;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.cart-info p {
    color: #9ca3af;
    font-size: 0.95rem;
    margin: 0;
}

.cart-qty {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px;
    font-size: 0.95rem;
}

.cart-btn-update {
    background: #0e1420;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cart-btn-update:hover {
    background: #000;
}

.cart-btn-remove {
    color: #dc2626;
    font-size: 0.9rem;
}

.cart-btn-remove:hover {
    text-decoration: none;
}

.cart-subtotal {
    font-size: 1.1rem;
    font-weight: 600;
}


.cart-total {
    background: #000000;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: center; 
    align-items: center;     
    flex-direction: column;
    gap: 16px;               
    margin: 20px auto;
    color: #fff;
               
}
.cart-total p {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.checkout-btn {
    text-decoration: none;  
    background: #ff3366; 
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: center;
}

.checkout-btn:hover {
    background: #ff1149; 
}


.cart-empty {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 40px;
}
