/**
 * Enjoy Burger - Sepet Sistemi Global Stilleri
 * Tüm "Sepete Ekle" butonları ve modal tasarımları için merkezi stil dosyası
 */

/* ============================================
   1. SEPETE EKLE BUTON STİLLERİ (Tutarlı Renk)
   ============================================ */

/* Ürün detay / modal Sepete Ekle (turuncu). Menü + Anasayfa = tema .theme-btn-2 (menü tasarımı) */
.theme-btn.add-to-cart-main-btn,
.theme-btn.modal-add-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background-color: #000000 !important; /* Enjoy Burger sarısı - sabitlendı */
    border: none;
    border-radius: 25px;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.theme-btn.add-to-cart-main-btn::before,
.theme-btn.modal-add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e89520; /* Hover rengi - daha koyu sarı */
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.theme-btn.add-to-cart-main-btn:hover::before,
.theme-btn.modal-add-btn:hover::before {
    transform: scale(1);
}

.theme-btn.add-to-cart-main-btn:hover,
.theme-btn.modal-add-btn:hover {
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(246, 166, 49, 0.4);
}

/* Buton içindeki ikonlar */
.theme-btn.add-to-cart-main-btn i,
.theme-btn.modal-add-btn i {
    font-size: 18px;
    margin-right: 8px;
}

/* Responsive - Mobil */
@media (max-width: 767px) {
    .theme-btn.add-to-cart-main-btn,
    .theme-btn.modal-add-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ============================================
   2. SEPET BADGE (Ürün Kartlarında)
   ============================================ */

.product-cart-badge {
    display: none;
    position: absolute;
    top: 11px !important;
    right: -8px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #e89520 !important;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-cart-badge.in-cart {
    display: inline-flex;
}

/* ============================================
   3. ÜRÜN OPSİYON MODALI (Boyut, Malzeme, Extra)
   ============================================ */

/* NOT: Modal overlay stilleri product-detail.blade.php içinde tanımlı (.product-modal-overlay)
   Bu dosyada sadece modal içeriği için stiller var */

/* Modal içerik stilleri product-detail.blade.php içinde tanımlı */

/* ============================================
   4. HARİCİ MALZEME MODALI (İçecek, Atıştırmalık)
   ============================================ */

.extras-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Çok yüksek z-index - her şeyin üstünde */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Modal kapalıyken tıklamaları engelleme */
    transition: all 0.3s ease;
}

.extras-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Modal açıkken tıklamaları etkinleştir */
}

.extras-modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

/* Extras Modal Header */
.extras-modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f6a631 0%, #e89520 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.extras-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.extras-modal-header p {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

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

.extras-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.extras-modal-close i {
    font-size: 20px;
    color: #fff;
}

/* Kategori Sekmeleri */
.extras-categories {
    display: flex;
    gap: 0;
    background: #f8f8f8;
    border-bottom: 2px solid #e0e0e0;
}

.extras-category-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.extras-category-tab.active {
    color: #f6a631;
    background: #fff;
}

.extras-category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f6a631;
}

.extras-category-tab:hover {
    background: #fff;
}

/* Ürün Listesi */
.extras-modal-body {
    padding: 20px 30px;
    max-height: 50vh;
    overflow-y: auto;
}

.extras-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 575px) {
    .extras-products-grid {
        grid-template-columns: 1fr;
    }
}

.extras-product-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extras-product-card:hover {
    border-color: #f6a631;
    background: #fff5e6;
}

.extras-product-card.selected {
    border-color: #f6a631;
    background: #fff5e6;
}

.extras-product-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #f6a631;
    cursor: pointer;
}

.extras-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.extras-product-info {
    flex: 1;
}

.extras-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

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

/* Extras Modal Footer */
.extras-modal-footer {
    padding: 20px 30px;
    background: #f8f8f8;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.extras-selected-count {
    font-size: 15px;
    color: #666;
}

.extras-selected-count strong {
    color: #f6a631;
    font-size: 18px;
}

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

.extras-skip-btn {
    padding: 14px 25px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extras-skip-btn:hover {
    border-color: #999;
    color: #333;
}

.extras-confirm-btn {
    padding: 14px 30px;
    background: #f6a631;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extras-confirm-btn:hover {
    background: #e89520;
    box-shadow: 0 4px 15px rgba(246, 166, 49, 0.4);
}

/* ============================================
   5. RESPONSIVE DÜZENLEMELER
   ============================================ */

@media (max-width: 767px) {
    .extras-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .extras-modal-header h3 {
        font-size: 20px;
    }
    
    .extras-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .extras-modal-actions {
        width: 100%;
    }
    
    .extras-skip-btn,
    .extras-confirm-btn {
        flex: 1;
    }
}

/* ============================================
   6. SCROLL BAR STİLİ (Modal İçin)
   ============================================ */

.extras-modal-body::-webkit-scrollbar {
    width: 8px;
}

.extras-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.extras-modal-body::-webkit-scrollbar-thumb {
    background: #f6a631;
    border-radius: 10px;
}

.extras-modal-body::-webkit-scrollbar-thumb:hover {
    background: #e89520;
}

/* Footer Bilgilendirme - sadece transition (override'lar header'da !important ile) */
.footer-bilgilendirme-links a {
    transition: color 0.3s;
}
