/* Ana Izgara Yapısı */
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 20px 0; }

/* Kart Tasarımı */
.bb-card { border: 1px solid #f0f0f0; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.bb-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.bb-card-img-wrapper { 
    position: relative; 
    overflow: hidden;
    cursor: pointer;
}
.bb-card-main-img { 
    width: 100%; 
    height: 210px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.3s;
}
.bb-card-img-wrapper:hover .bb-card-main-img {
    transform: scale(1.05);
}

.bb-card-body { padding: 20px; }
.bb-card-body h3 { font-size: 19px; margin: 0 0 15px; color: #333; font-weight: 700; }

/* Seçenek Kutuları ve Ok İşareti */
.bb-sel-wrap { position: relative; margin-bottom: 12px; }
.bb-sel-wrap select { 
    width: 100% !important; 
    padding: 12px 35px 12px 12px !important; 
    border: 1px solid #e0e0e0 !important; 
    border-radius: 8px !important; 
    appearance: none !important; 
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #fff !important; 
    font-size: 14px !important; 
    cursor: pointer !important; 
    color: #555 !important;
    outline: none !important;
}

.bb-sel-wrap select:focus {
    border-color: #e67e22 !important;
}

/* Static Select (Tek Seçenek) */
.bb-static-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 14px;
    color: #555;
    text-align: center;
    font-weight: 600;
}

.bb-pin-icon {
    margin-right: 5px;
}

/* Ok İkonu (Sadece select'lerde) */
.bb-arrow {
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent; 
    border-right: 5px solid transparent; 
    border-top: 6px solid #aaa; 
    pointer-events: none;
}

/* Alt Kısım: Fiyat, Adet ve Buton */
.bb-card-ft { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid #f9f9f9; }
.bb-card-qty {
    display: flex; align-items: center; gap: 0;
    border: 2px solid #e67e22; border-radius: 8px; overflow: hidden;
}
.bb-qty-btn-card {
    width: 36px; height: 36px; min-width: 36px;
    background: #e67e22; color: #fff; border: none;
    font-size: 20px; font-weight: bold; line-height: 1;
    cursor: pointer; padding: 0; transition: 0.2s;
}
.bb-qty-btn-card:hover { background: #d35400; }
.bb-qty-input-card {
    width: 42px; text-align: center; border: none;
    font-size: 16px; font-weight: bold;
    padding: 6px 4px; -moz-appearance: textfield;
}
.bb-qty-input-card::-webkit-outer-spin-button,
.bb-qty-input-card::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bb-qty-label { padding: 0 8px; font-size: 13px; color: #666; font-weight: 600; }

.bb-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bb-price { font-size: 22px; font-weight: 800; color: #e67e22; }

.bb-custom-amount {
    display: none;
    position: relative;
}

.bb-custom-price-input {
    width: 120px;
    padding: 10px 35px 10px 10px;
    border: 2px solid #e67e22;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    outline: none;
    transition: 0.3s;
}

.bb-custom-price-input:focus {
    border-color: #d35400;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.bb-custom-price-input::placeholder {
    color: #999;
    font-weight: normal;
}

.bb-currency {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #e67e22;
    pointer-events: none;
}

.bb-btn { 
    background: #e67e22; 
    color: #fff; 
    border: none; 
    padding: 12px 20px; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer !important; 
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 10;
}
.bb-btn:hover { 
    background: #d35400; 
    opacity: 0.9;
    transform: translateY(-2px);
}
.bb-btn:active {
    transform: scale(0.95);
}

/* Mobil Uyumluluk */
@media (max-width: 992px) { .bb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bb-grid { grid-template-columns: 1fr; } }

/* POPUP STILLER */
#bb-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#bb-popup-overlay.show {
    display: flex !important;
}

#bb-popup {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: bbPopupSlide 0.3s ease-out;
    position: relative;
}

.bb-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-popup-close:hover {
    background: #e67e22;
    color: #fff;
    transform: rotate(90deg);
}

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

.bb-popup-icon {
    width: 70px;
    height: 70px;
    background: #46b450;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

#bb-popup h3 {
    font-size: 22px;
    margin: 0 0 25px;
    color: #333;
}

.bb-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bb-popup-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.bb-popup-btn.primary {
    background: #e67e22;
    color: #fff;
}

.bb-popup-btn.primary:hover {
    background: #d35400;
}

.bb-popup-btn.secondary {
    background: #ecf0f1;
    color: #555;
}

.bb-popup-btn.secondary:hover {
    background: #bdc3c7;
}

/* ========================================
   SIDEBAR SEPET [bb_sepet_sidebar]
   ======================================== */
.bb-sepet-sidebar {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    width: 320px; max-width: 95vw;
    background: #fff; border: 2px solid #e67e22; border-right: none;
    border-radius: 12px 0 0 12px; box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 9999; padding: 20px;
}
.bb-sepet-sidebar-title {
    font-size: 18px; font-weight: bold; color: #e67e22;
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e67e22;
}
.bb-sidebar-items { max-height: 280px; overflow-y: auto; }
.bb-sidebar-empty { color: #999; font-size: 14px; padding: 20px 0; text-align: center; }
.bb-sidebar-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 12px 0; border-bottom: 1px solid #eee; position: relative;
}
.bb-sidebar-item-name { flex: 1; font-weight: 600; font-size: 14px; }
.bb-sidebar-item-detail { font-size: 12px; color: #666; margin-top: 4px; }
.bb-sidebar-remove {
    position: absolute; top: 8px; right: 0;
    width: 24px; height: 24px; border: none; background: #e74c3c;
    color: #fff; border-radius: 50%; cursor: pointer; font-size: 18px;
    line-height: 1; padding: 0; transition: 0.2s;
}
.bb-sidebar-remove:hover { background: #c0392b; }
.bb-sidebar-footer { margin-top: 15px; padding-top: 15px; border-top: 2px solid #e67e22; }
.bb-sidebar-total-wrap { font-size: 18px; margin-bottom: 12px; }
.bb-sidebar-checkout-btn {
    display: block; text-align: center; padding: 14px;
    background: #e67e22; color: #fff; font-weight: bold;
    border-radius: 8px; text-decoration: none; transition: 0.3s;
}
.bb-sidebar-checkout-btn:hover { background: #d35400; color: #fff; }

/* ========================================
   SEPET İKONU
   ======================================== */
.bb-sepet-ikon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}
.bb-sepet-count {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ========================================
   SEKMELİ BAĞIŞ [bagis_sekmeleri]
   ======================================== */
.bb-tabs-wrapper { margin: 30px 0; }
.bb-tabs-nav { 
    display: flex; gap: 5px; margin-bottom: 30px; 
    border-bottom: 2px solid #e0e0e0; flex-wrap: wrap; background: transparent;
}
.bb-tab-btn { 
    padding: 14px 28px; background: transparent; border: none; 
    border-bottom: 3px solid transparent; cursor: pointer; font-size: 15px; 
    font-weight: 500; color: #666; transition: all 0.3s ease; white-space: nowrap;
}
.bb-tab-btn:hover { 
    color: #e67e22; background: rgba(230, 126, 34, 0.08); border-radius: 8px 8px 0 0;
}
.bb-tab-btn.active { 
    color: #e67e22; border-bottom-color: #e67e22; 
    background: rgba(230, 126, 34, 0.05); font-weight: 600; border-radius: 8px 8px 0 0;
}
.bb-tab-count {
    display: inline-block; background: #f0f0f0; color: #666;
    padding: 2px 8px; border-radius: 12px; font-size: 12px; margin-left: 6px; font-weight: 600;
}
.bb-tab-btn.active .bb-tab-count { background: #e67e22; color: #fff; }
.bb-tab-ikon { display: inline-block; margin-right: 6px; vertical-align: middle; }
.bb-tab-ikon-emoji { display: inline-block; margin-right: 6px; font-size: 1.1em; }
.bb-tab-pane { display: none; }
.bb-tab-pane.active { display: block; animation: bbFadeIn 0.4s ease-in-out; }
@keyframes bbFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .bb-tabs-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .bb-tab-btn { white-space: nowrap; padding: 12px 20px; font-size: 14px; flex: 0 0 auto; }
    .bb-tab-count { font-size: 11px; padding: 1px 6px; }
}

/* ========================================
   CHECKOUT / SEPETİM SAYFASI
   ======================================== */
#bb-checkout-isolated .bb-checkout-container { 
    max-width: 1200px; margin: 40px auto; padding: 20px; background: transparent;
}
#bb-checkout-isolated .bb-checkout-container * { box-sizing: border-box; }
#bb-checkout-isolated .bb-checkout-header { 
    text-align: center; margin-bottom: 40px; padding: 30px 20px;
    background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#bb-checkout-isolated .bb-checkout-header h1 { margin: 0 0 15px; color: #333; font-size: 32px; }
#bb-checkout-isolated .bb-back-home {
    color: #666; text-decoration: none; font-size: 14px; transition: 0.3s;
}
#bb-checkout-isolated .bb-back-home:hover { color: #e67e22; }
#bb-checkout-isolated .bb-checkout-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
#bb-checkout-isolated .bb-checkout-steps { 
    display: flex; justify-content: space-between; margin-bottom: 40px; gap: 10px;
}
#bb-checkout-isolated .bb-checkout-steps .bb-step { 
    flex: 1; text-align: center; padding: 20px; background: #fff; 
    border-radius: 10px; transition: 0.3s;
}
#bb-checkout-isolated .bb-checkout-steps .bb-step.active { 
    background: #e67e22; color: #fff; box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
}
#bb-checkout-isolated .bb-checkout-steps .step-num { 
    display: block; width: 40px; height: 40px; background: #f0f0f0; color: #333;
    border-radius: 50%; line-height: 40px; margin: 0 auto 10px; font-weight: bold;
}
#bb-checkout-isolated .bb-checkout-steps .bb-step.active .step-num { 
    background: #fff; color: #e67e22;
}
#bb-checkout-isolated .bb-checkout-steps .step-label { font-size: 14px; font-weight: 600; }
#bb-checkout-isolated .bb-step-content { 
    display: none; background: #fff; padding: 40px; border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#bb-checkout-isolated .bb-step-content.active { display: block; }
#bb-checkout-isolated .bb-step-content h2 {
    margin-top: 0; color: #333; border-bottom: 2px solid #e67e22;
    padding-bottom: 15px; margin-bottom: 30px;
}
#bb-checkout-isolated .bb-form-row { margin-bottom: 20px; }
#bb-checkout-isolated .bb-form-row label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
#bb-checkout-isolated .bb-form-row input[type="text"],
#bb-checkout-isolated .bb-form-row input[type="tel"],
#bb-checkout-isolated .bb-form-row input[type="email"],
#bb-checkout-isolated .bb-form-row textarea { 
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 15px; box-sizing: border-box; transition: 0.3s;
}
#bb-checkout-isolated .bb-form-row input:focus,
#bb-checkout-isolated .bb-form-row textarea:focus {
    outline: none; border-color: #e67e22; box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}
#bb-checkout-isolated .bb-vekalet-row { 
    background: #fff5f5; padding: 15px; border: 1px solid #e74c3c; border-radius: 8px;
}
#bb-checkout-isolated .bb-vekalet-label { color: #c0392b; font-weight: bold; }
#bb-checkout-isolated .bb-vekalet-blink { 
    display: inline-block; animation: bb-blink 1s infinite; margin-right: 5px; font-size: 18px;
}
@keyframes bb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
#bb-checkout-isolated .bb-nav-buttons {
    display: flex; gap: 15px; justify-content: space-between; margin-top: 30px;
}
#bb-checkout-isolated .bb-next-btn,
#bb-checkout-isolated .bb-prev-btn,
#bb-checkout-isolated .bb-complete-btn { 
    background: #e67e22; color: #fff; padding: 15px 35px; border: none; border-radius: 8px;
    font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s; flex: 1;
}
#bb-checkout-isolated .bb-next-btn:hover,
#bb-checkout-isolated .bb-complete-btn:hover { 
    background: #d35400; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}
#bb-checkout-isolated .bb-prev-btn { background: #95a5a6; flex: 0 0 auto; }
#bb-checkout-isolated .bb-prev-btn:hover { background: #7f8c8d; }
#bb-checkout-isolated .bb-cart-item { 
    display: flex; justify-content: space-between; padding: 20px; 
    border-bottom: 1px solid #eee; align-items: center;
}
#bb-checkout-isolated .item-qty { display: flex; align-items: center; gap: 8px; }
#bb-checkout-isolated .bb-qty-btn {
    width: 32px; height: 32px; border: 1px solid #ddd; background: #f5f5f5;
    cursor: pointer; font-size: 18px; line-height: 1; padding: 0; border-radius: 5px;
}
#bb-checkout-isolated .bb-qty-btn:hover { background: #e67e22; color: #fff; }
#bb-checkout-isolated .bb-cart-item:last-child { border-bottom: none; }
#bb-checkout-isolated .bb-cart-item .item-info { flex: 1; }
#bb-checkout-isolated .bb-cart-item .item-info strong { 
    display: block; font-size: 18px; margin-bottom: 5px; color: #333;
}
#bb-checkout-isolated .bb-cart-item .item-info p { margin: 0; color: #777; font-size: 14px; }
#bb-checkout-isolated .bb-cart-item .item-actions { display: flex; align-items: center; gap: 15px; }
#bb-checkout-isolated .bb-cart-item .item-price { font-size: 22px; font-weight: bold; color: #e67e22; }
#bb-checkout-isolated .bb-remove-btn {
    background: #e74c3c; color: #fff; border: none; padding: 8px 12px;
    border-radius: 5px; cursor: pointer; font-size: 16px; transition: 0.3s;
}
#bb-checkout-isolated .bb-remove-btn:hover { background: #c0392b; transform: scale(1.1); }
#bb-checkout-isolated .bb-cart-total { 
    text-align: right; padding: 25px 20px; font-size: 24px; font-weight: bold;
    color: #e67e22; background: #fff8f3; border-radius: 8px; margin-top: 20px;
}
#bb-checkout-isolated .bb-payment-options { margin: 20px 0; }
#bb-checkout-isolated .payment-option { 
    display: flex; align-items: center; padding: 15px; border: 2px solid #ddd;
    border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: 0.3s;
}
#bb-checkout-isolated .payment-option:hover { border-color: #e67e22; background: #fff8f3; }
#bb-checkout-isolated .payment-option input[type="radio"] { margin-right: 10px; width: auto; cursor: pointer; }
#bb-checkout-isolated .payment-option span { cursor: pointer; font-size: 16px; }
#bb-checkout-isolated .payment-option:has(input[type="radio"]:checked) { 
    border-color: #e67e22; background: #fff8f3;
}
#bb-checkout-isolated .payment-option:has(input[type="radio"]:checked) span { color: #e67e22; font-weight: bold; }
#bb-checkout-isolated .havale-info-box { 
    margin: 15px 0; padding: 20px; background: #f9f9f9; border-radius: 8px; border-left: 4px solid #e67e22;
}
@media (max-width: 768px) {
    #bb-checkout-isolated .bb-checkout-steps { flex-direction: column; }
    #bb-checkout-isolated .bb-checkout-steps .bb-step { padding: 15px; }
    #bb-checkout-isolated .bb-checkout-steps .step-label { font-size: 12px; }
    #bb-checkout-isolated .bb-step-content { padding: 25px 20px; }
    #bb-checkout-isolated .bb-nav-buttons { flex-direction: column; }
    #bb-checkout-isolated .bb-prev-btn { flex: 1; }
}

/* ========================================
   BAŞARILI ÖDEME SAYFASI
   ======================================== */
.bb-success-container { max-width: 800px; margin: 60px auto; padding: 20px; }
.bb-success-box {
    background: #fff; border-radius: 15px; padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center;
}
.bb-success-icon {
    width: 80px; height: 80px; background: #46b450; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 50px;
    margin: 0 auto 30px; animation: bbSuccessPop 0.5s ease-out;
}
@keyframes bbSuccessPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.bb-success-box h1 { color: #333; font-size: 32px; margin: 0 0 15px; }
.bb-success-message { color: #666; font-size: 18px; margin-bottom: 40px; }
.bb-havale-info {
    background: #f9f9f9; border-radius: 10px; padding: 30px; margin: 30px 0; text-align: left;
}
.bb-havale-info h2 { color: #e67e22; font-size: 24px; margin: 0 0 25px; text-align: center; }
.bb-info-grid { display: grid; gap: 20px; }
.bb-info-item {
    display: flex; justify-content: space-between; align-items: center; padding: 15px;
    background: #fff; border-radius: 8px; border: 1px solid #e0e0e0;
}
.bb-info-item strong { color: #555; font-size: 14px; min-width: 80px; }
.bb-info-item span { flex: 1; font-size: 16px; color: #333; font-weight: 600; }
.bb-iban { font-family: monospace; letter-spacing: 1px; }
.bb-amount { color: #e67e22; font-size: 20px; }
.bb-copy-btn {
    background: #e67e22; color: #fff; border: none; padding: 8px 15px; border-radius: 5px;
    cursor: pointer; font-size: 13px; transition: 0.3s; margin-left: 10px;
}
.bb-copy-btn:hover { background: #d35400; }
.bb-info-note {
    margin-top: 25px; padding: 20px; background: #fff3cd; border-left: 4px solid #ffc107; border-radius: 5px;
}
.bb-info-note p { margin: 5px 0; color: #856404; font-size: 14px; }
.bb-success-actions { display: flex; gap: 15px; justify-content: center; margin-top: 40px; }
.bb-btn-home, .bb-btn-donate {
    padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: 0.3s; font-size: 16px;
}
.bb-btn-home { background: #95a5a6; color: #fff; }
.bb-btn-home:hover { background: #7f8c8d; }
.bb-btn-donate { background: #e67e22; color: #fff; }
.bb-btn-donate:hover { background: #d35400; }
@media (max-width: 600px) {
    .bb-success-box { padding: 30px 20px; }
    .bb-info-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bb-copy-btn { margin-left: 0; width: 100%; }
    .bb-success-actions { flex-direction: column; }
}