/* BagButique temasi (bkz. issue #371, Themes/TEMA_SOZLESMESI.md).
   Bi Bag Lutfen HTML paketinden uyarlandi. Gorsel dil: krem zemin, kahve (#50372e) ana eylem, terra (#9d624d)
   vurgu, serif (Georgia) basliklar + DM Sans metin, koseli butonlar, buyuk harf ve genis harf araligi.
   Tek dosya: degiskenler + layout + ortak sayfa stilleri. */

/* ===== Tema degiskenleri (sozlesme bolum 4) ===== */
:root {
    --theme-primary: #50372e;
    --theme-primary-hover: #36221b;
    --theme-on-primary: #fff;
    --theme-accent: #9d624d;
    --theme-bg: #fbf8f3;
    --theme-surface: #fffcf8;
    --theme-surface-alt: #f3e9df;
    --theme-text: #30231e;
    --theme-text-muted: #6f5d55;
    --theme-border: #e7dcd1;
    --theme-link: #30231e;
    --theme-price: #30231e;
    --theme-price-old: #8d7d73;
    --theme-success: #3f6b4a;
    --theme-warning: #8f5414;
    --theme-danger: #a9403b;
    --theme-info: #3f6385;
    --theme-header-bg: #fffcf8;
    --theme-header-text: #30231e;
    --theme-footer-bg: #fcf8f3;
    --theme-footer-text: #6f5d55;
    --theme-radius: 0px;
    --theme-radius-lg: 0px;
    --theme-shadow: 0 18px 55px rgba(65,40,29,.10);
    --theme-font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --theme-font-heading: Georgia, "Times New Roman", serif;

    /* Yardimci tonlar */
    --bb-sand: #f3e9df;
    --bb-pink: #f5dfd9;
    --bb-rose: #e8bdb4;
    --bb-blush: #f8f0e8;
    --bb-accent-trans: rgba(157,98,77,.12);

    --bs-primary: #50372e;  --bs-primary-rgb: 80,55,46;
    --bs-body-bg: #fbf8f3;  --bs-body-color: #30231e;
    --bs-body-font-family: var(--theme-font-body);
    --bs-border-color: #e7dcd1;
    --bs-border-radius: 0; --bs-border-radius-sm: 0; --bs-border-radius-lg: 0;
    --bs-link-color: #30231e; --bs-link-color-rgb: 48,35,30;
    --bs-link-hover-color: #9d624d; --bs-link-hover-color-rgb: 157,98,77;
    --bs-focus-ring-color: rgba(157,98,77,.3);
}

/* ===== Temel ===== */
html { scroll-behavior: smooth; }
body.bb-theme {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--theme-bg); color: var(--theme-text);
    font-family: var(--theme-font-body); font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
body.bb-theme a { color: var(--theme-link); text-decoration: none; }
body.bb-theme a:hover { color: var(--theme-accent); }
body.bb-theme h1, body.bb-theme h2, body.bb-theme h3 { font-family: var(--theme-font-heading); font-weight: 400; letter-spacing: -.02em; }
body.bb-theme h4, body.bb-theme h5, body.bb-theme h6 { font-family: var(--theme-font-body); font-weight: 700; }
body.bb-theme :focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 3px; }
.bb-main { flex: 1 0 auto; min-height: 45vh; padding-bottom: 2.5rem; }

/* .btn-success / .text-success ortak sayfalarda ana eylem anlamina gelir: kahve. Gercek durum rozetleri yesil kalir. */
body.bb-theme .text-success { color: var(--theme-accent) !important; }
body.bb-theme .border-success { border-color: var(--theme-primary) !important; }

/* ===== Butonlar: koseli, buyuk harf ===== */
body.bb-theme .btn {
    min-height: 44px; border-radius: 0; font-size: .78rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
}
body.bb-theme .btn-sm { min-height: 34px; font-size: .7rem; }
body.bb-theme .btn-lg { min-height: 52px; }
body.bb-theme .btn-primary,
body.bb-theme .btn-success {
    --bs-btn-bg: var(--theme-primary); --bs-btn-border-color: var(--theme-primary);
    --bs-btn-hover-bg: var(--theme-primary-hover); --bs-btn-hover-border-color: var(--theme-primary-hover);
    --bs-btn-active-bg: var(--theme-primary-hover); --bs-btn-active-border-color: var(--theme-primary-hover);
    --bs-btn-disabled-bg: var(--theme-primary); --bs-btn-disabled-border-color: var(--theme-primary);
    --bs-btn-color: var(--theme-on-primary); --bs-btn-hover-color: var(--theme-on-primary);
    --bs-btn-active-color: var(--theme-on-primary); --bs-btn-disabled-color: var(--theme-on-primary);
    background-color: var(--bs-btn-bg); border-color: var(--bs-btn-border-color); color: var(--theme-on-primary);
    transition: background .22s, transform .22s;
}
body.bb-theme .btn-primary:hover,
body.bb-theme .btn-success:hover { background-color: var(--theme-primary-hover); border-color: var(--theme-primary-hover); transform: translateY(-1px); }
body.bb-theme .btn-outline-primary,
body.bb-theme .btn-outline-success {
    --bs-btn-color: var(--theme-primary); --bs-btn-border-color: var(--theme-primary);
    --bs-btn-hover-bg: var(--bb-sand); --bs-btn-hover-color: var(--theme-primary); --bs-btn-hover-border-color: var(--theme-primary);
    --bs-btn-active-bg: var(--bb-sand); --bs-btn-active-color: var(--theme-primary);
}
body.bb-theme .btn-outline-secondary {
    --bs-btn-color: var(--theme-text); --bs-btn-border-color: var(--theme-border);
    --bs-btn-hover-bg: var(--bb-sand); --bs-btn-hover-color: var(--theme-text); --bs-btn-hover-border-color: #d8c8ba;
    --bs-btn-active-bg: var(--bb-sand); --bs-btn-active-color: var(--theme-text);
    background: var(--theme-surface);
}
body.bb-theme .btn-outline-danger {
    --bs-btn-color: var(--theme-danger); --bs-btn-border-color: #e9c4bf;
    --bs-btn-hover-bg: #fbecea; --bs-btn-hover-color: var(--theme-danger); --bs-btn-hover-border-color: var(--theme-danger);
}
body.bb-theme .btn-light { background: var(--theme-surface); border-color: var(--theme-border); }
body.bb-theme .btn:focus-visible { box-shadow: 0 0 0 .2rem var(--bb-accent-trans); }

/* ===== Kartlar, formlar, tablolar ===== */
body.bb-theme .card {
    border: 1px solid var(--theme-border); border-radius: 0;
    background: var(--theme-surface); box-shadow: none; overflow: hidden;
}
body.bb-theme .card.border-0 { border: 1px solid var(--theme-border) !important; }
body.bb-theme .card-header { background: var(--theme-surface); border-bottom: 1px solid var(--theme-border); padding: 1rem 1.15rem; border-radius: 0 !important; }
body.bb-theme .card-header h5, body.bb-theme .card-header h6 { margin-bottom: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.bb-theme .card-header h5 > i:first-child,
body.bb-theme .card-header h6 > i:first-child { color: var(--theme-accent); }
/* Hesabim / giris sayfalarindaki dolgulu basliklar: kahve zemin */
body.bb-theme .card-header.bg-success { background: var(--theme-primary) !important; color: #fff3eb !important; border-bottom: 0; }
body.bb-theme .card-header.bg-success i { color: var(--bb-rose); }
body.bb-theme .card-header.bg-success .btn-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
body.bb-theme .card-footer { background: var(--bb-blush) !important; border-top: 1px solid var(--theme-border); }
body.bb-theme .shadow-lg, body.bb-theme .shadow-sm, body.bb-theme .shadow { box-shadow: var(--theme-shadow) !important; }
body.bb-theme .rounded, body.bb-theme .rounded-3, body.bb-theme .rounded-4 { border-radius: 0 !important; }

body.bb-theme .form-control, body.bb-theme .form-select {
    min-height: 46px; border: 1px solid var(--theme-border); border-radius: 0;
    background-color: #fff; color: var(--theme-text);
}
body.bb-theme .form-control-sm, body.bb-theme .form-select-sm { min-height: 36px; }
body.bb-theme .form-control::placeholder { color: #9b8b82; }
body.bb-theme .form-control:focus, body.bb-theme .form-select:focus { border-color: var(--theme-accent); box-shadow: 0 0 0 .2rem var(--bb-accent-trans); }
body.bb-theme .form-control.is-invalid, body.bb-theme .form-select.is-invalid { border-color: var(--theme-danger); }
body.bb-theme .form-control.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(169,64,59,.15); }
body.bb-theme .invalid-feedback, body.bb-theme .text-danger { color: var(--theme-danger) !important; }
body.bb-theme .form-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.bb-theme .form-check-input { border-radius: 0; }
body.bb-theme .form-check-input[type="radio"] { border-radius: 50%; }
body.bb-theme .form-check-input:checked { background-color: var(--theme-primary); border-color: var(--theme-primary); }
body.bb-theme .form-check-input:focus { border-color: var(--theme-accent); box-shadow: 0 0 0 .2rem var(--bb-accent-trans); }
body.bb-theme .input-group-text { background: var(--bb-sand); border-color: var(--theme-border); border-radius: 0; }

body.bb-theme .table { --bs-table-bg: transparent; color: var(--theme-text); }
body.bb-theme .table thead th {
    background: var(--bb-blush); color: var(--theme-text-muted);
    font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    border-bottom: 1px solid var(--theme-border);
}
body.bb-theme .table td { border-bottom-color: var(--theme-border); vertical-align: middle; }

body.bb-theme .alert { border-radius: 0; font-weight: 500; }
body.bb-theme .alert-success { --bs-alert-color: #2f5238; --bs-alert-bg: #edf4ee; --bs-alert-border-color: #c9dccd; background: #edf4ee; color: #2f5238; border: 1px solid #c9dccd; }
body.bb-theme .alert-danger  { --bs-alert-color: #7f2c28; --bs-alert-bg: #fbecea; --bs-alert-border-color: #efcac5; background: #fbecea; color: #7f2c28; border: 1px solid #efcac5; }
body.bb-theme .alert-warning { background: #fbf1e3; color: #6e4010; border: 1px solid #ecd3ad; }
body.bb-theme .alert-info    { background: #eef2f6; color: #2f4b66; border: 1px solid #cdd8e4; }

body.bb-theme .badge { font-weight: 700; border-radius: 99px; letter-spacing: .04em; }
body.bb-theme .badge.bg-success   { background: #e5efe7 !important; color: var(--theme-success) !important; }
body.bb-theme .badge.bg-danger    { background: #fbecea !important; color: var(--theme-danger) !important; }
body.bb-theme .badge.bg-warning   { background: #fbf1e3 !important; color: var(--theme-warning) !important; }
body.bb-theme .badge.bg-info      { background: #eaf0f5 !important; color: var(--theme-info) !important; }
body.bb-theme .badge.bg-primary   { background: var(--theme-primary) !important; color: var(--theme-on-primary) !important; }
body.bb-theme .badge.bg-secondary { background: var(--bb-sand) !important; color: var(--theme-text-muted) !important; }

body.bb-theme .nav-tabs { border-bottom: 1px solid var(--theme-border); gap: 6px; }
body.bb-theme .nav-tabs .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .9rem 1.1rem;
    color: var(--theme-text-muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
body.bb-theme .nav-tabs .nav-link:hover { color: var(--theme-text); }
body.bb-theme .nav-tabs .nav-link.active { background: transparent; color: var(--theme-text); border-bottom-color: var(--theme-accent); }
body.bb-theme .tab-content { border: 0; }

body.bb-theme .pagination { --bs-pagination-color: var(--theme-text); --bs-pagination-bg: var(--theme-surface); --bs-pagination-border-color: var(--theme-border); --bs-pagination-hover-bg: var(--bb-sand); --bs-pagination-hover-color: var(--theme-text); --bs-pagination-active-bg: var(--theme-primary); --bs-pagination-active-border-color: var(--theme-primary); --bs-pagination-active-color: var(--theme-on-primary); gap: 4px; }
body.bb-theme .page-link { border-radius: 0 !important; min-width: 40px; min-height: 40px; display: grid; place-items: center; font-weight: 700; }

body.bb-theme .dropdown-menu { border: 1px solid var(--theme-border); border-radius: 0; background: var(--theme-surface); box-shadow: var(--theme-shadow); padding: 6px; }
body.bb-theme .dropdown-item { min-height: 40px; display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; }
body.bb-theme .dropdown-item i { width: 18px; color: var(--theme-accent); }
body.bb-theme .dropdown-item:hover, body.bb-theme .dropdown-item:focus { background: var(--bb-sand); color: var(--theme-text); }
body.bb-theme .modal-content { border: 0; border-radius: 0; background: var(--theme-surface); }
body.bb-theme .modal-header { border-bottom-color: var(--theme-border); border-radius: 0; }
body.bb-theme .modal-header.bg-success { background: var(--theme-primary) !important; color: #fff3eb; }
body.bb-theme .modal-title { font-family: var(--theme-font-heading); font-weight: 400; }
body.bb-theme .bg-light { background-color: var(--bb-blush) !important; }

/* ======================================================================
   LAYOUT (Themes/bag-butique/_Layout.cshtml)
   ====================================================================== */
.bb-header { position: sticky; top: 0; z-index: 1010; background: var(--theme-header-bg); color: var(--theme-header-text); border-bottom: 1px solid var(--theme-border); transition: box-shadow .2s; }
.bb-header.is-scrolled { box-shadow: 0 8px 30px rgba(65,40,29,.08); }
.bb-header__main { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.bb-header__left { display: flex; align-items: center; gap: 26px; }
.bb-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }

.bb-nav-link {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: transparent;
    color: var(--theme-text) !important; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    transition: color .2s;
}
.bb-nav-link:hover, .bb-nav-link.is-active, .bb-nav-link[aria-expanded="true"] { color: var(--theme-accent) !important; }

.bb-brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--theme-text) !important; }
.bb-brand img { max-width: 200px; max-height: 58px; object-fit: contain; }
.bb-brand__mark {
    position: relative; width: 31px; height: 31px; display: grid; place-items: center;
    border: 1.6px solid var(--theme-primary); border-radius: 12px 12px 9px 9px; transform: rotate(-8deg);
    color: var(--theme-accent); font-size: .7rem;
}
.bb-brand__mark::before {
    content: ""; position: absolute; top: -7px; left: 9px; width: 10px; height: 6px;
    border: 1.5px solid var(--theme-primary); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.bb-brand__name { font-family: var(--theme-font-heading); font-size: 1.7rem; font-weight: 700; font-style: italic; letter-spacing: -.05em; line-height: 1; }
.bb-brand:hover .bb-brand__name { color: var(--theme-accent); }

.bb-icon-btn {
    position: relative; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 4px; border: 0; background: transparent; color: var(--theme-text) !important; font-size: 1.05rem;
}
.bb-icon-btn:hover { color: var(--theme-accent) !important; }
.bb-account__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bb-auth-links { align-items: center; gap: 8px; color: var(--theme-text-muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bb-auth-links a { color: var(--theme-text) !important; }
.bb-auth-links a:hover { color: var(--theme-accent) !important; }
.bb-dropdown { min-width: 220px; }
.bb-logout, .bb-logout i { color: var(--theme-danger) !important; }

/* Sepet adedi rozeti (sistemden gelir: #cartBadgeCount) */
.bb-cart-link #cartBadgeCount {
    position: absolute !important; top: -2px !important; left: auto !important; right: -6px !important; transform: none !important;
    min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center;
    border-radius: 50%; background: var(--theme-primary) !important; color: #fff !important;
    font-family: var(--theme-font-body); font-size: .62rem; font-weight: 700; line-height: 1;
}
.bb-cart-link #cartBadgeCount:empty, .bb-cart-link #cartBadgeCount.d-none { display: none !important; }

/* Kategori menusu */
.bb-nav { position: relative; border-top: 1px solid var(--theme-border); }
.bb-nav__list {
    display: flex; justify-content: center; gap: 38px; min-height: 44px; margin: 0; padding: 0 24px;
    list-style: none; overflow-x: auto; scrollbar-width: none;
}
.bb-nav__list::-webkit-scrollbar { display: none; }
.bb-nav__item { flex-shrink: 0; }
.bb-nav__link {
    min-height: 44px; display: flex; align-items: center;
    color: #67534c !important; font-size: .64rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap;
}
.bb-nav__item:hover > .bb-nav__link, .bb-nav__item:focus-within > .bb-nav__link { color: var(--theme-accent) !important; }
.bb-nav__panel, .bb-all-categories {
    position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 30px 0 32px;
    background: var(--theme-surface); border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border);
    box-shadow: 0 24px 40px rgba(65,40,29,.10);
}
.bb-nav__item:hover > .bb-nav__panel, .bb-nav__item:focus-within > .bb-nav__panel { display: block; }
.bb-all-categories { max-height: 70vh; overflow: auto; }
.bb-all-categories.is-open { display: block; }

.bb-category-tree, .bb-category-tree ul { margin: 0; padding: 0; list-style: none; }
.bb-category-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 32px; }
.bb-category-tree > li > a { display: inline-block; margin-bottom: 8px; color: var(--theme-text) !important; font-family: var(--theme-font-heading); font-size: 1.15rem; }
.bb-category-tree > li > a:hover { color: var(--theme-accent) !important; }
.bb-category-tree ul li { margin: 3px 0; }
.bb-category-tree ul a { display: inline-block; padding: 3px 0; color: var(--theme-text-muted) !important; font-size: .84rem; }
.bb-category-tree ul a:hover { color: var(--theme-accent) !important; }
.bb-category-tree ul ul { margin: 2px 0 4px; padding-left: 12px; border-left: 1px solid var(--theme-border); }

.bb-text-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding-bottom: 5px;
    border-bottom: 1px solid currentColor; color: var(--theme-text) !important;
    font-size: .72rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase;
}
.bb-text-link:hover { color: var(--theme-accent) !important; }

/* Arama paneli */
.bb-search { display: none; border-top: 1px solid var(--theme-border); background: var(--theme-surface); }
.bb-search.is-open { display: block; }
.bb-search__form { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.bb-search__form > i { color: var(--theme-text-muted); }
.bb-search__form input {
    flex: 1; min-width: 0; height: 52px; border: 0; border-bottom: 1px solid var(--theme-border); outline: 0;
    background: transparent; color: var(--theme-text); font-family: var(--theme-font-heading); font-size: 1.35rem;
}
.bb-search__form input:focus { border-bottom-color: var(--theme-accent); }
.bb-search__submit {
    min-height: 46px; padding: 0 22px; border: 1px solid var(--theme-primary); background: var(--theme-primary); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.bb-search__submit:hover { background: var(--theme-primary-hover); }

/* Mobil menu */
.bb-mobile-panel { display: none; max-height: calc(100vh - 130px); overflow: auto; padding: 8px 20px 20px; border-top: 1px solid var(--theme-border); background: var(--theme-surface); }
.bb-mobile-panel.is-open { display: grid; }
.bb-mobile-panel > a, .bb-mobile-panel > form > button {
    min-height: 46px; display: flex; align-items: center; width: 100%; padding: 0;
    border: 0; border-bottom: 1px solid var(--theme-border); background: transparent;
    color: var(--theme-text) !important; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; text-align: left;
}
.bb-mobile-panel__title { margin: 18px 0 4px; color: var(--theme-accent); font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.bb-mobile-panel__cat--d1 { padding-left: 16px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: none !important; font-size: .86rem !important; }
.bb-mobile-panel__cat--d2 { padding-left: 32px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; font-size: .84rem !important; color: var(--theme-text-muted) !important; }

/* Footer */
.bb-footer { margin-top: 3rem; background: var(--theme-footer-bg); color: var(--theme-footer-text); }
.bb-promise { background: #fffaf5; border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border); }
.bb-promise__inner { min-height: 92px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.bb-promise__item { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 16px 18px; }
.bb-promise__item:not(:last-child) { border-right: 1px solid var(--theme-border); }
.bb-promise__item > span { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #f3e5dc; color: var(--theme-primary); }
.bb-promise__item b { display: block; color: var(--theme-text); font-size: .8rem; letter-spacing: .04em; }
.bb-promise__item small { display: block; margin-top: 4px; color: var(--theme-text-muted); font-size: .74rem; }
.bb-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 45px; padding: 60px 12px 10px; }
.bb-brand--footer .bb-brand__name { font-size: 1.5rem; }
.bb-footer p { max-width: 280px; margin-top: 18px; font-size: .8rem; line-height: 1.9; }
body.bb-theme .bb-footer h3 { margin: 0 0 18px; color: var(--theme-text); font-family: var(--theme-font-body); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.bb-footer section > a { min-height: 32px; display: flex; align-items: center; gap: 9px; color: var(--theme-footer-text) !important; font-size: .8rem; }
.bb-footer section > a:hover { color: var(--theme-accent) !important; }
.bb-footer section > a i { width: 16px; color: var(--theme-accent); }
.bb-payment-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bb-payment-logos span { height: 32px; min-width: 50px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--theme-border); background: var(--theme-surface); color: var(--theme-text); font-size: .7rem; font-weight: 700; }
.bb-payment-logos span i { font-size: 1.3rem; }
.bb-footer__bottom { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; border-top: 1px solid var(--theme-border); color: #8a786f; font-size: .72rem; }
.bb-back-top { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--theme-border); background: transparent; color: var(--theme-text); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bb-back-top:hover { border-color: var(--theme-primary); }

/* Popup modu: sadece icerik */
body.bb-theme.is-popup .bb-header,
body.bb-theme.is-popup .bb-footer { display: none !important; }
body.bb-theme.is-popup { background: var(--theme-surface); }

/* ======================================================================
   ORTAK PARCALAR (.ec-*)
   ====================================================================== */
.ec-page { padding-top: 1.75rem; }
.ec-page__title { margin: 0 0 .6rem; font-size: 2rem; line-height: 1.1; }
.ec-breadcrumb { color: var(--theme-text-muted); font-size: .76rem; }
.ec-breadcrumb .breadcrumb { margin-bottom: 1.1rem; --bs-breadcrumb-divider-color: #b3a49b; }
.ec-breadcrumb .breadcrumb-item a { color: #8d7d73; }
.ec-breadcrumb .breadcrumb-item a:hover { color: var(--theme-accent); }
.ec-breadcrumb .breadcrumb-item.active { color: var(--theme-text); }

.ec-chips { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.ec-chips::-webkit-scrollbar { display: none; }
.ec-chip {
    flex: 0 0 auto; min-height: 42px; display: inline-flex; align-items: center; padding: 0 20px;
    border: 1px solid var(--theme-border); background: #fffaf7;
    color: var(--theme-text-muted) !important; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.ec-chip:hover, .ec-chip.is-active { border-color: var(--theme-primary); background: var(--theme-primary); color: #fff !important; }

.ec-empty { display: none; margin: 28px 0; padding: 48px 20px; border: 1px solid var(--theme-border); background: var(--theme-surface); text-align: center; line-height: 1.8; }
.ec-empty.is-visible { display: block; }
.card .ec-empty { margin: 1rem; }
.ec-empty > i { color: var(--theme-accent) !important; opacity: .7; }
.ec-loader { display: none; min-height: 64px; align-items: center; justify-content: center; gap: 10px; color: var(--theme-accent); font-weight: 700; }
.ec-loader.is-visible { display: flex; }

/* ----- Urun karti ve izgara ----- */
.ec-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 23px; }
.ec-product-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: transparent; }
.ec-product-card__media {
    position: relative; height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    padding: 14px; background: #efe5db;
}
.ec-product-card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .45s; }
.ec-product-card:hover .ec-product-card__media img { transform: scale(1.05); }
.ec-product-card__noimg { color: #c2ab9c; font-size: 2.8rem; }
.ec-product-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 1px 0; }
.ec-product-card__name {
    min-height: 2.5em; margin-bottom: 4px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    color: var(--theme-text) !important; font-family: var(--theme-font-heading); font-size: 1.15rem; line-height: 1.2; letter-spacing: -.02em; word-break: break-word;
}
.ec-product-card__name:hover { color: var(--theme-accent) !important; }
.ec-badge {
    position: absolute; z-index: 3; top: 14px; left: 14px; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
    background: rgba(255,253,248,.92); color: var(--theme-text); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.ec-badge + .ec-badge { top: 46px; }
.ec-badge--new { color: var(--theme-success); }
.ec-badge--featured { color: var(--theme-accent); }
.ec-badge--discount { background: var(--theme-danger); color: #fff; }
.ec-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-top: 6px; }
.ec-price__current { margin: 0; color: var(--theme-price) !important; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.ec-price__old { color: var(--theme-price-old) !important; font-size: .82rem; text-decoration: line-through; white-space: nowrap; }
.ec-stock { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 14px; color: var(--theme-success) !important; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.ec-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ec-stock.is-low { color: var(--theme-warning) !important; }
.ec-stock.is-out { color: var(--theme-danger) !important; }
/* Ana sayfa sepete ekle butonu .btn degil: tum gorunum burada */
.ec-product-card .ec-add-to-cart {
    width: 100%; min-height: 46px; margin-top: auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--theme-primary); border-radius: 0; background: transparent; color: var(--theme-primary);
    font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
    transition: background .2s, color .2s;
}
.ec-product-card .ec-add-to-cart:hover { background: var(--theme-primary); color: var(--theme-on-primary); }
.ec-product-card.is-out-of-stock .ec-product-card__media img { opacity: .55; filter: grayscale(35%); }
.ec-product-card.is-out-of-stock .ec-add-to-cart { pointer-events: none; border-color: var(--theme-border); color: #8d7d73; }
/* Favorilerde kart Bootstrap kolonunda */
.ec-favorites .ec-product-card { height: 100%; border: 0; background: transparent; }
.ec-favorites .ec-product-card__media { color: inherit; }

/* ----- Ana sayfa ----- */
.store-page .ec-page__title { color: var(--theme-text) !important; }
.store-page .hero-banner {
    position: relative; overflow: hidden; min-height: 340px; padding: 3.5rem 3rem; margin-bottom: 2rem;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    background: linear-gradient(120deg, #f8f0e8 0%, #efe3d7 100%); color: var(--theme-text);
}
.store-page .hero-banner::after {
    content: ""; position: absolute; right: 6%; top: 34px; bottom: 0; width: min(34%, 360px);
    border-radius: 240px 240px 0 0; background: radial-gradient(circle at 50% 42%, #ead2c3 0%, #e4ccba 39%, #dcc0ad 77%);
}
.store-page .hero-banner .hero-badge {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; margin-bottom: 1.1rem;
    padding: 0; background: transparent; color: var(--theme-accent); font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.store-page .hero-banner .hero-badge::before { content: ""; width: 31px; height: 1px; background: var(--theme-accent); }
.store-page .hero-banner h2 { position: relative; z-index: 1; max-width: 560px; margin-bottom: 1.8rem; color: var(--theme-text); font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: .98; letter-spacing: -.055em; }
.store-page .hero-banner .btn-hero {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; min-height: 49px; padding: 0 24px;
    border: 1px solid var(--theme-primary); background: var(--theme-primary); color: #fff !important;
    font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transition: background .22s, transform .22s;
}
.store-page .hero-banner .btn-hero:hover { background: var(--theme-primary-hover); transform: translateY(-1px); }
.store-page .hero-bag-icon { position: absolute; z-index: 1; right: calc(6% + min(17%, 180px) - 3.5rem); top: 55%; transform: translateY(-50%) rotate(-8deg); color: rgba(255,252,248,.75); font-size: 7rem; }
.store-page .section-title { display: block; margin: 2.4rem 0 1.4rem; font-family: var(--theme-font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.045em; }

/* ----- Urun detay ----- */
.ec-product-detail .breadcrumb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1rem; }
.ec-product-detail .ec-breadcrumb .breadcrumb { margin-bottom: 0; }
.ec-back { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ec-gallery { padding: 0; background: transparent; }
.ec-gallery__main { margin-bottom: 0 !important; border-radius: 0 !important; background: #efe5db !important; }
.ec-gallery__thumbs { margin-top: 12px; }
.ec-gallery__thumb { padding: 4px !important; border: 1px solid transparent !important; border-radius: 0 !important; background: #efe5db; cursor: pointer; }
.ec-gallery__thumb.is-active { border-color: var(--theme-primary) !important; }
.product-gallery .main-image:hover img { transform: none; }
.ec-product-summary { padding: 6px 0 0; background: transparent; }
.ec-product-summary__title { margin: 0 0 .7rem !important; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.05em; word-break: break-word; }
.ec-rating { margin-top: 8px; }
.ec-rating .fa-star { color: var(--theme-accent) !important; }
.ec-product-summary .ec-price { margin: 20px 0 18px; padding: 0; border: 0; background: transparent; }
.ec-product-summary .ec-price__current { font-size: 1.8rem; font-weight: 600; letter-spacing: -.04em; }
.ec-product-summary .ec-price .badge.bg-danger { background: var(--bb-pink) !important; color: var(--theme-danger) !important; }
.ec-product-summary .ec-price__old { font-size: 1rem; }
.ec-stock-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
body.bb-theme .ec-stock-pill.is-in  { background: #e5efe7 !important; color: var(--theme-success) !important; }
body.bb-theme .ec-stock-pill.is-low { background: #fbf1e3 !important; color: var(--theme-warning) !important; }
body.bb-theme .ec-stock-pill.is-out { background: #fbecea !important; color: var(--theme-danger) !important; }
.ec-features { margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border); color: #745f56; line-height: 1.9; }
.ec-features h5 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.ec-buy-box { margin-top: 20px; padding: 0; border: 0; background: transparent; }
.ec-buy-box .ec-add-to-cart { min-height: 53px; font-size: .78rem; }
.ec-fav-toggle { min-width: 53px; color: var(--theme-text-muted); }
.ec-fav-toggle.is-active { background: #fff0ec !important; }
.ec-fav-toggle.is-active, .ec-fav-toggle.is-active i { color: #c36561 !important; }
.ec-shipping-info { margin-top: 22px; padding: 22px 24px; border: 0; border-radius: 0; background: #ead8cb !important; }
.ec-shipping-info i { color: var(--theme-accent) !important; font-size: 1.5rem; }
.ec-product-tabs { margin-top: 2.5rem; padding: 0; background: transparent; }
.ec-product-tabs > .tab-content { padding: 22px 0; color: #745f56; line-height: 1.85; }
.ec-spec-table { width: 100%; }
.ec-spec-table td, .ec-spec-table th { padding: 10px 0; border-bottom: 1px solid #eee3d8; }
.ec-spec-table th, .ec-spec-table td:first-child { color: var(--theme-text-muted); font-weight: 500; width: 40%; }
.ec-spec-table td:last-child { color: var(--theme-text); }
.ec-review { margin-bottom: .75rem !important; padding: 16px 18px !important; border: 1px solid var(--theme-border) !important; border-radius: 0 !important; background: var(--theme-surface); }
.ec-review:hover { margin: 0 0 .75rem !important; }
.ec-related { margin-top: 3rem; padding: 50px 24px 60px; background: #f7eee7; }
.ec-related .product-card { border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.ec-related .product-card .card-img-top { border: 0; border-radius: 0; background: #efe5db !important; }

/* ----- Sepet ----- */
.ec-cart-item { border-bottom-color: var(--theme-border) !important; }
.ec-cart-item:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; border-bottom: 0 !important; }
.ec-cart-item__media img { width: 84px; height: 104px; padding: 4px; object-fit: contain; background: #ebded3; }
.ec-cart-item__name { font-family: var(--theme-font-heading); font-size: 1.05rem; word-break: break-word; }
.ec-cart-item__price strong { font-size: .95rem; font-weight: 700; white-space: nowrap; }
.ec-cart-item__remove { width: 40px; height: 40px; border: 0 !important; background: transparent !important; color: #9b8477 !important; }
.ec-cart-item__remove:hover { color: var(--theme-danger) !important; }
.ec-qty { flex-wrap: nowrap; max-width: 140px; overflow: hidden; border: 1px solid var(--theme-border); background: var(--theme-surface); }
.ec-qty > .btn { min-width: 40px; min-height: 42px; border: 0; background: transparent; color: var(--theme-text); }
.ec-qty > .btn:hover { background: var(--bb-sand); }
.ec-qty > .form-control { min-width: 36px; min-height: 42px; padding: 0 4px; border: 0; text-align: center; font-weight: 700; }
.ec-cart-item.is-unavailable { opacity: .8; }
.ec-cart__unavailable { border-color: #efcac5 !important; }
.ec-cart__unavailable .card-header { background: #fdf4f2 !important; }
.ec-cart__unavailable-reason { background: #fbecea !important; color: var(--theme-danger) !important; }
.ec-cart-summary__row, .ec-cart-summary__total { display: flex; justify-content: space-between; gap: 12px; }
.ec-cart-summary__row { color: var(--theme-text-muted); }
.ec-cart-summary__row strong, .ec-cart-summary__row span:last-child { color: var(--theme-text); white-space: nowrap; }
.ec-cart-summary__total { padding-top: 14px; border-top: 1px solid var(--theme-border); font-size: 1.05rem; font-weight: 700; }
.ec-cart-summary__total strong { white-space: nowrap; }
.ec-cart-summary .btn-success { min-height: 52px; width: 100%; }
.ec-coupon { padding: 12px; background: var(--bb-blush); }

/* ----- Fatura / adres ----- */
.ec-address-card { padding-left: 2.4rem !important; border: 1px solid var(--theme-border) !important; border-radius: 0 !important; background: var(--theme-surface); transition: border-color .15s; }
.ec-address-card:hover { border-color: #d8c8ba !important; }
.ec-address-card:has(input:checked) { border-color: var(--theme-primary) !important; background: #fffaf5; }
.ec-invoice-type { padding: 16px; border: 1px solid var(--theme-border); background: var(--bb-blush); }
.ec-order-summary .list-group-item { border-color: var(--theme-border); background: transparent; }

/* ----- Odeme: #iyzipay-checkout-form'a stil verilmez ----- */
.ec-result { max-width: 680px; margin: 40px auto; text-align: center; }
.ec-result.is-success { border-top: 3px solid var(--theme-success) !important; }
.ec-result.is-pending { border-top: 3px solid var(--theme-accent) !important; }
.ec-result.is-failed  { border-top: 3px solid var(--theme-danger) !important; }

/* ----- Siparislerim (tablo) ----- */
.ec-status { display: inline-flex; align-items: center; width: max-content; min-height: 26px; padding: 0 11px; border-radius: 99px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
body.bb-theme .ec-status.is-pending   { background: var(--bb-sand) !important; color: var(--theme-text-muted) !important; }
body.bb-theme .ec-status.is-preparing { background: #eaf0f5 !important; color: var(--theme-info) !important; }
body.bb-theme .ec-status.is-shipped   { background: #fbf1e3 !important; color: var(--theme-warning) !important; }
body.bb-theme .ec-status.is-delivered { background: #e5efe7 !important; color: var(--theme-success) !important; }
body.bb-theme .ec-status.is-cancelled { background: #fbecea !important; color: var(--theme-danger) !important; }
.ec-orders .order-row { cursor: pointer; }
.ec-orders .order-row:hover > td { background: #fffaf5; }
.ec-orders__filter .form-control { min-height: 38px; }
.ec-order-item { border-bottom-color: var(--theme-border) !important; }
.ec-shipment { border-color: var(--theme-border) !important; }
.ec-shipment__event { position: relative; padding-left: 18px; }
.ec-shipment__event::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #d3c3b7; }
.ec-shipment__event:first-child::before { background: var(--theme-accent); box-shadow: 0 0 0 3px var(--bb-accent-trans); }
.ec-order-request { padding-left: 10px !important; border-left: 3px solid transparent; }
.ec-order-request.is-open      { border-left-color: var(--theme-info); }
.ec-order-request.is-approved  { border-left-color: var(--theme-success); }
.ec-order-request.is-received  { border-left-color: var(--theme-accent); }
.ec-order-request.is-completed { border-left-color: #8d7d73; }
.ec-order-request.is-rejected  { border-left-color: var(--theme-danger); }
.buy-again { border-color: var(--bb-rose) !important; }

/* ----- Hesabim ----- */
.ec-address-list .ec-address-card { padding-left: 1rem !important; }
.ec-account .fa-user-circle { color: var(--theme-accent) !important; }

/* ----- Giris ve kayit ----- */
.ec-auth__card { border-radius: 0 !important; box-shadow: var(--theme-shadow) !important; }
.ec-auth__card > .card-header { padding: 1.5rem 1rem !important; }
.ec-auth__title { margin: 0; font-size: 1.6rem; }
/* Marka butonlari: logo/renk degismez, sadece kose ve boyut */
.ec-social-btn { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 0 !important; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; }
.ec-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--theme-text-muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.ec-divider::before, .ec-divider::after { content: ""; flex: 1; height: 1px; background: var(--theme-border); }
.ec-divider + hr { display: none; }
.ec-code-input { font-size: 1.3rem; font-weight: 700; letter-spacing: .35em; text-align: center; }
.ec-resend { color: var(--theme-accent) !important; font-weight: 700; }
.ec-auth__links a { font-weight: 700; }

/* ======================================================================
   KIRILIMLAR (576 / 768 / 992 / 1200)
   ====================================================================== */
@media (max-width: 1199.98px) {
    .bb-header__left { gap: 18px; }
    .bb-nav__list { gap: 28px; }
    .ec-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .bb-header__main { min-height: 70px; gap: 12px; }
    .bb-header__actions { gap: 8px; }
    .bb-brand__name { font-size: 1.45rem; }
    .bb-brand__mark { width: 27px; height: 27px; }
    .ec-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; }
    .bb-promise__inner { grid-template-columns: 1fr 1fr; }
    .bb-promise__item:nth-child(2) { border-right: 0; }
    .bb-promise__item:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--theme-border); }
    .bb-footer__grid { grid-template-columns: 1.5fr 1fr; row-gap: 34px; }
    .store-page .hero-banner::after { width: 30%; right: 4%; }
}
@media (max-width: 767.98px) {
    .ec-page__title { font-size: 1.6rem; }
    .ec-product-card__media { height: 240px; }
    .store-page .hero-banner { min-height: 0; padding: 2.4rem 1.6rem; }
    .store-page .hero-banner::after, .store-page .hero-bag-icon { display: none; }
    .ec-product-tabs .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .ec-product-tabs .nav-link { white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .bb-header__main { min-height: 62px; }
    .bb-brand__mark { display: none; }
    .bb-brand__name { font-size: 1.3rem; }
    .bb-brand img { max-width: 140px; max-height: 44px; }
    .bb-search__form { min-height: 64px; gap: 10px; }
    .bb-search__form > i { display: none; }
    .bb-search__form input { font-size: 1.05rem; }
    .bb-search__submit { padding: 0 14px; }
    .ec-product-grid { gap: 21px 12px; }
    .ec-product-card__media { height: 200px; padding: 8px; }
    .ec-product-card__name { font-size: 1rem; }
    .ec-price__current { font-size: .92rem; }
    .ec-badge { top: 7px; left: 7px; font-size: .55rem; padding: 0 7px; min-height: 22px; }
    .ec-badge + .ec-badge { top: 33px; }
    .ec-product-card .ec-add-to-cart { min-height: 42px; padding-inline: 4px; font-size: .62rem; letter-spacing: .04em; }
    .ec-product-detail .breadcrumb-bar { flex-direction: column; align-items: flex-start; }
    .ec-product-detail .main-image { height: 340px !important; }
    .ec-cart-item__media img { width: 66px; height: 82px; }
    .bb-promise__inner { grid-template-columns: 1fr; }
    .bb-promise__item { justify-content: flex-start; padding: 15px 12px; }
    .bb-promise__item:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--theme-border); }
    .bb-promise__item:nth-child(3) { grid-column: auto; border-top: 0; }
    .bb-footer__grid { grid-template-columns: 1fr 1fr; gap: 25px; padding-top: 44px; }
    .bb-footer__about { grid-column: span 2; }
    .bb-footer__bottom { flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 12px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    body.bb-theme *, body.bb-theme *::before, body.bb-theme *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
