/* Oto Arslan Yedek Parça — site stilleri (kütüphanesiz) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.6 "Trebuchet MS", Verdana, Arial, sans-serif; color: #4f5054;
       background: #f1f1f1 url(../images/arkaplan/doku.png) fixed; }
img { max-width: 100%; height: auto; border: 0; }
a { color: #d90d27; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3 { font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.gizli { position: absolute; left: -9999px; }

.sayfa { max-width: 940px; margin: 0 auto; padding: 0 8px; }

/* üst kısım */
.ust { text-align: center; padding-top: 4px; }
.logo { display: inline-block; max-width: 100%; }
.logo img { display: block; margin: 0 auto; }
.sosyal { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 0; }
.sosyal a { display: block; line-height: 0; }
.sosyal img { width: 35px; height: 35px; }

/* menü */
.menu { background: linear-gradient(#fff, #f7f7f7); border-bottom: 1px solid #e3e3e3; position: relative; }
.menu-dugme { display: none; width: 100%; padding: 10px 14px; border: 0; background: transparent; font: inherit; font-size: 15px; text-align: left; cursor: pointer; color: #4f5054; }
.menu-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu-liste > li { position: relative; }
.menu-liste a { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 19px; font-size: 15px; color: #4f5054; }
.menu-liste a:hover, .menu-liste a:focus { background: #f0f0f0; text-decoration: none; }
.menu-liste a img { width: auto; height: 14px; }
.menu-liste a[aria-current="page"] { background: #bf182d; color: #fff; }
.menu-liste a[aria-current="page"] img { filter: brightness(0) invert(1); }
.alt-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 190px; margin: 0; padding: 6px 0; list-style: none;
            background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.alt-menu a { height: auto; padding: 8px 18px; }
.menu-liste > li:hover > .alt-menu, .menu-liste > li:focus-within > .alt-menu { display: block; }

/* içerik */
.icerik { background: #fff; padding: 24px 26px 8px; margin-top: 0; }
.icerik h1 { color: #d90d27; font-size: 26px; padding-bottom: 10px; border-bottom: 1px solid #ececec; margin-bottom: 18px; }
.icerik h2 { color: #d90d27; font-size: 20px; margin-top: 1.4em; }
.icerik h3 { font-size: 16px; font-weight: 700; margin-top: 1.2em; color: #3b3c3f; }
.icerik img.sol { float: left; margin: 4px 18px 10px 0; }
.icerik::after { content: ""; display: block; clear: both; }

/* ana sayfa */
.vitrin { display: grid; grid-template-columns: 620fr 301fr; gap: 20px; background: #fff; padding-top: 0; }
.vitrin-banner { margin: 0; border: 1px solid #e3e3e3; line-height: 0; }
.vitrin-banner img { width: 100%; height: 100%; object-fit: cover; }
.slayt { position: relative; aspect-ratio: 620 / 254; overflow: hidden; background: #222; }
.slayt-kare { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s; line-height: 0; }
.slayt-kare.acik { opacity: 1; }
.slayt-kare img { width: 100%; height: 100%; object-fit: cover; }
.slayt-noktalar { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 7px; }
.slayt-nokta { width: 11px; height: 11px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .35); cursor: pointer; }
.slayt-nokta[aria-current="true"] { background: #fff; }
.slayt-ok { position: absolute; top: 50%; margin-top: -22px; width: 38px; height: 44px; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.slayt:hover .slayt-ok, .slayt:focus-within .slayt-ok { opacity: 1; }
.slayt-onceki { left: 0; } .slayt-sonraki { right: 0; }

.marka-seridi { position: relative; background: #fff; padding: 22px 0 6px; }
.marka-iz { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 2px; }
.marka-iz::-webkit-scrollbar { display: none; }
.marka-iz a, .marka-iz span { flex: 0 0 calc((100% - 70px) / 8); scroll-snap-align: start; display: block; line-height: 0; border: 1px solid #ececec; }
.marka-iz img { width: 100%; }

.bannerlar { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; padding: 22px 0 20px; gap: 0; line-height: 0; }
.bannerlar img { width: 100%; }

/* alt bloklar ve altbilgi */
.alt-bloklar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; background: #fff; padding: 24px 26px 28px; margin-top: 0; border-top: 1px solid #ececec; }
.alt-bloklar h3 { color: #d90d27; font-size: 18px; padding-bottom: 12px; border-bottom: 1px solid #ececec; margin-bottom: 16px; }
.alt-bloklar ul { list-style: none; margin: 0; padding: 0; }
.alt-bloklar li { padding: 6px 0; border-bottom: 1px solid #ececec; }
.alt-bloklar li:last-child { border-bottom: 0; }
.oneri { display: flex; gap: 10px; align-items: flex-start; }
.oneri p { margin: 0; color: #888; font-size: 13px; }
.oneri strong { display: block; color: #3b3c3f; font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.ulasim { text-align: center; color: #888; }
.ulasim img { width: 100px; height: 100px; margin: 4px auto 0; display: block; }
.ulasim-dugmeler { display: inline-flex; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.ulasim-dugmeler a { display: block; width: 36px; height: 32px; padding: 7px 10px; background: #f6f6f6; color: #5aa1d8; border-right: 1px solid #ddd; line-height: 0; }
.ulasim-dugmeler a:last-child { border-right: 0; }
.ulasim-dugmeler svg { width: 16px; height: 16px; fill: currentColor; }
.altbilgi { position: relative; background: #f7f7f7; border-top: 1px solid #ececec; padding: 22px 26px; text-align: center; margin-bottom: 30px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.altbilgi p { margin: 0; }
.yukari { position: absolute; right: 24px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: #777; line-height: 0; }
.yukari svg { width: 20px; height: 20px; fill: currentColor; }

/* galeriler */
.galeri { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 24px; }
.galeri a { display: block; line-height: 0; outline-offset: 2px; }
.galeri img { display: block; transition: opacity .2s; }
.galeri a:hover img, .galeri a:focus img { opacity: .8; }
.logolar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; }
.logolar img { display: block; border: 1px solid #ececec; }
.marka-izgara { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.marka-izgara img { display: block; border: 1px solid #ececec; }

/* ürün grupları (details) */
.urunler details { border: 1px solid #e3e3e3; margin-bottom: 8px; background: #fff; }
.urunler summary { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; font-size: 16px; color: #3b3c3f; cursor: pointer; list-style: none; background: linear-gradient(#fff, #f7f7f7); }
.urunler summary::-webkit-details-marker { display: none; }
.urunler summary::after { content: "+"; font-size: 22px; line-height: 1; color: #d90d27; }
.urunler details[open] > summary { color: #fff; background: #bf182d; }
.urunler details[open] > summary::after { content: "\2212"; color: #fff; }
.urun-resimler { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 6px; }
.urun-resimler figure { margin: 0 0 8px; }
.urun-resimler img { display: block; border: 1px solid #ececec; }
.urun-resimler figcaption { font-size: 12px; text-align: center; color: #777; padding-top: 4px; max-width: 214px; }

/* harita ve iletişim */
.iletisim-bilgi p { font-size: 15px; }
.harita { margin: 8px 0 18px; }
.harita iframe { display: block; width: 100%; height: 450px; border: 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; align-items: center; justify-content: center;
      background: rgba(0, 0, 0, .92); color: #fff; touch-action: pan-y; }
.lb.lb-acik { display: flex; }
.lb-sahne { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1 1 auto; min-height: 0; padding: 56px 64px 8px; }
.lb-resim { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 1; transition: opacity .15s; box-shadow: 0 0 24px rgba(0, 0, 0, .6); }
.lb.lb-yukleniyor .lb-resim { opacity: 0; }
.lb-durum { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 15px; display: none; }
.lb.lb-yukleniyor .lb-durum, .lb.lb-hata .lb-durum { display: block; }
.lb-alt { flex: 0 0 auto; padding: 8px 16px 18px; text-align: center; font-size: 15px; line-height: 1.4; }
.lb-sayac { opacity: .7; margin-left: 8px; }
.lb-dugme { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 48px; text-align: center; cursor: pointer; padding: 0; }
.lb-dugme:hover, .lb-dugme:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fcc800; }
.lb-kapat { top: 10px; right: 12px; }
.lb-onceki { left: 8px; top: 50%; margin-top: -24px; }
.lb-sonraki { right: 8px; top: 50%; margin-top: -24px; }
.lb-tek .lb-onceki, .lb-tek .lb-sonraki, .lb-tek .lb-sayac { display: none; }

/* küçük ekranlar */
@media (max-width: 820px) {
    .alt-bloklar { grid-template-columns: repeat(2, 1fr); }
    .vitrin { grid-template-columns: 1fr; gap: 12px; }
    .vitrin-banner { max-width: 301px; margin: 0 auto 12px; }
    .bannerlar { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
    .marka-iz a, .marka-iz span { flex-basis: calc((100% - 30px) / 4); }
}
@media (max-width: 640px) {
    .menu-dugme { display: block; }
    .menu-liste { display: none; flex-direction: column; border-top: 1px solid #e3e3e3; }
    .menu.acik .menu-liste { display: flex; }
    .menu-liste a { height: 44px; }
    .alt-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 20px; min-width: 0; }
    .alt-bloklar { grid-template-columns: 1fr; gap: 20px; }
    .icerik { padding: 18px 14px 4px; }
    .icerik img.sol { float: none; display: block; margin: 0 0 12px; }
    .lb-sahne { padding: 56px 8px 8px; }
    .lb-onceki, .lb-sonraki { top: auto; bottom: 64px; margin-top: 0; background: rgba(0, 0, 0, .55); }
    .sosyal { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .slayt-kare, .lb-resim, .galeri img { transition: none; } }
