/* CLEAN MOBILE HEADER - SIMPLE AND WORKING */

/* Mobile header container */
.mobile-header-content {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 10px;
    position: relative;
    background: transparent; /* allow parent background (red) */
    width: 100%;
}
/* Mobile header strip color (match desktop theme - blue-purple background) */
.mobile-header { 
    background: #606593 !important; /* Match desktop header background */
    color: #fff !important; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile header burger menu button */
.mobile-header .burger-line { 
  background: #dc3545 !important; 
  height: 3px !important;
  width: 24px !important;
  box-shadow: 0 1px 2px rgba(220, 53, 69, 0.3) !important;
}
.mobile-header .mobile-menu-toggle:hover { background: rgba(255, 255, 255, 0.1) !important; }

/* Mobile header action buttons (cart, wishlist) */
.mobile-header .mobile-actions i { color: #fff !important; }
.mobile-header .mobile-logo h1 { color: #fff !important; }

/* Mobile logo text color when no image */
.mobile-header .mobile-logo h1 {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Menu Button - Left Aligned and vertically centered */
.mobile-menu-btn,
.mobile-menu-toggle {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Hamburger lines with better visibility - Red and Thick */
.burger-line,
.hamburger-line {
    width: 24px !important;
    height: 3px !important;
    background: #dc3545 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.3) !important;
}

.mobile-menu-btn:hover .burger-line,
.mobile-menu-toggle:hover .hamburger-line {
    background: #c82333 !important;
    transform: scaleY(1.2);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.5) !important;
}

/* Logo - Perfect center alignment */
.mobile-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 100px; /* Equal padding for perfect center */
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%; /* Perfect vertical center */
    transform: translateY(-50%); /* Perfect vertical center */
    margin: 0 auto;
    z-index: 5; /* Below action buttons */
}

.mobile-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    height: auto;
}

/* Logo image - Keep it prominent */
.mobile-site-logo,
.site-logo {
    max-height: 44px !important; /* Logo büyük kalsın */
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Mobile logo text */
.mobile-logo h1 {
    margin: 0;
    font-size: 1.5rem; /* Logo metni de büyük kalsın */
    font-weight: 700;
color: #dc2626;
}

/* Actions Container - Right aligned with better prominence */
.mobile-actions {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 4px; /* Reduced gap for closer buttons */
    position: absolute;
    right: 4px; /* Even closer to edge */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Individual action buttons - Bigger and more prominent */
.mobile-cart-btn,
.mobile-wishlist-btn,
.cart-link,
.wishlist-link {
    position: relative;
    width: 48px !important; /* Bigger size */
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #333 !important;
    text-decoration: none !important;
    background: transparent !important; /* Match main.php mobile style */
    border: none !important; /* No borders on mobile */
    transition: all 0.2s ease !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.mobile-cart-btn:hover,
.mobile-wishlist-btn:hover,
.cart-link:hover,
.wishlist-link:hover {
background: rgba(220, 38, 38, 0.1) !important;
    transform: scale(1.1) !important;
    text-decoration: none !important;
}

/* Action button icons - Bigger and more prominent - RED THEME */
.mobile-cart-btn i,
.mobile-wishlist-btn i,
.cart-link i,
.wishlist-link i,
.mobile-actions i,
.mobile-actions a i,
.mobile-actions button i {
    font-size: 20px !important;
    color: #dc3545 !important;
}

/* Wishlist icon color */
.mobile-wishlist-btn i,
.wishlist-link i {
    color: #e74c3c;
}

/* Count badges - RED THEME */
.mobile-cart-count,
.mobile-wishlist-count,
.cart-count,
.wishlist-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545 !important;
    color: white !important;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-wishlist-count,
.wishlist-count {
    background: #e74c3c;
}

/* Mobile Search Bar - Full width and properly spaced */
.mobile-search-bar {
    padding: 20px 15px 15px 15px;
    margin-top: 15px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important; /* Match desktop navigation gradient */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-search-form {
    position: relative;
    width: 100%;
}

.mobile-search-wrapper {
    display: flex;
    background: #f8f9fa !important; /* Match desktop search background */
    border: 2px solid #e9ecef !important; /* Match desktop search border */
    border-radius: 50px !important; /* Match desktop search border radius */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease !important;
}

/* Focus state to match desktop */
.mobile-search-wrapper:focus-within {
    border-color: #dc2626 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

.mobile-search-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.mobile-search-wrapper button {
    background: #dc2626;
    border: none;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
}
.mobile-search-wrapper button:hover {
    background: #b91c1c;
}

/* Mobile search input focus: match desktop red theme */
.mobile-search-bar input:focus {
    border-color: #dc2626 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

/* Mobile Search Form Button - Direct targeting for current HTML structure */
.mobile-search-bar form button[type="submit"],
.mobile-search-bar .search-form button[type="submit"] {
    background: #dc2626 !important;
    border: none !important;
    color: white !important;
    padding: 0 12px !important;
    cursor: pointer !important;
    border-radius: 0 23px 23px 0 !important; /* Square left, rounded right to match input */
    min-width: 44px !important;
    height: 44px !important;
    position: absolute !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-search-bar form button[type="submit"]:hover,
.mobile-search-bar .search-form button[type="submit"]:hover {
    background: #b91c1c !important;
    transform: scale(1.05) !important;
}

.mobile-search-bar form button[type="submit"] i,
.mobile-search-bar .search-form button[type="submit"] i {
    font-size: 16px !important;
    color: white !important;
}

/* Comprehensive Mobile Responsiveness */

/* Very small mobile devices (320-360px) */
@media (max-width: 360px) {
    .mobile-header-content {
        padding: 0 6px;
    }
    
    .mobile-menu-btn,
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        left: 3px;
    }
    
    .mobile-logo {
        padding: 0 94px; /* Perfect center for small screens */
    }
    
    .mobile-site-logo {
        max-height: 40px !important; /* Logo büyük kalsın */
    }
    
    .mobile-actions {
        gap: 2px; /* Very close buttons */
        right: 2px; /* Right at the edge */
    }
    
    .mobile-cart-btn,
    .mobile-wishlist-btn,
    .cart-link,
    .wishlist-link {
        width: 44px !important; /* Büyük butonlar */
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    .mobile-cart-btn i,
    .mobile-wishlist-btn i,
    .cart-link i,
    .wishlist-link i {
        font-size: 20px !important; /* Büyük ikonlar */
    }
    
    .mobile-cart-count,
    .mobile-wishlist-count,
    .cart-count,
    .wishlist-count {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        top: -2px;
        right: -2px;
    }
}

/* Small mobile devices (361-414px) */
@media (min-width: 361px) and (max-width: 414px) {
    .mobile-logo {
        padding: 0 100px;
    }
    
    .mobile-site-logo {
        max-height: 42px !important;
    }
    
    .mobile-actions {
        gap: 3px; /* Closer buttons */
    }
    
    .mobile-cart-btn,
    .mobile-wishlist-btn,
    .cart-link,
    .wishlist-link {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }
    
    .mobile-cart-btn i,
    .mobile-wishlist-btn i,
    .cart-link i,
    .wishlist-link i {
        font-size: 22px !important;
    }
}

/* Medium mobile devices (415-480px) */
@media (min-width: 415px) and (max-width: 480px) {
    .mobile-logo {
        padding: 0 110px;
    }
    
    .mobile-site-logo {
        max-height: 44px !important;
    }
    
    .mobile-actions {
        gap: 4px; /* Closer buttons */
    }
    
    .mobile-cart-btn,
    .mobile-wishlist-btn,
    .cart-link,
    .wishlist-link {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
    
    .mobile-cart-btn i,
    .mobile-wishlist-btn i,
    .cart-link i,
    .wishlist-link i {
        font-size: 24px !important;
    }
}

/* Large mobile devices (481-600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .mobile-logo {
        padding: 0 120px;
    }
    
    .mobile-site-logo {
        max-height: 46px !important;
    }
    
    .mobile-actions {
        gap: 4px; /* Closer buttons */
    }
    
    .mobile-cart-btn,
    .mobile-wishlist-btn,
    .cart-link,
    .wishlist-link {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
    
    .mobile-cart-btn i,
    .mobile-wishlist-btn i,
    .cart-link i,
    .wishlist-link i {
        font-size: 26px !important;
    }
}

/* Small tablets (601-768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .mobile-top-bar {
        height: 75px;
    }
    
    .mobile-header-content {
        height: 75px;
    }
    
    .mobile-logo {
        padding: 0 60px;
    }
    
    .mobile-site-logo {
        max-height: 46px;
    }
    
    .mobile-actions {
        padding: 5px;
        gap: 5px;
        border-radius: 26px;
    }
    
    .mobile-menu-btn,
    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
    }
    
    .mobile-cart-btn,
    .mobile-wishlist-btn,
    .cart-link,
    .wishlist-link {
        width: 44px;
        height: 44px;
    }
    
    .mobile-cart-btn i,
    .mobile-wishlist-btn i,
    .cart-link i,
    .wishlist-link i {
        font-size: 20px;
    }
    
    .mobile-cart-count,
    .mobile-wishlist-count,
    .cart-count,
    .wishlist-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -2px;
        right: -2px;
    }
}
