/* Estilos específicos para la página del carrito */
.carrito-container {
    min-height: 70vh;
    padding: 120px 0 60px;
}

.carrito-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-empty-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.cart-empty h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
}

.cart-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-details {
    display: flex;
    align-items: center;
    flex: 3;
}

.item-name {
    flex: 1;
    font-weight: 500;
}

.item-price {
    flex: 1;
    color: var(--text-light);
}

.item-quantity {
    display: flex;
    align-items: center;
    flex: 1;
}

.quantity-btn {
    background-color: #f1f1f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-number {
    margin: 0 10px;
    min-width: 30px;
    text-align: center;
}

.item-total {
    flex: 1;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.item-remove {
    margin-left: 20px;
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.item-remove:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.cart-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: none;
    margin-bottom: 25px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #444;
    transform: translateY(-3px);
}

#checkout {
    float: right;
    background: var(--gold-gradient);
    color: #111;
    font-weight: 600;
}

#checkout:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .item-details {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .item-name, .item-price {
        margin-bottom: 10px;
    }
    
    .item-quantity {
        margin-bottom: 10px;
    }
    
    .item-total {
        text-align: left;
    }
    
    #checkout {
        float: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .btn-secondary {
        width: 100%;
        margin-right: 0;
    }
}