/* ==========================================================================
   DirsekFlanş / ETKA Metal Endüstri — Çok Sayfalı SEO Düzen ve Ortak Bileşenler
   ========================================================================== */

/* Ortak Üst Menü (main.css yüklenmeyen ürün katalog sayfalarında da birebir görünüm) */
nav.etka-reference-nav {
  position: relative;
  z-index: 1100;
  background: #ffffff;
  border-bottom: 1px solid #d4e0e8;
  box-shadow: 0 3px 15px rgba(5, 34, 63, 0.09);
  padding: 10px max(20px, calc((100vw - 1510px) / 2));
  font-family: Arial, Helvetica, sans-serif;
}
nav.etka-reference-nav .etka-reference-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1510px;
  margin: auto;
}
nav.etka-reference-nav .etka-reference-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
nav.etka-reference-nav .etka-reference-links a {
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #09263c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}
nav.etka-reference-nav .etka-reference-links a:hover {
  color: #f45a16;
  background: #fff5ef;
}
nav.etka-reference-nav .etka-reference-links a.selected {
  background: linear-gradient(125deg, #ff8500, #ff4b0a) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 8px rgba(231, 91, 25, 0.25);
}
nav.etka-reference-nav .etka-mobile-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
nav.etka-reference-nav .etka-reference-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
nav.etka-reference-nav .etka-reference-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #09263c;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
nav.etka-reference-nav .etka-route-nav-link {
  color: #e45512;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 767px) {
  nav.etka-reference-nav {
    padding: 6px 8px 4px !important;
    background: #f6f9fc !important;
  }
  nav.etka-reference-nav .etka-reference-nav-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
  }
  nav.etka-reference-nav .etka-reference-links {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }
  nav.etka-reference-nav .etka-reference-links > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 3px 2px !important;
    font-size: clamp(10px, 2.55vw, 13px) !important;
    line-height: 1.1 !important;
    background: #ffffff;
    border: 1px solid #d9e2e8;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(11, 44, 67, 0.06);
    text-align: center !important;
    white-space: normal !important;
  }
  nav.etka-reference-nav .etka-mobile-contact-row {
    justify-content: center !important;
    gap: 12px !important;
    height: 36px;
  }
}

/* Müstakil Sayfa Akışı (eski sabit modal katmanlarını normal sayfa akışına çevirir) */
.etka-standalone-view {
  display: block !important;
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  overflow: visible !important;
  min-height: 62vh;
}
.etka-standalone-view + .df-site-footer {
  margin-top: 0;
}

#etkaDetailPage.etka-standalone-detail {
  display: block !important;
  padding: 26px 14px 48px;
}

/* Katalog sol menü ve kart linkleri */
a.cat,
a.details,
a.detail-back,
a.eb-read,
a.eb-back,
a.eb-action {
  text-decoration: none !important;
}
a.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
a.eb-read,
a.eb-back,
a.eb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumb (İçerik Yolu) */
.df-breadcrumbs {
  max-width: 1080px;
  margin: 0 auto 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  font: 600 13px/1.45 Arial, sans-serif;
  color: #546d82;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.df-breadcrumbs--wide {
  max-width: 1400px;
  margin: 18px auto 6px;
}
.df-breadcrumbs a {
  color: #0d3a5c;
  text-decoration: none;
  font-weight: 700;
}
.df-breadcrumbs a:hover {
  color: #ff5a12;
  text-decoration: underline;
}
.df-breadcrumbs .sep {
  color: #9ab0c1;
}
.df-breadcrumbs .cur {
  color: #e45512;
  font-weight: 700;
}

/* Ürün Seçimine Git CTA Butonu */
.df-seo-select-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(125deg, #ff7a18, #e94d0a) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font: 800 15px/1.25 Arial, sans-serif !important;
  padding: 15px 24px !important;
  border-radius: 10px !important;
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(233, 77, 10, 0.25);
  margin: 18px 0 !important;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s;
}
.df-seo-select-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(233, 77, 10, 0.34);
}

/* Ürünler Ana Hub Sayfası Kategori Blokları */
.df-cat-section {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce5ee;
}
.df-cat-section:last-child {
  border-bottom: 0;
}
.df-cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.df-cat-section-head h2 {
  margin: 0;
  font-size: 22px;
  color: #082e4e;
  border-left: 4px solid #ff641c;
  padding-left: 12px;
}
.df-cat-section-head h2 a {
  color: inherit;
  text-decoration: none;
}
.df-cat-section-head h2 a:hover {
  color: #ff5a12;
}
.df-cat-select-link {
  font-size: 13px;
  font-weight: 800;
  color: #e45512;
  text-decoration: none;
  background: #fff3eb;
  border: 1px solid #ffc7a8;
  padding: 8px 13px;
  border-radius: 8px;
}
.df-cat-select-link:hover {
  background: #ff641c;
  color: #ffffff;
}

/* İlgili Ürünler & İlgili Blog Kutuları (İç Linkleme) */
.df-related-box {
  margin-top: 28px;
  padding: 22px;
  background: #f7fafc;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
}
.df-related-box h2 {
  margin: 0 0 14px !important;
  font-size: 19px !important;
  color: #0c2c47 !important;
  border-left: 4px solid #ff641c;
  padding-left: 11px;
}
.df-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.df-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #d3e0ec;
  border-radius: 9px;
  color: #0e3554 !important;
  font: 700 13px/1.3 Arial, sans-serif;
  text-decoration: none !important;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.df-related-chip:hover {
  border-color: #ff641c;
  color: #e64f0b !important;
  box-shadow: 0 4px 12px rgba(13, 53, 84, 0.08);
}

/* Ana Sayfa Teknik Katalog Hızlı Erişim Bandı */
.df-home-catalog-links {
  max-width: 1360px;
  margin: 28px auto 12px;
  padding: 24px 22px;
  background: rgba(11, 35, 56, 0.85);
  border: 1px solid rgba(126, 173, 212, 0.22);
  border-radius: 16px;
  color: #e6eff7;
}
.df-home-catalog-links h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #ffffff;
}
.df-home-catalog-links p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #a9c1d6;
}
.df-home-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.df-home-chip {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #edf5fc;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.df-home-chip:hover {
  background: #ff641c;
  border-color: #ff641c;
  color: #ffffff;
}

/* Ortak SEO Footer */
.df-site-footer {
  background: #061624;
  color: #c9daea;
  border-top: 3px solid #ff641c;
  margin-top: 48px;
  font-family: Arial, Helvetica, sans-serif;
}
.df-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px 24px 34px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.05fr;
  gap: 32px;
}
.df-footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  margin-bottom: 14px;
}
.df-footer-logo-wrap img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
}
.df-footer-logo-wrap strong {
  display: block;
  font-size: 17px;
  color: #ffffff;
}
.df-footer-logo-wrap span {
  display: block;
  font-size: 12px;
  color: #ff8c52;
  margin-top: 2px;
}
.df-footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #9cb5ca;
  margin: 0 0 14px;
}
.df-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #dbe8f4;
}
.df-footer-contact a {
  color: #ff9864;
  text-decoration: none;
  font-weight: 700;
}
.df-footer-contact a:hover {
  text-decoration: underline;
}
.df-footer-col h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #ffffff;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.df-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.df-footer-links a {
  color: #b8cde0;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.df-footer-links a:hover {
  color: #ff7e3e;
}
.df-footer-links a.df-footer-all-link {
  color: #ff8648;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}
.df-footer-corp {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.df-footer-corp a {
  color: #dce9f5;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.df-footer-corp a:hover {
  color: #ff7e3e;
}
.df-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px 24px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #89a4bc;
}

@media (max-width: 1024px) {
  .df-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .df-footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 16px 24px;
    gap: 24px;
  }
  .df-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
