/* teamizmir.com vitrin stilleri. Admin sayfaları Bootstrap kullandığı için tüm sınıflar ti- önekli. */

:root {
  --ti-brand: #f47a20;
  --ti-brand-dark: #d9640f;
  --ti-brand-soft: #fff3ea;
  --ti-ink: #22252a;
  --ti-ink-2: #4a4f57;
  --ti-muted: #7b818a;
  --ti-line: #e6e8eb;
  --ti-bg: #f5f6f8;
  --ti-card: #ffffff;
  --ti-dark: #1f2226;
  --ti-success: #1f9d55;
  --ti-danger: #d64545;
  --ti-radius: 12px;
  --ti-radius-sm: 8px;
  --ti-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --ti-shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --ti-wrap: 1240px;
  --ti-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ti-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ti-ink);
  background: var(--ti-bg);
}

body.ti-lock { overflow: hidden; }

img { max-width: 100%; }

.ti-wrap {
  width: 100%;
  max-width: var(--ti-wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.ti-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.ti-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Butonlar ---------- */
.ti-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  font: 600 15px/1 var(--ti-font);
  border: 1px solid transparent; border-radius: var(--ti-radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ti-btn--primary { background: var(--ti-brand); color: #fff; }
.ti-btn--primary:hover { background: var(--ti-brand-dark); color: #fff; }
.ti-btn--dark { background: var(--ti-ink); color: #fff; }
.ti-btn--dark:hover { background: #000; color: #fff; }
.ti-btn--ghost { background: #fff; color: var(--ti-ink); border-color: var(--ti-line); }
.ti-btn--ghost:hover { border-color: var(--ti-ink-2); color: var(--ti-ink); }
.ti-btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.ti-btn--light:hover { background: rgba(255,255,255,.24); color: #fff; }
.ti-btn--block { width: 100%; }
.ti-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.ti-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 0; border-radius: 10px;
  color: var(--ti-ink); cursor: pointer; position: relative; text-decoration: none;
}
.ti-iconbtn:hover { background: var(--ti-bg); color: var(--ti-ink); }
.ti-iconbtn .ti-icon { width: 24px; height: 24px; }

/* ---------- Form ---------- */
.ti-input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  font: 15px/1.3 var(--ti-font); color: var(--ti-ink);
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.ti-input:focus { border-color: var(--ti-brand); box-shadow: 0 0 0 3px rgba(244,122,32,.18); }
.ti-label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--ti-ink-2); }
.ti-field { margin-bottom: 16px; }

.ti-alert { padding: 12px 14px; border-radius: var(--ti-radius-sm); margin-bottom: 16px; font-size: 14px; }
.ti-alert--danger { background: #fdecec; color: #9b2c2c; border: 1px solid #f7caca; }

/* ---------- Üst bilgi şeridi ---------- */
.ti-topbar { background: var(--ti-dark); color: #c9cdd2; font-size: 13px; }
.ti-topbar .ti-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.ti-topbar a { color: #e9ebee; text-decoration: none; }
.ti-topbar a:hover { color: #fff; text-decoration: underline; }
.ti-topbar__links { display: flex; gap: 18px; }
.ti-topbar__tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.ti-header {
  position: sticky; top: 0; z-index: 900;
  background: #fff; border-bottom: 1px solid var(--ti-line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.ti-header__inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.ti-logo { display: flex; align-items: center; flex: none; }
.ti-logo img { display: block; height: 46px; width: auto; }

.ti-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.ti-search .ti-input { padding-right: 48px; background: var(--ti-bg); border-color: transparent; }
.ti-search .ti-input:focus { background: #fff; }
.ti-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: var(--ti-brand); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ti-search button .ti-icon { width: 18px; height: 18px; }

.ti-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ti-nav > a, .ti-nav__drop > button {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 10px 12px; border-radius: 8px;
  font: 600 15px/1 var(--ti-font); color: var(--ti-ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.ti-nav > a:hover, .ti-nav__drop > button:hover, .ti-nav > a.is-active { background: var(--ti-brand-soft); color: var(--ti-brand-dark); }
.ti-nav__drop { position: relative; }
.ti-nav__drop .ti-icon { width: 16px; height: 16px; }

.ti-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 950;
  min-width: 230px; padding: 6px;
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius);
  box-shadow: var(--ti-shadow-lg);
}
.ti-menu--right { left: auto; right: 0; }
.is-open > .ti-menu { display: block; }
.ti-nav__drop > .ti-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
@media (hover: hover) and (min-width: 961px) {
  .ti-nav__drop:hover > .ti-menu { display: block; }
}
.ti-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ti-ink); text-decoration: none; font-size: 14px;
}
.ti-menu a:hover { background: var(--ti-bg); }
.ti-menu__head { padding: 10px 12px 8px; border-bottom: 1px solid var(--ti-line); margin-bottom: 6px; font-size: 13px; color: var(--ti-muted); }
.ti-menu__head strong { display: block; font-size: 14px; color: var(--ti-ink); }

.ti-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.ti-account { position: relative; }
.ti-account > button { gap: 8px; width: auto; padding: 0 10px; font: 600 14px/1 var(--ti-font); }
.ti-account__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ti-burger { display: none; }
.ti-burger--admin { display: inline-flex; }

/* ---------- Mobil çekmece ---------- */
.ti-overlay {
  position: fixed; inset: 0; z-index: 990; background: rgba(15, 18, 22, .5);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.ti-overlay.is-open { opacity: 1; visibility: visible; }
.ti-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
  width: min(86vw, 340px); background: #fff;
  transform: translateX(-102%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: var(--ti-shadow-lg);
}
.ti-drawer.is-open { transform: none; }
.ti-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--ti-line); }
.ti-drawer__head img { height: 36px; width: auto; }
.ti-drawer__head strong { font-size: 16px; }
.ti-drawer__body { flex: 1; overflow-y: auto; padding: 8px 8px 24px; -webkit-overflow-scrolling: touch; }
.ti-drawer__title { margin: 18px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ti-muted); }
.ti-drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; border-radius: 8px;
  color: var(--ti-ink); text-decoration: none; font-size: 15px;
}
.ti-drawer a:hover { background: var(--ti-bg); }
.ti-drawer__user { margin: 8px 10px; padding: 12px; background: var(--ti-bg); border-radius: var(--ti-radius-sm); font-size: 13px; color: var(--ti-ink-2); }
.ti-drawer__user strong { display: block; color: var(--ti-ink); font-size: 15px; }

/* ---------- Sayfa iskeleti ---------- */
.ti-page { display: block; }
.ti-page > article { min-width: 0; }
.ti-main { padding-top: 24px; padding-bottom: 48px; }

.ti-page--sidebar {
  max-width: var(--ti-wrap); margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start;
}
.ti-page--sidebar > article { padding: 24px 0 48px; }

/* Kategori kenar çubuğu */
.ti-catbar {
  position: sticky; top: 88px; margin-top: 24px;
  max-height: calc(100vh - 104px); overflow-y: auto;
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius);
  padding: 8px;
}
.ti-catbar__head { display: none; }
.ti-catbar__title { padding: 10px 10px 8px; font-weight: 700; font-size: 15px; }
.ti-catbar ul { list-style: none; margin: 0; padding: 0; }
.ti-catbar ul ul { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--ti-line); }
.ti-catbar li { margin: 0; padding: 0; border: 0; }
.ti-catbar a {
  display: block; padding: 7px 10px; border-radius: 7px;
  color: var(--ti-ink-2); text-decoration: none; font-size: 14px; line-height: 1.35;
}
.ti-catbar a:hover { background: var(--ti-bg); color: var(--ti-ink); }
.ti-catbar a.is-current { background: var(--ti-brand-soft); color: var(--ti-brand-dark); font-weight: 700; }
.ti-catbar details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
}
.ti-catbar details > summary::-webkit-details-marker { display: none; }
.ti-catbar details > summary a { flex: 1; }
.ti-catbar details > summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 6px;
  background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%237b818a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .15s;
}
.ti-catbar details[open] > summary::after { transform: rotate(180deg); }
.ti-catbar details > summary:hover::after { background-color: var(--ti-bg); }
.ti-catbtn { display: none; }

/* ---------- Bölüm başlıkları ---------- */
.ti-section { padding: 48px 0; }
.ti-section--white { background: #fff; }
.ti-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ti-section__head h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.ti-section__head p { margin: 6px 0 0; color: var(--ti-muted); }
.ti-eyebrow { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ti-brand); }

/* ---------- Hero ---------- */
.ti-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(244,122,32,.35), transparent 45%),
    linear-gradient(135deg, #1f2226 0%, #2c3036 60%, #3a2a1f 100%);
}
.ti-hero .ti-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.ti-hero h1 { margin: 0 0 16px; font-size: 42px; line-height: 1.12; letter-spacing: -.02em; }
.ti-hero h1 span { color: var(--ti-brand); }
.ti-hero p { margin: 0 0 28px; font-size: 17px; color: #d5d8dc; max-width: 560px; }
.ti-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ti-hero__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ti-hero__mosaic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ti-radius); display: block; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ti-hero__mosaic img:nth-child(2) { transform: translateY(18px); }
.ti-hero__mosaic img:nth-child(3) { transform: translateY(-6px); }
.ti-hero__mosaic img:nth-child(4) { transform: translateY(12px); }

.ti-usp { background: #fff; border-bottom: 1px solid var(--ti-line); }
.ti-usp .ti-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.ti-usp__item { display: flex; gap: 12px; align-items: flex-start; }
.ti-usp__icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--ti-brand-soft); color: var(--ti-brand); display: flex; align-items: center; justify-content: center; }
.ti-usp__item strong { display: block; font-size: 15px; }
.ti-usp__item span { font-size: 13px; color: var(--ti-muted); }

/* ---------- Kategori kartları ---------- */
.ti-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ti-cat {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius);
  color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ti-cat:hover { transform: translateY(-3px); box-shadow: var(--ti-shadow-lg); border-color: transparent; color: inherit; }
.ti-cat__img { aspect-ratio: 3 / 2; background: var(--ti-bg); overflow: hidden; }
.ti-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ti-cat:hover .ti-cat__img img { transform: scale(1.04); }
.ti-cat__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ti-cat__body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.ti-cat__body p {
  margin: 0 0 12px; font-size: 13px; color: var(--ti-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ti-cat__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ti-brand); display: inline-flex; align-items: center; gap: 4px; }
.ti-cat__more .ti-icon { width: 16px; height: 16px; }

.ti-cta-band { background: var(--ti-brand); color: #fff; }
.ti-cta-band .ti-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.ti-cta-band h2 { margin: 0 0 4px; font-size: 24px; }
.ti-cta-band p { margin: 0; color: #fff3ea; }
.ti-cta-band .ti-btn--dark { background: #1f2226; }

/* ---------- Ürün listesi ---------- */
.ti-crumbs { font-size: 13px; color: var(--ti-muted); margin-bottom: 8px; }
.ti-crumbs a { color: var(--ti-muted); text-decoration: none; }
.ti-crumbs a:hover { color: var(--ti-brand); }
.ti-listhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.ti-listhead h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.ti-listhead__count { color: var(--ti-muted); font-size: 14px; margin-top: 4px; }
.ti-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.ti-toolbar form { display: flex; gap: 8px; flex: 1 1 280px; }
.ti-toolbar .ti-input { flex: 1; min-width: 0; }

.ti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.ti-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius);
  overflow: hidden; transition: box-shadow .18s, border-color .18s;
}
.ti-card:hover { box-shadow: var(--ti-shadow-lg); border-color: transparent; }
.ti-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--ti-line); }
.ti-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.ti-card__zoom {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ti-ink);
  box-shadow: var(--ti-shadow); cursor: pointer; opacity: 0; transition: opacity .15s;
}
.ti-card:hover .ti-card__zoom, .ti-card__zoom:focus { opacity: 1; }
.ti-card__zoom .ti-icon { width: 17px; height: 17px; }
.ti-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ti-card__title { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
.ti-card__title a {
  color: var(--ti-ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ti-card__title a:hover { color: var(--ti-brand-dark); }
.ti-card__sku { font-size: 12px; color: var(--ti-muted); word-break: break-all; }

.ti-price { position: relative; margin-top: auto; padding-top: 4px; }
.ti-price__main { font-size: 19px; font-weight: 800; color: var(--ti-ink); letter-spacing: -.01em; }
.ti-price__cur { font-size: 13px; font-weight: 600; color: var(--ti-ink-2); }
.ti-price__tl { display: block; font-size: 12px; color: var(--ti-muted); }
.ti-price__ask { font-size: 14px; font-weight: 600; color: var(--ti-ink-2); }
.ti-price__history {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20;
  min-width: 220px; padding: 10px 12px; font-size: 12px; line-height: 1.6;
  background: var(--ti-ink); color: #fff; border-radius: 8px; box-shadow: var(--ti-shadow-lg);
}
.ti-price__history br:first-child { display: none; }
.ti-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ti-badge--warn { background: #fff4e5; color: #a3530a; }

.ti-cart { display: flex; gap: 6px; margin-top: 8px; }
.ti-qty { width: 64px; min-height: 40px; padding: 6px; text-align: center; font: 600 14px var(--ti-font); border: 1px solid var(--ti-line); border-radius: var(--ti-radius-sm); }
.ti-cart .ti-btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 14px; }
.ti-admin-tools { display: flex; gap: 6px; margin-top: 6px; }
.ti-admin-tools button { flex: 1; min-height: 30px; font: 600 12px var(--ti-font); border: 1px dashed #b9bec5; border-radius: 6px; background: #fafbfc; color: var(--ti-ink-2); cursor: pointer; }
.ti-admin-tools button:hover { background: #fff3cd; border-color: #e0a800; }

.ti-empty { padding: 48px 20px; text-align: center; background: #fff; border: 1px dashed var(--ti-line); border-radius: var(--ti-radius); color: var(--ti-muted); }
.ti-empty strong { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ti-ink); }

.ti-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 0; }
.ti-pager a, .ti-pager span {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.ti-pager a { background: #fff; border: 1px solid var(--ti-line); color: var(--ti-ink); }
.ti-pager a:hover { border-color: var(--ti-brand); color: var(--ti-brand-dark); }
.ti-pager a.active { background: var(--ti-brand); border-color: var(--ti-brand); color: #fff; }
.ti-pager span { color: var(--ti-muted); min-width: 20px; padding: 0; }

/* Modal (resim büyütme ve admin resim düzenleme) */
.ti-modal { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(15,18,22,.8); padding: 24px 16px; overflow-y: auto; }
.ti-modal__close {
  position: fixed; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ti-ink); font-size: 28px; line-height: 1; cursor: pointer;
}
.ti-modal__img { display: block; margin: 40px auto 0; max-width: min(900px, 100%); max-height: calc(100vh - 100px); object-fit: contain; background: #fff; border-radius: var(--ti-radius); }
.ti-modal__box { max-width: 900px; margin: 40px auto; padding: 20px; background: #fff; border-radius: var(--ti-radius); }
.ti-modal__box h2 { margin-top: 0; font-size: 18px; }
.ti-modal__images { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ti-modal__images figure { margin: 0; text-align: center; }
.ti-modal__images img { width: 110px; height: 110px; object-fit: contain; border: 1px solid var(--ti-line); border-radius: 8px; display: block; margin-bottom: 6px; }
.ti-modal__images button { padding: 4px 10px; border: 0; border-radius: 6px; background: var(--ti-danger); color: #fff; cursor: pointer; font-size: 12px; }

/* ---------- Ürün detay ---------- */
.ti-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); padding: 24px; }
.ti-gallery__main { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); background: #fff; overflow: hidden; cursor: zoom-in; }
.ti-gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.ti-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.ti-gallery__thumbs button { flex: none; width: 68px; height: 68px; padding: 4px; border: 2px solid var(--ti-line); border-radius: 8px; background: #fff; cursor: pointer; }
.ti-gallery__thumbs button.is-active { border-color: var(--ti-brand); }
.ti-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ti-product__info h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
.ti-product__sku { font-size: 13px; color: var(--ti-muted); margin-bottom: 16px; }
.ti-product__desc { color: var(--ti-ink-2); margin: 0 0 20px; white-space: pre-line; }
.ti-pricebox { padding: 16px; background: var(--ti-bg); border-radius: var(--ti-radius); margin-bottom: 16px; }
.ti-pricebox .ti-price__main { font-size: 28px; }
.ti-pricebox .ti-badge { margin-top: 10px; }
.ti-product .ti-cart { margin-top: 0; }
.ti-product .ti-cart .ti-qty { width: 84px; min-height: 48px; font-size: 16px; }
.ti-product .ti-cart .ti-btn { min-height: 48px; font-size: 16px; }
.ti-product__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ti-product__note { margin-top: 16px; font-size: 13px; color: var(--ti-muted); }
.ti-related { margin-top: 36px; }
.ti-related h2 { font-size: 20px; margin: 0 0 16px; }
.ti-related .ti-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- İçerik sayfaları ---------- */
.ti-pagehead { background: #fff; border-bottom: 1px solid var(--ti-line); }
.ti-pagehead .ti-wrap { padding-top: 32px; padding-bottom: 28px; }
.ti-pagehead h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; }
.ti-pagehead p { margin: 0; color: var(--ti-muted); max-width: 720px; }

.ti-prose { max-width: 820px; }
.ti-prose h2 { margin: 32px 0 10px; font-size: 21px; }
.ti-prose p { margin: 0 0 14px; color: var(--ti-ink-2); }
.ti-lead { font-size: 18px; color: var(--ti-ink) !important; }

.ti-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.ti-feature { background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); padding: 20px; }
.ti-feature h3 { margin: 12px 0 6px; font-size: 17px; }
.ti-feature p { margin: 0; font-size: 14px; color: var(--ti-ink-2); }

.ti-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ti-box { background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); padding: 20px; }
.ti-box h2, .ti-box h3 { margin: 0 0 12px; font-size: 18px; }
.ti-contact-list { list-style: none; margin: 0; padding: 0; }
.ti-contact-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ti-line); }
.ti-contact-list li:first-child { border-top: 0; padding-top: 0; }
.ti-contact-list .ti-usp__icon { width: 38px; height: 38px; }
.ti-contact-list small { display: block; color: var(--ti-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ti-contact-list a { color: var(--ti-ink); font-weight: 600; text-decoration: none; }
.ti-contact-list a:hover { color: var(--ti-brand-dark); }
.ti-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.ti-dl dt { color: var(--ti-muted); }
.ti-dl dd { margin: 0; font-weight: 600; }
.ti-map { height: 380px; border-radius: var(--ti-radius); overflow: hidden; border: 1px solid var(--ti-line); background: var(--ti-bg); }
.ti-brandcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ti-brandcards .ti-box p { margin: 0 0 8px; font-size: 14px; color: var(--ti-ink-2); }
.ti-brandcards .ti-box a { color: var(--ti-brand-dark); font-weight: 600; }

/* ---------- Giriş ---------- */
.ti-auth { display: flex; justify-content: center; padding: 48px 16px 64px; }
.ti-auth__card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--ti-line); border-radius: 16px; box-shadow: var(--ti-shadow); padding: 28px; }
.ti-auth__card h1 { margin: 0 0 4px; font-size: 24px; }
.ti-auth__card > p { margin: 0 0 22px; color: var(--ti-muted); font-size: 14px; }
.ti-pass { position: relative; }
.ti-pass .ti-input { padding-right: 48px; }
.ti-pass button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--ti-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ti-auth__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ti-line); text-align: center; font-size: 14px; color: var(--ti-muted); }
.ti-auth__foot a { color: var(--ti-brand-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.ti-footer { background: var(--ti-dark); color: #b8bdc4; font-size: 14px; margin-top: 0; }
.ti-footer a { color: #e3e6ea; text-decoration: none; }
.ti-footer a:hover { color: #fff; text-decoration: underline; }
.ti-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.ti-footer h3 { margin: 0 0 14px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ti-footer ul { list-style: none; margin: 0; padding: 0; }
.ti-footer li { margin: 0 0 8px; padding: 0; border: 0; }
.ti-footer__brand img { height: 42px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; margin-bottom: 14px; }
.ti-footer__brand p { margin: 0 0 10px; }
.ti-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ti-chips a { padding: 5px 10px; border: 1px solid #3a3f46; border-radius: 999px; font-size: 12px; color: #c9cdd2; }
.ti-chips a:hover { border-color: var(--ti-brand); color: #fff; text-decoration: none; }
.ti-footer__bottom { border-top: 1px solid #33373d; }
.ti-footer__bottom .ti-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-size: 12px; color: #8c929a; }

/* Telefon kısayolu (mobil) */
.ti-fab { display: none; }

/* Bildirim */
.ti-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 12px 18px;
  background: var(--ti-ink); color: #fff; border-radius: 10px; box-shadow: var(--ti-shadow-lg);
  font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s;
}
.ti-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ti-toast--ok::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; flex: none; }
.ti-toast--err::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; flex: none; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1100px) {
  .ti-nav > a, .ti-nav__drop > button { padding: 10px 8px; font-size: 14px; }
  .ti-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ti-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .ti-topbar__tag { display: none; }
  .ti-topbar .ti-wrap { justify-content: center; }
  .ti-nav { display: none; }
  .ti-burger { display: inline-flex; }
  .ti-header__inner { flex-wrap: wrap; gap: 6px 8px; min-height: 0; padding-top: 8px; padding-bottom: 10px; }
  .ti-logo img { height: 38px; }
  .ti-actions { margin-left: auto; }
  .ti-search { order: 10; flex: 1 1 100%; max-width: none; }
  .ti-account__name { display: none; }

  .ti-hero .ti-wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; gap: 28px; }
  .ti-hero h1 { font-size: 32px; }
  .ti-hero__mosaic { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ti-hero__mosaic img { aspect-ratio: 1 / 1; transform: none !important; }
  .ti-usp .ti-wrap { grid-template-columns: 1fr 1fr; }

  .ti-page--sidebar { display: block; }
  .ti-catbar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000; margin: 0;
    width: min(86vw, 340px); max-height: none; border-radius: 0; border: 0; padding: 0;
    transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--ti-shadow-lg);
    display: flex; flex-direction: column;
  }
  .ti-catbar.is-open { transform: none; }
  .ti-catbar__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--ti-line); }
  .ti-catbar__title { display: none; }
  .ti-catbar__body { flex: 1; overflow-y: auto; padding: 8px; }
  .ti-catbar a { padding: 10px; font-size: 15px; }
  .ti-catbtn { display: inline-flex; }

  .ti-product { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .ti-related .ti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ti-cols { grid-template-columns: 1fr; }
  .ti-features { grid-template-columns: 1fr; }
  .ti-cta-band .ti-wrap { flex-direction: column; align-items: flex-start; }

  .ti-fab {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 800;
    width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center;
    background: var(--ti-brand); color: #fff; box-shadow: 0 8px 20px rgba(244,122,32,.45);
  }
  .ti-fab .ti-icon { width: 24px; height: 24px; }
  .ti-toast { bottom: 84px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .ti-topbar { font-size: 12px; }
  .ti-topbar__links { gap: 14px; }
  .ti-topbar__mail { display: none; }
  .ti-section { padding: 32px 0; }
  .ti-section__head h2 { font-size: 22px; }
  .ti-hero h1 { font-size: 28px; }
  .ti-hero p { font-size: 15px; }
  .ti-hero__cta .ti-btn { flex: 1 1 auto; }
  .ti-usp .ti-wrap { gap: 14px 12px; padding-top: 16px; padding-bottom: 16px; }
  .ti-usp__icon { width: 36px; height: 36px; }
  .ti-usp__item strong { font-size: 14px; }
  .ti-usp__item span { font-size: 12px; }
  .ti-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ti-cat__body { padding: 10px 12px 12px; }
  .ti-cat__body h3 { font-size: 14px; }
  .ti-cat__body p { font-size: 12px; -webkit-line-clamp: 2; }

  .ti-page--sidebar > article { padding-top: 16px; }
  .ti-listhead h1 { font-size: 22px; }
  .ti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ti-card__body { padding: 10px 10px 12px; gap: 4px; }
  .ti-card__title { font-size: 14px; }
  .ti-card__zoom { opacity: 1; width: 30px; height: 30px; }
  .ti-price__main { font-size: 17px; }
  .ti-cart { flex-direction: column; }
  .ti-cart .ti-qty { width: 100%; }
  .ti-product .ti-cart { flex-direction: row; }
  .ti-product__info h1 { font-size: 22px; }
  .ti-pricebox .ti-price__main { font-size: 24px; }
  .ti-pagehead h1 { font-size: 26px; }
  .ti-brandcards { grid-template-columns: 1fr; }
  .ti-map { height: 280px; }
  .ti-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .ti-auth { padding-top: 24px; }
  .ti-auth__card { padding: 22px 18px; }
}

/* ---------- Müşteri hesap sayfaları (Bootstrap ile birlikte) ---------- */
.ti-header--account { position: static; }
.ti-header--account .ti-header__inner { min-height: 64px; justify-content: space-between; }
.ti-header__who { text-align: right; font-size: 13px; color: var(--ti-muted); line-height: 1.35; }
.ti-header__who strong { display: block; font-size: 14px; color: var(--ti-ink); }
.ti-subnav { border-top: 1px solid var(--ti-line); }
.ti-subnav .ti-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ti-subnav .ti-wrap::-webkit-scrollbar { display: none; }
.ti-subnav a {
  flex: none; padding: 12px 14px; border-bottom: 2px solid transparent;
  font-weight: 600; font-size: 14px; color: var(--ti-ink-2); text-decoration: none;
}
.ti-subnav a:hover { color: var(--ti-ink); }
.ti-subnav a.is-active { color: var(--ti-brand-dark); border-bottom-color: var(--ti-brand); }

.ti-acct { max-width: var(--ti-wrap); margin: 0 auto; padding: 24px 16px 48px; }
.ti-acct h1 { font-size: 26px; margin: 0 0 18px; font-weight: 700; }
.ti-acct h1 small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ti-muted); }
.ti-acct .table { background: #fff; vertical-align: middle; }
.ti-acct .table thead th { background: var(--ti-bg); font-size: 13px; color: var(--ti-ink-2); white-space: nowrap; }
.ti-acct .table a { color: var(--ti-brand-dark); font-weight: 600; }
.ti-acct .page-link { color: var(--ti-ink); }
.ti-acct .page-item.active .page-link { background: var(--ti-brand); border-color: var(--ti-brand); color: #fff; }
.ti-acct .btn-primary { background: var(--ti-brand); border-color: var(--ti-brand); }
.ti-acct .btn-primary:hover { background: var(--ti-brand-dark); border-color: var(--ti-brand-dark); }
.ti-acct .card, .ti-panel { border: 1px solid var(--ti-line); border-radius: var(--ti-radius); background: #fff; }
.ti-panel { padding: 20px; margin-bottom: 20px; }
.ti-panel > h2, .ti-panel > h3 { font-size: 18px; margin: 0 0 16px; }
.ti-summary { margin-left: auto; max-width: 380px; }
.ti-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 16px; }
.ti-summary dt { font-weight: 400; color: var(--ti-ink-2); }
.ti-summary dd { margin: 0; padding-left: 16px; text-align: right; font-weight: 600; }
.ti-summary .ti-total { padding-top: 10px; border-top: 1px solid var(--ti-line); font-size: 18px; font-weight: 800; color: var(--ti-ink); }
.ti-thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--ti-line); border-radius: 8px; background: #fff; }

/* Tabloyu mobilde karta çevir: <td data-label="..."> */
@media (max-width: 760px) {
  .ti-stack thead { display: none; }
  .ti-stack.table > :not(:first-child) { border-top: 0; }
  .ti-stack, .ti-stack tbody, .ti-stack tr, .ti-stack td { display: block; width: 100%; }
  .ti-stack.table > :not(caption) > * > * { border-width: 0; box-shadow: none; }
  .ti-stack tr { margin-bottom: 12px; padding: 8px 14px; background: #fff; border: 1px solid var(--ti-line) !important; border-radius: var(--ti-radius); }
  .ti-stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0 !important; text-align: right; border-bottom: 1px solid var(--ti-bg) !important; }
  .ti-stack td:last-child { border-bottom: 0 !important; }
  .ti-stack td::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 600; color: var(--ti-muted); text-align: left; }
  .ti-stack td.ti-stack__title { display: block; text-align: left; font-weight: 700; font-size: 15px; }
  .ti-stack td.ti-stack__title::before { display: none; }
  .ti-stack td[data-label=""]::before { display: none; }
  .ti-stack .form-control { max-width: 110px; }
  .ti-stack .btn { width: auto !important; }
  .ti-summary { max-width: none; }
  .ti-header__who { font-size: 12px; }
}

/* ---------- Yönetim paneli ---------- */
.ti-btn--admin { background: var(--ti-ink); color: #fff; }
.ti-btn--admin:hover { background: #000; color: #fff; }
.ti-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.ti-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius);
  color: var(--ti-ink); text-decoration: none;
}
a.ti-stat:hover { border-color: var(--ti-brand); color: var(--ti-ink); }
.ti-stat > span { font-size: 13px; color: var(--ti-muted); }
.ti-stat strong { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.ti-stat strong small { font-size: 16px; color: var(--ti-muted); font-weight: 600; }
.ti-stat em { font-style: normal; font-size: 12px; color: var(--ti-muted); }
.ti-stat.is-warn { border-color: #f3c18f; background: var(--ti-brand-soft); }
.ti-stat.is-warn strong { color: var(--ti-brand-dark); }
.ti-stat ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.ti-stat li { padding: 3px 0; border: 0; }
.ti-stat li.is-warn { color: var(--ti-danger); font-weight: 700; }
.ti-admin-group { display: block; margin-bottom: 28px; }
.ti-admin-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; }
.ti-admin-group h2 .ti-icon { color: var(--ti-brand); }
.ti-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ti-tile {
  display: block; padding: 14px 16px; min-height: 72px;
  background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius);
  color: var(--ti-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.ti-tile:hover { border-color: var(--ti-brand); box-shadow: var(--ti-shadow); color: var(--ti-ink); }
.ti-tile strong { display: block; font-size: 15px; }
.ti-tile span { display: block; margin-top: 2px; font-size: 13px; color: var(--ti-muted); }
@media (max-width: 1280px) {
  .ti-btn--admin span { display: none; }
  .ti-btn--admin { width: 42px; padding: 0; }
}
@media (max-width: 960px) {
  .ti-stats { grid-template-columns: 1fr 1fr; }
  .ti-btn--admin span { display: none; }
  .ti-btn--admin { width: 42px; padding: 0; }
}
@media (max-width: 640px) {
  .ti-stat strong { font-size: 24px; }
  .ti-tiles { grid-template-columns: 1fr; }
}
