@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* backdrop-filter fixed menüyü header yüksekliğine kırpar — mobilde kapat */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible;
    }

    .header-main,
    .header-content,
    .header-main > .container {
        overflow: visible;
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1200;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 88vw);
        height: 100dvh;
        max-height: 100dvh;
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.25rem 2rem;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        box-shadow: var(--shadow-lg);
        z-index: 1100;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .main-nav.is-open,
    .main-nav.active {
        transform: translateX(0);
    }

    .nav-item > a { width: 100%; }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 0.75rem;
        display: none;
    }

    .nav-item.is-expanded .nav-dropdown { display: block; }

    .mega-menu {
        position: static;
        min-width: 0;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.35rem 0 0.65rem 0.75rem;
        background: transparent;
    }

    .nav-item:hover .mega-menu {
        display: none;
    }

    .nav-item.mobile-expanded .mega-menu,
    .nav-item.is-expanded .mega-menu {
        display: grid;
    }

    .mobile-overlay {
        z-index: 1050;
    }

    .header-top-right > span:not(.social-icons) { display: none; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom p {
        text-align: center;
    }

    .footer-bottom .social-icons {
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .header-top-content { justify-content: center; text-align: center; }

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
        gap: 1rem;
    }

    .hero-slider,
    .slider-container { min-height: 260px; height: min(70vw, 420px); }
    .slide-content-inner { max-width: 100%; }
    .slide-title {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
        max-width: 16ch;
    }
    .slide-desc { font-size: 0.95rem; margin-bottom: 1.15rem; }
    .slide-title::after { width: 2.1rem; margin-top: 0.65rem; }
    .home-feature-grid,
    .home-feature-grid--right {
        grid-template-columns: 1fr;
    }
    .home-feature-grid--right .home-feature-media,
    .home-feature-grid--right .home-feature-copy {
        order: initial;
    }
    .home-carousel-bar-inner {
        justify-content: flex-end;
        padding-block: 1.35rem;
    }
    .home-carousel-cluster {
        max-width: 100%;
        gap: 0.75rem 0.9rem;
    }
    .home-carousel-fixed {
        max-width: 34%;
        font-size: 0.88rem;
    }
    .home-carousel-divider {
        min-height: 2.25rem;
    }
    .home-carousel-track {
        min-width: 0;
        flex: 1 1 auto;
    }
    .home-carousel-item {
        font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    }
}

@media (max-width: 640px) {
    .whatsapp-text { display: none; }

    .whatsapp-btn {
        width: 3.25rem;
        height: 3.25rem;
        padding: 0;
        justify-content: center;
        border-radius: var(--radius-full);
    }

    .slider-container {
        aspect-ratio: 16 / 10;
        min-height: 220px;
    }
}
