/* Fixed buton stack - otomatik siralama */
.fixed-actions-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .fixed-actions-stack {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
}

/* Header Sepet İkonu Stilleri - Modern tasarım - Daha Belirgin */
.cart-icon-fixed {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.98) 0%, rgba(39, 174, 96, 0.98) 100%);
    border: 2px solid rgba(46, 204, 113, 0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
}

/* (stack ile otomatik siralama - with-waiter artik gereksiz) */
.cart-icon-fixed.with-waiter {
    bottom: auto;
}

.cart-icon-fixed:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 1) 0%, rgba(46, 204, 113, 1) 100%);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(46, 204, 113, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(46, 204, 113, 0.6);
}

.cart-icon-fixed .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    min-width: 28px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 3px solid #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sepet Tooltip Stilleri */
.cart-icon-fixed .cart-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.95) 0%, rgba(39, 174, 96, 0.95) 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    border: 1px solid rgba(46, 204, 113, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1001;
    animation: tooltipFadeIn 0.3s ease-out;
}

.cart-icon-fixed .cart-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(46, 204, 113, 0.95);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Mobil için sepet ikonu */
@media (max-width: 768px) {
    .cart-icon-fixed {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .cart-icon-fixed.with-waiter {
        bottom: auto;
    }
    
    .cart-icon-fixed .cart-count {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 11px;
        top: -8px;
        right: -8px;
    }
    
    .cart-icon-fixed .cart-tooltip {
        right: 70px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Garson Çağır Butonu Stilleri - Modern tasarım - Daha Belirgin */
.waiter-call-icon-fixed {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.98) 0%, rgba(41, 128, 185, 0.98) 100%) !important;
    border: 2px solid rgba(52, 152, 219, 0.5) !important;
    border-radius: 50% !important;
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    animation: fadeIn 0.3s ease-out !important;
}

.waiter-call-icon-fixed:hover {
    background: linear-gradient(135deg, rgba(41, 128, 185, 1) 0%, rgba(52, 152, 219, 1) 100%) !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 10px 35px rgba(52, 152, 219, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(52, 152, 219, 0.6) !important;
}

.waiter-call-icon-fixed .waiter-call-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    min-width: 28px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 3px solid #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Garson Tooltip Stilleri */
.waiter-call-icon-fixed .waiter-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(41, 128, 185, 0.95) 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1001;
    animation: tooltipFadeIn 0.3s ease-out;
}

.waiter-call-icon-fixed .waiter-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(52, 152, 219, 0.95);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Mobil için garson çağır butonu */
@media (max-width: 768px) {
    .waiter-call-icon-fixed {
        bottom: auto !important;
        right: auto !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }
    
    .waiter-call-icon-fixed .waiter-call-count {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 11px !important;
        top: -8px !important;
        right: -8px !important;
    }
    
    .waiter-call-icon-fixed .waiter-tooltip {
        right: 70px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}

/* Sepete Ekle Butonu - Sadece ikon */
.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0;
    border-radius: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    width: 40px;
    height: 40px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 0.9rem;
}

.add-to-cart-btn span {
    display: none;
}

/* Miktar Modal Stilleri */
.quantity-modal {
    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;
    backdrop-filter: blur(5px);
}

.quantity-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
    overflow: visible;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quantity-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-modal-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.quantity-modal-close-bottom {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quantity-modal-close-bottom:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.quantity-modal-body {
    padding: 20px 20px 0 20px;
}

.product-info-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-product-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}



.modal-product-details h6 {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.modal-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #198754;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 24px;
}

.quantity-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 60px;
    height: 35px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quantity-input {
    width: 80px;
    height: 35px;
    text-align: center;
    border: 0px solid #e9ecef;
    border-radius: 40px;
    padding: 0;
    font-size: 18px;
    display: block;
    font-weight: 600;
    color: #333;
    background: #f1f1f1;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quantity-modal-footer {
    padding: 0;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    border-radius: 0 0 12px 12px;
}

.quantity-cancel-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.quantity-confirm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.quantity-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Mobil için modal */
@media (max-width: 768px) {
    .quantity-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .quantity-modal-body {
        padding: 20px;
    }
    
    .product-info-modal {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .modal-product-image {
        width: 100%;
        height: 100%;
    }
    
    .quantity-controls {
        gap: 12px;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .quantity-input {
        width: 70px;
        height: 36px;
        font-size: 16px;
    }
} 

/* Sepet Modal Stilleri */
.cart-modal {
    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;
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.cart-modal-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

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

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

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

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

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity-btn {
    background: #667eea;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-quantity-btn:hover {
    background: #5a6fd8;
}

.cart-item-quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    font-size: 14px;
}

.cart-item-remove {
    background: #dc3545;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-remove:hover {
    background: #c82333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.order-notes {
    margin-bottom: 20px;
}

.order-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.order-notes textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.order-notes textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cart-modal-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.cart-clear-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.cart-confirm-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Mobil için sepet modal */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cart-modal-body {
        padding: 16px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .cart-modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-clear-btn,
    .cart-confirm-btn {
        width: 100%;
    }
}

/* Sepet Shake Animasyonu */
@keyframes cartShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

.cart-icon-fixed.shake {
    animation: cartShake 0.6s ease-in-out;
}

/* Uye Butonu Stilleri - Stack icinde, relative */
.member-icon-fixed {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.98) 0%, rgba(230, 126, 34, 0.98) 100%);
    border: 2px solid rgba(243, 156, 18, 0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
    text-decoration: none;
}

.member-icon-fixed:hover {
    background: linear-gradient(135deg, rgba(230, 126, 34, 1) 0%, rgba(243, 156, 18, 1) 100%);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(243, 156, 18, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.member-icon-fixed .member-tooltip {
    display: none;
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.member-icon-fixed:hover .member-tooltip {
    display: block;
}

.member-icon-fixed .member-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(44, 62, 80, 0.95);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@media (max-width: 768px) {
    .member-icon-fixed {
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        line-height: 1 !important;
    }
    .member-icon-fixed .member-tooltip {
        display: none !important;
    }
}