/* =======================================================
   TOPÇUOĞLU SULAMA — Kurumsal Tema
   ======================================================= */
:root {
  --ts-dark: #1B5E20;
  --ts-green: #4CAF50;
  --ts-green-soft: #E8F5E9;
  --ts-text: #2c2c2c;
  --ts-muted: #6b7280;
  --ts-bg: #F7F9F7;
  --ts-border: #E5EBE5;
  --ts-radius: 10px;
  --ts-shadow: 0 4px 20px rgba(27, 94, 32, 0.07);
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ts-text);
  background: #fff;
  margin: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* ========== TOPBAR ========== */
.ts-topbar {
  background: var(--ts-dark);
  color: #d7ecd8;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.ts-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.ts-topbar a { color: #d7ecd8; }
.ts-topbar a:hover { color: #fff; }
.ts-topbar-left,
.ts-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== HEADER ========== */
.ts-header {
  background: #fff;
  border-bottom: 1px solid var(--ts-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--ts-shadow);
}
.ts-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 10px 0;
}

/* Logo */
.ts-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: var(--ts-dark);
}
.ts-logo > .bi {
  font-size: 1.75rem;
  color: var(--ts-dark);
  line-height: 1;
}
.ts-logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.15;
  color: var(--ts-dark);
}
.ts-logo-text em {
  font-style: normal;
  color: var(--ts-green);
  margin-left: 0.15em;
}
.ts-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Burger */
.ts-burger {
  border: none;
  background: transparent;
  font-size: 1.65rem;
  color: var(--ts-dark);
  padding: 4px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* Arama — PC'de her zaman görünür */
.ts-search {
  flex: 1;
  display: flex;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}
.ts-search .form-control {
  border: 2px solid var(--ts-border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  min-height: 44px;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}
.ts-search .form-control:focus {
  border-color: var(--ts-green);
  box-shadow: none;
  outline: none;
}
.ts-search-submit {
  background: var(--ts-dark);
  color: #fff;
  border: 2px solid var(--ts-dark);
  border-radius: 0 8px 8px 0;
  padding: 0 1.1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.ts-search-submit:hover {
  background: var(--ts-green);
  border-color: var(--ts-green);
}

.ts-mobile-search {
  padding-bottom: 12px;
}
.ts-mobile-search[hidden] { display: none !important; }
.ts-mobile-search .ts-search {
  max-width: none;
  margin: 0;
}

/* Aksiyonlar */
.ts-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}
.ts-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ts-text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.ts-icon-btn:hover {
  background: var(--ts-green-soft);
  color: var(--ts-dark);
}
.ts-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--ts-green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.ts-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ts-wa-btn:hover { background: #1ebe57; color: #fff !important; }

/* ========== ANA MENÜ (PC) ========== */
.ts-mainnav {
  background: var(--ts-dark);
  border-bottom: 3px solid var(--ts-green);
  position: relative;
  z-index: 1020;
}
.ts-mainnav .container {
  position: relative;
}
.ts-mainnav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: visible;
}
.ts-mainnav-list > li {
  position: relative;
  flex-shrink: 0;
}
.ts-mainnav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e8f5e9;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  line-height: 1.2;
  height: 100%;
}
.ts-mainnav-list > li > a:hover,
.ts-mainnav-list > li > a.active,
.ts-mainnav-list > li:hover > a {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ts-mainnav-list > li > a .bi {
  font-size: 1rem;
  opacity: 0.9;
}

/* Kategori şeridi (PC) — ana menünün altında */
.ts-catbar {
  background: #fff;
  border-bottom: 1px solid var(--ts-border);
  display: none;
}
@media (min-width: 992px) {
  .ts-catbar { display: block; }
}
.ts-catbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  padding: 10px 0;
}
.ts-catbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ts-text);
  border-radius: 999px;
  border: 1px solid var(--ts-border);
  background: var(--ts-bg);
  transition: 0.15s;
  white-space: nowrap;
}
.ts-catbar-link:hover {
  background: var(--ts-dark);
  color: #fff;
  border-color: var(--ts-dark);
}
.ts-catbar-link .bi {
  color: var(--ts-green);
  font-size: 0.9rem;
}
.ts-catbar-link:hover .bi { color: #fff; }
.ts-catbar-link.ts-catbar-all {
  background: var(--ts-green-soft);
  border-color: #c8e6c9;
  color: var(--ts-dark);
}

/* ========== MOBİL MENÜ ========== */
.ts-mobile-nav {
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}
.ts-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--ts-text);
  font-size: 0.95rem;
}
.ts-mobile-nav a:hover {
  background: var(--ts-bg);
  color: var(--ts-dark);
}
.ts-mobile-nav a .bi {
  color: var(--ts-green);
  width: 22px;
  text-align: center;
  font-size: 1.1rem;
}
.ts-mobile-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ts-muted);
  padding: 14px 18px 6px;
  background: var(--ts-bg);
}

/* WhatsApp float */
.ts-whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  z-index: 1040;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.ts-whatsapp-float:hover { background: #1ebe57; color: #fff !important; }

/* ========== SLIDER ========== */
.ts-hero-slide {
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
}
.ts-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 94, 32, 0.85) 0%, rgba(27, 94, 32, 0.4) 55%, transparent 100%);
}
.ts-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 560px;
}
.ts-hero-content h2 {
  font-size: 2.35rem;
  font-weight: 800;
}
.ts-hero-content .btn-ts { margin-top: 16px; }

/* ========== BUTONLAR ========== */
.btn-ts {
  background: var(--ts-green);
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.2s;
  display: inline-block;
}
.btn-ts:hover { background: var(--ts-dark); color: #fff; }
.btn-ts-outline {
  background: transparent;
  border: 2px solid var(--ts-green);
  color: var(--ts-dark);
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
}
.btn-ts-outline:hover { background: var(--ts-green); color: #fff; }

/* ========== BÖLÜM ========== */
.ts-section-title {
  font-weight: 800;
  color: var(--ts-dark);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 28px;
}
.ts-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--ts-green);
  border-radius: 4px;
}
.ts-section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ========== KATEGORİ KARTLARI ========== */
.ts-cat-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.ts-cat-section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ts-dark);
}

.ts-cat-card {
  background: #fff;
  border-radius: var(--ts-radius);
  text-align: center;
  padding: 28px 16px;
  color: var(--ts-text);
  transition: 0.2s ease;
  border: 1px solid var(--ts-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 130px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ts-cat-card:hover {
  background: var(--ts-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ts-shadow);
  border-color: transparent;
}
.ts-cat-card .bi {
  font-size: 2.1rem;
  color: var(--ts-green);
  line-height: 1;
}
.ts-cat-card:hover .bi { color: #fff; }
.ts-cat-card h6 {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Ana menü dropdown */
.ts-mainnav-list > li.ts-nav-dropdown > a .bi-chevron-down {
  font-size: 0.65rem;
  margin-left: 2px;
  opacity: 0.8;
}
.ts-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  z-index: 1100;
  padding: 6px 0;
  border: 1px solid var(--ts-border);
  border-top: 3px solid var(--ts-green);
  list-style: none;
  margin: 0;
}
.ts-mainnav-list > li.ts-nav-dropdown:hover > .ts-nav-dropdown-menu,
.ts-mainnav-list > li.ts-nav-dropdown.open > .ts-nav-dropdown-menu {
  display: block;
}
.ts-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--ts-text) !important;
  font-size: 0.9rem;
  white-space: nowrap;
  background: transparent;
}
.ts-nav-dropdown-menu a:hover {
  background: var(--ts-green-soft);
  color: var(--ts-dark) !important;
}
.ts-nav-dropdown-menu a .bi {
  color: var(--ts-green);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.ts-nav-dropdown-menu .ts-nav-drop-all {
  border-top: 1px solid var(--ts-border);
  margin-top: 4px;
  padding-top: 12px;
  font-weight: 700;
  color: var(--ts-dark) !important;
}

/* ========== ÜRÜN KART ========== */
.ts-product-card {
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: 0.25s;
  position: relative;
}
.ts-product-card:hover {
  box-shadow: var(--ts-shadow);
  transform: translateY(-3px);
}
.ts-product-card .ts-product-img {
  height: 200px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ts-product-card .ts-product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 12px;
}
.ts-product-body { padding: 14px; }
.ts-product-cat {
  font-size: 0.75rem;
  color: var(--ts-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ts-product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ts-text);
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-product-name:hover { color: var(--ts-dark); }
.ts-price {
  font-weight: 700;
  color: var(--ts-dark);
  font-size: 1.05rem;
}
.ts-price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  margin-right: 6px;
}
.ts-product-footer {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.ts-add-cart-btn {
  flex: 1;
  background: var(--ts-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.ts-add-cart-btn:hover { background: var(--ts-green); }
.ts-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  color: #fff;
}
.ts-badge.badge-sale { background: #E53935; }
.ts-badge.badge-new { background: var(--ts-green); }
.ts-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ts-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #888;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.ts-wish-btn:hover { color: #E53935; border-color: #E53935; }

/* Marka */
.ts-brand-logo {
  max-height: 48px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: 0.2s;
}
.ts-brand-logo:hover { filter: none; opacity: 1; }

/* Testimonial */
.ts-testimonial {
  background: var(--ts-bg);
  border-radius: var(--ts-radius);
  padding: 24px;
  height: 100%;
}
.ts-testimonial .bi-star-fill { color: #FFB300; }

/* Footer */
.ts-footer { background: #16401a; color: #d7ecd8; }
.ts-footer h6 { color: #fff; font-weight: 700; margin-bottom: 16px; }
.ts-footer a { color: #d7ecd8; }
.ts-footer a:hover { color: #fff; }
.ts-footer-bottom { background: #0f2c12; color: #b9d4bb; font-size: 0.85rem; }
.ts-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  color: #fff;
}
.ts-social-icon:hover { background: var(--ts-green); color: #fff; }

/* Genel */
.ts-breadcrumb { background: var(--ts-bg); padding: 14px 0; }
.form-control:focus,
.form-select:focus {
  border-color: var(--ts-green);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.18);
}
.ts-sidebar-box {
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 18px;
  margin-bottom: 20px;
  background: #fff;
}
.ts-sidebar-box h6 {
  font-weight: 700;
  color: var(--ts-dark);
  margin-bottom: 14px;
}
.ts-card {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.ts-header-icon {
  color: var(--ts-text);
  position: relative;
  font-size: 1.35rem;
}
.ts-header-icon .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--ts-green);
  font-size: 0.62rem;
}
.ts-search-form .form-control {
  border-color: var(--ts-border);
  border-right: none;
}
.ts-search-form .btn {
  background: var(--ts-green);
  color: #fff;
  border: 1px solid var(--ts-green);
}
.ts-search-form .btn:hover {
  background: var(--ts-dark);
  border-color: var(--ts-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
  .ts-header-row { min-height: 60px; padding: 8px 0; }
  .ts-logo-text { font-size: 1.15rem; }
  .ts-logo > .bi { font-size: 1.45rem; }
  .ts-logo-img { height: 40px; max-width: 160px; }
  .ts-hero-content h2 { font-size: 1.65rem; }
  .ts-hero-slide { min-height: 300px; }
}
@media (max-width: 575.98px) {
  .ts-logo-text { font-size: 1.05rem; }
  .ts-logo-img { height: 36px; max-width: 140px; }
  .ts-product-card .ts-product-img { height: 160px; }
  .ts-icon-btn { width: 38px; height: 38px; font-size: 1.15rem; }
}

/* =======================================================
   MOBİL UYGULAMA GÖRÜNÜMÜ (telefon / tablet)
   ======================================================= */

/* Alt navigasyon — uygulama tab bar */
.ts-bottom-nav {
  display: none;
}
@media (max-width: 991.98px) {
  body {
    padding-bottom: 72px; /* alt menü boşluğu */
  }
  .ts-whatsapp-float {
    bottom: 80px;
    right: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .ts-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid var(--ts-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    height: 64px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .ts-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
  }
  .ts-bottom-nav a .bi {
    font-size: 1.35rem;
    line-height: 1;
  }
  .ts-bottom-nav a.active,
  .ts-bottom-nav a:hover {
    color: var(--ts-dark);
  }
  .ts-bottom-nav .ts-nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: var(--ts-green);
    color: #fff;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  /* Üst bar sadeleştir */
  .ts-topbar {
    font-size: 0.75rem;
  }
  .ts-header-row {
    min-height: 56px;
    padding: 6px 0;
  }
  .ts-logo-text {
    font-size: 1.05rem;
  }

  /* Hero mobil */
  .ts-hero-slide {
    min-height: 220px !important;
  }
  .ts-hero-content h2 {
    font-size: 1.35rem !important;
  }
  .ts-hero-content p {
    font-size: 0.9rem !important;
  }
  .ts-hero-content .btn-ts {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  /* Ürün grid daha kompakt */
  .ts-product-card .ts-product-img {
    height: 140px;
  }
  .ts-product-name,
  .ts-product-card .ts-product-title {
    font-size: 0.82rem;
    min-height: 2.4em;
  }
  .ts-add-cart-btn {
    font-size: 0.78rem;
    padding: 7px 8px;
  }
  .ts-section-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }

  /* Kategori kartları yatay kaydırılabilir şerit gibi */
  .ts-cat-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ts-cat-scroll::-webkit-scrollbar { display: none; }
  .ts-cat-scroll .ts-cat-card {
    min-width: 100px;
    max-width: 110px;
    flex: 0 0 auto;
    padding: 16px 10px;
  }
  .ts-cat-scroll .ts-cat-card .bi {
    font-size: 1.6rem;
  }
  .ts-cat-scroll .ts-cat-card h6 {
    font-size: 0.75rem;
  }

  /* Hesap / form mobil */
  .ts-account-tabs .nav-link {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  /* Sepet / checkout butonları yapışkan */
  .ts-sticky-checkout {
    position: sticky;
    bottom: 72px;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--ts-border);
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  }

  /* Mobil arama paneli */
  .ts-mobile-search .ts-search .form-control {
    min-height: 42px;
    font-size: 16px; /* iOS zoom engeli */
  }
}

/* PWA / standalone hissi */
@media (display-mode: standalone) {
  .ts-topbar { display: none; }
}

/* Hesabım — mobilde yatay sekme şeridi */
@media (max-width: 991.98px) {
  .account-nav {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .account-nav li {
    margin: 0 !important;
    flex: 0 0 auto;
  }
  .account-nav a {
    white-space: nowrap;
    border: 1px solid var(--ts-border);
    background: #fff;
  }
  .account-nav .border-top {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ---- Kurumsal anasayfa ---- */
.ts-corp-hero {
  background: linear-gradient(135deg, #0d3b12 0%, #1B5E20 50%, #2e7d32 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.ts-corp-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  opacity: .85;
  margin-bottom: .75rem;
}
.ts-corp-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.ts-corp-title span { color: #a5d6a7; }
.ts-corp-lead {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}
.ts-corp-visual {
  min-height: 280px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.ts-corp-visual-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  font-size: 1.2rem;
  gap: .5rem;
}
.ts-corp-visual-fallback .bi { font-size: 3rem; }
.ts-corp-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}
.ts-corp-feature i {
  font-size: 1.6rem;
  color: var(--ts-dark, #1B5E20);
}
.ts-corp-feature strong { display: block; font-size: .9rem; }
.ts-corp-feature span { font-size: .78rem; color: #6b7280; }
.ts-corp-cta {
  background: linear-gradient(90deg, #1B5E20, #388e3c);
}
.ts-header .ts-shop-link {
  background: var(--ts-green, #4CAF50);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}
@media (max-width: 767px) {
  .ts-corp-hero { padding: 2rem 0; text-align: center; }
  .ts-corp-lead { margin-inline: auto; }
  .ts-corp-hero .d-flex { justify-content: center; }
}


/* ========== ANASAYFA SLIDER ========== */
.ts-home-slider {
  position: relative;
  background: #0d3d12;
  overflow: hidden;
}
.ts-home-slider .carousel-item {
  min-height: 360px;
}
@media (min-width: 768px) {
  .ts-home-slider .carousel-item { min-height: 440px; }
}
@media (min-width: 1200px) {
  .ts-home-slider .carousel-item { min-height: 520px; }
}
.ts-slide {
  min-height: inherit;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  transform: scale(1);
}
.ts-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,61,18,.82) 0%, rgba(13,61,18,.45) 45%, rgba(0,0,0,.25) 100%);
  display: flex;
  align-items: center;
}
.ts-slide-content {
  max-width: 560px;
  padding: 2rem 0;
  color: #fff;
}
.ts-slide-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.ts-slide-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  opacity: 0.95;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.ts-home-slider .carousel-indicators {
  margin-bottom: 1rem;
}
.ts-home-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.55);
  border: 0;
  opacity: 1;
  transition: width .3s, background-color .3s;
}
.ts-home-slider .carousel-indicators .active {
  background-color: #fff;
  width: 28px;
  border-radius: 6px;
}
.ts-home-slider .carousel-control-prev,
.ts-home-slider .carousel-control-next {
  width: 8%;
  opacity: 0.85;
}
.ts-home-slider .carousel-control-prev:hover,
.ts-home-slider .carousel-control-next:hover {
  opacity: 1;
}

/* --- Geçiş: Fade --- */
.ts-home-slider.ts-fx-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.ts-home-slider.ts-fx-fade .carousel-item.active,
.ts-home-slider.ts-fx-fade .carousel-item-next.carousel-item-start,
.ts-home-slider.ts-fx-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}
.ts-home-slider.ts-fx-fade .carousel-item-next:not(.carousel-item-start),
.ts-home-slider.ts-fx-fade .active.carousel-item-end,
.ts-home-slider.ts-fx-fade .carousel-item-prev:not(.carousel-item-end),
.ts-home-slider.ts-fx-fade .active.carousel-item-start {
  opacity: 0;
}
.ts-home-slider.ts-fx-fade .carousel-item-next,
.ts-home-slider.ts-fx-fade .carousel-item-prev,
.ts-home-slider.ts-fx-fade .carousel-item.active,
.ts-home-slider.ts-fx-fade .active.carousel-item-start,
.ts-home-slider.ts-fx-fade .active.carousel-item-end {
  transform: none;
}

/* --- Geçiş: Zoom (Ken Burns + fade) --- */
.ts-home-slider.ts-fx-zoom .carousel-item {
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.ts-home-slider.ts-fx-zoom .carousel-item.active,
.ts-home-slider.ts-fx-zoom .carousel-item-next.carousel-item-start,
.ts-home-slider.ts-fx-zoom .carousel-item-prev.carousel-item-end {
  opacity: 1;
}
.ts-home-slider.ts-fx-zoom .carousel-item-next:not(.carousel-item-start),
.ts-home-slider.ts-fx-zoom .active.carousel-item-end,
.ts-home-slider.ts-fx-zoom .carousel-item-prev:not(.carousel-item-end),
.ts-home-slider.ts-fx-zoom .active.carousel-item-start {
  opacity: 0;
}
.ts-home-slider.ts-fx-zoom .carousel-item-next,
.ts-home-slider.ts-fx-zoom .carousel-item-prev,
.ts-home-slider.ts-fx-zoom .carousel-item.active {
  transform: none;
}
.ts-home-slider.ts-fx-zoom .carousel-item.active .ts-slide {
  animation: tsKenBurns 8s ease-out forwards;
}
@keyframes tsKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* --- Geçiş: Slide (varsayılan Bootstrap, yumuşatılmış) --- */
.ts-home-slider.ts-fx-slide .carousel-item {
  transition: transform 0.75s cubic-bezier(0.45, 0, 0.15, 1);
}

/* Metin animasyonu (her slaytta) */
.ts-home-slider .carousel-item .ts-slide-title,
.ts-home-slider .carousel-item .ts-slide-sub,
.ts-home-slider .carousel-item .btn {
  opacity: 0;
  transform: translateY(22px);
}
.ts-home-slider .carousel-item.active .ts-slide-title,
.ts-home-slider .carousel-item.active .ts-slide-sub,
.ts-home-slider .carousel-item.active .btn {
  animation: tsSlideInUp 0.7s ease forwards;
}
.ts-home-slider .carousel-item.active .ts-slide-title { animation-delay: 0.15s; }
.ts-home-slider .carousel-item.active .ts-slide-sub { animation-delay: 0.3s; }
.ts-home-slider .carousel-item.active .btn { animation-delay: 0.45s; }
@keyframes tsSlideInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Kampanya banner */
.ts-campaign-banner {
  display: block;
  position: relative;
  border-radius: var(--ts-radius);
  overflow: hidden;
  border: 1px solid var(--ts-border);
  background: var(--ts-bg);
  height: 100%;
  min-height: 160px;
  transition: transform .2s, box-shadow .2s;
}
.ts-campaign-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--ts-shadow);
}
.ts-campaign-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (min-width: 992px) {
  .ts-campaign-banner img { height: 260px; }
}
.ts-campaign-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.ts-campaign-caption strong {
  font-size: 1.05rem;
}
.ts-campaign-caption span {
  font-size: 0.85rem;
  background: var(--ts-green);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ===== Anasayfa kurumsal + mobil iyileştirmeler (2026) ===== */
.ts-info-section { background: linear-gradient(180deg, #f0f7f0 0%, #fff 100%); }
.ts-lead-max { max-width: 720px; }
.ts-stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.ts-feature-box { box-shadow: var(--ts-shadow); }
.ts-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--ts-green-soft); color: var(--ts-dark); font-weight: 700; font-size: 0.75rem;
}
.ts-service-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px;
  background: var(--ts-green-soft); color: var(--ts-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.ts-service-card { transition: transform .2s, box-shadow .2s; }
.ts-service-card:hover { transform: translateY(-2px); box-shadow: var(--ts-shadow); }
.ts-prod-cat-card { transition: transform .2s, border-color .2s; color: inherit; }
.ts-prod-cat-card:hover { transform: translateY(-2px); border-color: var(--ts-green) !important; color: inherit; }
.ts-brand-pill { font-size: 0.7rem; }
.ts-project-card { transition: box-shadow .2s; }
.ts-project-card:hover { box-shadow: var(--ts-shadow); }
.ts-hero-why { background: #fff; }
.ts-corp-card { background: #fafcfa; }

/* Mobil görünüm iyileştirmeleri */
@media (max-width: 767.98px) {
  .ts-corp-title { font-size: 1.65rem !important; line-height: 1.25; }
  .ts-corp-lead { font-size: 0.95rem; }
  .ts-section-title { font-size: 1.35rem; }
  .ts-hero-btns .btn { width: 100%; justify-content: center; }
  .ts-hero-btns { flex-direction: column; }
  .ts-stat-num { font-size: 1.25rem; }
  .ts-service-card { padding: 0.85rem !important; }
  .ts-service-icon { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
  .ts-brand-pill { font-size: 0.65rem; padding: 0.4rem 0.2rem !important; }
  .ts-campaign-banner img { height: 140px; }
  .ts-home-slider .ts-slide { min-height: 280px; }
  .ts-home-slider .ts-slide-title { font-size: 1.4rem; }
  .ts-home-slider .ts-slide-sub { font-size: 0.9rem; }
  .ts-corp-cta .btn { width: 100%; max-width: 280px; }
  .ts-topbar-inner { font-size: 0.75rem; min-height: 32px; }
  .ts-header-row { min-height: 60px; padding: 6px 0; }
  .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .ts-info-section .ts-section-title { font-size: 1.2rem; letter-spacing: -0.02em; }
}

@media (max-width: 575.98px) {
  .ts-corp-title { font-size: 1.45rem !important; }
  .col-6 .ts-service-card h3 { font-size: 0.8rem; }
  .ts-badge-card { padding: 0.65rem !important; }
  .ts-badge-card .fs-4 { font-size: 1.25rem !important; }
}

/* Dokunmatik / hover yok cihazlar */
@media (hover: none) and (pointer: coarse) {
  .ts-service-card:hover,
  .ts-prod-cat-card:hover,
  .ts-project-card:hover,
  .ts-campaign-banner:hover { transform: none; }
  .btn:active { transform: scale(0.98); }
}
