/* =============================================
   RESPONSIVE - Mobil Uyumluluk
   ============================================= */

/* Tablet Large */
@media (max-width: 1200px) {
    .category-grid.five-items {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-categories {
        min-height: auto;
    }

    .category-grid.five-items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .category-grid.five-items .category-card {
        min-height: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .top-bar-right { width: 100%; justify-content: center; }

    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        z-index: 1001;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 80px 24px 24px;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: var(--gray-100);
        border: none;
        border-radius: 50%;
        font-size: 24px;
        color: var(--gray-700);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition);
        z-index: 10;
    }

    .nav-close-btn:hover {
        background: var(--gray-200);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav > ul > li > a {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .main-nav > ul > li > a:hover,
    .main-nav > ul > li > a.active {
        background: var(--gray-50);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .btn-call span { display: none; }
    .btn-call {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    .hero-categories {
        min-height: auto;
    }

    .hero-categories .section-header {
        padding: 28px 16px 20px;
    }

    .hero-categories .section-header h1 {
        font-size: 22px;
    }

    .hero-categories .section-header p {
        font-size: 14px;
    }

    .category-grid.five-items {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 0 16px 16px;
    }

    .category-grid.five-items .category-card {
        min-height: 170px;
    }

    .category-grid.five-items .category-card:last-child {
        grid-column: 1 / -1;
    }

    .category-card-content {
        padding: 16px;
    }

    .category-card-content h2 {
        font-size: 15px;
    }

    .category-card-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .category-card-content p {
        display: none;
    }

    .category-card-link {
        padding: 7px 14px;
        font-size: 12px;
    }

    .scroll-indicator {
        display: none;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slider-slide img {
        height: 240px;
    }

    .product-gallery img {
        height: 300px;
    }

    .product-info h1 {
        font-size: 22px;
    }

    .product-info .product-price {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 22px;
    }
}

/* Alt Kategori Grid - Tablet */
@media (max-width: 1024px) {
    .sub-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Alt Kategori Grid - Mobile */
@media (max-width: 768px) {
    .sub-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sub-subcat-overlay h3 {
        font-size: 13px;
    }

    .sub-breadcrumb {
        font-size: 12px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-grid.five-items .category-card {
        min-height: 140px !important;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-info-card {
        padding: 24px;
    }

    .page-content .container {
        padding: 0 16px;
    }

    .hero-categories .section-header {
        padding: 24px 16px 20px;
    }

    .hero-categories .section-header h1 {
        font-size: 20px;
    }

    .slider-slide img {
        height: 180px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top {
        right: 78px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}
