:root {
    --main-color: #1e8ce6;
    --yellow-color: #f8bc24;
    --deep-blue-color: #34a2df;
    ---deep-yellow-color: #fdad16;

    --light-bg-color: #f6eee1;
    --ul-gray2: #D2D2D1;
    --black-color: #181818;
    --white-color: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.62);
    --footer-text: rgba(255, 255, 255, 0.88);
    --footer-border: rgba(255, 255, 255, 0.18);
    --footer-input-bg: rgba(255, 255, 255, 0.12);
}

html {
    scrollbar-gutter: stable;
}


#think_page_trace_open,#think_page_trace{
    display: none;
}

html.is-page-scroll-locked,
body.is-page-scroll-locked {
    overflow: hidden;
    overscroll-behavior: none;
}

@font-face {
    font-family: 'Manrope';
    src: url('/static/font/manrope-bcbadccc.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Outfit;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url(/static/font/outfit_n5.woff2) format("woff2"), url(/static/font/outfit_n4.woff) format("woff");
}

@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(/static/font/NotoSansJP.woff2) format("woff2");
}

* {
    transition: all;
    box-sizing: border-box;
    font-family: Outfit, sans-serif;
}

.page-en-US,.page-en-US *{
    font-family: Arial;
}

.page-zh-CN{
    opacity: 0;
}
.page-zh-CN,.page-zh-CN *{
    font-family: "Microsoft YaHei", sans-serif;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body,
div,
ul,
li,
section {
    box-sizing: border-box;
}

a,
button,
img,
svg path {
    transition: 0.4s ease;
}

a {
    text-decoration: none;
    display: inline-block;
    color: var(--black-color);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

/* 针对 Webkit 浏览器 (如 Chrome, Safari) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 针对 Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.pc {
    display: flex;
}

.mb {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-flow: column;
}

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

.flex-align-center {
    display: flex;
    align-items: center;
}

.flex-justify-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

body {
    position: relative;
}

.main-container {
    overflow: hidden;
    padding-top: 154px;
    position: relative;
    transition: padding-top 0.3s ease;
    min-height: 100vh;

    /* &:has(.main-header.is-collapsed) {
        padding-top: 82px;
    } */
}

.my-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;

    .section-tip {
        color: var(--yellow-color);
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;
        text-align: center;
        font-family: 'schoolbell';
    }

    .section-title {
        position: relative;
        z-index: 0;
        display: block;
        width: fit-content;
        max-width: min(100%, 900px);
        margin: 0 auto;
        padding: 0 10px 22px;
        color: var(--black-color);
        font-size: clamp(28px, 3.2vw, 36px);
        line-height: 1.35;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-align: center;
        white-space: normal;
        word-break: break-word;

        &::before {
            content: "";
            position: absolute;
            left: 50%;
            top: 38%;
            bottom: 15px;
            width: calc(100% + 32px);
            transform: translateX(-50%);
            border-radius: 0;
            background: radial-gradient(ellipse 100% 100% at 50% 100%,
                    rgba(30, 140, 230, 0.18) 0%,
                    rgba(30, 140, 230, 0.08) 20%,
                    rgba(30, 140, 230, 0.03) 40%,
                    rgba(30, 140, 230, 0) 100%);
            z-index: -1;
        }

        .highlight {
            color: var(--yellow-color);
        }
    }

    .section-title+.section-sub-title {
        margin-top: -2px;
    }

    .section-sub-title {
        margin: 0 auto;
        max-width: 720px;
        padding-bottom: 48px;
        color: #4e5a70;
        font-size: clamp(15px, 1.4vw, 18px);
        line-height: 1.75;
        font-weight: 400;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }
}

.my-container {
    width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 導航欄-start */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: #ffffff;
    /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
    flex-direction: column;

    &.pc {
        overflow: visible;

        .my-container {
            padding: 16px 0;
        }
    }

    /* slogan-start */
    .slogan-bar {
        background: var(--main-color);
        color: #ffffff;
        font-size: 13px;
        height: 40px;
        overflow: hidden;
        transition: height 0.3s ease, opacity 0.3s ease;

        .my-container {
            height: 100%;
        }

        .slogan-rotator {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .slogan-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            opacity: 0;
            transform: translateY(100%);
            transition: opacity 0.5s ease, transform 0.5s ease;
            pointer-events: none;

            &.is-active {
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }

            &.is-leave {
                opacity: 0;
                transform: translateY(-100%);
            }

            .stars-icon {
                width: 16px;
                height: 16px;
                flex-shrink: 0;
            }
        }
    }

    /* slogan-end */

    &.is-collapsed {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);

        .slogan-bar {
            height: 0;
            opacity: 0;
        }
    }

    .header-inner {
        position: relative;
        min-height: 82px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .header-left {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    /* 站點Logo-start */
    .site-logo {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        line-height: 0;

        img {
            display: block;
            width: auto;
            height: 90px;
            /* max-width: 176px; */
            object-fit: contain;
            transition: none;
        }
    }

    /* 站點Logo-end */

    /* 主導航-start */
    .main-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        gap: clamp(20px, 2.4vw, 40px);
        white-space: nowrap;

        a {
            font-size: 16px;
            color: var(--black-color);
            font-weight: 500;
            padding: 8px 0;
            letter-spacing: 0.01em;
            transition: color 0.3s ease, opacity 0.3s ease;

            &:hover {
                color: var(--yellow-color);
                opacity: 0.65;
            }

            &.is-active {
                color: var(--main-color);
            }
        }
    }

    /* 主導航-end */

    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        gap: 6px;
        min-width: 0;

        svg {
            width: 20px;
            height: 20px;
        }
    }

    /* 頭部圖示按鈕-start */
    .header-icon-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--black-color);
        background: transparent;
        border: none;
        border-radius: 0;
        flex-shrink: 0;

        &:hover {
            color: var(--yellow-color);
            transform: none;
            box-shadow: none;
        }

        .header-icon {
            width: 22px;
            height: 22px;
            display: block;
        }
    }

    /* 頭部圖示按鈕-end */

    /* 搜尋框-start */
    .header-search {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 360px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        overflow: hidden;

        input {
            flex: 1;
            border: none;
            outline: none;
            padding: 0 24px;
            height: 40px;
        }

        button {
            width: 60px;
            height: 40px;
            border: none;
            background: var(--main-color);
            color: #ffffff;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;

            svg {
                width: 20px;
                height: 20px;
                fill: currentColor;
            }
        }
    }

    /* 搜尋框-end */

    /* 購物車-start */
    .header-cart {
        width: 40px;
        height: 40px;
        border-radius: 0;
        padding: 0;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--black-color);

        &:hover {
            .cart-count {
                background: var(--yellow-color);
            }
        }

        .header-icon {
            width: 22px;
            height: 22px;
        }

        .cart-count {
            position: absolute;
            top: -2px;
            right: -4px;
            min-width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--yellow-color);
            color: #ffffff;
            font-size: 12px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        &.is-bump {
            animation: headerCartBump 0.4s ease;
        }
    }

    @keyframes headerCartBump {

        0%,
        100% {
            transform: scale(1);
        }

        40% {
            transform: scale(1.12);
        }
    }

    /* 購物車-end */

    /* 語言切換-start */
    .language-switch {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        height: 34px;
        padding: 3px;
        margin-right: 8px;
        border: 1px solid rgba(24, 24, 24, 0.12);
        border-radius: 999px;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color 0.3s ease, opacity 0.3s ease;

        &:hover {
            border-color: rgba(24, 24, 24, 0.24);

            .language-switch__option.is-active {
                background: var(--yellow-color);
                color: var(--black-color);
            }
        }
    }

    .language-switch__option {
        min-width: 36px;
        height: 28px;
        padding: 0 7px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.02em;
        color: #6b7280;
        transition: background 0.3s ease, color 0.3s ease;

        &.is-active {
            background: var(--main-color);
            color: var(--white-color);
            box-shadow: none;
        }
    }

    /* 語言切換-end */
}

/* 導航欄-end */

/* 輪播圖-start */
.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    background-color: var(--main-color);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-clickable .swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid var(--main-color);
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 30px;
}

/* 輪播圖-end */

/* 漂浮在屏幕右下角的whatsapp按钮 -start */
#whatsappBtn {
    width: 56px;
    height: 56px;
    position: fixed;
    bottom: 320px;
    right: 16px;
    z-index: 10000;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(30, 140, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;

    &:hover {
        background-color: var(--yellow-color);
        box-shadow: 0 4px 16px rgba(255, 168, 50, 0.35);
        transform: translateY(-2px);
    }

    img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 80%;
        border: 2px solid var(--main-color);
        border-radius: 50%;
        z-index: -1;
    }
}

/* 漂浮在屏幕右下角的whatsapp按钮 -end */

/* 回到頂部-start */
#mkdf-back-to-top {
    width: 56px;
    height: 56px;
    position: fixed;
    bottom: 180px;
    right: 16px;
    z-index: 10000;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 4px 16px rgba(30, 140, 230, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    animation: slideUp 1.5s ease-in-out infinite;

    &:hover {
        /* background-color: var(--yellow-color); */
        box-shadow: 0 4px 16px rgba(255, 168, 50, 0.35);
        transform: translateY(-2px);
    }
}

#mkdf-back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#mkdf-back-to-top.on {
    opacity: 1;
    visibility: visible;
    background-color: #ffffff;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(0);
    }
}

/* 回到頂部-end */

/* 圖片懶加載-start */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;

    &.loaded {
        opacity: 1;
    }

    &.is-error {
        opacity: 0.6;
    }
}

/* 圖片懶加載-end */

/* footer-start */
.site-footer {
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    padding: 90px 0 0;
    z-index: 1;

    .footer-main {
        display: grid;
        grid-template-columns: 1.35fr 1fr 1fr 1.35fr;
        gap: 40px 32px;
        padding-bottom: 72px;
    }

    .footer-col {
        .footer-title {
            margin: 0 0 20px;
            font-size: 18px;
            font-weight: 700;
            line-height: 1.3;
            color: var(--white-color);
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;

            li {
                margin-bottom: 12px;

                &:last-child {
                    margin-bottom: 0;
                }

                a {
                    display: inline-block;
                    font-size: 16px;
                    line-height: 1.5;
                    color: var(--footer-text);
                    text-decoration: none;
                    transition: all 0.2s ease;

                    &:hover {
                        color: var(--yellow-color);
                        transform: translateX(2px);
                    }
                }
            }
        }
    }

    .footer-brand {
        .footer-desc {
            margin: 0;
            max-width: 340px;
            font-size: 15px;
            line-height: 1.75;
            color: rgba(255, 255, 255, 0.78);
        }
    }

    .footer-social-list {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 22px;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--white-color);
        transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;

        &:hover {
            border-color: var(--yellow-color);
            background: var(--yellow-color);
            color: var(--main-color);
            transform: translateY(-2px);
        }

        img,
        svg {
            width: 16px;
            height: 16px;
            object-fit: contain;
        }
    }

    .footer-newsletter-col {
        .footer-newsletter-form {
            width: 100%;
        }

        .footer-newsletter-field {
            position: relative;

            .layui-input {
                width: 100%;
                height: 62px;
                padding: 0 76px 0 20px;
                border: none;
                border-radius: 10px;
                background: var(--footer-input-bg);
                color: var(--white-color);
                font-size: 14px;
                transition: box-shadow 0.25s ease, background 0.25s ease;

                &::placeholder {
                    color: rgba(255, 255, 255, 0.5);
                }

                &:focus {
                    background: rgba(255, 255, 255, 0.16);
                    box-shadow: 0 0 0 2px rgba(255, 168, 50, 0.45);
                }
            }
        }

        .footer-newsletter-submit {
            position: absolute;
            top: 50%;
            right: 24px;
            transform: translateY(-50%);
            width: 42px;
            height: 42px;
            border: none;
            border-radius: 50%;
            background: var(--yellow-color);
            color: var(--white-color);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.25s ease;

            svg {
                width: 18px;
                height: 18px;
            }

            &:hover {
                background: #fdad16;
                transform: translateY(-50%) scale(1.04);
            }
        }
    }

    .footer-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 34px 0;
        border-top: 1px solid var(--footer-border);
        /* background: rgba(0, 0, 0, 0.12); */

        .footer-bottom__left {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 12px;
            flex: 1;
            min-width: 0;
        }

        .footer-copyright,
        .footer-powered {
            margin: 0;
            font-size: 13px;
            line-height: 1.5;
            color: var(--footer-text-muted);
        }

        .footer-powered a {
            color: rgba(255, 255, 255, 0.78);
            text-decoration: none;
            transition: color 0.25s ease;

            &:hover {
                color: var(--yellow-color);
            }
        }
    }

    .footer-lang-select {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 999px;
        background: transparent;
        color: var(--white-color);
        font-family: inherit;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color 0.25s ease, background 0.25s ease;

        svg {
            width: 16px;
            height: 16px;
        }

        &:hover {
            border-color: var(--yellow-color);
            background: rgba(255, 255, 255, 0.08);
        }

        &__icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        &__label {
            display: inline-block;
            flex-shrink: 0;
            white-space: nowrap;
            writing-mode: horizontal-tb;
            line-height: 1;
        }

        &__arrow {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            opacity: 0.8;
        }
    }
}

/* footer-end */

.cart-fly-item {
    position: fixed;
    z-index: 9999;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.28);
    transition:
        left 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.65s cubic-bezier(0.55, 0, 1, 0.45),
        width 0.65s ease,
        height 0.65s ease,
        opacity 0.65s ease;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.top-left-title {
    width: fit-content;
    padding: 4px 24px 4px 0;
    background-color: #ffffff;
    color: var(--main-color);
    font-size: 20px;
    font-weight: 600;
    position: relative;

}

.bottom-left-txt {
    width: fit-content;
    padding: 16px 52px 16px 0;
    background-color: #ffffff;
    color: rgba(23, 23, 23, 0.8);
    font-size: 18px;
    font-weight: 400;
    border-radius: 0 16px 16px 0;

    .svg-conner.corner-after {
        bottom: -20px;
        left: 0px;
        right: auto;
        top: auto;
        transform: rotate(0);
    }
}

.svg-conner {
    color: #ffffff;
    position: absolute;

    &.corner-before {
        top: 0;
        right: -1.25rem;
        left: auto;
        bottom: auto;
    }

    &.corner-after {
        bottom: 0;
        right: -1.25rem;
        left: auto;
        top: auto;
        transform: rotate(270deg);
    }
}

/* 商品卡-start */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border-radius: 16px;
    /* border: 1px solid var(--yellow-color); */
    background: var(--white-color);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: rgba(30, 140, 230, 0.16);
    box-shadow: 0 2px 28px rgba(30, 140, 230, 0.1);
}


.product-card__media {
    position: relative;
    --product-card-brand-logo-width: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.product-card__badges {
    position: absolute;
    top: 14px;
    left: calc(var(--product-card-brand-logo-width) + 8px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.product-card__badge--discount {
    background: #e55353;
    color: #ffffff;
}

.product-card__badge--rating {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.product-card__badge--rating svg {
    width: 12px;
    height: 12px;
    color: var(--yellow-color);
}

.product-card__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
}

.product-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 14px;
    box-sizing: border-box;
    object-fit: contain;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-card:not(:has(.product-card__img--hover)):hover .product-card__img--primary,
.product-card:not(:has(.product-card__img--hover)):hover .product-card__img--primary.lazy-load.loaded {
    transform: scale(1.03);
}

/* 覆蓋全局 img.lazy-load 的 opacity，避免與 hover 換圖衝突 */
.product-card__img.lazy-load {
    opacity: 0;
}

.product-card__img.lazy-load.loaded {
    opacity: 1;
}

.product-card__img--hover.lazy-load,
.product-card__img--hover.lazy-load.loaded {
    opacity: 0;
}

.product-card:hover .product-card__img--primary,
.product-card:hover .product-card__img--primary.lazy-load.loaded {
    opacity: 0;
    transform: none;
}

.product-card:hover .product-card__img--hover.lazy-load,
.product-card:hover .product-card__img--hover.lazy-load.loaded {
    opacity: 1;
}

.product-card__actions {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.product-card__action-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
    pointer-events: auto;
}

.product-card__action-btn svg {
    width: 18px;
    height: 18px;
}

.product-card__action-btn--search {
    top: 12px;
    right: 12px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.product-card__action-btn--cart {
    right: 0;
    bottom: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px 0 0 0;
    background: #ffffff;

    .btn-text {
        color: #ffffff;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 44px;
        background-color: var(--main-color);
        z-index: 1;
        overflow: hidden;

        &:before {
            content: "";
            position: absolute;
            width: 0;
            inset-block: -2px;
            inset-inline-start: -2px;
            z-index: -1;
            transition: width .3s;
            border-radius: 44px;
            background-color: var(--yellow-color);
        }
    }

    &:hover .btn-text:before {
        width: calc(100% + 2px);
    }
}

.product-card__action-btn--cart::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at top left, transparent 14px, #ffffff 14px);
    pointer-events: none;
}

.product-card__action-btn--cart::after {
    content: "";
    position: absolute;
    left: -14px;
    bottom: 0;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at top left, transparent 14px, #ffffff 14px);
    pointer-events: none;
}

.product-card:hover .product-card__action-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-card__action-btn--search:hover {
    color: #ffffff;
    background: var(--yellow-color);
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 4px 4px;
}

.product-card__name {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* min-height: calc(15px * 1.45 * 2); */
}

.product-card:hover .product-card__name {
    color: var(--yellow-color);
}

.product-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: auto;
}

.product-card__price-current {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #e55353;
}

.product-card__price-old {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #9ca3af;
    position: relative;

    &::before {
        content: "";
        position: absolute;
        inset-block-start: 50%;
        width: 100%;
        transform: rotate(-15deg);
        border-block-end: 1px solid #e55353;
    }
}

.product-card__price-current:only-child {
    color: #111827;
}

/* 商品卡-end */

/* 內頁banner-start */
.inner-banner-section {
    width: 100%;
    padding: 0;

    .my-container {
        position: relative;
        height: 400px;
        border-radius: 24px;
        background-image: url('/static/image/page_header.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 14px;
        padding: 0 180px;
    }

    .breadcrumb {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        font-size: 16px;
        line-height: 1.4;
        color: var(--black-color);
    }

    .breadcrumb__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--black-color);
        text-decoration: none;

        &:hover {
            .breadcrumb__home-icon {
                color: var(--yellow-color);
                fill: var(--yellow-color);
            }
        }
    }

    .breadcrumb__home-icon {
        display: block;
        width: 20px;
        height: 20px;
    }

    .breadcrumb__separator {
        color: #c5cad1;
        font-size: 16px;
        font-weight: 400;
        line-height: 1;
        user-select: none;
    }

    .breadcrumb__current {
        color: var(--black-color);
        font-weight: 500;
    }

    .banner-title {
        position: relative;
        z-index: 1;
        font-size: 36px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--black-color);
    }
}

/* 內頁banner-end */

.my-btn {
    border-radius: 999px;
    background: var(--main-color);
    color: #ffffff;
    font-size: 16px;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    &:hover {
        opacity: 0.88;
        color: #ffffff;
    }

    &:before {
        content: "";
        position: absolute;
        width: 0;
        inset-block: -1rem;
        inset-inline-start: -1rem;
        z-index: -1;
        transition: width .3s;
        background-color: var(--yellow-color);
    }

    &:hover:before {
        width: calc(100% + 24px);
    }
}

/* 列表分页组件 - start */
.product-list-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;

    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            span,
            a {
                width: 48px;
                height: 48px;
                font-size: 16px;
            }

            &:hover {
                span,
                a,
                .product-list-pagination__next {
                    color: var(--yellow-color);
                }

                &.active span {
                    color: #ffffff;
                }
            }

            span,
            a,
            .product-list-pagination__next {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 16px;
                font-weight: 500;
                line-height: 1;
                color: var(--black-color);
                text-decoration: none;
            }

            &.active span {
                border-radius: 50%;
                background: var(--main-color);
                color: #ffffff;
                font-weight: 600;
                position: relative;

                &::after {
                    content: '';
                    position: absolute;
                    width: 38px;
                    height: 50px;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 50%;
                    top: 0;
                    right: 1px;
                }
            }

            &:first-child,
            &:last-child {
                span,
                a {
                    font-size: 32px;
                }
            }

            &.disabled {
                span,
                a {
                    color: #9ca3af;
                    cursor: default;
                }
            }
        }
    }
}

.product-list-pagination__next {
    gap: 6px;
    min-width: 0;
    height: auto;
}

.product-list-pagination__next span {
    font-size: 16px;
    line-height: 1;
}

/* 列表分页组件 - end */

/* 購物車抽屜 layer 殼層（作用於父頁 layui layer）-start
 * 關鍵：未加 is-open / is-closing 前必須 opacity:0（展平選擇器，避免首幀閃現）
 */
.layui-layer.cart-drawer-layer {
    overflow: hidden;
    will-change: transform;
}

.layui-layer.cart-drawer-layer .layui-layer-content {
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden;
}

.layui-layer.cart-drawer-layer iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.layui-layer.cart-drawer-layer.cart-drawer-layer--predestroy {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

/* PC：自屏幕右側滑入 / 滑出 */
body .layui-layer.cart-drawer-layer.cart-drawer-layer--right {
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    border-radius: 24px 0 0 24px;
    overflow: hidden;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: none !important;
}

body .layui-layer.cart-drawer-layer.cart-drawer-layer--right.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body .layui-layer.cart-drawer-layer.cart-drawer-layer--right.is-closing {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body .layui-layer.cart-drawer-layer.cart-drawer-layer--right.is-dragging {
    transition: none !important;
}

body .layui-layer.cart-drawer-layer.cart-drawer-layer--right .layui-layer-content {
    border-radius: 24px 0 0 24px;
}

.layui-layer-shade.cart-drawer-shade {
    opacity: 0 !important;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.layui-layer-shade.cart-drawer-shade.is-visible {
    opacity: 0.45 !important;
}

.layui-layer-shade.cart-drawer-shade.is-closing,
.layui-layer-shade.cart-drawer-shade.cart-drawer-shade--predestroy {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media screen and (max-width: 1400px) {
    .layui-layer.cart-drawer-layer.cart-drawer-layer--right {
        width: min(100%, 420px) !important;
    }
}

@media screen and (max-width: 992px) {
    body .layui-layer.cart-drawer-layer.cart-drawer-layer--bottom {
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 88% !important;
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 100%, 0) !important;
        transition: none !important;
    }

    body .layui-layer.cart-drawer-layer.cart-drawer-layer--bottom.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1) !important;
    }

    body .layui-layer.cart-drawer-layer.cart-drawer-layer--bottom.is-closing {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 100%, 0) !important;
        transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1) !important;
    }

    body .layui-layer.cart-drawer-layer.cart-drawer-layer--bottom.is-dragging {
        transition: none !important;
    }

    body .layui-layer.cart-drawer-layer.cart-drawer-layer--bottom .layui-layer-content {
        height: 100% !important;
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
    }
}

/* 購物車抽屜 layer 殼層-end */

/* 移動端導航 layer 殼層（作用於父頁 layui layer，內容樣式在 mbNavPopup.css）-start */
body .layui-layer.mb-nav-layer {
    top: auto !important;
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    margin: 0 !important;
    width: calc(100% - 12px) !important;
    height: 90% !important;
    max-height: 90vh !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16) !important;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;

    .layui-layer-content {
        overflow: hidden !important;
        height: 100% !important;
        padding: 0 !important;
    }

    iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: #ffffff;
    }

    &.mb-nav-layer--open {
        transform: translateY(0);
    }

    &.mb-nav-layer--closing {
        transform: translateY(100%);
    }

    &.mb-nav-layer--predestroy {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    &.is-dragging {
        transition: none;
    }
}

.layui-layer-shade.mb-nav-shade--predestroy {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 移動端導航 layer 殼層-end */

/* 搜索彈層 layer 殼層-start */
/* 頁內隱藏待命；進入 layer 後顯示 */
#searchPopupPanel {
    display: none;
}

.layui-layer.search-popup-layer #searchPopupPanel {
    display: block;
}

.layui-layer.search-popup-layer {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.layui-layer.search-popup-layer .layui-layer-content {
    padding: 0;
    overflow: visible;
}

.search-popup {
    padding: 48px 24px;
}

/* PC 隱藏；移動端底部抽屜再顯示 */
.search-popup__handle {
    display: none;
}

.search-popup__field {
    margin-bottom: 28px;
}

.search-popup__input-wrap {
    position: relative;
}

.search-popup__input {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: rgba(24, 24, 24, 0.025);
    padding: 0 44px 0 18px;
    font-size: 15px;
    color: #111827;
    border: none;
    outline: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.search-popup__input::placeholder {
    color: #9ca3af;
}

.search-popup__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.08);
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-popup__clear.is-visible {
    display: inline-flex;
}

.search-popup__clear:hover {
    background: rgba(17, 24, 39, 0.14);
    color: #111827;
}

/* .search-popup__input:focus {
    background: #eef2f7;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
} */

.search-popup__suggest-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.search-popup__suggest-list {
    margin: 0;
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    border-top: 1px solid #e5e7eb;
}

.search-popup__suggest-list li+li {
    margin-top: 2px;
}

.search-popup__suggest-list a {
    display: inline-block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #111827;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.search-popup__suggest-list a:hover {
    color: var(--yellow-color);
}

.search-popup__cursor-close {
    position: fixed;
    z-index: 19892000;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.search-popup__cursor-close.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.search-popup__cursor-close span {
    display: block;
    margin-top: -2px;
}

#followDiv.search-popup__follow {
    position: fixed;
    pointer-events: none;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    border-radius: 50%;
    z-index: 19892000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

#followDiv.search-popup__follow.is-visible {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 640px) {
    .layui-layer.search-popup-layer:not(.search-popup-layer--sheet) {
        width: calc(100vw - 32px) !important;
        left: 16px !important;
        margin-left: 0 !important;
    }

    .search-popup {
        padding: 24px 20px 28px;
    }
}

/* 移動端搜尋底部抽屜（≤992px 由 JS 加 --sheet） */
body .layui-layer.search-popup-layer.search-popup-layer--sheet {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 86vh !important;
    max-height: 86vh !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
    transform: translate3d(0, 100%, 0);
    transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet .layui-layer-content {
    height: 100% !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet .search-popup {
    height: 100%;
    box-sizing: border-box;
    padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px));
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet .search-popup__handle {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 4px;
    margin: 4px auto 28px;
    border-radius: 999px;
    background: #d9d9d9;
    cursor: grab;
    touch-action: none;
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet .search-popup__handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 36px;
    transform: translate(-50%, -50%);
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet .search-popup__handle.is-dragging {
    cursor: grabbing;
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet.search-popup-layer--open {
    transform: translate3d(0, 0, 0);
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet.search-popup-layer--closing {
    transform: translate3d(0, 100%, 0);
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet.is-dragging {
    transition: none;
}

body .layui-layer.search-popup-layer.search-popup-layer--sheet.search-popup-layer--predestroy {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

.layui-layer-shade.search-popup-shade--predestroy {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 搜索彈層 layer 殼層-end */