/* Style dla custom menu */
.nav-link-container {
    position: relative;
}

.main-nav-link {
    padding-right: 0 !important;
    margin-right: 5px;
}

.dropdown-btn {
    background: none;
    border: none;
    padding: 0 12px 0 0;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    color: inherit;
}

   

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

/* Rotacja strzałki gdy otwarte */
.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Ukryj dropdown domyślnie */
.dropdown-menu {
    display: none;
}

/* Pokaż gdy aktywne */
.dropdown.show .dropdown-menu {
    display: block;
}

/* Responsywność */
@media (max-width: 991px) {
    .nav-link-container {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .dropdown-btn {
        align-self: anchor-center;
        margin: -30px 0 0 180px;
        display: flex;
    }
}
/* Style dla menu urządzeń */
.urzadzenia-menu {
    margin: 0;
    padding: 0;
    margin-bottom: 30px;
}

.urzadzenia-menu .navbar-nav {
    width: 100%;
    justify-content: space-between;
    /*background-color: #fbfbff;*/
    background-color: #fbfbff;
    box-shadow: 0 0 22px 2px #e1e1e1;
    border-radius: 12px;
    border-top: 4px solid  #fc8096;
    
    padding: 0 16px;
}

.urzadzenia-menu .nav-link {
    /*color: #333;*/
    color: #485156;
    font-weight: 500;
    font-size: 17px;
    padding: 10px 20px;        
    transition: all 0.3s ease;
}

 .urzadzenia-menu .nav-link:hover {
    color: #fc8096;
 }


.urzadzenia-menu .dropdown-menu {
    border: none;
    background-color:  #fbfbff;
    box-shadow: 0 0 22px 2px #e1e1e1;
     border-top: 4px solid  #fc8096;
    border-radius: 12px;
    margin-top: 5px;
    color: #485156;
    padding: 0;
     
}

.urzadzenia-menu .dropdown-btn {
    color: #485156;
}

.urzadzenia-menu .dropdown-item {
    padding:10px 20px;
    transition: all 0.3s ease;
     color: #485156;
}

.urzadzenia-menu .dropdown-item:hover {
    background-color: #fc8096;
    color: #ffffff;
    border-radius: 12px;
}

/* Responsywność */
@media (max-width: 991px) {
    .urzadzenia-menu .navbar-nav {
        text-align: center;
    }
    
    .urzadzenia-menu .nav-item {
        margin: 5px 0;
    }
}

/* Wyszukiwarka produktów na żywo (js/product-search.js) */
.search-wrapper .stamar-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 280px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 70vh;
    overflow-y: auto;
}

.stamar-search-results[hidden] {
    display: none;
}

.stamar-search-results li {
    margin: 0;
    padding: 0;
}

.stamar-search-results li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.stamar-search-results li.is-active a,
.stamar-search-results li a:hover {
    background: #fdeef1;
}

.stamar-search-results img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.stamar-search-results mark {
    background: none;
    color: #d9586f;
    font-weight: 700;
    padding: 0;
}

.stamar-search-results .stamar-search-all button {
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 0;
    border-top: 1px solid #f2f2f2;
    background: none;
    color: #d9586f;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.stamar-search-results .stamar-search-all button.is-empty {
    color: #666;
    font-weight: 400;
}

@media (max-width: 870px) {
    .search-wrapper .stamar-search-results {
        min-width: 0;
    }
}

.stamar-search-results .stamar-search-noimg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}
