/* Kardelen Çocuk — statik site düzeltmeleri */

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

body { max-width: 100%; overflow-x: hidden; }
img, iframe, video { max-width: 100%; }
iframe { border: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #0b5c86;
  outline-offset: 2px;
}

/* Mobil menü */
#menu-ana-menu { display: flex; }
.menu-ana-menu-container.menu-open #menu-ana-menu { display: block; }

@media (max-width: 980px) {
  .menu-toggle, #site-navigation .menu-toggle {
    display: block;
    text-indent: 0;
    width: 100%;
    padding: 12px 16px;
    background: #e3000f;
    color: #fff;
    border: 0;
    text-align: left;
    font: 600 14px/1 'Open Sans', Arial, sans-serif;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-toggle:hover, .menu-toggle:focus { background: #b8000c; }
  /* Canlıdaki gibi hamburger ikonu sağda */
  .menu-toggle { position: relative; padding-right: 64px; }
  .menu-toggle::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 24px; height: 16px; margin-top: -8px;
    background: linear-gradient(#fff, #fff) top / 100% 2px no-repeat,
                linear-gradient(#fff, #fff) center / 100% 2px no-repeat,
                linear-gradient(#fff, #fff) bottom / 100% 2px no-repeat;
  }
  .menu-toggle[aria-expanded="true"]::after { background: linear-gradient(#fff, #fff) center / 100% 2px no-repeat; }
  #menu-ana-menu { display: none; width: 100%; background: #e3000f; }
  .menu-ana-menu-container { width: 100%; }
  /* Tema "li { display:inline-flex !important }" kuralını mobilde geçersiz kıl: seçili öğe tam genişlik olsun */
  .main-navigation #menu-ana-menu > li,
  .main-navigation #menu-ana-menu .menu-item { display: block !important; width: 100%; float: none; background: #e3000f; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 0; }
  .main-navigation #menu-ana-menu > li > a { display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; background: #e3000f; color: #fff; }
  .main-navigation #menu-ana-menu > li.current-menu-item > a,
  .main-navigation #menu-ana-menu > li.current_page_item > a { background: #b8000c; font-weight: 700; }
  .main-navigation #menu-ana-menu .sub-menu li { background: transparent; border-top: 1px solid rgba(255,255,255,.15); }
  .main-navigation #menu-ana-menu .sub-menu a { color: #fff; }
  .main-navigation.menu-right, .main-navigation { background: #e3000f; border-bottom-color: #e3000f; }
}

/* İletişim: masaüstünde harita + adres yan yana, yükseklikler eşit; mobilde alt alta */
.kc-contact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: stretch; margin: 10px 0 24px; }
.kc-map { position: relative; min-height: 360px; max-width: 100%; min-width: 0; }
.kc-map iframe {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  border: 1px solid #e6e6e6; background: #f4f4f4;
}
.kc-info { min-width: 0; }
.kc-info p { margin: 0 0 10px; overflow-wrap: anywhere; }
.kc-info a { overflow-wrap: anywhere; color: #0b5c86; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .kc-contact { grid-template-columns: minmax(0, 1fr); }
  .kc-map { min-height: 300px; }
}
#content .harita-buton,
.harita-buton {
  display: block;
  margin-top: 12px;
  padding: 12px 18px;
  background: #e3000f;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.harita-buton:hover, .harita-buton:focus { background: #b8000c; color: #fff !important; }

/* Ürün grupları */
.urun-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 10px 0 30px;
}
.urun-kart {
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.urun-kart:hover, .urun-kart:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.urun-kart img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #eee;
  background: #fff;
  display: block;
}
.urun-kart a { display: block; text-decoration: none; }
.urun-kart span {
  display: block;
  padding: 10px 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.urun-kart a:hover span { color: #0b5c86; }

/* Alt bilgi */
.site-footer .ak-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer .footer-info { flex: 1 1 420px; min-width: 0; }
.site-footer .footer-info p { margin: 0 0 4px; font-size: 13px; color: #ddd; }
.site-footer .footer-info a { color: #fff; }
.site-footer .copyright { flex: 0 0 auto; font-size: 13px; color: #ddd; }

/* Sayfa başına dön */
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  width: 44px; height: 44px; line-height: 44px; text-align: center;
  border-radius: 50%; background: #e3000f; color: #fff;
  font-size: 20px; text-decoration: none; opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
}
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover, .back-top:focus { background: #b8000c; color: #fff; }

@media (max-width: 767px) {
  .urun-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .site-footer .footer-info, .site-footer .copyright { float: none; max-width: 100%; text-align: center; }
}

/* Slider: siyah şerit kalksın, görseller genişliği doldursun, yükseklik canlıyla aynı kalsın */
#slider-banner { background: transparent; overflow: hidden; }
#slider-banner .bx-wrapper,
#slider-banner .bx-wrapper .bx-viewport {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#slider-banner .bx-wrapper { max-width: 100% !important; margin-bottom: 0 !important; }
#slider-banner .bx-wrapper .bx-viewport { max-height: 795px !important; }
#slider-banner .slides,
#slider-banner .slides li,
#slider-banner .slides img { display: block; width: 100%; height: auto; }
#slider-banner .bx-wrapper .bx-prev { left: 10px !important; }
#slider-banner .bx-wrapper .bx-next { right: 10px !important; }
#slider-banner .bx-wrapper .bx-pager { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 10; }
.bx-wrapper .bx-pager.bx-default-pager a { box-shadow: 0 0 0 2px rgba(255,255,255,.9) inset; }

/* Sabit başlık altında kalmadan bölüme kaydırma */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
:target, [id] { scroll-margin-top: 96px; }
@media (max-width: 980px) {
  html { scroll-padding-top: 72px; }
  :target, [id] { scroll-margin-top: 72px; }
}

/* Bağlantı ve meta kontrastı */
.entry-meta a, .entry-meta, .posted-on a, .posted-on,
.entry-footer a, .entry-footer,
.cat-links a, .tags-links a { color: #4a4a4a; }
.entry-footer a:hover, .cat-links a:hover, .tags-links a:hover { color: #084a6e; }

/* Öne çıkan yazı başlıkları (h4 -> h3) */
.featured-post h3 {
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 10px;
  font-size: 16px;
}
.featured-post h3 a, .featured-post h3 a span { color: #666; }
.featured-post h3 a:hover, .featured-post h3 a:hover span { color: #084a6e; }

/* Yazı başlığı bağlantıları: yeterli kontrast */
.entry-title a, article.hentry .entry-title a { color: #0b5c86; }
.entry-title a:hover { color: #084a6e; }

.widget-title a, .event-title a, .event-title a:hover, .all-events { color: #0b5c86; }

#secondary .widget-title a, #secondary .event-title a, #secondary .all-events { color: #0b5c86; }
#secondary .event-excerpt, #secondary .event-detail { color: #4a4a4a; }
.widget-title { color: #333; }
.sidebar h2.widget-title,
.sidebar h3.widget-title {
  background: #F1F2F3;
  border-left: 5px solid #01AEFD;
  font-size: 22px;
  text-transform: uppercase;
  padding: 10px 15px;
  line-height: 24px;
  margin-bottom: 15px;
  color: #333;
}
.sidebar h2.widget-title a,
.sidebar h3.widget-title a { color: #0b5c86; }

#secondary aside .event-title a, #secondary .event-list a, #secondary .event-detail a { color: #0b5c86 !important; }
#secondary .event-title { font-size: 15px; color: #0b5c86; }

#secondary-right aside .event-title a, #secondary-right .event-list a,
#secondary-right .event-detail a, #secondary-right .sidebars a { color: #0b5c86 !important; }
#secondary-right .event-title a:hover { color: #084a6e !important; }

#secondary-right .all-events { color: #0b5c86 !important; }

.event-date-archive .posted-on,
.event-date-archive .posted-on a,
.event-date-archive time { color: #fff !important; }

/* Alt menü (İK): klavye ile açılır, mobilde her zaman erişilebilir */
.main-navigation li:focus-within > ul.sub-menu { display: block; }
@media (max-width: 980px) {
  #menu-ana-menu .sub-menu { display: block; position: static; width: 100%; float: none; border: 0; box-shadow: none; background: rgba(0,0,0,.12); }
  #menu-ana-menu .sub-menu a { display: block; padding: 10px 16px 10px 32px; }
}

/* Lightbox (görsel büyütme) */
.kc-lightbox {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.kc-lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; background: #fff; }
.kc-lightbox-close {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px;
  font-size: 30px; line-height: 1; background: #fff; color: #111; border: 0;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}
.kc-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* WordPress galeri (Ürünler ana sayfası): düzgün hizalı, okunabilir */
.site-main .gallery,
.gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 10px 0 30px; }
.site-main .gallery .gallery-item,
.gallery .gallery-item {
  display: block !important;
  max-width: none !important;
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.site-main .gallery .gallery-item:hover,
.gallery .gallery-item:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.site-main .gallery .gallery-icon,
.gallery .gallery-icon { display: block; }
.site-main .gallery .gallery-icon img,
.gallery .gallery-icon img,
.site-main .gallery a img {
  max-width: 100% !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #fff;
}
.gallery .gallery-caption { display: none; }
@media (max-width: 767px) {
  .site-main .gallery,
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* İç içe liste sarmalayıcısı (madde işaretsiz) */
.kc-nolist { list-style: none; }
