.search-wrapper {
    position: relative;
    max-width: 600px;
    margin-right: -15px !important;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-input {
    height: 45px;
    padding: 0 50px 0 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    z-index: 10;
    color: #666;
}

.search-icon-btn:hover {
    color: #007bff;
}

.search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* #desktop-search-backdrop {
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
} */

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    list-style: none;
}

#desktop-suggestions-overlay {
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    min-width: 800px;       
    max-width: 1000px;      
    max-height: 70vh;
    overflow-y: auto;
    z-index: 999;
    border: 1px solid #e0e0e0;
}

.suggestions-inner {
    background: #fff;
}

.search-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    list-style: none;
    display: block !important; 
}

.search-category-item {
    margin-bottom: 10px;
    padding-bottom: 10px;      
    border-bottom: 1px solid #eee;
    list-style: none;
}

.search-category-item:last-child {
    border-bottom: none;
}

.search-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.search-category-link:hover {
    color: #007bff;
}

.search-category-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.search-product-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    list-style: none;
}

.search-product-item:last-child {
    border-bottom: none;
}

.search-product-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

.search-product-link:hover {
    color: #007bff;
}

.search-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.search-product-content {
    flex: 1;
}

.search-product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.search-product-sku {
    font-size: 12px;
    color: #999;
}

.mobile-search-trigger {
    padding: 10px 15px;
}

.fake-search-input {
    cursor: pointer;
    transition: background 0.2s;
    background: #FFD200 !important;
}

.fake-search-input:hover {
    background: #ffe25c !important;
}

.fake-search-input svg {
    color: #000;      
}

.fake-search-input .text-muted {
    color: #000 !important;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.search-overlay.active {
    transform: translateX(0);
}

.search-overlay-inner {
    padding: 20px;
    min-height: 100%;
}

.search-overlay-top {
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.close-search-overlay {
    color: #000 !important;         
    text-decoration: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffd200 !important;    
    border: none !important;
    flex-shrink: 0;
    border-radius: 6px !important;     
    margin: 0 !important;                
    margin-right: 0 !important;            
    width: 24px;                           
    height: 44px;
}

.close-search-overlay:hover {
    background: #ffdb33 !important;    
}

.close-search-overlay svg {
    display: block;
    width: 20px;
    height: 20px;
}

.overlay-search-input {
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    flex: 1;
    border: 1px solid #ddd;
}

.search-form-overlay {
    flex: 1;
    margin: 0;
}

/* Popularne wyszukiwania */
.popular-searches {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.popular-searches h6 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.phrase-item {
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 20px !important;
}

.phrase-item:hover {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
}

.product-suggestions {
    margin-top: 20px;
}

.product-suggestions h6 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

#ajax-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    list-style: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.search-result-name:hover {
    color: #007bff;
}

.search-result-cart-btn {
    width: 44px;
    height: 44px;
    background: #7fa838;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.search-result-cart-btn:hover {
    background: #6d8f30;
}

.search-result-cart-btn svg {
    width: 20px;
    height: 20px;
}

.spinner-border {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1399px) {
    .search-wrapper {
        display: none !important;
    }
    
    .mobile-search-trigger {
        display: flex !important;
    }
}

@media (min-width: 1400px) {
    .mobile-search-trigger {
        display: none !important;
    }
    
    .search-overlay {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .search-wrapper {
        max-width: 400px;
    }
}

@media (min-width: 1200px) {
    .search-wrapper {
        max-width: 600px;
        margin-right 
    }
}

@media (max-width: 479px) {
    .fake-search-input span {
        display: none !important;
    }
    
    .fake-search-input {
        justify-content: center !important;
        width: auto !important;
        min-width: 50px;
        padding: 10px !important;
    }
    
    .mobile-search-trigger {
        padding: 10px 0;
    }
}

#desktop-suggestions-overlay::-webkit-scrollbar {
    width: 8px;
}

#desktop-suggestions-overlay::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#desktop-suggestions-overlay::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#desktop-suggestions-overlay::-webkit-scrollbar-thumb:hover {
    background: #555;
}