/* ===== 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;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .search-bar {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Navigation Mobile - Nav menüyü logonun yanına taşı */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-content {
        padding: 20px;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .main-menu .menu-item {
        border-bottom: 1px solid #eee;
    }
    
    .main-menu .menu-item a {
        display: block;
        padding: 15px 0;
        color: #333;
        text-decoration: none;
        font-weight: 500;
    }
    
    .main-menu .menu-item.special-item a {
        color: #e74c3c;
        font-weight: 600;
    }
    
    .main-menu .menu-item a i {
        margin-right: 8px;
        width: 16px;
        text-align: center;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Slider Mobile */
    .hero-slider {
        height: 350px;
    }
    
    .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;
    }
    
    .header-action span {
        display: none;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-text h2 {
        font-size: 24px;
    }
    
    .slide-text h3 {
        font-size: 14px;
    }
    
    .slide-text p {
        font-size: 12px;
    }
    
    .new-price {
        font-size: 20px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    .slide-image {
        height: 150px;
    }
    
    /* 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 {
        height: 250px;
    }
    
    .slide-text h2 {
        font-size: 20px;
    }
    
    .slide-text h3 {
        font-size: 12px;
    }
    
    .new-price {
        font-size: 18px;
    }
    
    .slide-image {
        height: 120px;
    }
    
    .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 {
        height: 200px;
    }
    
    .slide-content {
        padding: 10px;
    }
    
    .slide-text h2 {
        font-size: 18px;
    }
    
    .slide-text h3 {
        font-size: 11px;
    }
    
    .slide-text p {
        font-size: 10px;
    }
    
    .new-price {
        font-size: 16px;
    }
    
    .old-price {
        font-size: 12px;
    }
    
    .slide-image {
        height: 100px;
    }
    
    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .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,
    .mobile-menu {
        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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Bu kısım isteğe bağlı olarak dark mode desteği için kullanılabilir */
}
