/* Mobile category menu adjustments */
@media (max-width: 600px) {
    .header.shop .main-category {
        top: 48px !important;
    }
    .header.shop .main-category li a {
        font-size: 13px !important;
        padding: 8px 16px 8px 16px !important;
    }
    .header.shop .main-category li a i {
        font-size: 16px !important;
        margin-right: 8px !important;
    }
    .header.shop .main-category li .mega-menu {
        width: 100vw !important;
        left: 0 !important;
        padding: 10px !important;
    }
    .header.shop .main-category li .mega-menu .single-menu {
        width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 10px !important;
    }
    .header.shop .main-category li .mega-menu .single-menu img {
        max-width: 60px !important;
        height: auto !important;
    }
}
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-form {
    position: relative;
    width: 100%;
    padding-right: 40px; /* Space for close button */
}

.mobile-search-form input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 8px 40px 8px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    background: #f8f8f8;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-form input[type="search"]:focus {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.mobile-search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 8px;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mobile-search-form button:hover {
    color: #333;
}

.mobile-search-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search-close:hover {
    color: #333;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
