header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 80px;
    padding-left: 20%;
    padding-right: 20%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgb(76, 175, 255), rgb(25, 118, 210));
}

.header {
    height: 100%;
    display: flex;
    width: 100%;
    align-items: center;
    color: white;
    justify-content: space-between;
    gap: 20px;
}

.start-section {
    height: 45px;
    width: 100px;
    margin-right: 50px;
}

.start-section a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    cursor: pointer;
}

.start-section .key-icon {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 1px solid gray;
}

.start-section .title {
    margin-left: 15px;
    height: 30px;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.start-section .title img {
    height: 15px;
    width: 15px;
}

.middle-section {
    display: flex;
    gap: 20px;
    flex: 1;
    position: relative;
}

.middle-section .cate-btn {
    background: linear-gradient(to bottom, rgb(33, 150, 243), rgb(21, 101, 192));
    border: none;
    color: white;
    height: 45px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 15px 0 15px;
    cursor: pointer;
}

.middle-section .cate-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to bottom, rgb(25, 118, 210), rgb(13, 71, 161));
}

.middle-section .cate-btn .cate-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.middle-section .cate-btn .title {
    font-size: 16px;
}

.middle-section .cate-btn .arrow-down-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.middle-section .search-part {
    flex: 1;
    position: relative;
}

.middle-section .search-bar {
    border: none;
    height: 45px;
    border-radius: 25px;
    font-size: 15px;
    padding: 0 80px 0 20px;
    width: 100%;
}

.middle-section .search-bar:focus {
    outline: none;
}

.middle-section .search-btn {
    position: absolute;
    right: 4px;
    top: 3px;
    border: none;
    background-color: lightpink;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-section .search-btn:hover {
    background-color: rgb(255, 141, 158);
}

.middle-section .search-icon {
    height: 25px;
    width: 25px;
}

.autocomplete-bar {
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    border-radius: 10px;
    height: max-content;
    max-height: 50vh;
    background-color: white;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
    overflow-y: auto;
    cursor: default;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.autocomplete-bar.show {
    opacity: 1;
    pointer-events: all;
}

.autocomplete-bar::-webkit-scrollbar {
    display: none;
}

.autocomplete-bar .child-bar {
    display: flex;
    align-items: center;
    border-radius: 7px;
    padding: 7px 15px 7px 15px;
    gap: 20px;
}

.autocomplete-bar .child-bar:hover {
    background-color: rgb(241, 241, 241);
}

.autocomplete-bar .child-bar img {
    height: 50px;
    width: 80px;
    border-radius: 5px;
    object-fit: cover;
}
.autocomplete-bar .child-bar p {
    display: flex;
    align-items: center;
    justify-content: start;
    flex: 9;
    margin: 0;
    color: black;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 900;
}

.autocomplete-bar .child-bar span {
    color: rgb(255, 75, 75);
    font-size: 13px;
    font-weight: 650;
}

.end-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.end-section button {
    border: none;
    background-color: rgb(252, 101, 101);
    height: 45px;
    width: 45px;
    border-radius: 50%;
    display: none;
}

.end-section button:hover {
    background-color: rgb(139, 1, 1);
}

.end-section button img {
    height: 25px;
    width: 25px;
    filter: brightness(0) invert(1);
}

.end-section a {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(226, 226, 226);
    border-radius: 50%;
    cursor: pointer;
}

.end-section .phone-icon {
    height: 30px;
    width: 30px;
}

.end-section .zalo-icon {
    height: 26px;
    width: 26px;
}

.end-section .facebook-icon {
    height: 35px;
    width: 35px;
}

/* category-desktop */
.category {
    height: max-content;
    position: absolute;
    top: 85px;
    left: 20%;
    right: 20%;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 899;
}

.category.show {
    opacity: 1;
    pointer-events: all;
}

.category .arrow-right-icon {
    height: 20px;
    width: 20px;
}

.category .cate-section {
    flex: 2.5;
    height: max-content;
    max-height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 5px;
    overflow-y: auto;
    background-color: white;
    cursor: pointer;
}

.category .cate-section a {
    padding: 5px 10px 5px 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
}

.category .cate-section a.active {
    background-color: rgb(190, 190, 190);;
}

.category .cate-section a:hover {
    background-color: rgb(223, 223, 223);
}

.category .cate-section .transport-icon {
    height: 40px;
    width: 40px;
}

.category .cate-section .title-cate {
    font-size: 13px;
}

.category .cate-details-section {
    flex: 3;
    height: max-content;
    max-height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 5px;
    overflow-y: auto;
    background-color: white;
}


.category .cate-details-section a {
    padding: 5px 10px 5px 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    justify-content: space-between;
}

.category .cate-details-section a.active {
    background-color: rgb(190, 190, 190);
}


.category .cate-details-section a:hover {
    background-color: rgb(223, 223, 223);
}

.category .nation-icon {
    height: 40px;
    width: 60px;
    border-radius: 5px;
}

.category .cate-details-section .title-nation {
    font-size: 13px;
}

.category .content-section {
    flex: 4.5;
    height: max-content;
    max-height: 100%;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: white;
}

.category .content-section a {
    padding: 5px 10px 5px 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
}

.category .content-section a:hover {
    background-color: rgb(223, 223, 223);
}

.category .content-section .brand-icon {
    height: 40px;
    width: 40px;
}

.category .content-section .title-brand {
    font-size: 13px;
    margin-left: 20px;
}

/* category-mobile */
.category-mb {
    position: fixed;
    display: none;
    top: 80px;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: gray;
    overflow-y: auto;
}

.category-mb.show {
    display: block;
}

.category-mb ul {
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0;
    background: transparent;
}

.category-mb li {
    margin-bottom: 6px;
}

/* style cho thẻ a */
.category-mb a {
    display: block;
    padding: 10px;
    color: #f1f1f1; /* chữ sáng */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

/* hover */
.category-mb a:hover {
    background: rgba(255, 255, 255, 0.1); /* nổi bật hơn trên nền tối */
    color: #fff;
}

@media (min-width: 1200px) {
    header {
        padding-left: 15%;
        padding-right: 15%;
    }

    .category-mb {
        display: none;
    }

    .category-mb.show {
        display: none;
    }

    .category {
        left: 15%;
        right: 15%;
    }
}

@media (min-width: 976px) and (max-width: 1200px) {
    header {
        padding-left: 8%;
        padding-right: 8%;
    }

    .category-mb {
        display: none;
    }

    .category-mb.show {
        display: none;
    }

    .category {
        left: 8%;
        right: 8%;
    }
}

@media (min-width: 776px) and (max-width: 976px) {
    header {
        padding-left: 2%;
        padding-right: 2%;
    }

    .category-mb {
        display: none;
    }
    .category-mb.show {
        display: none;
    }

    .category {
        left: 2%;
        right: 2%;
    }

    .middle-section .cate-btn {
        height: 45px;
        width: 45px;
        border-radius: 50%;
    }

    .middle-section .cate-btn .title {
        display: none;
    }

    .middle-section .cate-btn .arrow-down-icon {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 776px) {
    header {
        padding-left: 2%;
        padding-right: 2%;
    }
    .category {
        left: 2%;
        right: 2%;
    }
    .middle-section .cate-btn {
        display: none;
    }
    .end-section a {
        display: none;
    }

    .end-section button {
        display: block;
    }

    .category {
        display: none;
    }

    .start-section .title {
        display: none;
    }

    .start-section {
        width: 50px;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    header {
        padding-left: 2%;
        padding-right: 2%;
    }

    .end-section button {
        display: block;
    }

    .middle-section .cate-btn {
        display: none;
    }

    .end-section a {
        display: none;
    }

    .category {
        display: none;
    }

    .start-section .title {
        display: none;
    }

    .start-section {
        width: 50px;
        margin-right: 0;
    }
}
