@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.12.1/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
@import url("https://www.tohatsu.com.tw/Content/B2C/header-mobile.css");
@import url("https://www.tohatsu.com.tw/Content/B2C/index-m.css");
@import url("https://www.tohatsu.com.tw/Content/B2C/filter.css");
@media screen and (min-width:991px) {
    .search-list-mobile,
    .mobile-search {
        display: none;
    }
    .search-list-mobile {
        display: none;
    }
}

@media screen and (max-width:990px) {
     :root {
        --main-color: #6281B1;
        --main-color-light: rgba(98, 129, 177, 0.3);
        --main-color-dark: rgba(85, 111, 153, 1);
        --gary-color: rgba(98, 105, 124, 1);
        --gary-color-light: rgba(98, 105, 124, .5);
        --gary-color-light200: rgba(242, 242, 242, 1);
        --gary-color-light100: rgba(98, 105, 124, .1);
        --white: rgba(255, 255, 255, 1);
        --white500: rgba(255, 255, 255, 0.5);
        --white300: rgba(255, 255, 255, 0.3);
        --white200: rgba(255, 255, 255, 0.2);
        --white100: rgba(255, 255, 255, 0.1);
        --black: rgba(0, 0, 0, 1);
        --red: rgba(234, 80, 22, 1);
    }
    body {
        font-family: "Noto Sans TC", sans-serif;
        margin: 0;
        padding: 0;
    }
    .box-title {
        color: var(--main-color-dark);
        padding-left: .65rem;
        border-left: 5px solid var(--main-color-dark);
        font-size: 1.15rem;
        font-weight: bolder;
        margin: unset;
        margin-bottom: 1rem;
    }
    .box-title-num {
        background-color: var(--main-color);
        color: white;
        width: 20%;
        font-size: 18px;
        text-align: center;
        padding-top: 11px;
    }
    .mobile-search {
        margin: 3.2rem 0 .5rem;
        padding: 8px 15px 1px;
        position: fixed;
        z-index: 99;
        background-color: rgb(255 255 255);
        width: 100%;
    }
    .emptylayout {
        margin-top: 7rem;
    }
    .form-inline-input,
    .search {
        display: flex;
        width: 100%;
        border: 1px solid var(--main-color);
        border-radius: 4px;
        overflow: hidden;
    }
        .search select {
            border: none;
            outline: none;
            padding: 0 8px;
            height: 44px;
            background: transparent;
        }
    .form-inline-input {
        margin-bottom: 14px;
    }
    .search input {
        border: none;
        outline: none;
        flex: 1 1 auto;
        padding: 0 12px;
        height: 44px;
        font-size: 16px;
        min-width: 0;
    }
    .search button {
        border: none;
        background: #6281B1;
        color: #fff;
        width: 50px;
        height: 44px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .form-inline-input button {
        flex: 0 0 50px;
        width: 50px;
        border-radius: 0;
        background: #ffeca0;
        color: #ff6005;
        font-weight: 700;
    }
    .form-inline-input input {
        border: none;
        /*    flex: 0 0 calc(100% - 50px);
*/
    }
    .form-inline-input button {
        flex: 0 0 50px;
        width: 50px;
    }
    .form-inline-input.price .input {
        border: none;
        flex: 0 0 calc(100% - 65px);
    }
    .form-inline-input.price button {
        flex: 0 0 85px;
        width: 65px;
    }
    .search button:hover,
    .search button:active,
    .search button:visited,
    .search button:focus {
        color: var(--white);
    }
    /* form checkbox*/
    .control {
        display: block;
        position: relative;
        padding-left: 30px;
        margin-bottom: 15px;
        cursor: pointer;
        font-size: 18px;
        font-weight: 400;
    }
    .control input {
        position: absolute;
        z-index: -1;
        opacity: 0;
    }
    .control__indicator {
        position: absolute;
        top: 2px;
        left: 0;
        height: 24px;
        width: 24px;
        background: transparent;
        border: 2px solid var(--white);
    }
    .control input:checked~.control__indicator {
        border: 2px solid var(--white);
        background: #ff8484;
    }
    /* form input */
    .btn-default {
        margin-left: .5rem;
        font-size: 1rem;
        height: 43px;
        border-radius: 0;
        background-color: var(--main-color);
        color: var(--white);
    }
    .btn-area .btn-default {
        background-color: white;
        color: var(--main-color);
        border-color: white;
    }
    .btn-default:hover,
    .btn-default:focus,
    .btn-default:active,
    .btn-default:visited,
    .btn-default:active:hover {
        background-color: var(--white);
        color: var(--main-color);
        border-color: var(--white);
    }
    .btn-default i {
        margin: 0 .5rem;
    }
    .border-radius-circle {
        border-radius: 100%;
    }
    .border-radius-pill {
        border-radius: 100px;
        text-align: right;
        margin: 0;
        padding: 0;
    }
    .container.mb-2 .btn-area {
        text-align: right;
    }
    .btn-area {
        /*    display: flex;
*/
        width: 100%;
    }
    .w-100 {
        width: 100%;
    }
    .w-65px {
        flex: 0 0 70px;
    }
    /*.w-50{
    flex: 1 1 50%;
}*/
    .mb-2 {
        margin-bottom: 2rem;
    }
    #mobiletrQuantity {
        margin-top: -30px;
    }
    .form-inline-input .form-group {
        margin-bottom: 0;
    }
    .form-inline-input .form-group label {
        font-size: 13px;
    }
    .form-inline-input .select-control {
        width: 100%;
        height: 50px !;
        padding: 0 1rem;
        color: var(--black);
        border: none;
        box-sizing: border-box;
        outline: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: url(../images/icon-select-p.svg) no-repeat calc(100% - 16px) center;
        background-size: 16px;
    }
    .item__swiper1 .swiper-button-next.item-viewed-btn,
    .item__swiper2 .swiper-button-next.item-viewed-btn,
    .item__swiper3 .swiper-button-next.item-viewed-btn {
        background-color: transparent !important;
        width: 30px !important;
        display: block !important;
        right: -7px;
    }
    .item__swiper1 .swiper-button-prev.item-viewed-btn,
    .item__swiper2 .swiper-button-prev.item-viewed-btn,
    .item__swiper3 .swiper-button-prev.item-viewed-btn {
        background-color: transparent !important;
        width: 30px !important;
        display: block !important;
        left: -7px;
    }
    #mobilelblUnit {
        margin-top: 12px;
        width: 20%;
        text-align: center;
    }
    #mobilelblProductCode {
        padding: 16px;
        text-align: center;
    }
    #mobilelblProductCode span {
        font-size: 24px;
    }
    hr {
        margin: 0;
        border-top: 1px solid #b3b3b3;
    }
    #mobiledivInquirySummary {
        text-align: right;
    }
    #hasData {
        margin-top: 100px;
    }
    #B_prods .item img {
        width: 135px !important;
        max-width: 135px !important;
    }
    #B_prods .item {
        display: flex;
        border: 1px solid var(--main-color-light);
        background: var(--white);
        flex: 0 0 calc(50% - 0.7rem);
        margin: 0 0.35rem 0.5rem;
    }
    #B_prods .item a img {
        text-align: center;
        margin: auto;
    }
    #B_prods .item a {
        text-align: center;
    }
    .mb-xxs {
        margin-bottom: .5rem;
    }
    .mb-xs {
        margin-bottom: 1rem;
    }
    .pt-xs {
        padding-top: 1rem;
    }
    .border-top-1px {
        border-top: 1px solid var(--main-color-light);
    }
    /* .product-profile h5 {
        font-size: 1.25rem;
        line-height: 1.5rem;
        font-weight: 900;
    }
    .product-profile .describe {
        padding: .75rem;
    }
    .product-profile p.original {
        -webkit-line-clamp: 2 !important;
    } */
    .breadcrumb {
        background: transparent;
        font-size: 12px;
        padding: 0;
        margin: 0;
    }
    .breadcrumb a {
        color: var(--gary-color);
    }
    .font-red {
        color: var(--red) !important;
    }
    .border-red {
        border: 1px solid var(--red) !important;
    }
    .product-filter,
    .product-profile {
        margin-bottom: 1rem !important;
    }
    .product.slider-scroll {
        margin-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        gap: .75rem;
    }
    .product.slider-scroll::-webkit-scrollbar,
    .filter-list .box-scroll::-webkit-scrollbar,
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    .product.slider-scroll .items {
        border: 1px solid var(--main-color-light);
        padding: .5rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 40%;
    }
    .product.slider-scroll .items .pic img {
        width: auto;
        height: 65px;
    }
    .product.slider-scroll .items-body p {
        font-size: 12px;
        letter-spacing: 0;
        color: #656368;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    .filter-list .content {
        border: 1px solid var(--main-color-light);
        padding: .75rem .5rem .5rem .5rem;
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        font-size: 15px;
        letter-spacing: 0;
        line-height: 15px;
        gap: 8px;
    }
    .filter-list .title {
        font-weight: 900;
    }
    .filter-list .box-scroll {
        flex: 1 0 calc(100% - 86px);
        scrollbar-width: none;
        -ms-overflow-style: none;
        overflow-x: auto;
    }
    .filter-list .box-scroll ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        align-items: center;
    }
    .filter-list .box-scroll li {
        white-space: nowrap;
    }
    .filter-list .box-scroll li a {
        color: var(--gary-color);
    }
    .filter-list .box-scroll li a:hover,
    .filter-list .box-scroll li a.active {
        font-weight: 900;
        color: var(--main-color);
    }
    .content.border-red .box-scroll li a:hover,
    .content.border-red .box-scroll li a.active {
        font-weight: 400 !important;
        color: var(--red) !important;
    }
    .filter-list .icon-filter {
        font-size: 20px;
        font-weight: 900;
        flex: 0 0 30px;
        padding-left: 8px;
        border-left: 1px solid var(--main-color-light);
        color: var(--main-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .filter-list .icon-filter.none {
        display: none;
    }
    #content-second {
        display: none;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    #content-second.show {
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        font-size: 15px;
        letter-spacing: 0;
        line-height: 15px;
        gap: 8px;
        opacity: 1;
        transform: translateY(0);
    }
    /* 遮罩背景 */
    .filter-modal {
        display: none;
        position: fixed;
        z-index: 999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        align-items: flex-end;
        justify-content: center;
    }
    /* 白色 modal 內容區 */
    .filter-modal-content {
        background-color: var(--white);
        border: 3px solid var(--main-color);
        width: 100%;
        /* max-height: 80vh; */
        padding: 1rem;
        position: relative;
        animation: slideUp 0.3s ease-out;
        -webkit-overflow-scrolling: touch;
    }
    .filter-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* background-color: #007bff;
                        padding: 0;
                        margin: 0; */
    }
    .filter-modal-header h2 {
        font-family: "Noto Sans TC", sans-serif;
        font-size: 1rem;
        margin: 0;
        padding: 0;
        letter-spacing: 0;
        line-height: 15px;
        font-weight: 900;
        color: var(--main-color);
        text-align: left;
    }
    .filter-modal-close {
        font-size: 20px;
        line-height: 20px;
        font-weight: 900;
        color: var(--main-color);
        cursor: pointer;
    }
    .category-nav {
        margin: 1rem 0 .5rem;
        padding: 1rem 0;
        list-style: none;
        display: flex;
        align-items: center;
        gap: .5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overflow-x: auto;
    }
    .category-nav li {
        margin: 0;
        /* padding: .5rem 1rem;  */
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        white-space: nowrap;
    }
    .category-nav li a {
        padding: .5rem 1rem;
        border: 1px solid var(--main-color);
        border-radius: 100px;
    }
    .category-nav li a:hover,
    .category-nav li a.active {
        margin: 0;
        padding: .5rem 1rem;
        background-color: var(--main-color);
        color: var(--white);
    }
    .category-content-all {
        overflow-y: scroll;
        max-height: 265px;
        height: 265px;
    }
    .select-items-content {
        overflow-y: scroll;
        max-height: 88px;
        height: 88px;
        display: flex;
    }
    .category-content-list,
    .select-items-content {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: .5rem;
    }
    .category-content {
        display: none;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }
    .category-content.show {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }
    .category-content .items {
        white-space: nowrap;
        border: 1px solid var(--gary-color);
        color: var(--gary-color);
        padding: 6px 12px;
        margin: 0 !important;
    }
    .category-content .items.active {
        border: 1px solid var(--main-color);
        box-shadow: 0px 0px 0px 1px #556F99 inset;
        color: var(--main-color);
        font-weight: 900;
    }
    .select-items-content .items {
        white-space: nowrap;
        border: 1px solid var(--main-color);
        color: var(--main-color);
        font-weight: 900;
        padding: 6px 30px 6px 12px;
        margin: 0 !important;
        position: relative;
    }
    .select-items-content .items .filter-modal-close {
        position: absolute;
        right: 0;
        top: 0;
    }
    .btn-area {
        display: flex;
        gap: .5rem;
    }
    .btn-area a {
        flex: 0 0 calc(50% - .25rem);
        text-align: center;
        padding: .5rem;
    }
    .btn-outline {
        border: 1px solid var(--main-color);
        color: var(--main-color);
    }
    .btn-sent {
        border: 1px solid var(--main-color);
        background-color: var(--main-color);
        color: var(--white);
    }
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}


