
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    z-index: 998;
    padding: 24px 0 24px 0;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

#search-overlay.open {
    transform: translateY(0);
}

#search-overlay .search-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
}
.search-container-title {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #222;
    border-radius: 50px;
    padding: 10px 8px 10px 20px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: #4061cd;
}

.search-submit-btn {
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.search-bar-icon {
    color: #888;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}
.close-btn {
    position: fixed;
    top: 16px;
    right: 30px;
    font-size: 18px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    z-index: 999;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #222;
    background: transparent;
}

.search-bar input::placeholder {
    color: #aaa;
}


#suggestion-box {
    display: none;
    flex-direction: column !important;
    margin-top: 8px;
    box-shadow: none;
    overflow: hidden;
    text-align: left;
    width: 100%;
}
#suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


#suggestion-list li {
    border-bottom: 1px solid #f0f0f0;
}


#suggestion-list li::before {
    content: none;
}


.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    gap: 12px;
}



.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Giá */
.suggestion-price {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
}

.suggestion-old-price {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 6px;
}

.suggestion-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.suggestion-view-more {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
}

.suggestion-view-more:hover {
    text-decoration: underline;
    background-color: #f9fff9;
}
.suggestion-item:hover .suggestion-name {
    color: #e53935;
    transition: color 0.2s ease;
}

.keyword-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
}

.keyword-label {
    font-size: 13px;
    color: #888;
    margin-right: 4px;
}

.keyword-tag {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.keyword-tag:hover {
    background-color: #385fd2;
    color: #fff;
}


.suggestion-item:hover {
    background-color: #f9f9f9 !important;
    color: inherit !important;
    border-radius: 0 !important;
    transform: none !important;
}
.suggestion-item:hover .suggestion-name {
    color: #e53935;
    transition: color 0.2s ease;
}

#suggestion-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0; /* ← bỏ padding thừa */
}

#suggestion-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

#suggestion-list li {
    display: block !important;
    width: 100%;
}

.suggestion-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}


.product-suggestions {
    display: none !important;
}

.product {
    display: none !important;
}#suggestion-footer {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 10px 16px;
     background: #f7f7f7;
     border-top: 1px solid #eee;
     border-radius: 0 0 8px 8px;
 }

.footer-count {
    font-size: 12px;
    color: #888;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #e8593c; /* màu chủ đạo của shop */
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}
.no-result {
    text-align: center;
    padding: 15px;
    color: #888;
}

.no-result i {
    font-size: 20px;
    margin-bottom: 5px;
}

.no-result-link {
    display: inline-block;
    margin-top: 8px;
    color: #ff6600;
    text-decoration: none;
}