/**
 * Busca Mobile - Espaço Criativo
 * v1.3 - Seletores ultra específicos para vencer menu-mobile.css
 */

/* ==========================================================================
   CONTAINER - Seletor mega específico
   ========================================================================== */

html body .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-search.mobile-search-ec,
html body .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .search-style-3.mobile-search-ec,
html body .mobile-header-active .mobile-header-content-area .mobile-search.mobile-search-ec {
    padding: 15px !important;
    background: #f8f5ff !important;
    border-bottom: 1px solid #cfc7f2 !important;
    margin: 0 !important;
    display: block !important;
}

/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */

html body .mobile-search-ec form,
.mobile-header-content-area .mobile-search-ec form {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 2px dashed #cfc7f2 !important;
    border-radius: 50px !important;
    padding: 4px !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

html body .mobile-search-ec form:focus-within,
.mobile-header-content-area .mobile-search-ec form:focus-within {
    border-color: #6f42c1 !important;
    border-style: solid !important;
    box-shadow: 0 3px 12px rgba(111, 66, 193, 0.15) !important;
}

/* Input */
html body .mobile-search-ec form input,
html body .mobile-search-ec form input[type="text"],
html body .mobile-search-ec form input[name="term_search"],
.mobile-header-content-area .mobile-search-ec form input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body .mobile-search-ec form input::placeholder {
    color: #999 !important;
}

/* Botão */
html body .mobile-search-ec form button,
html body .mobile-search-ec form button[type="submit"],
.mobile-header-content-area .mobile-search-ec form button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    border-radius: 50% !important;
    background: #6f42c1 !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .mobile-search-ec form button:hover,
html body .mobile-search-ec form button:active {
    background: #3a2e85 !important;
}

html body .mobile-search-ec form button i {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #fff !important;
}

/* ==========================================================================
   SUGESTÕES (CHIPS)
   ========================================================================== */

html body .mobile-search-ec .search-suggest-mobile,
.mobile-header-content-area .mobile-search-ec .search-suggest-mobile {
    margin-top: 12px !important;
    display: none !important;
    padding: 0 !important;
    background: transparent !important;
}

html body .mobile-search-ec .search-suggest-mobile.is-visible,
.mobile-header-content-area .mobile-search-ec .search-suggest-mobile.is-visible {
    display: block !important;
}

html body .mobile-search-ec .search-suggest-mobile .ss-label,
.mobile-search-ec .ss-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #3a2e85 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

html body .mobile-search-ec .search-suggest-mobile .ss-chips,
.mobile-search-ec .ss-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

html body .mobile-search-ec .search-suggest-mobile .ss-chip,
.mobile-search-ec .ss-chip {
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #555 !important;
    background: #fff !important;
    border: 1px solid #cfc7f2 !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
}

html body .mobile-search-ec .search-suggest-mobile .ss-chip:hover,
html body .mobile-search-ec .search-suggest-mobile .ss-chip:active,
.mobile-search-ec .ss-chip:active {
    background: #6f42c1 !important;
    color: #fff !important;
    border-color: #6f42c1 !important;
}

/* ==========================================================================
   RESULTADOS DE PRODUTOS
   ========================================================================== */

html body .mobile-search-ec .search-results-mobile,
.mobile-header-content-area .mobile-search-ec .search-results-mobile {
    margin-top: 12px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #cfc7f2 !important;
    border-radius: 12px !important;
    display: none !important;
}

html body .mobile-search-ec .search-results-mobile.is-visible,
.mobile-header-content-area .mobile-search-ec .search-results-mobile.is-visible {
    display: block !important;
}

html body .mobile-search-ec .search-results-mobile .result-item,
.mobile-search-ec .result-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
}

html body .mobile-search-ec .search-results-mobile .result-item:last-child,
.mobile-search-ec .result-item:last-child {
    border-bottom: none !important;
}

html body .mobile-search-ec .search-results-mobile .result-item:active,
.mobile-search-ec .result-item:active {
    background: #f8f5ff !important;
}

html body .mobile-search-ec .search-results-mobile .result-item img,
.mobile-search-ec .result-item img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

html body .mobile-search-ec .search-results-mobile .result-info,
.mobile-search-ec .result-info {
    flex: 1 !important;
    min-width: 0 !important;
}

html body .mobile-search-ec .search-results-mobile .result-name,
.mobile-search-ec .result-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    display: block !important;
}

html body .mobile-search-ec .search-results-mobile .result-price,
.mobile-search-ec .result-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0cc3ce !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: block !important;
}

html body .mobile-search-ec .search-results-mobile .result-price .old,
.mobile-search-ec .result-price .old {
    font-size: 12px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin-right: 6px !important;
    font-weight: 400 !important;
}

/* Scrollbar */
html body .mobile-search-ec .search-results-mobile::-webkit-scrollbar {
    width: 4px !important;
}

html body .mobile-search-ec .search-results-mobile::-webkit-scrollbar-thumb {
    background: #cfc7f2 !important;
    border-radius: 4px !important;
}

html body .mobile-search-ec .search-results-mobile::-webkit-scrollbar-track {
    background: transparent !important;
}