
.hmyt-ajax-search-wrapper {
    position: relative;
    font-family: inherit;
    width: 100%;
}
.hmyt-ajax-search-form {
    display: flex !important;
    align-items: center;
    overflow: hidden;
    padding: 15px;
    position: relative !important;
    z-index: 101;
    background: #fff;
}

.hmyt-ajax-search-input {
    flex-grow: 1;
    border: 1px solid #dee1e9ee;
    border-radius: 8px !important;
    padding: 10px 45px 10px 15px !important;
    font-size: 16px;
    outline: none;
    background: transparent;
}


.hmyt-ajax-search-input::-webkit-search-decoration,
.hmyt-ajax-search-input::-webkit-search-cancel-button,
.hmyt-ajax-search-input::-webkit-search-results-button,
.hmyt-ajax-search-input::-webkit-search-results-decoration {
    -webkit-appearance:none;
}

.hmyt-ajax-search-button {
    position: absolute !important;
    
    top: 50% !important;
    transform: translateY(-50%);
    background-color: transparent !important;
    pointer-events: none;
    border: none !important;
    padding: 0 20px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    height: 100%;
    color: #555;
}

.hmyt-ajax-search-clear svg {
    fill: #555;
}

.hmyt-ajax-search-results {
    background: #fff !important;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    max-height: 500px;
    overflow-y: auto;
    z-index: 102;
    display: none;
    padding: 8px 0;
}

.hmyt-results-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.hmyt-result-item {
    margin: 0;
    padding: 4px 8px;
}


.hmyt-result-card {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none !important;
    color: #1f2937;
    border-radius: 10px;
    transition: background-color 0.15s ease;
    gap: 12px;
    border: none !important;
}

.hmyt-result-card:hover {
    background-color: #f3f4f6;
}


.hmyt-card-thumbnail {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hmyt-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}


.hmyt-card-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e3e8ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmyt-card-placeholder svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}


.hmyt-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
    gap: 2px;
}

.hmyt-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.hmyt-card-excerpt {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmyt-card-price {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.hmyt-card-price del {
    color: #9ca3af;
    font-size: 0.9em;
    font-weight: 400;
    margin-left: 6px;
    opacity: 0.8;
}

.hmyt-card-price ins {
    text-decoration: none;
    color: #059669;
    background: transparent;
}


.hmyt-card-price ins {
    text-decoration: none;
    background: transparent;
    font-weight: 700;
}


.hmyt-view-all-item {
    padding: 8px;
    margin-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.hmyt-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #e3e8ee;
    color: #4b5563;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.hmyt-view-all-link:hover {
    background-color: #e5e7eb;
    color: #111827;
}


.hmyt-suggestions-loaded { padding: 15px; }
.hmyt-suggestions-banner { margin-bottom: 15px; }
.hmyt-suggestions-banner img { width: 100%; height: auto; border-radius: 8px !important; display: block; }
.hmyt-suggestions-section { margin-bottom: 15px; }
.hmyt-suggestions-section:last-child { margin-bottom: 0; }
.hmyt-suggestions-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hmyt-suggestions-title { font-size: 14px; font-weight: 600; color: #333; gap: 10px;}
.hmyt-reset-recent {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.hmyt-suggestions-loaded > div svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}
.hmyt-suggestions-section:last-child {
    padding-top: 10px;
    border-top: 1px solid #ececec;
}
.hmyt-suggestions-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hmyt-suggestion-item {
    border: 1px solid #6b7280 ;
    color: #3c434a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hmyt-suggestion-item svg {
    margin-right: auto;
    opacity: 0.7;
    width: 15px !important;
}
.hmyt-suggestion-item:hover { background-color: #e0e2e5; }

.hmyt-ajax-search-submit {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-end;
}

.hmyt-view-all-results a {
    display: block;
    text-align: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.hmyt-view-all-results a:hover {
    background-color: #f1f1f1;
    color: #005a87;
}
.hmyt-search-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}


body.hmyt-search-overlay-active {
    overflow: hidden !important;
}


.hmyt-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00052a30;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}


.hmyt-ajax-search-wrapper.hmyt-modal-active .hmyt-search-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hmyt-ajax-search-results {
    text-align: right;
}


.hmyt-did-you-mean {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}



.hmyt-skeleton-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hmyt-skeleton-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.hmyt-skeleton-thumb {
    width: 50px;
    height: 50px;
    margin-left: 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
}

.hmyt-skeleton-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hmyt-skeleton-line {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.hmyt-skeleton-line.title {
    width: 70%;
    height: 14px;
}

.hmyt-skeleton-line.meta {
    width: 40%;
}


.hmyt-skeleton-thumb,
.hmyt-skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: hmyt-skeleton-loading 1.5s infinite linear;
}

@keyframes hmyt-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hmyt-no-results {
    display: flex;
    justify-content: center;
}




.hmyt-search-trigger {
    position: relative;
    cursor: text;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 42px;
}

.hmyt-search-trigger input {
    border: none;
    background: transparent;
    pointer-events: none;
    padding: 0 15px;
    width: 100%;
    color: #666;
}

.hmyt-trigger-icon {
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: #555;
}


.hmyt-search-modal-container {
    position: fixed;
    top: 15%;
    left: 50%;
   
    transform: translate(-50%, 10px) scale(0.95);
    width: 680px;
    max-width: 90%;
    background: #fff;
    z-index: 9999990;
    border-radius: 10px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
   
    transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.hmyt-ajax-search-wrapper.hmyt-modal-active .hmyt-search-modal-container {
    opacity: 1;
    visibility: visible;
   
    transform: translate(-50%, 0) scale(1);
}


.hmyt-search-modal-container .hmyt-ajax-search-form {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
}

.hmyt-search-modal-container .hmyt-ajax-search-input {
    font-size: 16px;
    height: auto;
}


.hmyt-search-modal-container .hmyt-ajax-search-results {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    max-height: 60vh;
    border-radius: 0 0 16px 16px;
    padding-top: 0;
}


.hmyt-modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.hmyt-modal-close-btn:hover {
    background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .hmyt-search-modal-container {
       
        top: 15%;
        left: 50%;
        width: 90%;
        max-width: 90%;
        height: auto;
        border-radius: 12px;
       
    }

   
    .hmyt-search-modal-container .hmyt-ajax-search-results {
        max-height: 55vh; 
    }

   
    .hmyt-modal-close-btn {
       
        top: -40px; 
        right: 0;
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
    }
}




.hmyt-search-modal-container .hmyt-ajax-search-results::-webkit-scrollbar {
    width: 4px;
}

.hmyt-search-modal-container .hmyt-ajax-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.hmyt-search-modal-container .hmyt-ajax-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: background-color 0.3s;
}

.hmyt-search-modal-container .hmyt-ajax-search-results::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}


.hmyt-search-modal-container .hmyt-ajax-search-results {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}




.hmyt-ajax-search-wrapper.hmyt-footer-instance {
    width: 0;
    height: 0;
    position: absolute;
    overflow: visible;
}

.hmyt-ajax-search-wrapper.hmyt-footer-instance .hmyt-search-trigger {
    display: none !important;
}

.hmyt-results-group {
    margin-bottom: 15px;
}

.hmyt-results-group:last-child {
    margin-bottom: 0;
}

.hmyt-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    padding: 8px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    border-top: 1px solid #f3f4f6;
    margin-bottom: 5px;
}

.hmyt-group-header svg {
    width: 15px;
    height: 15px;
}


.hmyt-results-group:first-child .hmyt-group-header {
    border-top: none;
}

.hmyt-view-all-wrapper {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
}


.hmyt-view-all-item {
    border-top: none; 
    margin-top: 0;
    padding: 0;
}