/* Carrito de Compras Styles */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h1 {
    color: #333;
    font-size: 2rem;
    margin: 0;
}

.cart-header h1 i {
    color: #2d8f2d;
    margin-right: 0.5rem;
}

.continue-shopping {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d8f2d;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #2d8f2d;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #2d8f2d;
    color: white;
}

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

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-cart i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    margin: 1rem 0;
    color: #333;
}

.empty-cart p {
    margin-bottom: 2rem;
    color: #666;
}

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

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

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

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.cart-item-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 600;
    color: #2d8f2d;
    font-size: 1.1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.remove-item:hover {
    text-decoration: underline;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-header h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.summary-items {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d8f2d;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Shipping Info */
.shipping-info {
    margin-bottom: 2rem;
}

.shipping-info h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    border-color: #2d8f2d;
}

.shipping-option input[type="radio"] {
    margin: 0;
}

.shipping-option input[type="radio"]:checked + .option-details {
    color: #2d8f2d;
}

.option-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.option-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-price {
    color: #2d8f2d;
    font-weight: 600;
}

.option-time {
    font-size: 0.9rem;
    color: #666;
}

/* Checkout Section */
.checkout-section {
    text-align: center;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.secure-checkout {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.secure-checkout i {
    color: #2d8f2d;
    margin-right: 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: #2d8f2d;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .cart-item-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .shipping-option {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
.cart-item {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state animation */
.empty-cart i {
    animation: bounce 2s infinite;
}

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