/* =========================================================
   KOCA AV BAYİ — GENEL CSS
   Ana renk: #243226
   Arka plan: #f5f5f2
   ========================================================= */


/* =========================================================
   GENEL
   ========================================================= */

body {
    background-color: #f5f5f2;
}

#PM_main {
    background-color: #f5f5f2;
    display: flex;
    flex-direction: column;
}

#PM_orta {
    background-color: #f5f5f2;
}


/* =========================================================
   BÖLÜM SIRALAMASI
   ========================================================= */

.main-banner {
    order: 1;
}

#PM_orta {
    order: 2;
}

.main_row {
    order: 3;
}

#PM_alt {
    order: 4;
}


/* =========================================================
   ÜST BAR
   ========================================================= */

.ustmenu {
    background: #243226 !important;
    min-height: 34px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ustmenu .container {
    min-height: 34px !important;
}

#ust_ana_menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

#ust_ana_menu li a {
    position: relative;
    color: rgba(255,255,255,0.82) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

#ust_ana_menu li a:hover {
    color: #ffffff !important;
}

#ust_ana_menu li a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -3px;

    width: 100%;
    height: 1px;

    background: #ffffff;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

#ust_ana_menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* =========================================================
   ANA HEADER
   ========================================================= */

.main-menu {
    background: #ffffff;
}

.main-menu > .py-4 {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

#menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: 220px !important;
    perspective: 600px;
}

.logo img {
    max-width: 190px !important;
    max-height: 70px !important;
    object-fit: contain !important;

    transition:
        transform 0.45s cubic-bezier(0.22,1,0.36,1),
        opacity 0.35s ease,
        filter 0.35s ease;
}

.logo a:hover img {
    transform:
        scale(1.035)
        rotate(-0.5deg);

    opacity: 0.92;

    filter:
        drop-shadow(0 5px 8px rgba(36,50,38,0.15));
}


/* =========================================================
   ARAMA
   ========================================================= */

.search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#urun_arama_form {
    width: 100% !important;
    max-width: none !important;
}

#urun_arama_form .input-group {
    width: 100%;
    height: 46px !important;

    display: flex !important;
    align-items: stretch !important;

    border: 2px solid #243226 !important;
    border-radius: 7px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

#urun_arama_form .input-group:focus-within {
    box-shadow:
        0 5px 20px rgba(36,50,38,0.12);

    transform: translateY(-1px);
}

#urun_arama_input {
    height: 42px !important;
    flex: 1 1 auto !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    margin: 0 !important;
    padding-left: 17px;

    font-size: 14px;
    box-sizing: border-box !important;

    transition: box-shadow 0.25s ease;
}

#urun_arama_input::placeholder {
    color: #8a908b;
}

#urun_arama_input:focus {
    border: 0 !important;

    box-shadow:
        0 0 0 3px rgba(36,50,38,0.08) !important;
}


/* =========================================================
   ARA BUTONU
   ========================================================= */

#search-btn {
    position: relative;
    overflow: hidden;

    height: 42px !important;
    min-height: 42px !important;
    min-width: 72px;

    margin: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #243226 !important;
    border-color: #243226 !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    box-sizing: border-box !important;

    font-weight: 700;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#search-btn:hover {
    background: #243226 !important;
    border-color: #243226 !important;

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px rgba(36,50,38,0.18);
}

#search-btn::before {
    content: "";

    position: absolute;
    top: 0;
    left: -100%;

    width: 55%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    );

    transform: skewX(-20deg);

    transition:
        left 0.5s ease;

    pointer-events: none;
}

#search-btn:hover::before {
    left: 140%;
}


/* =========================================================
   HESAP / SEPET
   ========================================================= */

.kullanici-btn {
    display: flex;
    align-items: center;

    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.kullanici-btn .grid {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.user.btn,
#sepet-btn {
    min-height: 44px !important;
    height: 44px !important;

    border-radius: 7px !important;

    white-space: nowrap !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   HESABIM
   ========================================================= */

.user.btn {
    position: relative;
    overflow: hidden;

    border: 1px solid #243226 !important;
    background: #ffffff !important;
    color: #243226 !important;
}

.user.btn svg {
    transition: transform 0.3s ease;
}

.user.btn:hover {
    background: #243226 !important;
    border-color: #243226 !important;
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(36,50,38,0.15);
}

.user.btn:hover svg {
    transform: translateY(-1px);
}

.user.btn:hover svg path {
    fill: #ffffff !important;
}

.user.btn::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #243226;

    transform: translateX(-50%);

    transition:
        width 0.3s ease;
}

.user.btn:hover::before {
    width: 70%;
}


/* =========================================================
   SEPET
   ========================================================= */

#sepet-btn {
    position: relative;
    overflow: hidden;

    background: #243226 !important;
    border: 1px solid #243226 !important;
    color: #ffffff !important;
}

#sepet-btn svg path,
#sepet-btn svg circle {
    fill: #ffffff !important;
}

#sepet-btn:hover {
    background: #243226 !important;
    border-color: #243226 !important;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(36,50,38,0.20);
}

#sepet-btn::before {
    content: "";

    position: absolute;
    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.16),
        transparent
    );

    transform: skewX(-20deg);

    transition:
        left 0.55s ease;

    pointer-events: none;
}

#sepet-btn:hover::before {
    left: 140%;
}

#sepet_bildirim {
    width: 20px;
    height: 20px;

    background: #ffffff;
    color: #243226 !important;

    border-radius: 50%;
    border: 2px solid #243226;

    font-weight: 800;
}


/* =========================================================
   KATEGORİ MENÜSÜ
   ========================================================= */

.top-menu {
    background: #243226 !important;

    min-height: 46px !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.08);
}

.top-menu .acilirmenu {
    min-height: 46px;
}

#PopupMenu1 {
    min-height: 46px;

    display: flex;
    align-items: stretch;

    gap: 0;
}

#PopupMenu1 > li {
    position: relative;
}

#PopupMenu1 > li > a {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 0 22px;

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        padding 0.25s ease;
}

#PopupMenu1 > li > a::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: rgba(255,255,255,0.035);

    transform: translateY(100%);

    transition:
        transform 0.3s cubic-bezier(0.22,1,0.36,1);

    pointer-events: none;
}

#PopupMenu1 > li:hover > a::before {
    transform: translateY(0);
}

#PopupMenu1 > li > a::after {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 0;

    height: 3px;

    background: #ffffff;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.3s ease;
}

#PopupMenu1 > li:hover > a {
    background: rgba(255,255,255,0.08);
    color: #ffffff !important;
}

#PopupMenu1 > li:hover > a::after {
    transform: scaleX(1);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

#PopupMenu1 li ul {
    border: none !important;

    background: #ffffff !important;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.15);

    border-radius: 0 0 7px 7px;

    overflow: hidden;
}

#PopupMenu1 li ul li a {
    color: #243226 !important;

    padding: 12px 18px;

    font-size: 12px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

#PopupMenu1 li ul li a:hover {
    background: #f1f4f1 !important;
    color: #243226 !important;

    padding-left: 23px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

ul[itemtype="https://schema.org/BreadcrumbList"] li:last-child,
ul[itemtype="https://schema.org/BreadcrumbList"] li:last-child a,
ul[itemtype="https://schema.org/BreadcrumbList"] li:last-child a * {
    color: #243226 !important;
}


/* =========================================================
   SATIN ALMA BUTONLARI
   ========================================================= */

#sepete_ekle_buton,
#hemenal_buton {
    background-color: #243226 !important;
    border-color: #243226 !important;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#sepete_ekle_buton:hover,
#hemenal_buton:hover {
    background-color: #243226 !important;
    border-color: #243226 !important;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(36,50,38,0.20);
}


/* =========================================================
   FOOTER
   ========================================================= */

.pm_telif {
    background-color: #243226 !important;
}

.copyright_row .col.d-flex {
    font-size: 0;
}

.copyright_row .col.d-flex::before {
    content:
        "KocaAvBayi.com © Copyright 2026 - Tüm Hakları Saklıdır.";

    font-size: 14px;
    color: inherit;
}


/* =========================================================
   FOOTER DÜZENİ
   ========================================================= */

.site_telif .telifmain {
    position: relative !important;

    width: 1215px !important;
    max-width: calc(100% - 40px) !important;

    margin: 0 auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

.site_telif .alt-menuler {
    margin-left: 0 !important;
    margin-right: 0 !important;

    padding: 28px 0 8px !important;

    align-items: flex-start !important;
}

.site_telif .alt-menuler > div {
    padding-left: 18px !important;
    padding-right: 18px !important;

    box-sizing: border-box !important;

    margin-bottom: 0 !important;
}


/* =========================================================
   FOOTER SOL AÇIKLAMA
   ========================================================= */

.site_telif .social {
    padding-left: 0 !important;
    padding-right: 45px !important;
}

.site_telif .social p {
    margin: 0 !important;

    color: #68716b !important;

    font-size: 13px !important;
    line-height: 1.6 !important;
}


/* =========================================================
   FOOTER BAŞLIKLARI
   ========================================================= */

.site_telif .footer_baslik {
    margin-bottom: 15px !important;
}

.site_telif .footer_baslik span {
    color: #243226 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}


/* =========================================================
   FOOTER LINKLERİ
   ========================================================= */

.site_telif .alt-menuler ul {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.site_telif .alt-menuler ul li {
    margin: 0 0 9px !important;
    padding: 0 !important;
}

.site_telif .alt-menuler ul li:last-child {
    margin-bottom: 0 !important;
}

.site_telif .alt-menuler ul li a,
.site_telif .alt-menuler ul li a span {
    color: #68716b !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease !important;
}

.site_telif .alt-menuler ul li a:hover,
.site_telif .alt-menuler ul li a:hover span {
    color: #243226 !important;
}


/* =========================================================
   FOOTER KOLONLARI
   ========================================================= */

.site_telif .d_kat,
.site_telif .d_sol,
.site_telif .d_sag,
.site_telif .d_son {
    min-height: 125px !important;
}


/* =========================================================
   INSTAGRAM
   ========================================================= */

.site_telif .instagram {
    display: flex !important;

    width: 38px !important;
    height: 38px !important;

    margin: 18px auto 12px !important;
    padding: 8px !important;

    align-items: center !important;
    justify-content: center !important;

    color: #243226 !important;

    background: transparent !important;

    border: 1px solid #dfe4df !important;

    box-shadow: none !important;

    transition:
        all 0.25s ease !important;
}

.site_telif .instagram svg {
    width: 20px !important;
    height: 20px !important;

    fill: currentColor !important;
}

.site_telif .instagram:hover {
    color: #ffffff !important;

    background: #243226 !important;
    border-color: #243226 !important;

    transform: translateY(-2px) !important;
}


/* =========================================================
   FOOTER YÜKSEKLİĞİ
   ========================================================= */

.site_telif {
    padding-bottom: 0 !important;
}

.site_telif .telifmain > .social,
.site_telif .telifmain > a,
.site_telif .telifmain > div:not(.alt-menuler) {
    margin-top: 0 !important;
}


/* =========================================================
   GENEL LINK
   ========================================================= */

a {
    transition:
        color 0.2s ease;
}


/* =========================================================
   ANA ANİMASYON
   ========================================================= */

@keyframes kocaFadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) and (min-width: 768px) {

    #menu {
        gap: 15px !important;
    }

    .logo {
        width: 170px !important;
    }

    .logo img {
        max-width: 160px !important;
    }

    .site_telif .telifmain {
        max-width: calc(100% - 30px) !important;
    }

    .site_telif .alt-menuler {
        padding-top: 25px !important;
        padding-bottom: 20px !important;
    }

    .site_telif .social {
        padding-right: 20px !important;
    }

}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 767px) {

    .main-menu > .py-4 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    #menu {
        gap: 10px !important;
    }

    .logo {
        width: auto !important;
    }

    .logo img {
        max-width: 145px !important;
        max-height: 55px !important;
    }

    #urun_arama_form .input-group {
        height: 42px !important;
    }

    #urun_arama_input,
    #search-btn {
        height: 42px !important;
    }

    #PopupMenu1 {
        display: none;
    }

    .site_telif .telifmain {
        width: 100% !important;
        max-width: 100% !important;

        padding: 0 15px !important;
    }

    .site_telif .alt-menuler {
        margin: 0 !important;

        padding: 25px 0 15px !important;
    }

    .site_telif .alt-menuler > div {
        padding-left: 8px !important;
        padding-right: 8px !important;

        margin-bottom: 25px !important;
    }

    .site_telif .social {
        padding-right: 8px !important;
    }

    .site_telif .d_kat,
    .site_telif .d_sol,
    .site_telif .d_sag,
    .site_telif .d_son {
        min-height: auto !important;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}

/* ===================================================
   FOOTER — MARKA RENGİ (KOYU YEŞİL) UYUMU
   =================================================== */
.site_telif {
  background-color: #243226 !important;
}
.site_telif,
.site_telif p {
  color: #d9d9d9 !important;
}
.site_telif .footer_baslik {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.site_telif a {
  color: #cfd9d3 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.site_telif a:hover {
  color: #4D9668 !important;
}
.copyright_row {
  background-color: #1a241c !important;
}


/* ===================================================
   SAYFALAMA (PAGINATION) — MARKA RENGİ
   =================================================== */
.urunler_alt a {
  color: #243226 !important;
}
.sayfalama_secili_sayfa {
  background-color: #243226 !important;
  border-color: #243226 !important;
  color: #ffffff !important;
}

/* ===================================================
   ANA SAYFA GÜVEN İKONLARI — MARKA RENGİ
   =================================================== */
.infoarea_icon svg path,
.infoarea_icon svg circle,
.infoarea_icon svg rect,
.infoarea_icon svg polygon {
  fill: #243226 !important;
}

/* ===================================================
   KATEGORİ SAYFASI BAŞLIK (H1) — BÜYÜTME
   =================================================== */
ul[itemtype="https://schema.org/BreadcrumbList"] h1 {
  font-size: 26px !important;
  display: inline-block;
}

/* ===================================================
   ÜRÜN DETAY SEKMELERİ — TUTARLI PILL STİLİ
   =================================================== */
.urun_detay_tablar_ul li a {
  border: 1px solid transparent !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
  transition: all 0.15s ease;
}
.urun_detay_tablar_ul li.active a {
  border-color: #4D9668 !important;
  background-color: rgba(77, 150, 104, 0.15) !important;
}
.urun_detay_tablar_ul li:not(.active) a {
  opacity: 0.75;
}
.urun_detay_tablar_ul li:not(.active) a:hover {
  opacity: 1;
  border-color: rgba(77, 150, 104, 0.4) !important;
}


/* ===================================================
   ÜRÜN KARTI HOVER FOTOĞRAF KAYMASI DÜZELTMESİ
   Sebep: hover'da görünen ikinci fotoğraf, kutunun
   10px'lik iç boşluğunu (padding) hesaba katmıyordu
   =================================================== */
[class*="urun_resmi_"] img.image2 {
  top: 10px !important;
  left: 10px !important;
  width: calc(100% - 20px) !important;
  height: calc(100% - 20px) !important;
}


/* ===================================================
   DÜZELTME: Seçili sayfa numarası görünmezlik sorunu
   Sebep: .urunler_alt a kuralı, .sayfalama_secili_sayfa
   kuralının beyaz yazı rengini eziyordu (aynı özgüllük,
   sonraki kural kazanıyordu) -> yeşil yazı yeşil zeminde
   kayboluyordu. Daha yüksek özgüllükle kalıcı çözüm:
   =================================================== */
.urunler_alt a.sayfalama_secili_sayfa {
  color: #ffffff !important;
}


/* ===================================================
   SAYFALAMA HOVER OKUNABİLİRLİK DÜZELTMESİ
   (hover'da yazı arka planla aynı renkte kalıp
   kayboluyordu, garanti kontrast sağlanıyor)
   =================================================== */
.urunler_alt a:hover {
  color: #243226 !important;
  background-color: rgba(36, 50, 38, 0.12) !important;
}
.urunler_alt a.sayfalama_secili_sayfa,
.urunler_alt a.sayfalama_secili_sayfa:hover {
  background-color: #243226 !important;
  border-color: #243226 !important;
  color: #ffffff !important;
}


/* ===================================================
   ARAMA KUTUSU "ARA" BUTONU — YUVARLAK KÖŞE UYUMU
   =================================================== */
.input-group {
  overflow: hidden;
}
.input-group-append .btn {
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  transition: background-color 0.15s ease;
}
.input-group-append .btn:hover {
  background-color: #1a241c !important;
}


/* ===================================================
   LOGO HOVER HAREKETİNİN KALDIRILMASI
   (fare üzerine gelince büyüyüp hafifçe dönüyordu,
   sabit kalması isteniyor)
   =================================================== */
.logo img,
.logo img:hover,
.logo a:hover img,
.logo a img {
  transform: none !important;
}


/* ===================================================
   LOGO HAREKETİ — GENİŞ KAPSAMLI KESİN ÇÖZÜM
   =================================================== */
.logo, .logo *, .logo *:hover, .logo:hover, .logo:hover * {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}


/* ===================================================
   LOGO ÇEVRESİNDEKİ HOVER EFEKTİNİN TAMAMEN KALDIRILMASI
   =================================================== */
.logo, .logo *, .logo:hover, .logo:hover *, .logo *:hover, .logo a:focus, .logo img:focus {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  background: none !important;
  background-color: transparent !important;
}


/* ===================================================
   ARA BUTONU — HOVER EFEKTİNİN KALDIRILMASI
   =================================================== */
.input-group-append .btn,
.input-group-append .btn:hover,
.input-group-append .btn:focus,
.input-group-append .btn:active {
  background-color: #243226 !important;
  border-color: #243226 !important;
  color: #ffffff !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}


/* ===================================================
   ÜRÜN FOTOĞRAFI HOVER KAYMASI — GENİŞLETİLMİŞ DÜZELTME
   (Ana sayfa carousel'lerinde kutu kare olmadığı için
   önceki düzeltme oranı bozuyordu, şimdi oran korunarak
   ortalanıyor — hem kare hem dikdörtgen kutularda çalışır)
   =================================================== */
[class*="urun_resmi_"] img.image2 {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 20px) !important;
  max-height: calc(100% - 20px) !important;
  margin: auto !important;
}


/* ===================================================
   ÜRÜN FOTOĞRAFI HOVER KAYMASI — KESİN ÇÖZÜM
   (boyut kısıtlamalarına dokunulmuyor, temanın kendi
   max-height/max-width kuralı ikisinde de aynı şekilde
   çalışsın diye override kaldırıldı, sadece ortalama
   pozisyonu düzeltiliyor)
   =================================================== */
[class*="urun_resmi_"] img.image2 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 225px !important;
}


/* ===================================================
   ÜRÜN KARTI HOVER'DA YUKARI KALKMA + GÖLGE (BAR) EFEKTİ
   KALDIRILDI — sabit duracak
   =================================================== */
.urun,
.urun:hover {
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
}
