/* ========================================
   DESKTOP FIX - CleanCat.ie
   Simple fix based on backup version
   Version: 1.0.7 - January 2025
   ======================================== */

/* DESKTOP ONLY - Simple backup-based fix */
@media (min-width: 769px) {
    
    /* ============ HIDE MOBILE ELEMENTS ============ */
    .mobile-sticky-header,
    .mobile-dropdown-menu,
    .mobile-menu-overlay,
    .mobile-nav-center,
    .mobile-services-btn,
    .mobile-cart-btn,
    .mobile-menu-toggle,
    .mobile-menu-section,
    .mobile-sticky-logo,
    .mobile-cart-count {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* ============ SHOW DESKTOP HEADER ============ */
    .header {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        opacity: 1 !important;
        z-index: 1000 !important;
    }
    
    .header__top,
    .header__bottom,
    .header__logo,
    .header__contacts,
    .header__iconsTxt,
    .header__link,
    .header__menuWrp {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* ============ STICKY NAVIGATION MENU ============ */
    .header__bottom {
        position: sticky !important;
        top: 0 !important;
        z-index: 1001 !important;
        background: #e8ecf2 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Enhanced sticky behavior */
    .header__bottom.sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1001 !important;
        background: #e8ecf2 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Menu wrapper inside sticky section */
    .header__menuWrp {
        max-width: 1173px !important;
        margin: 0 auto !important;
        height: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Menu items */
    .header__menuWrp > ul {
        display: flex !important;
        height: 100% !important;
        position: relative !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .header__menuWrp > ul > li {
        margin-left: 45px !important;
    }
    
    .header__menuWrp > ul > li:first-child {
        margin-left: 0 !important;
    }
    
    .header__menuWrp > ul > li > a {
        display: flex !important;
        height: 55px !important;
        align-items: center !important;
        color: #000227 !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        padding: 0 10px !important;
        transition: color 0.3s ease !important;
    }
    
    .header__menuWrp > ul > li > a:hover,
    .header__menuWrp > ul > li.current-menu-item > a,
    .header__menuWrp > ul > li.current-menu-ancestor > a {
        color: #00bbfc !important;
    }
    
    /* ============ FIX ORDER CALL BUTTON TEXT ALIGNMENT ============ */
    .header__link {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure text is perfectly centered vertically */
    .header__link {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Fix any potential text overflow */
    .header__link {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* ============ SMOOTH SCROLL BEHAVIOR ============ */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* Compensate for sticky header height */
    body {
        scroll-padding-top: 55px !important;
    }
}

/* ============ GENERAL IMPROVEMENTS ============ */
@media (min-width: 769px) {
    
    /* Ensure proper stacking */
    .header {
        z-index: 1000 !important;
    }
    
    .header__top {
        z-index: 100 !important;
    }
    
    .header__bottom {
        z-index: 1001 !important;
    }
}

/* ============ RESET BODY ============ */
body {
    transform: none !important;
    padding-top: 0 !important;
}

/* ============ MAIN CONTENT ============ */
.main,
.content,
.banner,
.tiles,
.doublecar,
.txtform {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
} 