/* Add custom CSS styles below */

#page-main-title {
    visibility: hidden !important;
}

header.store-header {
    display: flex !important;
    flex-direction: column !important;
}

header.store-header > #mainnav {
    order: 1 !important;
}

header.store-header > .top-navbar {
    order: 2 !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
}

header.store-header > .top-navbar salla-contacts,
header.store-header > .top-navbar .s-contacts-header {
    display: none !important;
}

.desktop-search-trigger{
    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;
    margin:0 15px 0 15px;

    border:1px solid #e5e7eb;
    border-radius:50%;
    background:#fff;
    color:#374151;

    cursor:pointer;
    transition:all .25s ease;
}

.desktop-search-trigger svg{
    width:22px;
    height:22px;
}

.desktop-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 20px 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}

.desktop-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.desktop-search-modal {
    position: relative;
    width: 100%;
    max-width: 850px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
    transform: translateY(-20px);
    transition: 0.25s ease;
}

.desktop-search-overlay.is-open .desktop-search-modal {
    transform: translateY(0);
}

.desktop-search-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.desktop-search-content {
    width: 100%;
    padding-top: 18px;
}

.desktop-search-content salla-search,
.desktop-search-content .search-container,
.desktop-search-content .s-search-inline,
.desktop-search-content .s-search-input-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.desktop-search-content .s-search-input {
    width: 100% !important;
    height: 54px !important;
    padding-right: 50px !important;
    border-radius: 14px !important;
    border: 1px solid #dce2e9 !important;
    background: #f6f8fa !important;
    font-size: 16px !important;
}

body.desktop-search-open {
    overflow: hidden !important;
}

@media (min-width: 768px) {

    header.store-header > .top-navbar {
        display: none !important;
    }
}

@media (max-width: 767px) {

    .desktop-search-trigger,
    .desktop-search-overlay {
        display: none !important;
    }

    header.store-header > .top-navbar {
        display: block !important;
        padding: 10px 0 14px !important;
    }

    header.store-header > .top-navbar > .container {
        display: block !important;
        width: calc(100% - 30px) !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    header.store-header > .top-navbar > .container > .flex-1 {
        width: 100% !important;
        min-width: 0 !important;
    }

    header.store-header > .top-navbar salla-search,
    header.store-header > .top-navbar .search-container,
    header.store-header > .top-navbar .s-search-inline,
    header.store-header > .top-navbar .s-search-input-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    header.store-header > .top-navbar .s-search-input {
        width: 100% !important;
        height: 44px !important;
        border-radius: 12px !important;
    }
}