.biodiv-product-search-wrapper {
    width: 100%;
    position: relative;
}

.biodiv-product-search-container {
    position: relative;
    width: 100%;
}

.biodiv-product-search-input-wrapper {
    position: relative;
    width: 100%;
}

.biodiv-product-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: none !important;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.biodiv-product-search-input:focus {
    outline: none;
}

.biodiv-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    pointer-events: none;
}

.biodiv-search-loader {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00719B;
    font-size: 16px;
}

.biodiv-product-search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.biodiv-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.biodiv-search-result-item:last-child {
    border-bottom: none;
}

.biodiv-search-result-item:hover {
    background: #f8f8f8;
}

.biodiv-search-result-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.biodiv-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biodiv-search-result-info {
    flex: 1;
    min-width: 0;
}

.biodiv-search-result-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biodiv-search-result-category {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.biodiv-search-result-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    gap: 2px;
}

.biodiv-search-result-price del {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.6;
    color: #000;
}

.biodiv-search-result-price ins {
    text-decoration: none;
    background: none !important;
}

.biodiv-search-result-price .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.biodiv-search-result-price del .woocommerce-Price-amount {
    font-size: 12px;
    font-weight: 400;
}

.biodiv-search-no-results {
    padding: 12px 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.biodiv-search-no-results p {
    margin: 0;
}

.biodiv-search-result-skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    min-width: 0;
}

.biodiv-search-result-skeleton:last-child {
    border-bottom: none;
}

.biodiv-search-skeleton-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    background: -webkit-linear-gradient(left, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: biodiv-skeleton-loading 1.5s infinite;
    -webkit-animation: biodiv-skeleton-loading 1.5s infinite;
    transform: translateZ(0);
    will-change: background-position;
}

.biodiv-search-skeleton-info {
    flex: 1;
    min-width: 0;
}

.biodiv-search-skeleton-line {
    height: 12px;
    background: -webkit-linear-gradient(left, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: biodiv-skeleton-loading 1.5s infinite;
    -webkit-animation: biodiv-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
    transform: translateZ(0);
    will-change: background-position;
}

.biodiv-search-skeleton-line-title {
    width: 80%;
    height: 14px;
}

.biodiv-search-skeleton-line-category {
    width: 50%;
    height: 10px;
}

.biodiv-search-skeleton-price {
    width: 60px;
    height: 14px;
    flex-shrink: 0;
    background: -webkit-linear-gradient(left, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: biodiv-skeleton-loading 1.5s infinite;
    -webkit-animation: biodiv-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    transform: translateZ(0);
    will-change: background-position;
}

@keyframes biodiv-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@-webkit-keyframes biodiv-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 767px) {
    .biodiv-product-search-input {
        padding: 10px 40px 10px 40px;
        font-size: 14px;
    }

    .biodiv-search-result-item {
        padding: 10px;
        gap: 10px;
    }

    .biodiv-search-result-image {
        width: 40px;
        height: 40px;
    }

    .biodiv-search-result-name {
        font-size: 14px;
    }

    .biodiv-search-result-category {
        font-size: 12px;
    }

    .biodiv-search-result-price .woocommerce-Price-amount {
        font-size: 16px;
    }

    .biodiv-search-result-price del {
        font-size: 11px;
    }

    .biodiv-search-result-price del .woocommerce-Price-amount {
        font-size: 11px;
    }
}
