:root {
    --green:#2ec657;
    --red: #a00;
    --background-grey: #ffffff;
    --light-grey:rgb(239, 238, 240);
    --grey:#717171;
    --black:#151515;
    --white:#ffffff;
    --box-shadow:0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

@font-face { font-family: Roboto; src: url('../fonts/Roboto-Regular.ttf'); }

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--black);
    background-color: var(--background-grey);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    color: rgb(51, 51, 51);
}

h1 {
    font-size: 26px;
    font-weight: 600;
    line-height: 30px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    
}

p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: rgb(15, 15, 15);
    margin-bottom: calc(0.1rem + 1vw);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: var(--black);
    text-decoration: none;
    &:hover {
        font-weight: 600;
    }
}

svg {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.button:hover {
    opacity: 0.8;
}

/*
 * Header
 */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    opacity: 1;
    background-color: var(--white);
    border-bottom: 1px solid rgba(210, 210, 210, 0.4);
}

.top-header-holder {
    .srch-holder {
        position: fixed;
        top: -90px;
        width: 100%;
        height: 96px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 23;
        opacity: 1;
        background-color: white;
        border-bottom: solid 1px rgba(180, 180, 180, 0.6);
        visibility: hidden;
        transition: all 0.2s ease;
    }

    .srch-holder.active {
        visibility: visible !important;
        top: 0;
    }

    .icon-holder {
        display: grid;
        grid-template-columns: 18% 64% 18%;
        grid-template-areas: "logo nav tools";
        padding: 20px 7.5rem;

        .logo-holder {
            grid-area: logo;
            align-self: center;
            justify-self: start;
            font-size: 25px;
            font-weight: 600;
            font-family: Arial;
            a {color: var(--black);}
        }

        .nav-holder {
            grid-area: nav;
            justify-self: center;
            align-self: center;
            .menu-icon { display: none; }
            .navbar-menu {
                display: block;
                li {
                    display: inline-block;
                    margin: 0 16px;
                    a {
                        font-size: 14px;
                        padding: 23px 0;
                    }
                    &.current-menu-item {
                        a {
                            font-weight: 600;
                            border-bottom: 2px solid var(--black);
                        };
                    }

                    &:hover .sub-menu {
                        display: block;
                    }
                }
            }

            .sub-menu {
                display: none;
                position: absolute;
                background-color: #fff;
                min-width: 140px;
                z-index: 1;
                li {
                    display: block;
                }
            }
        }

        
        .tools-holder {
            grid-area: tools;
            align-self: center;
            justify-self: end;
            svg {
                cursor: pointer;
                margin-left: 1rem;
            }
            .open-sidecart {
                cursor: pointer;
                position: relative;
                display: inline-block;
                .product-counter {
                    width: 22px;
                    height: 22px;
                    background-color: red;
                    color: var(--white);
                    border-radius: 11px;
                    position: absolute;
                    right: -5px;
                    top: -9px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                } 
            }
        } 
    }
}

@media screen and (max-width: 768px) {
    .top-header-holder > .icon-holder {
        grid-template-columns: 32% 36% 32%;
        grid-template-areas: "nav logo tools";
        padding: 0.85rem 1rem;
        .nav-holder {
            grid-area: nav;
            justify-self: start;
            .menu-icon {
                display: inline-block;
            }

            .navbar-menu {
                display: none;
                position: absolute;
                z-index: 1;
                background-color: #fff;
                left: 0;
                right: 0;
                top: 50px;
                text-align: center;
                li {
                    display: block; 
                }
            }
        }

        .logo-holder {
            grid-area: logo;
            justify-self: center;
        }
    }
}

    .mobile-menu {
        display: none;
        .navbar-menu {
            text-align: center;
            background-color: #fff;
            z-index: 1;
            margin: 0 0 10px;
            li.menu-item {
                padding: 5px 0;
                .sub-menu > li {
                    padding: 5px 0 0;
                }
            }
        }
    }

/*
* Footer
*/
.site-footer {
    padding: 10rem 10rem 2rem;
    background-color: var(--white);
    .footer-container_heading {
        margin-bottom: 1rem;
    }
    .menu-item {
        margin-bottom: 7px;
    }
}

/*
* search products page
*/
form.woocommerce-product-search {
    position: relative;
    display: inline-block;
}

form.woocommerce-product-search input[type="search"] {
    -webkit-appearance: none; /* 强制移除原生放大镜 & 清除按钮 */
    appearance: none;
    width: 300px;
    height: 35px;
    padding-left: 8px;
    border: 1px solid rgba(180, 180, 180, 0.6);
}

form.woocommerce-product-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

form.woocommerce-product-search .search-icon {
    position: absolute;
    right: 8px;               /* 微调间距 */
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
 * front-page
 * home-slide featured-product product-category
 */
section.home {
    padding: 0 7.5rem;
}

.home .home-slider .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /*gap: 1rem;*/
}

.home .home-slider .slide .content {
    flex: 1 1 280px;
}

.home .home-slider .slide .image {
    flex: 1 1 auto;
}

.home .home-slider .slide .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.home .home-slider .slide .content span {
    padding: 1rem 0;
}

.home .home-slider .slide .content h1 {
    font-size: 36px;
    padding: 1rem 0;
}

.home .home-slider .slide .content p {
    padding: 1rem 0;
    color: var(--grey);
}

.home .home-slider .slide .btn {
    color: #fff;
    background-color: var(--black);
    cursor: pointer;
    padding: 0.6rem 1.2rem;
}

.swiper-pagination-bullet-active {
    background: var(--light-grey);
}

@media (max-width: 768px) {
    section.home {
        padding: 1rem 1rem 0;
    }

    .home .home-slider .slide {
        gap: 0.45rem;
    }

    .home .home-slider .slide .content {
        text-align: center;
    }

    .home .home-slider .slide .content span {
        font-size: .9rem;
    }

    .home .home-slider .slide .content h3 {
        font-size: 2rem;
    }

    .home .home-slider .slide .content p {
        font-size: .9rem;
    }

    .home .home-slider .slide .btn {
        margin-top: .35rem;
    }
}

/*
* service promise
*/
.service-promise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2.5rem 0 1.5rem;
}

.service-promise .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    &:nth-child(2) {
        border-left: 1px solid rgb(210, 210, 210, 0.5);
        border-right: 1px solid rgb(210, 210, 210, 0.5);
    }
    span {color: var(--grey);}
}

/*
 * featured product
 */
section.product-shelf {
    padding: 2rem 7.5rem;
}

.product-shelf .heading {
    text-align: center;
    color: rgb(15, 15, 15);
    padding-bottom: 2.5rem;
    text-transform: capitalize;
}

.product-shelf ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 2rem;
}

.product-shelf ul.products li.product {
    background: var(--white);
    width: 100%;
    /*border: 1px solid rgba(210, 210, 210, 0.5);
    box-shadow: var(--box-shadow);
    text-align: center;*/
    position: relative;
    overflow: hidden;
}

.product-shelf ul.products li.product img {
    object-fit: cover;
    height: auto;
    width: 100%;
    margin: 0 0 0.7rem;
}

ul.products li.product h2.woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    padding: 0 8px;
    margin-bottom: 0.5rem;
}

ul.products li.product span.price {
    color: var(--black);
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 8px;
}

ul.products li.product .add_to_cart_button {
    color: var(--grey);
    font-size: calc(.65rem + .3vw);
    float: right;
    margin: 0 8px 8px 0;
}

@media (max-width: 768px) {
    section.product-shelf {
        padding: 2rem 1rem;
    }

    .product-shelf ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/*
* banner-about
*/
section.about {
    padding: 1.5rem 7.5rem;
}

.about .heading {
    text-align: center;
}

.about .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about .row .image {
    flex: 1 1 20rem;
}

.about .row .image img {
    width: 100%;
    object-fit: cover;
}

.about .row .content {
    flex: 1 1 30rem;
}

.about .row .content h3 {
    padding: .5rem 0;
}

.about .row .content p {
    color: var(--grey);
}

.about .row .content .icons-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .5rem 0;
    margin-top: .5rem;
}

.about .row .content .icons-container .icon {
    background: #eee;
    border-radius: .5rem;
    border: 1px solid rgba(180, 180, 180, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1;
    flex: 1 1 10rem;
    padding: .6rem .4rem;
}

.about .row .content .icons-container .icon i {
    font-size: 1rem;
    color: var(--green);
    margin-right: .3rem;
}

.about .row .content .icons-container .icon span {
    font-size: .9rem;
    color: var(--black);
}

@media (max-width: 991px) {
    section.about {
        padding: 2rem 1rem;
    }
    .about .row {
        gap: 0;
    }
}


/*
* shop page
*/
.shop-wrapper {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 1.5rem 1rem;
    background-color: var(--white);
    /*border: 1px solid rgba(210, 210, 210, 0.6); */
}

.shop-wrapper .woocommerce-ordering {
    display: flex;
    justify-content: flex-end;
}

.shop-wrapper .woocommerce-ordering select {
    border: 1px solid rgba(180, 180, 180, 0.6);
    border-radius: .3rem;
}

.shop-wrapper .shop-categories-lists {
    padding: 0 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;

    a {
        margin: 6px 10px;
        padding: 6px 12px;
        color: var(--black);
        border-radius: .4rem;
        background-color: var(--light-grey);
    }
    a.active {
        color: var(--white);
        background-color: var(--black);
    }
}

.shop-wrapper ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.shop-wrapper ul.products li.product {
    background: var(--white);
    width: 100%;
    /*border: 1px solid rgba(210, 210, 210, 0.5);
    box-shadow: var(--box-shadow);
    text-align: center;*/
    position: relative;
    overflow: hidden;
}

a.added_to_cart {
    display: none !important;
}

.shop-wrapper ul.products li.product img {
    object-fit: cover;
    height: auto;
    width: 100%;
    margin: 0 0 0.7rem;
}

.shop-wrapper ul.products li.product span.price {
    color: var(--black);
    font-size: 14px;
    margin: 0 0 8px 8px;
}

.shop-wrapper ul.products li.product .add_to_cart_button {
    color: rgb(124, 124, 124);
    font-size: calc(.65rem + .3vw);
    float: right;
    margin: 0 8px 8px 0;
}

.woocommerce-pagination {
    margin: 3rem 0 1rem;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    li {
        border: none !important;
        margin: 0 .15em;
    }
}

.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
    background: rgb(240, 240, 240) !important;
    background-size: .875em 2px, 0 !important;
    border-radius: .5em;
}

.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    width: 2rem; height: 2rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .shop-wrapper {
        margin: 0 auto;
        padding: 0 1rem;
        ul.products {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
    }
}

/* paginate */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 1rem; 
}

.pagination .page-numbers {
    margin: 0 .35em;
    width: 2rem; height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination span.current {
    background: rgb(240, 240, 240) !important;
    background-size: .875em 2px, 0 !important;
    border-radius: .5em;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    a:hover {
        background: rgb(240, 240, 240) !important;
        background-size: .875em 2px, 0 !important;
        border-radius: .5em; 
    }
}

/**
 * single product page flexslider css [images-summary]:[entry-images][entry-summary]
 */
.images-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;

    div.entry-summary {
        width: 100%;
        overflow-y: scroll;
        z-index: 25;
    }

    div.entry-summary::-webkit-scrollbar {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .images-summary {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .entry-images {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/*
* entry-images  single product page
*/
div.entry-images > .woocommerce-product-gallery {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

div.woocommerce-product-gallery > div.flex-viewport {
    flex-basis: 450px;
    height: 100%;
    margin: 0;
}

div.flex-viewport > div.woocommerce-product-gallery__wrapper > div.woocommerce-product-gallery__image img {
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: all 0.3s ease; /* Smooth zoom effect */
}

div.woocommerce-product-gallery > ol.flex-control-nav {
    flex-basis: 46px;
    z-index: 0;
    height: 445px;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
}

ol.flex-control-nav li {
    min-width: 100%;
    margin-bottom: 20px;
    transition: margin-top 0.4s linear;
    img {
        width: 45px;
        height: 45px;
    }
}

/* Style the active image */
.flex-active {
    border: 2px solid var(--black); /* Active image border color */
}

@media screen and (max-width:768px) {
    div.entry-images > .woocommerce-product-gallery {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 15px;
        position: relative;
    }

    div.woocommerce-product-gallery > div.flex-viewport {
        width: 100%;
        height: auto;
        margin: 0;
    }

    /* Thumbnails Styling */
    div.woocommerce-product-gallery > ol.flex-control-nav {
        flex-basis: 45px;
        display: flex;
        flex-direction: row;
        width: 440px;
        overflow: hidden; 
    }

    ol.flex-control-nav li {
        min-width: 45px !important;
        margin-right: 19px !important;
        img {
            opacity: 1 !important;
            width: 45px !important;
            height: auto !important;
        }
    }
}

/* Adjusting Container */
ul.flex-direction-nav {
    position: absolute;
    width: 445px;
    height: 100%;
    right: 0px;
    z-index: 9;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul.flex-direction-nav:hover a.flex-next,
ul.flex-direction-nav:hover a.flex-prev {
    opacity: 1; 
}

@media screen and (max-width:768px) {
    ul.flex-direction-nav {
        width: 445px;
        height: 85%;
    }
}

a.flex-next,
a.flex-prev {
    opacity: 0;  
    font-size: 0; /* Hide any potential text */
}

a.flex-next::after,
a.flex-prev::before {
    font-weight: 600;
    font-size: 40px;
    color: #d4d4d4; /* Arrow color */
    transition: color 0.3s ease; /* Transition effect for color change */
}

a.flex-next::after {
    content: '>'; /* Font Awesome class for right arrow */
}

a.flex-prev::before {
    content: '<'; /* Font Awesome class for left arrow */
}

/* Optional: Change color on hover */
a.flex-next:hover::after,
a.flex-prev:hover::before {
    color: rgb(128, 128, 128); /* Color on hover */
}


/**
* single product quantity input css
*/
button.btn-add,
button.btn-sub {
    width: 1.5rem; height: 1.5rem;
    border: none;
    background: linear-gradient(currentColor, currentColor) no-repeat center/.875em 1.8px, 
                linear-gradient(currentColor, currentColor) no-repeat center/1.8px .875em,
                rgb(239, 238, 240);
    color: #a3a3a3;
    border-radius: 5px;
}
button.btn-sub {
    background-size: .875em 1.8px, 0;
}

button.btn-add::first-letter {
    color: transparent;
}
button.btn-sub::first-letter {
    color: transparent;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none; 
    margin: 0;
}

input.qty {
    border: none;
    width: 1.42rem;
    text-align: center;
}

/*
* plus sub button in mini cart
*/
button.decrement,
button.increment {
    width: 1.5rem; height: 1.5rem;
    border: none;
    background: linear-gradient(currentColor, currentColor) no-repeat center/.875em 2px, 
                linear-gradient(currentColor, currentColor) no-repeat center/2px .875em,
                rgb(239, 238, 240);
    color: #a3a3a3;
    border-radius: 5px;
}
button.decrement {
    background-size: .875em 2px, 0;
}

button.decrement::first-letter {
    color: transparent;
}
button.increment::first-letter {
    color: transparent;
}

input.quantity {
    border: none;
    width: 1.42rem;
    text-align: center;
}

/*
* single product page - convert variable product select dropdown to clickable label
*/
.swatch {
    width: 25px;
    height: 25px;
    line-height: 25px;
	display: inline-block;
	margin-right: 1rem;
	cursor:pointer;
	border: 1px solid #d1d1d1;
	vertical-align: middle;
    border-radius: 5px;
    text-align: center;
}

span.selected{
	outline: 2px solid #151515;
}

/* single product page - entry summary */
/**
* single product page - add 'checkout' button single-product template
*/
.woocommerce-breadcrumb,
.custom-breadcrumbs {
    font-weight: 400;
    line-height: 14px;
    color: var(--grey);
    background-color: var(--background-grey);
    margin: 0 auto;
    max-width: 1100px;
    padding: 46px 16px 8px;
    a {color: var(--grey);}
}

@media screen and (max-width:768px) {
    .woocommerce-breadcrumb,
    .custom-breadcrumbs {
        padding:0.5rem 16px
    }
}

.woocommerce div.product .product_title {
    font-size: calc(.85rem + .65vw);
    line-height: 24px;
    margin-bottom: 1.2rem;
}

.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: var(--black);
    font-size: calc(.85rem + .35vw);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.woocommerce-product-details__short-description {
    margin-bottom: 1.2rem;
}

.woocommerce .ppcp-messages {
    display: none !important;
}

/* single product page woocommerce-tabs style */
.woocommerce div.product .woocommerce-tabs {
    margin-bottom: 6rem;
}

@media screen and (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs {
        margin-bottom: 3rem;
    }
}

.woocommerce div.product .woocommerce-tabs ul.tabs
{
    list-style: none;
    padding: 0 0 0 .5em;
    margin: 0 0 1.5em;
    overflow: hidden;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li
{
    color: #515151;
    display: inline-block;
    position: relative;
    z-index: 0;
    margin: 0 -5px;
    padding: 0 1em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active
{
    a {color: var(--black);}
    z-index: 2;
    border-bottom: 2px solid #222222;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 0 0 5px;
    font-weight: 700;
    color: var(--grey);
    text-decoration: none;
}

/* single product page do not show the quantity of items in stock */
div.product .stock {
    display: none;
}

/* single product page - entry summary - form.cart  */
.woocommerce div.product form.cart table.variations {
    width: 100%;
    border-collapse: separate;
    margin-bottom: 1rem;
}

.woocommerce div.product form.cart table.variations th {
    font-weight: 700;
    padding: 0;
    line-height: 2em;
    width: 10%;
    text-align: left;
    vertical-align: middle;
}

.woocommerce div.product form.cart table.variations td {
    width: 80%;
    line-height: 2.5em;
    text-align: left;
    vertical-align: middle;
}

.woocommerce form.cart button.single_add_to_cart_button {
    margin: 2rem 5px 0 0;
    padding: 6px 20px;
    color: #fff;
    font-size: medium;
    width: 40%;
    background-color: var(--green);
    border: none;
    border-radius: .2em;
}

.woocommerce form.cart button.buy-now-button {
    padding: 6px 20px;
    color: #fff;
    font-size: medium;
    clear: both;
    width: 40%;
    background-color: #000;
    border: none;
    border-radius: .2em;
}

@media screen and (max-width: 768px) {
    .woocommerce div.product form.cart {
        position: fixed;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 1.25rem;
        width: 100%;
        background-color: #fff;
        z-index: 98;
        border-top: 1px solid rgba(180, 180, 180, 0.6);
        display: flex;
        align-items: center;
        justify-content: space-around;
        .single_add_to_cart_button,
        .buy-now-button {
            display: inline-block;
            width: 33%;
            margin: 0;
        } 
    }

    form.variations_form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;

        .variations_button {
            display: flex;
            align-items: center;
            justify-content: space-between;
        } 
    }
}

/**
* checkout page
*/
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 60% 37%;
    gap: 30px;
}

@media screen and (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 100%;
    }
}

.woocommerce form h3 {
    margin-bottom: 1rem;
}

.woocommerce form .form-row {
    padding: 3px;
    margin: 0 0 6px
}

.woocommerce form .form-row label {
    line-height: 2;
    display: block;
}

.woocommerce form .form-row-first {
    float: left;
}

.woocommerce form .form-row-last {
    float: right;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 49%;
    overflow: visible;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
    font-weight: 400;
    letter-spacing: normal;
    width: 100%;
    padding: .5em;
    display: block;
    background-color: #fff;
    border: 1px solid rgba(180, 180, 180, 0.6);
    border-radius: .3em;
    color: #444;
    margin: 0;
    line-height: normal;
    height: auto;
}

.select2-container .select2-selection--single {
    height: auto;
    border: 1px solid rgba(180, 180, 180, 0.6)
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: .5em;
    line-height: normal;
    box-sizing: border-box;
    color: #444;
    font-weight: 400;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.woocommerce form .form-row-wide,
.woocommerce-page form .form-row-wide {
    clear: both;
}

.woocommerce form .form-row label.hidden {
    visibility: hidden
}

.woocommerce form .form-row [placeholder]:focus::-webkit-input-placeholder {
    -webkit-transition: opacity .5s .5s ease;
    transition: opacity .5s .5s ease;
    opacity: 0
}

.woocommerce form .form-row label.inline {
    display: inline
}

.woocommerce form .form-row textarea {
    height: 4em;
    line-height: 1.5;
    box-shadow: none
}

.woocommerce form .form-row .required {
    color: var(--red);
    font-weight: 700;
    border: 0!important;
    text-decoration: none;
    visibility: hidden
}

.woocommerce form .form-row .optional {
    visibility: visible
}

.woocommerce form .form-row.woocommerce-invalid label {
    color: var(--red)
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,.woocommerce form .form-row.woocommerce-invalid select {
    border-color: var(--red)
}

.woocommerce form .form-row.woocommerce-invalid .select2-container:not(.select2-container--open) .select2-selection {
    border-color: var(--red)
}

.woocommerce form .form-row.woocommerce-validated input.input-text,.woocommerce form .form-row.woocommerce-validated select {
    border-color: var(--green)
}

.woocommerce table.shop_table {
    border: 1px solid rgba(0,0,0,0.1);
    margin: 0 -1px 24px 0;
    width: 100%;
    border-collapse: separate;
    border-radius: 5px;
}

.woocommerce table.shop_table th {
    font-weight: 700;
    padding: 9px 12px;
    line-height: 1.5em;
}

.woocommerce table.shop_table th:nth-child(1), td:nth-child(1) {
    width: 85%;
    text-align: left;
}

.woocommerce table.shop_table th:nth-child(2), td:nth-child(2) {
    width: 15%;
    text-align: right;
}

.woocommerce table.shop_table td {
    border-top: 1px solid rgba(0,0,0,0.1);
    vertical-align: middle;
    font-weight: 700;
    padding: 9px 12px;
    width: 100%;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    font-weight: 700;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.woocommerce table.shop_table .cart_item .product-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.woocommerce table.shop_table .cart_item .item-remove-thumnail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
}

.woocommerce table.shop_table td div.cart-item-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-weight: 500;
    margin-bottom: .5rem;
}

.woocommerce table.shop_table .cart_item .attachment-woocommerce_thumbnail {
    width: 45px;
    height: auto;
}

/* cart item quantity minus plus button in checkout page */
button.minus,
button.plus {
    width: 1.5rem; height: 1.5rem;
    border: none;
    background: linear-gradient(currentColor, currentColor) no-repeat center/.875em 2px, 
                linear-gradient(currentColor, currentColor) no-repeat center/2px .875em,
                rgb(240, 240, 240);
    color: #a3a3a3;
    border-radius: 5px;
}
button.minus {
    background-size: .875em 2px, 0;
}

button.minus::first-letter {
    color: transparent;
}
button.plus::first-letter {
    color: transparent;
}

form.woocommerce-checkout button[type="submit"] {
    width: 100%;
    border: none;
    outline: none;
    padding: 9px 12px;
    border-radius: .3em;
    color: #fff;
    background-color: #000;
}

.woocommerce-error, .woocommerce-info,
.woocommerce-message {
    padding: 2em 2em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background-color: #f6f5f8;
    list-style: none;
    width: auto;
    word-wrap: break-word;
}

#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    padding: 1em 0;
    text-align: left;
    margin: 0;
    list-style: none;
}

#add_payment_method #payment ul.payment_methods li,
.woocommerce-cart #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
    line-height: 2;
    text-align: left;
    margin: 0;
    font-weight: 400;
}

/* side-cart */
.ztopj-cart {
    position: fixed;
    top: 0;
    left: 100%;
    height: 100vh;
    width: 390px;
    background-color: var(--white);
    transition: 0.5s ease;
    z-index: 999;
    border-left: 1px solid rgba(210, 210, 210, 0.5);
}

.active .ztopj-cart {
    left: calc(100% - 390px);
}

.ztopj-cart {
    display: grid;
    grid-template-rows: 62px 1fr 220px;
}

.ztopj-cart .shopping_cart_heading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ztopj-cart .shopping_cart_checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ztopj-cart .shopping_cart_checkout .cart-stotal {
    font-size: 1rem;
    font-weight: 600;
}

.ztopj-cart .shopping_cart_checkout button {
    width: 80%;
    height: 35px;
    font-size: 1rem;
    margin: 10px auto 0;
    cursor: pointer;
    border-radius: 4px;
    border: none;
}

.ztopj-cart .shopping_cart_checkout .checkout-button {
    background-color: var(--black) !important;
    color: var(--white);
}

.ztopj-cart .shopping_cart_checkout .closeside-button {
    background-color: var(--light-grey) !important; 
}

.ztopj-cart .shopping_cart_content {
    padding: 0 1.7rem;
    overflow-y: scroll;
    ul {
        background-color: var(--white);
        border-radius: 4px;
        border: 1px solid rgba(210, 210, 210, 0.5);
    }
}

.ztopj-cart .shopping_cart_content::-webkit-scrollbar {
    display: none;
}

.ztopj-cart .shopping_cart_content li {
    list-style: none;
    margin-bottom: 2px;
    padding: 10px 10px 10px 5px;
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    &:not(:last-child) {border-bottom: 1px solid rgba(210, 210, 210, 0.5);}
}

.ztopj-cart .shopping_cart_content li img {
    width: 50px;
    height: 50px;
    margin-right: 3px;
}

.ztopj-cart .shopping_cart_content li .cart-item-name-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    a {font-weight: 100; font-size: 13px;}
}

.ztopj-cart .shopping_cart_content li .cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

a.remove {
    display: inline-block;
    font-size: 1.5em;
    height: 1em;
    width: 1em;
    text-align: center;
    line-height: 1;
    border-radius: 100%;
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    border: 0
}

a.remove:hover {
    color: #fff!important;
    background: var(--red)
}

.ztopj-cart .woocommerce-mini-cart__empty-message {
    text-align: center;
}

/**
* Contact page
*/
.content-container {
    max-width: 1100px;
    margin: min(1%, 1em) auto;
    padding: 1.5rem 1rem;
    background-color: var(--white);
    /*border: 1px solid rgba(210, 210, 210, 0.5);*/
}

#contactForm {
    width: min(550px, 80%);
    margin: 0 auto;
    padding: 2rem 0;
    border-radius: 3px;
}

#contactForm label {
    display: block;
}

#contactForm input[type="text"],
textarea {
    width: 100%;
    padding: 2px;
    outline: none;
    resize: none;
    border: none;
    border-bottom: 1px solid rgba(180, 180, 180, 0.6);
    margin-bottom: 1rem;
}

#contactForm input[type="text"]:focus, textarea:focus {
    border-bottom: 1px solid rgb(103, 103, 103);
}

#contactForm .submit-center {
    text-align: center;
}

#contactForm input[type="submit"] {
    margin-top: 20px;
    padding: 5px;
    width: 90%;
    max-width: 200px;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

#contactForm input[type="submit"]:hover {
    opacity: 0.8;
}

#contactForm .error {
    color: red;
}

#contactForm .error-border {
    border-bottom: 1px solid red !important;
}

/**
* Tracking order
*/
#trackOrder {
    width: min(550px, 70%);
    margin: 0 auto;
    padding: 12rem 0;
}

#trackOrder input[type="text"] {
    width: 100%;
    padding: 2px;
    outline: none;
    resize: none;
    border: none;
    border-bottom: 1px solid rgba(180, 180, 180, 0.6);
}

#trackOrder input[type="text"]:focus {
    border-bottom: 1px solid rgb(103, 103, 103);
}

#trackOrder .submit-center {
    text-align: center;
}

#trackOrder input[type="submit"] {
    margin: 20px 0;
    padding: 5px;
    width: 90%;
    max-width: 200px;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

#trackOrder input[type="submit"]:hover {
    opacity: 0.8;
}

/*
* Blog home.php
*/
.blog-container {
    max-width: 1100px;
    margin: 0 auto 70px;
    padding: 0;
    background-color: var(--white);
    /*border: 1px solid rgba(210, 210, 210, 0.6);
    border-radius: 14px;*/
}

.col2-blog {
    display: grid;
    grid-template-columns: 69% 29%;
    gap: 2%;
    background-color: var(--background-grey);
}

@media screen and (max-width: 768px) {
    .blog-container {
        margin: 0 auto;
        .col2-blog {
            grid-template-columns: 100%;
            gap: 30px;
        }
    }
}

/* blog col-blogposts */
.col-blogposts {
    padding: 1.5rem 1rem;
    background-color: var(--white);
    /*border: 1px solid rgba(210, 210, 210, 0.6);*/
}

.blog-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    padding: 1rem 0;
    border-top: 1px solid rgba(210, 210, 210, 0.5);
    &:first-child {padding-top: 0; border-top: none;}
    /*border: 1px solid rgba(210, 210, 210, 0.5);
    border-radius: 9px; */
}

.blog-post-thumbnail {
    object-fit: cover;
    flex-shrink: 0;
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content area to fill remaining space */
    flex-shrink: 1;
    flex-basis: 0;
}

.blog-post-title {
    margin-bottom: calc(0.1rem + 1vw);
}

/* blog col-sidebar */
.col-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem 1rem;
    background-color: var(--white);
    /*border: 1px solid rgba(210, 210, 210, 0.6);*/
    div.widget-content {
        margin-top: 1rem;
    }
}

.widget {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(210, 210, 210, 0.5);

    li > a {
        color: var(--grey);
        font-size: 14px;
        font-weight: 100;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }
}

.widget-title {
    margin-bottom: .7rem;
}

/**
* blog col-sidebar search
*/
form.post-search {
    position: relative;
    display: inline-block;
}

form.post-search input[type="search"] {
    -webkit-appearance: none; /* 强制移除原生放大镜 & 清除按钮 */
    appearance: none;
    width: 100%;
    height: 35px;
    padding-left: 8px;
    border: 1px solid rgba(180, 180, 180, 0.6);
}

form.post-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

form.post-search .search-icon {
  position: absolute;
  right: 8px;               /* 微调间距 */
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/**
* post single.php
*/
.post {
    padding: 2rem 1.5rem;
    /*border: 1px solid rgba(210, 210, 210, 0.6);*/
}

.post .post-title {
    text-align: center;
    margin-bottom: 2rem;
}

.post .post-img {
    text-align: center;
    margin-bottom: 2rem;
}

.post .post-content  {
    margin-bottom: 5rem ;
}

.post .nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .nav-previous,
    .nav-next {
        width: 16%;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-align: center;
    }
}

