@charset "UTF-8";

/* =====================================================================
 * PromoLife  |  softiga-mobile.css
 * Yerlesim  : assets/css/softiga-mobile.css
 * ---------------------------------------------------------------------
 * Bu dosya mevcut CSS dosyalarindan HICBIRINI degistirmez. Tum stiller
 * en son yuklendigi icin sadece gerekli noktalarda devreye girer.
 *
 * ONEMLI: Masaustu gorunumu korunmustur. Neredeyse tum kurallar
 * @media sorgulari icindedir; 992px ve uzeri ekranlarda site birebir
 * eskisi gibi calisir.
 *
 * ICINDEKILER
 *   01. Genel dokunmatik / tasma duzeltmeleri
 *   02. Tablet duzeni (576px - 991px)
 *   03. Header - logo, arama, ust bilgi seridi
 *   04. Menu - offcanvas, dropdown, kategoriler
 *   05. Anasayfa - slider, banner, kategori kartlari
 *   06. Urun listeleme kartlari
 *   07. Urun detay
 *   08. Tablolar / fiyat listeleri
 *   09. Formlar ve butonlar
 *   10. Modal pencereler
 *   11. Footer ve alt sabit mobil bar
 *   12. Ince ayarlar (<=400px) ve yatay ekran
 * ===================================================================== */


/* =====================================================================
 * 01. GENEL - DOKUNMATIK VE TASMA DUZELTMELERI
 * ===================================================================== */

@media (max-width: 991.98px) {

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Hicbir gorsel/video/cerceve ekrandan tasmaz */
    img,
    svg,
    video,
    iframe,
    canvas,
    embed,
    object {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    /* Uzun urun kodu / link metinleri satir kirar, tasma yapmaz */
    h1, h2, h3, h4, h5, h6,
    p, a, li, td, th, span, div.card-body {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Bootstrap satir bosluklarindan kaynakli yatay kaydirma engeli */
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Kaydirilabilir alanlarda iOS akiskan kaydirma */
    .sf-scroll-x {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* =====================================================================
 * 02. TABLET DUZENI (576px - 991px)
 * ---------------------------------------------------------------------
 * Anasayfadaki sol kategori kolonu "col-lg-3 d-none d-sm-block" oldugu
 * icin 576px-991px arasinda TAM GENISLIK kaplayip slider'i ekranin cok
 * asagisina itiyordu. Bu aralikta gizlenir; kategorilere alt sabit
 * bardaki "Kategoriler" butonundan ve ust menuden erisilir.
 * ===================================================================== */

@media (max-width: 991.98px) {

    main > section .col-lg-3.d-none.d-sm-block {
        display: none !important;
    }
}


/* =====================================================================
 * 03. HEADER
 * ===================================================================== */

@media (max-width: 991.98px) {

    /* Ust bilgi seridi (telefon / e-posta) */
    header .bg_pl_light_blue.py-2 {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    header .bg_pl_light_blue.py-2 a {
        font-size: 12.5px;
        line-height: 1.7;
        display: inline-block;
    }

    /* Logo alani - sabit 230px genislik kucuk ekranda tasiyordu */
    .navbar-brand {
        max-width: 62%;
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar-brand img {
        width: 200px !important;
        max-width: 100%;
        height: auto;
    }

    /* Preloader logosu */
    #preloader .loading_wrap img {
        width: 210px !important;
        max-width: 62vw;
        height: auto;
    }

    /* Hamburger butonu - dokunma hedefi buyutuldu */
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
    }

    /* Arama alani */
    .fixed-header {
        padding-top: 10px !important;
        padding-bottom: 6px !important;
    }

    .header_padding_pc {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #header_search_query {
        height: 44px !important;
        font-size: 16px !important; /* iOS'ta odaklaninca zoom yapmasini engeller */
    }

    .btn_header_search {
        height: 44px !important;
        width: 52px !important;
    }
}

@media (max-width: 575.98px) {

    header .bg_pl_light_blue.py-2 .col-12 {
        line-height: 1.9;
    }

    header .bg_pl_light_blue.py-2 a {
        font-size: 12px;
    }

    .navbar-brand img {
        width: 180px !important;
    }
}


/* =====================================================================
 * 04. MENU - OFFCANVAS / DROPDOWN / KATEGORILER
 * ===================================================================== */

@media (max-width: 991.98px) {

    /* Bootstrap varsayilani 400px'dir; 360px'lik telefonlarda tasiyordu */
    .offcanvas-start {
        width: 86% !important;
        max-width: 340px;
    }

    .offcanvas {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .offcanvas .btn-close {
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobil kategori listesi cok uzun oldugundan kendi icinde kayar */
    #collapseExample .card-body {
        max-height: 58vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
    }

    /* Dokunma hedefleri */
    .offcanvas .nav-link,
    .offcanvas .dropdown-item,
    #collapseExample .dropdown-item {
        padding-top: 10px;
        padding-bottom: 10px;
        white-space: normal;
        line-height: 1.35;
    }

    .offcanvas .dropdown-menu {
        max-height: 55vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #dfe2e1;
        box-shadow: none;
    }

    .a_header_category {
        font-size: 14px;
    }
}


/* =====================================================================
 * 05. ANASAYFA - SLIDER / BANNER / KATEGORI KARTLARI
 * ===================================================================== */

@media (max-width: 991.98px) {

    .owl-carousel .banner img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 575.98px) {

    /* Alt banner alani ("col-4 col-lg-4") telefonlarda 3'e bolununce
       okunamayacak kadar kuculuyordu; tam genislige alindi. */
    .col-4.col-lg-4 {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Kategori kartlari (2'li dizilim korunur) */
    .category_list_title {
        height: 42px;
        padding-top: 11px;
    }

    .category_list_title h5 {
        font-size: 13.5px !important;
        line-height: 16px !important;
    }

    main > section.mt-6 {
        margin-top: 1rem !important;
    }
}


/* =====================================================================
 * 06. URUN LISTELEME KARTLARI
 * ---------------------------------------------------------------------
 * Urun kartlari "col-12 col-sm-X col-md-X" oldugu icin telefonda ALT
 * ALTA TEK TEK diziliyordu; listeyi gezmek cok zordu. softiga-compat.js
 * kartin ust kutusuna "sf-product-col" sinifini ekler ve burada 2'li
 * dizilim uygulanir. Masaustu duzeni etkilenmez.
 * ===================================================================== */

@media (max-width: 575.98px) {

    .sf-product-col {
        flex: 0 0 auto;
        width: 50%;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 8px;
    }

    .sf-product-col .card-body {
        padding: 8px !important;
    }

    .sf-product-col .img_product_list {
        margin-top: 12px !important;
    }

    .sf-product-col h2.fs-6 {
        font-size: 12.5px !important;
        line-height: 16px;
        max-height: 32px;
        overflow: hidden;
        margin-bottom: 4px;
    }

    .sf-product-col .text-small {
        font-size: 12px !important;
    }

    .sf-product-col .btn,
    .sf-product-col .badge {
        font-size: 11.5px !important;
        padding: 7px 6px !important;
        white-space: normal;
        line-height: 1.25;
    }

    /* Marka listesi ("width_percent_18") telefonda 18% cok kucuktu */
    .width_percent_18 {
        width: 45% !important;
        margin: 6px !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .width_percent_18 {
        width: 30% !important;
    }
}


/* =====================================================================
 * 07. URUN DETAY
 * ===================================================================== */

@media (max-width: 991.98px) {

    main section.col-lg-9 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Galeri / buyuk gorsel */
    .fancybox-content,
    .product-image-slider img,
    .product-single img {
        max-width: 100%;
        height: auto;
    }

    /* Adet-fiyat kutulari ve aksiyon butonlari alt alta rahat sigsin */
    .card-body .row > [class*="col-"] {
        margin-bottom: 6px;
    }

    /* Sekmeler yatay kayabilsin */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
    }
}


/* =====================================================================
 * 08. TABLOLAR / FIYAT LISTELERI
 * ===================================================================== */

@media (max-width: 991.98px) {

    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper table,
    .sf-scroll-x > table {
        min-width: 520px;
    }

    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        float: none !important;
        text-align: left !important;
        width: 100%;
    }

    .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        height: 42px;
        font-size: 16px !important;
    }

    .dataTables_paginate .paginate_button {
        padding: 8px 12px !important;
        min-height: 40px;
    }

    table td,
    table th {
        font-size: 13px;
    }
}


/* =====================================================================
 * 09. FORMLAR VE BUTONLAR
 * ===================================================================== */

@media (max-width: 991.98px) {

    /* 16px altindaki yazi boyutu iOS Safari'de sayfayi otomatik
       yakinlastirir. Bu deger zoom sorununu tamamen ortadan kaldirir. */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    textarea.form-control {
        min-height: 96px;
    }

    /* Dokunma hedefi standardi */
    .btn {
        min-height: 42px;
        white-space: normal;
    }

    .btn-sm {
        min-height: 36px;
    }

    /* Yan yana sigmayan buton gruplari alt alta gecsin */
    .btn-group-mobile-stack .btn {
        width: 100%;
        margin-bottom: 6px;
    }

    label {
        margin-bottom: 4px;
    }
}


/* =====================================================================
 * 10. MODAL PENCERELER
 * ===================================================================== */

@media (max-width: 767.98px) {

    .modal-dialog {
        margin: 8px auto;
        max-width: calc(100% - 16px);
    }

    .modal-content {
        border-radius: 10px;
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-header .btn-close {
        min-width: 44px;
        min-height: 44px;
    }

    .modal-body {
        padding: 12px 14px !important;
        max-height: 76vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 10px 14px;
    }

    .modal-footer .btn {
        flex: 1 1 auto;
    }

    /* PNotify bildirimleri ekrani asmasin */
    .ui-pnotify {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
    }
}


/* =====================================================================
 * 11. FOOTER VE ALT SABIT MOBIL BAR
 * ===================================================================== */

@media (max-width: 575.98px) {

    /* Alt sabit bar - iPhone alt cubugu (safe-area) hesaba katilir */
    .sf-mobile-bottombar {
        height: auto !important;
        min-height: 50px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        z-index: 1035 !important;
    }

    .sf-mobile-bottombar > div {
        padding-left: 2px;
        padding-right: 2px;
    }

    .sf-mobile-bottombar a {
        display: block;
        min-height: 42px;
    }

    /* Icerigin alt barin altinda kalmamasi icin ek bosluk */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    footer.footer {
        padding-bottom: 70px !important;
    }

    footer .row > [class*="col-"] {
        margin-bottom: 14px;
    }

    footer h5,
    footer .h5 {
        font-size: 15px;
    }

    footer a,
    footer p,
    footer li {
        font-size: 13.5px;
    }

    /* Yukari cik butonu alt barin uzerinde kalsin */
    #scroll-to-top {
        bottom: 58px !important;
        right: 12px !important;
        padding: 12px 14px;
        border-radius: 10px;
    }
}


/* =====================================================================
 * 12. INCE AYARLAR (<=400px) VE YATAY EKRAN
 * ===================================================================== */

@media (max-width: 400px) {

    .navbar-brand img {
        width: 155px !important;
    }

    .category_list_title h5 {
        font-size: 12.5px !important;
    }

    .sf-product-col h2.fs-6 {
        font-size: 12px !important;
    }

    .sf-mobile-bottombar .fs_12 {
        font-size: 10.5px !important;
    }

    header .bg_pl_light_blue.py-2 a {
        font-size: 11.5px;
    }
}

/* Telefon yatay konumda: alt sabit bar ve preloader ekrani kaplamasin */
@media (max-width: 915.98px) and (orientation: landscape) {

    #preloader .loading_wrap img {
        width: 170px !important;
    }

    .offcanvas .dropdown-menu,
    #collapseExample .card-body {
        max-height: 46vh;
    }

    .modal-body {
        max-height: 64vh;
    }
}
