/* ==========================================================================
   Swiper Banner Styles (Modern & Responsive)
   ========================================================================== */
.mySwiperBanner {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    min-height: 120px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    box-shadow: none;
}

.mySwiperBanner .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    overflow: hidden;
}

.mySwiperBanner .swiper-wrapper,
.mySwiperBanner .swiper-slide a {
    height: auto;
}

.mySwiperBanner .swiper-slide a {
    width: 100%;
}

.mySwiperBanner .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.mySwiperBanner .swiper-pagination {
    bottom: 8px;
}

/* ç§»åŠ¨ç«¯å“åº”å¼é€‚é… */
@media (max-width: 768px) {
    .mySwiperBanner {
        aspect-ratio: 21 / 9;
        height: auto;
        max-height: none;
        border-radius: 0;
    }
    .mySwiperBanner .swiper-slide img {
        border-radius: 0;
        height: 100%;
        object-fit: cover;
    }
}

/* Banner éª¨æž¶å±å ä½ç¬¦ */
.banner-skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   è·‘é©¬ç¯å…¬å‘Šæ  (Marquee) æ ·å¼
   ========================================================================== */
.notice-bar {
    background: #fff3cd; /* æµ…é»„è‰²èƒŒæ™¯ */
    border-bottom: 1px solid #ffeeba;
    color: #856404; /* æ·±é»„è‰²æ–‡å­— */
    overflow: hidden; /* éšè—æ»šåŠ¨åˆ°å¤–é¢çš„æ–‡å­— */
    white-space: nowrap; /* å¼ºåˆ¶æ–‡å­—ä¸æ¢è¡Œ */
    width: 100%; /* æ’‘æ»¡å±å¹•å®½åº¦ */
    position: relative;
    z-index: 99; /* ç¡®ä¿åœ¨å¯¼èˆªæ ä¸‹æ–¹æ»šåŠ¨ */
}

/* æ»šåŠ¨çš„è½¨é“å®¹å™¨ */
.notice-track {
    display: inline-flex;
    align-items: center;
    gap: 48px; /* æ¯ä¸ªå…¬å‘Šä¹‹é—´çš„é—´è· */
    padding: 10px 0; /* ä¸Šä¸‹å†…è¾¹è·ï¼ŒæŽ§åˆ¶è·‘é©¬ç¯çš„é«˜åº¦ */
    min-width: max-content;
    /* åŠ¨ç”»åç§°ã€æŒç»­æ—¶é—´ã€åŒ€é€Ÿã€æ— é™å¾ªçŽ¯ */
    animation: noticeScroll 18s linear infinite; 
}

/* é¼ æ ‡æ‚¬åœæ—¶æš‚åœæ»šåŠ¨ */
.notice-bar:hover .notice-track {
    animation-play-state: paused;
}

/* å…¬å‘Šæ–‡å­—æ ·å¼ */
.notice-track span { 
    font-size: 13px; 
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* æ»šåŠ¨åŠ¨ç”»å…³é”®å¸§ï¼šä»Žæœ€å³ä¾§è¿›ï¼Œä»Žæœ€å·¦ä¾§å‡º */
@keyframes noticeScroll {
    0% { transform: translateX(100vw); } /* ä»Žå±å¹•æœ€å³ä¾§å¼€å§‹ */
    100% { transform: translateX(-100%); } /* æ»šåŠ¨åˆ°è‡ªèº«å®½åº¦å®Œå…¨æ¶ˆå¤±åœ¨å·¦ä¾§ */
}

/* ç§»åŠ¨ç«¯è°ƒæ•´æ»šåŠ¨é€Ÿåº¦å’Œå­—å· */
@media (max-width: 768px) {
    .notice-track {
        padding: 8px 0;
        animation-duration: 15s; /* æ‰‹æœºå±å¹•å°ï¼Œç¨å¾®å¿«ä¸€ç‚¹ç‚¹ */
    }
    .notice-track span {
        font-size: 12px;
    }
}

/* ==========================================================================
   PWA Installation Components Styles
   ========================================================================== */
/* èƒŒæ™¯é®ç½©å±‚ */
.pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-overlay.show {
    display: block;
    opacity: 1;
}

/* å±…ä¸­å¼¹çª— */
.pwa-install-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%;
    max-width: 340px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
    flex-direction: column;
    border-radius: 20px;
    opacity: 0;
}

.pwa-install-banner.show {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pwa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.pwa-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    object-fit: cover;
}

.pwa-title-group {
    display: flex;
    flex-direction: column;
}

.pwa-title {
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
}

.pwa-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.pwa-close {
    background: var(--bg-body);
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-close:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* Android æŒ‰é’®æ ·å¼ */
.pwa-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
    transition: transform 0.1s;
}

.pwa-btn:active {
    transform: scale(0.96);
}

/* iOS æ­¥éª¤åˆ—è¡¨æ ·å¼ */
.ios-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-body);
    border-radius: 8px;
    padding: 10px;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed var(--border-color);
}

.ios-step:last-child {
    border-bottom: none;
}

.step-num {
    background: #2e7d32;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    line-height: 1.4;
}

.ios-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    margin: 0 2px;
    color: var(--text-secondary);
    font-size: 14px;
    vertical-align: middle;
}

/* PWA åŠ è½½åŠ¨ç”»é®ç½©å±‚ */
.pwa-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-loading-overlay.show {
    display: flex;
    opacity: 1;
}

.pwa-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(46, 125, 50, 0.2);
    border-top-color: #2e7d32;
    border-radius: 50%;
    animation: pwa-spin 1s linear infinite;
    margin-bottom: 15px;
    display: none; /* Hide old spinner */
}

.pwa-progress-container {
    width: 80%;
    max-width: 200px;
    margin-bottom: 15px;
}

.pwa-progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(46, 125, 50, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pwa-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2e7d32;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.pwa-progress-text {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

@keyframes pwa-spin {
    to { transform: rotate(360deg); }
}

.pwa-loading-text {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
}

/* PWA å®‰è£…æˆåŠŸå¼¹çª— */
.pwa-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%;
    max-width: 300px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-success-modal.show {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pwa-success-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pwa-success-icon i {
    font-size: 36px;
    color: #2e7d32;
}

.pwa-success-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pwa-success-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.pwa-success-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.pwa-success-btn:hover {
    background: #1b5e20;
}

        @keyframes shimmer-gold {
            0% { background-position: -100% center; }
            100% { background-position: 200% center; }
        }
        
        .golden-shimmer-text {
            background: linear-gradient(
                to right,
                #d4af37 0%,
                #fcf6ba 50%,
                #d4af37 100%
            );
            color: #d4af37; /* Fallback */
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-body);
            color: var(--text-primary);
            line-height: 1.5;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* å¤´éƒ¨å¯¼èˆª */
        .header {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

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

        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .search {
            flex: 1;
            max-width: 420px;
            height: 40px;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 20px;
            background: rgba(255, 255, 255, 0.86);
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid rgba(94, 124, 105, 0.12);
            min-width: 0;
            transition: all 0.3s ease;
        }

        .search:focus-within {
            border-color: var(--color-primary, #2e7d32);
            box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
        }

        .search input {
            width: 100%;
            border: none;
            outline: none;
            background: transparent;
            color: var(--text-primary, #1f2721);
            min-width: 0;
            font-size: 14px;
        }

        .search i.bx-search {
            font-size: 20px;
            color: var(--text-muted, #5e7c69);
        }

        .header-search-submit-btn {
            background: var(--color-primary, #2e7d32);
            color: white;
            border: none;
            padding: 4px 12px;
            border-radius: 16px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            margin-right: -6px;
            white-space: nowrap;
        }

        .hamburger-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .hamburger-btn:hover {
            background: var(--bg-body);
            color: #2e7d32;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 600;
            color: #2e7d32;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-link:hover,
        .nav-link.active {
            color: #2e7d32;
        }

        @media (max-width: 1024px) {
            .search {
                margin: 0 10px;
            }
        }

        @media (max-width: 640px) {
            .nav {
                flex-wrap: nowrap;
                padding-bottom: 0;
                justify-content: space-between;
            }
            
            .nav-left .logo {
                display: none;
            }

            .search {
                order: unset;
                flex: 1;
                max-width: none;
                margin: 0 10px;
                height: 36px;
            }
            
            .language-switcher {
                margin-left: 0;
            }
        }

        .cart-icon {
            position: relative;
            background: none;
            padding: 0;
            border-radius: 0;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-svg {
             width: 28px;
             height: 28px;
             fill: none;
             stroke: #2e7d32; /* æ·±ç»¿è‰² */
             stroke-width: 2;
             stroke-linecap: round;
             stroke-linejoin: round;
         }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #dc3545;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* éšè—è´­ç‰©è½¦è®¡æ•°ä¸º0æ—¶çš„æ˜¾ç¤º */
        .cart-count[data-count="0"],
        .cart-count:empty {
            display: none !important;
        }

        /* æ¸¸å®¢æ¨¡å¼æç¤ºæ¨ªå¹…æ ·å¼ */
        .guest-banner {
            background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 10px rgba(46, 125, 50, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            animation: slideDown 0.5s ease-out;
        }

        .guest-banner-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .guest-banner-text {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
        }

        .guest-banner-icon {
            font-size: 1.5rem;
            animation: bounce 2s infinite;
        }

        .guest-banner-message {
            font-size: 0.95rem;
            font-weight: 500;
            line-height: 1.4;
        }

        .guest-banner-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .guest-login-btn {
            background: var(--bg-card);
            color: #2e7d32;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .guest-login-btn:hover {
            background: var(--bg-body);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .guest-close-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .guest-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        /* åŠ¨ç”»æ•ˆæžœ */
        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-3px);
            }
            60% {
                transform: translateY(-2px);
            }
        }

        /* å“åº”å¼è®¾è®¡ */
        @media (max-width: 768px) {
            .guest-banner {
                padding: 0.75rem 0;
            }

            .guest-banner-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .guest-banner-text {
                gap: 0.5rem;
            }

            .guest-banner-message {
                font-size: 0.875rem;
            }

            .guest-banner-actions {
                align-self: stretch;
                justify-content: space-between;
            }

            .guest-login-btn {
                flex: 1;
                padding: 0.75rem 1rem;
            }
        }

        /* è¯­è¨€åˆ‡æ¢å™¨æ ·å¼ */
        .language-switcher {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 10px;
        }

        .lang-btn {
            background: #2e7d32;
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            padding: 0;
            border-radius: 50%;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
        }

        .lang-btn:hover {
            background: #1b5e20;
            transform: translateY(-1px);
        }

        .lang-btn:active {
            transform: translateY(0);
        }

        /* ä¾§è¾¹æ  */
        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100dvh;
            max-height: 100dvh;
            background: var(--bg-card);
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            transition: left 0.3s ease;
            z-index: 1100;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .sidebar.open {
            left: 0;
        }

        .sidebar-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        }

        .sidebar-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #2e7d32;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0.25rem;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .close-btn:hover {
            background: var(--bg-body);
            color: #dc3545;
        }

        .sidebar-nav {
            padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
            flex: 1;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            padding: 0.75rem 1.5rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
        }

        .sidebar-item:hover {
            background: var(--bg-body);
            color: #2e7d32;
        }

        .sidebar-item.active {
            background: #e8f5e9;
            color: #2e7d32;
            border-right: 3px solid #2e7d32;
        }

        .sidebar-item.logout {
            color: #dc3545;
            border-top: 1px solid var(--border-color);
            margin-top: 1rem;
        }

        .sidebar-item.logout:hover {
            background: #f8d7da;
            color: #721c24;
        }

        .sidebar-icon {
            margin-right: 0.75rem;
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }

        .sidebar-arrow {
            margin-left: auto;
            transition: transform 0.3s;
        }

        .sidebar-user-info {
            padding: 15px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 10px;
        }

        #sidebarUserAvatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 10px;
            border: 2px solid #2e7d32;
            display: inline-block;
        }

        #sidebarUserName {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 1.1rem;
        }

        .sidebar-arrow.rotate {
            transform: rotate(180deg);
        }

        .sidebar-submenu {
            display: none;
            background: var(--bg-body);
            transition: all 0.3s ease;
        }

        .sidebar-submenu.is-open {
            display: block;
        }

        .sidebar-subitem {
            display: flex;
            align-items: center;
            padding: 10px 15px 10px 48px; /* ç¼©è¿›ä»¥åŒºåˆ†å±‚çº§ */
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .sidebar-subitem:hover {
            color: #2e7d32;
            background: var(--bg-hover);
        }

        .sidebar-subitem.active {
            color: #2e7d32;
            font-weight: 600;
            background: #e8f5e9;
            border-right: 3px solid #2e7d32;
        }

        /* é®ç½©å±‚ */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
            z-index: 1099;
        }
        
        .sidebar-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* ä¸»å†…å®¹åŒºåŸŸè°ƒæ•´ */
        .main {
            padding: 2rem 0;
            transition: margin-left 0.3s ease;
        }

        /* ä¸»è¦å†…å®¹åŒºåŸŸ */
        .main {
            padding: 2rem 0;
        }

        .page {
            display: none !important;
        }

        .page.active {
            display: block !important;
        }

        /* æœç´¢æ  */
        .search-bar {
            background: var(--bg-card);
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 1rem;
        }

        .search-input:focus {
            outline: none;
            border-color: #2e7d32;
            box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
        }

        /* è¿‡æ»¤æŒ‰é’® */
        .filters {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }

        .filter-btn {
            padding: 5px 12px;
            border: 2px solid var(--border-color);
            background: var(--bg-card);
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s;
            color: var(--text-secondary);
        }

        .filter-btn:hover {
            border-color: #2e7d32;
            color: #2e7d32;
        }

        .filter-btn.active {
            background: #2e7d32;
            border-color: #2e7d32;
            color: white;
        }

        .filter-btn.all {
            background: #1b5e20;
            border-color: #1b5e20;
            color: white;
        }

        .filter-btn.all:hover {
            background: #2e7d32;
            border-color: #2e7d32;
        }

        /* äº§å“ç½‘æ ¼ */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
        }

        .product-card {
            background: var(--bg-card);
            border-radius: 4px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
            border: none;
            box-shadow: none;
        }

        @media (hover: hover) and (pointer: fine) {
            .product-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            }
        }

        .product-card:focus {
            outline: none;
        }

        .product-image-container {
            position: relative;
            width: 100%;
            padding-top: 100%; /* 1:1 Aspect Ratio */
            background: var(--bg-card); /* æ”¹ä¸ºç™½è‰²èƒŒæ™¯ï¼Œé…åˆ contain æ¨¡å¼ */
            overflow: hidden;
        }

        .product-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain; /* æ”¹ä¸º contain ä»¥å®Œæ•´æ˜¾ç¤º */
            padding: 4px; /* æ·»åŠ å°‘è®¸å†…è¾¹è·ï¼Œé¿å…è´´è¾¹ */
        }

        .product-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-body);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--text-muted);
        }

        .product-info {
            padding: 10px;
        }

        .product-name {
            font-size: 14px;
            line-height: 1.4;
            color: var(--text-primary);
            height: 2.8em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            margin-bottom: 8px;
            font-weight: normal;
        }

        .product-price-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 8px;
        }

        .product-price {
            font-size: 16px;
            font-weight: 500;
            color: #ee4d2d; /* Shopee ä»·æ ¼çº¢ */
            margin: 0;
        }

        .price-currency {
            font-size: 12px;
            margin-right: 2px;
        }

        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
             
            .product-info {
                padding: 8px;
            }
        }

        /* è´­ç‰©è½¦æ ·å¼ */
        .cart-item {
            background: var(--bg-card);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.2s ease;
        }
        
        .cart-item:hover {
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        
        .cart-item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--bg-body);
            flex-shrink: 0;
        }
        
        .cart-item-placeholder {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            background: var(--bg-body);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--text-muted);
            flex-shrink: 0;
        }
        
        .cart-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--text-secondary);
        }
        
        .cart-empty i {
            font-size: 4rem;
            margin-bottom: 1rem;
            color: #dee2e6;
        }
        
        /* .cart-total style removed - merged with the definition below */
        
        .cart-total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .cart-total-row:last-child {
            margin-bottom: 0;
            padding-top: 0.5rem;
            border-top: 2px solid var(--border-color);
            font-weight: 700;
            font-size: 1.1rem;
            color: #2e7d32;
        }
        
        /* å¼ºåˆ¶è¦†ç›–ç»“è´¦æŒ‰é’®æ ·å¼ - å•†åŸŽ/ä¸»æ’­æ·±ç»¿è‰²é£Žæ ¼ */
        #cart .checkout-btn,
        #checkout .checkout-btn,
        .checkout-btn {
            background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
            color: white !important;
            border: none !important;
            padding: 10px 24px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin: 0;
            min-width: 120px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 6px rgba(46, 125, 50, 0.2);
        }
        
        #cart .checkout-btn:hover,
        #checkout .checkout-btn:hover,
        .checkout-btn:hover {
            background: linear-gradient(135deg, #1b5e20, #2e7d32) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4) !important;
        }
        
        .checkout-btn:disabled {
            background: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* å¡ç‰‡æ ·å¼ */
        .card {
            background: var(--bg-card);
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        /* 账号页会员总览 */
        .profile-summary-card {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-radius: 24px;
            padding: 20px 18px;
            box-shadow: 0 14px 30px rgba(46, 125, 50, 0.12);
            color: #1f2721;
        }

        .profile-summary-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 20px;
        }

        .profile-avatar-shell {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.72);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
            overflow: hidden;
            flex-shrink: 0;
        }

        .profile-summary-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .profile-summary-identity {
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
        }

        .profile-summary-name {
            font-size: 18px;
            font-weight: 700;
            color: #1f2721;
            word-break: break-word;
        }

        .profile-summary-member-tag {
            min-height: 34px;
            display: flex;
            align-items: center;
            color: #4f6f5c;
            font-size: 14px;
        }

        .profile-summary-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .profile-summary-stat {
            border: none;
            appearance: none;
            background: rgba(255, 255, 255, 0.46);
            border-radius: 18px;
            padding: 14px 10px 12px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            color: inherit;
        }

        .profile-summary-stat:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.62);
            box-shadow: 0 10px 20px rgba(46, 125, 50, 0.12);
        }

        .profile-summary-value {
            font-size: 24px;
            font-weight: 700;
            line-height: 1.1;
            color: #111827;
        }

        .profile-summary-label {
            margin-top: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #3f3f46;
        }

        .profile-order-status-section {
            margin-top: 16px;
        }

        .profile-order-status-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 700;
        }

        .profile-order-status-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .profile-order-status-card {
            border: 1px solid var(--border-color);
            appearance: none;
            background: var(--bg-card);
            border-radius: 18px;
            padding: 18px 12px;
            text-align: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            color: inherit;
        }

        .profile-order-status-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
            border-color: rgba(244, 159, 193, 0.65);
        }

        .profile-order-status-value {
            font-size: 28px;
            font-weight: 700;
            line-height: 1;
            color: #111827;
        }

        .profile-order-status-label {
            margin-top: 8px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .profile-card-hint {
            margin-top: 8px;
            font-size: 11px;
            font-weight: 700;
            color: #2e7d32;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border-radius: 999px;
            line-height: 1;
            border: 1px solid rgba(46, 125, 50, 0.16);
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
        }

        .profile-card-hint::after {
            content: "›";
            font-size: 12px;
            opacity: 0.9;
        }

        .profile-hidden-meta {
            display: none;
        }

        @media (max-width: 640px) {
            .profile-summary-card {
                padding: 18px 14px;
                border-radius: 22px;
            }

            .profile-summary-header {
                gap: 12px;
                margin-bottom: 16px;
            }

            .profile-avatar-shell {
                width: 64px;
                height: 64px;
            }

            .profile-summary-name {
                font-size: 16px;
            }

            .profile-summary-stats,
            .profile-order-status-grid {
                gap: 8px;
            }

            .profile-summary-stat,
            .profile-order-status-card {
                border-radius: 16px;
                padding-left: 8px;
                padding-right: 8px;
            }

            .profile-summary-value {
                font-size: 22px;
            }

            .profile-order-status-value {
                font-size: 24px;
            }

            .profile-summary-label,
            .profile-order-status-label {
                font-size: 13px;
            }

            .profile-card-hint {
                font-size: 10px;
            }
        }

        .cart-item-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .cart-item-name {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-primary);
            margin: 0;
        }
        
        .cart-item-brand {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .cart-item-price {
            color: #2e7d32;
            font-weight: 600;
            font-size: 1rem;
            margin: 0;
        }
        
        .cart-item-unit-price {
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin: 0;
        }

        .cart-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            min-width: 120px;
        }
        
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--bg-body);
            border-radius: 8px;
            padding: 0.25rem;
        }
        
        .quantity-btn {
            background: #2e7d32;
            color: white;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .quantity-btn:hover {
            background: #1b5e20;
            transform: scale(1.05);
        }
        
        .quantity-btn:disabled {
            background: #6c757d;
            cursor: not-allowed;
            transform: none;
        }

        .quantity-input {
            width: 50px;
            padding: 0.5rem 0.25rem;
            text-align: center;
            border: none;
            background: transparent;
            font-weight: 600;
            color: var(--text-primary);
        }

        .remove-btn {
            background: #dc3545;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s;
            min-width: 80px;
        }

        .remove-btn:hover {
            background: #c82333;
            transform: translateY(-1px);
        }

        .cart-total {
            background: var(--bg-card);
            padding: 12px 16px;
            border-radius: 12px 12px 0 0;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 900;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            border-top: 1px solid var(--border-color);
            display: none;
            justify-content: space-between;
            align-items: center;
        }

        .cart-total.is-visible {
            display: flex;
        }

        #cartItems {
            padding-bottom: 100px; /* Adjusted space for compact cart total */
        }

        .total-amount {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2e7d32;
            margin-bottom: 1rem;
        }



        /* ç©ºçŠ¶æ€ */
        .empty-state {
            text-align: center;
            padding: 3rem;
            color: var(--text-secondary);
        }

        .empty-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .empty-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        /* è®¢å•é¡µé¢æ ·å¼ */
        .order-item {
            background: var(--bg-card);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 1px solid var(--border-color);
            transition: all 0.2s ease;
        }
        
        .order-item:hover {
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #f8f9fa;
        }
        
        .order-number {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 1.1rem;
        }
        
        .order-status {
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .status-pending {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }
        
        .status-confirmed {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .status-preparing {
            background: #cce5ff;
            color: #004085;
            border: 1px solid #b3d9ff;
        }
        
        .status-shipped {
            background: #e2e3e5;
            color: #41464b;
            border: 1px solid #d1d3d4;
        }
        
        .status-completed {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .status-cancelled {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .order-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 1rem;
            background: var(--bg-body);
            border-radius: 8px;
        }
        
        .order-meta-item {
            display: flex;
            flex-direction: column;
        }
        
        .order-meta-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 0.25rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .order-meta-value {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 600;
        }
        
        .order-amount {
            color: #2e7d32 !important;
            font-size: 1.1rem !important;
        }
        
        .order-details {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .orders-filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: -1rem 0 1.25rem;
        }

        .orders-filter-chip {
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-secondary);
            border-radius: 999px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .orders-filter-chip:hover {
            border-color: #7ea08b;
            color: #5e7c69;
            transform: translateY(-1px);
        }

        .orders-filter-chip.active {
            background: #2e7d32;
            border-color: #2e7d32;
            color: #fff;
            box-shadow: 0 6px 14px rgba(46, 125, 50, 0.18);
        }
        
        /* æ¨¡æ€æ¡†æ ·å¼ */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: var(--bg-card);
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .modal-header {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h3 {
            margin: 0;
            color: #2e7d32;
        }
        
        .modal-body {
            padding: 1rem;
        }
        
        .close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s;
        }
        
        .close:hover {
            background: var(--bg-body);
            color: #dc3545;
        }

        /* åˆ†é¡µæ ·å¼ */
        .pagination {
            display: none !important;
        }

        .pagination-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }

        .pagination-btn:hover:not(:disabled) {
            background: #2e7d32;
            color: white;
            border-color: #2e7d32;
        }

        .pagination-btn:disabled {
            background: var(--bg-body);
            color: var(--text-secondary);
            cursor: not-allowed;
            border-color: var(--border-color);
        }

        .pagination-info {
            font-weight: 500;
            color: var(--text-secondary);
            min-width: 120px;
            text-align: center;
        }

        /* è´­ç‰©é‡‘åŽ†å²æ ·å¼ */
        .credits-history {
            border: 1px solid var(--border-color);
            padding: 15px;
            border-radius: 8px;
        }

        .credits-history h4 {
            margin: 0 0 15px 0;
            color: var(--text-primary);
        }

        .history-list {
            max-height: 300px;
            overflow-y: auto;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid var(--border-color);
            font-size: 14px;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-operation {
            font-weight: 600;
        }

        .history-operation.recharge {
            color: #2e7d32;
        }

        .history-operation.deduct {
            color: #e74c3c;
        }

        .history-time {
            color: var(--text-secondary);
            font-size: 12px;
        }

        /* å“åº”å¼è®¾è®¡ */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .search-input {
                font-size: 16px; /* é˜²æ­¢iOSç¼©æ”¾ */
            }
            
            .filters {
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            
            .filter-btn {
                flex: 1;
                min-width: 80px;
            }
            
            .product-grid {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                flex-wrap: nowrap;
                padding-bottom: 10px;
                gap: 14px;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .product-grid::-webkit-scrollbar {
                display: none;
            }
            .product-card {
                flex: 0 0 calc(50% - 7px);
                scroll-snap-align: start;
                min-width: 140px;
            }

            /* ===== æ¨ªå‘æ»‘åŠ¨æç¤ºï¼ˆä»…æ‰‹æœºç«¯æ˜¾ç¤ºï¼‰===== */
            .swipe-hint {
                display: inline-flex !important;
                align-items: center;
                gap: 6px;
                font-size: 12px;
                color: var(--text-secondary);
                white-space: nowrap;
                user-select: none;
            }
            .swipe-hint-arrow {
                font-size: 16px;
                line-height: 1;
                opacity: 0.75;
            }

            .swipe-scroll-wrap {
                position: relative;
            }
            
            .cart-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
                padding: 1rem;
            }
            
            .cart-controls {
                width: 100%;
                justify-content: space-between;
            }
            
            /* .cart-total style removed - using global fixed position */
            
            .pagination {
                display: none !important;
            }
            
            /* è®¢å•é¡µé¢æ‰‹æœºç«¯æ ·å¼ */
            .order-item {
                padding: 1.25rem;
                margin-bottom: 1.25rem;
                border-radius: 12px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            }
            
            .order-header {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 1rem;
                padding-bottom: 0.75rem;
            }
            
            .order-number {
                font-size: 1rem;
                font-weight: 700;
            }
            
            .order-status {
                font-size: 10px;
                padding: 4px 8px;
                border-radius: 8px;
                min-width: auto;
                line-height: 1.2;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.3px;
            }
            
            .order-meta {
                grid-template-columns: 1fr;
                gap: 0.75rem;
                padding: 0.75rem;
                margin-bottom: 0.75rem;
            }
            
            .order-meta-item {
                padding: 0.5rem 0;
                border-bottom: 1px solid var(--border-color);
            }
            
            .order-meta-item:last-child {
                border-bottom: none;
            }
            
            .order-meta-label {
                font-size: 0.7rem;
                margin-bottom: 0.25rem;
            }
            
            .order-meta-value {
                font-size: 0.85rem;
            }
            
            .order-amount {
                font-size: 1rem !important;
            }
            
            /* ä¾§è¾¹æ ç§»åŠ¨ç«¯ä¼˜åŒ– */
            .sidebar {
                width: 280px;
            }
            
            .hamburger-btn {
                display: block;
            }
            
            /* ç¡®ä¿ç§»åŠ¨ç«¯è§¦æ‘¸å‹å¥½ */
            .sidebar-item {
                padding: 1rem 1.5rem;
                font-size: 1rem;
            }
            
            .sidebar-icon {
                font-size: 1.2rem;
                margin-right: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 0 0.75rem;
            }
            
            .product-grid {
                grid-template-columns: 1fr 1fr; /* æ¯è¡Œæ˜¾ç¤º2ä¸ªäº§å“ */
                gap: 0.5rem;
            }
            
            .product-card {
                min-width: 0; /* å…è®¸å¡ç‰‡ç¼©å°ä»¥é€‚åº”2åˆ—å¸ƒå±€ */
            }
            
            .product-image {
                height: 160px; /* ç§»åŠ¨ç«¯é€‚å½“å‡å°å›¾ç‰‡é«˜åº¦ */
            }
            
            .product-placeholder {
                height: 160px;
            }
            
            .product-info {
                padding: 0.6rem;
            }
            
            .product-name {
                font-size: 0.8rem;
            }
            
            .product-brand {
                font-size: 0.7rem;
            }
            
            .product-price {
                font-size: 1rem;
            }
            
            .add-to-cart {
                min-height: 36px; /* è§¦æ‘¸å‹å¥½ */
                font-size: 0.75rem;
                padding: 0.5rem;
            }
            
            .filter-btn {
                min-height: 44px; /* è§¦æ‘¸å‹å¥½ */
            }
            
            /* ä¾§è¾¹æ å°å±å¹•ä¼˜åŒ– */
            .sidebar {
                width: 260px;
            }
        }
        
        @media (max-width: 360px) {
            .container {
                padding: 0 0.5rem;
            }
            
            .product-grid {
                grid-template-columns: 1fr 1fr; /* ä¿æŒ2åˆ—å¸ƒå±€ */
                gap: 0.3rem; /* æ›´å°çš„é—´è·ä»¥é€‚åº”è¶…å°å±å¹• */
            }
            
            .product-card {
                min-width: 0; /* å…è®¸å¡ç‰‡è¿›ä¸€æ­¥ç¼©å° */
            }
            
            .product-image {
                height: 140px; /* è¶…å°å±å¹•è¿›ä¸€æ­¥å‡å°å›¾ç‰‡é«˜åº¦ */
            }
            
            .product-placeholder {
                height: 140px;
            }
            
            .product-info {
                padding: 0.5rem;
            }
            
            .product-name {
                font-size: 0.75rem;
            }
            
            .product-brand {
                font-size: 0.65rem;
            }
            
            .product-price {
                font-size: 0.9rem;
            }
            
            .add-to-cart {
                min-height: 32px;
                font-size: 0.7rem;
                padding: 0.4rem;
            }
            
            .filters {
                flex-direction: column;
            }
            
            .filter-btn {
                width: 100%;
                min-height: 48px; /* æ›´å¤§çš„è§¦æ‘¸åŒºåŸŸ */
            }
            
            /* è¶…å°å±å¹•ä¾§è¾¹æ ä¼˜åŒ– */
            .sidebar {
                width: 240px;
            }
            
            .sidebar-item {
                padding: 1.25rem 1rem;
                font-size: 0.95rem;
            }
            
            .logo {
                font-size: 1rem;
            }
            
            .cart-icon {
                padding: 0.5rem;
                font-size: 0.85rem;
            }
            
            .search-input {
                padding: 1rem;
                font-size: 16px;
            }
        }
        
        /* æ¨ªå±æ¨¡å¼ä¼˜åŒ– */
        @media (max-height: 500px) and (orientation: landscape) {
            .sidebar {
                width: 200px;
            }
            
            .sidebar-header {
                padding: 0.75rem;
            }
            
            .sidebar-item {
                padding: 0.5rem 1rem;
            }
            
            .header {
                padding: 0.5rem 0;
            }
            
            .main {
                padding: 1rem 0;
            }
        }
        
        /* å¤§å±å¹•ä¼˜åŒ– */
        @media (min-width: 1200px) {
            .container {
                max-width: 1400px;
                padding: 0 2rem;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1.5rem;
            }
        }
        
        /* è¶…å¤§å±å¹•ä¼˜åŒ– */
        @media (min-width: 1400px) {
            .container {
                max-width: 1600px;
                padding: 0 3rem;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
                gap: 2rem;
            }
        }
        
        /* 4Kå’Œè¶…å®½å±ä¼˜åŒ– */
        @media (min-width: 1800px) {
            .container {
                max-width: 1800px;
                padding: 0 4rem;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 2.5rem;
            }
            
            .search-bar {
                padding: 2.5rem;
                margin-bottom: 3rem;
            }
            
            .filters {
                gap: 1.5rem;
                margin-bottom: 3rem;
            }
        }

        /* ç™»å½•å¼¹çª—æ ·å¼ */
        .login-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }

        .login-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
        }

        .login-modal-content {
            position: relative;
            background: var(--bg-card);
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 450px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease-out;
        }

        .login-modal-header {
            padding: 2rem 2rem 1rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .login-modal-title {
            font-size: 24px;
            font-weight: 600;
            color: #2e7d32;
            margin: 0;
        }

        .login-modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 4px;
            transition: all 0.2s;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-modal-close:hover {
            background: var(--bg-body);
            color: #dc3545;
        }

        .login-modal-body {
            padding: 1rem 2rem 2rem;
        }

        .login-modal-subtitle {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.2s;
            background: var(--bg-card);
        }

        .form-input:focus {
            outline: none;
            border-color: #2e7d32;
            box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
        }

        .form-input::placeholder {
            color: var(--text-muted);
        }

        .login-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            color: var(--text-secondary);
        }

        .remember-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #2e7d32;
        }

        .forgot-password {
            color: #2e7d32;
            text-decoration: none;
            font-weight: 500;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        .login-button {
            width: 100%;
            background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
            color: white;
            border: none;
            padding: 0.875rem 1.5rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 1rem;
        }

        .login-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        }

        .login-button:active {
            transform: translateY(0);
        }

        .login-button:disabled {
            background: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .help-text {
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .contact-admin {
            color: #0d6efd;
            text-decoration: none;
            font-weight: 500;
        }

        .contact-admin:hover {
            text-decoration: underline;
        }

        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            border: 1px solid #f5c6cb;
        }

        .success-message {
            background: #d1edff;
            color: #0c5460;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            border: 1px solid #bee5eb;
        }

        /* å¼¹çª—åŠ¨ç”» */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* å“åº”å¼è®¾è®¡ */
        @media (max-width: 576px) {
            .login-modal-content {
                width: 70%;
                max-width: 320px;
                margin: 0 auto;
            }

            .login-modal-header,
            .login-modal-body {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .login-modal-title {
                font-size: 1.1rem;
            }
        }

        /* ==========================================================================
           çƒ­å–äº§å“æ¨¡å— (Hot Products Section)
           ========================================================================== */
        .hot-section {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin: 0 auto 20px auto;
            position: relative;
        }

        .hot-product-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 14px;
        }

        .hot-product-card {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            border: 1px solid #f5f5f5;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
        }

        @media (hover: hover) and (pointer: fine) {
            .hot-product-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            }
        }

        .hot-product-img {
            aspect-ratio: 1 / 1; /* ä½¿ç”¨ 1:1 æ¯”ä¾‹ï¼Œå®Œç¾Žé€‚é…5åˆ—å¸ƒå±€ï¼Œä¸ç”¨å†™æ­»é«˜åº¦ */
            height: auto;
            background: #f0f0f0;
        }

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

        .hot-product-body {
            padding: 12px;
            font-size: 14px;
            line-height: 1.5;
            color: #333;
            /* ç§»é™¤å•è¡Œé™åˆ¶ï¼Œæ”¹ä¸ºå¤šè¡Œæˆªæ–­ (æœ€å¤šæ˜¾ç¤º 2 è¡Œ) */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
        }

        /* çƒ­å–äº§å“éª¨æž¶å± */
        .hot-skeleton-item .hot-product-img,
        .hot-skeleton-item .hot-skeleton-text {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeletonLoading 1.5s infinite;
        }
        .hot-skeleton-text {
            width: 80%;
            height: 16px;
            border-radius: 4px;
            margin-top: 4px;
        }

        @media (max-width: 1024px) {
            .hot-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }

        @media (max-width: 768px) {
            .hot-section { padding: 15px; border-radius: 16px; }
            .hot-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
            .hot-product-img { height: 150px; }
        }

        @media (max-width: 480px) {
            .hot-product-img { height: 130px; }
            .hot-product-body { padding: 10px; font-size: 13px; }
        }

    /* æ¡Œé¢ç«¯é»˜è®¤ä¸æ˜¾ç¤ºæ¨ªå‘æ»‘åŠ¨æç¤ºï¼ˆé¿å…è¯¯å¯¼ï¼‰ï¼›æ‰‹æœºç«¯ä¼šåœ¨ media query å†…é‡æ–°å¼€å¯ */
    .swipe-hint { display: none; }

    /* æ ‡é¢˜è¡Œï¼šå·¦ä¾§(æ ‡é¢˜+æç¤º) + å³ä¾§(æŸ¥çœ‹æ›´å¤š) åŒæŽ’ */
    .section-title-row{
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .title-left{
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    .title-left .section-title{
        margin: 0;
    }

    /* â€œæŸ¥çœ‹æ›´å¤šâ€æŒ‰é’®ï¼ˆæœ¬æœŸçƒ­å– / å…¨éƒ¨å•†å“ï¼‰ */
    .view-all-link{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto; /* é¡¶åˆ°æœ€å³ä¾§ */
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-primary);
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        text-decoration: none;
        white-space: nowrap;
    }
    .view-all-link:active{
        transform: scale(0.98);
    }

        /* ==========================================================================
           äº§å“åˆ—è¡¨å¤´éƒ¨æ ·å¼ (å…¨éƒ¨å•†å“æ ‡é¢˜æ¡†)
           ========================================================================== */
        .product-section-header {
            margin: 0 auto 20px auto;
            background: var(--bg-card);
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
        }

        .product-section-header .title-wrapper {
            margin-bottom: 0; /* æŠµæ¶ˆå†…è”æ ·å¼å½±å“ */
        }

        @media (max-width: 768px) {
            .product-section-header {
                padding: 15px;
                border-radius: 16px;
            }
        }
        
        /* è´­ç‰©è½¦ä¸“å±žå¤´éƒ¨æ ·å¼ */
        .shopee-cart-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: var(--bg-card);
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
            position: sticky;
            top: 0;
            z-index: 1000;
            height: 50px;
        }

        /* ä»¿ Shopee è´­ç‰©è½¦å•†å“å¡ç‰‡æ ·å¼ */
        .shopee-cart-item {
            display: flex;
            background: var(--bg-card);
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 4px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            border: 1px solid #f0f0f0;
        }

        .shopee-cart-img-box {
            width: 80px;
            height: 80px;
            flex-shrink: 0;
            margin-right: 15px;
            position: relative;
        }

        .shopee-cart-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border: 1px solid var(--border-color);
            border-radius: 2px;
        }

        .shopee-cart-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .shopee-cart-title-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 5px;
        }

        .shopee-cart-name {
            font-size: 14px;
            color: #212121;
            line-height: 1.2;
            max-height: 34px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            margin-right: 10px;
        }

        .shopee-cart-sku {
            font-size: 12px;
            color: #757575;
            margin-bottom: 5px;
        }

        .shopee-cart-bottom-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 10px;
        }

        .shopee-cart-price-box {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 5px;
        }

        .shopee-cart-price-current {
            color: #2e7d32;
            font-size: 16px;
            font-weight: 500;
        }

        .shopee-cart-price-original {
            color: var(--text-muted);
            font-size: 12px;
            text-decoration: line-through;
        }

        .shopee-cart-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .shopee-qty-group {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-color);
            border-radius: 2px;
        }

        .shopee-qty-btn {
            width: 28px;
            height: 28px;
            background: var(--bg-card);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #757575;
            font-size: 16px;
            padding: 0;
        }

        .shopee-qty-input {
            width: 40px;
            height: 28px;
            border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
            border-top: none;
            border-bottom: none;
            text-align: center;
            font-size: 14px;
            color: var(--text-primary);
            outline: none;
            background: var(--bg-card);
        }

        .shopee-delete-btn {
            color: #212121;
            font-size: 14px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
        }
        
        /* Mobile responsive adjustments */
        @media (max-width: 480px) {
            .shopee-cart-bottom-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .shopee-cart-actions {
                width: 100%;
                justify-content: space-between;
            }
        }

        .shopee-cart-header .header-left {
            font-size: 24px;
            color: #2e7d32; /* å•†åŸŽä¸»ç»¿è‰² */
            cursor: pointer;
            width: 40px; /* é¢„ç•™å®½åº¦ */
        }

        .shopee-cart-header .header-center {
            flex: 1;
            text-align: center;
            font-size: 18px;
            color: #222;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .shopee-cart-header .header-right {
            width: 40px; /* ä¸Žå·¦ä¾§å®½åº¦ä¸€è‡´ï¼Œç¡®ä¿æ ‡é¢˜ç»å¯¹å±…ä¸­ */
        }
        
        .cart-title-count {
            font-size: 18px;
            color: #222;
            font-weight: 500;
        }

        /* è°ƒæ•´è´­ç‰©è½¦é¡µé¢é¡¶éƒ¨é—´è·ï¼Œé¿å…å†…å®¹è¢«é®æŒ¡ */
        #cart {
            padding-top: 0 !important; /* è®©å¤´éƒ¨è´´é¡¶ */
        }
    /* Shopee-style Checkout Styles */
    .checkout-nav-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg-card);
        display: flex;
        align-items: center;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin: -1rem -1rem 1rem -1rem; /* Negative margin to counteract page padding */
    }

    .checkout-nav-bar .nav-left {
        font-size: 1.5rem;
        color: #2e7d32; /* å•†åŸŽä¸»ç»¿è‰² */
        cursor: pointer;
        width: 40px;
    }

    .checkout-nav-bar .nav-title {
        flex: 1;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .checkout-nav-bar .nav-right {
        width: 40px;
    }

    .shopee-address-card {
        background: var(--bg-card);
        border-radius: 0;
        margin-bottom: 1rem;
        position: relative;
        overflow: hidden;
        padding: 1rem 1rem 1.5rem 1rem;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .shopee-address-border {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background-image: repeating-linear-gradient(45deg, #2e7d32, #2e7d32 30px, transparent 30px, transparent 40px, #81c784 40px, #81c784 70px, transparent 70px, transparent 80px);
    }

    .checkout-product-item {
        display: flex;
        padding: 12px 0;
        background: var(--bg-card);
        margin-bottom: 1px;
        border-bottom: 1px solid #f8f9fa;
    }

    .checkout-product-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 1rem;
        background: var(--bg-body);
    }

    .checkout-product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .checkout-product-name {
        font-size: 14px;
        color: #212121;
        line-height: 1.2;
        margin-bottom: 4px;
        margin-right: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .checkout-product-variant {
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 5px;
    }

    .checkout-product-price-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-top: 10px;
    }

    .checkout-product-price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 5px;
        font-weight: 500;
        color: #2e7d32;
    }
.checkout-product-promo-note {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

    .checkout-product-qty {
        color: var(--text-secondary);
        font-size: 14px;
    }

    #checkoutProductsList {
        background: var(--bg-card);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 1rem;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }/* PRODUCT DETAIL PAGE COMPONENT CSS */
#product-detail .product-detail {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

#product-detail .product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

#product-detail .image-gallery {
    display: flex;
    gap: 1rem;
    height: 400px;
}

#product-detail .thumbnail-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

#product-detail .thumbnail-sidebar::-webkit-scrollbar { width: 4px; }
#product-detail .thumbnail-sidebar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
#product-detail .thumbnail-sidebar::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 2px; }
#product-detail .thumbnail-sidebar::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

#product-detail .thumbnail {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

#product-detail .thumbnail.active { border-color: #2e7d32; }
#product-detail .thumbnail:hover { border-color: #2e7d32; opacity: 0.8; }

#product-detail .main-image-container {
    flex: 1;
    position: relative;
    min-height: 400px;
}

#product-detail .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-body);
}

#product-detail .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    border-radius: 12px;
}

#product-detail .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

#product-detail .image-nav:hover { background: rgba(0,0,0,0.7); }
#product-detail .image-nav.prev { left: 10px; }
#product-detail .image-nav.next { right: 10px; }

#product-detail .product-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
}

#product-detail .product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

#product-detail .product-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

#product-detail .product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2e7d32;
}
.detail-price-current {
    color: #ee4d2d;
    font-weight: 700;
}
.detail-price-current--base {
    color: #1f2721;
}
.detail-price-old,
.detail-price-reference {
    font-size: 14px;
    color: var(--text-muted);
}
.detail-price-old {
    text-decoration: line-through;
}
.detail-price-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-left: 8px;
}
.detail-price-chip--special {
    background: #ef4444;
}
.detail-price-chip--combo {
    background: #6366f1;
}
.detail-price-chip--gift {
    background: #10b981;
}
.detail-price-reference {
    margin-left: 10px;
}
.product-promo-note {
    margin-top: 10px;
}
.promo-note-card {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.promo-note-card--combo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(79, 70, 229, 0.03));
    border-color: rgba(99, 102, 241, 0.15);
}
.promo-note-card--gift {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.03));
    border-color: rgba(16, 185, 129, 0.15);
}
.promo-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.promo-note-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.promo-note-badge--combo {
    background: #6366f1;
}
.promo-note-badge--gift {
    background: #10b981;
}
.promo-note-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.promo-note-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.promo-note-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.promo-note-line {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

#product-detail .product-stock {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

#product-detail .product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-line;
    font-size: 14px;
}

#product-detail .quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

#product-detail .quantity-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

#product-detail .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-body);
    border-radius: 8px;
    padding: 0.25rem;
}

#product-detail .quantity-btn {
    background: #2e7d32;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

#product-detail .quantity-btn:hover { background: #1b5e20; }
#product-detail .quantity-btn:disabled { background: #6c757d; cursor: not-allowed; }

#product-detail .quantity-input {
    width: 50px;
    padding: 0.375rem;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

#product-detail .add-to-cart-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#product-detail .add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

#product-detail .add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#product-detail .product-description-section {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#product-detail .section-header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#product-detail .section-content {
    padding: 1.5rem;
}

#product-detail .description-images {
    display: grid;
    gap: 1.25rem;
}

#product-detail .description-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#product-detail .product-specifications-section {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#product-detail .specs-table {
    width: 100%;
    border-collapse: collapse;
}

#product-detail .specs-table th,
#product-detail .specs-table td {
    padding: 0.875rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#product-detail .specs-table th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-secondary);
    width: 30%;
    font-size: 13px;
}

#product-detail .specs-table td {
    color: var(--text-primary);
    font-size: 13px;
    white-space: pre-line;
}

#product-detail .specs-table tr:last-child th,
#product-detail .specs-table tr:last-child td {
    border-bottom: none;
}

#product-detail .specs-table tr:hover {
    background: var(--bg-body);
}

#product-detail .empty-content {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-secondary);
}

#product-detail .empty-content i {
    font-size: 2.5rem;
    margin-bottom: 0.875rem;
    color: var(--text-muted);
}

/* Page Transition */
.page {
    display: none !important;
}

.page.active {
    display: block !important;
    animation: fadeInPage 0.3s ease forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* å“åº”å¼è®¾è®¡ */
@media (max-width: 992px) {
    #product-detail .product-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    #product-detail .image-gallery { height: 350px; }
    #product-detail .main-image-container { min-height: 350px; }
}

@media (max-width: 768px) {
    #product-detail .product-header {
        gap: 1.25rem;
        padding: 1.25rem;
    }
    #product-detail .image-gallery {
        height: auto;
        flex-direction: column;
        min-height: 280px;
    }
    #product-detail .thumbnail-sidebar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 0.5rem;
    }
    #product-detail .thumbnail { width: 60px; height: 60px; }
    #product-detail .main-image-container {
        height: auto;
        min-height: 200px;
        aspect-ratio: 1;
    }
    #product-detail .product-title { font-size: 1.25rem; }
    #product-detail .product-price { font-size: 1.5rem; }
    #product-detail .section-header { padding: 1rem 1.25rem; font-size: 1rem; }
    #product-detail .section-content { padding: 1.25rem; }
    #product-detail .specs-table th, #product-detail .specs-table td { padding: 0.75rem 1rem; }
    #product-detail .specs-table th { width: 40%; font-size: 12px; }
    #product-detail .specs-table td { font-size: 12px; }
}

@media (max-width: 480px) {
    #product-detail .product-header {
        padding: 1rem;
        gap: 1rem;
    }
    #product-detail .image-gallery {
        height: auto;
        min-height: 260px;
    }
    #product-detail .main-image-container {
        height: auto;
        min-height: 180px;
        aspect-ratio: 1;
    }
    #product-detail .thumbnail { width: 50px; height: 50px; }
    #product-detail .product-title { font-size: 1.125rem; }
    #product-detail .product-price { font-size: 1.375rem; }
    #product-detail .quantity-controls { padding: 0.125rem; }
    #product-detail .quantity-btn { width: 26px; height: 26px; font-size: 13px; }
    #product-detail .quantity-input { width: 45px; font-size: 13px; }
    #product-detail .add-to-cart-btn { padding: 0.75rem; font-size: 0.9rem; }
}

/* Product Detail Fixed Header */
.product-detail-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#product-detail {
    padding-top: 80px; /* Offset for fixed header */
    overflow-anchor: none;
}

.product-detail-header .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-header .nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-detail-header .back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-detail-header .logo {
    width: 40px;
    height: 40px;
    background-image: url('/static/icons/icon-192x192.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px; /* Added border radius for aesthetic */
}

/* ==========================================================================
   ç›´æ’­ä¸“åœº (Live Session) æ ·å¼
   ========================================================================== */
.live-title::after { display: none; }
.live-row {
    position: relative;
    display: flex;
    align-items: center;
}
.live-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    border: none;
    background: none;
    box-shadow: none;
    color: #5e7c69;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    line-height: 1;
}
#livePrev { left: -6px; }
#liveNext { right: -6px; }
.live-nav-btn:hover {
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.15);
}
.live-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.today-list {
    margin: 0 20px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}
.today-list::-webkit-scrollbar { display: none; }
.today-item {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31,39,33,0.06);
    border: 1px solid rgba(31,39,33,0.04);
    height: auto;
    min-height: 240px;
    text-decoration: none;
    color: inherit;
}
.today-item:hover {
    background: linear-gradient(180deg,#fffdf7,#f6f0db);
    border-color: rgba(214,178,94,0.35);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(39, 58, 43, 0.10);
}
.today-img {
    height: 170px;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
}
.today-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.today-item:hover .today-img img {
    transform: scale(1.04);
}
.today-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    flex: 1;
    background: #fff;
}
.today-body h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #1f2721;
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.today-body p {
    font-size: 12px;
    margin: 0;
    color: #8a938d;
    text-align: center;
    line-height: 1.35;
    padding-bottom: 2px;
}

/* ==========================================================================
   å“ç‰Œå±•ç¤ºè½®æ’­å›¾æ ·å¼
   ========================================================================== */
.brand-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    padding: 0;
}
.brand-list::-webkit-scrollbar { display: none; }
.brand-item {
    width: 100%;
    height: 50px; 
    background: #fff;
    border-radius: 14px;
    padding: 0 10px; 
    text-align: center;
    box-shadow: 0 10px 26px rgba(39, 58, 43, 0.08);
    font-family: "Playfair Display", "Times New Roman", serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #2B2B2B;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
    cursor: pointer;
}
.brand-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg,#fffaf0,#f6f0db);
    border-color: rgba(214,178,94,0.35);
    color: var(--primary-dark);
}
.brand-item--placeholder{
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    background: transparent !important;
    border: none !important;
}

/* ==========================================================================
   åˆ†ç±»æ¨¡å— (Category Section) æ ·å¼ (æ¨ªå‘æ»‘åŠ¨å¡ç‰‡ç‰ˆ)
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    padding: 0;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}
.category-card--placeholder{
    opacity: 0;
    pointer-events: none;
    background: transparent !important;
}
.category-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.category-sub {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Responsive */
/* ç”µè„‘ç«¯ï¼šå¼ºåˆ¶ä¸¤æŽ’æ˜¾ç¤ºï¼ˆåˆ—æ•°å˜å°ï¼Œå¡ç‰‡æ›´å¤§ï¼‰ */
@media (min-width: 769px) {
    .brand-list { grid-template-columns: repeat(6, 1fr); }
    .category-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 640px) {
    .today-item { flex-basis: 190px; min-height: 220px; }
    .today-img { height: 150px; }

    .brand-list {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 4px;
        scrollbar-width: none;
    }
    .brand-item {
        flex: 0 0 120px;
        width: auto;
        min-height: 72px;
    }

    .category-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 6px;
        scrollbar-width: none;
    }
    .category-card {
        flex: 0 0 72px;
        width: auto;
    }
}
@media (max-width: 420px) {
    .today-item { flex-basis: 170px; min-height: 215px; }
    .today-img { height: 135px; }
    .brand-item { padding-left: 10px; padding-right: 10px; }
}


/* ==========================================================================
   Section Title (é€šç”¨)
   ========================================================================== */
.section { margin-top: 24px; }
.section-title {
    font-size: 20px;
    color: #7ea08b;
    text-align: left;
    margin: 0 0 16px;
    font-weight: 600;
}
.section-title::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #D6B25E, rgba(214,178,94,0.2));
}
/* ==========================================================================
   çƒ­å–äº§å“ (Product Grid) æ ·å¼
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}
.product-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31,39,33,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(31,39,33,0.04);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(31,39,33,0.12);
    border-color: rgba(214,178,94,0.35);
}
.product-img {
    width: 100%;
    height: 190px;
    background: #f8faf8;
    overflow: hidden;
    position: relative;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-meta {
    font-size: 11px;
    color: #8a938d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.product-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: auto;
    color: #1f2721;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}
.product-price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #1f2721;
}
.product-price--special,
.product-price--promo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.product-price-current {
    color: #ee4d2d;
    font-weight: 700;
}
.product-price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-price-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.product-price-chip--special {
    background: #ef4444;
}
.product-price-chip--combo {
    background: #6366f1;
}
.product-price-chip--gift {
    background: #10b981;
}
.product-promo-summary {
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.product-promo-summary--combo {
    color: #4f46e5;
}
.product-promo-summary--gift {
    color: #059669;
}
.product-promo-text {
    min-width: 0;
    flex: 1;
}
.product-promo-line {
    display: inline;
}
.product-actions {
    display: flex;
    gap: 8px;
}
.product-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e7c69;
    cursor: pointer;
    transition: all 0.2s ease;
}
.product-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.product-icon:hover {
    background: #5e7c69;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive Product Grid */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
    }
    .product-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .product-card {
        flex: 0 0 calc(50% - 7px);
        scroll-snap-align: start;
        min-width: 140px;
    }
        .product-promo-summary {
            align-items: flex-start;
            gap: 4px;
            flex-direction: column;
        }
        .product-promo-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            line-height: 1.35;
            width: 100%;
        }
        .product-promo-line {
            display: block;
            white-space: nowrap;
            font-size: 10px;
        }
    .product-img { height: 150px; }
}
@media (max-width: 420px) {
    .product-img { height: 130px; }
    .product-body { padding: 12px; }
    .product-name { font-size: 13px; }
    .product-price { font-size: 15px; }
    .product-icon { width: 28px; height: 28px; }
    .product-icon svg { width: 14px; height: 14px; }
}

/* ==========================================================================
   ä¼šå‘˜ç¦åˆ© & ä¸ºä»€ä¹ˆé€‰æ‹© DOODOO æ ·å¼
   ========================================================================== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.member-main {
    background: linear-gradient(135deg,#7ea08b,#4f6f5c);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
}

.member-main .icon {
    font-size: 28px;
    line-height: 1;
    color: #d6b25e;
}

.member-main .title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.member-main .desc {
    font-size: 13px;
    opacity: 0.88;
    margin-top: 6px;
    line-height: 1.6;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.value-card {
    background: linear-gradient(180deg,#ffffff,#eef4f0);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(126,160,139,0.15);
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.value-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg,#fffaf0,#f5f0df);
    border-color: rgba(214,178,94,0.35);
}

.value-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 22px;
    height: 22px;
    stroke: #7ea08b;
    stroke-width: 1.8;
    fill: none;
}

.value-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2721;
    text-align: center;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.value-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

.doodoo-footer {
    margin-top: 24px;
    background: #1f2a22;
    color: rgba(255,255,255,0.9);
    border-radius: 12px;
    overflow: hidden;
}

.doodoo-footer .footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 40px 24px 28px;
}

.doodoo-footer .footer-inner h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #fff;
}

.doodoo-footer .footer-inner p,
.doodoo-footer .footer-inner li {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.8;
}

.doodoo-footer .footer-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doodoo-footer .copyright {
    width: calc(100% - 48px);
    max-width: none;
    margin: 0 auto;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

@media (max-width: 1024px) {
    .member-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .doodoo-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .member-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .member-main { min-height: 150px; }
    .value-card {
        min-height: 118px;
        padding: 14px 10px;
    }
    .value-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
    }
    .value-title {
        font-size: 13px;
    }
    .value-desc {
        font-size: 11px;
        line-height: 1.45;
    }
    
    .doodoo-footer .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 30px 15px 20px;
    }
    .doodoo-footer .footer-inner > div:first-child {
        grid-column: 1 / -1;
        margin-bottom: 10px;
    }
    /* ç¼©å°æ‰‹æœºç«¯çš„é¡µè„šå­—ä½“ä»¥é€‚åº”ä¸‰åˆ—æŽ’ç‰ˆ */
    .doodoo-footer .footer-inner h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .doodoo-footer .footer-inner p,
    .doodoo-footer .footer-inner li {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .value-card,
    .member-main { padding-left: 10px; padding-right: 10px; }
    
    /* å³ä½¿åœ¨å¾ˆå°çš„æ‰‹æœºä¸Šä¹Ÿä¿æŒä¸‰åˆ—ï¼Œé˜²æ­¢æ‰“ä¹± */
    .doodoo-footer .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 25px 10px 15px;
    }
}

/* ==========================================================================
   å…¨å±€æœç´¢è¦†ç›–å±‚æ ·å¼ (Search Overlay)
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(31, 39, 33, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal {
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    padding: 16px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

/* æ€§èƒ½ä¼˜åŒ–ï¼šç§»åŠ¨ç«¯å…³é—­ blurï¼ˆé™ä½Ž GPU/åˆæˆåŽ‹åŠ›ï¼‰ */
@media (max-width: 768px) {
    .search-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Mall view uses the same SPA shell as product detail, but needs a true list layout. */
#mall-view {
    padding-top: 80px;
    padding-bottom: 96px;
    overflow-anchor: none;
}

#mall-view .section {
    padding-left: 0;
    padding-right: 0;
}

#mall-view .product-detail-header .nav {
    min-height: 44px;
}

#mall-view #mallViewTitle {
    font-size: 1.25rem;
    line-height: 1.2;
    white-space: nowrap;
}

#mall-view #mallViewList.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
}

#mall-view #mallViewList .product-card {
    min-width: 0;
    scroll-snap-align: unset;
}

#mall-view #mallViewList .product-img {
    background: #f8faf8;
}

#mall-view #mallViewList .product-img img {
    object-fit: contain;
    padding: 6px;
}

#mall-view #mallViewList.mall-view-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
}

#mall-view #mallViewList.mall-view-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
}

#mall-view #mallViewList.mall-view-brand-grid .brand-item {
    width: 100%;
    min-height: 92px;
}

#mall-view #mallViewList.mall-view-category-grid .category-card {
    width: 100%;
}

#mall-view #mallViewList.mall-view-brand-grid .empty-state,
#mall-view #mallViewList.mall-view-category-grid .empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    #mall-view #mallViewList.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #mall-view #mallViewList.mall-view-brand-grid,
    #mall-view #mallViewList.mall-view-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #mall-view {
        padding-top: 72px;
        padding-bottom: 92px;
    }

    #mall-view .product-detail-header {
        padding: 0.875rem 12px;
    }

    #mall-view .product-detail-header .nav {
        gap: 10px;
        justify-content: space-between;
    }

    #mall-view .product-detail-header .back-btn {
        font-size: 0.95rem;
        padding: 0;
    }

    #mall-view #mallViewTitle {
        font-size: 1.15rem;
        text-align: right;
    }

    #mall-view .section {
        padding-top: 0.75rem !important;
    }

    #mall-view #mallViewList.product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 1rem;
    }

    #mall-view #mallViewList .product-card {
        flex: none;
        width: auto;
        min-width: 0;
    }

    #mall-view #mallViewList .product-img {
        height: 150px;
    }

    #mall-view #mallViewList.mall-view-brand-grid,
    #mall-view #mallViewList.mall-view-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding-bottom: 1rem;
    }

    #mall-view #mallViewList.mall-view-brand-grid .brand-item {
        min-height: 80px;
    }
}

/* æ€§èƒ½/æ— éšœç¢ï¼šç”¨æˆ·åå¥½å‡å°‘åŠ¨ç”»æ—¶ï¼Œå…³é—­å…³é”®åŠ¨ç”»ï¼ˆé»˜è®¤ç”¨æˆ·ä¸å—å½±å“ï¼‰ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.search-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f6f8fa;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    background: #fff;
    border-color: #7ea08b;
    box-shadow: 0 0 0 3px rgba(126, 160, 139, 0.1);
}

.search-input-wrapper i.bx-search {
    font-size: 20px;
    color: #8a938d;
    margin-right: 10px;
}

.search-input-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1f2721;
    outline: none;
}

.search-input-field::placeholder {
    color: #b0b8c1;
}

.search-action-btn {
    background: #7ea08b;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-action-btn:hover {
    background: #5e7c69;
    transform: translateY(-1px);
}

.hidden,
.is-hidden {
    display: none !important;
}

body.live-customer-system {
    padding-bottom: 90px;
}

@media (max-width: 768px) {
    body.live-customer-system {
        padding-bottom: 80px;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        body.live-customer-system {
            padding-bottom: 100px;
        }
    }
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 0;
        justify-content: center;
        align-items: center;
    }

    .search-modal {
        width: 90%;
        max-width: 90%;
        height: auto;
        max-height: none;
        border-radius: 50px;
        padding: 5px;
    }
}

.category-section {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

.featured-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

.featured-slider-container {
    position: relative;
    margin: 0 -10px;
    padding: 0 10px;
}

.featured-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.featured-track::-webkit-scrollbar {
    display: none;
}

.featured-item {
    flex: 0 0 160px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

@media (hover: hover) and (pointer: fine) {
    .featured-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-color: #2e7d32;
    }
}

.featured-img-container {
    width: 100%;
    height: 160px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    padding: 10px;
}

.featured-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-price {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.featured-slider-container:hover .scroll-btn {
    opacity: 1;
}

.featured-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border-color: #2e7d32 !important;
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

@media (max-width: 768px) {
    .featured-item {
        flex: 0 0 140px;
    }
    .featured-img-container {
        height: 140px;
    }
    .scroll-btn {
        display: none;
    }
}

.category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 15px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    text-transform: uppercase;
    color: #2B2B2B;
    letter-spacing: 2px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-item:hover {
    border-color: #2B2B2B;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    color: #000;
}

.category-item.active {
    background: #f8f9fa;
    color: #000;
    border-color: #2B2B2B;
    font-weight: 700;
}

.hot-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.hot-ribbon::before {
    content: "HOT";
    position: absolute;
    top: 15px;
    left: -24px;
    width: 100px;
    height: 24px;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    text-align: center;
    line-height: 24px;
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast-message.show {
    opacity: 1;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    width: 20%;
    height: 100%;
    transition: color 0.3s;
    position: relative;
}

.bottom-cart-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 15px);
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-item i {
    font-size: 32px;
    margin-bottom: 6px;
}

.nav-item.active {
    color: var(--brand-active, #2d5a27);
}

.nav-item:hover {
    color: var(--brand-active, #2d5a27);
}

@media (max-width: 768px) {
    .bottom-nav {
        height: 65px;
    }
    .nav-item i {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .nav-item {
        font-size: 12px;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .bottom-nav {
            height: 85px;
            padding-bottom: env(safe-area-inset-bottom);
        }
        .nav-item i {
            font-size: 33px;
        }
        .nav-item {
            font-size: 14px;
        }
    }
}

.fixed-contact-buttons {
    position: fixed;
    bottom: 90px;
    right: 10%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.contact-btn-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s;
    background: var(--bg-card);
    text-decoration: none;
}

.contact-btn-small:hover {
    transform: translateY(-2px);
}

.contact-btn-small.whatsapp {
    background-color: #25D366;
    color: white;
}

.contact-btn-small.messenger i {
    font-size: 24px;
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 30%, #FF4F9A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-btn-small.whatsapp i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .fixed-contact-buttons {
        bottom: 80px;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .fixed-contact-buttons {
            bottom: 100px;
        }
    }
}

#favoritesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    #favoritesList {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

#bottomCartCount.is-hidden {
    display: none !important;
}

#checkoutCount {
    font-size: 0.9em;
    margin-left: 2px;
}

#checkout.page {
    padding-bottom: 100px;
}

#actingModeBanner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

#actingModeBanner .container {
    padding: 12px 0;
}

.acting-mode-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.acting-mode-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.acting-mode-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.acting-mode-title {
    font-weight: 700;
}

.acting-mode-customer-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.acting-mode-exit-btn {
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: #fff;
    color: #2563eb;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
