/* =====================================================
   桌遊樂園 / BoardGame Paradise
   設計參考：wobgames.net
   配色：Hermès 橙主色 #E65C00 / #FF7F2A、扁平風格、Poppins + Lato
   ===================================================== */

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

:root {
  /* wobgames.net 配色 */
  --primary: #E65C00;
  --primary-hover: #F26A0A;
  --primary-light: #FF7F2A;
  --primary-dark: #CC4F00;
  --accent: #c1272d;
  
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-footer: #494949;
  
  --text: #242424;
  --text-dark: #333333;
  --text-light: #777777;
  --text-muted: #a5a5a5;
  
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  
  --white: #ffffff;
  --black: #000000;
  
  --radius: 0px;
  --radius-sm: 4px;
  --radius-btn: 35px;
  
  --transition: all 0.25s ease;
  
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Lato', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

select {
  font-family: inherit;
  cursor: pointer;
}

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

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  padding: 6px 0;
}

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

.top-bar-text {
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* ===== Header / Navigation ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 0.67px solid var(--border);
  height: 60px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.logo-icon {
  font-size: 22px;
}

.logo-text {
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-light);
  transition: var(--transition);
}

.lang-btn.active {
  color: var(--primary);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-sep {
  color: var(--text-muted);
  font-size: 12px;
}

/* 幣別切換 */
.curr-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.curr-btn {
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-light);
  transition: var(--transition);
}

.curr-btn.active,
.curr-btn:hover {
  color: var(--primary);
}

/* 結帳信用卡手續費提示 */
.card-fee-note {
  font-size: 12px;
  color: var(--text-light);
  margin: 6px 0 0;
}

/* ===== 詳情頁圖片輪播 ===== */
.product-modal-image {
  position: relative;
}

.carousel-btn {
  display: none;
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Search */
.nav-search {
  position: relative;
}

.nav-search input {
  width: 180px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  transition: var(--transition);
}

.nav-search input:focus {
  border-color: var(--primary);
  outline: none;
}

.nav-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

/* Cart Button */
.cart-btn {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-heading);
}

/* ===== Hero Section ===== */
.hero {
  background: var(--white);
  padding: 70px 0;
  border-bottom: 1px solid var(--border-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  padding-right: 20px;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 18px;
  font-family: var(--font-heading);
}

.hero-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 480px;
}

.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 36px;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--primary-dark);
}

.hero-img-wrapper {
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  overflow: hidden;
}

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

/* Hero 數據統計（由商品資料動態填入） */
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.4px;
}

/* 篩選列右側下拉選單 */
.filter-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.filter-btn.active .filter-count {
  color: var(--primary);
}

.product-price.ask {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

/* ===== Products Section ===== */
.products-section {
  padding: 70px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-light);
}

/* Filters */
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  border-right: 1px solid var(--border-light);
  transition: var(--transition);
}

.filter-btn:first-child {
  border-left: 1px solid var(--border-light);
}

.filter-btn:hover {
  color: var(--primary);
}

.filter-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.sort-select {
  padding: 10px 30px 10px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  border-radius: 0;
  appearance: auto;
}

.sort-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

/* ===== Product Card (wobgames 風格) ===== */
.product-card {
  background: var(--white);
  border: none;
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  opacity: 0.88;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 12px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保持原圖比例不裁切，高度與框架一致 */
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

/* Badge - Featured/Hot/Sale 圓形徽章 */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.badge-stock {
  padding: 5px 10px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-stock.in {
  background: var(--primary);
  color: var(--white);
}

.badge-stock.out {
  background: #242424;
  color: var(--white);
}

.badge-stock.preorder {
  background: #8a5a00;
  color: var(--white);
}

.badge-stock.used {
  background: #555;
  color: var(--white);
}

/* Quick Add - 圓形按鈕浮在右下角 */
.quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  padding: 8px;
  text-align: center;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: none;
}

/* 按鈕文字換行規則：中文每行兩字、兩兩對齊；英文按單詞換行不截斷 */
.quick-add .qa-text {
  display: block;
}
html[lang="zh"] .quick-add .qa-text {
  max-width: 2em;
}
html[lang="en"] .quick-add {
  font-size: 11px;
  overflow-wrap: break-word;
}

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

.quick-add:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.quick-add:disabled {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* Product Info */
.product-info {
  padding: 0 2px;
}

.product-category {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-desc {
  display: none; /* wobgames 產品卡片不顯示描述 */
}

.product-specs {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

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

.product-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-light);
  font-family: var(--font-heading);
}

/* ===== Cart Panel ===== */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.cart-empty h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.cart-empty p {
  color: var(--text-light);
  font-size: 13px;
}

.cart-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: fill;
}

.cart-item-info h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.qty-num {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
}

.cart-item-subtotal {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary);
  min-width: 80px;
  text-align: right;
  font-size: 13px;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.cart-item-remove:hover {
  background: var(--primary);
  color: var(--white);
}

/* Cart Footer */
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.free-shipping-progress {
  text-align: center;
  padding: 10px;
  background: #fdf2f2;
  border: 1px dashed var(--primary);
  color: var(--primary);
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-light);
}

.cart-summary-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 6px;
}

.cart-actions {
  display: flex;
  gap: 12px;
}

.btn-clear {
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  flex: 0 0 auto;
  transition: var(--transition);
}

.btn-clear:hover {
  background: #242424;
  border-color: #242424;
  color: var(--white);
}

.btn-checkout {
  flex: 1;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--primary-dark);
}

/* ===== Checkout Modal ===== */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal.open {
  display: flex;
}

.checkout-container {
  background: var(--white);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.checkout-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.checkout-close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}

.checkout-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.checkout-body {
  padding: 30px;
}

.checkout-summary {
  background: var(--bg-alt);
  padding: 20px;
  margin-bottom: 24px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-light);
}

.checkout-summary-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 6px;
}

.payment-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

#paypal-button-container {
  min-height: 80px;
}

/* ===== 結帳兩步流程 ===== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.checkout-field input,
.checkout-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

.checkout-error {
  color: #dc2626;
  font-size: 0.88rem;
  margin: 0;
}

.checkout-customer {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.checkout-customer strong {
  color: var(--text);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.payment-method {
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s;
}

.payment-method small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.payment-method.active {
  border-color: var(--primary);
  background: #eef2ff;
}

.qr-instruction {
  text-align: center;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
}

.qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  margin-bottom: 12px;
}

.qr-box img {
  max-width: 260px;
  max-height: 260px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.qr-pending {
  width: 220px;
  height: 220px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.qr-amount {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.qr-amount strong {
  color: var(--primary);
}

.qr-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px;
  margin-top: 4px;
  align-self: flex-start;
}

.btn-back:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PayPal States */
.paypal-empty,
.paypal-unavailable,
.paypal-error {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 13px;
}

.paypal-error {
  color: var(--primary);
}

.paypal-loading {
  text-align: center;
  padding: 30px;
  color: var(--text-light);
  font-size: 13px;
}

.paypal-not-configured {
  text-align: center;
  padding: 24px 20px;
  background: #fdf2f2;
  border: 1px dashed var(--primary);
}

.paypal-config-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.paypal-not-configured h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.paypal-not-configured p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.paypal-not-configured code {
  background: #fce8e8;
  color: var(--primary);
  padding: 2px 6px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

.paypal-config-link {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  margin-bottom: 14px;
}

.paypal-config-link:hover {
  background: var(--primary-dark);
}

.paypal-config-amount {
  padding-top: 12px;
  border-top: 1px dashed var(--primary);
  font-size: 12px;
  color: var(--text-light);
}

.paypal-config-amount strong {
  color: var(--primary);
  font-size: 14px;
  margin-left: 6px;
}

/* Success View */
.success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 10px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.success-view h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.success-view p {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 24px;
}

.order-info {
  background: var(--bg-alt);
  padding: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

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

.order-info-item strong {
  color: var(--text-dark);
}

.status-success {
  color: var(--primary);
  font-weight: 600;
}

.btn-continue {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 32px;
  transition: var(--transition);
}

.btn-continue:hover {
  background: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-about .footer-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.75;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  font-size: 13px;
  opacity: 0.7;
  transition: var(--transition);
}

.footer a:hover {
  opacity: 1;
  color: var(--white);
}

/* ===== Product Detail Modal ===== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 350;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

.product-modal.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-modal-container {
  background: var(--white);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  border-radius: 4px;
  animation: slideUp 0.25s ease;
}

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

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-modal-image {
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  background: var(--white);
}

.modal-thumb.active {
  border-color: var(--primary);
}

/* 語言版本選項 */
.variant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.variant-btn.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.variant-btn .variant-price {
  color: var(--primary);
  font-weight: 600;
}

/* 商品卡上的版本數 */
.product-versions {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-variant {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.cart-used {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  background: #555;
  color: #fff;
  margin-left: 4px;
  vertical-align: middle;
}

.product-modal-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-modal-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-modal-category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.product-modal-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.modal-used-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #555;
  color: #fff;
  margin-bottom: 8px;
}

.product-modal-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--primary);
  font-family: var(--font-heading);
}

.product-modal-price .price-hkd {
  font-size: 13px;
  font-weight: 500;
}

.product-modal-price span:last-child {
  font-size: 28px;
  font-weight: 700;
}

.product-modal-specs h4,
.product-modal-desc h4,
.product-modal-variants h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.spec-item {
  background: var(--bg-alt);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-dark);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-icon {
  font-size: 16px;
}

.product-modal-desc p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-light);
  text-align: justify;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.product-modal-desc p::-webkit-scrollbar {
  width: 4px;
}

.product-modal-desc p::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.product-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-add-cart {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  width: 100%;
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.btn-add-cart:disabled {
  background: var(--border);
  cursor: not-allowed;
}

/* Product Card click hint */
.product-card {
  cursor: pointer;
}

/* Responsive for modal */
@media (max-width: 768px) {
  .product-modal-body {
    grid-template-columns: 1fr;
  }
  .product-modal-image {
    padding: 20px;
    max-height: 300px;
  }
  .product-modal-image img {
    max-height: 280px;
  }
  .product-modal-info {
    padding: 24px;
  }
  .product-modal-name {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 500;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Error ===== */
.error-message {
  text-align: center;
  padding: 100px 20px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-search input {
    width: 140px;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero-text h1 {
    font-size: 24px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .product-name {
    font-size: 13px;
  }
  
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: flex-start;
    overflow-x: auto;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  .cart-panel {
    width: 100%;
  }
  
  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  
  .cart-item-subtotal {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
  
  .cart-item-qty {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* 手機版保留語言／幣別切換（精簡版，不隱藏） */
  .lang-switch,
  .curr-switch {
    display: flex;
    flex-shrink: 0;
    gap: 5px;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .lang-btn,
  .curr-btn {
    padding: 4px 3px;
    font-size: 12px;
  }

  .lang-sep {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  
  .nav-search {
    display: none;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .quick-add {
    width: 56px;
    height: 56px;
    font-size: 11px;
    padding: 6px;
  }
  
  .cart-actions {
    flex-direction: column;
  }
  
  .btn-clear {
    width: 100%;
  }
}

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.page-btn { padding: 8px 14px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all .2s; }
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-ellipsis { color: #999; }
.page-total { margin-left: 12px; color: #888; font-size: 13px; }

/* ===== WhatsApp 浮動聯絡按鈕 ===== */
.whatsapp-fab { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 12px 20px; border-radius: 50px; box-shadow: 0 4px 14px rgba(0,0,0,.22); text-decoration: none; font-family: var(--font-heading); font-size: 15px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.whatsapp-fab:hover { background: #1EBE5B; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.whatsapp-fab svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
@media (max-width: 768px) { .whatsapp-fab { right: 16px; bottom: 16px; padding: 12px; } .whatsapp-fab span { display: none; } }

/* ===== 手機版優化 ===== */
/* 觸控裝置沒有 hover，快速加入按鈕常駐顯示 */
@media (hover: none) {
  .product-card .quick-add {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  /* 頂欄 */
  .top-bar-text {
    font-size: 11px;
  }

  /* 導航：兩行排列（logo 一行、控制項一行） */
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 0;
    row-gap: 8px;
  }

  .nav-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    order: 3;
  }

  .nav-search {
    flex: 1;
    min-width: 0;
  }

  .nav-search input {
    width: 100%;
    font-size: 16px; /* 防止 iOS 聚焦自動放大 */
  }

  .lang-btn,
  .curr-btn {
    font-size: 12px;
    padding: 4px 2px;
  }

  /* Hero */
  .hero {
    padding: 36px 0;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .hero-image {
    display: none; /* 手機版隱藏大圖，加快載入 */
  }

  /* 商品卡 */
  .product-specs {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  /* 購物車面板 */
  .cart-panel {
    width: 100%;
    border-left: none;
  }

  /* 結帳彈窗：底部彈窗式 */
  .checkout-modal {
    align-items: flex-end;
    padding: 0;
  }

  .checkout-container {
    max-width: 100%;
    max-height: calc(100dvh - 16px);
    margin: 0;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px;
  }

  /* 產品彈窗貼邊全屏 */
  .product-modal {
    align-items: flex-end;
    padding: 0;
  }

  .product-modal-container {
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: calc(100dvh - 16px);
  }

  /* 頁尾單欄 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .stat-num {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .toast {
    width: calc(100% - 32px);
    text-align: center;
  }
}

/* ===== 問問AI 按鈕與對話框 ===== */
.ai-fab { position: fixed; right: 24px; bottom: 92px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #6a5af9, #8e2de2); color: #fff; padding: 12px 20px; border: none; border-radius: 50px; box-shadow: 0 4px 14px rgba(0,0,0,.22); cursor: pointer; font-family: var(--font-heading); font-size: 15px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.ai-fab svg { width: 24px; height: 24px; flex-shrink: 0; }

.ai-chat { position: fixed; right: 24px; bottom: 160px; z-index: 950; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100dvh - 200px); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: none; flex-direction: column; overflow: hidden; }
.ai-chat.open { display: flex; }
.ai-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(135deg, #6a5af9, #8e2de2); color: #fff; font-family: var(--font-heading); font-weight: 600; }
.ai-chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.ai-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f5f2; }
.ai-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.ai-msg-bot { align-self: flex-start; background: #fff; border: 1px solid #e8e4de; border-bottom-left-radius: 4px; }
.ai-msg-user { align-self: flex-end; background: #6a5af9; color: #fff; border-bottom-right-radius: 4px; }
.ai-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; background: #fff; }
.ai-input-row { display: flex; gap: 8px; padding: 8px 12px; background: #fff; }
.ai-input-row input { flex: 1; border: 1.5px solid #ddd; border-radius: 20px; padding: 7px 14px; font-size: 13px; outline: none; transition: border-color .15s; }
.ai-input-row input:focus { border-color: #6a5af9; }
.ai-input-row button { background: linear-gradient(135deg, #6a5af9, #8e2de2); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.ai-chip { border: 1.5px solid #6a5af9; color: #6a5af9; background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ai-chip:hover { background: #6a5af9; color: #fff; }
.ai-recs { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ai-rec { display: flex; gap: 10px; background: #faf9f7; border: 1px solid #e8e4de; border-radius: 10px; padding: 8px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.ai-rec:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }
.ai-rec img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; flex-shrink: 0; }
.ai-rec-info { min-width: 0; flex: 1; }
.ai-rec-name { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-rec-specs { font-size: 11px; color: #8a8580; margin: 2px 0; }
.ai-rec-price { font-size: 13px; font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
  .ai-fab { right: 16px; bottom: 76px; padding: 12px; }
  .ai-fab span { display: none; }
  .ai-chat { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 70dvh; max-height: 70dvh; border-radius: 16px 16px 0 0; }
}

.hk-only-note { font-size: 11px; color: #999; font-weight: normal; }

/* ===== 會員系統 ===== */
.member-btn { background: none; border: 1.5px solid #ddd; border-radius: 20px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: #333; white-space: nowrap; }
.member-btn:hover { border-color: #6a5af9; color: #6a5af9; }
.auth-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 3000; display: none; align-items: center; justify-content: center; }
.auth-modal.open { display: flex; }
.auth-box { background: #fff; border-radius: 14px; padding: 26px 24px 22px; width: 400px; max-width: 92vw; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.auth-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 16px; cursor: pointer; color: #999; }
.auth-close:hover { color: #333; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs button { flex: 1; padding: 9px 0; border: 1.5px solid #ddd; background: #f7f7f7; border-radius: 8px; font-size: 14px; cursor: pointer; }
.auth-tabs button.active { border-color: #6a5af9; color: #6a5af9; background: #f3f1ff; font-weight: 600; }
.auth-form input { display: block; width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; }
.auth-form input:focus { border-color: #6a5af9; }
.auth-err { display: none; color: #d33; font-size: 13px; margin: 0 0 8px; }
.auth-submit { width: 100%; padding: 11px 0; background: linear-gradient(135deg, #6a5af9, #8e2de2); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.member-title { margin: 0 0 14px; font-size: 18px; }
.member-subtitle { margin: 18px 0 8px; font-size: 15px; }
.member-info { background: #f7f7fb; border-radius: 10px; padding: 12px 14px; }
.member-row { display: flex; gap: 8px; font-size: 14px; padding: 3px 0; }
.member-row span { color: #888; min-width: 52px; }
.member-loading, .member-empty { color: #999; font-size: 13px; text-align: center; padding: 14px 0; }
.order-card { border: 1px solid #eee; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.order-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.order-status.order-pending { background: #fff3e0; color: #e65100; }
.order-status.order-paid { background: #e8f5e9; color: #2e7d32; }
.order-card-meta { font-size: 12px; color: #888; margin: 4px 0 6px; }
.order-card-items { margin: 0; padding-left: 18px; font-size: 13px; color: #444; }
.member-logout { margin-top: 16px; background: #eee; color: #555; }
@media (max-width: 768px) {
  .member-btn { padding: 4px 9px; }
}
