/**
 * Waterway - TAM RESPONSİVE CSS
 * Tüm ekran boyutları için optimize
 */

/* =======================
   BREAKPOINTS
   ======================= */
/* Mobile: < 576px */
/* Tablet: 576px - 992px */
/* Small Laptop: 992px - 1366px */
/* Desktop: > 1366px */
/* Large Desktop: > 1400px */

/* =======================
   KÜÇÜK LAPTOP (1024px - 1366px)
   ======================= */
@media (min-width: 993px) and (max-width: 1366px) {
    /* Container */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* Header düzeni - overflow engelle */
    .nav-main .container {
        padding: 0 8px !important;
        gap: 8px !important;
    }
    
    /* Logo küçült */
    .logo {
        margin-left: 5px !important;
        flex-shrink: 0 !important;
    }
    
    .logo img {
        height: 45px !important;
    }
    
    /* Menü listesi - gap ile boşluk */
    nav#mainNav ul {
        gap: 2px !important;
    }
    
    /* Menü linkleri daha kompakt */
    nav ul li > a {
        font-size: 11px !important;
        padding: 12px 8px !important;
        letter-spacing: 0 !important;
    }
    
    /* Sağ taraf iconları - daha kompakt */
    .header-icons,
    header .nav-main > .container > div:last-child {
        gap: 4px !important;
        margin-right: 5px !important;
        flex-shrink: 0 !important;
    }
    
    /* Icon butonları küçült */
    .icon-btn {
        padding: 4px !important;
    }
    
    .icon-btn i {
        font-size: 16px !important;
    }
    
    /* Badge pozisyonu */
    .icon-btn .badge {
        font-size: 9px !important;
        min-width: 14px !important;
        height: 14px !important;
        top: -3px !important;
        right: -3px !important;
    }
    
    /* Dropdown menü genişliği */
    nav ul li.dropdown .dropdown-menu {
        min-width: 600px !important;
        max-width: 800px !important;
    }
    
    .modern-dropdown {
        min-width: 800px !important;
        max-width: 1000px !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .menu-grid-container {
        min-width: 600px !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* =======================
   ÇOK KÜÇÜK LAPTOP (993px - 1200px)
   ======================= */
@media (min-width: 993px) and (max-width: 1200px) {
    /* Logo küçült */
    .logo img {
        height: 38px !important;
    }
    
    .logo {
        margin-left: 0 !important;
    }
    
    /* Menü linkleri çok kompakt */
    nav ul li > a {
        font-size: 9px !important;
        padding: 10px 4px !important;
        letter-spacing: -0.3px !important;
    }
    
    /* Sağ iconlar kompakt */
    .header-icons,
    header .nav-main > .container > div:last-child {
        gap: 2px !important;
        margin-right: 0 !important;
    }
    
    .icon-btn {
        padding: 2px !important;
    }
    
    .icon-btn i {
        font-size: 14px !important;
    }
}

/* =======================
   HEADER DÜZENLEME - TÜM EKRANLAR
   ======================= */
/* Body scroll engelleme */
html, body {
    overflow-x: hidden !important;
}

/* Header scroll engelle ama içerik görünsün */
header {
    width: 100% !important;
    max-width: 100% !important;
}

.nav-main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Header flex container */
.nav-main .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Logo - sabit genişlik */
.nav-main .logo {
    flex: 0 0 auto !important;
    z-index: 10 !important;
}

/* Navigation - orta kısım, esnek */
@media (min-width: 993px) {
    nav#mainNav {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        z-index: 5 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    nav#mainNav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 5px !important;
    }
    
    /* Menü öğeleri taşmayı önle */
    nav#mainNav ul li {
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    nav#mainNav ul li > a {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* Sağ iconlar - sabit genişlik */
.header-icons {
    flex: 0 0 auto !important;
    z-index: 10 !important;
    margin-right: 5px !important;
}

/* =======================
   BASE / GLOBAL
   ======================= */
/* Container tam genişlik - responsive breakpoint'ler */
@media (max-width: 1320px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    /* Modern Dropdown - Tablet */
    .modern-dropdown {
        min-width: 700px !important;
        max-width: 900px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 16px;
    }
    
    body {
        font-size: 14px !important;
    }
    
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    
    /* Modern Dropdown - Küçük Tablet */
    .modern-dropdown {
        min-width: 600px !important;
        max-width: 700px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 12px;
    }
    
    body {
        font-size: 13px !important;
    }
    
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }
}

/* =======================
   TOPBAR
   ======================= */
@media (max-width: 992px) {
    .top-bar {
        font-size: 12px !important;
        padding: 8px 0 !important;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 11px !important;
        padding: 6px 0 !important;
    }
    
    .top-bar span {
        display: block;
        margin: 4px 0;
    }
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
@media (max-width: 1400px) {
    nav ul li a {
        font-size: 11px !important;
        padding: 12px 8px !important;
    }
    
    nav ul li.dropdown .dropdown-menu {
        min-width: 700px !important;
        max-width: 900px !important;
    }
    
    .header-icons,
    header .nav-main > .container > div:last-child {
        gap: 6px !important;
    }
    
    .icon-btn i {
        font-size: 16px !important;
    }
}

@media (max-width: 1200px) {
    .logo img {
        height: 40px !important;
    }
    
    nav ul li a {
        font-size: 9px !important;
        padding: 10px 5px !important;
    }
    
    nav ul li.dropdown .dropdown-menu {
        min-width: 600px !important;
        max-width: 800px !important;
    }
    
    .menu-grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Header icon aralıklarını azalt */
    header .nav-main > .container > div:last-child,
    .header-icons {
        gap: 4px !important;
    }
    
    .icon-btn {
        padding: 3px !important;
    }
    
    .icon-btn i {
        font-size: 14px !important;
    }
}

@media (max-width: 992px) {
    /* =================================
       🍔 MODERN MOBİL MENÜ - YEPYENİ TASARIM
       ================================= */
    
    .nav-main {
        padding: 10px 0 !important;
    }
    
    .logo img {
        height: 42px !important;
    }
    
    /* ===== HAMBURGER MENÜ - SOLDAN AÇILIR ===== */
    nav#mainNav {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        box-shadow: 8px 0 40px rgba(0,0,0,0.15) !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* Menü açıkken */
    nav#mainNav.mobile-menu-open {
        left: 0 !important;
    }
    
    /* Menü içindeki tüm elemanlar tıklanabilir */
    nav#mainNav * {
        pointer-events: auto !important;
    }
    
    /* ===== MENÜ HEADER - GRADIENT ===== */
    nav#mainNav::before {
        content: '☰ MENÜ';
        display: flex;
        align-items: center;
        padding: 28px 24px;
        background: linear-gradient(135deg, #0077BE 0%, #00a8cc 50%, #00BCD4 100%);
        color: white;
        font-weight: 800;
        font-size: 20px;
        letter-spacing: 3px;
        text-transform: uppercase;
        box-shadow: 0 4px 20px rgba(0, 119, 190, 0.3);
    }
    
    /* ===== CLOSE BUTTON - MODERN ===== */
    nav#mainNav .mobile-menu-close {
        display: none;
        position: fixed;
        top: 20px;
        left: 244px;
        background: rgba(255,255,255,0.25);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255,255,255,0.3);
        width: 40px;
        height: 40px;
        border-radius: 12px;
        color: white;
        font-size: 20px;
        cursor: pointer;
        z-index: 100000;
        transition: all 0.3s ease;
    }
    
    nav#mainNav .mobile-menu-close:hover {
        background: rgba(255,255,255,0.4);
        transform: rotate(90deg);
    }
    
    nav#mainNav.mobile-menu-open .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ===== MENÜ LİSTESİ ===== */
    nav#mainNav ul {
        flex-direction: column;
        padding: 16px 0;
        margin: 0;
        list-style: none;
    }
    
    nav#mainNav ul li {
        width: 100%;
        margin: 0;
        border: none;
    }
    
    /* ===== MENÜ LİNKLERİ - MODERN TASARIM ===== */
    nav#mainNav ul li > a {
        display: flex;
        align-items: center;
        padding: 16px 24px;
        font-size: 15px;
        color: #1e293b;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: none !important;
        background: transparent !important;
        border-left: 4px solid transparent;
        margin: 2px 12px;
        border-radius: 0 12px 12px 0;
    }
    
    nav#mainNav ul li > a:hover {
        background: linear-gradient(90deg, rgba(0, 119, 190, 0.1) 0%, rgba(0, 188, 212, 0.05) 100%) !important;
        color: #0077BE !important;
        border-left-color: #0077BE;
        padding-left: 28px;
    }
    
    nav#mainNav ul li > a i {
        margin-right: 14px;
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: #64748b;
        transition: color 0.3s ease;
    }
    
    nav#mainNav ul li > a:hover i {
        color: #0077BE;
    }
    
    /* ===== DROPDOWN TOGGLE ===== */
    nav#mainNav ul li.dropdown > a.dropdown-toggle {
        position: relative;
    }
    
    nav#mainNav ul li.dropdown > a.dropdown-toggle::after {
        content: '';
        position: absolute;
        right: 24px;
        width: 10px;
        height: 10px;
        border-right: 2px solid #94a3b8;
        border-bottom: 2px solid #94a3b8;
        transform: rotate(45deg);
        transition: all 0.3s ease;
    }
    
    nav#mainNav ul li.dropdown.open > a.dropdown-toggle::after {
        transform: rotate(-135deg);
        border-color: #0077BE;
    }
    
    /* ===== DROPDOWN MENU ===== */
    nav#mainNav ul li.dropdown .dropdown-menu {
        display: none !important;
        background: #f1f5f9 !important;
        padding: 8px 0 !important;
        margin: 0 12px 8px 12px !important;
        overflow: visible !important;
        width: calc(100% - 24px) !important;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 12px !important;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    
    nav#mainNav ul li.dropdown.open .dropdown-menu {
        display: block !important;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ===== MODERN DROPDOWN - LİSTE STİLİ ===== */
    nav#mainNav .modern-dropdown,
    nav#mainNav .dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        min-width: auto !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: #f8fafc !important;
        border: none !important;
        margin: 0 !important;
    }
    
    /* Alt menü öğeleri - basit liste */
    nav#mainNav .modern-dropdown-item,
    nav#mainNav .dropdown-section {
        display: block !important;
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    nav#mainNav .modern-dropdown-item:last-child,
    nav#mainNav .dropdown-section:last-child {
        border-bottom: none !important;
    }
    
    /* Alt menü linkleri */
    nav#mainNav .modern-dropdown-item a,
    nav#mainNav .dropdown-section a,
    nav#mainNav .modern-dropdown-parent,
    nav#mainNav .dropdown-parent {
        display: block !important;
        padding: 14px 24px 14px 40px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        background: transparent !important;
    }
    
    nav#mainNav .modern-dropdown-item a:hover,
    nav#mainNav .dropdown-section a:hover,
    nav#mainNav .modern-dropdown-parent:hover,
    nav#mainNav .dropdown-parent:hover {
        background: #e0f2fe !important;
        color: #0077BE !important;
        padding-left: 48px !important;
    }
    
    /* Alt kategoriler gizle - sadece ana kategori göster */
    nav#mainNav .modern-dropdown-children,
    nav#mainNav .dropdown-children,
    nav#mainNav .modern-dropdown-title {
        display: none !important;
    }
    
    /* Grid yapısını kaldır */
    nav#mainNav .menu-grid-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }
    
    /* Parent kategori - TIKLANABİLİR */
    nav#mainNav .dropdown-parent {
        display: block !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #0077BE !important;
        background: rgba(0,119,190,0.05) !important;
        margin: 4px 12px !important;
        border-radius: 6px !important;
        border: none !important;
        border-bottom: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        transform: none !important;
        position: relative !important;
    }
    
    nav#mainNav .dropdown-parent:hover {
        background: rgba(0,119,190,0.1) !important;
    }
    
    nav#mainNav .dropdown-parent::after {
        content: none !important;
        display: none !important;
    }
    
    nav#mainNav .dropdown-parent i {
        font-size: 12px !important;
        margin-right: 8px !important;
        display: inline-block !important;
        visibility: visible !important;
    }
    
    /* Alt kategoriler - SOLA KAYMASIN, HER ZAMAN GÖSTER */
    nav#mainNav .dropdown-children {
        display: flex !important;
        flex-direction: column !important;
        padding: 4px 0 !important;
        background: white !important;
        visibility: visible !important;
        opacity: 1 !important;
        gap: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    
    /* Alt kategori linkleri - SOLA KAYMASIN */
    nav#mainNav .dropdown-children a {
        display: block !important;
        padding: 10px 15px 10px 35px !important;
        font-size: 13px !important;
        color: #666 !important;
        font-weight: 400 !important;
        transition: all 0.2s !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-decoration: none !important;
        border-left: 3px solid transparent !important;
        margin: 0 !important;
        transform: none !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    nav#mainNav .dropdown-children a:hover,
    nav#mainNav .dropdown-children a:active {
        background: rgba(0,119,190,0.08) !important;
        color: #0077BE !important;
        border-left-color: #0077BE !important;
        transform: none !important;
    }
    
    nav#mainNav .dropdown-children a i {
        font-size: 10px !important;
        margin-right: 8px !important;
        color: #0077BE !important;
        display: inline-block !important;
        opacity: 0.6 !important;
    }
    
    /* Header icon'ları küçült */
    .icon-btn i {
        font-size: 20px;
    }
}

/* Slide down animasyonu */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* =======================
   MOBILE BOTTOM NAVBAR
   ======================= */
/* Desktop'ta gizle */
@media (min-width: 993px) {
    .mobile-bottom-navbar {
        display: none !important;
    }
}

/* Mobil ve Tablet'te göster */
@media (max-width: 992px) {
    /* Header icon'ları mobilede gizle */
    header .nav-main > .container > div:last-child {
        display: none !important;
    }
    
    /* Mobile Bottom Navbar göster */
    .mobile-bottom-navbar {
        display: block !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Bottom navbar container */
    .mobile-bottom-navbar > div {
        display: flex !important;
        width: 100% !important;
    }
    
    /* Bottom navbar butonları - Eşit genişlik */
    .mobile-bottom-navbar a,
    .mobile-bottom-navbar button {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        transition: all 0.2s !important;
    }
    
    .mobile-bottom-navbar a:active,
    .mobile-bottom-navbar button:active {
        background: #f0f7ff !important;
        transform: scale(0.95) !important;
    }
    
    /* Body'e padding ekle (bottom navbar için) */
    body {
        padding-bottom: 70px !important;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 40px !important;
    }
    
    /* Bottom navbar daha kompakt */
    .mobile-bottom-navbar {
        height: 60px !important;
    }
    
    .mobile-bottom-navbar > div {
        height: 60px !important;
    }
    
    .mobile-bottom-navbar i {
        font-size: 20px !important;
        margin-bottom: 2px !important;
    }
    
    .mobile-bottom-navbar span {
        font-size: 10px !important;
    }
}

/* Hamburger Menü Butonu */
/* ===== HAMBURGER BUTTON - ANİMASYONLU ===== */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #0077BE, #00BCD4);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    color: white !important;
    font-size: 20px !important;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* ===== MOBİL MENÜ OVERLAY - SADECE SAĞ TARAF ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9500;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s;
    opacity: 0;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* =======================
   SLIDER
   ======================= */
@media (max-width: 1200px) {
    .hero-slider {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    .slider-container {
        height: 500px !important;
        border-radius: 0 !important;
    }
    
    .slide h1 {
        font-size: 40px !important;
        max-width: 500px !important;
    }
    
    .slide p {
        font-size: 16px !important;
        max-width: 500px !important;
    }
}

@media (max-width: 992px) {
    .slider-container {
        height: 450px !important;
        border-radius: 0 !important;
    }
    
    .slide h1 {
        font-size: 32px !important;
        max-width: 400px !important;
    }
    
    .slide p {
        font-size: 14px !important;
        max-width: 400px !important;
    }
    
    .slide a {
        font-size: 16px !important;
        padding: 12px 32px !important;
    }
    
    .slide img {
        max-width: 350px !important;
        max-height: 350px !important;
    }
    
    /* Ok butonları küçült */
    button[onclick*="changeSlide"] {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        margin-bottom: 40px !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    .slider-container {
        height: 400px !important;
        border-radius: 0 !important;
    }
    
    /* Slider başlık - CLASS BASED */
    h1.slider-title {
        font-size: 24px !important;
        max-width: 90% !important;
    }
    
    /* Slider açıklama - CLASS BASED */
    p.slider-description {
        font-size: 13px !important;
        max-width: 90% !important;
        line-height: 1.4 !important;
    }
    
    /* Slider buton - CLASS BASED */
    a.slider-button {
        font-size: 14px !important;
        padding: 10px 24px !important;
        border-radius: 40px !important;
    }
    
    /* Ürün resmi küçülsün */
    .slider-container .slide img,
    .hero-slider img {
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    /* Ok butonları küçült */
    .slider-container button[onclick*="changeSlide"],
    button[onclick*="changeSlide"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        left: 15px !important;
        right: 15px !important;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    /* Slider yüksekliği daha düşük */
    .slider-container {
        height: 280px !important;
        border-radius: 0 !important;
    }
    
    /* Slider içindeki her slide */
    .slider-container .slide {
        height: 280px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* Slider başlık - KÜÇÜK EKRAN */
    h1.slider-title {
        font-size: 18px !important;
        max-width: 85% !important;
    }
    
    /* Slider açıklama - KÜÇÜK EKRAN */
    p.slider-description {
        font-size: 11px !important;
        max-width: 85% !important;
    }
    
    /* Slider buton - KÜÇÜK EKRAN */
    a.slider-button {
        font-size: 12px !important;
        padding: 8px 18px !important;
    }
    
    /* Ürün resmini gizle (mobilde çok yer kaplıyor) */
    .slider-container .slide img,
    .hero-slider img {
        display: none !important;
    }
    
    /* Ok butonları gizle */
    .slider-container button[onclick*="changeSlide"],
    button[onclick*="changeSlide"] {
        display: none !important;
    }
    
    .slider-dots {
        bottom: 12px !important;
        gap: 6px !important;
    }
    
    .slider-dot {
        width: 8px !important;
        height: 8px !important;
    }
}

/* =======================
   ÜRÜNLER SAYFASI - KATEGORİ SIDEBAR
   ======================= */
@media (max-width: 992px) {
    /* Kategori sidebar'ı gizle */
    .category-sidebar {
        display: none !important;
    }
    
    /* Layout'u tek sütun yap */
    .products-layout {
        grid-template-columns: 1fr !important;
    }
}

/* =======================
   ÜRÜN KARTLARI
   ======================= */
@media (max-width: 1200px) {
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    /* 5 sütunlular 3'e düşsün */
    .product-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* 4 sütunlular 3'e düşsün */
    .product-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Tüm grid'ler 2 sütun */
    .product-grid.cols-5,
    .product-grid.cols-4,
    .product-grid.cols-3,
    .product-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .product-card h3 {
        font-size: 16px !important;
    }
    
    .product-card .price {
        font-size: 18px !important;
    }
}

@media (max-width: 992px) {
    /* Mobilde ürün resmi küçült */
    .product-image {
        height: 220px !important;
    }
    
    /* Mobilde ürün kartı boşluklarını azalt */
    .product-info {
        padding: 8px 12px !important;
    }
    
    .product-card h3 {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 576px) {
    .product-grid,
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Tüm grid'ler 1 sütun */
    .product-grid.cols-5,
    .product-grid.cols-4,
    .product-grid.cols-3,
    .product-grid.cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* =======================
   ÜRÜN DETAY SAYFASI
   ======================= */
@media (min-width: 1600px) {
    .product-detail-grid {
        max-width: 1400px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 1200px) {
    .product-detail-grid {
        gap: 40px !important;
    }
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    /* Mobilde ürün resmi daha küçük */
    .product-image {
        height: 180px !important;
    }
    
    /* Mobilde çok az boşluk */
    .product-info {
        padding: 6px 10px !important;
    }
    
    .product-card h3 {
        font-size: 15px !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }
    
    .product-card .price {
        font-size: 16px !important;
        margin-top: 6px !important;
    }
    
    .product-card img {
        height: 100% !important;
        object-fit: contain !important;
    }
}

/* =======================
   FOOTER
   ======================= */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    footer {
        margin-top: 40px !important;
    }
    
    footer .container {
        padding: 40px 20px 0 !important;
    }
    
    /* Footer logo ortala */
    footer .logo img,
    footer img {
        margin: 0 auto 20px !important;
        display: block;
    }
    
    /* Sosyal medya butonları ortala */
    footer div[style*="display: flex; gap: 12px"],
    footer div[style*="display: flex"] {
        justify-content: center !important;
    }
    
    /* Tüm footer içeriği ortala */
    footer p,
    footer ul,
    footer li,
    footer div {
        text-align: center !important;
    }
    
    footer ul {
        list-style: none !important;
        padding: 0 !important;
    }
    
    /* İletişim bilgileri ortala */
    footer p[style*="display: flex"] {
        justify-content: center !important;
    }
}

/* =======================
   WHATSAPP FLOATING BUTTON
   ======================= */
@media (max-width: 992px) {
    /* WhatsApp butonunu bottom navbar'ın üstüne al */
    #whatsappFloat {
        bottom: 85px !important;
        right: 20px !important;
    }
    
    #whatsappFloat button {
        width: 55px !important;
        height: 55px !important;
        font-size: 26px !important;
    }
}

@media (max-width: 576px) {
    #whatsappFloat {
        bottom: 80px !important;
        right: 15px !important;
    }
    
    #whatsappFloat button {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    
    /* Tooltip'i gizle mobilde */
    #whatsappTooltip {
        display: none !important;
    }
}

/* =======================
   ÜRÜN DETAY SAYFASI (product.php) - Güncellendi
   ======================= */
@media (max-width: 992px) {
    /* Ana grid 2 sütun -> 1 sütun */
    .product-detail-grid,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    /* Ürün galerisi 4 sütun -> 3 sütun */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}

@media (max-width: 576px) {
    /* Ürün galerisi 3 sütun -> 2 sütun */
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* =======================
   ÖDEME SAYFASI (checkout.php)
   ======================= */
@media (max-width: 992px) {
    /* (ESKİ) Checkout grid 2 sütun -> 1 sütun: KALDIRILDI, her genişlikte 2 sütun kalsın */
    /*
    .checkout-grid,
    div[style*="grid-template-columns: 1fr 400px"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    */
    
    /* Checkout grid'i bozma - her zaman 2 sütun kalsın */
    .checkout-grid {
        display: grid !important;
        grid-template-columns: 1fr 500px !important;
        gap: 0 !important;
    }
    
    /* Form row 2 sütun -> 1 sütun */
    .form-row,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 576px) {
    /* Form row 3 sütun -> 1 sütun */
    .form-row-3,
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* =======================
   İLETİŞİM SAYFASI (contact.php)
   ======================= */
@media (max-width: 992px) {
    /* İletişim grid 2 sütun -> 1 sütun */
    .contact-grid,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .contact-form-box {
        padding: 30px 20px !important;
    }
}

@media (max-width: 576px) {
    .contact-form-box {
        padding: 20px 16px !important;
    }
}

/* =======================
   SEPET SIDEBAR
   ======================= */
@media (max-width: 576px) {
    /* Sepet sidebar tam genişlik */
    .modal-sidebar,
    #cartSidebar {
        width: 100% !important;
        right: -100% !important;
    }
    
    /* Açıkken tam görünür */
    .modal-sidebar.active,
    #cartSidebar.active {
        right: 0 !important;
    }
}



/* =======================
   CHECKOUT SAYFASI - TAM MOBİL UYUMLULUK
   ======================= */

/* Tablet */
@media (max-width: 1200px) {
    .checkout-grid {
        grid-template-columns: 1fr 450px !important;
        gap: 30px !important;
    }
    
    .step-container {
        padding: 0 15px !important;
        margin: 40px auto !important;
    }
    
    .step-container h1 {
        font-size: 32px !important;
    }
}

/* Tablet Küçük */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .step-container {
        margin: 30px auto !important;
    }
    
    .step-container h1 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    
    /* Step header yatay kalsın ama küçülsün */
    .step-header {
        margin-bottom: 30px !important;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .step-title {
        font-size: 12px !important;
    }
    
    /* Form section */
    .form-section,
    .checkout-grid > div > div[style*="background: white"] {
        padding: 25px 20px !important;
        border-radius: 15px !important;
    }
    
    .form-section h2 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }
    
    /* Form alanları - label üstte, input altta */
    .checkout-grid div[style*="display: flex; align-items: center; gap: 15px"],
    .checkout-grid div[style*="display: flex; align-items: flex-start; gap: 15px"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    
    .checkout-grid div[style*="flex: 0 0 150px"] {
        flex: none !important;
        width: 100% !important;
    }
    
    .checkout-grid label[style*="flex: 0 0 150px"] {
        flex: none !important;
        width: 100% !important;
        margin-bottom: 4px !important;
    }
    
    /* Input ve select tam genişlik */
    .checkout-grid input[type="text"],
    .checkout-grid input[type="email"],
    .checkout-grid input[type="tel"],
    .checkout-grid input[type="password"],
    .checkout-grid select,
    .checkout-grid textarea {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    
    /* Teslimat seçenekleri */
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] {
        padding: 14px !important;
    }
    
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] span {
        font-size: 14px !important;
    }
    
    /* Step butonları */
    .step-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .btn-step {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .step-container {
        padding: 0 12px !important;
        margin: 20px auto !important;
    }
    
    .step-container h1 {
        font-size: 24px !important;
        margin-bottom: 25px !important;
    }
    
    /* Step header dikey */
    .step-header {
        flex-direction: row !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
        justify-content: center !important;
    }
    
    .step-header::before {
        display: none !important;
    }
    
    .step-item {
        flex: 0 0 auto !important;
    }
    
    .step-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .step-title {
        font-size: 11px !important;
    }
    
    /* Form section */
    .form-section,
    .checkout-grid > div > div[style*="background: white"] {
        padding: 20px 15px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .form-section h2 {
        font-size: 18px !important;
        margin-bottom: 18px !important;
    }
    
    /* Fatura tipi radio butonları */
    .checkout-grid div[style*="display: flex; gap: 10px; align-items: center"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    /* Input ve select */
    .checkout-grid input[type="text"],
    .checkout-grid input[type="email"],
    .checkout-grid input[type="tel"],
    .checkout-grid input[type="password"],
    .checkout-grid select,
    .checkout-grid textarea {
        padding: 12px !important;
        font-size: 16px !important; /* iOS zoom engellemek için 16px */
    }
    
    /* Teslimat seçenekleri */
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] span {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] i {
        font-size: 16px !important;
    }
    
    /* Mesaj kutuları */
    #factory-message,
    #same-address-message,
    #delivery-address-section,
    #register-checkbox-wrapper,
    #password-fields-wrapper {
        padding: 15px !important;
        border-radius: 10px !important;
        margin: 15px 0 !important;
    }
    
    #register-checkbox-wrapper label {
        font-size: 14px !important;
    }
    
    /* Sipariş özeti */
    .order-summary,
    .checkout-grid > div:last-child > div[style*="background: white"] {
        padding: 20px 15px !important;
    }
    
    /* Ödeme yöntemleri */
    .checkout-grid label[style*="display: flex; align-items: flex-start; gap: 15px; padding: 20px"] {
        padding: 15px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* Mobil Küçük */
@media (max-width: 576px) {
    .step-container {
        padding: 0 10px !important;
        margin: 15px auto !important;
    }
    
    .step-container h1 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .step-container h1 i {
        display: none !important;
    }
    
    .step-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
    
    .step-title {
        font-size: 10px !important;
    }
    
    /* Form section */
    .form-section,
    .checkout-grid > div > div[style*="background: white"] {
        padding: 15px 12px !important;
        border-radius: 10px !important;
    }
    
    .form-section h2 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    .form-section h2 i {
        font-size: 14px !important;
    }
    
    /* Label */
    .checkout-grid label {
        font-size: 13px !important;
    }
    
    /* Input ve select */
    .checkout-grid input[type="text"],
    .checkout-grid input[type="email"],
    .checkout-grid input[type="tel"],
    .checkout-grid input[type="password"],
    .checkout-grid select,
    .checkout-grid textarea {
        padding: 11px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    
    /* Teslimat seçenekleri */
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] {
        padding: 10px !important;
        gap: 10px !important;
    }
    
    .checkout-grid label[style*="display: flex; align-items: center; gap: 12px; padding: 16px"] span {
        font-size: 12px !important;
    }
    
    /* Step butonları */
    .btn-step {
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    /* Sipariş özeti ürün kartları */
    .order-summary .product-item,
    .checkout-grid div[style*="display: flex; gap: 15px; padding: 15px"] {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    
    .order-summary .product-item img,
    .checkout-grid div[style*="display: flex; gap: 15px; padding: 15px"] img {
        width: 100% !important;
        max-width: 120px !important;
        margin: 0 auto !important;
    }
}

/* =======================
   SEPET SAYFASI (cart.php) - MOBİL
   ======================= */
@media (max-width: 992px) {
    /* Sepet grid */
    .cart-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    /* Sepet ürün satırları */
    .cart-item,
    div[style*="display: flex; gap: 20px; padding: 20px"] {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .cart-item img {
        width: 100% !important;
        max-width: 150px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 576px) {
    .cart-item,
    div[style*="display: flex; gap: 20px; padding: 20px"] {
        padding: 12px !important;
    }
    
    .cart-item h3 {
        font-size: 14px !important;
    }
    
    .cart-item .price {
        font-size: 16px !important;
    }
}

/* =======================
   ÜRÜN DETAY SAYFASI (product.php) - MOBİL GELİŞTİRME
   ======================= */
@media (max-width: 992px) {
    /* Ana grid */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Galeri navigasyon okları her zaman görünür */
    .gallery-nav-btn {
        opacity: 1 !important;
    }
    
    /* Thumbnail grid */
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Ürün bilgileri */
    .product-info-section {
        padding: 20px !important;
    }
    
    .product-info-section h1 {
        font-size: 24px !important;
    }
    
    .product-info-section .price {
        font-size: 28px !important;
    }
}

@media (max-width: 576px) {
    .product-detail-grid {
        gap: 20px !important;
    }
    
    /* Ana resim container */
    #mainImageContainer {
        height: 300px !important;
    }
    
    /* Thumbnail grid */
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .product-info-section h1 {
        font-size: 20px !important;
    }
    
    .product-info-section .price {
        font-size: 24px !important;
    }
    
    /* Sistem seçimi */
    .system-options {
        grid-template-columns: 1fr !important;
    }
    
    /* Sepete ekle butonu */
    .add-to-cart-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
    }
}

/* =======================
   SİPARİŞ BAŞARILI SAYFASI (order-success.php)
   ======================= */
@media (max-width: 768px) {
    .order-success-container {
        padding: 30px 20px !important;
        margin: 20px !important;
    }
    
    .order-success-container h1 {
        font-size: 24px !important;
    }
    
    .order-success-container .order-number {
        font-size: 18px !important;
    }
}

@media (max-width: 576px) {
    .order-success-container {
        padding: 20px 15px !important;
        margin: 15px 10px !important;
    }
    
    .order-success-container h1 {
        font-size: 20px !important;
    }
}

/* =======================
   GENEL MOBİL İYİLEŞTİRMELER
   ======================= */
@media (max-width: 768px) {
    /* Tüm butonlar touch-friendly */
    button, .btn, a.btn {
        min-height: 44px !important;
    }
    
    /* Form elemanları touch-friendly */
    input, select, textarea {
        min-height: 44px !important;
    }
    
    /* Radio ve checkbox büyüt */
    input[type="radio"],
    input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        min-height: 20px !important;
    }
}

/* iOS Safari için input zoom engelleme */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"] {
        font-size: 16px !important;
    }
}

/* =======================
   KÜÇÜK LAPTOP FIX - EN SON OVERRIDE
   ======================= */
@media screen and (min-width: 993px) and (max-width: 1400px) {
    /* Menü - yüksek öncelik */
    header nav ul li a,
    header nav ul li > a,
    .nav-main nav ul li a,
    .nav-main nav ul li > a,
    nav#mainNav ul li a,
    nav#mainNav ul li > a {
        font-size: 10px !important;
        padding: 10px 6px !important;
        white-space: nowrap !important;
    }
    
    /* Logo */
    header .logo img,
    .nav-main .logo img {
        height: 42px !important;
    }
    
    /* Sağ iconlar */
    header .header-icons,
    .nav-main .header-icons,
    header .nav-main > .container > div:last-child {
        gap: 4px !important;
        margin-right: 5px !important;
    }
    
    header .icon-btn,
    .nav-main .icon-btn {
        padding: 4px !important;
    }
    
    header .icon-btn i,
    .nav-main .icon-btn i {
        font-size: 15px !important;
    }
}

@media screen and (min-width: 993px) and (max-width: 1200px) {
    /* Çok küçük laptop - daha da kompakt */
    header nav ul li a,
    header nav ul li > a,
    .nav-main nav ul li a,
    .nav-main nav ul li > a,
    nav#mainNav ul li a,
    nav#mainNav ul li > a {
        font-size: 9px !important;
        padding: 8px 4px !important;
    }
    
    header .logo img,
    .nav-main .logo img {
        height: 38px !important;
    }
    
    header .icon-btn i,
    .nav-main .icon-btn i {
        font-size: 14px !important;
    }
}
