/* Ege Tekstil — statik aktarım ek düzeltmeleri
   (divi.css + fonts.css + global.css + home.css/page.css ile birlikte yüklenir) */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Anchor hedefler sticky header altında kalmasın */
#urunler,
#iletisim {
  scroll-margin-top: 100px;
}

/* Klavye ile gezinmede görünür odak */
a:focus,
button:focus,
.mobile_menu_bar:focus,
input:focus,
textarea:focus {
  outline: 2px dotted #e02b20;
  outline-offset: 2px;
}

/* ---- İçeriğe geç bağlantısı ---- */
.hs-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #e02b20;
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
}
.hs-skip:focus {
  left: 0;
}

/* ---- Hamburger düğmesi: gerçek buton görünümü (ETmodules ikonu korunur) ---- */
button.mobile_menu_bar {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.mobile_menu_bar::before {
  font-size: 32px;
}

/* ---- Ürün kartları hover efektleri (canlıdaki ds-advent-6, tüm sayfalarda) ---- */
.ds-advent-6-text-show,
.ds-advent-6-text-hide,
.ds-advent-6-image-swap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.ds-advent-6-text-show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 0.7s ease;
  transition: all 0.7s ease;
  opacity: 0;
}
.ds-advent-6-text-show:hover {
  opacity: 1;
}
.ds-advent-6-text-show a {
  color: #fff;
}
.ds-advent-6-text-show mark {
  display: block;
  background: transparent;
  font-weight: bold;
  color: #fff;
}
.ds-advent-6-text-hide {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 0.7s ease;
  transition: all 0.7s ease;
  opacity: 1;
}
.ds-advent-6-text-hide:hover {
  opacity: 0;
}
.ds-advent-6-text-hide a {
  color: #fff;
}
.ds-advent-6-text-hide mark {
  display: block;
  background: transparent;
  font-weight: bold;
  color: #fff;
}
.ds-advent-6-image-swap {
  opacity: 0;
  -webkit-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}
.ds-advent-6-image-swap:hover {
  opacity: 1;
}

/* ---- İletişim bloğu: form yerine harita + adres ---- */
#et-contact-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
#et-contact-row .et_pb_column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.contact-map-card {
  background: #fff;
  padding: 10px;
  -webkit-box-shadow: 0 10px 100px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 100px 0 rgba(0, 0, 0, 0.2);
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.contact-map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-directions {
  margin-top: 14px;
  text-align: center;
}
.contact-directions a {
  display: inline-block;
  padding: 10px 24px;
  background-color: #e02b20;
  color: #fff !important;
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  -webkit-box-shadow: 0 10px 30px 0 rgba(252, 112, 134, 0.5);
  box-shadow: 0 10px 30px 0 rgba(252, 112, 134, 0.5);
  -webkit-transition: all 300ms ease 0ms;
  transition: all 300ms ease 0ms;
}
.contact-directions a:hover {
  letter-spacing: 3px;
}

/* Masaüstünde harita sütununu taşırmayan güvenlik */
.et_pb_row_1_tb_footer .et_pb_column,
#et-contact-row .et_pb_column {
  max-width: 100%;
  box-sizing: border-box;
}
.contact-map-card,
.contact-map-card iframe {
  max-width: 100%;
  box-sizing: border-box;
}

@media only screen and (max-width: 980px) {
  #et-contact-row {
    display: block;
  }
  .contact-map-card iframe {
    height: 350px;
  }
}

/* ---- Dil seçici (WPML) ---- */
.et_pb_row_2_tb_footer .et_pb_sidebar_0_tb_footer {
  height: 60px;
  overflow: hidden;
}
.et_pb_row_2_tb_footer .wpml-ls-legacy-list-vertical {
  border: 0;
}
.et_pb_row_2_tb_footer .wpml-ls-item {
  padding: 4px 0;
  text-align: center;
}
@media only screen and (max-width: 980px) {
  .et_pb_row_2_tb_footer {
    position: fixed;
    top: 100px;
    right: 0;
    z-index: 99999;
  }
}

/* ---- Yukarı dön butonu (marka renginde #e02b20) ---- */
#back-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 3px;
  background-color: #e02b20;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-shadow: 0 10px 30px 0 rgba(252, 112, 134, 0.5);
  box-shadow: 0 10px 30px 0 rgba(252, 112, 134, 0.5);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#back-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
#back-top.et-show {
  opacity: 1;
  visibility: visible;
}
#back-top:hover {
  background-color: #c41f15;
}

/* ---- Aktif menü vurgusu (marka rengi — canlıdaki gibi iç sayfalarda da) ---- */
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a,
.et-fixed-header #top-menu li.current-menu-ancestor > a,
.et-fixed-header #top-menu li.current-menu-item > a {
  color: #e02b20;
}

/* ---- Masaüstü alt menüde klavye erişimi ---- */
.nav li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
}
.nav li ul.sub-menu li a:focus {
  background-color: rgba(0, 0, 0, 0.03);
}

/* ---- Kontrast düzeltmeleri (Lighthouse AA) ---- */
body.page-home .et_pb_column_0,
.et_pb_column_0.et_pb_column { background-color: rgba(0, 0, 0, 0.72); }
body.page-home .et_pb_text_1 { color: #ffffff !important; }
body.page-home .et_pb_text_1.et_pb_text { color: #ffffff !important; }
.et_pb_row_3 .et_pb_text_inner p a { color: inherit; }
.et_pb_row_3 .et_pb_text_inner p a:hover { color: #e02b20; }

/* Gri metin kontrastları AA'ya çekilir (0.4 -> 0.6 siyah, canlıdaki gri ton korunur) */
body.page-home .et_pb_text_3,
body.page-home .et_pb_text_3.et_pb_text { color: rgba(0, 0, 0, 0.6) !important; }
.et_pb_text_1_tb_footer,
.et_pb_text_1_tb_footer.et_pb_text { color: rgba(0, 0, 0, 0.6) !important; }
.et_pb_text_1_tb_footer.et_pb_text a,
.et_pb_text_1_tb_footer a { color: rgba(0, 0, 0, 0.6); }

/* Footer adres başlığı h2 olarak işaretlendi (başlık hiyerarşisi); canlıdaki h3 stili korunur */
.et_pb_text_1_tb_footer h2 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #e02b20 !important;
  letter-spacing: 3px;
  line-height: 1.5em;
}

/* Ekran okuyucu metni (görünmez, link metni açıklayıcı kalır) */
.hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Masaüstü menünün en sağında yanyana dil bayrakları (orijinal yalnız mobilde gösteriyordu) */
#et-top-navigation .hs-bayraklar {
  float: left;
  margin: 0 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  position: relative; /* absolute logo_container örtüsünün üstünde kalması için */
  z-index: 99;
}
#et-top-navigation .hs-bayraklar li {
  margin: 0;
  padding: 0;
  list-style: none;
}
#et-top-navigation .hs-bayraklar li + li {
  margin-left: 10px;
}
#et-top-navigation .hs-bayraklar a {
  display: block;
  line-height: 0;
  padding: 0;
}
#et-top-navigation .hs-bayraklar img {
  display: block;
  width: 18px;
  height: 12px;
}
#et-top-navigation .hs-bayraklar li.hs-aktif a {
  opacity: .55;
}
#et-top-navigation .hs-bayraklar a:focus-visible {
  outline: 2px solid #e02b20;
  outline-offset: 2px;
}
@media (max-width: 980px) {
  #et-top-navigation .hs-bayraklar { display: none; }
}

/* İç sayfalarda da logo ana sayfadaki boyutta (Divi'nin 54% kuralını ez) */
#logo { max-height: 100%; }

/* İç sayfaların header'ı ana sayfayla aynı: nav dolgusu 43px (fixed 30px) */
@media only screen and (min-width: 981px) {
  .et_header_style_left #et-top-navigation { padding: 43px 0 0 0; }
  .et_header_style_left #et-top-navigation nav>ul>li>a { padding-bottom: 43px; }
  .et_header_style_left .et-fixed-header #et-top-navigation { padding: 30px 0 0 0; }
  .et_header_style_left .et-fixed-header #et-top-navigation nav>ul>li>a { padding-bottom: 30px; }
}
