/* ═══════════════════════════════════════════
   熊本商城 — 深色毛玻璃風格 v4.0
   配色對應 xiongds.com WordPress 主題
   背景 #18171d · 金色 #ffc848
   ═══════════════════════════════════════════ */

/* ── 全域設計 ── */
body {
  background: linear-gradient(135deg, #18171d 0%, #1d1e22 50%, #18171d 100%) !important;
  background-attachment: fixed !important;
  color: #F7F7FA !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* ── 頁首導航 ── */
.header-navbar {
  background: rgba(29,30,34,0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.4) !important;
  padding: 14px 0 !important;
}

.header-navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.topnav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.topnav-logo img {
  border-radius: 50% !important;
  border: 2px solid rgba(255,200,72,0.2) !important;
  box-shadow: 0 0 12px rgba(255,200,72,0.08) !important;
  height: 40px !important;
  width: 40px !important;
  object-fit: cover !important;
}

.logo-title {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #F7F7FA !important;
  letter-spacing: 1px !important;
}

/* ── 搜尋框 ── */
.app-search .form-control {
  background: rgba(33,35,42,0.7) !important;
  border: 1px solid rgba(61,61,63,0.5) !important;
  border-radius: 12px !important;
  color: #F7F7FA !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  transition: all 0.3s !important;
}
.app-search .form-control:focus {
  border-color: rgba(255,200,72,0.3) !important;
  box-shadow: 0 0 12px rgba(255,200,72,0.08) !important;
  background: rgba(33,35,42,0.9) !important;
}
.app-search .form-control::placeholder { color: #6b6b7a !important; }
.app-search .uil-search { color: rgba(255,255,255,0.12) !important; }

/* ── 頁面標題區 ── */
.page-title-box {
  background: rgba(29,30,34,0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin: 1rem 0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}

.page-title { color: #F7F7FA !important; font-size: 1.1rem !important; font-weight: 700 !important; }

/* ── 分類標籤頁 ── */
.nav-list {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}

.tab-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 20px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(61,61,63,0.5) !important;
  background: rgba(29,30,34,0.4) !important;
  color: #a1a2b8 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
}
.tab-link:hover {
  border-color: rgba(255,200,72,0.2) !important;
  background: rgba(255,200,72,0.04) !important;
  color: #ffc848 !important;
}
.tab-link.active {
  border-color: rgba(255,200,72,0.3) !important;
  background: rgba(255,200,72,0.08) !important;
  color: #ffc848 !important;
  font-weight: 700 !important;
}
.img-checkmark { display: flex !important; align-items: center !important; justify-content: center !important; }

/* ── 商品卡片 ── */
.card, .product-card, .home-card {
  background: rgba(29,30,34,0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(61,61,63,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
  transition: all 0.3s !important;
  color: #F7F7FA !important;
}
.card:hover, .product-card:hover, .home-card:hover {
  border-color: rgba(255,200,72,0.15) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px rgba(255,200,72,0.04) !important;
  transform: translateY(-2px) !important;
}

.card-header, .card-footer {
  background: rgba(33,35,42,0.5) !important;
  border-bottom: 1px solid rgba(61,61,63,0.3) !important;
  color: #F7F7FA !important;
}
.card-body { color: #c8c9d4 !important; }
.card-title { color: #F7F7FA !important; font-weight: 700 !important; }
.card-text, .card-body p, .card-body span { color: #c8c9d4 !important; }

/* ── 首頁商品網格 ── */
.hyper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 14px !important;
}

.home-card.category {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
}

.home-img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: rgba(33,35,42,0.5) !important;
}

.home-card .flex {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.home-card .name {
  color: #F7F7FA !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.home-card .price {
  color: #ffc848 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}
.home-card .price b { color: #ffc848 !important; }

/* ── 缺貨標籤 ── */
.ribbon-two { background: #ff7b89 !important; }
.ribbon-two-danger { background: rgba(255,123,137,0.15) !important; color: #ff7b89 !important; border: 1px solid rgba(255,123,137,0.2) !important; }

/* ── 按鈕 ── */
.btn-primary {
  background: rgba(255,200,72,0.1) !important;
  border: 1px solid rgba(255,200,72,0.2) !important;
  color: #ffc848 !important;
  border-radius: 10px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}
.btn-primary:hover {
  background: rgba(255,200,72,0.15) !important;
  border-color: rgba(255,200,72,0.35) !important;
  color: #ffd966 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 12px rgba(255,200,72,0.15) !important;
}

.btn-outline-primary {
  background: transparent !important;
  border: 1px solid rgba(255,200,72,0.15) !important;
  color: #ffc848 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}
.btn-outline-primary:hover {
  background: rgba(255,200,72,0.06) !important;
  border-color: rgba(255,200,72,0.3) !important;
  color: #ffd966 !important;
  box-shadow: 0 2px 8px rgba(255,200,72,0.08) !important;
}

.btn-success {
  background: rgba(87,189,106,0.1) !important;
  border: 1px solid rgba(87,189,106,0.2) !important;
  color: #57bd6a !important;
  border-radius: 10px !important;
}
.btn-success:hover {
  background: rgba(87,189,106,0.15) !important;
  border-color: rgba(87,189,106,0.35) !important;
}

.btn-danger {
  background: rgba(255,123,137,0.1) !important;
  border: 1px solid rgba(255,123,137,0.2) !important;
  color: #ff7b89 !important;
  border-radius: 10px !important;
}
.btn-danger:hover {
  background: rgba(255,123,137,0.15) !important;
  border-color: rgba(255,123,137,0.35) !important;
  box-shadow: 0 2px 8px rgba(255,123,137,0.1) !important;
}

.btn-warning {
  background: rgba(255,200,72,0.1) !important;
  border: 1px solid rgba(255,200,72,0.2) !important;
  color: #ffc848 !important;
  border-radius: 10px !important;
}

.btn-info {
  background: rgba(87,189,106,0.1) !important;
  border: 1px solid rgba(87,189,106,0.2) !important;
  color: #57bd6a !important;
  border-radius: 10px !important;
}

/* ── 購買頁面 ── */
.buy-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
@media (max-width: 768px) {
  .buy-grid { grid-template-columns: 1fr !important; }
}

.buy-shop .card { position: sticky !important; top: 20px !important; }

.buy-price { color: #ffc848 !important; font-size: 1.6rem !important; font-weight: 800 !important; }
.buy-title { color: #a1a2b8 !important; font-size: 0.85rem !important; font-weight: 600 !important; margin-bottom: 6px !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }

/* ── 支付方式按鈕 ── */
.pay-grid { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }
.pay-type {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(61,61,63,0.5) !important;
  background: rgba(33,35,42,0.5) !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pay-type:hover { border-color: rgba(255,200,72,0.2) !important; background: rgba(255,200,72,0.04) !important; }
.pay-type.active { border-color: rgba(255,200,72,0.35) !important; background: rgba(255,200,72,0.08) !important; box-shadow: 0 0 12px rgba(255,200,72,0.08) !important; }

/* ── 表單輸入 ── */
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  background: rgba(33,35,42,0.6) !important;
  border: 1px solid rgba(61,61,63,0.5) !important;
  border-radius: 10px !important;
  color: #F7F7FA !important;
  padding: 8px 14px !important;
  font-size: 0.9rem !important;
  transition: all 0.3s !important;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  border-color: rgba(255,200,72,0.3) !important;
  box-shadow: 0 0 10px rgba(255,200,72,0.06) !important;
  background: rgba(33,35,42,0.85) !important;
  color: #F7F7FA !important;
}
.form-control::placeholder { color: #6b6b7a !important; }

/* ── 訂單資訊區 ── */
.orderinfo-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
.orderinfo-card-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
}
@media (max-width: 768px) {
  .orderinfo-card-grid { grid-template-columns: 1fr !important; }
}
.orderinfo-info label { color: #ffc848 !important; font-weight: 600 !important; min-width: 80px !important; display: inline-block !important; }
.orderinfo-info span { color: #c8c9d4 !important; }
.textarea-kami { background: rgba(33,35,42,0.6) !important; border: 1px solid rgba(61,61,63,0.5) !important; border-radius: 10px !important; color: #57bd6a !important; font-family: "SF Mono", monospace !important; }

/* ── 表格 ── */
.table { color: #c8c9d4 !important; }
.table thead th {
  border-bottom: 2px solid rgba(255,200,72,0.12) !important;
  color: #ffc848 !important;
  font-weight: 700 !important;
}
.table td, .table th { border-top: 1px solid rgba(61,61,63,0.3) !important; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(33,35,42,0.3) !important; }
.table-hover tbody tr:hover { background: rgba(255,200,72,0.03) !important; }

/* ── 連結 ── */
a { color: #ffc848 !important; text-decoration: none !important; transition: color 0.2s !important; }
a:hover { color: #ffd966 !important; }

/* ── 頁尾 ── */
.hyper-footer {
  background: rgba(29,30,34,0.5) !important;
  border-top: 1px solid rgba(255,255,255,0.03) !important;
  color: rgba(255,255,255,0.2) !important;
  font-size: 0.8rem !important;
  text-align: center !important;
  padding: 1.5rem 0 !important;
  backdrop-filter: blur(12px) !important;
}
.footer-links { color: rgba(255,255,255,0.2) !important; }
.footer-links a { color: rgba(255,200,72,0.4) !important; }
.footer-links a:hover { color: #ffc848 !important; }

/* ── 模態框 ── */
.modal-content {
  background: rgba(29,30,34,0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(61,61,63,0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5) !important;
}
.modal-header { border-bottom: 1px solid rgba(61,61,63,0.3) !important; }
.modal-footer { border-top: 1px solid rgba(61,61,63,0.3) !important; }
.modal-title { color: #F7F7FA !important; font-weight: 700 !important; }
.close, .btn-close { color: rgba(255,255,255,0.3) !important; opacity: 0.8 !important; }
.close:hover, .btn-close:hover { color: #fff !important; opacity: 1 !important; }

/* ── 提示框 ── */
.alert { border-radius: 12px !important; border: 1px solid !important; }
.alert-success { background: rgba(87,189,106,0.08) !important; border-color: rgba(87,189,106,0.15) !important; color: #57bd6a !important; }
.alert-danger { background: rgba(255,123,137,0.08) !important; border-color: rgba(255,123,137,0.15) !important; color: #ff7b89 !important; }
.alert-info { background: rgba(255,200,72,0.06) !important; border-color: rgba(255,200,72,0.12) !important; color: #ffc848 !important; }
.alert-warning { background: rgba(255,200,72,0.08) !important; border-color: rgba(255,200,72,0.15) !important; color: #ffc848 !important; }
.alert-dark { background: rgba(33,35,42,0.6) !important; border-color: rgba(61,61,63,0.4) !important; color: #c8c9d4 !important; }

/* ── 徽章 ── */
.badge { border-radius: 8px !important; padding: 4px 10px !important; font-weight: 600 !important; }
.badge-outline-primary { border: 1px solid rgba(255,200,72,0.2) !important; color: #ffc848 !important; background: rgba(255,200,72,0.04) !important; }
.badge-outline-danger { border: 1px solid rgba(255,123,137,0.2) !important; color: #ff7b89 !important; background: rgba(255,123,137,0.04) !important; }
.badge-outline-dark { border: 1px solid rgba(61,61,63,0.5) !important; color: #a1a2b8 !important; background: rgba(33,35,42,0.4) !important; }

/* ── 分頁 ── */
.pagination .page-link {
  background: rgba(29,30,34,0.5) !important;
  border: 1px solid rgba(61,61,63,0.4) !important;
  color: #a1a2b8 !important;
  border-radius: 8px !important;
  margin: 0 2px !important;
  transition: all 0.3s !important;
}
.pagination .page-item.active .page-link {
  background: rgba(255,200,72,0.1) !important;
  border-color: rgba(255,200,72,0.25) !important;
  color: #ffc848 !important;
  font-weight: 700 !important;
}
.pagination .page-link:hover {
  background: rgba(255,200,72,0.04) !important;
  border-color: rgba(255,200,72,0.15) !important;
  color: #ffc848 !important;
}

/* ── 特殊顏色 ── */
.price, .product-price, .text-primary { color: #ffc848 !important; }
.text-muted { color: rgba(255,255,255,0.2) !important; }
.text-white { color: #fff !important; }
.text-dark { color: #F7F7FA !important; }
.text-danger { color: #ff7b89 !important; }
.text-success { color: #57bd6a !important; }
h1, h2, h3, h4, h5, h6 { color: #F7F7FA !important; }
small, del { color: rgba(255,255,255,0.25) !important; }
hr { border-color: rgba(61,61,63,0.4) !important; }
.container { max-width: 1280px !important; }

/* ── 導覽按鈕 ── */
a.btn.btn-outline-primary {
  border-radius: 10px !important;
  border: 1px solid rgba(255,200,72,0.15) !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  color: #ffc848 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.3s !important;
}
a.btn.btn-outline-primary:hover {
  background: rgba(255,200,72,0.06) !important;
  border-color: rgba(255,200,72,0.3) !important;
}

/* ── 自訂捲軸 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,200,72,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,200,72,0.2); }

/* ── 圖片 ── */
.card-img-top, .product-img { border-radius: 12px 12px 0 0 !important; }
.home-img[src*="loading.gif"] { opacity: 0.6; }

/* ── 商品內容區（購買頁右側） ── */
.buy-product { line-height: 1.8 !important; }
.buy-product img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.buy-product h5.card-title { color: #ffc848 !important; font-size: 1rem !important; margin-bottom: 1rem !important; }

/* ── 導航 Tab（搜尋頁） ── */
.nav-tabs .nav-link {
  color: #a1a2b8 !important;
  border: 1px solid transparent !important;
  border-radius: 10px 10px 0 0 !important;
  transition: all 0.3s !important;
}
.nav-tabs .nav-link:hover { color: #ffc848 !important; border-color: rgba(61,61,63,0.3) !important; }
.nav-tabs .nav-link.active {
  color: #ffc848 !important;
  background: rgba(29,30,34,0.5) !important;
  border-color: rgba(61,61,63,0.4) !important;
  border-bottom-color: rgba(29,30,34,0.5) !important;
  font-weight: 700 !important;
}
.nav-bordered .nav-tabs { border-bottom: 1px solid rgba(61,61,63,0.3) !important; }

/* ── 下拉選單 ── */
select option { background: #1d1e22 !important; color: #F7F7FA !important; }

/* ── 缺貨商品提示 ── */
.sticky { position: sticky !important; top: 20px !important; }

/* ── Toast 通知 ── */
.notifyjs-container { z-index: 9999 !important; }

/* ── 頁首連結選單列 ── */
.header-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 0 !important;
}
.header-link {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  background: rgba(255,200,72,0.1) !important;
  color: #ffc848 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  border: 1px solid rgba(255,200,72,0.15) !important;
}
.header-link:hover {
  background: rgba(255,200,72,0.2) !important;
  color: #ffd668 !important;
  border-color: rgba(255,200,72,0.3) !important;
  transform: translateY(-1px) !important;
}
.header-link-notice {
  margin-left: auto !important;
  background: rgba(255,200,72,0.05) !important;
  border-color: rgba(255,200,72,0.1) !important;
  padding: 4px 10px !important;
  font-size: 1rem !important;
}
.header-link-notice:hover {
  background: rgba(255,200,72,0.15) !important;
}