/* =========================================================
 * NewEraOnline / 新紀元檳榔
 * Global Design System
 * ========================================================= */

:root {
    --ne-green: #03270E;
    --ne-green-title: #02240C;
    --ne-green-dark: #02220B;

    --ne-gold: #D8B86E;
    --ne-gold-dark: #B99650;
    --ne-gold-light: #E9D7AA;

    --ne-bg: #F8F5EE;
    --ne-bg-soft: #FBF9F4;
    --ne-card: #FFFFFF;

    --ne-text: #263229;
    --ne-muted: #687168;

    --ne-border: #E8E0D0;

    --ne-radius-sm: 10px;
    --ne-radius: 16px;
    --ne-radius-lg: 24px;

    --ne-shadow-sm: 0 6px 24px rgba(3, 39, 14, .06);
    --ne-shadow: 0 16px 48px rgba(3, 39, 14, .10);

    --ne-container: 1200px;
}

/* =========================================================
 * BASE
 * ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ne-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang TC",
        "Microsoft JhengHei",
        "Noto Sans TC",
        sans-serif;
}

a {
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        opacity .2s ease,
        transform .2s ease;
}

/* =========================================================
 * TYPOGRAPHY
 * ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
    color: var(--ne-green-title);
    font-weight: 700;
    letter-spacing: -.02em;
}

p {
    line-height: 1.8;
}

/* =========================================================
 * FLATSOME HEADER
 * ========================================================= */

#header .header-main,
#header .header-bottom {
    background-color: rgba(255, 255, 255, .97);
}

#header .nav > li > a {
    color: var(--ne-green-title);
    font-weight: 600;
}

#header .nav > li > a:hover,
#header .nav > li.active > a {
    color: var(--ne-gold-dark);
}

.header-wrapper.stuck {
    box-shadow: 0 8px 30px rgba(3, 39, 14, .08);
}

/* =========================================================
 * BUTTONS
 * ========================================================= */

.button,
button,
input[type="submit"],
input[type="button"],
.single_add_to_cart_button,
.checkout-button {
    border-radius: 999px !important;
    box-shadow: none !important;
}

.button.primary,
.button.checkout,
.single_add_to_cart_button,
.checkout-button,
.woocommerce button.button.alt {
    background-color: var(--ne-green) !important;
    border-color: var(--ne-green) !important;
    color: #fff !important;
}

.button.primary:hover,
.button.checkout:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.woocommerce button.button.alt:hover {
    background-color: var(--ne-gold) !important;
    border-color: var(--ne-gold) !important;
    color: var(--ne-green) !important;
}

/* =========================================================
 * FORMS
 * ========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    border: 1px solid var(--ne-border);
    border-radius: var(--ne-radius-sm);
    box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ne-gold);
    box-shadow: 0 0 0 3px rgba(216, 184, 110, .14);
}

/* =========================================================
 * WOOCOMMERCE PRODUCT CARDS
 * ========================================================= */

.products .product-small .col-inner {
    overflow: hidden;
    height: 100%;
    background: var(--ne-card);
    border: 1px solid var(--ne-border);
    border-radius: var(--ne-radius);
    box-shadow: var(--ne-shadow-sm);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.products .product-small .col-inner:hover {
    transform: translateY(-4px);
    border-color: var(--ne-gold-light);
    box-shadow: var(--ne-shadow);
}

.products .product-small .box-image {
    background: var(--ne-bg-soft);
}

.products .product-small .box-text {
    padding: 16px 17px 19px;
}

.products .product-small .product-title a {
    color: var(--ne-green-title);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.products .product-small .price {
    color: var(--ne-green);
    font-size: 17px;
    font-weight: 800;
}

.products .product-small del {
    color: #9B9F9B;
    opacity: .75;
}

.products .product-small ins {
    text-decoration: none;
}

/* Sale badge */

.onsale {
    min-width: auto !important;
    min-height: auto !important;
    padding: 7px 10px !important;

    background: var(--ne-green) !important;
    color: var(--ne-gold) !important;

    border-radius: 999px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* =========================================================
 * SINGLE PRODUCT
 * ========================================================= */

.product-info .product-title {
    color: var(--ne-green-title);
    font-weight: 800;
}

.product-info .price {
    color: var(--ne-green);
    font-weight: 800;
}

.product-info .product-short-description {
    color: var(--ne-muted);
    line-height: 1.85;
}

.product-gallery .flickity-viewport {
    border-radius: var(--ne-radius);
}

/* =========================================================
 * SHOP / PAGE TITLE
 * ========================================================= */

.shop-page-title,
.page-title {
    background: var(--ne-bg);
}

.breadcrumbs,
.breadcrumbs a {
    color: #7A827C;
}

.breadcrumbs .current {
    color: var(--ne-green-title);
}

/* =========================================================
 * CART / CHECKOUT
 * ========================================================= */

.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields,
.woocommerce-additional-fields {
    border-color: var(--ne-border);
}

.woocommerce-checkout .form-row label,
.woocommerce-cart .form-row label {
    color: var(--ne-green-title);
    font-weight: 600;
}

/* =========================================================
 * FOOTER
 * ========================================================= */

#footer,
.footer-1,
.footer-2 {
    background-color: var(--ne-green);
}

#footer,
#footer p,
#footer li,
#footer .textwidget {
    color: rgba(255,255,255,.68);
}

#footer h3,
#footer h4,
#footer .widget-title {
    color: #fff;
}

#footer a {
    color: rgba(255,255,255,.80);
}

#footer a:hover {
    color: var(--ne-gold);
}

/* =========================================================
 * NEWERA UTILITY CLASSES
 * UX Builder 可直接加這些 class
 * ========================================================= */

.ne-bg-green {
    background-color: var(--ne-green) !important;
}

.ne-bg-cream {
    background-color: var(--ne-bg) !important;
}

.ne-bg-soft {
    background-color: var(--ne-bg-soft) !important;
}

.ne-text-green {
    color: var(--ne-green) !important;
}

.ne-text-gold {
    color: var(--ne-gold) !important;
}

.ne-card {
    background: #fff;
    border: 1px solid var(--ne-border);
    border-radius: var(--ne-radius);
    box-shadow: var(--ne-shadow-sm);
}

.ne-card-dark {
    background: var(--ne-green);
    border: 1px solid rgba(216, 184, 110, .25);
    border-radius: var(--ne-radius);
    color: #fff;
}

.ne-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 849px) {

    .ne-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .products .product-small .box-text {
        padding: 14px 14px 16px;
    }

}

@media (max-width: 549px) {

    :root {
        --ne-radius: 14px;
    }

    .ne-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .products .product-small {
        padding-left: 5px;
        padding-right: 5px;
    }

    .products .product-small .box-text {
        padding: 12px 12px 14px;
    }

    .products .product-small .product-title a {
        font-size: 14px;
    }

    .products .product-small .price {
        font-size: 16px;
    }

}


/* =========================================================
 * NEWERA CORE-06B HEADER FOOTER
 * ========================================================= */


/* =========================================================
 * HEADER
 * ========================================================= */

#header {
    position: relative;

    z-index: 40;
}


#header .header-main {
    min-height: 84px;

    border-bottom:
        1px
        solid
        rgba(3,39,14,.07);

    background:
        rgba(255,255,255,.97);
}


#header .header-inner {
    min-height: 84px;
}


/* Logo */

#header .header-logo {
    margin-left: 20px;
    margin-right: 20px;
}


#header .header-logo img {
    width: auto;

    max-width: 220px;
    max-height: 58px;

    object-fit: contain;
}


/* Main navigation */

#header .nav > li {
    margin:
        0
        2px;
}


#header .nav > li > a {
    position: relative;

    padding:
        10px
        9px;

    color:
        var(--ne-green-title);

    font-size: 14px;
    font-weight: 650;

    letter-spacing: .01em;
}


#header .nav > li > a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 2px;

    background:
        var(--ne-gold);

    transform:
        translateX(-50%);

    transition:
        width
        .2s
        ease;
}


#header .nav > li:hover > a::after,
#header .nav > li.active > a::after,
#header .nav > li.current-menu-item > a::after {
    width: 18px;
}


/* Header icons */

#header .header-search a,
#header .account-item > a,
#header .cart-item > a {
    color:
        var(--ne-green-title);
}


#header .header-search a:hover,
#header .account-item > a:hover,
#header .cart-item > a:hover {
    color:
        var(--ne-gold-dark);
}


/* Cart badge */

#header .cart-icon strong {
    background:
        var(--ne-green);

    border-color:
        var(--ne-green);

    color:
        var(--ne-gold);
}


#header .cart-icon strong::after {
    border-color:
        var(--ne-green);
}


/* Sticky header */

.header-wrapper.stuck .header-main {
    min-height: 70px;

    box-shadow:
        0
        10px
        32px
        rgba(3,39,14,.09);
}


.header-wrapper.stuck .header-inner {
    min-height: 70px;
}


.header-wrapper.stuck .header-logo img {
    max-height: 48px;
}


/* Dropdown */

.nav-dropdown {
    padding:
        10px;

    border:
        1px
        solid
        var(--ne-border);

    border-radius:
        14px;

    box-shadow:
        0
        18px
        50px
        rgba(3,39,14,.12);
}


.nav-dropdown > li > a {
    border-radius:
        8px;

    color:
        var(--ne-green-title);
}


.nav-dropdown > li > a:hover {
    background:
        var(--ne-bg);

    color:
        var(--ne-green);
}


/* =========================================================
 * MOBILE HEADER
 * ========================================================= */

@media (max-width: 849px) {

    #header .header-main,
    #header .header-inner {
        min-height:
            68px;
    }


    #header .header-logo {
        margin:
            0
            10px;
    }


    #header .header-logo img {
        max-width:
            175px;

        max-height:
            45px;
    }


    .mobile-nav .icon-menu,
    .mobile-nav .cart-item a {
        color:
            var(--ne-green-title);
    }


    .off-canvas .sidebar-menu {
        background:
            var(--ne-bg-soft);
    }


    .off-canvas .nav-sidebar > li > a {
        color:
            var(--ne-green-title);

        font-weight:
            650;
    }

}


/* =========================================================
 * FOOTER
 * ========================================================= */

#footer {
    position: relative;

    background:
        var(--ne-green);
}


#footer .footer-widgets {
    padding-top:
        64px;

    padding-bottom:
        48px;

    border-top:
        1px
        solid
        rgba(216,184,110,.20);

    background:
        var(--ne-green);
}


#footer .footer-widgets .row {
    align-items:
        flex-start;
}


#footer .widget {
    margin-bottom:
        24px;
}


#footer .widget-title {
    display:
        block;

    margin-bottom:
        19px;

    color:
        #fff;

    font-size:
        16px;
    font-weight:
        750;

    letter-spacing:
        .02em;
}


#footer .widget-title::after {
    content: "";

    display:
        block;

    width:
        28px;
    height:
        2px;

    margin-top:
        10px;

    background:
        var(--ne-gold);
}


/* Footer brand */

.ne-footer-brand {
    max-width:
        510px;
}


.ne-footer-brand > strong {
    display:
        block;

    margin-bottom:
        12px;

    color:
        var(--ne-gold);

    font-size:
        13px;
    font-weight:
        800;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}


.ne-footer-brand p {
    max-width:
        500px;

    margin:
        0;

    color:
        rgba(255,255,255,.60);

    font-size:
        14px;

    line-height:
        1.9;
}


/* Footer links */

.ne-footer-links {
    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap:
        10px
        24px;
}


.ne-footer-links a {
    position:
        relative;

    padding-left:
        13px;

    color:
        rgba(255,255,255,.72) !important;

    font-size:
        13px;
}


.ne-footer-links a::before {
    content: "";

    position:
        absolute;

    left:
        0;
    top:
        .62em;

    width:
        4px;
    height:
        4px;

    border-radius:
        50%;

    background:
        var(--ne-gold);
}


.ne-footer-links a:hover {
    color:
        var(--ne-gold) !important;
}


/* Absolute footer */

.absolute-footer {
    padding:
        20px
        0;

    border-top:
        1px
        solid
        rgba(255,255,255,.08);

    background:
        #021D09;

    color:
        rgba(255,255,255,.47);

    font-size:
        12px;
}


.absolute-footer a {
    color:
        rgba(255,255,255,.65);
}


.absolute-footer a:hover {
    color:
        var(--ne-gold);
}


/* Footer menu */

.absolute-footer .footer-secondary {
    padding:
        0;
}


.absolute-footer .menu > li > a {
    color:
        rgba(255,255,255,.58);

    font-size:
        12px;
}


.absolute-footer .menu > li > a:hover {
    color:
        var(--ne-gold);
}


/* =========================================================
 * FOOTER MOBILE
 * ========================================================= */

@media (max-width: 549px) {

    #footer .footer-widgets {
        padding-top:
            45px;

        padding-bottom:
            30px;
    }


    .ne-footer-links {
        grid-template-columns:
            1fr 1fr;

        gap:
            12px
            18px;
    }


    .absolute-footer {
        text-align:
            center;
    }

}


/* NEWERA CORE-11C-B FOOTER V2 */

#footer .ne-footer-v2 {
    background:#03270E!important;
    padding:36px 0 12px!important;
}

.ne-footer-v2 > .section-content > .row {
    max-width:1200px;
    margin:auto;
}

.ne-footer-v2 .col {
    padding-bottom:16px;
}

.ne-footer-v2 .img {
    max-width:240px;
    margin-bottom:16px;
}

.ne-footer-v2 .ne-footer-intro {
    max-width:340px;
    color:#BCCABF;
    font-size:14px;
    line-height:1.9;
}

.ne-footer-v2 h4 {
    color:#F8F5EE!important;
    font-size:16px;
    font-weight:700;
    margin-bottom:20px;
}

.ne-footer-v2 h4::after {
    content:"";
    display:block;
    width:28px;
    height:2px;
    margin-top:10px;
    background:#D8B86E;
}

.ne-footer-v2 .ne-footer-column p {
    margin:0 0 10px;
    font-size:14px;
}

.ne-footer-v2 .ne-footer-column a {
    color:#BCCABF!important;
    transition:color .2s;
}

.ne-footer-v2 .ne-footer-column a:hover {
    color:#D8B86E!important;
}

#footer .absolute-footer {
    background:#03270E!important;
    color:#A9BBAA!important;
    padding:18px 15px!important;
    border-top:1px solid rgba(216,184,110,.18);
}

#footer .absolute-footer .footer-secondary,
#footer .absolute-footer .payment-icons,
#footer .absolute-footer .footer-nav {
    display:none!important;
}

#footer .copyright-footer {
    color:#A9BBAA!important;
    font-size:12px;
    text-align:center;
}

@media(max-width:549px) {
    #footer .ne-footer-v2 {
        padding:26px 0 8px!important;
    }

    .ne-footer-v2 .img {
        max-width:200px;
    }

    .ne-footer-v2 h4 {
        font-size:15px;
        margin-bottom:14px;
    }

    .ne-footer-v2 .ne-footer-column p {
        font-size:13px;
    }

    #footer .copyright-footer {
        font-size:11px;
    }
}

/* NEWERA CORE-11D FOOTER REFINEMENT */

#footer .ne-footer-v2 > .section-content > .row {
    max-width:1080px;
}

#footer .ne-footer-v2 .ne-footer-intro,
#footer .ne-footer-v2 .ne-footer-intro p {
    color:#D0DCD1!important;
    line-height:1.85;
}

#footer .ne-footer-v2 .ne-footer-column a {
    color:#D0DCD1!important;
}

#footer .ne-footer-v2 h4 {
    letter-spacing:.5px;
}

#footer .ne-footer-v2 .img {
    margin-bottom:12px;
}

#footer .absolute-footer {
    padding:16px 15px!important;
}

@media(max-width:549px){
    #footer .ne-footer-v2 .col {
        padding-bottom:22px;
    }

    #footer .ne-footer-v2 .ne-footer-intro {
        max-width:100%;
    }
}

/* NEWERA CORE-13B BUTTON ALIGNMENT */

#main a.button,
#main button.button,
#main .button.alt {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    vertical-align:middle;
    text-align:center;
    line-height:1.4!important;
    box-sizing:border-box;
    padding-top:0.75em!important;
    padding-bottom:0.75em!important;
}

#main .button > span {
    display:inline-block;
    line-height:1.4!important;
    margin-top:0!important;
    margin-bottom:0!important;
    vertical-align:middle;
}


/* NEWERA CORE-14I-C FOOTER V3 */

#footer .ne-footer-v3 .ne-footer-health {
    border-top:1px solid rgba(216,184,110,.18);
    padding-top:14px;
    margin:0;
    color:#A9BBAA;
    font-size:12px;
    line-height:1.7;
}

#footer .ne-footer-v3 .col-inner {
    min-width:0;
}

@media(max-width:549px){
    #footer .ne-footer-v3 .ne-footer-health {
        font-size:11px;
    }
    #footer .ne-footer-v3 .ne-footer-column p {
        margin-bottom:8px;
    }
}

/* NEWERA CORE-14I-E FOOTER GRID */

@media(min-width:850px){

    #footer .ne-footer-v3 > .section-content > .row:first-child {
        display:grid!important;
        grid-template-columns:34% repeat(3,minmax(0,1fr));
        align-items:start;
    }

    #footer .ne-footer-v3 > .section-content > .row:first-child > .col {
        width:100%!important;
        max-width:100%!important;
        min-width:0;
        padding-left:15px;
        padding-right:15px;
    }

    #footer .ne-footer-v3 .ne-footer-intro {
        max-width:280px;
    }
}


/* NEWERA CORE-15B-B TYPOGRAPHY */

:root {
    --ne-font:"Noto Sans TC","PingFang TC",
    "Microsoft JhengHei",Arial,sans-serif;
}

body,
button,
input,
select,
textarea,
h1,h2,h3,h4,h5,h6,
.nav > li > a,
.mobile-sidebar,
.button {
    font-family:var(--ne-font)!important;
}

body {
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.nav > li > a {
    font-weight:600;
}


/* NEWERA CORE-15C-C MOBILE NAV */

.mobile-sidebar {
    background:#FBF9F4;
}

.mobile-sidebar .nav-sidebar > li > a {
    min-height:48px;
    padding:12px 22px;
    color:#03270E;
    font-size:15px;
    font-weight:600;
    line-height:1.5;
}

.mobile-sidebar .nav-sidebar > li {
    border-bottom:1px solid #E8E0D0;
}

.mobile-sidebar .nav-sidebar > li.current-menu-item > a {
    background:#F0EADD;
    color:#03270E;
}

.mobile-sidebar .searchform {
    margin:12px 0;
}

.mobile-sidebar input.search-field {
    min-height:44px;
    border-radius:8px;
    border:1px solid #E8E0D0;
    background:#fff;
    box-shadow:none;
}


/* NEWERA FIX-UI-008 GLOBAL SALE BADGE */

.product-small .badge-container,
.product-small .badge {
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

.product-small .badge-inner.on-sale,
.product-small .badge-inner.onsale,
.product-small .badge .onsale {
    background:var(--ne-green)!important;
    color:var(--ne-gold)!important;
    border:0!important;
    border-radius:50%!important;
    box-shadow:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    height:40px!important;
    font-size:12px!important;
    line-height:1!important;
}

.product-small .badge-container {
    top:10px!important;
    left:10px!important;
    margin:0!important;
}

@media(max-width:767px){
    .product-small .badge-inner.on-sale,
    .product-small .badge-inner.onsale,
    .product-small .badge .onsale {
        width:34px!important;
        height:34px!important;
        font-size:11px!important;
    }

    .product-small .badge-container {
        top:8px!important;
        left:8px!important;
    }
}


/* NEWERA FIX-UI-010-B HIDE MOBILE FOOTER */

@media(max-width:767px){

    #footer .ne-footer-v3,
    #footer .footer-widgets,
    #footer .absolute-footer {
        display:none!important;
    }

    #footer {
        margin:0!important;
        padding:0!important;
        min-height:0!important;
    }
}


/* NEWERA FIX-UI-019 CART SUCCESS */

.woocommerce-message.message-wrapper {
    margin:18px 0 24px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
}

.woocommerce-message .message-container {
    max-width:var(--ne-container);
    margin:0 auto!important;
    padding:16px 18px!important;

    display:flex;
    align-items:center;
    gap:12px;

    background:var(--ne-bg-soft)!important;
    border:1px solid var(--ne-border)!important;
    border-radius:14px!important;

    color:var(--ne-text)!important;
    box-shadow:0 8px 28px rgba(3,39,14,.05)!important;

    font-size:14px;
    line-height:1.6;
}

.woocommerce-message .message-container .icon-checkmark {
    flex:0 0 34px;
    width:34px;
    height:34px;

    display:flex!important;
    align-items:center;
    justify-content:center;

    margin:0!important;

    border-radius:50%;
    background:var(--ne-green)!important;
    color:var(--ne-gold)!important;

    font-size:16px!important;
}

.woocommerce-message .message-container .wc-forward {
    margin-left:auto!important;
    margin-bottom:0!important;
    min-height:40px;
    padding:0 18px!important;

    display:inline-flex!important;
    align-items:center;
    justify-content:center;

    border-radius:999px!important;
    background:var(--ne-green)!important;
    border-color:var(--ne-green)!important;
    color:#fff!important;

    font-size:13px!important;
    font-weight:700!important;
    line-height:1!important;

    box-shadow:none!important;
    white-space:nowrap;
}

.woocommerce-message .message-container .wc-forward:hover {
    background:var(--ne-gold)!important;
    border-color:var(--ne-gold)!important;
    color:var(--ne-green)!important;
}

.woocommerce-message .added-to-cart {
    display:none!important;
}

@media(max-width:767px){

    .woocommerce-message.message-wrapper {
        margin:12px 12px 18px!important;
    }

    .woocommerce-message .message-container {
        padding:14px!important;

        display:grid;
        grid-template-columns:34px minmax(0,1fr);
        gap:10px 12px;

        text-align:left!important;
        border-radius:12px!important;
    }

    .woocommerce-message .message-container .icon-checkmark {
        grid-column:1;
        grid-row:1;
    }

    .woocommerce-message .message-container .wc-forward {
        grid-column:1 / -1;

        width:100%;
        margin:2px 0 0!important;
        min-height:42px;
    }
}


/* NEWERA_HIDE_PRODUCT_NAVIGATION */
body.single-product ul.next-prev-thumbs {
    display: none !important;
}

