@import './style-guide.css';

body {
    background-color: #FCFCFC;
    padding-top: 155px;
}

@media(max-width:1199px) {
    body {
        padding-top: 100px;
    }
}

@media(max-width:430px) {
    body {
        padding-top: 60px;
    }
}

:root {
    --navbar-top-color: #F5F8FA;
    --navbar-main-color: #fff;
    --navbar-top-height: 55px;
    --navbar-main-height: 100px;
    --navbar-padding-x: 160px;
    --logo-width: 310px;
    --navbar-mobile-color: #EAD07D;
    --navbar-mobile-bgcolor: #3C5177;
    --navbar-mobile-border-color: #B7BCC5;
    --navbar-mobile-row-height: 50px;
    --footer-padding-x: 390px;
    --footer-padding-top: 80px;
    --footer-bottom-height: 70px;
    --footer-collapse-color: #F2EFEB;
    --collapse-padding-x: 460px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--navbar-top-color);
    padding: 0;
    user-select: none;
    z-index: 3;
}

.navbar li:hover {
    color: var(--label-bg-yellow);
}

.navbar li:hover>i {
    color: var(--label-bg-yellow);
}

.navbar-top {
    height: var(--navbar-top-height);
    width: 100%;
    font-size: var(--font-h7);
    text-align: end;
    padding: 18px var(--navbar-padding-x);
}

.navbar-item {
    display: inline-block;
    padding: 0;
}

.navbar-item>li {
    display: inline-block;
    padding: 0px 20px;
    position: relative;
    vertical-align: top;
}

.navbar-top i {
    color: #4E4E4E;
}

.navbar-line::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0%;
    background-color: #BCBDBF;
    width: 1px;
    transform: translateY(-50%);
    height: 15px;
}

.cart-quantity {
    text-align: center;
    background-color: #DB4A47;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    font-size: var(--font-h8);
    line-height: 19px;
    display: inline-block;
    color: #fff;
}

/* **************** */
/* 秀出加入購物車選單 */
/* **************** */

.show-cart {
    display: none;
    background-color: #fff;
    width: 300px;
    position: absolute;
    top: 49px;
    right: 160px;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.show-cart.active {
    display: block;
}

.show-cart:hover {
    color: initial;
}

.show-cart .close {
    display: none;
    opacity: .9;
    transition-duration: .3s;
}

@media screen and (max-width: 1440px) {
    .show-cart {
        right: 70px;
    }
}

@media screen and (max-width: 1199px) {
    .show-cart {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        z-index: 999;
    }

    .show-cart .close {
        display: block;
        position: absolute;
        cursor: pointer;
        right: -70px;
        top: -70px;
        color: var(--upload-hover);
        font-size: 3rem;
        text-shadow: none;
        z-index: 9999;
    }

    .show-cart::after {
        content: '';
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: -9999;
    }
}

.show-cart .no-product {
    display: none;
}

.show-cart .no-product li {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: var(--font-h5);
    padding-top: 65px;
    padding-bottom: 65px;
}

.show-cart .no-product li *+* {
    margin-top: 5px;
}

.show-cart ul {
    max-height: 667px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    background-color: #fff;
}

@media screen and (max-width: 768px) {
    .show-cart {
        width: 300px;
    }

    .show-cart ul {
        max-height: 50vh;
        overflow-y: scroll;
    }
}

@media screen and (max-width: 576px) {
    .show-cart {
        top: 55%;
    }

    .show-cart::after {
        transform: translate(-50%, -55%);
    }

    .show-cart .close {
        font-size: 2.5rem;
        right: 0;
        top: -3.5rem;
    }
}

.show-cart ul li {
    padding: 15px;
    margin: 0;
    list-style: none;
    position: relative;
}

.show-cart ul li::before {
    content: '';
    position: absolute;
    width: calc(100% - 30px);
    height: 1px;
    background-color: var(--sub-font-gray);
    bottom: 0;
    left: 15px;
}

.show-cart ul li i {
    color: var(--sub-font-gray);
    font-size: var(--font-h8);
    font-weight: normal;
}

.show-cart ul .product-name {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-h6);
    font-weight: bold;
}

.show-cart ul .product-name span {
    font-weight: bold;
    width: 90%;
}

.show-cart ul .product-name i {
    cursor: pointer;
    font-size: var(--font-h6);
    position: absolute;
    top: 3px;
    right: 0;
}

.show-cart ul .product-name i:hover {
    color: var(--label-bg-yellow);
}

.show-cart ul .product-store {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: var(--font-h7);
}

.show-cart ul:hover .product-store {
    color: black;
}

.show-cart ul .product-store span {
    margin-left: 5px;
}

.show-cart ul .product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-cart ul .product-price span {
    color: var(--google-color);
    font-size: var(--font-h6);
}

.show-cart .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.show-cart .product-info-amount {
    border: 1px solid rgba(126, 126, 126, 0.5);
    border-radius: 2px;
    width: auto;
}

.show-cart input::-webkit-outer-spin-button,
.show-cart input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.show-cart .product-info-amount>div {
    position: relative;
    padding: 0 10px;
    background-color: transparent;
    transition: 0.3s;
}

.show-cart .product-info-amount>div:hover {
    background-color: var(--upload-hover);
}

.show-cart .product-info-amount i {
    color: black;
}

.show-cart .product-info-amount .amount-plus::after,
.show-cart .product-info-amount .amount-minus::after {
    content: '';
    position: absolute;
    height: 15px;
    width: 1px;
    background-color: rgba(126, 126, 126, 0.5);
}

.show-cart .product-info-amount .amount-plus::after {
    left: 0;
}

.show-cart .product-info-amount .amount-minus::after {
    right: 0;
}

.show-cart .product-info-amount input {
    border: none !important;
    width: 47px;
    /* height: 45px; */
    position: relative;
    z-index: 2;
    text-align: center;
}

.show-cart .checkout-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 17px;
    background-color: #fff;
}

.show-cart .checkout-block span {}

.show-cart .checkout-block a {
    background-color: var(--btn-bg-yellow);
    padding: 12px 43px;
    transition-duration: .3s;
}

.show-cart .checkout-block a:hover {
    background-color: var(--btn-bg-yellow-hover);
}

.cart-btn-mobi {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 130px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--upload-hover);
    border-radius: 50%;
}

@media screen and (max-width: 1199px) {
    .cart-btn-mobi {
        display: flex;
    }
}

.cart-btn-mobi img {
    width: 25px;
}

.cart-btn-mobi span {
    position: absolute;
    top: -2px;
    right: -2px;
}

/* **************** */
/* 秀出加入購物車選單 */
/* **************** */

.navbar-main {
    height: var(--navbar-main-height);
    background-color: var(--navbar-main-color);
    width: 100%;
    padding: 0px var(--navbar-padding-x);
    line-height: var(--navbar-main-height);
    font-size: var(--font-h5);
    display: flex;
    justify-content: space-between;
}

.navbar-main-logo {
    width: fit-content;
    display: inline-block;
    margin: 0;
    line-height: var(--navbar-main-height);
}

.navbar-main-logo>img {
    width: var(--logo-width);
}

.navbar-usericon {
    width: 20px;
    height: 20px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    border-radius: 100%;
    display: inline-block;
    margin: 0px 4px;
}

.navbar-main-list>.navbar-item {
    font-size: var(--font-h5);
}

.navbar-main-list>.navbar-item>li {
    padding: 0px 15px;
}

.navbar-main .far {
    margin-left: 5px;
}

.navbar-list-icon {
    position: absolute;
    right: var(--navbar-padding-x);
    top: 50%;
    transform: translateY(-50%);
    color: #3C5177;
    font-size: 2.625rem;
    cursor: pointer;
    user-select: none;
    display: none;
}

.navbar-mobile-list {
    display: none;
    position: fixed;
    top: var(--navbar-main-height);
    background-color: var(--navbar-mobile-bgcolor);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px var(--navbar-padding-x);
    color: var(--navbar-mobile-color);
}

.navbar-main-list li:last-child {
    padding-right: 0;
}

.drop {
    position: absolute;
    background-color: #fff;
    border-top: 5px solid var(--label-bg-yellow);
    padding: 0px 15px 22px;
    color: var(--con-font-black);
    font-size: var(--font-h6);
    top: 80%;
    line-height: 1;
    display: none;
    width: 135px;
    left: 0px;
    z-index: 99;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.drop a:hover {
    color: var(--label-bg-yellow);
}

.drop-show {
    display: block;
}

.drop-item {
    padding: 22px 0px 4px;
    border-bottom: 1px solid #E0E0E0;
    text-align: center;
}

/* 麵包屑 */
.breadcrumb-area {
    background: linear-gradient(90deg, #4d689b, #7785ab);
    margin-bottom: 25px;
}

@media (max-width:767px) {
    .breadcrumb-area {
        margin-bottom: 10px;
    }
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 6px 15px;
}

.breadcrumb-item.active,
.breadcrumb-item a,
.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    font-size: var(--font-h7);
    color: #FFF;
    display: flex;
    align-items: center;
}

.breadcrumb-item:first-child a {
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
}

.breadcrumb-item:first-child a::before {
    content: "\f015";
    margin-right: 7px;
    font-size: 0.75rem;
}

.breadcrumb-item:not(:last-child):hover a {
    color: var(--btn-bg-yellow);
}

/* footer */
footer {
    position: relative;
}

.footer {
    width: 100%;
    color: #fff;
    max-width: 100%;
}

.footer-content {
    background-color: #1F304F;
    padding: var(--footer-padding-top) var(--footer-padding-x) 74px;
    min-height: 300px;
    position: relative;
}

.footer-list {
    display: flex;
    justify-content: space-between;
}

.footer-bottom {
    background-color: #122341;
    padding: 0px var(--footer-padding-x);
    min-height: var(--footer-bottom-height);
    line-height: var(--footer-bottom-height);
    justify-content: space-between;
    display: flex;
    font-size: var(--font-h7);
}

.footer-logo {
    height: 43px;
    display: flex;
    color: #fff;
}

.footer-logo>img {
    height:55px;
}

.footer-logo-image {
    height: 100%;
    width: 43px;
    margin: 10px 12px;
}

.footer-logo-image>img {
    width: 100%;
    height: 100%;
}

.footer-logo-title {
    font-size: var(--font-h3);
}

.footer-logo-subtitle {
    font-size: var(--font-h8);
}

.footer-accessibility {
    width: 125px;
}

.footer-accessibility>img {
    width: 100%;
}

.footer-info {
    line-height: 1.8;
    max-width: 570px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: 50px 7.5px 0px;
    display: inline-block;
    cursor: pointer;
}

.footer-top {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: fit-content;
    pointer-events: none;
}

.footer-top>img {
    transform: translate(-50%, 5px);
    position: relative;
    left: 50%;
    width: 100%;
    min-width: 1920px;
}

.footer-image {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    height: fit-content;
    pointer-events: none;
}

.footer-image>img {
    transform: translate(-50%, 5px);
    left: 50%;
    position: relative;
    width: 100%;
    min-width: 1920px;
}

.footer-collapse {
    width: 100%;
    position: relative;
    min-height: 280px;
    background-color: var(--footer-collapse-color);
    padding-bottom: 25px;
    margin-top: 35px;
}

.footer-collapse-box {
    transform: translateY(100px);
    height: 100px;
    overflow: hidden;
    transition: all 0.5s;
}

.footer-collapse-box a:hover {
    color: var(--label-bg-yellow);
}

.collapse-show .collapse-btn>img {
    transform: rotate(0deg);
}

.collapse-btn {
    background-color: var(--footer-collapse-color);
    width: 70px;
    height: 70px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    text-align: center;
    padding-top: 10px;
    cursor: pointer;
    z-index: -1;
}

.collapse-btn>img {
    width: 25px;
    transform: rotate(180deg);
    transition: all 0.2s;
}

.collapse-content {
    display: flex;
    padding: 36px var(--collapse-padding-x) 90px;
    line-height: 35px;
}

.collapse-item {
    flex: 1;
    text-align: center;
    border-left: 1px solid #DADADA;
}

.collapse-title {
    font-size: var(--font-h5);
    font-weight: bold;
}

.collapse-items {
    font-size: var(--font-h7);
}

.collapse-item>div {
    text-align: start;
    display: inline-block;
}

.collapse-row {
    flex: 1;
    display: flex;
}

.collapse-row:last-child {
    border-right: 1px solid #DADADA;
}


.search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--subt-bg-black);
    z-index: 3;
}

.search>form {
    padding: 15px;
    background-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.search-list {
    cursor: pointer;
}

.search-input {
    -webkit-appearance: none;
    width: 380px;
    height: 45px;
    padding-left: 12px;
    margin-right: 10px;
}

.search-btn {
    -webkit-appearance: none;
    cursor: pointer;
    border-radius: 0;
    width: 120px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: var(--btn-bg-yellow);
    color: #000;
    border: none;
    padding: 0 10px;
}

.search-btn:hover {
    background-color: var(--btn-bg-yellow-hover);
}

.search-close {
    cursor: pointer;
    user-select: none;
    font-size: var(--font-h1);
    position: absolute;
    top: 85px;
    right: 100px;
    color: var(--btn-bg-yellow);
}

.search-close>i {
    color: var(--btn-bg-yellow);
    font-size: 3rem;
}

.footer-collapse-tip {
    padding: 12px;
    text-align: center;
    z-index: 2;
}

.top {
    position: fixed;
    right: 3.125%;
    bottom: 7.4%;
    z-index: 10;
    cursor: pointer;
}

.top>img {
    height: 160px;
}

@media (max-width: 576px) {
    .top {
        bottom: 10.4%;
        right: 6.125%;
    }

    .top>img {
        height: 120px;
    }
}

@media (max-width:1800px) {
    :root {
        --collapse-padding-x: 140px;
        --footer-padding-x: 180px;
    }
}

@media (max-width:1440px) {
    :root {
        --navbar-padding-x: 70px;
        --footer-padding-x: 85px;
    }
}

@media(max-width:1250px) {
    .navbar-main-list>.navbar-item>li {
        padding: 0 5px;
    }
}

@media (max-width:1200px) {
    :root {
        --navbar-padding-x: 30px;
        --footer-padding-x: 15px;
        --collapse-padding-x: 30px;
    }

    .navbar-main-list {
        display: none;
    }

    .navbar-top {
        display: none;
    }

    .navbar-mobile-list {
        display: block;
        z-index: 999;
    }

    .mobile-hide {
        display: none !important;
    }

    .navbar-list-icon {
        display: block;
    }

    .navbar-item {
        width: 100%;
        border-bottom: 1px solid #B7BCC5;
        margin-bottom: 0;
        text-align: center;
    }

    .navbar-item>li {
        min-height: var(--navbar-mobile-row-height);
        line-height: var(--navbar-mobile-row-height);
        padding: 0 15px;
    }

    .navbar-line::before {
        display: none;
    }

    #navbar-item3 {
        border-bottom: none;
    }

    #navbar-item3>li {
        display: block;
        border-bottom: 1px solid var(--navbar-mobile-border-color);
    }

    .navbar-main-list>ul:last-child {
        padding-right: inherit;
    }

    #navbar-item2>li:first-child {
        border-right: 1px solid var(--navbar-mobile-border-color);
    }

    #navbar-item2 {
        border-top: 1px solid var(--navbar-mobile-border-color);
        display: flex;
    }

    #navbar-item2>li {
        flex: 1;
    }

    #navbar-item1 {
        display: flex;
    }

    #navbar-item1>li {
        flex: 1;
    }

    #navbar-item1>li:nth-child(2) {
        border-right: 1px solid var(--navbar-mobile-border-color);
    }

    #navbar-item1>li:nth-child(3) {
        border-right: 1px solid var(--navbar-mobile-border-color);
    }

    .footer-top>img {
        left: 0;
        transform: translate(0, 5px);
        min-width: 100%;
    }

    .footer-image>img {
        left: 0;
        transform: translate(0, 5px);
        min-width: 100%;
    }

    .footer-list {
        text-align: center;
        display: block;
    }


    .footer-info {
        padding: 20px 0px;
        max-width: none;
    }

    .footer-list>div {
        margin: 8px auto;
    }

    .footer-logo {
        display: inline-flex;
        margin-bottom: 20px !important;
    }

    .footer-logo>img {
        margin: 0 auto;
    }

    .footer-icon {
        margin-top: 30px;
        margin-bottom: 25px;
    }


    .drop-item {
        border-bottom: 0;
        padding: 0;
    }

    .drop-item>span {
        font-size: var(--font-h5);
        line-height: 1;
    }

    .drop-item>a {
        line-height: 1;

    }

    .drop {
        position: static;
        background-color: transparent;
        width: 100%;
        color: #fff;
        line-height: 35px;
        padding: 0 15px 5px;
        border-top: 0;
    }


    .footer-collapse-box {
        transform: translateY(45px);
    }

    .search-close {
        display: none;
    }

    .search {
        position: static;
    }

    .search>form {
        padding: 10px;
        text-align: center;
        position: static;
        transform: none;
    }

    .footer-content {
        padding-bottom: 40px;
    }
}

@media (max-width:660px) {
    :root {
        --footer-bottom-height: 24px;
    }

    .footer-bottom {
        display: block;
        padding: 20px var(--footer-padding-x);
        text-align: center;
    }

    .collapse-content {
        display: block;
        padding-bottom: 50px;
    }

    .collapse-row {
        margin-bottom: 40px;
    }

    .collapse-row {
        border-right: 1px solid #DADADA;
    }

    .search-input {
        width: calc(100% - 65px);
    }

    .search-btn {
        width: 45px;
        height: 45px;
        margin: 0;
    }

    .search-btn>span {
        display: none;
    }

    .footer-content {
        padding-bottom: 10px;
    }
}

@media (max-width:430px) {
    :root {
        --navbar-padding-x: 15px;
        --logo-width: 150px;
        --navbar-main-height: 60px;
        --footer-padding-top: 40px;
    }

    .navbar-list {
        font-size: var(--font-h3);
    }
}

@media (max-width:320px) {
    :root {
        --navbar-mobile-row-height: 40px;
        --footer-padding-x: 15px;
    }
}