.search-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(43,43,43,.1);
    z-index: 900;
}
.search-overlay.active { display: block; }


.header-search {
    display: flex; align-items: center; gap: 20px;
    max-width: 428px; margin: 0 auto;
    position: relative; z-index: 1001;
}


.search-wrapper { position: relative; flex: 1; }

.search-input {
    width: 100%; height: 40px;
    border: 2px solid #C71848; border-radius: 10px;
    padding: 0 50px 0 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px; color: #333; outline: none;
    transition: border-color .2s;
    position: relative; z-index: 1002;
    box-sizing: border-box; 
}
.search-input:focus { border-color: #c0001e; }
.search-input::placeholder { color: #aaa; }

.search-btn {
    position: absolute; right: 0; top: 0;
    height: 40px; width: 64px;
    background: #C71848; border: none; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 1002;
}
.search-btn:hover { background: #a0001a; }


.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 11px);
    left: 50%;
    transform: translateX(-50%);
    width: 1158px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 15px 0 rgba(0,0,0,.15);
    z-index: 1002;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
}
.search-dropdown.active { display: block; }


.dropdown-inner {
    display: flex; align-items: stretch;
    padding: 15px 30px; gap: 22px;
}

.col-products { flex: 1; display: flex; flex-direction: column; }
.col-products.full-width { flex: 1; }
.col-categories { width: 450px; display: flex; flex-direction: column; }

.col-scroll {
    overflow-y: auto; max-height: 477px;
    scrollbar-width: thin; scrollbar-color: #ddd #fff;
    display: flex; flex-direction: column; gap: 13px;
}
.col-scroll::-webkit-scrollbar { width: 4px; }
.col-scroll::-webkit-scrollbar-track { background: #fff; }
.col-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.col-header {
    font-weight: 600; font-size: 18px; line-height: 1;
    color: #575B71; flex-shrink: 0; margin-bottom: 13px;
}


.see-all-wrap { text-align: right; padding-bottom: 15px; padding-right: 30px; }
.see-all {
    display: inline-block; font-weight: 600; font-size: 12px;
    color: #575B71; line-height: 1; text-decoration: none; cursor: pointer;
    transition: color .15s;
}
.see-all:hover { color: #C71848; }


.mobile-see-all { 
    display: none; 
}
       .desktop-see-all {
        padding:0;
        padding-top:15px; 
    }

.mobile-tabs { display: none; }


.product-item {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; border-radius: 10px; padding: 10px;
    transition: box-shadow .15s, border-color .15s;
    border: 1px solid rgba(191,198,218,.5);
    max-height: 90px; text-decoration: none;
}
.product-item:hover {
    border-color: #BFC6DA;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,.15);
}

.product-img { width: 65px; height: 65px; object-fit: contain; flex-shrink: 0; }
.product-img-placeholder {
    width: 65px; height: 65px;
    background: #f0f0f0; border-radius: 4px; flex-shrink: 0;
}
.product-info { flex: 1; min-width: 0; }

.product-art {
    font-weight: 400; font-size: 12px; line-height: 1;
    color: #575B71; margin-bottom: 6px;
    display: flex; gap: 2px 5px; align-items: center; flex-wrap: wrap;
}
.product-name {
    font-weight: 400; font-size: 14px; color: #575B71; line-height: 1.3;
}


.badge {
    display: inline-block; font-weight: 600; font-size: 12px;
    padding: 4px 7px; border-radius: 5px;
}
.badge-discount { border: 1px solid #DD4244; color: #DD4244; }
.badge-new      { border: 1px solid #30B357; color: #30B357; }
.badge-hit      { border: 1px solid #5083EF; color: #5083EF; }
.badge-fix      { border: 1px solid #C342DD; color: #C342DD; }
.badge-gift     { border: 1px solid #DD4244; color: #DD4244; }


.cat-item {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    cursor: pointer; border-radius: 10px; max-height: 90px;
    border: 1px solid rgba(191,198,218,.5);
    transition: box-shadow .15s, border-color .15s; text-decoration: none;
}
.cat-item:hover {
    border-color: #BFC6DA;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,.15);
}

.cat-img {
    width: 65px; height: 65px; object-fit: contain;
    flex-shrink: 0; background: #f8f8f8;
}
.cat-name { flex: 1; font-size: 13px; color: #222; }
.cat-badge {
    display: inline-block; font-weight: 600; font-size: 12px;
    padding: 4px 7px; border-radius: 5px;
    border: 1px solid #DD4244; color: #DD4244;
    line-height: 100%;
        align-self: flex-start;
}


.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 87px 72px;
}
.empty-state svg { margin-bottom: 19px; display: block; }
.empty-state p {
    font-weight: 600; font-size: 18px; line-height: 1; color: #575B71;
}


.loading-state { text-align: center; padding: 32px; color: #aaa; font-size: 14px; }
.spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid #eee; border-top-color: #c0001e;
    border-radius: 50%; animation: qs-spin .7s linear infinite;
    vertical-align: middle; margin-right: 8px;
}
@keyframes qs-spin { to { transform: rotate(360deg); } }
body.search-active {
    overflow: hidden;
}

@media(max-width:1285px){
    .search-dropdown {
    width: 800px;

    }

    .col-categories {
        width:300px;
    }
}

@media(max-width:1013px){
    .header-search {
        padding-top:5px;
    }
}


@media (max-width: 930px) {

    .header-search {
        max-width: 100%;
        background: #C71848;
        padding: 5px 6px;
    }

    .search-dropdown {
        top: calc(100% + 8px);
        width: 100%;
        max-height: 410px;
        overflow: hidden;
        display: none;
        flex-direction: column;
        border-radius: 20px;
    }
    .search-dropdown.active { display: flex !important; }

    .dropdown-scroll-area {
        flex: 1; overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        margin-right: 12px;
    }

    .col-scroll { max-height: none; overflow: visible; }

    .mobile-tabs {
        display: flex; z-index: 10; flex-shrink: 0;
        gap: 10px; padding-left: 15px;
    }
    .mobile-tab {
        padding-top: 19px; padding-bottom: 2px; text-align: center;
        font-weight: 600; font-size: 18px; color: rgba(87,91,113,.5);
        line-height: 1; cursor: pointer;
        border-bottom: 3px solid transparent; margin-bottom: -2px;
        transition: color .15s, border-color .15s;
    }
    .mobile-tab.active { color: #575B71; border-bottom-color: #575B71; }

    .dropdown-inner { flex-direction: column; padding: 13px 0 10px 15px; margin-right: 9px; }
    .col-categories { width: 100%; }

    .tab-panel > .col-header { display: none; }
    .tab-panel { display: none; }
    .tab-panel.active { display: flex; flex-direction: column; }

    .see-all-wrap {
        flex-shrink: 0; padding: 15px 30px 30px; background: #fff;
    }

       .header_2{
        padding:0 !important;
       }

              .desktop-see-all {
        display: none; 
    }
    
    .mobile-see-all {
        display: block;
    }
}
