/* ========================================================================= */
/* DOSYA: public/assets/css/b2b-public-style.css (TAMAMI)                    */
/* ========================================================================= */

.b2b-main-wrapper {
    font-size: 15px;
}

.b2b-container { 
    max-width: 100%;
    width: 100%;
    margin-left: auto; 
    margin-right: auto; 
    padding-left: 30px;
    padding-right: 30px; 
    box-sizing: border-box;
}
.b2b-row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.b2b-col-lg-8, .b2b-col-lg-4 { position: relative; width: 100%; padding-left: 15px; padding-right: 15px; box-sizing: border-box; }
@media (min-width: 992px) {
    .b2b-col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .b2b-col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

/* Genel Elementler */
.b2b-hr { border: 0; border-top: 1px solid #e9ecef; margin: 1.5rem 0; }
.b2b-page-header { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }

/* Uyarı Mesajları */
.b2b-alert { padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem; font-size: 0.9rem; line-height: 1.5; }
.b2b-alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
.b2b-alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }

/* Başlıklar */
.b2b-section-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.b2b-section-title img { height: 24px; }
.b2b-section-title small { font-size: 0.8rem; color: #6c757d; font-weight: 400; }

/* Teslimat Bölümü */
.b2b-delivery-inputs { display: flex; gap: 1rem; align-items: center; }
.b2b-delivery-inputs input { padding: .5rem .75rem; border: 1px solid #ced4da; border-radius: .25rem; }
.b2b-delivery-info { font-size: 0.85rem; color: #6c757d; margin-top: 0.5rem; }

/* Teklif Listesi */
.b2b-cart-item-list { border: 1px solid #e9ecef; border-radius: .25rem; }
.b2b-cart-item { 
    position: relative;
    padding: 1.5rem; 
    border-bottom: 1px solid #e9ecef; 
}
.b2b-cart-item:last-child { border-bottom: none; }
.b2b-cart-item-top { display: flex; gap: 1rem; flex-wrap: wrap; }
.b2b-item-image { flex-shrink: 0; width: 150px; }
.b2b-item-image img { max-width: 100%; height: auto; border-radius: 4px; }
.b2b-item-details { flex-grow: 1; min-width: 200px; }
.b2b-item-title { font-size: 1.1rem; font-weight: 600; text-decoration: none; color: #212529; }
.b2b-item-features { font-size: 0.9rem; color: #6c757d; margin-top: 0.5rem; }
.b2b-item-features p { margin: 0 0 5px; }

.b2b-item-quantity-section { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    margin-left: 0;
    margin-top: 1rem;
}

.b2b-quantity-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.b2b-remove-item { 
    position: static;
    background: #f1f1f1; 
    border: 1px solid #ddd;
    border-radius: 50%; 
    width: 28px;
    height: 28px;
    cursor: pointer; 
    font-size: 1.4rem; 
    line-height: 26px;
    text-align: center; 
    color: #888;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}
.b2b-remove-item:hover { 
    background: #e0e0e0; 
    color: #d00; 
    border-color: #bbb;
    transform: scale(1.1);
}

.b2b-quantity-selector { display: flex; align-items: center; border: 1px solid #ced4da; border-radius: 50rem; }
.b2b-qty-btn { background: transparent; border: none; cursor: pointer; font-size: 1.2rem; padding: 5px 15px; color: #495057; }
.b2b-qty-input { width: 60px; text-align: center; border: none; background: #f8f9fa; font-weight: bold; -moz-appearance: textfield; }
.b2b-qty-input::-webkit-outer-spin-button, .b2b-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b2b-min-order { font-size: 0.8rem; color: #856404; margin-top: 0.5rem; background-color: #fff3cd; padding: 2px 8px; border-radius: 10px; }
.b2b-quote-empty { padding: 2rem; text-align: center; color: #6c757d; }

/* DEĞİŞİKLİK: Not alanı stilleri kaldırıldı */

/* Sidebar Form */
.b2b-sidebar-form { background-color: #f8f9fa; padding: 2rem; border-radius: .25rem; border: 1px solid #e9ecef; }
.b2b-sidebar-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.b2b-sidebar-subtitle { color: #6c757d; margin-bottom: 1.5rem; }
.b2b-form-fields .form-row { margin-bottom: 1rem; }
.b2b-form-fields input[type="text"], .b2b-form-fields input[type="email"], .b2b-form-fields input[type="tel"], .b2b-form-fields textarea { width: 100%; padding: 0.75rem; border: 1px solid #ced4da; border-radius: .25rem; background-color: #fff; box-sizing: border-box; }
.b2b-submit-button { width: 100%; padding: 1rem; background-color: #28a745; color: white; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
.b2b-submit-button:hover { background-color: #218838; }

/* File Upload */
.b2b-file-input { display: none; }
.b2b-file-label { display: flex; align-items: center; border: 1px solid #ced4da; border-radius: .25rem; padding: .375rem .75rem; cursor: pointer; background-color: #fff; }
.b2b-file-btn { background-color: #e9ecef; border: 1px solid #ced4da; padding: .375rem .75rem; border-radius: .25rem; margin-right: .75rem; }
.b2b-file-text { color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Checkbox */
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { flex-shrink: 0; }
.form-check label { font-size: 0.85rem; color: #495057; }

/* Başarı Mesajı */
.b2b-quote-success-message { padding: 2rem; text-align: center; background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; border-radius: 5px; font-size: 1.2rem; }

/* WhatsApp Butonunun dinamik metin renginin
   diğer kurallar tarafından ezilmemesini sağlar */
.b2b-submit-button.b2b-whatsapp-button {
    color: var(--b2b-wa-text-color, #FFFFFF) !important;
}

/* ========================================================== */
/* Woodmart Adet Kutusu Bütünleşik +10 / -10 Buton Stilleri   */
/* ========================================================== */

/* 1. Butonlar Woodmart'ın kendi input[type="button"] stilini otomatik alır.
      Biz sadece fontu kalınlaştırıp rakam sığsın diye genişliği ayarlıyoruz. */
div.quantity .b2b-step-btn {
    font-weight: 600;
    width: 40px; /* Standart butonlardan biraz daha geniş (sayılar sığsın diye) */
}

/* 2. Orijinal - ve + butonları artık ortada kalacağı için onların dış köşe yuvarlaklığını iptal et */
div.quantity input.minus,
div.quantity input.plus {
    border-radius: 0 !important;
}

/* 3. Sol baştaki -10 butonuna temanın orijinal sol köşe yuvarlaklığını ver */
div.quantity .b2b-step-btn[data-step="-10"] {
    border-start-start-radius: var(--wd-form-brd-radius) !important;
    border-end-start-radius: var(--wd-form-brd-radius) !important;
    /* Eski tarayıcılar için yedek */
    border-top-left-radius: var(--wd-form-brd-radius) !important;
    border-bottom-left-radius: var(--wd-form-brd-radius) !important;
}

/* 4. Sağ baştaki +10 butonuna temanın orijinal sağ köşe yuvarlaklığını ver */
div.quantity .b2b-step-btn[data-step="10"] {
    border-start-end-radius: var(--wd-form-brd-radius) !important;
    border-end-end-radius: var(--wd-form-brd-radius) !important;
    /* Eski tarayıcılar için yedek */
    border-top-right-radius: var(--wd-form-brd-radius) !important;
    border-bottom-right-radius: var(--wd-form-brd-radius) !important;
}

/* 5. Butonlar yan yana gelince ortadaki çizgilerin çift (kalın) görünmesini engelle */
div.quantity input.minus,
div.quantity input.qty,
div.quantity input.plus,
div.quantity .b2b-step-btn[data-step="10"] {
    border-left: none !important;
}




