/* Mobile & WAP Optimizations */

/* Touch targets - minimum 44px */
@media (max-width: 768px) {
    /* Ensure touch targets are large enough */
    .btn-primary,
    .btn-outline,
    .btn-whatsapp,
    .btn-contact,
    .btn-inquiry,
    .btn-detail,
    .read-more,
    .floating-btn,
    .whatsapp-btn,
    .back-to-top {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Navigation */
    .main-navigation .nav-menu li a {
        padding: 15px 0;
        font-size: 16px;
    }
    
    /* Form inputs */
    .contact-form input,
    .contact-form textarea,
    .inquiry-form input,
    .search-form input {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 15px;
    }
    
    /* Product cards */
    .product-card h3 {
        font-size: 14px;
    }
    
    /* Blog cards */
    .blog-content h3 {
        font-size: 16px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 24px;
    }
    
    /* Hero banner */
    .banner-placeholder h2 {
        font-size: 28px;
    }
    
    /* Footer */
    .footer-col h4 {
        font-size: 16px;
    }
    
    /* Floating contact */
    .floating-contact {
        bottom: 100px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    
    /* WhatsApp float */
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .whatsapp-float .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    /* Back to top */
    .back-to-top {
        bottom: 85px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* Cookie notice */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Product detail */
    .product-detail {
        gap: 20px;
    }
    
    .product-detail-info h1 {
        font-size: 22px;
    }
    
    /* Contact layout */
    .contact-layout {
        gap: 30px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .hero-banner .swiper {
        height: 250px;
    }
    
    .advantages-grid {
        gap: 15px;
    }
    
    .advantage-item {
        padding: 15px 10px;
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
    }
    
    .advantage-item h3 {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .advantages-grid {
        gap: 20px;
    }
    
    .advantage-item {
        padding: 15px;
    }
    
    .product-card img {
        height: 200px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner .swiper {
        height: 250px;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .error-404 {
        min-height: auto;
        padding: 60px 0;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .floating-contact,
    .whatsapp-float,
    .back-to-top,
    .sidebar-contact,
    .inquiry-modal,
    .cookie-notice,
    .page-loader {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text: #000;
        --text-light: #333;
        --border: #000;
    }
    
    .btn-primary,
    .btn-outline {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .swiper-wrapper {
        transition: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Optional: enable if dark mode is desired */
    /*
    :root {
        --text: #e0e0e0;
        --text-light: #b0b0b0;
        --bg: #1a1a1a;
        --bg-light: #2a2a2a;
        --border: #404040;
    }
    
    .site-header,
    .sub-menu,
    .modal-content {
        background: #2a2a2a;
    }
    */
}
