/* =====================================================================
   Adakan Group — Misto teması üzerine site özel eklentileri.
   Misto'nun mevcut sınıfları ve animasyonları değiştirilmemiştir;
   burada yalnızca temada karşılığı olmayan bileşenler tanımlanır.
   ===================================================================== */

/* ---- üst çubuk: dil değiştirici ---- */
.lang-switch {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .25s;
}
.lang-switch:hover { opacity: 1; color: #fff; }
.topbar-right .social-icons ul { margin-bottom: 0; }

/* ---- başlıktaki arama kutusu ---- */
.header-search-form { padding: 0 0 20px; }
#header-wrap .header-search-form .form-control { height: 48px; }

/* ---- açılır menüler: uzun başlıklar için genişletildi ----
   Tema base.css'te .dropdown-menu a { white-space: nowrap } ve
   .navbar-nav .dropdown-menu { max-width: 15em } uyguluyor; uzun
   sektör/kategori adları taşıp üst üste biniyordu. */

/* metinler artık sarmalanıyor */
.nav-item.dropdown .dropdown-menu a {
  white-space: normal;
  line-height: 1.45;
}

@media (min-width: 992px) {
  /* normal açılır menüler (Ürünler, Kurumsal) genişletildi */
  .navbar-nav .dropdown-menu { min-width: 17em !important; max-width: 28em !important; }
  .navbar-nav .dropdown-menu .dropdown-submenu .dropdown-menu { min-width: 17em !important; max-width: 28em !important; }

  /* alt menü okunun metne binmemesi için sağda yer bırak */
  .navbar-nav .dropdown-submenu > .dropdown-toggle { padding-right: 36px; }

  /* mega menü konumlandırması için referans */
  #header-wrap .container { position: relative; }

  /* ---- sektör mega menüsü: geniş, ortalanmış ---- */
  .navbar-nav .nav-item.dropdown.position-static > .mega-sectors {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(1260px, calc(100vw - 60px)) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 26px 18px 20px !important;
  }
}

/* ---- sektör mega menüsü: ızgara düzeni ---- */
.mega-sectors .mega-inner { display: block; width: 100%; }

@media (min-width: 992px) {
  .mega-sectors .mega-inner > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
  }
  .mega-sectors .mega-inner > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
  }
}

.mega-sectors ul li a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px !important;
  white-space: normal;
  line-height: 1.4;
  font-size: 14.5px;
}
.mega-sectors ul li a i { flex: 0 0 auto; margin-top: 3px; font-size: 16px; }
.mega-sectors .mega-foot {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef1f5;
}

@media (max-width: 991.98px) {
  .mega-sectors { padding: 6px 0; }
  .mega-sectors ul li a { padding: 9px 16px !important; }
}

/* ---- kategori kartları (ana sayfa) ---- */
.category-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, .08);
  background: #fff;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
.category-card-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.category-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}
.category-card-body { padding: 22px 20px; text-align: center; }
.category-card-body i { font-size: 30px; display: block; margin-bottom: 10px; }
.category-card-body h5 { margin-bottom: 6px; font-size: 17px; transition: color .3s; }
.category-card-body span { font-size: 13px; color: #8a8f98; }

/* ---- ürün kartı ---- */
.product-card .product-card-image {
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  overflow: hidden;
}
.product-card .product-card-image img {
  max-height: 230px;
  width: auto;
  object-fit: contain;
  transition: transform .5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card .post-desc { padding: 22px 22px 10px; }
.product-card .post-desc h5 { font-size: 16px; line-height: 1.45; }
.product-card .post-bottom { padding: 12px 22px; }
.product-card .post-meta ul li { font-size: 13px; }
.product-badge-raw { background: #1f2c3d !important; color: #fff; }
.wa-link { color: #25d366 !important; }

/* ---- ürün detay galerisi ---- */
.product-gallery { background: #fff; padding: 20px; border-radius: 4px; }
.product-gallery-main {
  background: #f7f8fa;
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; overflow: hidden; border-radius: 3px;
}
.product-gallery-main img { max-height: 400px; width: auto; object-fit: contain; }
.product-thumb {
  cursor: pointer; border: 2px solid transparent; border-radius: 3px;
  background: #f7f8fa; padding: 4px; transition: border-color .25s;
}
.product-thumb.active, .product-thumb:hover { border-color: var(--themeht-theme-color, #16447e); }

/* ---- ürün meta satırı ---- */
.product-meta li { font-size: 14px; margin-right: 22px; }
.product-meta li span { color: #8a8f98; }

/* ---- ambalaj tablosu ---- */
.packaging-box {
  border: 1px solid #e6e9ee;
  border-radius: 4px;
  padding: 22px;
  background: #fbfcfd;
}
.packaging-table thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: #6b727d; border-bottom-width: 1px;
}
.packaging-table td { vertical-align: middle; font-size: 14px; }
.packaging-table code { font-size: 12px; color: #333; background: #eef1f5; padding: 2px 6px; border-radius: 3px; }

/* ---- WhatsApp butonu ---- */
.btn-whatsapp {
  background: #25d366; border-color: #25d366; color: #fff !important;
  padding: 12px 28px; display: inline-block; font-weight: 500;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff !important; }
.product-cta .btn { margin: 0 8px 10px 0; }

/* ---- yüzen WhatsApp butonu ---- */
.wa-float {
  position: fixed; left: 22px; bottom: 26px; z-index: 999;
  background: #25d366; color: #fff !important;
  border-radius: 40px; padding: 13px 18px;
  display: inline-flex; align-items: center; gap: 0;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .42);
  font-weight: 500; font-size: 15px;
  transition: gap .3s ease, padding .3s ease;
}
.wa-float i { font-size: 24px; line-height: 1; }
.wa-float span {
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .4s ease;
}
.wa-float:hover { gap: 10px; }
.wa-float:hover span { max-width: 220px; }
@media (max-width: 575px) { .wa-float { left: 16px; bottom: 18px; padding: 12px 14px; } }

/* ---- sektör rozetleri ---- */
.badge-sector {
  display: inline-block; margin: 0 6px 8px 0; padding: 6px 14px;
  border: 1px solid #dfe3ea; border-radius: 30px;
  font-size: 13px; color: #4a5160; background: #fff;
  transition: all .25s;
}
.badge-sector:hover { background: var(--themeht-theme-color, #16447e); border-color: var(--themeht-theme-color, #16447e); color: #fff; }
.badge-sector.alt { background: #f4f6f9; }

/* ---- kenar çubuğu kategori ağacı ---- */
.cat-tree-wrap { max-height: 620px; overflow-y: auto; }
.cat-tree { margin-bottom: 0; }
.cat-tree li a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 7px 0; font-size: 14px; color: #4a5160;
  border-bottom: 1px solid #f0f2f5;
}
.cat-tree li a i { margin-right: 6px; font-size: 11px; }
.cat-tree li a .cnt {
  font-size: 11px; background: #eef1f5; color: #6b727d;
  border-radius: 20px; padding: 1px 8px; min-width: 26px; text-align: center;
}
.cat-tree li.active > a { color: var(--themeht-theme-color, #16447e); font-weight: 500; }
.cat-tree li.active > a .cnt { background: var(--themeht-theme-color, #16447e); color: #fff; }
.cat-tree .cat-tree { padding-left: 16px; border-left: 1px solid #eef1f5; margin-top: 2px; }
.widget-title {
  font-size: 18px; margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid #eef1f5; position: relative;
}
.widget-title::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px;
  background: var(--themeht-theme-color, #16447e);
}

/* ---- alt kategori kısayolları ---- */
.subcat-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid #e6e9ee; border-radius: 4px;
  background: #fff; height: 100%; transition: all .25s;
}
.subcat-chip:hover { border-color: var(--themeht-theme-color, #16447e); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.subcat-chip i { font-size: 20px; color: var(--themeht-theme-color, #16447e); }
.subcat-chip span { flex: 1; font-size: 14px; font-weight: 500; color: #2b3240; }
.subcat-chip em {
  font-style: normal; font-size: 12px; background: #eef1f5; color: #6b727d;
  border-radius: 20px; padding: 1px 8px;
}

/* ---- liste araç çubuğu ---- */
.list-toolbar { border-bottom: 1px solid #eef1f5; padding-bottom: 14px; }
.list-toolbar .form-select-sm { min-width: 180px; }

/* ---- marka kartı ---- */
.brand-card {
  display: block; text-align: center; background: #fff; border-radius: 4px;
  padding: 34px 26px; box-shadow: 0 5px 30px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.13); }
.brand-card-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.brand-card-logo img { max-height: 90px; width: auto; }
.brand-card h5 { margin-bottom: 8px; }
.brand-card p { font-size: 14px; color: #8a8f98; }

/* ---- referans / belge kutucukları ---- */
.ref-tile, .doc-tile {
  display: block; background: #fff; border: 1px solid #eef1f5; border-radius: 4px;
  padding: 18px; height: 100%; transition: box-shadow .3s, transform .3s;
}
.ref-tile:hover, .doc-tile:hover { box-shadow: 0 8px 26px rgba(0,0,0,.1); transform: translateY(-4px); }
.doc-tile span { display: block; margin-top: 12px; font-size: 13px; color: #4a5160; }
.client-logo { filter: grayscale(1); opacity: .65; transition: all .35s; max-height: 80px; width: auto; }
.client-logo:hover { filter: grayscale(0); opacity: 1; }

/* ---- çözüm ortağı kartı ---- */
.partner-card {
  background: #fff; border: 1px solid #eef1f5; border-radius: 4px; padding: 28px;
}
.partner-card img { max-height: 70px; width: auto; }

/* ---- teklif formu ---- */
.quote-form .form-group { margin-bottom: 22px; }
.quote-form .form-label { font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #2b3240; }
.req { color: #d9534f; }
.quote-product {
  display: flex; align-items: center; gap: 18px;
  background: #f7f8fa; border: 1px solid #e6e9ee; border-radius: 4px; padding: 16px;
}
.quote-product img { width: 78px; height: 78px; object-fit: contain; background: #fff; border-radius: 3px; }

/* ---- iletişim listesi ---- */
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.contact-list li i { color: var(--themeht-theme-color, #16447e); font-size: 18px; margin-top: 2px; }
.contact-map { display: flex; overflow: hidden; border-radius: 4px; }
.contact-map iframe {
  width: 100%; flex: 1;
  height: 100% !important;      /* embed kodundaki height="450" ezilir */
  min-height: 460px;
  border: 0; display: block;
}

/* ---- sayfa gövdesi ---- */
.page-body p { margin-bottom: 18px; }
.page-body h2, .page-body h3, .page-body h4 { margin-top: 34px; margin-bottom: 16px; }
.lead-block p:first-child { font-size: 17px; color: #4a5160; }
.category-intro p:first-child { font-size: 16px; }

/* ---- CTA şeridi ---- */
.cta-strip .btn { margin: 0 8px; }

/* ---- sayfalama ---- */
.pagination .page-link {
  color: #4a5160; border-color: #e6e9ee; padding: 10px 16px;
}
.pagination .page-item.active .page-link {
  background: var(--themeht-theme-color, #16447e);
  border-color: var(--themeht-theme-color, #16447e); color: #fff;
}

/* ---- teklif paneli (yandan açılan) ---- */
.contact-form .form-group { margin-bottom: 14px; }
.contact-form { overflow-y: auto; }

/* ---- yazdırma ---- */
@media print {
  header, footer, .wa-float, .contact-btn, .contact-form, .scroll-top, #ht-preloader { display: none !important; }
  .page-content { padding: 0 !important; }
}

/* küçük WhatsApp butonu (kenar çubuğu teklif kutusu) */
.btn-whatsapp.btn-sm { padding: 8px 16px; font-size: 13px; }
.widget-contact .btn { margin-right: 6px; }

/* ---- açıklama içindeki markdown tabloları ---- */
.md-table { margin: 18px 0 22px; background: #fff; }
.md-table thead th {
  background: #f7f8fa; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: #6b727d; border-bottom: 1px solid #e6e9ee;
}
.md-table td, .md-table th { padding: 9px 14px; vertical-align: middle; }
.md-table tbody tr:last-child td { border-bottom: 0; }
