/* ===== RESPONSIVE STYLES ===== */

/* Desktop - Mobile Quick Links'i gizle */
.mobile-quick-links {
    display: none;
}

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
    
    .slide-text h2 {
        font-size: 42px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .search-bar {
        max-width: 400px;
        margin: 0 15px;
    }
    
    .main-menu {
        gap: 20px;
    }
    
    .slide-text h2 {
        font-size: 36px;
    }
    
    .slide-text h3 {
        font-size: 20px;
    }
    
    .new-price {
        font-size: 30px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .top-bar-left {
        gap: 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin: 10px 0 0 0;
    }
    
    .main-menu {
        gap: 15px;
    }
    
    .nav-right {
        display: none;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content {
        padding: 0 30px;
    }
    
    .slide-text h2 {
        font-size: 32px;
    }
    
    .slide-text h3 {
        font-size: 18px;
    }
    
    .new-price {
        font-size: 28px;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    /* Header Mobile - Top bar'ı gizle */
    .top-bar {
        display: none !important;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    /* Mobile Quick Links - Sadece mobilde görünür */
    .mobile-quick-links {
        display: block;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        padding: 10px 0;
    }
    
    .quick-links-content {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .quick-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 15px;
        text-decoration: none;
        color: #495057;
        font-size: 12px;
        font-weight: 400;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        min-width: 100px;
        justify-content: center;
    }
    
    .quick-link:hover {
        background: #f8f9fa;
        color: #007cba;
        border-color: #007cba;
        transform: translateY(-0.5px);
        box-shadow: 0 2px 6px rgba(0,124,186,0.15);
    }
    
    .quick-link i {
        font-size: 13px;
        opacity: 0.8;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        flex: 0 0 auto;
        text-align: left;
    }
    
    .search-bar,
    .header-right {
        display: none !important;
    }
    
    .main-nav {
        display: none !important;
    }
    
    /* Mobile menu toggle - mobilde görünür olmalı */
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Modern Slider Mobile */
    .modern-slider {
        height: 350px;
        margin: 0;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
    
    .slider-prev {
        left: 16px;
    }
    
    .slider-next {
        right: 16px;
    }
    
    .slider-indicators {
        bottom: 16px;
        gap: 6px;
        padding: 6px 10px;
    }
    
    .slider-indicator {
        width: 7px;
        height: 7px;
    }
    
    .slide-image {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        background: #f8f9fa;
    }
    
    .slide {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-content {
        flex: none;
        padding: 20px;
    }
    
    .slide-text h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .slide-text h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .slide-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .price {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .old-price {
        font-size: 16px;
    }
    
    .new-price {
        font-size: 24px;
    }
    
    .slide-image {
        flex: none;
        height: 200px;
    }
    
    .slider-nav {
        bottom: 15px;
        right: 15px;
    }
    
    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Sections Mobile */
    .featured-products,
    .categories {
        padding: 40px 0;
    }
    
    .featured-products h2,
    .categories h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /* Footer Mobile - BD Mobilya en üst, Hızlı Linkler|Müşteri Hizmetleri yan yana, İletişim alt */
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
    }
    
    /* İlk satır - BD Mobilya + Sosyal Medya (tam genişlik) */
    .footer-section:nth-child(1) { /* BD Mobilya */
        order: 1;
        grid-column: 1 / -1;
        text-align: center;
        padding: 20px 0 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* İkinci satır - Hızlı Linkler | Müşteri Hizmetleri (yan yana) */
    .footer-section:nth-child(2) { /* Hızlı Linkler */
        order: 2;
        text-align: left;
    }
    
    .footer-section:nth-child(4) { /* Müşteri Hizmetleri */
        order: 3;
        text-align: left;
    }
    
    /* Üçüncü satır - İletişim (tam genişlik) */
    .footer-section:nth-child(5) { /* İletişim */
        order: 4;
        grid-column: 1 / -1;
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Ürün Kategorileri mobilde gizle */
    .footer-section:nth-child(3) { /* Ürün Kategorileri */
        display: none !important;
    }
    
    /* Mobil footer optimizasyonları */
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-description {
        display: none; /* Uzun açıklama gizle */
    }
    
    .footer-social h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    /* Footer title'ları küçült */
    .footer-title {
        font-size: 14px !important;
        margin-bottom: 12px;
    }
    
    /* Footer linklerini küçült */
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    /* İletişim bilgilerini düzenle */
    .contact-item-modern {
        justify-content: center;
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .contact-text {
        text-align: center;
    }
    
    /* Footer bottom'u sadeleştir */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-bottom-left p {
        font-size: 12px;
        margin: 0;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-bottom-links a {
        font-size: 11px;
        padding: 5px 8px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 12px;
        transition: all 0.2s ease;
    }
    
    .footer-bottom-links a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Payment methods'u mobilde gizle */
    .payment-methods {
        display: none;
    }
    
    /* WhatsApp Mobile */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        padding: 10px 15px;
        border-radius: 20px;
    }
    
    .whatsapp-text {
        font-size: 11px;
    }
    
    .back-to-top {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .logo-img {
        height: 40px;
    }
    
    /* Hero Slider - Mobile Large Compact */
    .hero-slider {
        height: 350px;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .slide img {
        object-fit: cover !important;
        object-position: center;
        width: 100% !important;
        height: 100% !important;
        display: block;
    }
    
    /* Compact mobile slider controls */
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        border: 1px solid rgba(255,255,255,0.4);
    }
    
    .prev-arrow {
        left: 10px;
    }
    
    .next-arrow {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 6px;
        padding: 6px 12px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
        background: rgba(255,255,255,0.7);
        border: 1px solid rgba(255,255,255,0.9);
    }
    
    .dot.active {
        background: #dc3545;
        border-color: #dc3545;
        transform: scale(1.3);
    }
    
    .dot.active::after {
        width: 3px;
        height: 3px;
    }
    
    /* Sections */
    .featured-products,
    .categories {
        padding: 30px 0;
    }
    
    .featured-products h2,
    .categories h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* Footer */
    .footer-top {
        padding: 30px 0;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .social-links {
        justify-content: center;
        gap: 8px;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    /* WhatsApp */
    .whatsapp-btn {
        padding: 8px 12px;
        border-radius: 18px;
    }
    
    .whatsapp-btn i {
        font-size: 20px;
    }
    
    .whatsapp-text {
        font-size: 10px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* Hero Slider - Mobile Small Compact */
    .hero-slider {
        height: 300px;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .slide img {
        object-fit: cover !important;
        object-position: center;
        width: 100% !important;
        height: 100% !important;
        display: block;
    }
    
    /* Ultra compact mobile controls */
    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 12px;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.3);
    }
    
    .prev-arrow {
        left: 8px;
    }
    
    .next-arrow {
        right: 8px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 5px;
        padding: 5px 10px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        background: rgba(255,255,255,0.8);
    }
    
    .dot.active {
        background: #dc3545;
        transform: scale(1.4);
    }
    
    .dot.active::after {
        width: 2px;
        height: 2px;
    }
    
    .featured-products h2,
    .categories h2 {
        font-size: 20px;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    /* Hero Slider - Mobile Extra Small Compact */
    .hero-slider {
        height: 280px;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        margin-bottom: 0;
    }
    
    .slide img {
        object-fit: cover !important;
        object-position: center;
        width: 100% !important;
        height: 100% !important;
        display: block;
    }
    
    /* Minimal mobile controls */
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 10px;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(6px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .prev-arrow {
        left: 6px;
    }
    
    .next-arrow {
        right: 6px;
    }
    
    .slider-dots {
        bottom: 8px;
        gap: 4px;
        padding: 4px 8px;
    }
    
    .dot {
        width: 5px;
        height: 5px;
        background: rgba(255,255,255,0.8);
        border: 1px solid rgba(255,255,255,0.9);
    }
    
    .dot.active {
        background: #dc3545;
        border-color: #dc3545;
        transform: scale(1.5);
    }
    
    .dot.active::after {
        width: 2px;
        height: 2px;
    }
    
    .featured-products,
    .categories {
        padding: 20px 0;
    }
    
    .featured-products h2,
    .categories h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .whatsapp-btn {
        padding: 6px 10px;
    }
    
    .whatsapp-btn i {
        font-size: 18px;
    }
    
    .whatsapp-text {
        font-size: 9px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 60px;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 15px 30px;
    }
    
    .slide-text h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .slide-text h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .slide-text p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .price {
        margin-bottom: 15px;
    }
    
    .new-price {
        font-size: 20px;
    }
    
    .slide-image {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero-slider {
        height: auto;
        page-break-inside: avoid;
    }
    
    .slide {
        position: static;
        opacity: 1;
        display: block;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-btn {
        animation: none;
    }
}

/* ===== MODERN SIDEBAR RESPONSIVE ===== */

/* Tablet and Mobile */
@media (max-width: 992px) {
    /* Show mobile filter toggle */
    .mobile-filter-toggle {
        display: block;
    }
    
    /* Hide desktop sidebar initially */
    .modern-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 999;
        border-radius: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
    }
    
    /* Show sidebar when active */
    .modern-sidebar.mobile-active {
        left: 0;
    }
    
    /* Show mobile close button */
    .mobile-close-btn {
        display: flex;
    }
    
    /* Adjust sidebar header for mobile */
    .modern-sidebar-header {
        padding: 16px 20px;
        border-radius: 0;
    }
    
    .modern-sidebar-title {
        font-size: 16px;
    }
    
    /* Adjust filter sections for mobile */
    .filter-section-header {
        padding: 16px 20px;
    }
    
    .filter-options-wrapper,
    .modern-price-inputs,
    .modern-tags-wrapper,
    .modern-features-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    /* Smaller mobile sidebar */
    .modern-sidebar {
        width: 280px;
    }
    
    /* Adjust mobile filter toggle */
    .filter-toggle-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Compact filter sections */
    .filter-section-header {
        padding: 14px 16px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .filter-options-wrapper,
    .modern-price-inputs,
    .modern-tags-wrapper,
    .modern-features-wrapper {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
    }
    
    /* Smaller filter options */
    .filter-option-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .option-count {
        font-size: 11px;
    }
    
    /* Compact price inputs */
    .modern-price-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Smaller tags */
    .tag-content {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Compact features */
    .feature-content {
        padding: 10px 12px;
    }
    
    .feature-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Full width mobile sidebar */
    .modern-sidebar {
        width: 100%;
        left: -100%;
    }
    
    /* Very compact mobile elements */
    .filter-toggle-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .modern-sidebar-header {
        padding: 12px 16px;
    }
    
    .modern-sidebar-title {
        font-size: 15px;
    }
    
    .filter-section-header {
        padding: 12px 16px;
    }
    
    .filter-options-wrapper,
    .modern-price-inputs,
    .modern-tags-wrapper,
    .modern-features-wrapper {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 12px;
    }
}

/* Animation classes for mobile sidebar */
.sidebar-slide-in {
    animation: slideInLeft 0.3s ease;
}

.sidebar-slide-out {
    animation: slideOutLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Desktop styles - keep sidebar visible */
@media (min-width: 993px) {
    .mobile-filter-toggle {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .mobile-close-btn {
        display: none;
    }
    
    .modern-sidebar {
        position: sticky;
        width: auto;
        height: auto;
        left: auto;
        top: 20px;
        border-radius: 12px;
    }
}
