/* ========================================================
   SEXSHOP ORGANİK TEMA - MOBİL UYGULAMA HİSSİ
   Native App Experience — Clean, Minimal, Fast
   ======================================================== */

/* ====== DESKTOP (min 1650px) ====== */
@media only screen and (min-width: 1650px) {}

/* ====== LAPTOP (max 1366px) ====== */
@media only screen and (max-width: 1366px) {
    .main-header-navigation a { font-size: 13px; }
}

/* ====== SMALL LAPTOP (max 1280px) ====== */
@media only screen and (max-width: 1280px) {
    .nav-menu-wrap .menu li { padding-left: 7.5px; padding-right: 7.5px; }
    .nav-menu-wrap .menu li a { font-size: 13px; }
    .section-main-slider [style="max-width: 965px;"] {
        max-width: 100% !important; flex: 1 1 100%; margin-bottom: 16px; padding: 0px 16px;
    }
    .section-main-slider [style="max-width: 965px;"] img { width: 100%; }
    [data-slick="product-slick"] .slick-prev { left: 0px; }
    [data-slick="product-slick"] .slick-next { right: 0px; }
    [data-slick="product-slick"] .slick-arrow { background-color: #fff; }
}

/* ====== TABLET (max 1024px) ====== */
@media only screen and (max-width: 1024px) {
    .zoomContainer { display: none !important; }
    nav.header-user-wrap a span b { display: none; }
    .product-detail-meta-button div button { padding: 6px 15px; }
    .section-main-slider .col-sm-3 { display: none; }
    .section-main-slider .col-sm-9 { flex: 0 0 100%; max-width: 100%; }
}


/* ========================================================
   ★★★ MOBİL UYGULAMA DENEYİMİ (max 768px) ★★★
   ======================================================== */
@media only screen and (max-width: 768px) {

    /* ──────── GENEL SIFIRLAMA ──────── */
    body { padding-bottom: 70px; } /* Bottom nav için alan */
    body::after { display: none; } /* Glow efekti kaldır */
    .container { padding: 0 12px; }

    /* ──────── TOP BAR: TAMAMEN GİZLE ──────── */
    .section-header-top { display: none !important; }

    /* ──────── HEADER: KOMPAKT APP BAR ──────── */
    .header-wrap {
        position: sticky;
        top: 0;
        z-index: 900;
        background: #000;
        border-bottom: 1px solid #1a1a1a;
    }

    .section-header-user {
        padding: 10px 0;
    }

    .section-header-user .row {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    /* Logo & Mobile Actions */
    .section-header-user .col-sm-3 {
        flex: 1;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    a.header-logo {
        margin: 0;
        display: flex;
        align-items: center;
    }

    a.header-logo img {
        max-height: 40px;
        width: auto;
    }

    .mobile-header-actions {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .mobile-header-actions a {
        color: #fff;
        line-height: 1;
        display: flex;
        align-items: center;
    }

    .mobile-header-actions a svg {
        width: 22px;
        height: 22px;
        color: #fff;
    }

    /* Arama çubuğu: TAMAMEN GİZLE (bottom nav'dan açılacak) */
    .section-header-user .col-sm-6 {
        display: none !important;
    }

    /* Üst navigasyon: TAMAMEN GİZLE (bottom nav var) */
    .header-user-wrap {
        display: none !important;
    }

    .section-header-user .col-sm-4 {
        display: none !important;
    }

    .section-header-user .col-sm-12.d-none {
        display: none !important;
    }

    /* ──────── NAVİGASYON: TAMAMEN GİZLE ──────── */
    .main-header-navigation { display: none !important; }
    .main-header-whatsapp { display: none !important; }

    /* ──────── SLIDER: TAM GENİŞLİK ──────── */
    .section-main-slider .col-sm-3 { display: none !important; }
    .section-main-slider .col-sm-9 { flex: 0 0 100%; max-width: 100%; padding: 0; }
    .section-main-slider .col-sm-9 > div:first-child { display: none; }

    [data-slick="main-slick"] {
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    [data-slick="main-slick"] a img {
        border-radius: 12px;
    }

    /* ──────── SECURE LABEL: KOMPAKT ──────── */
    .secure-label {
        font-size: 16px;
        margin: 20px 0;
        padding: 16px;
        background: linear-gradient(135deg, #0a0a0a 0%, #120008 100%);
        border: 1px solid #1a0008;
        border-radius: 12px;
    }

    .secure-label p {
        margin: 0;
    }

    .secure-label p small {
        font-size: 12px;
        display: block;
        margin-top: 6px;
        opacity: 0.7;
    }

    /* ──────── META İKONLAR: YATAY SCROLL (APP STİLİ) ──────── */
    .main-meta-container {
        border: none;
        border-radius: 0;
        padding: 15px 0;
        overflow: hidden;
    }

    .main-meta-container .row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0 5px;
    }

    .main-meta-container .row::-webkit-scrollbar { display: none; }

    .main-meta-container .col-2 {
        flex: 0 0 100px;
        max-width: 100px;
        min-width: 100px;
        padding: 0 4px;
    }

    .main-meta-item {
        background: #0d0d0d;
        border: 1px solid #1a1a1a;
        border-radius: 12px;
        padding: 12px 6px;
    }

    .main-meta-item img {
        width: 36px;
        height: 36px;
        box-shadow: none;
    }

    .main-meta-item p span {
        font-size: 9px;
        margin: 6px 0 2px;
        font-weight: 600;
    }

    .main-meta-item p small { display: none; }

    /* ──────── BANNER'LAR: TAM GENİŞLİK ──────── */
    .section-main-slider .col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
        padding: 0 4px;
    }

    .section-main-slider .col-sm-4 .spbanner img,
    .section-main-slider .col-sm-12 .spbanner img {
        border-radius: 10px;
    }

    .section-main-slider .col-sm-12.mt-5.mb-5 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }

    /* ──────── ÜRÜN SECTION BAŞLIK: APP STİLİ ──────── */
    .section-main-product header {
        padding: 0 4px;
    }

    .section-main-product header h3 {
        font-size: 16px;
        margin-bottom: 0;
    }

    .section-main-product header h3 span {
        font-size: 14px;
    }

    .section-main-product header img {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    /* ──────── ÜRÜN KARTLARI: APP CARD STİLİ ──────── */
    .col-product-item {
        border-radius: 12px;
        border-color: #1a1a1a;
        margin-bottom: 10px;
        transition: none; /* Mobilde hover animasyonu gereksiz */
    }

    .col-product-item .col-product-item-title {
        padding: 6px 8px;
    }

    .col-product-item .col-product-item-title a {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .col-product-item .col-product-item-price {
        padding: 0 8px 8px;
        gap: 5px;
    }

    .col-product-item .col-product-item-price div:nth-child(1) {
        padding: 4px 5px;
        font-size: 14px;
        border-radius: 6px;
    }

    .col-product-item .col-product-item-price div:nth-child(2) del {
        font-size: 11px;
    }

    .col-product-item .col-product-item-price div:nth-child(2) ins {
        font-size: 16px;
    }

    .col-product-item .col-product-item-footer div:nth-child(2) {
        padding: 6px 8px;
    }

    .col-product-item .col-product-item-footer div:nth-child(2) button {
        padding: 8px 0;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .col-product-item .col-product-item-image-content div {
        font-size: 10px;
        border-radius: 6px;
        top: 8px;
        left: 8px;
        padding: 3px 6px;
    }

    /* Ürün adet input gizle (mobilde gereksiz) */
    .col-product-item .col-product-item-footer div:nth-child(1) {
        display: none;
    }

    /* ──────── V2 ÜRÜN TAB NAV: APP STİLİ ──────── */
    section.section-main-product.v2 nav {
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    section.section-main-product.v2 nav:before { display: none; }

    section.section-main-product.v2 nav a {
        font-size: 14px;
        white-space: nowrap;
        padding: 8px 16px;
        border: 1px solid #222;
        border-radius: 20px;
        flex-shrink: 0;
    }

    /* ──────── V2 ÜRÜN GRID: 2 SÜTUN ──────── */
    .section-main-product.v2 footer .col-sm-15 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 4px;
    }

    /* ──────── BLOG: KOMPAKT ──────── */
    .blog-post-item .blog-title {
        font-size: 14px;
        height: auto;
        margin: 10px 0;
    }

    .blog-post-item .blog-description { display: none; }

    .blog-post-item .blog-image img {
        border-radius: 10px;
        padding: 3px;
    }

    /* ──────── FOOTER: MOBİL UYGULAMA STİLİ ──────── */
    footer.footer-container {
        margin: 20px 0 0;
        padding: 25px 0 90px; /* Bottom nav boşluğu */
    }

    /* Footer logo bölümü: kompakt */
    .section-footer-container > .container > .row > .col-sm-3 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .section-footer-container .footer-logo img {
        max-height: 75px;
        margin-bottom: 10px;
    }

    .section-footer-container .footer-label-1 {
        font-size: 14px !important;
        margin-bottom: 4px;
    }

    .section-footer-container .ooter-label-2,
    .section-footer-container .footer-label-2 {
        font-size: 12px;
        color: #666;
        margin-bottom: 12px;
    }

    /* Newsletter form: kompakt ve temiz */
    .section-footer-container form {
        background: #0d0d0d;
        border: 1px solid #1a1a1a;
        border-radius: 12px;
        padding: 14px;
        margin-top: 10px;
    }

    .section-footer-container form span:nth-child(1) {
        font-size: 13px !important;
        display: block;
        margin-bottom: 2px;
    }

    .section-footer-container form span:nth-child(2) {
        font-size: 11px !important;
        display: block;
        color: #666;
        margin-bottom: 10px;
    }

    .section-footer-container form div {
        display: flex;
        gap: 8px;
    }

    .section-footer-container form div input {
        flex: 1;
        font-size: 13px !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }

    .section-footer-container form div button {
        padding: 10px 18px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap;
    }

    /* Footer menü sütunları: ACCORDION */
    .section-footer-container > .container > .row > .col-sm-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 12px;
    }

    .section-footer-container .col-sm-9 .row {
        margin: 0;
    }

    .section-footer-container .col-sm-9 .row .col-sm-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: 0;
        text-align: left;
        border-bottom: 1px solid #1a1a1a;
    }

    .section-footer-container .col-sm-9 .row .col-sm-3:last-child {
        border-bottom: none;
    }

    /* Accordion başlık */
    .section-footer-container h6 {
        font-size: 13px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #fff;
        margin: 0 !important;
        padding: 14px 0;
        border-bottom: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .section-footer-container h6::after {
        content: "+";
        font-size: 20px;
        font-weight: 300;
        color: #555;
        transition: transform 0.25s;
        line-height: 1;
    }

    .section-footer-container .accordion-open h6::after {
        content: "−";
        color: #cc003d;
    }

    /* Liste varsayılan gizli */
    .section-footer-container .col-sm-9 ul {
        display: none;
        padding: 0 0 12px;
        margin: 0;
        list-style: none;
    }

    .section-footer-container ul li a {
        font-size: 13px !important;
        line-height: 32px !important;
        color: #888;
        display: block;
        padding-left: 0;
    }

    .section-footer-container ul li a:hover {
        color: #cc003d;
    }
    section.section-footer-copyright {
        padding: 15px 0 10px;
    }

    section.section-footer-copyright::after {
        height: 300px;
    }

    section.section-footer-copyright img {
        max-width: 85%;
        height: auto;
        opacity: 0.7;
    }

    section.section-footer-copyright hr {
        margin: 10px 0;
    }

    section.section-footer-copyright p {
        font-size: 11px;
        color: #555;
    }

    /* ──────── BREADCRumb & İÇ SAYFALAR ──────── */
    nav.breadcrumb-wrap {
        margin: 0;
        padding: 10px 0;
        font-size: 12px;
    }

    .sidebar-box { display: none; }

    .col-xl-3.col-lg-3 { display: none; }
    .col-xl-9.col-lg-9 { flex: 0 0 100%; max-width: 100%; }

    .product-area-box-left,
    .product-area-box-right {
        max-width: 100%;
        flex: 1 1 100%;
        width: 100%;
        padding: 0px 8px 15px;
    }

    /* Tablo responsive */
    table.sepet {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.sepet th, table.sepet td {
        white-space: nowrap;
        font-size: 12px;
    }

    /* Slick arrow'lar küçük */
    .section-main-product .slick-arrow,
    .section-main-blog .slick-arrow {
        width: 32px;
        line-height: 32px;
        height:32px;
        font-size: 18px;
        border-radius: 50%;
    }

    /* Ürün sıralama filtre */
    .product-order-filter {
        flex-wrap: wrap;
        margin: 15px 0;
    }

    .product-order-filter > div:nth-child(1) {
        flex-wrap: wrap;
        font-size: 11px;
    }

    /* Widget & kategori filter */
    .widget-boxed, .category-sticky {
        margin: 10px 0;
        padding: 12px;
        border-radius: 10px;
    }

    /* Drop menu (ana sayfadaki kategori listesi) gizle */
    .drop-menu { display: none !important; }
}


/* ========================================================
   ★★★ KÜÇÜK MOBİL (max 414px) ★★★
   ======================================================== */
@media only screen and (max-width: 414px) {
    a.header-logo img {max-height: 50px;}

    .section-main-product.v2 footer .col-sm-15 {
        padding: 0 3px;
    }

    .col-product-item .col-product-item-price div:nth-child(2) ins {
        font-size: 14px;
    }

    .col-product-item .col-product-item-price div:nth-child(2) del {
        font-size: 10px;
    }

    .col-product-item .col-product-item-footer div:nth-child(2) button {
        font-size: 11px;
        padding: 7px 0;
    }
}


/* ========================================================
   ★★★ MOBİL BOTTOM NAVİGASYON BARI ★★★
   iOS / Android Uygulama Tarzı
   ======================================================== */
.mobile-bottom-nav {
    display: none; /* Desktop'ta gizli */
}

@media only screen and (max-width: 768px) {

    .section-header-user .col-sm-6 + .col-sm-3{display:none}
    .mobile-sticky-action {
        display: flex;
        position: fixed;
        bottom: 0px;
        left: 0;
        right: 0;
        background: #000;
        border-top: 1px solid #1a1a1a;
        padding: 12px 20px;
        z-index: 999;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .sticky-price {
        display: flex;
        flex-direction: column;
    }

    .sticky-price small {
        color: #888;
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 700;
    }

    .sticky-price span {
        color: #fff;
        font-size: 19px;
        font-weight: 800;
    }

    .sticky-button button {
        background: #cc003d;
        border: none;
        color: #fff;
        padding: 10px 24px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(204, 0, 61, 0.4);
    }

    .sticky-button button svg {
        width: 18px;
        height: 18px;
    }

    .product-area-box {
        margin-bottom: 150px; /* Space for sticky bar and bottom nav */
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #0a0a0a;
        border-top: 1px solid #1a1a1a;
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        text-decoration: none;
        font-size: 9px;
        font-weight: 600;
        gap: 3px;
        padding: 8px 0;
        position: relative;
        flex: 1;
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav-item i,
    .mobile-bottom-nav-item svg {
        font-size: 20px;
        width: 20px;
        height: 20px;
        transition: all 0.2s;
    }

    .mobile-bottom-nav-item.active {
        color: #cc003d;
    }

    .mobile-bottom-nav-item.active i,
    .mobile-bottom-nav-item.active svg {
        transform: scale(1.15);
    }

    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item:active {
        color: #cc003d;
    }

    /* Sepet badge */
    .mobile-cart-badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 18px);
        background: #cc003d;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        line-height: 1;
    }

    .mobile-cart-badge:empty {
        display: none;
    }
}


/* ========================================================
   ★★★ MOBİL SEARCH OVERLAY ★★★
   Tam Ekran Arama (App Stili)
   ======================================================== */
.mobile-search-overlay {
    display: none;
}

@media only screen and (max-width: 768px) {
    .mobile-search-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    .mobile-search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-search-inner {
        padding: 12px;
        padding-top: calc(env(safe-area-inset-top, 12px) + 12px);
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #111;
        border: 1px solid #222;
        border-radius: 12px;
        padding: 4px;
        height: 52px;
    }

    .mobile-search-form input[name="str"] {
        flex: 1;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 16px;
        padding: 0 10px;
        outline: none;
        font-family: 'Dosis', sans-serif;
    }

    .mobile-search-form input[name="str"]::placeholder {
        color: #555;
        font-style: normal;
    }

    .mobile-search-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 20px;
        padding: 10px 12px;
        cursor: pointer;
    }

    .mobile-search-form button[type="submit"] {
        background: #cc003d;
        border: none;
        color: #fff;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
}


/* ========================================================
   ★★★ FLOATING WHATSAPP FAB ★★★
   ======================================================== */
.mobile-whatsapp-fab {
    display: none;
}

@media only screen and (max-width: 768px) {
    .mobile-whatsapp-fab {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 16px;
        width: 52px;
        height: 52px;
        background: #25d366;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 9998;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        color: #fff;
        font-size: 26px;
        text-decoration: none;
        transition: transform 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-whatsapp-fab:hover,
    .mobile-whatsapp-fab:active {
        transform: scale(1.1);
        color: #fff;
    }
}


/* ========================================================
   MOBİL MMENU HAMBURGER BUTON (Sidebar Trigger)
   ======================================================== */
@media only screen and (max-width: 768px) {
    a.mobil-bars {
        float: none;
        font-size: 18px;
        background-color: transparent;
        padding: 8px 12px;
        margin: 0;
        border-radius: 6px;
        border: 1px solid #222;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        color: #fff;
    }
}


/* ========================================================
   TOUCH CİHAZ OPTİMİZASYONU
   ======================================================== */
@media (hover: none) and (pointer: coarse) {
    .col-product-item:hover { transform: none; box-shadow: none; }
    a:hover { transition: none; }

    /* Tüm interaktif elemanlar için minimum dokunma alanı */
    .mobile-bottom-nav-item { min-height: 44px; }
    .mobile-search-close { min-width: 44px; min-height: 44px; }
}


/* ========================================================
   LANDSCAPE MOBİL
   ======================================================== */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .section-header-top { display: none; }
    .mobile-bottom-nav { height: 50px; }
    .mobile-bottom-nav-item i { font-size: 16px; }
    .mobile-bottom-nav-item span:not(.mobile-cart-badge) { display: none; }
    body { padding-bottom: 50px; }
}


/* ========================================================
   SCROLLBAR GİZLE (Mobil App hissi)
   ======================================================== */
@media (max-width: 768px) {
    *::-webkit-scrollbar { width: 0; height: 0; }
    * { scrollbar-width: none; }
}
