/* ═══════════════════════════════════════════════════════════════
   RE7EDI — MOBILE & TABLET RESPONSIVE
   Hedef: iOS Safari, Android Chrome, tüm tablet boyutları
   PC tarafı hiçbir şey bozulmaz — tüm kurallar max-width içinde
   
   Breakpoint sistemi:
     tablet-lg : max-width: 1024px
     tablet     : max-width: 900px
     tablet-sm  : max-width: 768px
     mobile-lg  : max-width: 600px
     mobile     : max-width: 480px
     mobile-sm  : max-width: 380px
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   0. GLOBAL — Viewport, touch, iOS uyumları
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* iOS Safari'de -webkit-text-size-adjust önemli */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Yatay scroll'u engelle */
    body {
        overflow-x: hidden;
    }

    /* iOS tap highlight kaldır */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ─────────────────────────────────────────────────────
   1. CAMPAIGN BAR (top-bar)
───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .top-bar {
        height: 26px;
    }

    .top-bar-text {
        font-size: 9.5px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 22px;
    }

    .top-bar-text {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}

/* ─────────────────────────────────────────────────────
   2. HEADER — Mobil/Tablet Düzeltmesi
   
   Sorun: .header-center { position:absolute; left:50% } ile
   .header-right büyük olduğunda logo üstüne biniyor.
   Çözüm: 900px altında flex layout'a geç, absolute kaldır.
───────────────────────────────────────────────────── */

/* Tablet büyük: arama kutusu küçülsün */
@media (max-width: 1024px) {
    .header {
        padding: 0 32px;
    }
    .search-box input {
        width: 160px;
    }
}

/* Tablet: 3 parçalı flex layout — hamburger | logo | ikonlar */
@media (max-width: 900px) {
    .header {
        padding: 0 16px;
        height: 64px;
        top: 26px; /* topbar 26px */
        /* Artık position:absolute yerine flex ile ortala */
        justify-content: space-between;
    }

    body {
        padding-top: 90px; /* 26 + 64 */
    }

    /* Logo kesinlikle merkeze — header 3 eşit bölge */
    .header-center {
        position: static !important;
        transform: none !important;
        left: auto !important;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }
    .header-center a { pointer-events: all; }

    /* Sol: hamburger — genişliği header-right ile eşit yap */
    .header-left {
        flex: 0 0 auto;
        min-width: 80px;
        display: flex;
        align-items: center;
    }

    /* Sağ: ikonlar — min-width ile sol ile dengele */
    .header-right {
        flex: 0 0 auto;
        min-width: 80px;
        gap: 2px;
        justify-content: flex-end;
    }

    /* Arama kutusu gizle — mobil arama ikonuyla değiştir */
    .search-box {
        display: none;
    }

    /* Logo boyutu */
    .logo {
        font-size: 18px;
        letter-spacing: 6px;
    }

    .logo-img {
        max-height: 32px;
        max-width: 110px;
    }

    /* İkon touch hedefleri — minimum 44px */
    .icons {
        gap: 0;
    }

    .icon,
    .cart {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
    }

    /* Hamburger touch hedefi */
    .menu-btn {
        width: 44px;
        height: 44px;
        padding: 12px 4px;
        justify-content: center;
        gap: 5px;
    }
}

/* Mobil küçük */
@media (max-width: 480px) {
    .header {
        padding: 0 10px;
        height: 58px;
        top: 22px;
    }

    body {
        padding-top: 80px;
    }

    .logo {
        font-size: 15px;
        letter-spacing: 4px;
    }

    /* Dil seçici: sadece bayrak göster, yazı gizle */
    .lang-btn span {
        display: none;
    }
    .lang-btn {
        padding: 4px;
        gap: 2px;
    }

    .chevron-svg {
        display: none;
    }

    /* İkonu biraz sıkıştır */
    .icon,
    .cart {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Topbar yüksekliğine göre header top değeri */
@media (max-width: 768px) {
    .top-bar {
        height: 26px;
    }
    .top-bar-text {
        font-size: 9.5px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 22px;
    }
    .top-bar-text {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}

/* ─────────────────────────────────────────────────────
   3. SIDE MENU — Mobil Düzeltmesi
   
   Görsel 1: Menü sayfayı tam boyunca kaplamıyor
   Görsel 2: X butonu doğru çalışıyor ama tam yükseklikte değil
   Çözüm: height:100vh, top:0, tam yükseklik garantisi
───────────────────────────────────────────────────── */

/* Close butonu — X şeklinde, sağ üstte, her zaman tıklanabilir */
/* ─────────────────────────────────────────────────────
   SIDE MENU — Mobil tam uyum
─────────────────────────────────────────────────────── */
.side-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
}

/* Kapat butonu */
.close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.09) !important;
    border-radius: 50% !important;
    border: none !important;
    z-index: 10;
    cursor: pointer;
    transition: background .2s !important;
}
.close-btn:hover { background: rgba(255,255,255,.16) !important; }

.close-btn span {
    position: absolute !important;
    width: 16px !important;
    height: 1.5px !important;
    background: var(--ivory) !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: -8px !important;
    border-radius: 1px !important;
}
.close-btn span:nth-child(1) { transform: rotate(45deg) !important; }
.close-btn span:nth-child(2) { opacity: 0 !important; }
.close-btn span:nth-child(3) { transform: rotate(-45deg) !important; }

/* Tablet */
@media (max-width: 900px) {
    .side-menu {
        width: 300px !important;
        max-width: 85vw !important;
        padding: 0 !important; /* padding side-menu-header/content/footer'da */
    }

    .side-menu-header {
        padding: 56px 28px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,.06) !important;
    }

    /* Üst logo */
    .sm-brand-link { display: block; }
    .sm-logo-img {
        max-height: 38px !important;
        max-width: 150px !important;
        opacity: .88;
    }
    .sm-logo-text {
        font-family: var(--font-display) !important;
        font-style: italic !important;
        font-size: 32px !important;
        font-weight: 300 !important;
        color: var(--ivory) !important;
        letter-spacing: -0.5px !important;
        line-height: 1 !important;
    }

    /* Nav linkleri */
    .side-menu-content {
        padding: 8px 0 !important;
        margin-top: 0 !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
    .side-menu-content a {
        font-size: 10.5px !important;
        padding: 15px 28px !important;
        letter-spacing: 3px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: none !important;
    }
    .side-menu-content a::after {
        width: 0 !important;
    }
    .side-menu-content a:hover::after {
        width: 16px !important;
    }

    /* Alt footer */
    .side-menu-footer {
        padding: 16px 28px !important;
        border-top: 1px solid rgba(255,255,255,.06) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-shrink: 0 !important;
    }
    .sm-footer-brand-link { display: flex; align-items: center; text-decoration: none; }
    .sm-footer-logo-img {
        max-height: 22px !important;
        max-width: 100px !important;
        opacity: .55;
    }
    .sm-footer-brand {
        font-family: var(--font-display) !important;
        font-size: 14px !important;
        font-style: italic !important;
        color: rgba(242,237,230,.3) !important;
        letter-spacing: 2px !important;
    }
    .sm-footer-links {
        display: flex !important;
        gap: 14px !important;
    }
    .sm-footer-links a {
        font-size: 10px !important;
        letter-spacing: 1.5px !important;
        color: rgba(242,237,230,.2) !important;
        padding: 0 !important;
        background: none !important;
        display: inline !important;
        text-transform: uppercase !important;
    }
}

/* Küçük telefon */
@media (max-width: 480px) {
    .side-menu {
        width: 85vw !important;
        max-width: 300px !important;
    }
    .side-menu-header { padding: 52px 22px 18px !important; }
    .sm-logo-text { font-size: 28px !important; }
    .side-menu-content a {
        font-size: 10px !important;
        padding: 14px 22px !important;
        letter-spacing: 2.5px !important;
        min-height: 44px !important;
    }
    .side-menu-footer { padding: 14px 22px !important; }
}

/* ─────────────────────────────────────────────────────
   4. HERO SLIDER
   
   Çözüm: hero sayfasında body padding-top'u sıfırla,
   header'ı slider üstünde şeffaf yüzdür.
   Slider tam ekran (100dvh) kaplar.
───────────────────────────────────────────────────── */

/* Hero slider — SADECE mobilde body padding sıfırla
   PC'de (>900px) header şeffaf olarak slider üstünde yüzer — doğru davranış
   Mobilde header sayfanın akışında olduğundan padding kaldırıyoruz */

@media (max-width: 1024px) {
    .hero-slider {
        height: 92vh;
    }
    .slide-content h2 {
        font-size: 56px;
        letter-spacing: 5px;
    }
}

@media (max-width: 900px) {
    /* Mobilde: header fixed+topbar = 90px, slider hemen altında başlasın */
    body.page-home { padding-top: 0 !important; }

    .hero-slider {
        height: calc(100dvh - 90px);
        min-height: 480px;
    }

    .slide-content {
        bottom: 10%;
        left: 6%;
        max-width: 480px;
    }

    .slide-content h2 {
        font-size: 40px;
        letter-spacing: 4px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: calc(100dvh - 80px);
        min-height: 420px;
    }

    .slide-content {
        bottom: 8%;
        left: 5%;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 30px;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: calc(100dvh - 80px);
        min-height: 380px;
    }

    .slide-content h2 {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .slide-content p {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .hero-slider::before {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────
   5. DOUBLE BANNER
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .double-banner {
        padding: 32px 32px 0;
        gap: 16px;
    }

    .banner-item img {
        height: 420px;
    }
}

@media (max-width: 900px) {
    .double-banner {
        padding: 24px 20px 0;
        gap: 12px;
        /* 2 sütun — tablet */
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-item img {
        height: 360px;
    }

    .banner-text {
        bottom: 24px;
        left: 24px;
    }

    .banner-text h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .double-banner {
        padding: 20px 12px 0;
        gap: 10px;
    }

    .banner-item img {
        height: 280px;
    }

    .banner-text h2 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .banner-text span {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

@media (max-width: 600px) {
    /* Tek sütun — dar mobil */
    .double-banner {
        grid-template-columns: 1fr;
        padding: 16px 0 0;
        gap: 8px;
    }

    .banner-item {
        border-radius: 0;
    }

    .banner-item img {
        height: 260px;
    }

    .banner-text {
        bottom: 20px;
        left: 20px;
    }

    .banner-text h2 {
        font-size: 26px;
    }
}

/* ─────────────────────────────────────────────────────
   6. SECTION HEADER
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .section-header {
        padding: 56px 32px 0;
    }

    .section-header h2 {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    .section-header {
        padding: 48px 20px 0;
    }

    .section-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .section-header {
        padding: 40px 12px 0;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .section-header a {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 32px 8px 0;
    }

    .section-header h2 {
        font-size: 26px;
        letter-spacing: -0.3px;
    }
}

/* ─────────────────────────────────────────────────────
   7. PRODUCT GRID & CARDS
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        padding: 20px 32px 80px;
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        padding: 20px 20px 80px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 16px 12px 70px;
    }

    /* Kart üzerindeki ikon butonları her zaman görünür — hover yok */
    .product-icons {
        opacity: 1;
        transform: translateX(0);
    }

    /* Touch icon boyutu — minimum 44px */
    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .product-info {
        transform: translateY(0);
        opacity: 1;
        padding: 32px 12px 12px;
    }

    .product-info h3 {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .product-info p,
    .price-new {
        font-size: 16px;
    }

    .price-old {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px 6px 60px;
    }

    .product-info {
        padding: 28px 10px 10px;
    }

    .product-info h3 {
        font-size: 9.5px;
        letter-spacing: 1px;
    }

    .product-info p,
    .price-new {
        font-size: 15px;
    }

    .product-badge {
        font-size: 7px;
        letter-spacing: 1.5px;
        padding: 3px 6px;
    }
}

@media (max-width: 380px) {
    .product-grid {
        gap: 4px;
        padding: 10px 4px 60px;
    }
}

/* ─────────────────────────────────────────────────────
   8. ÜRÜN DETAY SAYFASI
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .product-detail {
        gap: 48px;
        padding: 0 32px;
    }
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 20px;
        margin-top: 28px;
    }

    .gallery {
        position: static;
    }

    .detail-title {
        font-size: 36px;
    }

    .detail-price {
        font-size: 26px;
    }

    .breadcrumb {
        padding: 16px 20px 0;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 0 12px;
        margin-bottom: 60px;
    }

    .gallery-main {
        /* Dikey aspect ratio mobilde daha az uzun */
        aspect-ratio: 4/5;
    }

    .gallery-thumb {
        width: 60px;
        height: 75px;
    }

    .gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .detail-title {
        font-size: 30px;
    }

    .detail-price {
        font-size: 24px;
    }

    /* Size butonları touch hedefi büyüt */
    .size-btn {
        min-width: 48px;
        height: 48px;
        font-size: 12px;
    }

    .color-btn {
        padding: 10px 16px;
        min-height: 44px;
    }

    .btn-add-cart,
    .btn-fav {
        padding: 18px;
        /* Kolay dokunuş */
    }

    .breadcrumb {
        padding: 12px 12px 0;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 0 8px;
    }

    .detail-title {
        font-size: 26px;
    }

    .size-grid {
        gap: 6px;
    }

    .size-btn {
        min-width: 44px;
        height: 44px;
        font-size: 11px;
        padding: 0 8px;
    }

    .gallery-thumbs {
        gap: 6px;
    }

    .gallery-thumb {
        width: 54px;
        height: 68px;
    }
}

/* ─────────────────────────────────────────────────────
   9. CHECKOUT & CART SAYFASI
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .checkout-container {
        gap: 32px;
        padding: 0 32px;
    }
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .checkout-right {
        position: static;
    }

    .summary-card {
        padding: 28px 24px;
    }

    .page-title {
        font-size: 40px;
        padding: 40px 0 28px;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 0 12px;
    }

    .cart-item {
        gap: 16px;
        padding: 20px 0;
    }

    .cart-item img {
        width: 80px;
        height: 100px;
    }

    .cart-info h4 {
        font-size: 12px;
    }

    .cart-price {
        font-size: 18px;
        min-width: 80px;
    }

    .qty-btn {
        padding: 8px 12px; /* Daha geniş touch */
    }

    .page-title {
        font-size: 34px;
        padding: 32px 0 24px;
    }

    .summary-total {
        font-size: 24px;
    }

    .checkout-btn {
        padding: 18px; /* Büyük touch hedefi */
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 0 8px;
    }

    .cart-item {
        gap: 12px;
        flex-wrap: wrap;
    }

    .cart-item img {
        width: 72px;
        height: 90px;
    }

    .cart-price {
        font-size: 16px;
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .page-title {
        font-size: 28px;
    }

    /* Checkout section */
    .co-section {
        padding: 20px 16px;
    }

    .installment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .co-row {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────
   10. FAVORİLER SAYFASI
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .fav-products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 0 32px;
    }
}

@media (max-width: 900px) {
    .fav-products {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        gap: 12px;
    }

    .fav-title {
        font-size: 40px;
        padding: 40px 0 28px;
    }
}

@media (max-width: 768px) {
    .fav-products {
        padding: 0 12px;
        gap: 8px;
    }

    .fav-card img {
        height: 260px;
    }

    .fav-title {
        font-size: 34px;
    }

    /* Remove butonu touch hedefi */
    .fav-remove {
        padding: 14px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .fav-products {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 8px;
        gap: 6px;
        margin-bottom: 60px;
    }

    .fav-card img {
        height: 200px;
    }

    .fav-info {
        padding: 14px 12px;
    }

    .fav-product-title {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .fav-price {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .fav-title {
        font-size: 28px;
        padding: 32px 0 20px;
    }

    .fav-empty h2 {
        font-size: 28px;
    }
}

/* ─────────────────────────────────────────────────────
   11. FOOTER
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 36px;
        padding: 56px 32px 40px;
    }

    /* Footer brand tam genişlik */
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 48px 20px 32px;
    }

    .footer-bottom {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 36px 12px 28px;
    }

    .footer-logo {
        font-size: 18px;
        letter-spacing: 6px;
    }

    .footer-col h4 {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .footer-col ul li a {
        font-size: 11px;
    }

    .footer-bottom {
        padding: 14px 12px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────
   12. AUTH SAYFASI (Login / Register)
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        display: none;
    }
}

@media (max-width: 600px) {
    .auth-form-wrap {
        padding: 32px 20px 48px;
    }
}

/* ─────────────────────────────────────────────────────
   13. SETTINGS SAYFASI
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Bottom tab bar */
    .settings-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        transform: none;
        flex-direction: row;
        justify-content: flex-start;
        border-right: none;
        border-top: 1px solid var(--border);
        padding: 10px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        z-index: 500;
        /* iOS safe area */
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .settings-wrap {
        padding: 28px 20px 100px;
    }

    .settings-greeting {
        display: none;
    }

    .settings-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .settings-menu li {
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .settings-wrap {
        padding: 20px 12px 100px;
    }
}

/* ─────────────────────────────────────────────────────
   14. DYNAMIC PAGES (Hero + Widgets)
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .page-hero {
        margin: 24px 20px 0;
        min-height: 320px;
    }

    .page-widget {
        padding: 0 20px;
        margin: 24px auto;
    }

    .hero-full  { min-height: 500px; }
    .hero-half  { min-height: 300px; }
    .hero-short { min-height: 220px; }
}

@media (max-width: 600px) {
    .page-hero {
        margin: 12px 0 0;
        border-radius: 0;
        min-height: 260px;
    }

    .page-hero .hero-content {
        padding: 24px 20px;
    }

    .page-hero .hero-content h1 {
        font-size: clamp(22px, 6vw, 40px);
        letter-spacing: 3px;
    }

    .page-hero .hero-content p {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 10px;
    }

    .page-widget {
        padding: 0 12px;
        margin: 16px auto;
    }

    .hero-full  { min-height: 380px; }
    .hero-half  { min-height: 240px; }
    .hero-short { min-height: 180px; }
    .hero-banner { height: 200px; }

    .widget-text p {
        font-size: 14px;
    }
}

/* ─────────────────────────────────────────────────────
   15. LANG SWITCHER (dropdown)
───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lang-dropdown {
        right: -4px;
        min-width: 110px;
    }

    .lang-option {
        padding: 10px 12px;
        font-size: 11px;
        /* Touch hedefi */
        min-height: 44px;
    }
}

/* ─────────────────────────────────────────────────────
   16. USER DROPDOWN
───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .user-dropdown {
        min-width: 140px;
        right: -4px;
    }

    .user-dropdown-item {
        padding: 12px 14px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* ─────────────────────────────────────────────────────
   17. TOAST BİLDİRİMLER
───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .toast {
        /* Bottom nav (64px) üzerinde göster — butonları kapatmasın */
        top: auto;
        bottom: calc(64px + 12px);
        right: 12px;
        left: 12px;
        min-width: 0;
        font-size: 12px;
        padding: 12px 16px;
        border-radius: 6px;
        /* iOS safe area dahil */
        bottom: calc(64px + 12px + env(safe-area-inset-bottom));
    }
}

/* ─────────────────────────────────────────────────────
   18. YUKARIYA ÇIK BUTONU
───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .scroll-to-top {
        bottom: 80px; /* Settings bottom nav üzerinde */
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

/* ─────────────────────────────────────────────────────
   19. CHECKOUT MODAL (Sipariş onay, KVKK, vb.)
───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .co-modal-box {
        width: 96%;
        padding: 28px 20px;
        max-height: 88vh;
    }

    .co-modal-overlay {
        align-items: flex-end; /* Alttan çıksın */
    }

    .co-modal-box {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        max-height: 90vh;
    }

    .con-actions {
        flex-direction: column;
        gap: 10px;
    }

    .con-btn-cancel,
    .con-btn-confirm {
        width: 100%;
        padding: 16px;
    }

    .installment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .con-header h3 {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .co-modal-box {
        padding: 24px 16px;
    }
}

/* ─────────────────────────────────────────────────────
   20. iOS SAFE AREA (iPhone X ve üzeri, notch)
───────────────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 900px) {
        /* Bottom nav (settings) safe area */
        .settings-nav {
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }
    }

    @media (max-width: 600px) {
        /* Toast safe area — bottom nav (64px) üzerinde */
        .toast {
            bottom: calc(64px + 12px + env(safe-area-inset-bottom));
        }

        /* Yukarı çık butonu */
        .scroll-to-top {
            bottom: calc(80px + env(safe-area-inset-bottom));
        }

        /* Sabit footer varsa */
        body {
            /* Sol-sağ güvenli alan */
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
    }
}

/* ─────────────────────────────────────────────────────
   21. LANDSCAPE MOD (Yatay tutuş — özellikle iPhone)
───────────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 280px;
    }

    .header {
        height: 56px;
    }

    .top-bar {
        height: 20px;
    }

    body {
        padding-top: 76px;
    }

    /* Landscape'de daha küçük slider içeriği */
    .slide-content h2 {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .slide-content p {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────
   22. GENEL FORM ELEMENTLERİ — iOS zoom düzeltmesi
   iOS Safari, font-size < 16px olan inputlara zoom yapar.
   Tüm input/select/textarea minimum 16px font-size alır.
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Ama görsel etiket boyutları küçük kalabilir */
    .co-field label,
    .s-field label,
    .detail-label {
        font-size: 10px;
    }
}

/* ─────────────────────────────────────────────────────
   23. GÖRSELLERİN RESPONSIVE OLMASI
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    img {
        max-width: 100%;
    }

    .widget-image img {
        width: 100%;
        border-radius: 4px;
    }
}

/* ─────────────────────────────────────────────────────
   24. TABLETlerde hover yerine FOCUS kullan
   Android Chrome / iOS Safari hover'ı desteklemez,
   fokus stilleri mobilde aktif durum olarak görünür.
───────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Hover animasyonlarını devre dışı bırak — mobilde takılı kalırlar */
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(26,26,26,.08);
    }

    .product-card:hover img {
        transform: none;
    }

    .product-card:hover::before {
        opacity: 0;
    }

    .product-card:hover::after {
        top: -100%;
    }

    /* İkonlar ve bilgi her zaman görünür */
    .product-icons {
        opacity: 1;
        transform: translateX(0);
    }

    .product-info {
        transform: translateY(0);
        opacity: 1;
    }

    /* Banner hover efekti */
    .banner-item:hover img {
        transform: none;
    }

    /* Fav card hover */
    .fav-card:hover {
        transform: none;
    }

    .fav-card:hover img {
        transform: none;
    }

    /* Checkout button hover */
    .checkout-btn:hover {
        transform: none;
    }
}

/* ─────────────────────────────────────────────────────
   25. KÜÇÜK EK DÜZELTMELER
───────────────────────────────────────────────────── */

/* Tablet büyük — header arama ikonu göster (sadece ikon) */
@media (max-width: 900px) and (min-width: 601px) {
    /* Küçük bir arama ikonu koy header'a */
    .search-box {
        display: none;
    }
}

/* Fiyat wrap mobilde alt alta */
@media (max-width: 480px) {
    .price-wrap {
        flex-direction: column;
        gap: 2px;
    }

    .price-old {
        font-size: 11px;
    }
}

/* Sepet ikonu badge pozisyon düzeltme */
@media (max-width: 480px) {
    .cart .badge {
        top: 2px;
        right: 0px;
        min-width: 15px;
        height: 15px;
        font-size: 9px;
    }
}

/* Breadcrumb mobilde scroll edilebilir */
@media (max-width: 600px) {
    .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
}

/* Checkout items — qty control touch */
@media (max-width: 600px) {
    .qty-control {
        /* Büyük touch hedefi */
        height: 44px;
    }

    .qty-btn {
        padding: 0 16px;
        height: 100%;
        font-size: 18px;
    }

    .qty {
        min-width: 36px;
        font-size: 14px;
        padding: 0 4px;
    }
}

/* Variants (sepet sayfası) */
@media (max-width: 600px) {
    .variants {
        flex-wrap: wrap;
        gap: 6px;
    }

    .variants span {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Galeri ok butonları mobilde her zaman görünür */
@media (max-width: 768px) {
    .gallery-arrow {
        opacity: 1;
        background: rgba(242,237,230,0.85);
    }
}

/* Detay sayfası stock durumu */
@media (max-width: 600px) {
    .detail-stock {
        font-size: 10px;
        margin-bottom: 24px;
    }

    .detail-badge {
        font-size: 8px;
        padding: 4px 8px;
    }
}

/* Sipariş özeti sidebar mobilde üstte değil altta */
@media (max-width: 900px) {
    /* .checkout-left önce, .checkout-right sonra */
    .checkout-container {
        display: flex;
        flex-direction: column;
    }

    .checkout-right {
        order: 2;
    }

    .checkout-left {
        order: 1;
    }
}

/* ─────────────────────────────────────────────────────
   26. MOBİL ARAMA İKONU & OVERLAY
───────────────────────────────────────────────────── */

/* Mobil arama butonu — masaüstünde gizli */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    font-size: 17px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}

.mobile-search-btn:hover {
    color: var(--brass);
}

/* 900px altında göster */
@media (max-width: 900px) {
    .mobile-search-btn {
        display: inline-flex;
    }
}

/* Arama Overlay — tüm ekranı kaplar */
.mobile-search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

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

.mobile-search-inner {
    background: var(--ivory);
    padding: 16px 16px;
    /* iOS safe area */
    padding-top: calc(16px + env(safe-area-inset-top));
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    transform: translateY(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.mobile-search-overlay.open .mobile-search-inner {
    transform: translateY(0);
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ivory-d);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 16px;
    height: 52px;
}

.mobile-search-form-icon {
    color: var(--muted);
    font-size: 15px;
    flex-shrink: 0;
}

.mobile-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px; /* iOS zoom engeli */
    color: var(--charcoal);
    outline: none;
    letter-spacing: 0.3px;
}

.mobile-search-form input::placeholder {
    color: var(--muted);
}

.mobile-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 18px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color .2s;
}

.mobile-search-close:hover {
    color: var(--charcoal);
}


/* ═══════════════════════════════════════════
   ARAMA PANELİ (mobil tam ekran)
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   ARAMA PANELİ — Sayfa renk şemasına uyumlu
   #fff → var(--ivory), #ddd → var(--border), vs.
═══════════════════════════════════════════════════════════ */
.search-panel {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, visibility .25s, transform .25s;
}
.search-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Arama çubuğu ── */
.sp-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    height: 60px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--ivory);
    z-index: 2;
}
.sp-bar svg { color: rgba(26,26,26,.4); flex-shrink: 0; }
.sp-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--charcoal);
    background: transparent;
    letter-spacing: .3px;
}
.sp-bar input::placeholder { color: rgba(26,26,26,.35); }
.sp-cancel {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(26,26,26,.5);
    padding: 8px 0 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .2s;
}
.sp-cancel:hover { color: var(--charcoal); }

/* ── Gövde ── */
.sp-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px 100px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sp-section { margin-bottom: 28px; }
.sp-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(26,26,26,.35);
    margin-bottom: 14px;
}

/* ── Kategori etiketleri ── */
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tag {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(26,26,26,.65);
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    background: transparent;
}
.sp-tag:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
    background: rgba(26,26,26,.03);
}

/* ── Ürün listesi ── */
.sp-list { display: flex; flex-direction: column; }
.sp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(26,26,26,.06);
    text-decoration: none;
    transition: background .15s;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 4px;
}
.sp-item:last-child { border-bottom: none; }
.sp-item:hover { background: rgba(26,26,26,.03); }

.sp-img {
    width: 58px; height: 58px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--ivory-d);
    flex-shrink: 0;
}
.sp-img-empty {
    width: 58px; height: 58px;
    border-radius: 4px;
    background: var(--ivory-d);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--border);
}

.sp-info { flex: 1; min-width: 0; }
.sp-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    letter-spacing: .2px;
}
.sp-price {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(26,26,26,.7);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sp-price-old {
    text-decoration: line-through;
    color: rgba(26,26,26,.35);
    font-size: 11px;
}
.sp-price-new { color: var(--brass); font-weight: 600; }

/* ── Yükleniyor noktaları ── */
.sp-dots {
    display: flex; gap: 6px; padding: 28px 0; justify-content: center;
}
.sp-dots span {
    width: 7px; height: 7px;
    background: var(--border);
    border-radius: 50%;
    animation: spPulse 1.2s ease infinite;
}
.sp-dots span:nth-child(2) { animation-delay: .2s; }
.sp-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes spPulse {
    0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1)}
}

.sp-empty {
    text-align: center;
    padding: 36px 0;
    color: rgba(26,26,26,.35);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════════════════
   MOBİL ALT NAVİGASYON BAR
   Hesap / Favoriler / Sepet — 900px altında görünür
═══════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 64px;
        background: var(--ivory);
        border-top: 1px solid rgba(26,26,26,.10);
        z-index: 1050;
        align-items: stretch;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 24px rgba(26,26,26,.07);
    }

    .mbn-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: rgba(26,26,26,.45);
        font-family: var(--font-body);
        font-size: 10px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        transition: color .2s;
        position: relative;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }

    .mbn-item i,
    .mbn-item .material-symbols-outlined {
        font-size: 20px;
        line-height: 1;
    }

    .mbn-item:hover,
    .mbn-item.active {
        color: var(--charcoal);
    }

    .mbn-badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 18px);
        background: var(--charcoal);
        color: var(--ivory);
        font-size: 9px;
        font-weight: 600;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        letter-spacing: 0;
    }

    /* Header ikonlarını mobilde gizle (alt navda gösteriyoruz) */
    .header-right .user-icon-wrap,
    .header-right .icons > a.icon:not(.mobile-keep) {
        display: none !important;
    }

    /* Dil seçici ve arama ikonunu headerda tut */
    .header-right .lang-switcher {
        display: flex !important;
    }

    /* Body'e alt nav yüksekliği kadar padding ekle */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .mbn-item {
        font-size: 9px;
        gap: 3px;
    }

    .mbn-item i,
    .mbn-item .material-symbols-outlined {
        font-size: 19px;
    }
}

/* ═══════════════════════════════════════════════════════════
   HAMBURGERTEMASı — Daha şık 3 çizgi
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .menu-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 8px !important;
        transition: background .2s !important;
        cursor: pointer !important;
    }

    .menu-btn:hover {
        background: rgba(26,26,26,.06) !important;
    }

    .menu-btn span {
        width: 22px !important;
        height: 1.5px !important;
        background: var(--charcoal) !important;
        border-radius: 2px !important;
        transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s, width .25s !important;
        display: block !important;
    }

    .menu-btn span:nth-child(1) { width: 22px !important; }
    .menu-btn span:nth-child(2) { width: 15px !important; }
    .menu-btn span:nth-child(3) { width: 22px !important; }

    .menu-btn:hover span:nth-child(2) { width: 22px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBİL ARAMA — eski overlay gizle, yeni search-panel kullan
   mobileSearchBtn artık searchPanel'ı açacak
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .mobile-search-overlay {
        display: none !important;
    }
}


/* ── Header masaüstü ikonları — mobilde gizle ── */
@media (max-width: 900px) {
    .header-desktop-only {
        display: none !important;
    }
}

/* ╔═════════════════════════════════════════════════════════════╗
   ║  RE7EDİ — KAPSAMLİ MOBİL OVERHAUL                         ║
   ║  Tüm bileşenler: header, filtre, arama, bottom-nav,        ║
   ║  ürün grid, section-header, kategori bar                   ║
   ╚═════════════════════════════════════════════════════════════╝ */

/* ══════════════════════════════════════════════
   HEADER — Logo tam ortalama garantisi
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .header {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        padding: 0 14px !important;
    }
    .header-left  { display: flex; align-items: center; justify-content: flex-start; }
    .header-center {
        position: static !important;
        transform: none !important;
        left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: none !important;
    }
    .header-center a { pointer-events: all !important; }
    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 2px !important;
    }
}

/* ══════════════════════════════════════════════
   FİLTRE TOOLBAR — Mobil sıkıştırma
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .filter-toolbar {
        padding: 10px 14px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        border-bottom: 1px solid rgba(26,26,26,.08) !important;
    }
    .filter-chips  { display: none !important; }
    .filter-count  { display: none !important; }
    .filter-open-btn {
        flex-shrink: 0 !important;
        font-size: 11px !important;
        padding: 8px 14px !important;
        letter-spacing: 1.5px !important;
        gap: 6px !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
    .filter-right {
        margin-left: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .sort-select {
        font-size: 11px !important;
        padding: 7px 10px !important;
        max-width: 130px !important;
        letter-spacing: 1px !important;
    }
}

/* ══════════════════════════════════════════════
   FİLTRE DRAWER — Bottom sheet (mobil)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .filter-overlay {
        background: rgba(0,0,0,.5) !important;
        backdrop-filter: blur(4px) !important;
    }
    .filter-drawer {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        height: 88dvh !important;
        max-height: 88dvh !important;
        transform: translateY(100%) !important;
        box-shadow: 0 -8px 40px rgba(0,0,0,.18) !important;
    }
    .filter-drawer.open { transform: translateY(0) !important; }

    /* Swipe handle çizgisi */
    .fd-head {
        position: relative !important;
        padding: 22px 20px 16px !important;
    }
    .fd-head::before {
        content: '' !important;
        display: block !important;
        width: 40px !important;
        height: 4px !important;
        background: rgba(26,26,26,.15) !important;
        border-radius: 2px !important;
        position: absolute !important;
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .fd-title { font-size: 11px !important; letter-spacing: 3px !important; }
    .fd-close { width: 32px !important; height: 32px !important; }

    .fd-body  { padding: 0 !important; }
    .fd-section { padding: 16px 20px !important; }
    .fd-section-title { font-size: 9px !important; margin-bottom: 12px !important; }

    /* Sıralama grid */
    .fd-sort-options { grid-template-columns: 1fr 1fr !important; gap: 7px !important; }
    .fd-radio { padding: 10px 12px !important; font-size: 12px !important; border-radius: 3px !important; }

    /* Beden butonları */
    .fd-size-grid { gap: 7px !important; }
    .fd-size-btn  { width: 48px !important; height: 40px !important; font-size: 12px !important; border-radius: 3px !important; }

    /* Renk listesi */
    .fd-color-list { grid-template-columns: 1fr 1fr !important; gap: 7px !important; }
    .fd-color-item { padding: 9px 12px !important; font-size: 12px !important; gap: 9px !important; border-radius: 3px !important; }
    .fd-color-swatch { width: 20px !important; height: 20px !important; }

    /* Fiyat slider */
    .fd-price-display { font-size: 15px !important; margin-bottom: 18px !important; }
    .fd-range::-webkit-slider-thumb { width: 22px !important; height: 22px !important; }

    /* Footer butonları */
    .fd-footer { padding: 14px 20px !important; gap: 10px !important; background: var(--ivory) !important; }
    .fd-btn-clear { padding: 13px !important; font-size: 10px !important; letter-spacing: 2px !important; }
    .fd-btn-apply { padding: 13px !important; font-size: 10px !important; letter-spacing: 2px !important; }
    .fd-apply-count { font-size: 10px !important; padding: 2px 7px !important; }
}

/* ══════════════════════════════════════════════
   KATEGORİ BAR (products.php)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .products-cat-bar {
        padding: 10px 14px !important;
        gap: 7px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
    }
    .products-cat-bar::-webkit-scrollbar { display: none !important; }
    .pcat-btn {
        padding: 7px 14px !important;
        font-size: 10px !important;
        letter-spacing: 1.2px !important;
        flex-shrink: 0 !important;
        border-radius: 99px !important;
    }
}

/* ══════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .section-header {
        padding: 28px 14px 0 !important;
        margin-top: 0 !important;
    }
    .section-header h2 {
        font-size: 22px !important;
        letter-spacing: -0.5px !important;
    }
    .section-header a {
        font-size: 10px !important;
        letter-spacing: 2px !important;
    }
}

/* ══════════════════════════════════════════════
   ÜRÜN GRID — Mobil 2 sütun, küçük telefon 2 sütun
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1px !important;
        padding: 12px 0 80px !important;
    }
    .products-page-grid {
        padding: 12px 0 80px !important;
    }
    .product-card {
        border-radius: 0 !important;
    }
    .product-info h3 {
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }
    .product-info p,
    .price-wrap {
        font-size: 12px !important;
    }
    .product-discount-tag { font-size: 10px !important; }
}
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1px !important;
    }
}

/* ══════════════════════════════════════════════
   SAYFA HERO (products / search sayfaları)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .products-page-hero {
        padding: 24px 14px 16px !important;
    }
    .products-page-hero h1 {
        font-size: 26px !important;
        letter-spacing: -0.5px !important;
    }
    .products-page-subtitle {
        font-size: 10px !important;
        letter-spacing: 2.5px !important;
    }
}

/* ══════════════════════════════════════════════
   ARAMA PANELİ (mobil)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .search-panel {
        background: var(--ivory) !important;
    }
    .sp-bar {
        height: 56px !important;
        padding: 0 14px !important;
        border-bottom: 1px solid var(--border) !important;
        background: var(--ivory) !important;
    }
    .sp-bar input { font-size: 15px !important; }
    .sp-cancel {
        font-size: 11px !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
    }
    .sp-body { padding: 18px 14px 100px !important; }
    .sp-label {
        font-size: 9px !important;
        letter-spacing: 2.5px !important;
        margin-bottom: 12px !important;
    }
    .sp-tag {
        font-size: 11px !important;
        padding: 6px 13px !important;
        border-color: var(--border) !important;
    }
    .sp-item { gap: 12px !important; padding: 11px 0 !important; }
    .sp-img  { width: 54px !important; height: 54px !important; }
    .sp-name { font-size: 13px !important; }
    .sp-price { font-size: 12px !important; }
}

/* ══════════════════════════════════════════════
   ALT NAVİGASYON BAR
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .mobile-bottom-nav {
        background: var(--ivory) !important;
        border-top: 1px solid rgba(26,26,26,.1) !important;
        box-shadow: 0 -2px 20px rgba(26,26,26,.06) !important;
    }
    .mbn-item {
        font-size: 9px !important;
        letter-spacing: 1px !important;
        gap: 3px !important;
        transition: color .2s !important;
    }
    .mbn-item i,
    .mbn-item .material-symbols-outlined {
        font-size: 20px !important;
    }
    .mbn-item:hover,
    .mbn-item:active { color: var(--charcoal) !important; }
    .mbn-badge {
        font-size: 8px !important;
        min-width: 15px !important;
        height: 15px !important;
    }
}
@media (max-width: 380px) {
    .mbn-item { font-size: 8px !important; gap: 2px !important; }
    .mbn-item i { font-size: 19px !important; }
}

/* ══════════════════════════════════════════════
   HAMBURGER BUTONU — Dokunmatik iyileştirme
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .menu-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0 4px !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .menu-btn span {
        width: 20px !important;
        height: 1.5px !important;
    }
    .menu-btn span:nth-child(2) { width: 13px !important; }
    .menu-btn:hover span:nth-child(2) { width: 20px !important; }
}

/* ══════════════════════════════════════════════
   HEADER İKON BOYUTLARI — Dokunmatik hedef
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .icon, .cart, .mobile-search-btn {
        min-width: 40px !important;
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 17px !important;
    }
    .cart-icon { font-size: 21px !important; }
    .badge {
        font-size: 9px !important;
        min-width: 16px !important;
        height: 16px !important;
    }
}

/* ══════════════════════════════════════════════
   HERO SLIDER — Mobil tam ekran (telefon yüksekliğine uzasın)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-slider {
        /* Header (64px) + topbar (26px) = 90px çıkar, kalan ekranı doldur */
        height: calc(100dvh - 90px) !important;
        min-height: 480px !important;
        max-height: none !important;
    }
    .slide img {
        object-fit: cover !important;
        object-position: center center !important;
    }
    .slide-content {
        bottom: 14% !important;
        left: 5% !important;
        max-width: 88% !important;
    }
    .slide-content h2 {
        font-size: clamp(22px, 6vw, 36px) !important;
        letter-spacing: 3px !important;
        margin-bottom: 10px !important;
    }
    .slide-content p { font-size: 11px !important; letter-spacing: 2px !important; }
}

@media (max-width: 480px) {
    .hero-slider {
        height: calc(102dvh - 80px) !important;
        min-height: 400px !important;
    }
    .slide-content h2 {
        font-size: clamp(20px, 6vw, 28px) !important;
        letter-spacing: 2px !important;
    }
}

/* ══════════════════════════════════════════════
   DOUBLE BANNER — Yatay stacked
══════════════════════════════════════════════ */
@media (max-width: 600px) {
    .double-banner {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
    }
    .banner-item {
        min-height: 220px !important;
        max-height: 260px !important;
    }
    .banner-text h2 { font-size: 20px !important; }
    .banner-text span { font-size: 11px !important; }
}

/* ══════════════════════════════════════════════
   GLOBAL — iOS safe area + scroll
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* iOS momentum scroll */
    .side-menu-content,
    .fd-body,
    .sp-body {
        -webkit-overflow-scrolling: touch !important;
    }
    /* Tap highlight kaldır */
    a, button, label {
        -webkit-tap-highlight-color: transparent !important;
    }
    /* Alt nav safe area */
    .mobile-bottom-nav {
        padding-bottom: calc(6px + env(safe-area-inset-bottom)) !important;
    }
    /* Body padding — bottom nav yüksekliği */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    }
}


/* ══════════════════════════════════════════════
   SETTINGS SAYFASI — settings-mobile-tabs uyumu
   Normal bottom-nav gizlenir, settings tab bar gelir
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    body.settings-page {
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }
}

/* ── Mobil Bottom Nav — Çıkış butonu rengi ── */
@media (max-width: 900px) {
    .mbn-logout {
        color: rgba(192, 57, 43, .5);
    }
    .mbn-logout:hover,
    .mbn-logout:active {
        color: #c0392b !important;
    }
}
