/* Estilos para página del carrito */

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-main {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.cart-item-price {
    color: #E07856;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-quantity button {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s;
}

.cart-item-quantity button:hover {
    background-color: #E07856;
    color: white;
}

.cart-item-quantity span {
    padding: 0 1rem;
    font-weight: 600;
}

.cart-item-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background-color: #c82333;
}

.cart-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

#cart-summary {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#cart-summary h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #E07856;
    border-top: 2px solid #ddd;
    margin-top: 1rem;
}

.free-shipping-bar {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #E078561a;
    border-radius: 8px;
}

.free-shipping-bar p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #E07856;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #E07856;
    transition: width 0.3s;
}

.btn-checkout {
    width: 100%;
    background-color: #E07856;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    display: block;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: #C85A3A;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }
    
    .btn-remove {
        grid-column: 2;
        justify-self: end;
    }
    
    .cart-sidebar {
        position: static;
    }
}
