::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    background: #2f2f2f;
    border-radius: 0px;
    border: 2px solid #f3f3f3;
}

::-webkit-scrollbar-thumb:hover {
    background: #1f1f1f;
}

::-webkit-scrollbar-button {
    display: none;
}

body {
    font-family: "Noto Sans TC", serif;
    background-color: #FFF;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* cookie-banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4f4f4f80;
    color: #F0F0F0;
    padding: 20px 100px;
    font-size: 16px;
    z-index: 9999;
    display: none;
}

.cookie-banner .cookie {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cookie-banner p {
    margin: 0;
    padding: 10px 0;
}

.cookie-banner button {
    background-color: #fff;
    color: #4f4f4f;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.cookie-banner a {
    padding: 0 5px;
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 1400px) {
    .cookie-banner {
        background-color: #4f4f4f;
        padding: 20px 10px;
        font-size: 14px;
    }
    
    .cookie-banner .cookie {
        flex-direction: column;
        justify-content: center;
    }
    
    .cookie-banner p {
        margin: 0;
        padding: 0;
        text-align: justify;
    }
    
    .cookie-banner button {
        margin-top: 10px;
        font-size: 12px;
    }
}

/* back-to-top */
.back-to-top {
    z-index: 999;
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: none;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5%;
    width: 45px;
    height: 45px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s, visibility 0.3s;
}
    
.back-to-top:hover {
    background-color: #1f1f1f;
}
    
.back-to-top img {
    width: 15px;
    height: 15px;
}
    
@media (max-width: 770px) {
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
        
    .back-to-top img {
        width: 10px;
        height: 10px;
    }
}

/* Navbar */
header {
    font-family: "Noto Serif TC", serif;
    box-shadow: 0px 5px 10px rgba(13,13,13, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
    padding: 15px 120px;
}

header .logo a {
    text-decoration: none;
}

header .logo a p {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: #2f2f2f;
    width: 120px;
    height: auto;
}

header nav {
    display: flex;
    justify-content: center;
}

header nav .nav-links {
    display: flex;
    list-style: none;
    padding-top: 10px;
    padding-inline-start: 0px;
}

header nav .nav-links .nav-link {
    margin: 0 20px;
    padding: 5px 0px;
    transition: border-color 0.3s ease-in-out;
}

header nav .nav-links .nav-link a {
    padding: 0px 10px;
    text-decoration: none;
    color: #4f4f4f;
    font-size: 20px;
    font-weight: 500;
    position: relative;
}

header nav .nav-links .nav-link a:hover,
header nav .nav-links .nav-link a.active {
    color: #2f2f2f;
}



header nav .nav-links .dropdown-menu {
    min-width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: none;
    box-sizing: border-box;
    padding: 0px;
}

header nav .nav-links .dropdown-menu.show {
    display: block;
    margin-top: 10px!important;
}

header nav .nav-links .dropdown-menu li .dropdown-item {
    padding: 10px 0px;
}

header nav .nav-links .dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background-color: #4f4f4f;
    color: #fff;
    cursor: pointer;
}

header nav .nav-links .dropdown-menu li a:hover {
    background-color: #2f2f2f;
    color: #fff;
}

header .shopping-cart .openCart {
    background-color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    flex-direction: row;
    color: #4f4f4f;
    font-size: 20px;
    font-weight: 500;
}
    
header .shopping-cart .openCart:hover {
    background-color: #fff;
    color: #2f2f2f;
}
    
header .shopping-cart .openCart img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

header .shopping-cart .openCart span {
    display: block;
}

header .menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 40px;
    width: 40px;
}

header nav .close-nav {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1400px) {
    header {
        position: sticky;
        padding: 15px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header .logo {
        margin: 0 auto;
        z-index: 2;
        text-align: center;
    }

    header .menu-toggle {
        display: block;
        color: #4f4f4f;
        position: absolute;
        left: 15px;
        top: 18px;
        font-size: 24px;
        cursor: pointer;
        z-index: 3;
    }
    
    header nav .close-nav {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    header nav .close-nav img {
        width: 20px;
        height: 20px;
    }

    header .shopping-cart {
        position: absolute;
        right: 15px;
        top: 25px;
        z-index: 2;
    }
    
    header .shopping-cart .openCart img {
        width: 25px;
        height: 25px;
        margin-right: 0px;
    }
    
    header .shopping-cart .openCart span {
        display: none;
    }

    header nav {
        position: fixed;
        top: 0;
        left: -420px;
        width: 420px;
        height: 100%;
        background: #fff;
        box-shadow: 0px 5px 10px rgba(13,13,13, 0.05);
        transition: left 0.5s ease;
        z-index: 1000;
        padding-top: 75px;
    }

    header nav.open {
        left: 0;
    }

    header nav .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    header nav .nav-links .nav-link {
        border-right: 4px solid #fff;
        margin: 0 30px;
        padding: 15px 0px;
    }

    header nav .nav-links .nav-link a {
        font-size: 18px;
        padding: 0px;
    }
    
    header nav .nav-links .nav-link:hover,
    header nav .nav-links .nav-link.active {
        border-right: 4px solid #E6E6E6;
    }
    
    header nav .nav-links .dropdown-menu.show {
        margin-top: 15px!important;
    }

    header nav .nav-links .dropdown-menu li a {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    header nav {
        left: -370px;
        width: 370px;
    }
}

/* footer */
.footer {
    background-color: #2f2f2f;
    font-family: "Noto Serif TC", serif;
    padding-top: 30px;
    padding-bottom: 30px;
}
    
.footer .row {
    padding-left: 50px;
    padding-bottom: 30px;
}
    
.footer .title {
    padding-top: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
    
.footer .links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
    
.footer .links .link {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #E6E6E6;
    transition: color 0.3s ease;
}
    
.footer .links .link:hover {
    color: #F2F2F2;
    text-decoration: underline;
}
    
.footer .link {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #E6E6E6;
    transition: color 0.3s ease;
}
    
.footer .link:hover {
    color: #F2F2F2;
}
    
.footer .text {
    padding: 0px;
    margin: 10px 0px 0px 0px;
    font-size: 16px;
    font-weight: 500;
    color: #D9D9D9;
}
    
.footer .social-media {
    margin-top: 20px;
    text-align: left;
}
    
.footer .social-media a img {
    display: inline-block;
    width: 35px;
    height: auto;
    line-height: 25px;
    transition: all .3s;
}
    
.footer .footer-end {
    padding-top: 15px;
}
    
.footer .footer-end .row {
    margin: 0px 20px;
    padding-left: 0px;
}
    
.footer .footer-end .text {
    margin: 0;
    text-align: center;
    font-size: 16px;
    color: #D9D9D9;
}
    
.footer .footer-end .text1 {
    margin: 0;
    padding-top: 10px;
    text-align: center;
    color: #D9D9D9;
    font-size: 14px;
}
    
.footer .footer-end .link {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #E6E6E6;
    transition: color 0.3s ease;
}
    
.footer .footer-end .link:hover {
    color: #F2F2F2;
}
    
@media (max-width: 770px) {
    .footer {
        padding-top: 20px;
        padding-bottom: 20px;
    }
        
    .footer .row {
        padding-left: 0px;
        padding-bottom: 20px;
    }
        
    .footer .title {
        font-size: 20px;
        margin-bottom: 10px;
    }
        
    .footer .links {
        gap: 5px;
    }
        
    .footer .links .link {
        font-size: 16px;
    }
        
    .footer .link {
        font-size: 16px;
    }
        
    .footer .social-media {
        margin-top: 10px;
    }
        
    .footer .social-media a img {
        width: 30px;
    }
        
    .footer .text {
        margin: 5px 0px 0px 0px;
        font-size: 14px;
    }
        
    .footer .footer-end .row {
        margin: 0px;
        padding-left: 0px;
    }
        
    .footer .footer-end {
        padding-top: 15px;
    }
        
    .footer .footer-end .text {
        font-size: 14px;
    }
        
    .footer .footer-end .text1 {
        padding: 10px 25px 0px 25px;
        font-size: 12px;
    }
        
    .footer .footer-end .link {
        font-size: 14px;
    }
}
    
@media (max-width: 480px) {
    .footer .container {
        padding: 0 40px;
    }
    
    .footer .footer-end .text1 {
        padding: 10px 15px 0px 15px;
        font-size: 12px;
    }
}