/* Sot Makina — statik sürüm düzeltmeleri (tasarım değiştirilmedi) */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #fff;
  color: #1a1a1a;
  padding: 10px 16px;
  border: 2px solid #1a1a1a;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

img, iframe, video { max-width: 100%; }
.entry-content img, .entry-the-content img { height: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
}

/* link ve menü rengi — kontrast/okunabilirlik için koyulaştırıldı */
a { color: #d0021b; }
a:hover, a:focus { color: #9b0114; }
#menu-primary-items > li > a { color: #333333; }
#menu-primary-items > li > a:hover,
#menu-primary-items > li.current-menu-item > a,
#menu-primary-items > li.current-menu-parent > a { color: #d0021b; }

/* slider başlığı (h3 → h2 sonrası eski boyut korunur) */
.hootslider-html-slide h2 { font-size: 2.57142857em; margin: 0; }
.hootslider-html-slide .hcolumn-1-1 h2 { font-size: 3.14285714em; }

/* ---------- iletişim sayfası: harita + adres ---------- */
.iletisim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  box-sizing: border-box;
  max-width: 100%;
}
.iletisim-grid > * { min-width: 0; box-sizing: border-box; }
.sot-iletisim { max-width: 100%; }
.sot-iletisim h2 {
  margin: 0 0 14px;
  font-size: 1.35em;
  line-height: 1.3;
}
.sot-iletisim address {
  font-style: normal;
  border: 0;
  padding: 0;
  background: none;
  line-height: 1.7;
  margin: 0 0 18px;
}
.sot-iletisim address p { margin: 0 0 8px; }
.sot-harita {
  position: relative;
  height: 100%;
  min-height: 265px;
  max-width: 100%;
  box-sizing: border-box;
  background: #eee;
}
.sot-harita iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  max-width: 100%;
}
.harita-buton {
  display: inline-block;
  padding: 11px 22px;
  background: #d0021b;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
}
.harita-buton:hover, .harita-buton:focus { background: #9b0114; color: #fff !important; }

/* ana butonlar (beyaz metin kırmızı zemin — kontrast için koyulaştırıldı) */
.button, input[type="submit"], #submit { background: #d0021b; }
.button:hover, .button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
#submit:hover, #submit:focus { background: #b9121b; }

/* footer kredi satırı — okunabilirlik için koyulaştırıldı */
.credit { color: #5a5a5a; }

/* ---------- tüm ürünler ---------- */
.urun-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.urun-kart { margin: 0; list-style: none; }
.urun-grid li::before, .urun-grid li::marker { content: none; display: none; }
.urun-kart > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e6e6e6;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.urun-kart > a:hover,
.urun-kart > a:focus {
  border-color: #c9c9c9;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.urun-gorsel {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}
.urun-gorsel img { width: 100%; height: 100%; object-fit: contain; }
.urun-bos { color: #b9b9b9; font-size: 42px; }
.urun-ad {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- sayfa başına dön ---------- */
#yukari {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #d0021b;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
#yukari.gorunur { opacity: .9; visibility: visible; }
#yukari:hover { opacity: 1; }

/* ---------- mobil menü ---------- */
@media (max-width: 767px) {
  .iletisim-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sot-harita { min-height: 300px; }
  .urun-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .urun-ad { padding: 10px 12px; font-size: .95em; }
}

/* mobil menü: tema hamburgeri 799px'e kadar gösterir, kurallar da aynı aralıkta */
@media (max-width: 799px) {
  /* logo ve hamburger: iki yanda eşit 15px boşluk */
  #header .table { position: relative; flex-wrap: wrap; padding-left: 15px; padding-right: 15px; box-sizing: border-box; }

  /* hamburger: sağ üst köşede (tema varsayılanı sol kenardı) */
  #menu-primary .menu-toggle {
    position: absolute;
    top: 12px;
    right: 15px;
    left: auto !important; /* tema JS'i inline left yazıyor */
    width: auto;
    z-index: 99992;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 18px;
    line-height: 1;
  }
  /* menü açıkken düğme panelin üstünde kalır ve X olur */
  body.sot-menu-open #menu-primary .menu-toggle {
    position: fixed;
    top: 12px;
    right: 15px;
    left: auto !important;
    z-index: 99999;
  }
  body.sot-menu-open #menu-primary .menu-toggle i:before {
    content: "\f00d";
  }

  /* sağdan kayan panel: kapalıyken ekran dışında, açılınca kayarak gelir */
  #menu-primary #menu-primary-items {
    display: block;
    position: fixed;
    top: 0;
    right: 0 !important;
    left: auto !important;
    bottom: 0;
    height: 100%;
    width: min(300px, 85vw);
    max-height: none;
    overflow-y: auto;
    margin: 0;
    padding: 64px 0 24px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .18);
    z-index: 99991;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  body.sot-menu-open #menu-primary #menu-primary-items {
    transform: translateX(0);
    visibility: visible;
  }
  #menu-primary-items > li {
    display: block;
    width: 100%;
    float: none;
    border-bottom: 1px solid #eee;
  }
  #menu-primary-items a {
    display: block;
    padding: 12px 16px;
    line-height: 1.35;
  }
  #menu-primary-items .sub-menu {
    display: none;
    position: static !important;
    width: auto !important;
    float: none;
    background: #f6f6f6;
    padding: 0 0 0 12px;
    box-shadow: none;
  }
  #menu-primary-items li.sub-open > .sub-menu { display: block; }
  #menu-primary-items .sub-menu a { padding: 10px 16px; font-size: .95em; }
}

@media (max-width: 420px) {
  .urun-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ekran okuyucu için sayfa başlığı */
.gizli-baslik {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* çapa bağlantıları: sabit menü altında kalmasın */
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
[id] { scroll-margin-top: 95px; }
@media (max-width: 767px) { html { scroll-padding-top: 75px; } [id] { scroll-margin-top: 75px; } }

/* Menü açıkken tema overlay'i: tam siyah yerine yarı saydam; panelin altında
   kalır, sayfa içeriği görünür. Dış alana tıklanınca menü kapanır. */
.fixedmenu-open body:before {
  background: rgba(0, 0, 0, .25) !important;
  z-index: 99990 !important;
}
