/* Sepet Modal Stilleri */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    z-index: 9999;
    transition: right 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cart-modal.show {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-modal.show .cart-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-modal-content {
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.cart-header h3 i {
    color: #dc3545;
    margin-right: 8px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-items {
    padding: 0;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.cart-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-variations {
    margin-bottom: 5px;
}

.variation-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 2px;
}

.item-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 13px;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2px;
}

.qty-btn {
    background: white;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.quantity {
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
    font-size: 13px;
}

.remove-btn {
    background: #dc3545;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.total-label {
    color: #333;
}

.total-amount {
    color: #dc3545;
    font-size: 18px;
}

.whatsapp-order-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-order-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-order-btn i {
    font-size: 16px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .cart-modal {
        width: 100vw;
        right: -100vw;
    }
    
    .cart-modal.show {
        right: 0;
    }
    
    .cart-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .cart-header {
        padding: 15px;
    }
    
    .cart-footer {
        padding: 15px;
    }
}

/* Scroll Bar Stilleri */
.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}