/* ==========================
   Advanced Woo Search
========================== */

.aws-search-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 64px;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    overflow: hidden;
    transition: .3s;
    background: #fff;
}

.aws-search-box:focus-within {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, .12);
}

.aws-icon {
    width: 60px;
    text-align: center;
    font-size: 22px;
    color: #777;
    flex-shrink: 0;
}

.aws-input {
    flex: 1;
    border: 0;
    outline: 0;
    height: 100%;
    font-size: 17px;
    padding: 0 15px;
    background: none;
}

.aws-input::placeholder {
    color: #999;
}

.aws-clear {
    width: 60px;
    height: 60px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: #777;
}

.aws-clear:hover {
    color: #d32f2f;
}

.aws-results {
    display: none;
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    overflow: hidden;
    z-index: 9999;
    max-height: 500px;
    overflow-y: auto;
}

.aws-popular {
    margin-top: 35px;
}

.aws-popular h3 {
    margin: 0 0 18px;
    color: #d32f2f;
    font-size: 22px;
    font-weight: 700;
}

.aws-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aws-tags a {
    text-decoration: none;
    background: #f3f3f3;
    color: #333;
    padding: 11px 18px;
    border-radius: 40px;
    transition: .25s;
    font-size: 15px;
}

.aws-tags a:hover {
    background: #d32f2f;
    color: #fff;
}

.aws-loading {
    padding: 30px;
    text-align: center;
}

.aws-empty {
    padding: 30px;
    text-align: center;
    color: #777;
}

mark {
    background: #fff1b3;
    padding: 2px;
}

.aws-dropdown {
    display: flex;
    flex-direction: column;
}

.aws-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #efefef;
    transition: .25s ease;
    position: relative;
}

.aws-item:hover {
    background: #fafafa;
    transform: translateX(4px);
}

.aws-thumb {
    width: 70px;
    flex-shrink: 0;
}

.aws-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

.aws-info {
    flex: 1;
}

.aws-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.aws-sku {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.aws-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.aws-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aws-price {
    font-weight: 700;
    color: #d32f2f;
}

.in-stock {
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
}

.out-stock {
    color: #c62828;
    font-size: 12px;
    font-weight: 600;
}

.aws-view-all {
    display: block;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    background: #fafafa;
    transition: .25s;
}

.aws-view-all:hover {
    background: #d32f2f;
    color: #fff;
}

.aws-active {
    background: #fff5f5;
}

.aws-active .aws-price {
    color: #b71c1c;
}

.aws-active .aws-title {
    color: #d32f2f;
}

.aws-wrapper {
    position: relative;
    width: 100%;
}

.aws-results::-webkit-scrollbar {
    width: 5px;
}

.aws-results::-webkit-scrollbar-thumb {
    background: #d32f2f;
    border-radius: 50px;
}

.aws-results::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.aws-rating .star-rating {
    font-size: 13px;
    margin: 0;
}


/* ==========================
   Custom Rating Stars
========================== */

.aws-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 6px;
}

.aws-star {
    color: #ffb400;
    font-size: 15px;
    line-height: 1;
}

.aws-star-empty {
    color: #d9d9d9;
}

.aws-rating-count {
    margin-left: 6px;
    font-size: 12px;
    color: #666;
}


/* Sale Badge */

.aws-thumb {
    position: relative;
}

.aws-sale-badge {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 20px;
    border-radius: 5px 0px 0px 5px;
    z-index: 0;
    line-height: normal;
}

.aws-sale-price {
    color: #d32f2f;
    font-weight: 700;
    margin-right: 8px;
}

.aws-regular-price {
    color: #999;
    font-size: 13px;
}


/* ==========================
   Recent Searches
========================== */

.aws-recent {
    margin-top: 30px;
}

.aws-recent h3 {
    margin: 0 0 18px;
    color: #222;
    font-size: 22px;
    font-weight: 700;
}

.aws-recent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aws-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: .25s;
    font-size: 14px;
}

.aws-recent-item:hover {
    background: #d32f2f;
    color: #fff;
}


/* Suggestions */

.aws-suggestions {
    border-bottom: 1px solid #ececec;
    padding: 10px 0;
}

.aws-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

.aws-suggestion-item:hover {
    background: #f7f7f7;
    color: #d32f2f;
}

@media(max-width:600px) {
    .aws-search-box {
        border-radius: 14px;
    }
    .aws-item {
        flex-direction: row;
    }
    .aws-thumb img {
        width: 55px;
        height: 55px;
    }
}

@media(max-width:768px) {
    .aws-wrapper {
        padding: 15px;
    }
    .aws-search-box {
        height: 56px;
    }
    .aws-icon {
        width: 50px;
    }
    .aws-clear {
        width: 50px;
        height: 50px;
    }
    .aws-input {
        font-size: 15px;
    }
    .aws-popular h3 {
        font-size: 18px;
    }
    .aws-tags {
        gap: 8px;
    }
    .aws-tags a {
        font-size: 13px;
        padding: 8px 14px;
    }
}