/**
 * 瑞盛電鋪 - 10 種截然不同的介面主題
 * 參考：Amazon、Apple、Shopee、無印良品、Dark、Pink、工業風、奢華、市集等
 * 使用方式：<html data-theme="主題名">
 */

/* ========== 1. default 瑞盛藍金（現有風格）========== */
[data-theme="default"] {
  --th-primary: #0F172A;
  --th-primary-light: #1E293B;
  --th-accent: #F59E0B;
  --th-accent-light: #FBBF24;
  --th-bg: #F9FAFB;
  --th-card: #ffffff;
  --th-text: #1F2937;
  --th-text-muted: #6B7280;
  --th-border: #E5E7EB;
  --th-shadow: 0 4px 12px rgba(0,0,0,0.12);
  --th-radius: 12px;
  --th-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ========== 2. amazon 亞馬遜風：密集網格、深灰頂、橘色 CTA ========== */
[data-theme="amazon"] {
  --th-primary: #131a22;
  --th-primary-light: #232f3e;
  --th-accent: #ff9900;
  --th-accent-light: #ffad33;
  --th-bg: #eaeded;
  --th-card: #ffffff;
  --th-text: #0f1111;
  --th-text-muted: #565959;
  --th-border: #ddd;
  --th-shadow: 0 2px 5px rgba(0,0,0,0.1);
  --th-radius: 4px;
  --th-font: "Amazon Ember", Arial, sans-serif;
}
[data-theme="amazon"] .app-header {
  background: #131a22 !important;
  border-bottom: 1px solid #232f3e !important;
}
[data-theme="amazon"] .brand-logo i { color: #ff9900 !important; }
[data-theme="amazon"] .search-input { background: #fff !important; color: #0f1111 !important; border-color: #ddd !important; }
[data-theme="amazon"] .search-input::placeholder { color: #767676 !important; }
[data-theme="amazon"] .sticky-promo-bar { background: linear-gradient(90deg, #232f3e 0%, #37475a 100%) !important; }
[data-theme="amazon"] .sticky-promo-bar.is-free { background: linear-gradient(90deg, #067d62 0%, #232f3e 100%) !important; }
[data-theme="amazon"] .gold-text { color: #ff9900 !important; }
[data-theme="amazon"] .mini-fill { background: #ff9900 !important; }
[data-theme="amazon"] body { background: #eaeded !important; }
[data-theme="amazon"] .category-scroll-wrapper { background: #fff !important; }
[data-theme="amazon"] .cat-icon { background: #f3f3f3 !important; }
[data-theme="amazon"] .cat-item.active .cat-icon { background: #232f3e !important; color: #ff9900 !important; }
[data-theme="amazon"] .product-card {
  border-radius: 4px !important;
  border: 1px solid #ddd !important;
  box-shadow: none !important;
}
[data-theme="amazon"] .product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; border-color: #ff9900 !important; }
[data-theme="amazon"] .p-price { color: #b12704 !important; }
[data-theme="amazon"] .btn-cart { background: #ffd814 !important; color: #0f1111 !important; border-radius: 20px !important; }
[data-theme="amazon"] .btn-cart:hover { background: #f7ca00 !important; }
[data-theme="amazon"] .selector-area { background: #f9f9f9 !important; border-color: #ddd !important; }
[data-theme="amazon"] .bottom-nav { background: #131a22 !important; border-top-color: #232f3e !important; }
[data-theme="amazon"] .nav-icon { color: #ccc !important; }
[data-theme="amazon"] .nav-icon.active { color: #ff9900 !important; }
[data-theme="amazon"] .icon-btn-pro, [data-theme="amazon"] .cart-link { color: #fff !important; }
[data-theme="amazon"] .cart-link:hover { color: #ff9900 !important; }
[data-theme="amazon"] .cart-badge { background: #ff9900 !important; color: #131a22 !important; border-color: #131a22 !important; }

/* ========== 3. apple 蘋果極簡：大量留白、灰階、大圓角 ========== */
[data-theme="apple"] {
  --th-primary: #1d1d1f;
  --th-accent: #0071e3;
  --th-bg: #f5f5f7;
  --th-card: #ffffff;
  --th-text: #1d1d1f;
  --th-text-muted: #6e6e73;
  --th-border: #d2d2d7;
  --th-radius: 18px;
  --th-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
[data-theme="apple"] .app-header {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="apple"] .brand-logo { color: #1d1d1f !important; }
[data-theme="apple"] .brand-logo i { color: #1d1d1f !important; }
[data-theme="apple"] .search-input { background: #e8e8ed !important; color: #1d1d1f !important; border: none !important; }
[data-theme="apple"] .search-input::placeholder { color: #6e6e73 !important; }
[data-theme="apple"] .search-input:focus { background: #fff !important; box-shadow: 0 0 0 2px #0071e3 !important; }
[data-theme="apple"] .sticky-promo-bar { background: #f5f5f7 !important; color: #1d1d1f !important; }
[data-theme="apple"] .sticky-promo-bar.is-free { background: #d1fae5 !important; color: #065f46 !important; }
[data-theme="apple"] .gold-text { color: #0071e3 !important; }
[data-theme="apple"] .mini-fill { background: #0071e3 !important; }
[data-theme="apple"] body { background: #f5f5f7 !important; }
[data-theme="apple"] .category-scroll-wrapper { background: #fff !important; }
[data-theme="apple"] .cat-icon { background: #f5f5f7 !important; border-radius: 50% !important; }
[data-theme="apple"] .cat-item.active .cat-icon { background: #1d1d1f !important; color: #fff !important; }
[data-theme="apple"] .product-card {
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}
[data-theme="apple"] .product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important; transform: translateY(-2px) !important; }
[data-theme="apple"] .p-title { font-weight: 600 !important; letter-spacing: -0.02em !important; }
[data-theme="apple"] .p-price { color: #1d1d1f !important; font-weight: 600 !important; }
[data-theme="apple"] .btn-cart { background: #0071e3 !important; color: #fff !important; border-radius: 980px !important; }
[data-theme="apple"] .btn-cart:hover { background: #0077ed !important; }
[data-theme="apple"] .selector-area { background: #f5f5f7 !important; border: none !important; border-radius: 12px !important; }
[data-theme="apple"] .bottom-nav { background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(20px); border-top-color: rgba(0,0,0,0.08) !important; }
[data-theme="apple"] .nav-icon { color: #6e6e73 !important; }
[data-theme="apple"] .nav-icon.active { color: #0071e3 !important; }
[data-theme="apple"] .icon-btn-pro, [data-theme="apple"] .cart-link { color: #1d1d1f !important; }
[data-theme="apple"] .cart-badge { background: #0071e3 !important; color: #fff !important; border: none !important; }
[data-theme="apple"] .badge-rocket { background: rgba(0,0,0,0.6) !important; color: #fff !important; }

/* ========== 4. shopee 蝦皮風：橘紅、圓角、活潑 ========== */
[data-theme="shopee"] {
  --th-primary: #ee4d2d;
  --th-accent: #ee4d2d;
  --th-bg: #f5f5f5;
  --th-card: #fff;
  --th-text: #333;
  --th-text-muted: #888;
  --th-border: #f0f0f0;
  --th-radius: 8px;
  --th-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
[data-theme="shopee"] .app-header {
  background: linear-gradient(180deg, #ee4d2d 0%, #ff6b35 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(238,77,45,0.3) !important;
}
[data-theme="shopee"] .brand-logo, [data-theme="shopee"] .brand-logo i { color: #fff !important; }
[data-theme="shopee"] .search-input { background: rgba(255,255,255,0.9) !important; color: #333 !important; border: none !important; }
[data-theme="shopee"] .search-input::placeholder { color: #999 !important; }
[data-theme="shopee"] .sticky-promo-bar { background: linear-gradient(90deg, #ee4d2d 0%, #ff6b35 100%) !important; }
[data-theme="shopee"] .sticky-promo-bar.is-free { background: linear-gradient(90deg, #26aa53 0%, #34c759 100%) !important; }
[data-theme="shopee"] .gold-text { color: #fff !important; }
[data-theme="shopee"] .mini-fill { background: #fff !important; }
[data-theme="shopee"] body { background: #f5f5f5 !important; }
[data-theme="shopee"] .category-scroll-wrapper { background: #fff !important; box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; }
[data-theme="shopee"] .cat-icon { background: #fff !important; border: 1px solid #f0f0f0 !important; color: #ee4d2d !important; }
[data-theme="shopee"] .cat-item.active .cat-icon { background: #ee4d2d !important; color: #fff !important; border-color: #ee4d2d !important; }
[data-theme="shopee"] .product-card {
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}
[data-theme="shopee"] .product-card:hover { box-shadow: 0 4px 12px rgba(238,77,45,0.2) !important; }
[data-theme="shopee"] .p-price { color: #ee4d2d !important; font-size: 1.2rem !important; }
[data-theme="shopee"] .btn-cart { background: #ee4d2d !important; color: #fff !important; border-radius: 4px !important; }
[data-theme="shopee"] .btn-cart:hover { background: #f05d3d !important; }
[data-theme="shopee"] .selector-area { background: #fafafa !important; border-color: #f0f0f0 !important; }
[data-theme="shopee"] .bottom-nav { background: #fff !important; box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important; }
[data-theme="shopee"] .nav-icon { color: #999 !important; }
[data-theme="shopee"] .nav-icon.active { color: #ee4d2d !important; }
[data-theme="shopee"] .icon-btn-pro, [data-theme="shopee"] .cart-link { color: #fff !important; }
[data-theme="shopee"] .cart-badge { background: #fff !important; color: #ee4d2d !important; border: none !important; }
[data-theme="shopee"] .badge-rocket { background: #ee4d2d !important; color: #fff !important; }

/* ========== 5. muji 無印良品：米白、大地色、留白 ========== */
[data-theme="muji"] {
  --th-primary: #8b7355;
  --th-accent: #a0826d;
  --th-bg: #f5f0e8;
  --th-card: #faf8f5;
  --th-text: #3e3e3e;
  --th-text-muted: #7a6f65;
  --th-border: #e8e2d9;
  --th-radius: 2px;
  --th-font: "Hiragino Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
[data-theme="muji"] .app-header {
  background: #faf8f5 !important;
  border-bottom: 1px solid #e8e2d9 !important;
}
[data-theme="muji"] .brand-logo { color: #3e3e3e !important; }
[data-theme="muji"] .brand-logo i { color: #8b7355 !important; }
[data-theme="muji"] .search-input { background: #fff !important; color: #3e3e3e !important; border: 1px solid #e8e2d9 !important; }
[data-theme="muji"] .sticky-promo-bar { background: #e8e2d9 !important; color: #3e3e3e !important; }
[data-theme="muji"] .sticky-promo-bar.is-free { background: #d4c4b0 !important; }
[data-theme="muji"] .gold-text { color: #8b7355 !important; }
[data-theme="muji"] .mini-fill { background: #8b7355 !important; }
[data-theme="muji"] body { background: #f5f0e8 !important; }
[data-theme="muji"] .category-scroll-wrapper { background: #faf8f5 !important; }
[data-theme="muji"] .cat-icon { background: #f5f0e8 !important; color: #8b7355 !important; }
[data-theme="muji"] .cat-item.active .cat-icon { background: #8b7355 !important; color: #faf8f5 !important; }
[data-theme="muji"] .product-card {
  border-radius: 2px !important;
  border: 1px solid #e8e2d9 !important;
  background: #faf8f5 !important;
  box-shadow: none !important;
}
[data-theme="muji"] .product-card:hover { border-color: #8b7355 !important; box-shadow: 0 2px 8px rgba(139,115,85,0.1) !important; }
[data-theme="muji"] .p-title { font-weight: 500 !important; }
[data-theme="muji"] .p-price { color: #3e3e3e !important; font-weight: 600 !important; }
[data-theme="muji"] .btn-cart { background: #8b7355 !important; color: #faf8f5 !important; border-radius: 2px !important; }
[data-theme="muji"] .btn-cart:hover { background: #a0826d !important; }
[data-theme="muji"] .selector-area { background: #fff !important; border-color: #e8e2d9 !important; border-radius: 2px !important; }
[data-theme="muji"] .bottom-nav { background: #faf8f5 !important; border-top: 1px solid #e8e2d9 !important; }
[data-theme="muji"] .nav-icon { color: #7a6f65 !important; }
[data-theme="muji"] .nav-icon.active { color: #8b7355 !important; }
[data-theme="muji"] .icon-btn-pro, [data-theme="muji"] .cart-link { color: #3e3e3e !important; }
[data-theme="muji"] .cart-badge { background: #8b7355 !important; color: #faf8f5 !important; border: none !important; }

/* ========== 6. dark 深色科技：黑底、霓虹/藍綠 ========== */
[data-theme="dark"] {
  --th-primary: #0f0f14;
  --th-accent: #00d9ff;
  --th-bg: #1a1a2e;
  --th-card: #16213e;
  --th-text: #e8e8e8;
  --th-text-muted: #a0a0b0;
  --th-border: #2a2a4a;
  --th-radius: 12px;
  --th-font: "SF Pro Display", -apple-system, sans-serif;
}
[data-theme="dark"] .app-header {
  background: #0f0f14 !important;
  border-bottom: 1px solid #00d9ff !important;
}
[data-theme="dark"] .brand-logo, [data-theme="dark"] .brand-logo i { color: #00d9ff !important; }
[data-theme="dark"] .search-input { background: #16213e !important; color: #e8e8e8 !important; border-color: #2a2a4a !important; }
[data-theme="dark"] .search-input::placeholder { color: #606080 !important; }
[data-theme="dark"] .sticky-promo-bar { background: linear-gradient(90deg, #16213e 0%, #0f3460 100%) !important; color: #00d9ff !important; }
[data-theme="dark"] .sticky-promo-bar.is-free { background: linear-gradient(90deg, #064e3b 0%, #047857 100%) !important; color: #6ee7b7 !important; }
[data-theme="dark"] .gold-text { color: #00d9ff !important; }
[data-theme="dark"] .mini-fill { background: #00d9ff !important; }
[data-theme="dark"] body { background: #1a1a2e !important; color: #e8e8e8 !important; }
[data-theme="dark"] .category-scroll-wrapper { background: #16213e !important; border-bottom: 1px solid #2a2a4a !important; }
[data-theme="dark"] .cat-icon { background: #2a2a4a !important; color: #a0a0b0 !important; }
[data-theme="dark"] .cat-item.active .cat-icon { background: #00d9ff !important; color: #0f0f14 !important; }
[data-theme="dark"] .cat-name { color: #a0a0b0 !important; }
[data-theme="dark"] .cat-item.active .cat-name { color: #00d9ff !important; }
[data-theme="dark"] .product-card {
  background: #16213e !important;
  border: 1px solid #2a2a4a !important;
  border-radius: 12px !important;
}
[data-theme="dark"] .product-card:hover { border-color: #00d9ff !important; box-shadow: 0 0 20px rgba(0,217,255,0.15) !important; }
[data-theme="dark"] .product-img-box { background: #1a1a2e !important; }
[data-theme="dark"] .p-title { color: #e8e8e8 !important; }
[data-theme="dark"] .p-price { color: #00d9ff !important; }
[data-theme="dark"] .sold-badge { color: #a0a0b0 !important; }
[data-theme="dark"] .btn-cart { background: #00d9ff !important; color: #0f0f14 !important; }
[data-theme="dark"] .btn-cart:hover { background: #33e1ff !important; }
[data-theme="dark"] .selector-area { background: #1a1a2e !important; border-color: #2a2a4a !important; }
[data-theme="dark"] .bottom-nav { background: #0f0f14 !important; border-top-color: #2a2a4a !important; }
[data-theme="dark"] .nav-icon { color: #606080 !important; }
[data-theme="dark"] .nav-icon.active { color: #00d9ff !important; }
[data-theme="dark"] .icon-btn-pro, [data-theme="dark"] .cart-link { color: #e8e8e8 !important; }
[data-theme="dark"] .cart-badge { background: #00d9ff !important; color: #0f0f14 !important; border: none !important; }
[data-theme="dark"] .badge-rocket { background: #00d9ff !important; color: #0f0f14 !important; }

/* ========== 7. pink 粉嫩溫柔：淺粉、玫瑰金 ========== */
[data-theme="pink"] {
  --th-primary: #b76e79;
  --th-accent: #d4a5a5;
  --th-bg: #fff5f7;
  --th-card: #ffffff;
  --th-text: #4a4a4a;
  --th-text-muted: #8b7d7d;
  --th-border: #f5e0e3;
  --th-radius: 20px;
  --th-font: "Helvetica Neue", "Noto Sans TC", sans-serif;
}
[data-theme="pink"] .app-header {
  background: linear-gradient(135deg, #f8e1e5 0%, #f5d0d5 100%) !important;
  border-bottom: none !important;
}
[data-theme="pink"] .brand-logo { color: #8b5a5f !important; }
[data-theme="pink"] .brand-logo i { color: #b76e79 !important; }
[data-theme="pink"] .search-input { background: rgba(255,255,255,0.9) !important; color: #4a4a4a !important; border: 1px solid #f5e0e3 !important; border-radius: 20px !important; }
[data-theme="pink"] .sticky-promo-bar { background: linear-gradient(90deg, #f5d0d5 0%, #e8b4bc 100%) !important; color: #5c3a3d !important; }
[data-theme="pink"] .sticky-promo-bar.is-free { background: linear-gradient(90deg, #d4edda 0%, #c3e6cb 100%) !important; color: #155724 !important; }
[data-theme="pink"] .gold-text { color: #b76e79 !important; }
[data-theme="pink"] .mini-fill { background: #b76e79 !important; }
[data-theme="pink"] body { background: #fff5f7 !important; }
[data-theme="pink"] .category-scroll-wrapper { background: #fff !important; }
[data-theme="pink"] .cat-icon { background: #fff5f7 !important; color: #b76e79 !important; border-radius: 50% !important; }
[data-theme="pink"] .cat-item.active .cat-icon { background: #b76e79 !important; color: #fff !important; }
[data-theme="pink"] .product-card {
  border-radius: 20px !important;
  border: 1px solid #f5e0e3 !important;
  box-shadow: 0 4px 16px rgba(183,110,121,0.08) !important;
}
[data-theme="pink"] .product-card:hover { box-shadow: 0 8px 24px rgba(183,110,121,0.15) !important; border-color: #d4a5a5 !important; }
[data-theme="pink"] .p-price { color: #b76e79 !important; }
[data-theme="pink"] .btn-cart { background: linear-gradient(135deg, #b76e79 0%, #d4a5a5 100%) !important; color: #fff !important; border-radius: 20px !important; border: none !important; }
[data-theme="pink"] .btn-cart:hover { opacity: 0.95 !important; }
[data-theme="pink"] .selector-area { background: #fff5f7 !important; border-color: #f5e0e3 !important; border-radius: 12px !important; }
[data-theme="pink"] .bottom-nav { background: #fff !important; border-top: 1px solid #f5e0e3 !important; }
[data-theme="pink"] .nav-icon { color: #8b7d7d !important; }
[data-theme="pink"] .nav-icon.active { color: #b76e79 !important; }
[data-theme="pink"] .icon-btn-pro, [data-theme="pink"] .cart-link { color: #8b5a5f !important; }
[data-theme="pink"] .cart-badge { background: #b76e79 !important; color: #fff !important; border: none !important; }

/* ========== 8. industrial 工業粗體：黑底、黃強調、直角 ========== */
[data-theme="industrial"] {
  --th-primary: #0d0d0d;
  --th-accent: #ffd000;
  --th-bg: #0d0d0d;
  --th-card: #1a1a1a;
  --th-text: #ffffff;
  --th-text-muted: #888;
  --th-border: #333;
  --th-radius: 0;
  --th-font: "Helvetica Neue", "Arial Black", sans-serif;
}
[data-theme="industrial"] .app-header {
  background: #0d0d0d !important;
  border-bottom: 3px solid #ffd000 !important;
}
[data-theme="industrial"] .brand-logo { color: #fff !important; font-weight: 900 !important; letter-spacing: 0.05em !important; }
[data-theme="industrial"] .brand-logo i { color: #ffd000 !important; }
[data-theme="industrial"] .search-input { background: #1a1a1a !important; color: #fff !important; border: 2px solid #333 !important; border-radius: 0 !important; }
[data-theme="industrial"] .search-input:focus { border-color: #ffd000 !important; }
[data-theme="industrial"] .sticky-promo-bar { background: #1a1a1a !important; color: #ffd000 !important; border-bottom: 1px solid #333 !important; }
[data-theme="industrial"] .sticky-promo-bar.is-free { background: #2d2d0d !important; color: #ffd000 !important; }
[data-theme="industrial"] .gold-text { color: #ffd000 !important; }
[data-theme="industrial"] .mini-fill { background: #ffd000 !important; }
[data-theme="industrial"] body { background: #0d0d0d !important; color: #fff !important; }
[data-theme="industrial"] .category-scroll-wrapper { background: #1a1a1a !important; }
[data-theme="industrial"] .cat-icon { background: #333 !important; color: #888 !important; border-radius: 0 !important; }
[data-theme="industrial"] .cat-item.active .cat-icon { background: #ffd000 !important; color: #0d0d0d !important; }
[data-theme="industrial"] .cat-name { color: #888 !important; }
[data-theme="industrial"] .cat-item.active .cat-name { color: #ffd000 !important; }
[data-theme="industrial"] .product-card {
  background: #1a1a1a !important;
  border: 2px solid #333 !important;
  border-radius: 0 !important;
}
[data-theme="industrial"] .product-card:hover { border-color: #ffd000 !important; }
[data-theme="industrial"] .product-img-box { background: #0d0d0d !important; }
[data-theme="industrial"] .p-title { color: #fff !important; font-weight: 700 !important; }
[data-theme="industrial"] .p-price { color: #ffd000 !important; font-weight: 900 !important; }
[data-theme="industrial"] .btn-cart { background: #ffd000 !important; color: #0d0d0d !important; border-radius: 0 !important; font-weight: 800 !important; }
[data-theme="industrial"] .btn-cart:hover { background: #ffe033 !important; }
[data-theme="industrial"] .selector-area { background: #0d0d0d !important; border: 2px solid #333 !important; border-radius: 0 !important; }
[data-theme="industrial"] .bottom-nav { background: #0d0d0d !important; border-top: 3px solid #ffd000 !important; }
[data-theme="industrial"] .nav-icon { color: #666 !important; }
[data-theme="industrial"] .nav-icon.active { color: #ffd000 !important; }
[data-theme="industrial"] .icon-btn-pro, [data-theme="industrial"] .cart-link { color: #fff !important; }
[data-theme="industrial"] .cart-badge { background: #ffd000 !important; color: #0d0d0d !important; border: none !important; }
[data-theme="industrial"] .badge-rocket { background: #ffd000 !important; color: #0d0d0d !important; }

/* ========== 9. luxury 黑金奢華：襯線、細線、金 ========== */
[data-theme="luxury"] {
  --th-primary: #0a0a0a;
  --th-accent: #c9a227;
  --th-bg: #0f0f0f;
  --th-card: #1a1a1a;
  --th-text: #e5e5e5;
  --th-text-muted: #888;
  --th-border: #2a2a2a;
  --th-radius: 4px;
  --th-font: Georgia, "Times New Roman", "Noto Serif TC", serif;
}
[data-theme="luxury"] .app-header {
  background: #0a0a0a !important;
  border-bottom: 1px solid #c9a227 !important;
}
[data-theme="luxury"] .brand-logo { color: #c9a227 !important; font-weight: 600 !important; font-family: Georgia, serif !important; }
[data-theme="luxury"] .brand-logo i { color: #c9a227 !important; }
[data-theme="luxury"] .search-input { background: #1a1a1a !important; color: #e5e5e5 !important; border: 1px solid #2a2a2a !important; }
[data-theme="luxury"] .search-input::placeholder { color: #555 !important; }
[data-theme="luxury"] .sticky-promo-bar { background: #1a1a1a !important; color: #c9a227 !important; border-bottom: 1px solid #2a2a2a !important; }
[data-theme="luxury"] .sticky-promo-bar.is-free { background: #1a2a1a !important; color: #7cb87c !important; }
[data-theme="luxury"] .gold-text { color: #c9a227 !important; }
[data-theme="luxury"] .mini-fill { background: #c9a227 !important; }
[data-theme="luxury"] body { background: #0f0f0f !important; color: #e5e5e5 !important; }
[data-theme="luxury"] .category-scroll-wrapper { background: #0a0a0a !important; }
[data-theme="luxury"] .cat-icon { background: #1a1a1a !important; color: #666 !important; border: 1px solid #2a2a2a !important; }
[data-theme="luxury"] .cat-item.active .cat-icon { background: transparent !important; border-color: #c9a227 !important; color: #c9a227 !important; }
[data-theme="luxury"] .cat-name { color: #888 !important; }
[data-theme="luxury"] .cat-item.active .cat-name { color: #c9a227 !important; }
[data-theme="luxury"] .product-card {
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 4px !important;
}
[data-theme="luxury"] .product-card:hover { border-color: #c9a227 !important; box-shadow: 0 0 0 1px #c9a227 !important; }
[data-theme="luxury"] .p-title { font-family: Georgia, serif !important; font-weight: 600 !important; color: #e5e5e5 !important; }
[data-theme="luxury"] .p-price { color: #c9a227 !important; font-family: Georgia, serif !important; font-weight: 600 !important; }
[data-theme="luxury"] .btn-cart { background: transparent !important; color: #c9a227 !important; border: 1px solid #c9a227 !important; border-radius: 4px !important; }
[data-theme="luxury"] .btn-cart:hover { background: #c9a227 !important; color: #0a0a0a !important; }
[data-theme="luxury"] .selector-area { background: #0f0f0f !important; border: 1px solid #2a2a2a !important; }
[data-theme="luxury"] .bottom-nav { background: #0a0a0a !important; border-top: 1px solid #c9a227 !important; }
[data-theme="luxury"] .nav-icon { color: #555 !important; }
[data-theme="luxury"] .nav-icon.active { color: #c9a227 !important; }
[data-theme="luxury"] .icon-btn-pro, [data-theme="luxury"] .cart-link { color: #c9a227 !important; }
[data-theme="luxury"] .cart-badge { background: #c9a227 !important; color: #0a0a0a !important; border: none !important; }
[data-theme="luxury"] .badge-rocket { background: #c9a227 !important; color: #0a0a0a !important; }

/* ========== 10. market 市集暖黃：赭色、緊湊、親切 ========== */
[data-theme="market"] {
  --th-primary: #78350f;
  --th-accent: #b45309;
  --th-bg: #fef3c7;
  --th-card: #fffbeb;
  --th-text: #451a03;
  --th-text-muted: #92400e;
  --th-border: #fcd34d;
  --th-radius: 8px;
  --th-font: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
[data-theme="market"] .app-header {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  border-bottom: 3px solid #78350f !important;
}
[data-theme="market"] .brand-logo, [data-theme="market"] .brand-logo i { color: #fffbeb !important; }
[data-theme="market"] .search-input { background: rgba(255,251,235,0.95) !important; color: #451a03 !important; border: 2px solid #fcd34d !important; }
[data-theme="market"] .search-input::placeholder { color: #92400e !important; }
[data-theme="market"] .sticky-promo-bar { background: linear-gradient(90deg, #d97706 0%, #b45309 100%) !important; color: #fffbeb !important; }
[data-theme="market"] .sticky-promo-bar.is-free { background: linear-gradient(90deg, #059669 0%, #047857 100%) !important; color: #d1fae5 !important; }
[data-theme="market"] .gold-text { color: #fcd34d !important; }
[data-theme="market"] .mini-fill { background: #fcd34d !important; }
[data-theme="market"] body { background: #fef3c7 !important; color: #451a03 !important; }
[data-theme="market"] .category-scroll-wrapper { background: #fffbeb !important; border-bottom: 2px solid #fcd34d !important; }
[data-theme="market"] .cat-icon { background: #fef3c7 !important; color: #b45309 !important; border: 2px solid #fcd34d !important; }
[data-theme="market"] .cat-item.active .cat-icon { background: #b45309 !important; color: #fffbeb !important; border-color: #b45309 !important; }
[data-theme="market"] .cat-name { color: #92400e !important; }
[data-theme="market"] .cat-item.active .cat-name { color: #78350f !important; font-weight: 700 !important; }
[data-theme="market"] .product-card {
  background: #fffbeb !important;
  border: 2px solid #fcd34d !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(180,83,9,0.1) !important;
}
[data-theme="market"] .product-card:hover { border-color: #b45309 !important; box-shadow: 0 4px 16px rgba(180,83,9,0.2) !important; }
[data-theme="market"] .product-img-box { background: #fef3c7 !important; }
[data-theme="market"] .p-title { color: #451a03 !important; font-weight: 600 !important; }
[data-theme="market"] .p-price { color: #b45309 !important; font-weight: 800 !important; }
[data-theme="market"] .btn-cart { background: #b45309 !important; color: #fffbeb !important; border-radius: 8px !important; font-weight: 700 !important; }
[data-theme="market"] .btn-cart:hover { background: #d97706 !important; }
[data-theme="market"] .selector-area { background: #fef3c7 !important; border: 2px solid #fcd34d !important; }
[data-theme="market"] .bottom-nav { background: #fffbeb !important; border-top: 3px solid #fcd34d !important; }
[data-theme="market"] .nav-icon { color: #92400e !important; }
[data-theme="market"] .nav-icon.active { color: #b45309 !important; font-weight: 700 !important; }
[data-theme="market"] .icon-btn-pro, [data-theme="market"] .cart-link { color: #fffbeb !important; }
[data-theme="market"] .cart-badge { background: #78350f !important; color: #fcd34d !important; border: none !important; }
[data-theme="market"] .badge-rocket { background: #b45309 !important; color: #fffbeb !important; }

/* 商品卡片邊框變數（預設未在 index 定義時由主題提供） */
[data-theme="default"] .product-card,
[data-theme="amazon"] .product-card,
[data-theme="apple"] .product-card,
[data-theme="shopee"] .product-card,
[data-theme="muji"] .product-card,
[data-theme="dark"] .product-card,
[data-theme="pink"] .product-card,
[data-theme="industrial"] .product-card,
[data-theme="luxury"] .product-card,
[data-theme="market"] .product-card {
  border-color: var(--th-border, #E5E7EB);
}

/* ========== 商品詳情頁 (product_detail.html) 主題覆寫 ========== */
[data-theme="amazon"] .product-main { background: #fff !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; }
[data-theme="amazon"] .product-price { color: #b12704 !important; }
[data-theme="amazon"] .btn-add-cart { background: #ffd814 !important; color: #0f1111 !important; }
[data-theme="apple"] .product-main { background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important; border-radius: 18px !important; }
[data-theme="apple"] .product-price { color: #1d1d1f !important; }
[data-theme="apple"] .btn-add-cart { background: #0071e3 !important; color: #fff !important; border-radius: 980px !important; }
[data-theme="shopee"] .product-main { box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important; }
[data-theme="shopee"] .product-price { color: #ee4d2d !important; }
[data-theme="shopee"] .btn-add-cart { background: #ee4d2d !important; color: #fff !important; }
[data-theme="muji"] .product-main { background: #faf8f5 !important; border: 1px solid #e8e2d9 !important; }
[data-theme="muji"] .product-price { color: #3e3e3e !important; }
[data-theme="muji"] .btn-add-cart { background: #8b7355 !important; color: #faf8f5 !important; }
[data-theme="dark"] body { background: #1a1a2e !important; color: #e8e8e8 !important; }
[data-theme="dark"] .product-main { background: #16213e !important; border: 1px solid #2a2a4a !important; }
[data-theme="dark"] .product-info h1, [data-theme="dark"] .product-price { color: #00d9ff !important; }
[data-theme="dark"] .btn-add-cart { background: #00d9ff !important; color: #0f0f14 !important; }
[data-theme="dark"] .reviews-section { background: #16213e !important; border: 1px solid #2a2a4a !important; }
[data-theme="pink"] .product-main { border: 1px solid #f5e0e3 !important; box-shadow: 0 4px 16px rgba(183,110,121,0.08) !important; border-radius: 20px !important; }
[data-theme="pink"] .product-price { color: #b76e79 !important; }
[data-theme="pink"] .btn-add-cart { background: linear-gradient(135deg, #b76e79 0%, #d4a5a5 100%) !important; color: #fff !important; border-radius: 20px !important; }
[data-theme="industrial"] body { background: #0d0d0d !important; color: #fff !important; }
[data-theme="industrial"] .product-main { background: #1a1a1a !important; border: 2px solid #333 !important; }
[data-theme="industrial"] .product-info h1 { color: #fff !important; }
[data-theme="industrial"] .product-price { color: #ffd000 !important; }
[data-theme="industrial"] .btn-add-cart { background: #ffd000 !important; color: #0d0d0d !important; }
[data-theme="luxury"] body { background: #0f0f0f !important; color: #e5e5e5 !important; }
[data-theme="luxury"] .product-main { background: #1a1a1a !important; border: 1px solid #2a2a2a !important; }
[data-theme="luxury"] .product-price { color: #c9a227 !important; }
[data-theme="luxury"] .btn-add-cart { background: transparent !important; color: #c9a227 !important; border: 1px solid #c9a227 !important; }
[data-theme="luxury"] .btn-add-cart:hover { background: #c9a227 !important; color: #0a0a0a !important; }
[data-theme="market"] .product-main { background: #fffbeb !important; border: 2px solid #fcd34d !important; }
[data-theme="market"] .product-price { color: #b45309 !important; }
[data-theme="market"] .btn-add-cart { background: #b45309 !important; color: #fffbeb !important; }

/* 商品詳情頁 header 在深色主題下文字顏色 */
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .brand-logo span,
[data-theme="industrial"] .brand-logo,
[data-theme="industrial"] .brand-logo span,
[data-theme="luxury"] .brand-logo,
[data-theme="luxury"] .brand-logo span { color: inherit !important; }
[data-theme="dark"] .brand-logo { color: #00d9ff !important; }
[data-theme="industrial"] .brand-logo { color: #fff !important; }
[data-theme="luxury"] .brand-logo { color: #c9a227 !important; }
