.search-container {
    position: relative;
    display: block;
    margin: 4px 0 0 0;
    float: left;
    height: 36px;
}

.search-suggestion:nth-child(even) {
    background-color: #f5f5f5;
}


.search-group-heading {
    text-align: left;
    text-transform: uppercase;
    padding: 8px 0 6px 16px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05rem;
    color: #999;
}

.search-input {
    padding: 0 16px;
    border: none;
    min-width: 360px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: bold;
    height: 36px;
    line-height: 44px;
    margin: 0;
    transition: all .1s ease;
    border-radius: 24px;
}

.search-input:focus {
    outline: none;
    background-color: #f5f5f5;
    font-size: 16px;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1)
}

.search-button {
    position: absolute;
    right: 8px;
    top: 16px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000;
}

.search-button:hover {
    color: #ffcd2a;
}

.searchButton {
    display: inline-block;
    width: 22px;
    margin-top: 6px;
    height: 22px;
}

.search-suggestions {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #000;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    transform: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    position: relative;
}

.search-suggestion:hover {
    background-color: #ffcc29;
}

html body .search-suggestion:hover .category-tag {
    background-color: #fff;
}

html body .search-suggestion:hover .suggestion-type {
    color: #000;
}

.search-suggestion.category-match:hover, 
.search-suggestion.category-match.hover .suggestion-type {
    background-color: #ffcc29;
}

.search-suggestion.category-match.hover .category-tag {
    background-color: #fff;
}

.suggestion-image {
    height: 48px;
    object-fit: contain;
    margin-right: 16px;
    width: 48px;
    background-color: #fff;
    padding: 4px;
    border: solid 1px #000;
}

.suggestion-content {
    flex-grow: 1;
    position: relative;
}

.suggestion-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    text-align: left;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    padding-right: 5rem;
}

.suggestion-type {
    font-size: 12px;
    color: #999;
    text-align: left;
}

.category-tag {
    display: block;
    margin-top: 0;
    padding: 2px 8px;
    background-color: #ffcd2a;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    position: absolute;
    right: 4px;
    top: 0;
    text-transform: uppercase;
}

.search-favorite-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: #ffcc29;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.search-favorite-btn span {
    line-height: 1;
    color: #333;
}

.search-favorite-btn:hover {
    background-color: #fff;
}

.search-favorite-btn.active span {
    color: #333;
}

.play-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffcc29;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.play-button:before {
    content: '★';
    color: #333;
}

.play-button.liked:before {
    color: #333;
}

.play-button:hover {
    background-color: #fff;
}

.productBox .play-button.liked {
    background-color: #ffcc29;
}

/* Fix position for play-button with top-right-slider class */
.productBox .top-right-slider {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 101;
    opacity: 1;
}

/* Prevent the favorite button click from navigating to product page */
.product-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* === RESPONSIVE SEARCH STYLES === */
@media screen and (max-width: 768px) {
    .search-input {
        min-width: 160px;
        font-size: 12px;
        height: 32px;
        padding: 0 12px;
    }
    
    .search-input:focus {
        font-size: 13px;
    }
    
    .search-container {
        height: 32px;
    }
    
    .search-button {
        top: 14px;
        right: 6px;
    }
    
    .searchButton {
        width: 18px;
        height: 18px;
        margin-top: 4px;
    }
    
    .search-suggestions {
        top: 36px;
        max-height: 250px;
    }
    
    .suggestion-image {
        height: 40px;
        width: 40px;
        margin-right: 12px;
    }
    
    .suggestion-name {
        font-size: 13px;
        padding-right: 4rem;
    }
    
    .suggestion-type {
        font-size: 11px;
    }
    
    .search-favorite-btn {
        width: 26px;
        height: 26px;
        right: 8px;
        top: 8px;
    }
}

@media screen and (max-width: 576px) {
    .search-input {
        min-width: 140px;
        font-size: 11px;
        height: 30px;
        padding: 0 10px;
    }
    
    .search-input:focus {
        font-size: 12px;
    }
    
    .search-container {
        height: 30px;
    }
    
    .search-button {
        top: 13px;
        right: 5px;
    }
    
    .searchButton {
        width: 16px;
        height: 16px;
        margin-top: 3px;
    }
    
    .search-suggestions {
        top: 34px;
        max-height: 200px;
    }
    
    .suggestion-image {
        height: 36px;
        width: 36px;
        margin-right: 10px;
    }
    
    .suggestion-name {
        font-size: 12px;
        padding-right: 3.5rem;
    }
    
    .suggestion-type {
        font-size: 10px;
    }
    
    .search-favorite-btn {
        width: 24px;
        height: 24px;
        right: 6px;
        top: 6px;
    }
    
    .category-tag {
        font-size: 9px;
        padding: 1px 6px;
    }
}

@media screen and (max-width: 480px) {
    .search-input {
        min-width: 120px;
        font-size: 10px;
        height: 28px;
        padding: 0 8px;
    }
    
    .search-input:focus {
        font-size: 11px;
    }
    
    .search-container {
        height: 28px;
    }
    
    .search-button {
        top: 12px;
        right: 4px;
    }
    
    .searchButton {
        width: 14px;
        height: 14px;
        margin-top: 2px;
    }
    
    .search-suggestions {
        top: 32px;
        max-height: 180px;
    }
    
    .suggestion-image {
        height: 32px;
        width: 32px;
        margin-right: 8px;
    }
    
    .suggestion-name {
        font-size: 11px;
        padding-right: 3rem;
    }
    
    .suggestion-type {
        font-size: 9px;
    }
    
    .search-favorite-btn {
        width: 22px;
        height: 22px;
        right: 4px;
        top: 4px;
    }
}

@media screen and (max-width: 360px) {
    .search-input {
        min-width: 100px;
        font-size: 9px;
        height: 26px;
        padding: 0 6px;
    }
    
    .search-input:focus {
        font-size: 10px;
    }
    
    .search-container {
        height: 26px;
    }
    
    .search-button {
        top: 11px;
        right: 3px;
    }
    
    .searchButton {
        width: 12px;
        height: 12px;
        margin-top: 1px;
    }
    
    .search-suggestions {
        top: 30px;
        max-height: 160px;
    }
    
    .suggestion-image {
        height: 28px;
        width: 28px;
        margin-right: 6px;
    }
    
    .suggestion-name {
        font-size: 10px;
        padding-right: 2.5rem;
    }
    
    .suggestion-type {
        font-size: 8px;
    }
    
    .search-favorite-btn {
        width: 20px;
        height: 20px;
        right: 2px;
        top: 2px;
    }
    
    .category-tag {
        font-size: 8px;
        padding: 1px 4px;
    }
}
