/* Sepet Sistemi Stilleri */

/* Garson Çağır Butonu (Fixed - Sadece Mobil) */
.waiter-float-button {
    position: fixed;
    bottom: 100px;
    right: 15px;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.waiter-button {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.waiter-float-button:active .waiter-button {
    transform: scale(0.95);
}

.waiter-label {
    background: rgba(255, 193, 7, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Sepet Butonu (Fixed) */
.cart-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.cart-button:active {
    transform: scale(0.95);
}

.cart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

/* Sepet Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Sepet Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 25px 25px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

/* Desktop'ta modal ortalanmış */
@media (min-width: 769px) {
    .cart-modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
        right: auto;
        max-width: 500px;
        width: 90%;
        max-height: 90vh;
        border-radius: 20px;
        animation: modalZoomIn 0.3s ease;
    }
    
    @keyframes modalZoomIn {
        from {
            transform: translate(-50%, -50%) scale(0.8);
            opacity: 0;
        }
        to {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
    }
    
    .cart-modal-header {
        border-radius: 20px 20px 0 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px 25px 0 0;
}

.cart-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Sepet Boş Durumu */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #999;
    font-size: 0.95rem;
}

/* Sepet Ürünleri */
.cart-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.cart-item-info {
    margin-bottom: 12px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #999;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 5px;
}

.cart-qty-btn {
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cart-qty-btn:active {
    transform: scale(0.9);
    background: #667eea;
    color: white;
}

.cart-qty-display {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.cart-item-remove {
    background: #ff4757;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-remove:active {
    transform: scale(0.9);
    background: #e84118;
}

/* Sepet Footer */
.cart-modal-footer {
    padding: 15px 20px;
    border-top: 2px solid #f0f0f0;
    background: #f8f8f8;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
}

.cart-total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.cart-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-clear-btn {
    flex: 1;
    padding: 14px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.cart-clear-btn:active {
    transform: scale(0.97);
    background: #e84118;
}

.cart-checkout-btn {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.cart-checkout-btn:active {
    transform: scale(0.97);
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.checkout-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 90%;
    width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.checkout-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
}

.checkout-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-body {
    padding: 20px;
}

.checkout-summary {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.checkout-items {
    margin-bottom: 15px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #666;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-weight: 700;
    font-size: 1.1rem;
}

.checkout-total-amount {
    color: #28a745;
    font-size: 1.3rem;
}

.checkout-form .form-group {
    margin-bottom: 15px;
}

.checkout-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #28a745;
}

.checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}

.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.checkout-cancel-btn,
.checkout-submit-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.checkout-cancel-btn {
    background: #6c757d;
    color: white;
}

.checkout-cancel-btn:active {
    transform: scale(0.97);
    background: #5a6268;
}

.checkout-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.checkout-submit-btn:active {
    transform: scale(0.97);
}

.checkout-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bottom Navigation Badge */
.bottom-nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.6);
    border: 2px solid white;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.6);
    }
    50% {
        box-shadow: 0 4px 18px rgba(255, 71, 87, 0.9);
        transform: scale(1.05);
    }
}

/* Bottom Nav Sepet Butonu - Belirgin ama dengeli */
.bottom-nav-cart {
    position: relative;
}

.bottom-nav-cart .bottom-nav-icon {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    margin-bottom: 3px;
}

.bottom-nav-cart:active .bottom-nav-icon {
    transform: scale(0.95);
}

.bottom-nav-cart .bottom-nav-label {
    font-weight: 700;
    color: #667eea;
    font-size: 0.72rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobilde garson butonunu göster (fixed, sağda) */
    .waiter-float-button {
        display: flex !important;
    }
    
    /* Mobilde fixed sepet butonunu gizle (bottom nav'da var) */
    .cart-button {
        display: none !important;
    }
    
    .checkout-modal-content {
        max-width: 95%;
    }
}

/* Desktop'ta sadece sepet butonu (fixed) */
@media (min-width: 769px) {
    .waiter-float-button {
        display: none;
    }
    
    .cart-button {
        display: flex;
        bottom: 90px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
}


