.redBar__container {
    top: 0;
    left: 0;
    right: 0;
    position: sticky;
    z-index: 99;
}

.redBar a {
    text-decoration: none;
}

.redBar a:hover {
    color: #FFFFFF;
}

.title {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redBar {
    background-color: #E21E28;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 18px 24px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.redBar__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.redBar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.redBar__logo {
    height: 28px;
    object-fit: cover;
}

.redBar__center {
    display: flex;
    align-items: center;
    gap: 0;
}

.redBar__section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.redBar__navItem {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    position: relative;
    border-right: 1px solid #ffffff;
    transition: background-color 0.2s;
}

    .redBar__navItem:first-child {
        border-left: 1px solid #ffffff;
    }

    .redBar__navItem:hover {
        background-color: #f39ea3;
    }

    .redBar__navItem:active {
        background-color: #f8c9cb;
    }

.redBar__navItem--active {
    background-color: #ffffff !important;
    color: #e21e28 !important;
}

.redBar__navItem:hover {
    background-color: #f39ea3 !important;
}

.redBar__navItem:active {
    background-color: #f8c9cb !important;
}

.redBar__navIcon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    vertical-align: middle;
    object-fit: contain;
}

.redBar__right {
    display: flex;
    align-items: center;
}

.redBar__search {
    max-width: 200px;
    margin-right: 24px;
}

.redBar__searchForm {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.redBar__searchInput {
    width: 100%;
    height: 28px;
    padding: 4px 12px;
    border: none;
    font-size: 14px;
    outline: none;
}

.redBar__searchRecommend {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
}

.redBar__searchRecommendIcon {
    width: 16px;
    height: 16px;
}

.redBar__searchRecommendLink {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #ffffff;
    text-decoration: none;
}

    .redBar__searchRecommendLink:hover {
        text-decoration: underline;
    }

.srhBar .searchic, .srhBar button {
    width: 18%;
    height: 30px;
    background-position: -120px 3px;
    background-color: #f9f9f9;
    color: #262626;
    border: 1px solid #d9d9d9;
}

.redBar__download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    margin-right: 16px;
}

    .redBar__download:hover {
        opacity: 0.8;
    }

.redBar__downloadIcon {
    width: 28px;
    height: 28px;
}

.redBar__downloadText {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #ffffff;
}

.redBar__userWrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #bfbfbf;
    border: 1px solid #ffffff;
    cursor: pointer;
    box-sizing: content-box;
}

.redBar__userWrapper::after {
    content: '';
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    height: 14px;
}

.redBar__userImageWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.redBar__userImage {
    width: 22px;
    height: 22px;
}

.redBar__userImage--login {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.redBar__userMenu {
    position: absolute;
    top: 53px;
    right: 0;
    width: 270px;
    padding: 8px 12px;
    background-color: #ffffff;
    box-shadow: 0px 2px 10px 0px rgba(38, 38, 38, 0.1), 0px 0px 2px 0px rgba(38, 38, 38, 0.2);
    border-radius: 8px;
    z-index: 9999;
    display: none;
    color: #262626;
}

.redBar__userWrapper:hover .redBar__userMenu {
    display: block;
}

.redBar__userMenuInfo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px 10px 12px;
    margin-bottom: 8px;
}

.redBar__userMenuImageWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #bfbfbf;
    border: 1px solid #d9d9d9;
}

.redBar__userMenuImage {
    width: 22px;
    height: 22px;
}

.redBar__userMenuImage--login {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.redBar__userMenuText {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.redBar__userMenuName {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.redBar__userMenuEmail {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    word-break: break-all;
}

.redBar__userMenuSection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    border-top: 1px solid #d9d9d9;
}

.redBar__userMenuSection a:hover {
    color: #262626;
}

.redBar__userMenuLink {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    color: #262626;
}

.redBar__userMenuLink:hover {
    background-color: #d9d9d9;
    color: #262626;
}

.redBar__userMenuLink:active {
    background-color: red;
    color: #262626;
}

.redBar__userMenuLink a {
    color: #262626;
    text-decoration: none;
    width: 100%;
    display: block;
}
.redBar__userMenuLink:active {
    background-color: #bfbfbf;
    color: #262626;
}

.redBar__userMenuIcon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.redBar__mobileLeft {
    display: none;
    cursor: pointer;
}

.redBar__mobileBtnIcon {
    width: 26.67px;
    height: 18.67px;
}

#MobileSwitchItem {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shoppingCartBtn,
.searchBtn {
    display: none;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.searchIcon {
    width: 25px;
    height: 25px;
}

.shoppingCartIcon {
    width: 27px;
    height: 27px;
}

.shoppingCartBtn {
    position: relative;
    text-decoration: none;
}

.cartBadge {
    position: absolute;
    top: -2px;
    right: 0;
    color: #e21e28;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px 4px;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    min-width: 15px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1.25px solid var(--Red-Red-60, #E21E28);
}

.mobileSearchOverlay {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow: auto;
    display: none;
    z-index: 9999;
}

.mobileSearchOverlay__header {
    display: flex;
    flex-wrap: nowrap;
    padding: 20px 16px;
    align-items: center;
    margin-bottom: 12px;
}

.mobileSearchOverlay__backBtn {
    font-size: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #595959;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.mobileSearchOverlay__title {
    font-family: -apple-system, blinkmacsystemfont, microsoft jhenghei, noto sans, helvetica neue, helvetica, arial, apple color emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.2px;
    text-align: center;
    flex: 1 1 0;
    color: #262626;
}

.mobileSearchOverlay__formWrapper {
    padding: 12px 16px;
    align-items: center;
    display: flex;
}

.mobileSearchOverlay__form {
    background-color: #f9f9f9;
    padding: 10px 12px;
    display: flex;
    flex: 1 1 0;
    flex-wrap: nowrap;
    gap: 8px;
    border-radius: 4px;
}

.mobileSearchOverlay__form .mobileSearchOverlay__icon {
    font-size: 16px;
    width: 20px;
    height: 30px;
    color: #959595;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.mobileSearchOverlay__input {
    font-family: -apple-system, blinkmacsystemfont, microsoft jhenghei, noto sans, helvetica neue, helvetica, arial, apple color emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.2px;
    flex: 1 1 0;
    background-color: #f9f9f9;
    border-color: transparent;
}

@media (max-width: 1199px) {
    .redBar__search {
        display: none;
    }

    .redBar__download {
        display: none;
    }

    .searchBtn {
        display: flex;
    }

    .redBar__right {
        gap: 20px
    }
}

@media (max-width: 1023px) {
    .redBar {
        padding: 16px 20px;
    }

    .redBar__center {
        display: none;
    }

    .redBar__mobileLeft {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

    .redBar__userWrapper {
        display: none;
    }

    .shoppingCartBtn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .redBar {
        height: 60px;
        padding: 14px 16px;
    }

    .redBar__left {
        gap: 16px;
    }

    .title {
        height: 32px;
    }

    .redBar__logo {
        width: 153px;
        height: 32px;
    }

    .redBar__mobileLeft {
        width: 28px;
        height: 28px;
    }

    .redBar__mobileBtnIcon {
        width: 23.33px;
        height: 16.33px;
    }

    .shoppingCartBtn,
    .searchBtn {
        width: 32px;
        height: 32px;
    }

    .searchIcon {
        width: 20px;
        height: 20px;
    }

    .shoppingCartIcon {
        width: 22px;
        height: 22px;
    }

    .cartBadge {
        padding: 4px;
        font-size: 10px;
        line-height: 15px;
        top: -7px;
    }

    .redBar__right {
        gap: 12px
    }
}

@media (min-width: 1200px) {
    .mobileSearchOverlay {
        display: none !important;
    }
}
