.ahura-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background-color: #eef1f6;
}

.ahura-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: none;
    border-radius: 12px;
    background-color: #e2e7ef;
    color: var(--ahura-primary);
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}

.ahura-search-btn svg {
    width: 20px;
    height: 20px;
}

.ahura-search-btn:hover {
    background-color: var(--ahura-primary);
    color: #fff;
}

.ahura-search-loading .ahura-search-btn svg {
    animation: ahura-spin 1s linear infinite;
}

@keyframes ahura-spin {
    to {
        transform: rotate(360deg);
    }
}

.ahura-search-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 10px;
    font-size: 14px;
    color: var(--ahura-text);
}

.ahura-search-input::placeholder {
    color: rgba(var(--ahura-text-rgb), .5);
}

.ahura-search-cat-select {
    max-width: 150px;
    height: 40px;
    flex: none;
    border: none;
    outline: none;
    border-radius: 10px;
    background: transparent;
    padding: 0 8px;
    font-size: 13px;
    color: var(--ahura-secondary);
    cursor: pointer;
}

.ahura-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 340px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    background-color: var(--ahura-background);
    box-shadow: 0 18px 40px rgba(138, 27, 227, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.ahura-search-open .ahura-search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ahura-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: background-color .25s ease;
}

.ahura-search-item:hover {
    background-color: rgba(138, 27, 227, .045);
}

.ahura-search-item-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 10px;
    background-color: rgba(var(--ahura-secondary-rgb), .07);
    overflow: hidden;
}

.ahura-search-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ahura-search-item-img svg {
    width: 22px;
    height: 22px;
    color: var(--ahura-secondary);
}

.ahura-search-item-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.ahura-search-item-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ahura-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ahura-search-item-price {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ahura-primary);
}

.ahura-search-empty {
    padding: 18px;
    text-align: center;
    font-size: 13px;
    color: rgba(var(--ahura-text-rgb), .6);
}

.ahura-search-viewall {
    display: block;
    padding: 12px;
    text-align: center;
    background-color: rgba(138, 27, 227, .08);
    color: var(--ahura-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s ease;
}

.ahura-search-viewall:hover {
    background-color: rgba(138, 27, 227, .16);
}

@media (max-width: 767px) {
    .ahura-search-form {
        padding: 5px;
    }

    .ahura-search-btn {
        width: 38px;
        height: 38px;
    }

    .ahura-search-btn:hover {
        background-color: var(--ahura-primary);
        color: #fff;
    }

    .ahura-search-input {
        height: 40px;
        font-size: 16px;
    }

    .ahura-search-cat-select {
        max-width: 110px;
        font-size: 12px;
    }

    .ahura-search-dropdown {
        max-height: 60vh;
    }

    .ahura-search-item {
        padding: 10px 12px;
    }
}