/*!
 * TearTrade Bootstrap Subset (PERF-2)
 * --------------------------------------------------------------
 * Bootstrap 5.3 full bundle (~30KB gzip / ~227KB raw) yerine sadece
 * teartrade.com EJS view'larında gerçekten kullanılan class'lar.
 *
 * Tarama sonucu (scripts/find_bs_classes.js, 2026-05-15):
 *   23 unique Bootstrap-style class — büyük çoğunluğu zaten
 *   ilgili EJS dosyasının kendi <style> bloğunda override ediliyor.
 *   Bu dosya genel "fallback" katmanı: account.ejs / checkout.ejs / vs.
 *   local stilleri load olmadıysa veya hiç override etmediyse görsel
 *   makul kalsın.
 *
 * Kapsam dışı:
 *   - Bootstrap JS (modal/dropdown/collapse) — site hiçbir yerde
 *     data-bs-* attribute kullanmıyor, JS gerek yok.
 *   - Grid system (.row, .col-*) — kullanılmıyor (count = 0).
 *   - Utility'ler (d-flex, text-center, mt-3, vb.) — kullanılmıyor.
 *
 * Admin paneli (tearenterprise.com) BU dosyayı kullanmıyor; admin
 * Bootstrap'i kendi layout'larından (CDN inline) yüklemeye devam ediyor.
 * views/teartrade/partials/header.ejs yalnızca teartrade view'larına include.
 * --------------------------------------------------------------
 */

/* ----- 1) Container (brands.ejs) ---------------------------------------- */
/* Bootstrap'in container'ı: responsive max-width + auto margin + padding */
.container {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ----- 2) Buttons (.btn, .btn-primary, .btn-secondary, .btn-sm) --------- */
/* account.ejs zaten override ediyor; bu fallback diğer sayfalar için. */
.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  font-family: inherit;
}
.btn:hover { color: #212529; }
.btn:focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(28, 73, 194, 0.25); }
.btn:disabled, .btn.disabled { pointer-events: none; opacity: 0.65; }

.btn-primary {
  color: #fff;
  background-color: #1c49c2;
  border-color: #1c49c2;
}
.btn-primary:hover { background-color: #163a9b; border-color: #163a9b; color: #fff; }

.btn-secondary {
  color: #4b5563;
  background-color: #fff;
  border-color: #d1d5db;
}
.btn-secondary:hover { color: #1c49c2; border-color: #1c49c2; }

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  border-radius: 0.4rem;
}

/* ----- 3) Cards (.card, .card-header, .card-body, .card-title, .card-text) */
/* account.ejs override ediyor; bu fallback. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
}
.card-header {
  padding: 0.875rem 1rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.025);
  border-bottom: 1px solid rgba(0, 0, 0, 0.075);
  border-top-left-radius: calc(0.5rem - 1px);
  border-top-right-radius: calc(0.5rem - 1px);
}
.card-body {
  flex: 1 1 auto;
  padding: 1rem;
}
.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.card-text:last-child { margin-bottom: 0; }

/* ----- 4) Alerts (.alert, .alert-success) ------------------------------- */
/* account.ejs override ediyor; bu fallback. */
.alert {
  position: relative;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
}
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* ----- 5) Form controls (.form-label, .form-select) --------------------- */
/* account.ejs override ediyor; bu fallback. */
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  appearance: none;
}
.form-select:focus {
  border-color: #1c49c2;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(28, 73, 194, 0.2);
}

/* ----- 6) Input group (.input-group) ------------------------------------ */
/* customer-service.ejs + cargo-tracking.ejs override ediyor; fallback. */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

/* ----- 7) Modal classes (.modal-header, .modal-title, .modal-body, .modal-footer) */
/* account.ejs override ediyor; fallback (Bootstrap JS yok, sadece styling). */
.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.125rem;
  font-weight: 600;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  gap: 0.5rem;
}

/* ----- 8) Pagination (.pagination) -------------------------------------- */
/* bestsellers/brand-detail/outlet kendi pagination CSS'ini set ediyor.   */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
}

/* ----- 9) Breadcrumb (.breadcrumb) -------------------------------------- */
/* product-detail.ejs custom breadcrumb CSS; fallback. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 1rem;
  list-style: none;
}

/* ----- 10) Dropdown (.dropdown-menu, .dropdown-divider) ----------------- */
/* header.ejs:2341+ kendi dropdown CSS'ini set ediyor; fallback. */
.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 0.9375rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}
.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid #e9ecef;
}

/* ------------------------------------------------------------------------
 * Toplam: ~5KB raw, ~1.5KB gzipped
 * Bootstrap full bundle yerine ~30KB gzip / ~95% bandwidth tasarrufu.
 * ------------------------------------------------------------------------ */
