.mobile-product-sort-tabs {
    display: none;
}

@media (max-width: 768px) {
    body.mobile-nav-drawer-open {
        overflow: hidden;
    }

    /* Mobile navigation: full five-item bar by default, compact controls while scrolling down. */
    @media (max-width: 768px) {
        body.viewport-mobile.mobile-quick-nav-enabled {
            padding-top: 56px !important;
        }

        .mobile-header-shell,
        .mobile-header-shell .mobile-header-expanded__bar,
        body.products-page .mobile-header-shell,
        body.products-page .mobile-header-shell .mobile-header-expanded__bar {
            height: 56px !important;
        }

        .mobile-header-expanded__bar,
        body.products-page .mobile-header-expanded__bar {
            display: grid !important;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            position: relative;
            background: #97a1a0 !important;
            color: #fff !important;
            border: 0;
        }

        .mobile-header-expanded__bar::before,
        .mobile-header-expanded__bar::after,
        body.products-page .mobile-header-expanded__bar::before,
        body.products-page .mobile-header-expanded__bar::after {
            content: none;
        }

        .mobile-header-expanded__item,
        body.products-page .mobile-header-expanded__item {
            position: static;
            width: auto;
            min-height: 56px;
            padding: 6px 2px 4px;
            color: #fff !important;
        }

        .mobile-header-expanded__item:nth-child(2),
        .mobile-header-expanded__item:nth-child(4),
        body.products-page .mobile-header-expanded__item:nth-child(2),
        body.products-page .mobile-header-expanded__item:nth-child(4) {
            display: flex !important;
        }

        .mobile-header-expanded__item:nth-child(3),
        .mobile-header-expanded__item:nth-child(5),
        body.products-page .mobile-header-expanded__item:nth-child(3),
        body.products-page .mobile-header-expanded__item:nth-child(5) {
            right: auto;
        }

        .mobile-header-expanded__item .mobile-quick-nav__label,
        body.products-page .mobile-header-expanded__item .mobile-quick-nav__label {
            display: block;
        }

        .mobile-brand-banner {
            display: block !important;
        }

        .mobile-header-compact {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1405;
            opacity: 0;
            pointer-events: none;
            transition: opacity 180ms ease;
        }

        .mobile-header-compact__menu,
        .mobile-header-compact__action {
            width: 46px;
            height: 46px;
            border: 1px solid #8c9a99;
            background: #fff;
            color: #647675;
            font-size: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .mobile-header-compact__menu {
            position: absolute;
            top: 0;
            left: 0;
            border-top: 0;
            border-left: 0;
        }

        .mobile-header-compact__actions {
            position: absolute;
            top: 0;
            right: 0;
            display: flex;
            flex-direction: column;
        }

        .mobile-header-compact__action {
            border-top: 0;
            border-right: 0;
        }

        .mobile-header-compact__action .mobile-quick-nav__badge {
            top: -7px;
            right: -7px;
        }

        body.viewport-mobile.mobile-header-collapsed .mobile-header-expanded__bar {
            opacity: 0;
            transform: translateY(-100%);
            pointer-events: none;
        }

        body.viewport-mobile.mobile-header-collapsed .mobile-header-compact {
            opacity: 1;
            pointer-events: auto;
        }
    }

    .mobile-quick-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1800;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.25rem;
        padding: 0.6rem 0.65rem calc(0.6rem + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,239,226,0.98) 100%);
        border-top: 1px solid #e7d8bc;
        box-shadow: 0 -6px 24px rgba(80, 45, 10, 0.12);
    }

    .mobile-quick-nav__item,
    .mobile-quick-float__item {
        border: none;
        background: transparent;
        color: #7b4e21;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.8rem;
        text-decoration: none;
        padding: 0.3rem 0;
    }

    .mobile-quick-nav__item.is-active,
    .mobile-quick-float__item.is-active {
        color: #8b4513;
        font-weight: 700;
    }

    .mobile-quick-nav__icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 999px;
        background: rgba(139, 69, 19, 0.08);
    }

    .mobile-quick-nav__icon--cart {
        width: 2.15rem;
        height: 2.15rem;
    }

    .mobile-quick-nav__badge {
        position: absolute;
        top: -0.3rem;
        right: -0.35rem;
        min-width: 1rem;
        height: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #c0392b;
        color: white;
        font-size: 0.65rem;
        padding: 0 0.24rem;
    }

    .mobile-quick-nav-hidden .mobile-quick-nav {
        transform: none !important;
    }

    body.mobile-quick-nav-hidden .mobile-quick-nav {
        transform: none !important;
    }

    .mobile-quick-float,
    .mobile-quick-float.is-visible,
    body.mobile-quick-float-visible .mobile-quick-float {
        position: fixed;
        right: 1rem;
        bottom: 5.3rem;
        z-index: 1750;
        display: none !important;
    }

    .mobile-quick-float__item {
        width: 3.1rem;
        height: 3.1rem;
        border-radius: 999px;
        background: #8b4513;
        color: #fff;
        box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
    }

    .mobile-nav-search-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 1900;
        padding: 0.85rem 0.9rem;
        background: rgba(255, 250, 245, 0.98);
        transform: translateY(-120%);
        transition: transform 0.2s ease;
    }

    .mobile-nav-search-panel.is-open {
        transform: translateY(0);
    }

    .mobile-nav-search-panel__form {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-nav-search-panel__form input {
        flex: 1;
        border: 1px solid #e1caa7;
        border-radius: 999px;
        padding: 0.72rem 0.95rem;
        font-size: 0.95rem;
    }

    .mobile-nav-search-panel__form button {
        border: none;
        border-radius: 999px;
        padding: 0.72rem 0.9rem;
        background: #8b4513;
        color: white;
    }

    .mobile-nav-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2000;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .mobile-nav-drawer-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        z-index: 2100;
        background: #fffaf4;
        box-shadow: 8px 0 24px rgba(0,0,0,0.18);
        transform: translateX(-110%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        padding: 1rem 0 5.5rem;
    }

    .mobile-nav-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-nav-drawer__brand {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0 1rem 1rem;
        border-bottom: 1px solid #ead8c0;
        margin-bottom: 0.85rem;
    }

    .mobile-nav-drawer__brand-logo {
        width: 44px;
        height: 44px;
        object-fit: cover;
        border-radius: 12px;
    }

    .mobile-nav-drawer__brand-text {
        font-weight: 700;
        color: #8b4513;
    }

    .mobile-nav-drawer__social {
        display: flex;
        gap: 0.5rem;
        padding: 0 1rem 0.8rem;
    }

    .mobile-nav-drawer__social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 999px;
        background: #f3e2c2;
        color: #8b4513;
    }

    .mobile-nav-drawer__links {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0 0.75rem;
    }

    .mobile-nav-drawer__link,
    .mobile-nav-drawer__sublink {
        display: block;
        width: 100%;
        text-align: left;
        border: none;
        background: transparent;
        color: #5d3b20;
        padding: 0.75rem 0.75rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
    }

    .mobile-nav-drawer__link--toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav-drawer__link--accent {
        color: #8b4513;
        font-weight: 700;
    }

    .mobile-nav-drawer__submenu {
        display: none;
        padding: 0 0.35rem 0.3rem 1rem;
    }

    .mobile-nav-drawer__submenu.is-open {
        display: block;
    }

    .mobile-nav-drawer__sublink {
        padding: 0.6rem 0.75rem;
        font-weight: 500;
        color: #7b4e21;
    }

    .main-content {
        padding-bottom: 5.2rem;
    }

    .member-center-container {
        grid-template-columns: 1fr !important;
    }

    .member-sidebar {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        z-index: 2210;
        padding: 1rem 0 5.5rem;
        transform: translateX(-110%);
        transition: transform 0.22s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        backdrop-filter: blur(2px);
    }

    .member-sidebar.is-open {
        transform: translateX(0);
    }

    body.member-sidebar-open {
        overflow: hidden;
    }

    .member-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .member-sidebar-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .member-sidebar__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 1rem 1rem;
        border-bottom: 1px solid #ead8c0;
        margin-bottom: 0.85rem;
    }

    .member-sidebar__header h2 {
        margin: 0;
        padding: 0;
        border: none;
    }

    .member-sidebar__close {
        border: none;
        background: #8b4513;
        color: white;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .member-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding: 0.8rem 1rem;
        border: 1px solid #ead8c0;
        border-radius: 12px;
        background: #fffaf2;
        color: #8b4513;
    }

    .member-mobile-toggle button {
        border: none;
        background: #8b4513;
        color: white;
        padding: 0.5rem 0.8rem;
        border-radius: 999px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px; /* 行間距18px，列間距12px */
        padding: 0 10px 10px 10px;
        background: #f5f5f5;
    }
    .product-card {
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(139,69,19,0.10);
        overflow: hidden;
        background: #fff;
        border: 1px solid #E8DCC5;
        display: flex;
        flex-direction: column;
        margin: 0;
        width: 46vw;
        min-width: 0;
        align-items: center;
    }
    .product-image {
        width: 150px;
        height: 150px;
        aspect-ratio: 1 / 1;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 12px;
        margin: 14px auto 0 auto;
        padding: 0;
        box-shadow: 0 2px 8px rgba(139,69,19,0.06);
    }
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }
    .product-info {
        padding: 10px 10px 0 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
        align-items: flex-start;
    }
    .product-name {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
        color: #333;
        height: auto;
        min-height: 2.2rem;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        box-orient: vertical;
    }
    .product-price {
        margin-bottom: 0.5rem;
        color: #C0392B;
        font-size: 1.08rem;
        font-weight: bold;
    }
    .add-to-cart-btn, .buy-now-btn {
        font-size: 1rem;
        border-radius: 8px;
        margin: 0.2rem 0 12px 0;
        padding: 0.65rem 0;
        width: calc(100% - 20px);
        box-sizing: border-box;
        min-width: 0;
        align-self: center;
        display: block;
    }
    .add-to-cart-btn {
        margin-bottom: 12px;
    }
}
/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PMingLiU', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f6f2;
}

.text-brown {
    color: #8B4513 !important;
}

/* Bootstrap Navbar 版面微調：避免單一選單文字拆行 */
.navbar .navbar-nav .nav-link {
    white-space: nowrap;
}

/* 頂部資訊欄樣式 */
.top-bar {
    background-color: #8B4513;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    flex: 1;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.top-bar-link:hover {
    color: #FFD700;
}

.top-bar-link i {
    margin-right: 0.3rem;
}

/* 導覽列樣式 */
.navbar {
    background-color: #FFFFFF;
    border-bottom: 2px solid #8B4513;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: auto;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo img {
    max-height: 9px;
    object-fit: contain;
    margin-bottom: 0.3rem;
}

.logo-slogan {
    font-family: 'PMingLiU', serif;
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: bold;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
    position: relative;
    align-items: center;
}

.nav-search-box {
    margin-left: 1rem;
}

.nav-search-box .search-box {
    width: 250px;
}

.nav-links > a,
.dropdown-toggle {
    color: #8B4513;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.nav-links > a::after,
.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.nav-links > a:hover::after,
.nav-links > a.active::after,
.dropdown-toggle:hover::after {
    width: 100%;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropdown-toggle:hover {
    color: #A0522D;
}

/* 下拉選單樣式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid #E8DCC5;
    border-radius: 4px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #8B4513;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #F8F6F2;
    color: #A0522D;
    padding-left: 1.5rem;
}

/* 二級下拉選單樣式 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: normal;
    color: #8B4513;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.dropdown-submenu .dropdown-toggle::after {
    content: '▶';
    font-size: 0.7rem;
    width: auto;
    height: auto;
    background: none;
    position: relative;
    top: 0;
    right: 0;
    margin-left: 0.5rem;
}

.dropdown-submenu:hover .dropdown-toggle::after {
    transform: rotate(90deg);
}

.dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border: 1px solid #E8DCC5;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    border: 2px solid #8B4513;
    border-radius: 25px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    width: 250px;
}

.search-box button {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #A0522D;
}

/* 麵包屑導航 */
.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.breadcrumb a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #A0522D;
    text-decoration: underline;
}

/* 主要內容樣式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8DCC5;
}

.page-header h1 {
    color: #8B4513;
    font-size: 2rem;
    font-family: 'PMingLiU', serif;
    margin-bottom: 0.5rem;
}

.page-description {
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* 過濾區域樣式 */
.filter-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: #8B4513;
    font-size: 1.2rem;
}

.filters-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8DCC5;
}

.filters {
    flex: 1;
    min-width: 200px;
}

.sorting {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sort-by label {
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
}

.sort-by select {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid #8B4513;
    background-color: white;
    color: #8B4513;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    background-color: #8B4513;
    color: white;
}

.category-btn.active {
    background-color: #8B4513;
    color: white;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: bold;
    color: #555;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.item-count {
    color: #666;
    font-size: 0.9rem;
}

/* 商品網格樣式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: white;
    border: 1px solid #E8DCC5;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #8B4513;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    min-height: 360px;
    overflow: hidden;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.product-image {
    text-decoration: none;
    color: inherit;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    z-index: 5;
}

.product-badge.hot {
    background-color: #C0392B;
}

.product-badge.new {
    background-color: #27AE60;
}

.product-badge.discount {
    background-color: #E67E22;
}

.product-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.8rem;
    color: #333;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    line-height: 1.5;
    min-height: 2.2rem;
}

.product-price {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.special-price {
    color: #C0392B;
    font-size: 1.4rem;
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn {
    background-color: #F5DEB3;
    color: #8B4513;
    border: 1px solid #8B4513;
}

.add-to-cart-btn:hover {
    background-color: #8B4513;
    color: white;
}

.buy-now-btn {
    background-color: #8B4513;
    color: white;
}

.buy-now-btn:hover {
    background-color: #A0522D;
}

/* 分頁樣式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

.page-btn.active {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn,
.next-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 頁尾樣式 */
.footer {
    background-color: #5D4037;
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #FFD700;
    font-family: 'PMingLiU', serif;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-section p {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.social-link:hover {
    color: #FFD700;
}


.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.filter-list {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 產品頁：左側分類 + 右側列表 */
.products-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.products-sidebar {
    flex: 0 0 clamp(300px, 24vw, 360px);
}

/* 產品頁左側分類：直向一列一個 */
.products-sidebar .filter-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
}

.products-sidebar .filter-list a {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* 折扣商品套餐頁 */
.badge-brand {
    background-color: #8B4513;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.discount-hero {
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.10) 0%, rgba(255, 215, 0, 0.14) 100%);
    border: 1px solid #E8DCC5;
    border-radius: 12px;
    padding: 1.25rem 1.25rem;
}

.discount-hero-kicker {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(139, 69, 19, 0.10);
    color: #8B4513;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.discount-hero-title {
    color: #8B4513;
    margin: 0 0 0.25rem 0;
    font-family: 'PMingLiU', serif;
}

.discount-hero-subtitle {
    color: #555;
}

.discount-package-img {
    height: 220px;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
}

.discount-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.discount-save {
    color: #C0392B;
    font-weight: bold;
    font-size: 0.9rem;
}

.discount-package-items {
    border: 1px solid #E8DCC5;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: #fff;
}

.discount-package-items ul {
    padding-left: 1.2rem;
}

@media (max-width: 576px) {
    .discount-package-img {
        height: 200px;
    }
}

.products-content {
    flex: 1;
    min-width: 0;
}

/* 商品列表页：缩短卡片高度，避免商品框过长 */
.products-content .product-card .product-image,
.products-content .product-card a.product-image {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

/* 商品列表页：放大商品名称字号并避免标题被截断 */
.products-content .product-name {
    font-size: 1.5rem !important;
    line-height: 1.3;
    height: auto !important;
    min-height: 3.1rem;
}

.sorting.products-sorting {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    justify-content: space-between;
    min-width: 0;
}

@media (max-width: 992px) {
    .products-layout {
        display: block;
    }

    .products-sidebar {
        display: none;
    }

    .sorting.products-sorting {
        justify-content: flex-start;
        gap: 0.75rem;
    }
}

.filter-list li {
    margin-bottom: 0;
}

.filter-list a {
    color: #333;
    text-decoration: none;
    padding: 0.4rem 1rem;
    display: block;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 0.9rem;
}

.filter-list a:hover,
.filter-list a.active {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .top-bar-container,
    .nav-container,
    .main-content,
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .top-bar-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .logo {
        align-items: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .nav-right {
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-left,
    .filter-right {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
    }
    
    .filters-sorting {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sorting {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }

    .navbar form[role="search"] {
        display: none !important;
    }

    .top-bar-right {
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .product-image {
        min-height: 220px;
    }
    
    .product-image img {
        padding: 0;
    }
    
    .product-name {
        font-size: 0.9rem;
        height: 3rem;
        -webkit-line-clamp: 2;
        -moz-line-clamp: 2;
        line-clamp: 2;
    }
    
    .special-price {
        font-size: 1.2rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer .footer-section:has(.footer-social) {
        padding: 0;
        min-height: 0;
    }

    .footer .footer-section:has(.footer-social) > h3 {
        display: none;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem 0.8rem;
        justify-items: center;
    }

    .footer-links li {
        margin-bottom: 0;
        width: 100%;
    }
    
    .footer .footer-social {
        position: fixed;
        right: 12px;
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        z-index: 1500;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        align-items: center;
    }

    .footer .footer-social .social-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        aspect-ratio: 1 / 1;
        border-radius: 50% !important;
        flex: 0 0 44px;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        line-height: 0;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    .footer .footer-social .social-link:first-child {
        background: #4267B2;
    }

    .footer .footer-social .social-link:nth-child(2) {
        background: #00B900;
    }

    .footer .footer-social .social-link i {
        font-size: 17px;
    }
    .mobile-back-to-top {
        position: fixed;
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 215, 0, 0.35);
        border-radius: 999px;
        background: rgba(93, 64, 55, 0.92);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        pointer-events: none;
    }

    .mobile-back-to-top i {
        font-size: 15px;
    }

    .mobile-back-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .filter-list {
        gap: 0.5rem;
    }
    
    .filter-list a {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .sorting {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .sort-by {
        width: 100%;
    }
    
    .sort-by select {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .page-numbers {
        display: flex;
        gap: 0.3rem;
        overflow-x: auto;
        padding: 0 0.5rem;
    }
    
    .page-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease forwards;
}

/* 為每個商品卡片新增不同的動畫延遲 */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* 品牌故事樣式 */
.brand-story {
    background-color: #F8F6F2;
    padding: 3rem 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    color: #8B4513;
    font-size: 1.8rem;
    font-family: 'PMingLiU', serif;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8B4513;
}

.story-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mobile-quick-nav,
.mobile-quick-float,
.mobile-nav-search-panel,
.mobile-nav-drawer,
.mobile-nav-drawer-backdrop {
    display: none;
}

body.viewport-mobile .top-bar {
    display: none !important;
}

body.viewport-mobile .navbar form[role="search"] {
    display: none !important;
}

@media (min-width: 769px) and (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    body.mobile-nav-drawer-open {
        overflow: hidden;
    }

    .top-bar {
        display: none !important;
    }

    .mobile-quick-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: 58px;
        background: #97a1a0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        z-index: 1300;
        margin: 4px 10px 0;
    }

    .mobile-quick-nav__item {
        appearance: none;
        border: 0;
        background: transparent;
        color: #fff;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 6px 2px 4px;
    }

    .mobile-quick-nav__item.is-active {
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-quick-nav__icon {
        position: relative;
        font-size: 20px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 20px;
    }

    .mobile-quick-nav__label {
        line-height: 1.1;
        white-space: nowrap;
    }

    .mobile-quick-nav__badge {
        position: absolute;
        top: -7px;
        right: -10px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff7a59;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    }

    .mobile-nav-drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.26);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
        z-index: 1298;
    }

    .mobile-nav-drawer-backdrop.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 10px;
        right: 10px;
        background: #ffffff;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
        transform: translateY(-110%);
        transition: transform 0.28s ease;
        z-index: 1299;
        padding: 72px 1rem 1.25rem;
    }

    .mobile-nav-drawer.is-open {
        display: block;
        transform: translateY(0);
    }

    .mobile-nav-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.9rem;
    }

    .mobile-nav-drawer__title {
        color: #8B4513;
        font-size: 1rem;
        font-weight: 700;
    }

    .mobile-nav-drawer__close {
        border: 0;
        background: #f1ece4;
        color: #8B4513;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-drawer__search {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .mobile-nav-drawer__search input {
        flex: 1;
        border: 1px solid #d9c7af;
        border-radius: 999px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        background: #faf7f2;
    }

    .mobile-nav-drawer__search button {
        border: 0;
        border-radius: 999px;
        width: 44px;
        height: 44px;
        background: #8B4513;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-drawer__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .mobile-nav-drawer__links a {
        text-decoration: none;
        color: #6b4d36;
        background: #f7f1e8;
        border: 1px solid #eadbc8;
        border-radius: 14px;
        padding: 0.9rem 0.95rem;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .navbar {
        position: relative;
        top: auto;
        left: 0;
        right: 0;
        padding: 1.1rem 0 0.85rem;
        background-color: #fff;
        box-shadow: none;
        border-bottom: 2px solid #b86d35;
        z-index: 1200;
    }

    .navbar .container {
        justify-content: center;
        min-height: 150px;
    }

    .navbar-brand {
        margin: 0 auto;
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .navbar-brand .ms-2,
    .navbar-brand .text-brown {
        display: none !important;
    }

    .navbar-brand img {
        max-width: 222px !important;
        width: 222px;
        height: auto;
        display: block;
    }

    .navbar-toggler,
    .navbar-collapse {
        display: none !important;
    }

    .main-content {
        padding-top: 0.9rem;
    }
}

@media (max-width: 640px) {
    .mobile-nav-drawer__links {
        grid-template-columns: 1fr;
    }
}

.story-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-btn:hover {
    background-color: #5D4037;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

/* 首頁橫幅樣式 */
.home-banner {
    position: relative;
    min-height: 320px;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5efe6 0%, #e4d3bc 100%);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.banner-image-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.banner-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: linear-gradient(to right, rgba(139, 69, 19, 0.9), rgba(139, 69, 19, 0.7));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    max-width: 450px;
    backdrop-filter: blur(5px);
    z-index: 3;
}

.banner-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-family: 'PMingLiU', serif;
}

.banner-text p {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    opacity: 0.95;
}

.banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: #fff;
    color: #8B4513;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-link:hover {
    color: #6d3410;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.control-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn.active {
    background-color: white;
    transform: scale(1.2);
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .home-banner {
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }

    .banner-text {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 1rem 1.1rem;
    }

    .banner-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .banner-text p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

/* 精選商品樣式 */
.featured-products {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0 1rem;
}

.featured-products h2 {
    color: #8B4513;
    font-size: 1.8rem;
    font-family: 'PMingLiU', serif;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8B4513;
    display: inline-block;
    position: relative;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #8B4513;
    border-radius: 50%;
}

.view-more {
    margin-top: 2rem;
    text-align: center;
}

.view-more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more-btn:hover {
    background-color: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

/* 商品詳情頁樣式 */
.product-detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* 商品圖片區域 */
.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: start;
}

.main-image {
    background-color: #F8F6F2;
    padding: 1rem;
    border-radius: 8px;
}

.product-selection-sidecard {
    background: linear-gradient(180deg, #fffdfa 0%, #f8f3eb 100%);
    border: 1px solid #E8DCC5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(139, 69, 19, 0.08);
}

.product-selection-sidecard-header {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(180deg, #fff7ea 0%, #fffdf9 100%);
    border-bottom: 1px solid #E8DCC5;
}

.product-selection-sidecard-header h3 {
    margin: 0 0 0.35rem;
    color: #8B4513;
    font-size: 1.1rem;
}

.product-selection-sidecard-header p {
    margin: 0;
    color: #7b6a56;
    font-size: 0.92rem;
    line-height: 1.6;
}

.product-selection-sidecard-body {
    padding: 1rem 1.15rem 1.2rem;
}

.product-selection-sidecard-summary {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eadfce;
    color: #8B4513;
    font-size: 0.95rem;
    line-height: 1.7;
}

.product-option-groups-side {
    gap: 0.85rem;
}

.product-option-groups-side .product-option-slot {
    padding: 0.9rem;
    background: #fff;
}

.detail-image-card {
    background-color: #F8F6F2;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8DCC5;
}

.detail-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-media-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.product-detail-media-section h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'PMingLiU', serif;
}

.product-detail-media-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

/* 商品資訊區域 */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 96px;
    align-self: start;
}

.product-title {
    font-size: 1.8rem;
    font-family: 'PMingLiU', serif;
    color: #8B4513;
    line-height: 1.4;
}

.product-description {
    background-color: #F8F6F2;
    padding: 1.5rem;
    border-radius: 8px;
}

.product-description h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-specifications {
    background-color: #F8F6F2;
    padding: 1.5rem;
    border-radius: 8px;
}

.product-specifications h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-option-selection {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 10px;
    background: #FFF8EE;
    border: 1px solid #E8DCC5;
}

.product-package-selection {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 10px;
    background: #F6F9FF;
    border: 1px solid #D8E4FF;
}

.product-package-selection h3 {
    margin-bottom: 1rem;
}

.product-package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.product-package-card {
    border: 1px solid #C9D8F2;
    border-radius: 14px;
    background: #FFFFFF;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-package-card:hover {
    transform: translateY(-1px);
    border-color: #8B4513;
}

.product-package-card.active {
    border-color: #8B4513;
    box-shadow: 0 10px 24px rgba(139, 69, 19, 0.14);
    background: #FFFDF9;
}

.product-package-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 0.85rem;
}

.product-package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-package-name {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.product-package-subtitle {
    color: #6c7a89;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 1.35rem;
}

.product-package-price {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-package-price strong {
    color: #C0392B;
    font-size: 1.1rem;
}

.product-package-price span {
    color: #7f8c8d;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-package-meta {
    margin-top: 0.65rem;
    color: #6c7a89;
    font-size: 0.85rem;
    line-height: 1.6;
}

.product-package-hint {
    margin: 0.85rem 0 0;
    color: #355c92;
    font-size: 0.95rem;
}

.product-option-selection h3 {
    margin-bottom: 1rem;
}

.product-option-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-option-slot {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #E8DCC5;
    background: #FFFFFF;
}

.product-option-slot-title {
    margin-bottom: 0.9rem;
    font-weight: bold;
    color: #8B4513;
    font-size: 1rem;
}

.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-option-group-label {
    font-weight: bold;
    color: #8B4513;
}

.product-option-required {
    margin-left: 0.35rem;
    color: #C0392B;
}

.product-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-option-btn {
    padding: 0.7rem 1.1rem;
    border: 1px solid #C8A97E;
    border-radius: 999px;
    background: #FFFFFF;
    color: #8B4513;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-option-btn:hover {
    border-color: #8B4513;
    transform: translateY(-1px);
}

.product-option-btn.active {
    background: #8B4513;
    color: #FFFFFF;
    border-color: #8B4513;
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.18);
}

.product-option-hint {
    margin: 1rem 0 0;
    color: #8B4513;
    font-size: 0.95rem;
}

.product-option-hint.error {
    color: #C0392B;
}

.desktop-option-allocator {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.desktop-option-allocator__group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.desktop-option-allocator__label {
    font-weight: bold;
    color: #8B4513;
}

.desktop-option-allocator__image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.desktop-option-image-item {
    border: 1px solid #d6c2a2;
    border-radius: 4px;
    background: #fff;
    color: #222;
    min-width: 64px;
    padding: 0.2rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.desktop-option-image-item__thumb {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    overflow: hidden;
    background: #f3f3f3;
    flex: 0 0 32px;
}

.desktop-option-image-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-option-image-item__text {
    font-size: 0.95rem;
    line-height: 1.1;
}

.desktop-option-image-item.active {
    border-color: #f26c3b;
    box-shadow: inset 0 0 0 1px #f26c3b;
}

.desktop-option-allocator__rows {
    display: flex;
    flex-direction: column;
}

.desktop-option-allocator__row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1e5d5;
}

.desktop-option-allocator__row:last-child {
    border-bottom: 0;
}

.desktop-option-allocator__value {
    color: #333;
}

.desktop-option-allocator__stock {
    color: #7b7b7b;
    font-size: 0.92rem;
    white-space: nowrap;
}

.desktop-option-allocator__stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-stepper-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    background: #f3f3f3;
    color: #333;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.desktop-stepper-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.desktop-stepper-qty {
    min-width: 18px;
    text-align: center;
    color: #333;
}

@media (min-width: 993px) {
    .product-option-list {
        justify-content: center;
    }

    .desktop-option-allocator {
        gap: 1.15rem;
    }

    .desktop-option-allocator__group {
        padding: 1rem;
        border: 1px solid #eadfce;
        border-radius: 14px;
        background: linear-gradient(180deg, #fffefc 0%, #fff8ee 100%);
    }

    .desktop-option-allocator__label {
        font-size: 0.95rem;
        letter-spacing: 0.03em;
    }

    .desktop-option-allocator__image-list {
        justify-content: center;
        gap: 0.7rem;
    }

    .desktop-option-image-item {
        border-radius: 12px;
        border-color: #e0c9a6;
        min-height: 54px;
        padding: 0.45rem 0.7rem;
        gap: 0.55rem;
        box-shadow: 0 2px 8px rgba(139, 69, 19, 0.06);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .desktop-option-image-item:hover {
        transform: translateY(-1px);
        border-color: #8B4513;
        box-shadow: 0 6px 14px rgba(139, 69, 19, 0.14);
    }

    .desktop-option-image-item__thumb {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        flex: 0 0 40px;
    }

    .desktop-option-image-item__text {
        font-size: 0.94rem;
        color: #52331a;
        font-weight: 600;
    }

    .desktop-option-image-item.active {
        border-color: #8B4513;
        background: linear-gradient(180deg, #fff5e7 0%, #fff0de 100%);
        box-shadow: 0 8px 18px rgba(139, 69, 19, 0.16);
    }

    .desktop-option-allocator__rows {
        border: 1px solid #efdfcb;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .desktop-option-allocator__row {
        grid-template-columns: minmax(140px, 1fr) auto auto;
        padding: 0.7rem 0.8rem;
        gap: 1rem;
        background: #fff;
    }

    .desktop-option-allocator__value {
        font-weight: 600;
        color: #4c2f1a;
    }

    .desktop-option-allocator__stock {
        font-size: 0.85rem;
        color: #8d7a64;
        background: #f8f3ea;
        border: 1px solid #eadfce;
        border-radius: 999px;
        padding: 0.15rem 0.55rem;
    }

    .desktop-option-allocator__stepper {
        gap: 0.4rem;
        background: #fff8ee;
        border: 1px solid #ecd9c0;
        border-radius: 999px;
        padding: 0.2rem;
    }

    .desktop-stepper-btn {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        border-color: #d8c1a0;
        background: #fff;
        color: #8B4513;
        font-weight: 700;
    }

    .desktop-stepper-btn:not(:disabled):hover {
        border-color: #8B4513;
        background: #fff4e2;
    }

    .desktop-stepper-qty {
        min-width: 24px;
        font-weight: 700;
        color: #8B4513;
    }
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid #E8DCC5;
}

.spec-table td {
    padding: 0.8rem 0;
    line-height: 1.6;
}

.spec-table td:first-child {
    font-weight: bold;
    color: #8B4513;
    width: 120px;
}

@media (max-width: 768px) {
    body.viewport-mobile .top-bar,
    body.viewport-mobile .navbar {
        display: none !important;
    }

    body.viewport-mobile {
        overflow-x: hidden;
        padding-top: 4.65rem;
        transition: padding-top 0.18s ease;
    }

    body.viewport-mobile .main-content {
        padding-top: 0.9rem;
        padding-bottom: 5.2rem;
    }

    body.viewport-mobile.mobile-header-collapsed {
        padding-top: 3.35rem;
    }

    body.mobile-nav-drawer-open {
        overflow: hidden;
    }

    .mobile-header-shell {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1800;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .mobile-quick-nav {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.45rem;
        background: rgba(152, 163, 164, 0.78);
        padding: 0.45rem 0.55rem 0.4rem;
    }

    .mobile-header-shell .mobile-quick-nav {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        box-shadow: none;
        transform: none;
    }

    .mobile-header-shell.is-collapsed .mobile-header-brand {
        opacity: 0;
        transform: scale(0.7);
        pointer-events: none;
    }

    .mobile-header-brand {
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .mobile-quick-nav__item,
    .mobile-quick-float__item {
        border: 0;
        background: transparent;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.72rem;
        line-height: 1.1;
        text-decoration: none;
        padding: 0.25rem 0.15rem;
        min-height: 2.8rem;
    }

    .mobile-quick-nav__item.is-active,
    .mobile-quick-float__item.is-active {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 12px;
    }

    .mobile-quick-nav__icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.95rem;
        height: 1.95rem;
        font-size: 1rem;
    }

    .mobile-quick-nav__icon--cart {
        width: 2.05rem;
        height: 2.05rem;
    }

    .mobile-quick-nav__badge {
        position: absolute;
        top: -0.28rem;
        right: -0.42rem;
        min-width: 1rem;
        height: 1rem;
        border-radius: 999px;
        background: #ff6f61;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.24rem;
    }

    .mobile-header-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.08rem;
        padding: 0;
        margin: 0;
        text-decoration: none;
        color: #111;
        background: transparent;
        border-bottom: 0;
    }

    .mobile-header-brand__logo {
        width: 2.65rem;
        height: 2.65rem;
        object-fit: contain;
        display: block;
    }

    .mobile-header-brand__name {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .mobile-nav-search-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 1900;
        padding: 0.85rem 0.9rem;
        background: rgba(255, 250, 245, 0.98);
        transform: translateY(-120%);
        transition: transform 0.2s ease;
    }

    .mobile-nav-search-panel.is-open {
        transform: translateY(0);
    }

    .mobile-nav-search-panel__form {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-nav-search-panel__form input {
        flex: 1;
        border: 1px solid #e1caa7;
        border-radius: 999px;
        padding: 0.72rem 0.95rem;
        font-size: 0.95rem;
    }

    .mobile-nav-search-panel__form button {
        border: none;
        border-radius: 999px;
        padding: 0.72rem 0.9rem;
        background: #8b4513;
        color: #fff;
    }

    .mobile-nav-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2000;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .mobile-nav-drawer-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        z-index: 2100;
        background: #fffaf4;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
        transform: translateX(-110%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        padding: 1rem 0 5.5rem;
    }

    .mobile-nav-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-nav-drawer__brand {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0 1rem 1rem;
        border-bottom: 1px solid #ead8c0;
        margin-bottom: 0.85rem;
    }

    .mobile-nav-drawer__brand-logo {
        width: 44px;
        height: 44px;
        object-fit: cover;
        border-radius: 12px;
    }

    .mobile-nav-drawer__brand-text {
        font-weight: 700;
        color: #8b4513;
    }

    .mobile-nav-drawer__social {
        display: flex;
        gap: 0.5rem;
        padding: 0 1rem 0.8rem;
    }

    .mobile-nav-drawer__social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 999px;
        background: #f3e2c2;
        color: #8b4513;
    }

    .mobile-nav-drawer__links {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0 0.75rem;
    }

    .mobile-nav-drawer__link,
    .mobile-nav-drawer__sublink {
        display: block;
        width: 100%;
        text-align: left;
        border: none;
        background: transparent;
        color: #5d3b20;
        padding: 0.75rem 0.75rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
    }

    .mobile-nav-drawer__link--toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav-drawer__link--accent {
        color: #8b4513;
        font-weight: 700;
    }

    .mobile-nav-drawer__submenu {
        display: none;
        padding: 0 0.35rem 0.3rem 1rem;
    }

    .mobile-nav-drawer__submenu.is-open {
        display: block;
    }

    .mobile-nav-drawer__sublink {
        padding: 0.6rem 0.75rem;
        font-weight: 500;
        color: #7b4e21;
    }

    .mobile-quick-float {
        display: none !important;
    }
}

/* 相關商品推薦 */
.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'PMingLiU', serif;
}

/* 收藏按鈕 */
.favorite-btn {
    background-color: #F5F5DC;
    color: #8B4513;
    border: 1px solid #8B4513;
}

.favorite-btn:hover {
    background-color: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.favorite-btn.active {
    background-color: #E74C3C;
    color: white;
    border-color: #E74C3C;
}

.favorite-btn.active i {
    color: white;
}

/* 社交分享按鈕樣式 */
.social-share {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #F8F6F2;
    border-radius: 8px;
}

.social-share h4 {
    color: #8B4513;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}

.social-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: white;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.line {
    background-color: #00B900;
}

.social-btn.twitter {
    background-color: #1DA1F2;
}

.social-btn.copy-link {
    background-color: #8B4513;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* 響應式設計 - 社交分享按鈕 */
@media (max-width: 768px) {
    .social-share-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 響應式設計 - 商品詳情頁 */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .product-info-section {
        position: static;
    }
    
    .product-title {
        font-size: 1.5rem;
    }

    .product-detail-media-section {
        padding: 1.5rem;
    }

    .product-package-list {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 1rem;
    }
    
    .product-info-section {
        gap: 1rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-actions {
        flex-direction: column;
    }

    .product-detail-container .main-image .detail-image-card {
        position: relative;
    }

    .desktop-option-allocator {
        gap: 0.75rem;
    }

    .desktop-option-allocator__group {
        padding: 0.7rem;
        border: 1px solid #e7d7c0;
        border-radius: 12px;
        background: #fffdf8;
    }

    .desktop-option-allocator__label {
        font-size: 1rem;
        font-weight: 700;
        color: #8B4513;
    }

    .desktop-option-allocator__rows {
        border: 1px solid #eadac4;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .desktop-option-allocator__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.55rem;
        align-items: center;
        padding: 0.75rem 0.65rem;
        border-bottom: 1px solid #eee2d1;
    }

    .desktop-option-allocator__stock {
        display: none;
    }

    .desktop-option-allocator__value {
        font-size: 1.05rem;
        font-weight: 600;
        color: #3f2b1c;
    }

    .desktop-option-allocator__stepper {
        justify-content: flex-end;
    }

    .product-detail-container .product-info-section .product-actions {
        display: none !important;
    }

    .product-detail-mobile-corner-actions {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 4;
        pointer-events: none;
    }

    .product-detail-mobile-corner-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        font-size: 16px;
        line-height: 1;
    }

    .product-detail-mobile-cart-btn {
        background: #f08b74;
        color: #fff;
    }

    .product-detail-mobile-fav-btn {
        background: rgba(255, 255, 255, 0.95);
        color: #c06a31;
        border: 1px solid #d9a46b;
    }

    .product-detail-mobile-fav-btn.active {
        background: #e66a5e;
        color: #fff;
        border-color: #e66a5e;
    }

    .mobile-spec-picker-trigger {
        width: 100%;
        border: 1px solid #e3d4bf;
        border-radius: 10px;
        background: #fff;
        padding: 0.7rem 0.8rem;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.25rem 0.6rem;
        align-items: center;
        text-align: left;
        color: #8B4513;
        margin-top: 0.2rem;
    }

    .mobile-spec-picker-trigger__label {
        font-size: 0.92rem;
        color: #6f4a2d;
    }

    .mobile-spec-picker-trigger__value {
        grid-column: 1 / 2;
        font-size: 0.86rem;
        color: #222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-spec-picker {
        position: fixed;
        inset: 0;
        z-index: 1600;
        display: none;
    }

    .mobile-spec-picker.is-open {
        display: block;
    }

    .mobile-spec-picker__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.52);
    }

    .mobile-spec-picker__sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 88dvh;
        background: #fff;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    }

    .mobile-spec-picker__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0.9rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-spec-picker__title {
        font-size: 1rem;
        font-weight: 700;
        color: #2f2f2f;
    }

    .mobile-spec-picker__close {
        border: 0;
        background: transparent;
        font-size: 1.8rem;
        color: #666;
        line-height: 1;
        padding: 0;
    }

    .mobile-spec-picker__content {
        overflow-y: auto;
        padding: 0.7rem 0.75rem 1rem;
        flex: 1;
    }

    .mobile-spec-picker__content .product-package-selection,
    .mobile-spec-picker__content .product-selection-sidecard {
        margin: 0;
        border-radius: 10px;
    }

    .mobile-spec-picker__content .product-selection-sidecard {
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 0.7rem;
    }

    .mobile-spec-picker__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid #eee;
    }

    .mobile-spec-picker__cart,
    .mobile-spec-picker__buy {
        height: 50px;
        border: 0;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .mobile-spec-picker__cart {
        background: #6d7c80;
        color: #fff;
    }

    .mobile-preorder-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 1450;
    }

    .mobile-preorder-bar__button {
        width: 100%;
        border: 0;
        border-radius: 18px;
        background: #f47d69;
        color: #fff;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 10px 18px;
        box-shadow: 0 10px 24px rgba(244, 125, 105, 0.28);
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .mobile-preorder-bar__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: rgba(127, 71, 44, 0.28);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        font-size: 1.05rem;
    }

    .mobile-preorder-bar__text {
        font-size: 1.12rem;
        line-height: 1;
    }

    body.mobile-preorder-bar-enabled .main-content {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-spec-picker__buy {
        background: #f08b74;
        color: #fff;
    }

    body.mobile-spec-picker-open {
        overflow: hidden;

    .mobile-preorder-bar {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-preorder-bar__button {
        min-height: 52px;
        border-radius: 16px;
        gap: 12px;
        padding: 8px 14px;
    }

    .mobile-preorder-bar__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .mobile-preorder-bar__text {
        font-size: 1rem;
    }

    body.mobile-preorder-bar-enabled .main-content {
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
    }
    }
}

@media (max-width: 480px) {
    .detail-image-card {
        border-radius: 6px;
    }

    .product-detail-media-section {
        padding: 1rem;
    }
    
    .product-description,
    .product-specifications {
        padding: 1rem;
    }

    .product-option-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .product-option-btn {
        width: 100%;
        min-width: 0;
        text-align: center;
        padding: 0.5rem 0.35rem;
        border-radius: 10px;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-option-slot {
        padding: 0.85rem;
    }
}

/* 購物車樣式 */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-items {
    padding: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto auto;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E8DCC5;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    background-color: #F8F6F2;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8B4513;
    margin: 0;
    line-height: 1.4;
}

.cart-item-spec {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.cart-item-price {
    text-align: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #F5F5DC;
    border: 1px solid #8B4513;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: #8B4513;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #8B4513;
    border-radius: 4px;
    font-size: 1rem;
}

.cart-item-total {
    font-weight: bold;
    color: #8B4513;
    text-align: center;
}

.cart-item-remove {
    text-align: center;
}

.remove-btn {
    width: 30px;
    height: 30px;
    background-color: #F5F5DC;
    border: 1px solid #8B4513;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: #E74C3C;
    color: white;
    border-color: #E74C3C;
}

.cart-summary {
    background-color: #F8F6F2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-summary h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin: 0;
    font-family: 'PMingLiU', serif;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.summary-item.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8B4513;
    padding-top: 1rem;
    border-top: 2px solid #8B4513;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.continue-shopping-btn {
    flex: 1;
    padding: 1rem;
    background-color: white;
    color: #8B4513;
    border: 1px solid #8B4513;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background-color: #F5F5DC;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.2);
}

.checkout-btn {
    flex: 1;
    padding: 1rem;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #6B3E15;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

/* 聯絡我們頁面樣式 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-pending-block[data-contact-pending] {
    visibility: hidden;
}

.contact-pending-block.is-ready[data-contact-pending] {
    visibility: visible;
}

.contact-info-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.contact-info-card h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'PMingLiU', serif;
    text-align: center;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #8B4513;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-text h3 {
    color: #8B4513;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    margin-bottom: 0;
    color: #555;
}

.social-media {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #E8DCC5;
}

.social-media h3 {
    color: #8B4513;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.social-link.facebook {
    background-color: #4267B2;
}

.social-link.line {
    background-color: #00B900;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-form-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex: 1;
}

.contact-form-card h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'PMingLiU', serif;
    text-align: center;
}

/* LINE 諮詢樣式 */
.line-consultation {
    text-align: center;
}

.line-info {
    margin-bottom: 2rem;
}

.line-info p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.line-qr {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.line-qr img {
    width: 200px;
    height: 200px;
    border: 2px solid #00B900;
    border-radius: 8px;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.line-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.line-btn,
.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.line-btn {
    background-color: #00B900;
    color: white;
    border: none;
    cursor: pointer;
}

.line-btn:hover {
    background-color: #00A600;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 185, 0, 0.3);
}

.phone-btn {
    background-color: #F5DEB3;
    color: #8B4513;
    border: 1px solid #8B4513;
    cursor: pointer;
}

.phone-btn:hover {
    background-color: #E8DCC5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.consultation-hours {
    background-color: #F8F6F2;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.consultation-hours h3 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'PMingLiU', serif;
}

.consultation-hours p {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 專業代工 & PT蓋頁面樣式 */
.oem-intro,
.pt-cap-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.oem-image,
.pt-cap-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f3eadf;
    box-shadow: 0 10px 28px rgba(139, 69, 19, 0.12);
}

.oem-image img,
.pt-cap-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.oem-info,
.pt-cap-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oem-info h2,
.oem-services h2,
.pt-cap-service h2,
.oem-contact h2 {
    color: #8B4513;
    font-size: 1.9rem;
    font-family: 'PMingLiU', serif;
    margin-bottom: 1rem;
}

.oem-info p,
.pt-cap-info p,
.service-info p,
.oem-contact p {
    color: #555;
    line-height: 1.8;
}

.oem-services,
.pt-cap-service,
.oem-contact {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid #eadfce;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdfa 0%, #f8f3eb 100%);
}

.service-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B4513;
    color: #fff;
    font-size: 1.3rem;
}

.service-info h3 {
    color: #8B4513;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.pt-cap-info ul {
    padding-left: 1.25rem;
    color: #555;
    line-height: 1.8;
}

.oem-contact .contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.oem-contact .contact-item {
    margin-bottom: 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #f8f3eb;
    border: 1px solid #eadfce;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #8B4513;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.24);
}

@media (max-width: 992px) {
    .oem-intro,
    .pt-cap-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .oem-contact .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .oem-services,
    .pt-cap-service,
    .oem-contact {
        padding: 1.25rem;
    }

    .oem-image img,
    .pt-cap-image img {
        aspect-ratio: 4 / 3;
    }
}

/* 地圖樣式 */
.map-section {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.map-section h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'PMingLiU', serif;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .line-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* 立即下單按鈕 */
#place-order-btn {
    background-color: #FF8C00;
    border-color: #FF8C00;
}

#place-order-btn:hover {
    background-color: #FF7F00;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}

/* 訂單資訊表單 */
.order-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #F8F6F2;
    border-radius: 8px;
}

.order-form h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'PMingLiU', serif;
}

.checkout-section-title {
    color: #6f88c9;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1rem 0 0.85rem;
}

.checkout-section-title:first-of-type {
    margin-top: 0;
}

.delivery-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.delivery-method-btn,
.payment-method-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-method-btn:hover,
.payment-method-card:hover {
    border-color: #8ea4df;
    box-shadow: 0 6px 16px rgba(111, 136, 201, 0.12);
}

.delivery-method-btn.is-active,
.payment-method-card.is-active {
    background: #8ea4df;
    border-color: #8ea4df;
    color: #fff;
}

.delivery-method-icon,
.payment-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    flex: 0 0 1.4rem;
}

.delivery-help-text {
    margin-top: 0.7rem;
    color: #8a8a8a;
    font-size: 0.88rem;
}

.delivery-alert {
    padding: 0.95rem 1rem;
    background: #fff3e8;
    border: 1px solid #ffd7b6;
    color: #d9534f;
    border-radius: 2px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.compact-form-row {
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.compact-form-row .form-group {
    min-width: 0;
}

.address-select-row {
    align-items: flex-end;
}

.country-group {
    max-width: 140px;
}

.delivery-method-empty {
    padding: 0.9rem 1rem;
    border: 1px dashed #d8b58a;
    border-radius: 6px;
    color: #8B4513;
    background: #fffaf3;
}

.picker-input {
    cursor: pointer;
    background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
}

.picker-input:focus {
    cursor: pointer;
}

.store-picker-modal {
    border-radius: 16px;
    overflow: hidden;
}

.store-picker-summary {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #f6f8ff;
    color: #5b6ea6;
    font-size: 0.92rem;
}

.store-search-box {
    margin-bottom: 0.9rem;
}

.store-search-input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d9e0f5;
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
}

.store-search-input:focus {
    outline: none;
    border-color: #8ea4df;
    box-shadow: 0 0 0 3px rgba(142, 164, 223, 0.14);
}

.store-picker-list {
    display: grid;
    gap: 0.75rem;
}

.store-picker-empty {
    padding: 1rem;
    border: 1px dashed #d9e0f5;
    border-radius: 12px;
    background: #f9fbff;
    color: #6c7ba5;
    text-align: center;
}

.store-sync-hint {
    margin-top: 0.55rem;
    color: #6c7ba5;
    font-size: 0.88rem;
    line-height: 1.6;
}

.checkout-field-hint {
    margin-top: 0.45rem;
    color: #8b5a2b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.phone-format-message {
    min-height: 1.3em;
    margin-top: 0.3rem;
    color: #c0392b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.checkout-policy-consent {
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #ead8c4;
    border-radius: 9px;
    background: #fffaf5;
}

.checkout-policy-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    color: #5d4634;
    cursor: pointer;
    line-height: 1.55;
}

.checkout-policy-consent input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkout-policy-consent a {
    color: #8b4513;
    font-weight: 700;
    text-decoration: underline;
}

.address-map-panel {
    margin-top: 0.8rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #d9e0f5;
    border-radius: 10px;
    background: #f9fbff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.address-map-text {
    color: #5c6787;
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-all;
}

.address-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #8ea4df;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.address-map-link:hover {
    color: #fff;
    background: #728bcc;
}

.address-map-preview {
    margin-top: 0.75rem;
    border: 1px solid #d9e0f5;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3ff;
}

.address-map-preview iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

.store-option-btn {
    width: 100%;
    text-align: left;
    border: 1px solid #d9e0f5;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.store-option-btn:hover {
    border-color: #8ea4df;
    box-shadow: 0 8px 18px rgba(111, 136, 201, 0.12);
    transform: translateY(-1px);
}

.store-option-name {
    color: #2e3f6f;
    font-weight: 700;
}

.store-option-address,
.store-option-hours {
    color: #666;
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8ea4df;
    box-shadow: 0 0 0 3px rgba(142, 164, 223, 0.14);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
}

.promo-code {
    margin-top: 1rem;
    border-top: 1px solid #E8DCC5;
    padding-top: 1.5rem;
}

.promo-code h4 {
    color: #8B4513;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input-group input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #8B4513;
    border-radius: 4px;
    font-size: 1rem;
}

.apply-promo-btn {
    padding: 0.8rem 1.5rem;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-promo-btn:hover {
    background-color: #6B3E15;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

/* 購物車響應式設計 */
@media (max-width: 992px) {
    .cart-container {
        display: flex;
        flex-direction: column;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: 
            "image info"
            "price quantity"
            "total remove";
        gap: 1rem;
        text-align: left;
    }
    
    .cart-item-image {
        grid-area: image;
        width: 100px;
        height: 100px;
    }
    
    .cart-item-info {
        grid-area: info;
    }
    
    .cart-item-price {
        grid-area: price;
        text-align: left;
    }
    
    .cart-item-quantity {
        grid-area: quantity;
        justify-content: flex-start;
    }
    
    .cart-item-total {
        grid-area: total;
        text-align: left;
    }
    
    .cart-item-remove {
        grid-area: remove;
        text-align: left;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .cart-items {
        padding: 1.5rem;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.8rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-name {
        font-size: 1rem;
    }
    
    .cart-item-spec {
        font-size: 0.8rem;
    }
    
    .summary-item {
        font-size: 1rem;
    }
    
    .summary-item.total {
        font-size: 1.2rem;
    }

    .delivery-method-grid {
        grid-template-columns: 1fr;
    }

    .country-group {
        max-width: none;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-items {
        padding: 1rem;
    }
    
    .cart-summary {
        padding: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas: 
            "image"
            "info"
            "price"
            "quantity"
            "total"
            "remove";
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .cart-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .cart-item-info {
        align-items: center;
        text-align: center;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        justify-content: center;
        text-align: center;
    }
}

/* 手機端安全覆蓋：僅移動端生效，不影響桌面 */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }

    body.mobile-nav-drawer-open {
        overflow: hidden;
    }

    .mobile-quick-nav {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: sticky;
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        height: 56px;
        margin: 0;
        padding: 0;
        background: rgba(152, 163, 164, 0.78);
        border-top: 0;
        border-bottom: 1px solid #dde2e2;
        box-shadow: none;
        z-index: 1400;
        border-radius: 0;
        backdrop-filter: blur(6px);
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    body.mobile-quick-nav-hidden .mobile-quick-nav {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-quick-float {
        display: none;
    }

    body.mobile-quick-float-visible .mobile-quick-float {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        pointer-events: none;
        z-index: 1401;
        padding: 6px 8px;
        box-sizing: border-box;
    }

    .mobile-quick-float__item {
        width: 44px;
        height: 44px;
        appearance: none;
        border: 0;
        border-radius: 10px;
        background: rgba(152, 163, 164, 0.88);
        color: #ffffff;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
        pointer-events: auto;
    }

    .mobile-quick-float__item .mobile-quick-nav__icon {
        font-size: 22px;
        min-height: 22px;
    }

    .mobile-quick-float__item .mobile-quick-nav__label {
        display: none;
    }

    .mobile-quick-float__item .mobile-quick-nav__badge {
        top: -5px;
        right: -8px;
    }

    .mobile-quick-nav__item {
        appearance: none;
        border: 0;
        background: transparent;
        color: #fff;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.01em;
        padding: 5px 0 4px;
    }

    .mobile-quick-nav__item.is-active {
        background: rgba(255, 255, 255, 0.08);
    }

    .mobile-quick-nav__icon {
        position: relative;
        font-size: 21px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 21px;
    }

    .mobile-quick-nav__label {
        line-height: 1.1;
        white-space: nowrap;
    }

    .mobile-quick-nav__badge {
        position: absolute;
        top: -6px;
        right: -9px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff7a59;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    }

    .mobile-nav-search-panel {
        display: none;
        padding: 0.58rem 0.62rem;
        background: #d9d9d9;
        border-bottom: 1px solid #c8c8c8;
    }

    .mobile-nav-search-panel.is-open {
        display: block;
    }

    .mobile-nav-search-panel__form {
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 42px;
        gap: 0.45rem;
    }

    .mobile-nav-search-panel__form input {
        width: 100%;
        height: 44px;
        border: 1px solid #cfcfcf;
        border-radius: 2px;
        background: #fff;
        padding: 0 0.85rem;
        font-size: 1.05rem;
        color: #444;
        outline: none;
    }

    .mobile-nav-search-panel__form input::placeholder {
        color: #8b8b8b;
    }

    .mobile-nav-search-panel__form button {
        border: 1px solid #cfcfcf;
        background: #fff;
        color: #616161;
        border-radius: 2px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.06rem;
    }

    .mobile-nav-drawer-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.26);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
        z-index: 1398;
    }

    .mobile-nav-drawer-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        display: block !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: auto;
        width: min(82vw, 320px);
        height: calc(100dvh - 56px);
        background: #7f8b8d;
        border-radius: 0;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.26);
        transform: translateX(-105%);
        transition: transform 0.26s ease;
        z-index: 1399;
        padding: 0;
        overflow-y: auto;
    }

    .mobile-nav-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-nav-drawer__brand {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.75rem 0.8rem;
        background: #8d989a;
        color: #fff;
        position: relative;
    }

    .mobile-nav-drawer__brand-logo {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        background: #fff;
        border: 2px solid rgba(255, 255, 255, 0.65);
    }

    .mobile-nav-drawer__brand-text {
        font-size: 0.98rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        padding-right: 30px;
    }

    .mobile-nav-drawer__social {
        display: flex;
        gap: 0.6rem;
        padding: 0.6rem 0.8rem 0.75rem;
        background: #8d989a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-nav-drawer__social a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
    }

    .mobile-nav-drawer__search {
        display: none !important;
    }

    .mobile-nav-drawer__links {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: #7f8b8d;
    }

    .mobile-nav-drawer__link {
        color: #fff !important;
        text-decoration: none !important;
        padding: 0.92rem 1.05rem;
        font-size: 1.02rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 0 !important;
    }

    .mobile-nav-drawer__link--toggle {
        width: 100%;
        cursor: pointer;
        text-align: left;
        border: 0 !important;
        font-family: inherit;
    }

    .mobile-nav-drawer__link--toggle i {
        transition: transform 0.22s ease;
    }

    .mobile-nav-drawer__link--toggle.is-open i {
        transform: rotate(180deg);
    }

    .mobile-nav-drawer__submenu {
        display: none;
        background: #758183;
    }

    .mobile-nav-drawer__submenu.is-open {
        display: block;
    }

    .mobile-nav-drawer__sublink {
        display: block;
        color: #eef8fa;
        text-decoration: none;
        padding: 0.72rem 1.2rem 0.72rem 1.9rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-drawer__sublink:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mobile-nav-drawer__link i {
        font-size: 0.86rem;
        opacity: 0.95;
    }

    .mobile-nav-drawer__link--accent {
        color: #b8f1ff !important;
    }

    body.mobile-quick-nav-enabled {
        padding-bottom: 0;
    }

    .navbar {
        padding: 0.9rem 0 0.55rem !important;
    }

    .navbar-toggler,
    .navbar-collapse {
        display: none !important;
    }

    .navbar .container {
        display: flex !important;
        justify-content: center !important;
        min-height: 108px !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand {
        margin-left: auto !important;
        margin-right: auto !important;
        width: clamp(92px, 28vw, 118px) !important;
        min-width: clamp(92px, 28vw, 118px) !important;
        max-width: clamp(92px, 28vw, 118px) !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden;
    }

    .navbar-brand img {
        width: clamp(92px, 28vw, 118px) !important;
        height: clamp(92px, 28vw, 118px) !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block;
    }

    .logo img {
        width: clamp(124px, 42vw, 160px) !important;
        max-width: clamp(124px, 42vw, 160px) !important;
        max-height: 72px !important;
        height: auto !important;
    }

    .main-content {
        padding: 1rem 0.9rem 1.3rem !important;
    }

    .home-banner {
        min-height: 210px !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 10px;
    }

    .banner-text {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        max-width: none !important;
        padding: 0.9rem 1rem !important;
    }

    .banner-text h2 {
        font-size: 1.08rem !important;
        margin-bottom: 0.45rem !important;
    }

    .banner-text p {
        font-size: 0.9rem !important;
        margin-bottom: 0.65rem !important;
    }

    .product-grid,
    #featured-products-grid.product-grid,
    #related-products-grid.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        padding: 0 !important;
    }

    .product-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 14px;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        position: relative;
    }

    .product-image {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
        border-radius: 14px !important;
        border: 1px solid #e7d5be !important;
        box-shadow: 0 2px 10px rgba(139, 69, 19, 0.12) !important;
        position: relative;
    }

    a.product-image {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
    }

    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }

    .product-info {
        padding: 0.5rem 0.1rem 0 !important;
        align-items: flex-start !important;
        width: 100%;
    }

    .product-price {
        margin-top: 0.25rem;
    }

    .product-actions {
        position: absolute !important;
        right: 8px;
        bottom: 8px;
        margin: 0 !important;
        z-index: 3;
        display: block !important;
    }

    .buy-now-btn {
        display: none !important;
    }

    .add-to-cart-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 10px !important;
        background: #f08b74 !important;
        border: 0 !important;
        box-shadow: 0 4px 10px rgba(240, 139, 116, 0.35) !important;
        color: transparent !important;
        font-size: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        gap: 0 !important;
    }

    .add-to-cart-btn i {
        display: none !important;
    }

    .add-to-cart-btn::before {
        content: "\f07a";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 16px;
        color: #fff;
        line-height: 1;
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        transform: translateZ(0);
    }

    /* 商品詳情頁：移動端將購物車/收藏分置左下與右下 */
    .product-detail-container .product-actions {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        margin: 0.65rem 0 0 !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .product-detail-container .buy-now-btn {
        display: none !important;
    }

    .product-detail-container .add-to-cart-btn,
    .product-detail-container .favorite-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 0 !important;
        line-height: 1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .product-detail-container .favorite-btn {
        background: #fff !important;
        border: 1px solid #c78e52 !important;
        color: transparent !important;
        margin-left: auto;
    }

    .product-detail-container .favorite-btn i {
        font-size: 16px !important;
        color: #c06a31;
        margin: 0 !important;
    }

    .product-detail-container .favorite-btn.active i {
        color: #fff;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .oem-intro,
    .pt-cap-content {
        grid-template-columns: 1fr !important;
        padding: 1.15rem !important;
        gap: 1rem !important;
    }

    .oem-services,
    .pt-cap-service,
    .oem-contact {
        padding: 1.15rem !important;
        border-radius: 10px;
    }

    .member-center-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .member-sidebar {
        display: none !important;
    }

    .member-sidebar h2,
    .member-menu,
    .member-menu-item,
    .member-menu-link {
        display: none !important;
    }

    .member-content {
        padding: 1rem !important;
    }

    .member-info-row {
        grid-template-columns: 1fr !important;
        gap: 0.45rem !important;
    }

    .form-row {
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .form-group {
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .mobile-quick-nav {
        height: 54px;
    }

    body.mobile-quick-float-visible .mobile-quick-float {
        height: 54px;
        padding-top: 5px;
    }

    .mobile-quick-float__item {
        width: 42px;
        height: 42px;
    }

    .mobile-nav-drawer {
        top: 54px;
        height: calc(100dvh - 54px);
    }

    .mobile-quick-nav__icon {
        font-size: 19px;
    }

    .mobile-quick-nav__label {
        font-size: 9px;
    }

    .navbar .container {
        min-height: 88px !important;
    }

    .navbar-brand {
        width: clamp(86px, 30vw, 104px) !important;
        min-width: clamp(86px, 30vw, 104px) !important;
        max-width: clamp(86px, 30vw, 104px) !important;
    }

    .navbar-brand img {
        width: clamp(86px, 30vw, 104px) !important;
        height: clamp(86px, 30vw, 104px) !important;
        max-width: none !important;
        max-height: none !important;
    }

    .logo img {
        width: clamp(114px, 46vw, 146px) !important;
        max-width: clamp(114px, 46vw, 146px) !important;
        max-height: 64px !important;
    }

    .home-banner {
        min-height: 185px !important;
    }

    .banner-text {
        padding: 0.75rem 0.85rem !important;
    }

    .product-grid,
    #featured-products-grid.product-grid,
    #related-products-grid.product-grid {
        gap: 0.65rem !important;
    }

    .products-content .product-name {
        font-size: 1rem !important;
        height: auto !important;
        min-height: 1.5rem;
        line-height: 1.3;
    }

    .add-to-cart-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
}

/* 僅移動端：購物車頁「繼續購物推薦」加購按鈕圖示置中（不影響桌面） */
@media (max-width: 768px) {
    #related-products-section .product-actions {
        right: 8px !important;
        bottom: 8px !important;
    }

    #related-products-section .add-to-cart-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 1 !important;
        font-size: 0 !important;
        gap: 0 !important;
        overflow: hidden;
    }

    #related-products-section .add-to-cart-btn::before {
        content: none !important;
    }

    #related-products-section .add-to-cart-btn i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 16px !important;
        height: 16px !important;
        line-height: 1 !important;
        font-size: 16px !important;
        color: #fff !important;
    }
}

@media (max-width: 768px) {
    body.viewport-mobile {
        padding-top: 0 !important;
    }

    body.viewport-mobile.mobile-header-collapsed {
        padding-top: 0 !important;
    }

    body.viewport-mobile .main-content {
        padding-top: 0 !important;
    }

    .mobile-header-shell {
        position: relative;
        z-index: 1400;
    }

    .mobile-header-expanded {
        display: block;
    }

    .mobile-header-expanded__bar {
        position: sticky;
        top: 0;
        z-index: 1402;
    }

    .mobile-header-brand {
        position: relative;
        z-index: 1;
    }

    .mobile-header-collapsed {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        z-index: 1403;
        display: none;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-expanded__bar {
        visibility: hidden;
        pointer-events: none;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-collapsed {
        display: flex;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-brand {
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    body.viewport-mobile {
        --mobile-header-expanded-height: 176px;
        --mobile-header-collapsed-height: 56px;
        padding-top: var(--mobile-header-expanded-height);
    }

    body.viewport-mobile.mobile-header-collapsed {
        /* keep padding-top at expanded height to avoid layout/scroll jumps on quick scroll */
    }

    body.viewport-mobile .top-bar,
    body.viewport-mobile .navbar {
        display: none !important;
    }

    body.viewport-mobile .main-content {
        padding-top: 0 !important;
    }

    .mobile-header-shell {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1400;
        background: #fff;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    }

    .mobile-header-shell,
    .mobile-header-shell * {
        box-sizing: border-box;
    }

    .mobile-header-expanded {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mobile-header-expanded__bar {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 56px;
        background: #97a1a0;
        color: #fff;
    }

    .mobile-header-expanded__item {
        appearance: none;
        border: 0;
        background: transparent;
        color: #fff;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 56px;
        padding: 6px 2px 4px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .mobile-header-expanded__item.is-active {
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-header-expanded__item .mobile-quick-nav__icon {
        position: relative;
        font-size: 20px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 20px;
    }

    .mobile-header-expanded__item .mobile-quick-nav__badge {
        position: absolute;
        top: -7px;
        right: -10px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff7a59;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    }

    .mobile-header-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 10px 12px 14px;
        background: #fff;
        text-align: center;
        text-decoration: none;
        color: #111;
    }

    .mobile-header-brand__logo {
        width: 116px;
        max-width: 40vw;
        height: auto;
        display: block;
    }

    .mobile-header-brand__name {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0.02em;
    }

    .mobile-header-brand__slogan {
        font-size: 13px;
        line-height: 1.2;
    }

    .mobile-header-collapsed {
        display: none;
        align-items: center;
        justify-content: space-between;
        position: relative;
        min-height: 56px;
        padding: 0 12px;
        background: #fff;
        border-bottom: 1px solid #e7e7e7;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-expanded {
        display: none;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-collapsed {
        display: flex;
    }

    .mobile-header-collapsed__menu {
        appearance: none;
        border: 0;
        background: transparent;
        color: #2d2d2d;
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .mobile-header-collapsed__menu .mobile-quick-nav__icon {
        position: relative;
        font-size: 26px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-header-collapsed__menu .mobile-quick-nav__label {
        display: none;
    }

    .mobile-header-collapsed__brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: #111;
        text-align: center;
        max-width: 62%;
        pointer-events: auto;
    }

    .mobile-header-collapsed__title {
        font-size: 28px;
        line-height: 1.05;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .mobile-header-collapsed__slogan {
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .mobile-header-collapsed__cart {
        appearance: none;
        border: 1px solid #b9b9b9;
        border-radius: 6px;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #2d2d2d;
        background: #fff;
        flex: 0 0 auto;
        position: relative;
    }

    .mobile-header-collapsed__cart .mobile-quick-nav__icon {
        position: relative;
        font-size: 22px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-header-collapsed__cart .mobile-quick-nav__label {
        display: none;
    }

    .mobile-header-collapsed__cart .mobile-quick-nav__badge {
        display: flex;
        position: absolute;
        top: -8px;
        right: -8px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff7a59;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    }

    .mobile-nav-drawer,
    .mobile-nav-drawer-backdrop,
    .mobile-nav-search-panel {
        z-index: 1500;
    }
}

@media (max-width: 768px) {
    body.viewport-mobile,
    body.viewport-mobile.mobile-header-collapsed {
        padding-top: 56px !important;
    }

    .mobile-header-shell {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 176px !important;
        z-index: 1400 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .mobile-header-expanded {
        display: flex !important;
        flex-direction: column !important;
        height: 176px !important;
        background: #fff !important;
    }

    .mobile-header-expanded__bar {
        position: relative !important;
        width: 100% !important;
        min-height: 56px !important;
        flex: 0 0 56px !important;
    }

    .mobile-header-brand {
        flex: 1 1 auto !important;
        min-height: 120px !important;
        justify-content: center !important;
        background: #fff !important;
    }

    .mobile-header-collapsed {
        display: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        background: #fff !important;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-expanded__bar,
    body.viewport-mobile.mobile-header-collapsed .mobile-header-brand {
        opacity: 0 !important;
        transform: translateY(-120px) !important;
        pointer-events: none !important;
    }

    body.viewport-mobile.mobile-header-collapsed .mobile-header-collapsed {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    body.viewport-mobile .main-content {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    body.viewport-mobile.mobile-header-collapsed {
        /* Keep the body offset identical to the fixed icon bar to prevent scroll jumps. */
        padding-top: 56px !important;
    }

    /* Mobile product-list template. This is scoped to products.html and does not change desktop pages. */
        body.products-page .mobile-brand-banner {
            display: none !important;
        }

        body.products-page .mobile-header-shell,
        body.products-page .mobile-header-shell .mobile-header-expanded__bar {
            height: 66px !important;
        }

        body.products-page .mobile-header-expanded__bar {
            display: block !important;
            position: relative;
            background: #fff !important;
            color: #1f1f1f !important;
            border-bottom: 1px solid #ececec;
        }

        body.products-page .mobile-header-expanded__bar::before {
            content: "";
            white-space: pre;
            position: absolute;
            left: 50%;
            top: 7px;
            transform: translateX(-50%);
            color: #1f1f1f;
            font-size: 22px;
            font-weight: 700;
            line-height: 1.08;
            letter-spacing: 0.04em;
            text-align: center;
            pointer-events: none;
        }

        body.products-page .mobile-header-expanded__bar::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 43px;
            width: 82px;
            height: 1px;
            transform: translateX(-50%);
            background: #d6d6d6;
        }

        body.products-page .mobile-header-expanded__item {
            position: absolute;
            top: 0;
            z-index: 1;
            width: 48px;
            min-height: 66px;
            padding: 0;
            color: #657777 !important;
        }

        body.products-page .mobile-header-expanded__item:nth-child(1) {
            left: 0;
        }

        body.products-page .mobile-header-expanded__item:nth-child(2),
        body.products-page .mobile-header-expanded__item:nth-child(4) {
            display: none !important;
        }

        body.products-page .mobile-header-expanded__item:nth-child(3) {
            right: 42px;
        }

        body.products-page .mobile-header-expanded__item:nth-child(5) {
            right: 0;
        }

        body.products-page .mobile-header-expanded__item .mobile-quick-nav__label {
            display: none;
        }

        body.products-page .mobile-header-expanded__item .mobile-quick-nav__icon {
            font-size: 24px;
        }

        body.products-page .main-content {
            max-width: none;
            padding: 0 10px 5.2rem !important;
        }

        body.products-page .breadcrumb,
        body.products-page .page-header,
        body.products-page .products-sidebar,
        body.products-page .sort-by,
        body.products-page .item-count {
            display: none !important;
        }

        body.products-page .products-layout,
        body.products-page .products-content {
            display: block;
            width: 100%;
        }

        body.products-page .sorting.products-sorting {
            display: block;
            margin: 0 -10px 12px;
            padding: 0;
            border: 0;
            background: #fff;
        }

        body.products-page .mobile-product-sort-tabs {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            height: 42px;
            border-bottom: 1px solid #e5e5e5;
        }

        body.products-page .mobile-product-sort-tabs button {
            position: relative;
            border: 0;
            background: #fff;
            color: #a5acad;
            font-size: 15px;
            white-space: nowrap;
        }

        body.products-page .mobile-product-sort-tabs button.is-active {
            color: #526967;
            font-weight: 700;
        }

        body.products-page .mobile-product-sort-tabs button.is-active::after {
            content: "";
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: -1px;
            height: 3px;
            background: #657d78;
        }

        body.products-page .product-grid {
            gap: 18px 12px !important;
            margin-bottom: 1.2rem;
        }

        body.products-page .product-card {
            border-radius: 0;
            overflow: visible;
        }

        body.products-page .product-image,
        body.products-page a.product-image {
            border: 3px solid #f5c7ad !important;
            border-radius: 16px !important;
            box-shadow: none !important;
            background: #fff;
        }

        body.products-page .product-image img {
            border-radius: 12px !important;
        }

        body.products-page .product-info {
            padding: 8px 2px 0 !important;
        }

        body.products-page .product-name {
            min-height: 2.6em !important;
            margin: 0 !important;
            color: #303030;
            font-size: 15px !important;
            font-weight: 500;
            line-height: 1.3 !important;
        }

        body.products-page .product-price {
            min-height: 42px;
            margin: 4px 0 0 !important;
            align-items: flex-end;
            gap: 0;
        }

        body.products-page .original-price {
            font-size: 12px;
            line-height: 1.2;
        }

        body.products-page .special-price {
            font-size: 18px;
            line-height: 1.25;
        }

        body.products-page .product-actions {
            top: calc((100vw - 32px) / 2 - 42px);
            right: 8px;
            bottom: auto;
        }

        body.products-page .add-to-cart-btn {
            width: 36px;
            height: 36px;
            min-width: 36px;
            padding: 0;
            border: 0;
            border-radius: 4px;
            background: #f27d72;
            color: transparent;
            font-size: 0;
            box-shadow: none;
        }

        body.products-page .add-to-cart-btn::before {
            content: "\f07a";
            color: #fff;
            font-family: "Font Awesome 6 Free";
            font-size: 18px;
            font-weight: 900;
        }
    .mobile-header-shell {
        height: 56px !important;
        background: #fff !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
    }

    .mobile-header-shell .mobile-header-expanded__bar {
        min-height: 56px !important;
        height: 56px !important;
    }

    .mobile-brand-banner {
        display: block;
        padding: 16px 0 8px;
        background: #fff;
    }

    .mobile-brand-banner .mobile-header-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: #111;
        text-align: center;
    }

    .mobile-brand-banner .mobile-header-brand__logo {
        width: 116px;
        max-width: 40vw;
        height: auto;
        display: block;
    }

    .mobile-brand-banner .mobile-header-brand__name {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.1;
    }

    .mobile-brand-banner .mobile-header-brand__slogan {
        font-size: 13px;
        line-height: 1.2;
    }

    .mobile-header-collapsed,
    .mobile-header-shell.is-collapsed .mobile-header-expanded__bar,
    .mobile-header-shell.is-collapsed .mobile-brand-banner {
        /* Hide visually using transform/opacity to avoid reflow and white flash on fast scroll */
        opacity: 0 !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
        transition: transform 180ms ease, opacity 180ms ease;
        will-change: transform, opacity;
    }
}

/* Shared mobile header template: matches the compact storefront header across all front-end pages. */
@media (max-width: 768px) {
    body.viewport-mobile.mobile-quick-nav-enabled {
        padding-top: 66px !important;
    }

    .mobile-brand-banner {
        display: none !important;
    }

    .mobile-header-shell,
    .mobile-header-shell .mobile-header-expanded__bar {
        height: 66px !important;
    }

    .mobile-header-expanded__bar {
        display: block !important;
        position: relative;
        background: #fff !important;
        color: #1f1f1f !important;
        border-bottom: 1px solid #ececec;
    }

    .mobile-header-expanded__bar::before {
        content: "";
        white-space: pre;
        position: absolute;
        left: 50%;
        top: 7px;
        transform: translateX(-50%);
        color: #1f1f1f;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: 0.04em;
        text-align: center;
        pointer-events: none;
    }

    .mobile-header-expanded__bar::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 43px;
        width: 82px;
        height: 1px;
        transform: translateX(-50%);
        background: #d6d6d6;
    }

    .mobile-header-expanded__item {
        position: absolute;
        top: 0;
        z-index: 1;
        width: 48px;
        min-height: 66px;
        padding: 0;
        color: #657777 !important;
    }

    .mobile-header-expanded__item:nth-child(1) {
        left: 0;
    }

    .mobile-header-expanded__item:nth-child(2),
    .mobile-header-expanded__item:nth-child(4) {
        display: none !important;
    }

    .mobile-header-expanded__item:nth-child(3) {
        right: 42px;
    }

    .mobile-header-expanded__item:nth-child(5) {
        right: 0;
    }

    .mobile-header-expanded__item .mobile-quick-nav__label {
        display: none;
    }

    .mobile-header-expanded__item .mobile-quick-nav__icon {
        font-size: 24px;
    }
}

/* Final mobile scroll-state overrides. These only change visual positioning, never document height. */
@media (max-width: 768px) {
    body.viewport-mobile.mobile-quick-nav-enabled {
        padding-top: 56px !important;
    }

    .mobile-header-shell,
    .mobile-header-shell .mobile-header-expanded__bar,
    body.products-page .mobile-header-shell,
    body.products-page .mobile-header-shell .mobile-header-expanded__bar {
        height: 56px !important;
    }

    .mobile-header-expanded__bar,
    body.products-page .mobile-header-expanded__bar {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        background: #97a1a0 !important;
        color: #fff !important;
        border: 0;
        transition: transform 180ms ease, opacity 180ms ease;
        will-change: transform, opacity;
    }

    .mobile-header-expanded__bar::before,
    .mobile-header-expanded__bar::after,
    body.products-page .mobile-header-expanded__bar::before,
    body.products-page .mobile-header-expanded__bar::after {
        content: none;
    }

    .mobile-header-expanded__item,
    body.products-page .mobile-header-expanded__item {
        position: static;
        width: auto;
        min-height: 56px;
        padding: 6px 2px 4px;
        color: #fff !important;
    }

    .mobile-header-expanded__item:nth-child(2),
    .mobile-header-expanded__item:nth-child(4),
    body.products-page .mobile-header-expanded__item:nth-child(2),
    body.products-page .mobile-header-expanded__item:nth-child(4) {
        display: flex !important;
    }

    .mobile-header-expanded__item .mobile-quick-nav__label,
    body.products-page .mobile-header-expanded__item .mobile-quick-nav__label {
        display: block;
    }

    .mobile-brand-banner {
        display: block !important;
    }

    .mobile-header-compact {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1405;
        height: 60px;
        background: transparent;
        opacity: 1;
        pointer-events: none;
    }

    .mobile-header-compact__menu,
    .mobile-header-compact__cart {
        position: absolute;
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        color: #5d6665;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        pointer-events: auto;
    }

    .mobile-header-compact__menu {
        left: 0;
        top: 0;
    }

    .mobile-header-compact__cart {
        top: 10px;
        right: 10px;
        border: 1px solid #7f8e8c;
        border-radius: 3px;
        background: #fff;
        color: #62716f;
        font-size: 23px;
    }

    .mobile-header-compact__cart .mobile-quick-nav__badge {
        top: -10px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #ef7169;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 12px;
    }

    .mobile-header-expanded__bar {
        transform: translateY(0);
        transition: transform 180ms ease;
    }

    .mobile-header-compact {
        transform: translateY(-100%);
        transition: transform 180ms ease;
    }

    body.viewport-mobile.mobile-header-compact-active .mobile-header-expanded__bar {
        transform: translateY(-100%);
    }

    body.viewport-mobile.mobile-header-compact-active .mobile-header-shell {
        background: transparent !important;
        box-shadow: none !important;
    }

    body.viewport-mobile.mobile-header-compact-active .mobile-header-compact {
        transform: translateY(0);
    }

    #mobile-header-scroll-sentinel {
        position: absolute;
        top: 56px;
        width: 1px;
        height: 1px;
        pointer-events: none;
    }

    body.viewport-mobile .main-content,
    body.viewport-mobile .featured-products .container,
    body.viewport-mobile .brand-story,
    body.viewport-mobile .footer-container {
        margin-left: auto;
        margin-right: auto;
    }

    body.viewport-mobile .featured-products,
    body.viewport-mobile .featured-products h2,
    body.viewport-mobile .view-more,
    body.viewport-mobile .brand-story,
    body.viewport-mobile .story-content,
    body.viewport-mobile .footer-section,
    body.viewport-mobile .footer-bottom {
        text-align: center;
    }

    body.viewport-mobile .featured-products .product-grid {
        justify-content: center;
    }

    body.viewport-mobile .footer-links {
        padding-left: 0;
        list-style-position: inside;
    }

}

/* 會員中心：桌面端隱藏移動版側邊欄控制元件 */
.member-mobile-toggle,
.member-sidebar-backdrop {
    display: none;
}

/* 會員中心：768~992px 之間側邊欄也改為抽屜式，避免占滿全寬 */
@media (max-width: 992px) and (min-width: 769px) {
    .member-mobile-toggle {
        display: flex !important;
    }

    .member-sidebar-backdrop {
        display: block !important;
    }

    .member-center-container {
        grid-template-columns: 1fr !important;
    }

    .member-sidebar {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        z-index: 2210;
        padding: 1rem 0 5.5rem;
        transform: translateX(-110%);
        transition: transform 0.22s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .member-sidebar.is-open {
        transform: translateX(0);
    }

    body.member-sidebar-open {
        overflow: hidden;
    }
}
