
/* =====================================================
   PREMIUM DECANTS - SHOP SEARCH AUTOCOMPLETE
   ===================================================== */

.search-field {
    position: relative;
}

.search-autocomplete {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.search-autocomplete input {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 42px;
    border-radius: 3px 0 0 3px;
}


/* =====================================================
   SUGGESTIONS DROPDOWN
   ===================================================== */

.search-suggestions {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 1000;

    max-height: 340px;
    overflow-y: auto;

    background: #151313;

    border: 1px solid rgba(220, 35, 65, 0.45);

    border-radius: 5px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.search-suggestions[hidden] {
    display: none !important;
}


/* =====================================================
   SUGGESTION ITEM
   ===================================================== */

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    width: 100%;

    padding: 13px 15px;

    color: #f7f3f4;

    text-align: left;

    background: transparent;

    border: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    cursor: pointer;

    transition: background 0.18s ease;
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item.is-active {
    background: #32131b;
}


/* =====================================================
   SUGGESTION MAIN CONTENT
   ===================================================== */

.suggestion-main {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 0;
}

.suggestion-title {
    color: #ffffff;

    font-family: Georgia, serif;

    font-size: 13px;

    font-weight: 600;

    overflow-wrap: anywhere;
}

.suggestion-detail {
    color: #a9a0a4;

    font-size: 10px;

    line-height: 1.4;
}


/* =====================================================
   BRAND / FRAGRANCE BADGE
   ===================================================== */

.suggestion-type {
    flex: 0 0 auto;

    padding: 6px 8px;

    color: #ff9aaa;

    background: rgba(200, 16, 46, 0.14);

    border: 1px solid rgba(200, 16, 46, 0.28);

    border-radius: 3px;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.8px;
}


/* =====================================================
   NO RESULTS MESSAGE
   ===================================================== */

.suggestion-empty {
    padding: 17px 15px;

    color: #b8aeb3;

    font-size: 11px;

    line-height: 1.5;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 650px) {

    .search-field {
        width: 100%;
    }

    .search-autocomplete {
        width: 100%;
    }

    .search-autocomplete input {
        min-height: 43px;
    }

    .search-suggestions {
        max-height: 280px;
    }

}

/* =====================================================
   PRODUCT IMAGE THUMBNAILS
   ===================================================== */

.suggestion-item {
    min-height: 70px;
    justify-content: flex-start;
    gap: 12px;
}

.suggestion-thumbnail {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: linear-gradient(135deg, #292326, #45121f);

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 4px;
}

.suggestion-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 3px;
}

.suggestion-thumbnail-fallback {
    color: #e52a45;

    font-family: Georgia, serif;

    font-size: 16px;

    font-weight: bold;
}

.suggestion-main {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    display: block;

    color: #ffffff;

    font-family: Georgia, serif;

    font-size: 13px;
}

.suggestion-detail {
    display: block;

    margin-top: 3px;

    color: #aaa0a5;

    font-size: 10px;
}

.suggestion-type {
    margin-left: auto;
}

@media(max-width: 650px) {

    .suggestion-thumbnail {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .suggestion-item {
        gap: 10px;
        padding: 11px;
    }

}
