/* Estilos para el Buscador AJAX Custom */
.ash-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.ash-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 15px;
    transition: box-shadow 0.3s;
}

.ash-search-form:focus-within {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.ash-search-category-select {
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 13px;
    color: inherit;
    border-right: 1px solid #eee;
    margin-right: 10px;
    outline: none;
    max-width: 150px;
}

.ash-search-field {
    border: none !important;
    outline: none !important;
    padding: 10px !important;
    width: 100%;
    font-size: 14px;
}

.ash-search-submit {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    color: #800020;
    /* Color Bordo */
}

.ash-loading-text {
    display: none;
    font-size: 13px;
    font-weight: 700;
    color: #800020;
    /* Color Bordo */
    margin-right: 5px;
    white-space: nowrap;
    animation: ash-pulse 1.5s infinite;
}

.ash-search-form.loading .ash-loading-text {
    display: block !important;
}

/* Remove button spinner since we have text now */
.ash-search-form.loading .ash-search-submit svg {
    opacity: 1;
    /* Keep icon visible */
}

.ash-search-form.loading .ash-search-submit::after {
    display: none;
}

@keyframes ash-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.ash-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 10px;
    display: none;
    overflow: hidden;
}

.ash-search-results.active {
    display: block;
}

.ash-search-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.ash-search-item:hover {
    background: #f9f9f9;
}

.ash-search-item img {
    width: 50px;
    height: 50px;
    object-fit: contain !important;
    /* Force complete visibility */
    border-radius: 4px;
    margin-right: 15px;
    background-color: transparent;
    /* Changed to transparent to avoid white bars if not desired */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.ash-search-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.ash-search-price {
    font-size: 13px;
    color: #25D366;
    font-weight: 700;
}