/*
Theme Name: Artboardplus-v2
Theme URI: https://artboardplus.com/
Description: 企業禮品訂製 WordPress 主題 - 基於 Artboardplus 品牌設計
Author: Artboardplus
Author URI: https://artboardplus.com/
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artboardplus-v2
Tags: corporate, gift, custom, responsive, bootstrap
*/

/* ============================================
   1. CSS 變量定義
   ============================================ */
:root {
      --brand: #46CDCF;
      --brand-2: #6ed8d9;
      --brand-3: #2fb1b3;
      --brand-4: #97e3e4;
      --ink: #17393a;
      --text: #315455;
      --muted: #9c9c9c;
      --bg: #ffffff;
      --bg-soft: #ffffff;
      --line: rgba(23,57,58,0.1);
      --white: #fff;
      --shadow-sm: 0 8px 20px rgba(23,57,58,0.05);
      --shadow-md: 0 14px 34px rgba(23,57,58,0.08);
      --shadow-lg: 0 20px 56px rgba(23,57,58,0.1);
      --radius-s: 12px;
      --radius-m: 18px;
      --radius-l: 24px;
      --radius-xl: 30px;
      --container: 1500px;
      --t: .28s ease;
    }

/* ============================================
   2. 全局重置與基礎樣式
   ============================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 84px)); margin: 0 auto; }
.section { padding: 58px 0; }
.section-head { margin-bottom: 18px; }
/* ============================================
   3. 通用組件樣式
   ============================================ */

/* 3.1 標題與描述 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(70,205,207,.12); color: var(--brand-3);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  margin: 0 0 10px; color: var(--ink);
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12; letter-spacing: -.03em;
  padding: 0px 4px;
}
.section-desc { margin: 0; color: var(--muted); font-size: 14px; }

/* 3.2 卡片容器 */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 6px 12px rgba(23,57,58,.06);
}

/* 3.3 按鈕樣式 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 800; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.2) 40%, transparent 72%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: #46CDCF;
  color: #fff;
  border-radius: 38px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover { background: #2fb1b3; }

.btn-secondary {
  color: var(--brand-3); background: rgba(255,255,255,.96);
  border: 1px solid rgba(47,177,179,.18); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-2px); background: #fbffff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============================================
   4. 頭部導航區域
   ============================================ */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23,57,58,.08);
}
.header-row {
  min-height: 74px;
  display: flex; justify-content: space-between; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-3));
  position: relative; box-shadow: inset 0 1px 2px rgba(255,255,255,.8);
}
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; border-radius: 999px; background: rgba(255,255,255,.92);
}
.logo-mark::before { width: 24px; height: 4px; left: 12px; top: 14px; transform: rotate(-30deg); }
.logo-mark::after { width: 18px; height: 4px; left: 15px; top: 24px; transform: rotate(38deg); }
.logo-text strong { display: block; color: var(--ink); font-size: 18px; line-height: 1.1; font-family: "Montserrat", "Noto Sans TC", sans-serif; }
.logo-text span { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.desktop-nav { display: flex; justify-content: center; gap: 22px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.desktop-nav > ul { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.desktop-nav > ul > li { margin: 0; }
.desktop-nav a, .nav-dropdown > button {
  color: var(--text); font-weight: 700; font-size: 13px; background: transparent; border: none; cursor: pointer;
  position: relative; padding: 6px 0; white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
.desktop-nav a::after, .nav-dropdown > button::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--brand-3); border-radius: 999px; transition: width .24s ease;
}
.sub-menu a::after,
.sub-menu button::after{ display: none!important;}
.desktop-nav .sub-menu .current-menu-item > a { color: var(--brand-3); background: rgba(70,205,207,.08);  }
.desktop-nav .current-menu-item > a { color: var(--brand-3);}
.desktop-nav .current-menu-item > a::after { width: 100%; }
.desktop-nav a:hover::after, .nav-dropdown:hover > button::after { width: 100%; }
.desktop-nav a:hover, .nav-dropdown:hover > button { color: var(--brand-3); }
.nav-dropdown { position: relative; }
.nav-dropdown > button span { color: var(--brand-3); margin-left: 2px; display: inline-block; transition: transform .25s ease; }
.nav-dropdown.open > button { color: var(--brand-3); }
.nav-dropdown.open > button span { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% - 5px); left: 0; min-width: 320px;
  background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
  padding: 12px; display: none; z-index: 10;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: grid; gap: 6px; }
.dropdown-menu a { padding: 2px 12px; border-radius: 12px; font-weight: 700; color: var(--text); }
.dropdown-menu a:hover { background: rgba(70,205,207,.08); color: var(--brand-3); }

/* wp_nav_menu 子菜單 —— 與 dropdown-menu 相同樣式 */
.desktop-nav .sub-menu {
  position: absolute; top: calc(100% - 0px); left: 0; min-width: 320px;
  background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
  padding: 12px; display: none; z-index: 10; list-style: none; margin: 0;
}
.desktop-nav .menu-item-has-children { position: relative; }
.desktop-nav .menu-item-has-children > a { padding-right: 16px; }
.desktop-nav .menu-item-has-children::after {
  content: "▼";
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  font-size: 8px; color: var(--brand-3); pointer-events: none;
  transition: transform .25s ease; line-height: 1;
}
.desktop-nav .menu-item-has-children:hover::after { transform: translateY(-50%) rotate(180deg); }
.desktop-nav .menu-item-has-children:hover > .sub-menu,
.desktop-nav .menu-item-has-children.open > .sub-menu { display: grid; gap: 6px; }
.desktop-nav .sub-menu a { padding: 2px 12px; border-radius: 12px; font-weight: 700; color: var(--text); text-decoration: none; display: block; }
.desktop-nav .sub-menu a:hover { background: rgba(70,205,207,.08); color: var(--brand-3); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.language-selector {
  min-width: 80px; min-height: 38px; display: inline-flex; align-items: center; flex-shrink: 0;
  color: var(--text); font-size: 13px; font-weight: 700;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.search-trigger {
  min-width:86px; color: var(--muted);
  background: rgba(255,255,255,.96); border: 1px solid rgba(47,177,179,.16); box-shadow: var(--shadow-sm);
  padding: 8px 12px;font-size: 13px;
}
.search-trigger .icon { color: var(--brand-3); height: 26px; line-height: 22px;font-size: 30px;}
.mobile-menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.mobile-menu-btn span { width: 18px; height: 2px; border-radius: 999px; background: var(--brand-3); }
.mobile-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 100; border-top: 1px solid rgba(23,57,58,.08); background: rgba(255,255,255,.96); overflow-y: auto; -webkit-overflow-scrolling: touch; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.mobile-nav-inner { padding: 12px 0 18px; display: grid; gap: 8px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mobile-nav a { padding: 12px 14px; border-radius: 14px; background: rgba(70,205,207,.08); font-weight: 700; text-decoration: none; display: block; color: var(--ink); }
/* 移動端手風琴菜單 - 二級菜單默認收起 */
.mobile-nav .sub-menu { list-style: none; margin: 0 0 0 12px; padding: 0; display: none; gap: 6px; }
.mobile-nav .sub-menu a { font-size: 14px; font-weight: 500; background: transparent; padding: 8px 12px; }
.mobile-nav .menu-item-has-children.open > .sub-menu { display: grid; margin-top: 8px; }
.mobile-nav .menu-item-has-children { position: relative; }
.mobile-nav .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; padding-right: 36px; }
/* 展開/收起箭頭 */
.mobile-nav .menu-item-has-children > a::after {
    content: "▸";
    font-size: 14px;
    color: var(--brand-3);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.mobile-nav .menu-item-has-children.open > a::after { transform: rotate(90deg); }
/* 展開狀態下子菜單動畫 */
.mobile-nav .menu-item-has-children > .sub-menu {
    animation: mobileAccordionIn .25s ease;
}
@keyframes mobileAccordionIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   5. 搜索與彈層功能
   ============================================ */

/* 5.1 搜索浮層 */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center;
  background: rgba(18,32,33,.28); padding: 78px 12px 20px;
}
.search-overlay.open { display: flex; }

/* 5.2 詢價彈層（成功提示） */
.inquiry-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,32,33,.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s ease, visibility .4s ease;
}
.inquiry-overlay.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.inquiry-overlay.open .inquiry-modal {
  animation: inqFadeUp .35s cubic-bezier(.22,.61,.36,1);
}
@keyframes inqFadeUp {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.inquiry-modal {
  background: #fff; border-radius: 20px;
  padding: 48px 40px 36px; text-align: center;
  max-width: 420px; width: 90%;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: inquiryPop .3s ease-out;
}
@keyframes inquiryPop {
  from { opacity:0; transform:scale(.92) translateY(16px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.inquiry-modal-icon {
  width:64px;height:64px;margin:0 auto 20px;border-radius:50%;
  background: linear-gradient(135deg,#46CDCF,#38b8ba);
  display:flex;align-items:center;justify-content:center;
}
.inquiry-modal-icon svg { width:32px;height:32px;stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round; }
.inquiry-modal h3 {
  font-size:22px;font-weight:800;color:#17393a;margin:0 0 10px;line-height:1.3;
}
.inquiry-modal p {
  font-size:15px;color:#5a6d6e;margin:0 0 28px;line-height:1.6;
}
.inquiry-modal button {
  display:inline-block;padding:14px 48px;background:linear-gradient(135deg,#46CDCF,#38b8ba);
  color:#fff;border:none;border-radius:30px;font-size:16px;font-weight:700;
  cursor:pointer;transition:transform .2s,box-shadow .2s;
}
.inquiry-modal button:hover {
  transform:translateY(-2px);box-shadow:0 8px 24px rgba(70,205,207,.35);
}

/* 5.3 商品詢價彈層（美化版） */
.inq-beauty {
  position: relative;
  max-width: 480px !important;
  width: 92%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 32px 32px !important;
  text-align: left !important;
}
.inq-beauty .inquiry-modal-close {
  position: absolute; top: 14px; right: 16px;
  z-index: 10;
  padding: 0;
  width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: linear-gradient(135deg, #46CDCF, #38b8ba);
  color: #fff;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(70,205,207,.3);
  transition: transform .2s, opacity .2s;
}
.inq-beauty .inquiry-modal-close:hover { transform: scale(1.08); opacity: .9; }

/* 頭部 */
.inq-b-head h3 {
  font-size: 22px !important; font-weight: 800; color: #17393a;
  margin: 0 0 6px !important; text-align: left !important;
}
.inq-b-sub { color: #7a9091; font-size: 13px; margin: 0 0 20px; }

/* 商品信息條 */
.inq-product-bar {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #f5fafb, #edf9f9);
  border: 1px solid rgba(70,205,207,.18);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 24px;
}
.inq-p-img {
  width: 56px; height: 56px;
  object-fit: cover; border-radius: 10px;
  flex-shrink: 0; border: 1px solid rgba(70,205,207,.15);
}
.inq-p-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inq-p-name {
  font-size: 14px; font-weight: 700; color: #17393a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inq-p-sku { font-size: 12px; color: #46CDCF; font-weight: 600; }

/* 表單 */
.inq-form { display: grid; gap: 16px; }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.inq-field { display: grid; gap: 5px; margin-bottom: 0 !important; }
.inq-field label {
  font-size: 13px; font-weight: 700; color: #4a6566;
  letter-spacing: .02em;
}
.inq-field input,
.inq-field select,
.inq-field textarea {
  width: 100%; height: 44px;
  padding: 0 14px; border: 1.5px solid #dce6e7;
  border-radius: 11px; background: #fcffff;
  font-size: 14px; color: #17393a;
  outline: none; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
}
.inq-field textarea {
  height: auto; min-height: 96px;
  padding: 12px 14px; resize: vertical;
  line-height: 1.55;
}
.inq-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2346CDCF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.inq-field input::placeholder,
.inq-field textarea::placeholder { color: #b0c4c5; }
.inq-field input:focus,
.inq-field select:focus,
.inq-field textarea:focus {
  border-color: #46CDCF;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(70,205,207,.1);
}

/* 提交按鈕 */
.inq-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; padding: 0 28px;
  margin-top: 4px;
  background: linear-gradient(135deg, #46CDCF, #38b8ba);
  color: #fff; border: none; border-radius: 999px;
  font-size: 16px; font-weight: 800; letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(70,205,207,.28);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  position: relative; overflow: hidden;
}
.inq-submit:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(70,205,207,.4);
}
.inq-submit:active { transform: translateY(0) scale(.98); }

/* 5.4 搜索面板 */
.search-panel {
  width: min(760px, 100%); background: rgba(255,255,255,.98); border: 1px solid rgba(23,57,58,.08);
  border-radius: 28px; box-shadow: 0 28px 88px rgba(18,32,33,.18); overflow: hidden;
}
.search-top { padding: 16px 16px 10px; }
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 22px;
  background: #f6f8f8; border: 1px solid rgba(23,57,58,.06);
}
.search-box .icon { color: var(--brand-3); font-size: 18px; }
.search-box input { width: 100%; border: none; outline: none; background: transparent; font-size: 18px; color: var(--ink); }
.search-box input::placeholder { color: #98a7a8; }
.search-body { padding: 8px 16px 18px; display: grid; gap: 18px; }
.search-block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #607274; font-weight: 800; }
.search-block-title .mark { color: var(--brand-3); }
.hot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.hot-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(23,57,58,.08);
  background: var(--white); cursor: pointer; transition: var(--t);
}
.hot-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(47,177,179,.24); }
.hot-no {
  min-width: 22px; height: 22px; border-radius: 8px; background: #edf9f9; color: var(--brand-3); font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.trend-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.trend-tag {
  padding: 8px 12px; border-radius: 999px; border: none; cursor: pointer;
  background: #edf9f9; color: var(--brand-3); font-weight: 700; transition: var(--t);
}
.trend-tag:hover { transform: translateY(-2px); }

/* ============================================
   6. 首頁 Hero 輪播區
   ============================================ */

/* 6.1 主佈局網格 */
.hero { padding: 24px 0 14px; }
.hero-main-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr); gap: 18px; align-items: stretch; }

/* 6.2 輪播滑塊 */
.hero-slider {
  position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius-xl);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--white);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.slides { position: relative; height: 460px; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease;
  padding: 0; display: block; background: #eaf8f8;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-media,
.slide-media svg {
  display: block; width: 100%; height: 100%;
}
.slide-dots {
  position: absolute; left: 20px; bottom: 18px; display: flex; gap: 8px; z-index: 3;
}
.slide-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: none; background: rgba(23,57,58,.18); cursor: pointer; transition: var(--t);
}
.slide-dots button.active { width: 28px; background: var(--brand-3); }

/* 6.3 急單廣告圖 */
.rush-ads {
  display: grid; gap: 20px; align-content: start;
}
.rush-ad-img {
  display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 22px;
}
.rush-ad-placeholder {
  padding: 40px 20px; text-align: center; color: var(--ink-2); font-size: 14px;
  border: 2px dashed rgba(23,57,58,.12); border-radius: 12px; background: rgba(255,255,255,.5);
}

/* 6.4 語言選擇器 */
.translateSelectLanguage-wrap {
  position: relative; display: inline-flex; align-items: center;
}
.translateSelectLanguage-wrap::before {
  content: '🌐'; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); font-size: 14px; pointer-events: none; z-index: 1;
}
.translateSelectLanguage-wrap select,
.translateSelectLanguage {
  padding:8px 30px 8px 16px; height: 44px;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: transparent; border-radius: 28px;
  border: 1px solid rgba(47, 177, 179, .16);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-family: var(--font-body); cursor: pointer; color: var(--muted);font-weight: 800;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.translateSelectLanguage-wrap select:focus,
.translateSelectLanguage:focus {
  outline: none; border-color: var(--brand-3);
}

/* 6.4 CTA 行動號召 */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; align-items: center; }

/* 6.5 最新商品橫向滾動 */
.latest-wrap { position: relative; }
.latest-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(284px, 30%); gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding: 32px 8px; scrollbar-width: none;
}
.latest-scroller::-webkit-scrollbar { display: none; }
.latest-card {
  overflow: hidden; transition: var(--t); border-radius: 20px; border: 1px solid rgba(23,57,58,.08); background: #fff;
  box-shadow: 0 10px 24px rgba(23,57,58,.05); display: flex; flex-direction: column;
}
.latest-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23,57,58,.09); }
.latest-thumb {
  aspect-ratio: 1 / 1; background: linear-gradient(180deg, #fbfefe, #edf8f8); position: relative; overflow: hidden; border-bottom: 1px solid rgba(23,57,58,.05);
}
.latest-thumb svg { width: 100%; height: 100%; display: block; }
.latest-badge {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 999px;
  background: rgba(23,57,58,.86); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.latest-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.latest-kicker { color: var(--brand-3); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.latest-body h3 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.35; font-family: "Montserrat", "Noto Sans TC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-body p { margin: 0; color: var(--muted); font-size: 13px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product-meta span {
  padding: 6px 9px; border-radius: 999px; background: #f1f8f8; color: var(--text); font-size: 12px; font-weight: 700;
}
.latest-actions { display: flex; gap: 8px; margin-top: auto; }
.latest-actions .btn { flex: 1; padding: 11px 14px; font-size: 13px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 80px; border-radius: 6px; border: none;
  border:2px solid #7bc8cb; background: #fff; color: #7bc8cb; font-size: 32px; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 2;
}
.carousel-btn:hover{ background: #7bc8cb; color: #fff;}
.carousel-btn.prev { left: -32px; }
.carousel-btn.next { right: -32px; }

    .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
    .category-photo { overflow: hidden; transition: var(--t); }
    .category-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .photo-art {
      aspect-ratio: 1 / .95; position: relative; background: linear-gradient(180deg, #fbffff, #edf9f9); overflow: hidden;
    }
    .photo-art svg { width: 100%; height: 100%; display: block; }
    .photo-caption { padding: 12px 16px 16px; color: var(--ink); font-size: 22px; font-weight: 800; }

    .product-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
    .product-card { overflow: hidden; transition: var(--t); }
    .product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
    .product-image {
      aspect-ratio: 1 / 1; position: relative; background: linear-gradient(180deg, #fcffff, #eef9f9); overflow: hidden;
    }
    .product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .product-image span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-3); font-weight: 800; font-size: 22px; }
    .product-body { padding: 15px; display: grid; gap: 10px; }
    .product-title-row { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
    .product-title-row h3 { width:180px; margin: 0; color: var(--ink); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rank-badge { width: 66px;text-align: center;padding: 6px 0; border-radius: 999px; background: rgba(70,205,207,.12); color: var(--brand-3); font-size: 12px; font-weight: 800; }
    .sku { color: var(--muted); font-size: 14px; }
    .tag-row { display: flex; height: 30px; flex-wrap: wrap; gap: 8px; }
    .tag { padding: 7px 10px; border-radius: 999px; background: #edf9f9; color: var(--brand-3); font-size: 12px; font-weight: 800; }

    .case-list {
      display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px;
    }
    .case-item {
      display: flex; flex-direction: column;
      background: #fff; border: 1px solid rgba(23,57,58,.08);
      border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
      transition: var(--t);
    }
    .case-item:hover {
      border-color: var(--brand-3); box-shadow: var(--shadow-lg);
      transform: translateY(-4px);
    }
    .case-item-feat {
      width: 100%; aspect-ratio: 1 / 1 ;
      overflow: hidden; background: linear-gradient(135deg, #f0f9fa, #e8f4f5);
    }
    .case-item-feat img {
      width: 100%; height: 100%; object-fit: cover;
    }
    .case-item-bottom {
      display: flex; align-items: center; gap: 14px; padding: 16px;
    }
    .case-item-logo {
      width: 148px; height: 98px; flex-shrink: 0; border-right: 2px dotted rgba(0,0,0,.3); padding: 0 22px 0 8px; 
      overflow: hidden; display: grid; place-items: center;
    }
    .case-item-logo img { height: 100%; object-fit: contain; padding: 3px;
    }
    .case-item-text {
      flex: 1; min-width: 0;
    }
    .case-item-text h3 {
      margin: 0 0 4px; color: var(--ink); font-size: 22px; font-weight: 700; 
    }
    .case-item-text p {
      margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .case-empty {
      grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted);
    }
    .case-empty a { color: var(--brand-3); font-weight: 700; }

    .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
    .article-card { overflow: hidden; transition: var(--t); }
    .article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .article-image {
      aspect-ratio: 1 / .56; background: linear-gradient(135deg, rgba(70,205,207,.42), rgba(151,227,228,.72));
      display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: 28px;
    }
    .article-body { padding: 24px; display: grid; gap: 9px; }
    .article-body h3 { margin: 0; color: var(--ink); font-size: 19px; }
    .article-body p { margin: 0; color: var(--muted); }
    .article-link { color: var(--brand-3); font-weight: 800; }

    .about-card {
      display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: center;
      padding: clamp(22px, 3.4vw, 34px); border-radius: 28px; background: #ffffff;
      border: 1px solid rgba(23,57,58,.08); box-shadow: var(--shadow-md);
    }
    .about-copy { display: grid; gap: 12px; }
    .about-copy .eyebrow { margin-bottom: 0; width: fit-content; }
    .about-name {
      margin: 0; color: var(--ink); font-family: "Montserrat", "Noto Sans TC", sans-serif;
      font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.04em;
    }
    .about-text { margin: 0; color: var(--text); font-size: clamp(15px, 1.8vw, 21px); line-height: 1.65; }
    .about-highlight {
      min-height: 198px; border-radius: 22px; display: grid; place-items: center; padding: 24px;
      background: linear-gradient(135deg, #7bc8cb, #63bcc1); box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
    }
    .about-highlight strong {
      color: #fff; font-size: clamp(26px, 3vw, 48px); line-height: 1.12; letter-spacing: -.03em;
      font-weight: 800; text-align: center;
    }

    .inquiry-wrap { display: flex; justify-content: center;  }
    .inquiry-card { width: min(760px, 100%); padding: 30px; text-align: center; box-shadow: var(--shadow-md);}
    .inquiry-form { display: grid; gap: 12px; text-align: left; margin-top: 18px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .field {
      width: 100%; padding: 15px 16px; border-radius: 16px; border: 1px solid rgba(23,57,58,.1); background: #fcffff; outline: none; color: var(--ink);
      transition: var(--t);
    }
    .field:focus { border-color: rgba(47,177,179,.34); box-shadow: 0 0 0 4px rgba(70,205,207,.1); background: #fff; }
    .textarea { min-height: 160px; resize: vertical; }

    .site-footer { padding: 0 0 34px; }
    .footer-card { padding: 22px 36px; display: flex; justify-content: space-between; align-items: left; gap: 16px; }
    .footer-card strong { color: var(--ink); display: block; margin-bottom: 4px; }
    .footer-note { color: var(--muted); font-size: 14px; text-align: left; }
    .footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
    .footer-socials a {
      width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-3); font-weight: 800;
      background: rgba(255,255,255,.96); border: 1px solid rgba(23,57,58,.08); box-shadow: var(--shadow-sm); transition: var(--t);
    }
    .footer-socials a:hover { transform: translateY(-2px); }

    .wc-page div.product, body.single-product div.product{
      border-bottom: 1px solid rgba(0, 0, 0, .1);
      padding-bottom: 2em;
      margin-bottom: 2.6em!important;
    }
    @media (max-width: 1180px) {
      .desktop-nav, .search-trigger, .header-tools > a.btn { display: none; }
      .mobile-menu-btn { display: flex; }
      .header-tools { justify-content: flex-end; }
      .hero-main-grid { grid-template-columns: 1fr; }
      .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
      .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .article-grid, .case-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .about-card { grid-template-columns: 1fr; }
    }
    @media (max-width: 760px) {
      .section { padding: 54px 0; }
      .container { width: min(100% - 32px, var(--container)); }
      /* 去除圓角/邊框/陰影，實現無邊距全屏效果 */
      .hero-slider { width: 100%; aspect-ratio: 3 / 4; min-height: auto; min-height: 280px; border-radius: 22px; border: none; box-shadow: none; }
      .slides { height: 100%; }
      .field-row, .hot-grid, .product-grid, .category-grid, .article-grid, .case-list { grid-template-columns: 1fr; }
      .footer-card { justify-content: center; text-align: center;display:inline-block; width: 100%; border: 0; box-shadow: none; }
      .footer-socials{ margin-top: 1.4rem;}
      .cta-row { display: grid; grid-template-columns: 1fr 1fr; }
      .latest-scroller { grid-auto-columns: minmax(224px, 82%); }
      .about-highlight { min-height: 160px; }
    }
    @media (max-width: 560px) {
      .header-row { grid-template-columns: auto 1fr auto; }
      .hero-slider { width: 100%; aspect-ratio: 3 / 4; min-height: auto; min-height: 280px; }
      .cta-row, .field-row, .inq-row { grid-template-columns: 1fr; }
      .search-panel { border-radius: 22px; }
      .inquiry-card { padding: 24px 18px; }
      /* 商品畫廊移動端 */
      .wc-page div.product, body.single-product div.product { grid-template-columns: 1fr !important; gap: 28px; }
      .wc-page div.product .wc-product-gallery-wrap, body.single-product div.product .wc-product-gallery-wrap,
      .wc-page div.product .entry-summary, body.single-product div.product .entry-summary { grid-column: 1; grid-row: auto; position: static; }
      .woocommerce-product-gallery { border-radius: 28px; }
      .woocommerce-product-gallery .flex-viewport,
      .woocommerce-product-gallery .woocommerce-product-gallery__image { border-radius: 28px; overflow: hidden; }
      .woocommerce-product-gallery .flex-control-thumbs { padding: 12px 36px; gap: 10px; }
      .woocommerce-product-gallery .flex-control-thumbs li,
      .woocommerce-product-gallery .flex-control-thumbs li img { width: 72px; height: 72px; border-radius: 16px; }
      .wc-thumb-arrow { width: 30px; height: 30px; font-size: 13px; }
      .carousel-btn { display: none; }
      /* 移動端 Tab 導航 + 面板 */
      .wc-tabs { border-radius: 12px !important; margin-bottom: 20px !important; }
      .wc-tabs li a { padding: 12px 14px !important; font-size: 14px !important; }
      .woocommerce-Tabs-panel { padding: 20px 18px !important; border-radius: 16px !important; }
      .woocommerce-product-attributes th,
      .woocommerce-product-attributes td { padding: 10px 12px !important; font-size: 14px !important; }
      .woocommerce-product-attributes th { width: 100px !important; }
      .about-card { padding: 20px; border-radius: 24px; }
      .about-name { font-size: 30px; }
      .about-highlight strong { font-size: 28px; }
    }

    @media (max-width: 900px) and (min-width: 561px) {
      /* 平板：縮小間距，畫廊稍窄 */
      .wc-page div.product, body.single-product div.product { gap: 28px; grid-template-columns: minmax(0,46%) minmax(0,1fr); }
      .wc-page .wc-product-gallery-wrap, body.single-product .wc-product-gallery-wrap { max-width: 440px; }
    }

/* ============================================
   WooCommerce Block Editor (Cart / Checkout) - Shared Base
   ============================================ */
.wc-page { padding: 40px 0 80px; }

/* Cart Block */
.wp-block-woocommerce-cart {
  max-width: var(--container);
  margin: 0 auto;
}
.wp-block-woocommerce-cart .wc-block-cart {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.wc-block-cart__main { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.wc-block-cart__sidebar { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.wc-block-cart-items { width: 100%; border-collapse: collapse; }
.wc-block-cart-items td { padding: 14px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.wc-block-cart-item__image img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #f7fcfc; }
.wc-block-cart-item__product-name { font-weight: 600; color: #17393a; font-size: 14px; }
.wc-block-cart-item__product-name a { color: inherit; text-decoration: none; }
.wc-block-cart-item__product-name a:hover { color: #46CDCF; }
.wc-block-cart-item__quantity .qty-btn { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; color: #555; display: inline-flex; align-items: center; justify-content: center; }
.wc-block-cart-item__quantity .qty-btn:hover { border-color: #46CDCF; color: #46CDCF; }
.wc-block-cart-item__quantity .qty-input { width: 44px; text-align: center; border: 1px solid #ddd; border-radius: 6px; padding: 4px; font-size: 14px; }
.wc-block-cart-item__product-price { color: #46CDCF; font-weight: 700; font-size: 14px; }
.wc-block-cart-item__remove-link { background: none; border: none; cursor: pointer; color: #ccc; font-size: 18px; }
.wc-block-cart-item__remove-link:hover { color: #e74c3c; }
.wc-block-cart-totals { margin-top: 20px; }
.wc-block-cart__totals-title { font-size: 16px; font-weight: 700; color: #17393a; margin-bottom: 14px; border-bottom: 2px solid #46CDCF; padding-bottom: 10px; display: inline-block; }
.wc-block-components-order-summary { background: #fafcfc; border-radius: 12px; padding: 20px; }
.wc-block-components-order-summary-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.wc-block-components-order-summary-item__image img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.wc-block-components-order-summary-item__name { font-size: 13px; font-weight: 600; color: #17393a; }
.wc-block-components-order-summary-item__quantity { font-size: 12px; color: #888; }
.wc-block-components-order-summary-item__price { font-size: 13px; font-weight: 700; color: #46CDCF; margin-left: auto; }
.wc-block-components-totals-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.wc-block-components-totals-item__label { color: #555; }
.wc-block-components-totals-item__value { font-weight: 600; color: #17393a; }
.wc-block-components-totals-item.total { border-top: 2px solid #46CDCF; margin-top: 10px; padding-top: 12px; font-size: 16px; font-weight: 700; }
.wc-block-components-totals-item.total .wc-block-components-totals-item__label { color: #17393a; font-size: 16px; }
.wc-block-components-totals-item.total .wc-block-components-totals-item__value { color: #46CDCF; font-size: 20px; }
.wc-block-components-totals-coupon .wc-block-components-panel__button{
    padding: 12px 16px !important;
}

/* ============================================
   Checkout Page - Artboardplus Premium Style
   ============================================ */
.wp-block-woocommerce-checkout {
  padding: 10px 0 40px;
}

/* 隱藏 checkout 頁面自帶的 entry-header 標題，已有自定義 Hero */
.woocommerce-checkout .entry-header {
  display: none !important;
}

/* WC Checkout Block 自帶 container class，需要取消其限寬效果 */
.wp-block-woocommerce-checkout.container {
  max-width: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}
.wc-block-components-sidebar-layout .wc-block-components-main{
  width: calc( 65% - 32px );
  padding-right: 32px;
  margin-right:32px;
}
.wc-block-components-radio-control--highlight-checked:after{
  border: 0;
}
/* ---- Checkout Hero Banner ---- */
.wc-checkout-hero {
  text-align: center;
  padding: 10px 20px 28px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(70,205,207,.06) 0%, rgba(151,227,228,.1) 100%);
  border-radius: var(--radius-l);
  border: 1px solid rgba(70,205,207,.1);
}
.wc-checkout-hero-title {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.wc-checkout-hero-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---- Checkout Steps Indicator ---- */
.wc-checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0 0 32px;
  list-style: none;
  margin: 0;
}
.wc-checkout-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s;
}
.wc-checkout-steps li.active {
  color: var(--brand-3);
}
.wc-checkout-steps li .step-num {
  width: 40px;
    height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  background: rgba(70,205,207,.1);
  color: var(--brand-3);
  transition: all .3s;
  flex-shrink: 0;
}
.wc-checkout-steps li.active .step-num {
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff;
  box-shadow: 0 4px 12px rgba(70,205,207,.3);
}
.wc-checkout-steps .step-divider {
  width: 48px;
  height: 2px;
  background: rgba(23,57,58,.1);
  margin: 0 12px;
  border-radius: 2px;
}
.wc-checkout-steps .step-divider.active {
  background: var(--brand);
}

/* ---- Order Received / Thank You Page ---- */
.wc-thankyou-hero {
  text-align: center;
  padding: 50px 20px 20px;
}
.wc-thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(47, 177, 179, .28);
  animation: thankyouPop .5s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes thankyouPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.wc-thankyou-title {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: #17393a;
  margin: 0 0 8px;
  letter-spacing: -.5px;
}
.wc-thankyou-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.wc-thankyou-steps {
  margin-bottom: 10px;
}
.wc-thankyou-content {
  max-width: 740px;
  margin: 0 auto;
}
/* Order confirmation card wrapper */
.wc-thankyou-content .woocommerce {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(23,57,58,.06);
}
/* Hide entry-header inside thank-you content */
.wc-thankyou-content .entry-header {
  display: none !important;
}
/* Thank you success notice */
.wc-thankyou-content .woocommerce-notice--success {
  font-size: 17px;
  font-weight: 600;
  color: #17393a;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(23,57,58,.08);
}
.wc-thankyou-content .woocommerce-notice--success::before {
  display: none;
}
/* "請登錄" prompt box */
.wc-thankyou-content .woocommerce-info {
  background: #f0f9f4;
  border: 1px solid rgba(0,168,107,.15);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #2d6a4f;
}
.wc-thankyou-content .woocommerce-info::before {
  content: "ℹ️";
  margin-right: 8px;
}
/* Login form inside thank you page */
.wc-thankyou-content .woocommerce-form-login {
  background: #f8fbfc;
  border: 1px solid rgba(23,57,58,.08);
  border-radius: var(--radius-s);
  padding: 28px 30px;
  margin-top: 0;
}
.wc-thankyou-content .woocommerce-form-login .form-row {
  margin-bottom: 14px;
}
.wc-thankyou-content .woocommerce-form-login input[type=text],
.wc-thankyou-content .woocommerce-form-login input[type=password],
.wc-thankyou-content .woocommerce-form-login input[type=email] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(23,57,58,.12);
  border-radius: var(--radius-s);
  font-size: 14px;
  transition: border-color .2s;
}
.wc-thankyou-content .woocommerce-form-login input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,168,107,.1);
}
.wc-thankyou-content .woocommerce-form-login button[type=submit] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff;
  border: none;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.wc-thankyou-content .woocommerce-form-login button[type=submit]:hover {
  opacity: .92;
  transform: translateY(-1px);
}
.wc-thankyou-content .woocommerce-form-login label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}
.wc-thankyou-content .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.wc-thankyou-content .woocommerce-form-login .lost_password {
  font-size: 13px;
}
.wc-thankyou-content .woocommerce-form-login .lost_password a {
  color: var(--brand);
  font-weight: 500;
}
/* Login form heading */
.wc-thankyou-content .woocommerce-form-login h2 {
  font-size: 18px;
  font-weight: 700;
  color: #17393a;
  margin: 0 0 18px;
  text-align: center;
}
/* Payment row / order details label */
/* ===== 訂單信息卡片（Thank You Page）—— 橫向流式佈局 ===== */
.wc-thankyou-content .woocommerce-order-overview {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  list-style: none !important;
  padding: 20px !important;
  margin: 0 0 24px !important;
  background: linear-gradient(135deg, #f7fcfc 0%, #eefaf9 100%);
  border-radius: var(--radius-l) !important;
  border: 1.5px solid rgba(70,205,207,.12);
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}
.wc-thankyou-content .woocommerce-order-overview li {
  flex: 1 1 auto !important;
  width: calc(50% - 60px);
  padding: 4px 30px !important;
  text-align: left !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.6;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 16px !important;
  position: relative;
  transition: background .2s ease;
  border-right: 0;
  font-weight: 600;
  white-space: nowrap;
}
.woocommerce ul.order_details li{ border: 0;}

/* Remove WC default ::before icon */
.wc-thankyou-content .woocommerce-order-overview li::before {
  content: none !important;
}
/* Value (strong) */
.wc-thankyou-content .woocommerce-order-overview li strong {
  display: inline-block;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #17393a !important;
  letter-spacing: -.3px;
  word-break: break-word;
}
/* 總計金額高亮 */
.wc-thankyou-content .woocommerce-order-overview li strong {
  color: var(--brand) !important;
  font-size: 22px !important;
}
/* Payment method row (below order-overview) */
.wc-thankyou-content .woocommerce-order-overview + p,
.wc-thankyou-content .woocommerce-order-details {
  background: linear-gradient(135deg, #f7fcfc 0%, #eefaf9 100%);
  border-radius: var(--radius-m);
  padding: 20px 28px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  border: 1.5px solid rgba(70,205,207,.12);
}
.wc-thankyou-content .woocommerce-order-overview + p strong,
.wc-thankyou-content .woocommerce-order-details strong {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--brand) !important;
}
/* 響應式：小屏換行 */
@media (max-width: 720px) {
  .wc-thankyou-content .woocommerce-order-overview {
    flex-direction: column !important;
  }
  .wc-thankyou-content .woocommerce-order-overview li {
    border-right: none !important;
    border-bottom: 1px solid rgba(70,205,207,.08) !important;
    padding: 22px 24px !important;
    min-width: unset !important;
  }
  .wc-thankyou-content .woocommerce-order-overview li:last-child {
    border-bottom: none !important;
  }
}

/* ===== 訂單詳情表格（Thank You Page）主題色調 ===== */
.wc-thankyou-content .woocommerce-order-details {
  background: #fff !important;
  border-radius: var(--radius-l) !important;
  padding: 32px !important;
  border: 1.5px solid rgba(70,205,207,.12) !important;
  box-shadow: var(--shadow-sm) !important;
}
.wc-thankyou-content h2 {
  color: #17393a !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 2px solid rgba(70,205,207,.15) !important;
}
/* 訂單詳情 table */
.wc-thankyou-content .woocommerce-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background: #fff !important;
  border-radius: var(--radius-m) !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(70,205,207,.10) !important;
}
.wc-thankyou-content .woocommerce-table th,
.wc-thankyou-content .woocommerce-table td {
  padding: 16px 24px !important;
  text-align: left !important;
  font-size: 14px !important;
  border-bottom: 1.5px solid rgba(70,205,207,.08) !important;
  color: #315455 !important;
}
.wc-thankyou-content .woocommerce-table th {
  background: linear-gradient(135deg, #f7fcfc, #eefaf9) !important;
  font-weight: 700 !important;
  color: #17393a !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.wc-thankyou-content .woocommerce-table td strong {
  font-weight: 700 !important;
  color: #17393a !important;
}
.wc-thankyou-content .woocommerce-table tr:last-child td {
  border-bottom: none !important;
}
.wc-thankyou-content .woocommerce-table tfoot th,
.wc-thankyou-content .woocommerce-table tfoot td {
  background: linear-gradient(135deg, #f7fcfc, #eefaf9) !important;
  font-weight: 800 !important;
  color: #17393a !important;
  border-top: 2px solid rgba(70,205,207,.12) !important;
}
.wc-thankyou-content .woocommerce-table .amount {
  font-weight: 700 !important;
  color: var(--brand) !important;
}

/* ---- Main Layout: let WC block control its own grid, we style the children ---- */
/* Important: Do NOT override grid-template-columns on .wc-block-checkout
   - WooCommerce manages its own main/sidebar layout internally
   - Only style __main and __sidebar appearance */

/* ---- Left: Contact + Shipping Address ---- */
.wc-block-checkout__main {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(23,57,58,.06);
  min-width: 0; /* prevent grid blowout */
}

/* ---- Section Divider inside main ---- */
.wc-block-checkout__main > div:not(.wc-block-checkout__order-summary):not(.wc-block-checkout__sidebar) {
  margin-bottom: 24px;
}
.wc-block-checkout__main .wc-block-checkout__contact-fields {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(23,57,58,.06);
}

/* ---- Right: Order Summary + Payment ---- */
/* sidebar wrapper neutralized — 讓 WC block 的包裹層透明，視覺上直接顯示 order-summary-block */
.wc-block-checkout__sidebar {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  min-width: 0;
}

/* 給內部的 order-summary 和 payment 塊加上原本的卡片樣式 */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  background: linear-gradient(180deg, #fcffff 0%, #f8fcfc 100%);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(70,205,207,.08);
  margin-bottom: 20px;
}

/* ---- Block Headings ---- */
.wc-block-components-heading {
  font-family: "Montserrat", "Noto Sans TC", sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid var(--brand) !important;
  letter-spacing: -0.01em !important;
}

/* ---- Express Checkout ---- */
.wc-block-checkout__express-payment-area {
  margin-bottom: 24px;
  padding: 18px;
  background: #fafcfc;
  border-radius: var(--radius-m);
  border: 1px dashed rgba(70,205,207,.18);
}

/* ---- Form Fields ---- */
.wc-block-components-text-input {
  margin-bottom: 18px;
  position: relative;
}
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-text-input select {
  width: 100%;
  border: 1.5px solid rgba(23,57,58,.12);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  background: #f9fbfb;
  transition: all .25s ease;
  font-family: "Open Sans", "Noto Sans TC", sans-serif;
}
.wc-block-components-text-input input:hover,
.wc-block-components-text-input textarea:hover,
.wc-block-components-text-input select:hover {
  border-color: rgba(70,205,207,.3);
  background: #fcffff;
}
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-text-input select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(70,205,207,.1);
}
.wc-block-components-text-input input::placeholder,
.wc-block-components-text-input textarea::placeholder {
  color: #bcc8c9;
}
.wc-block-components-text-input.is-active input {
  border-color: rgba(70,205,207,.4);
  background: #fff;
}
.wc-block-components-text-input label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}
.wc-block-components-text-input label .required {
  color: var(--brand-3);
  margin-left: 2px;
}

/* ---- Select Dropdown ---- */
.wc-block-components-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(23,57,58,.12);
  border-radius: var(--radius-s);
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  color: var(--text);
  background: #f9fbfb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2346CDCF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
  transition: all .25s ease;
  width: 100%;
}
.wc-block-components-select:hover {
  border-color: rgba(70,205,207,.3);
}
.wc-block-components-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(70,205,207,.1);
}

/* ---- Shipping Methods - Radio Cards ---- */
.wc-block-components-radio-control__option {
  display: flex !important;
  align-items: center;
  column-gap: 22px !important;
  padding: 16px 18px !important;
  border: 1.5px solid rgba(23,57,58,.08) !important;
  border-radius: var(--radius-s) !important;
  margin-bottom: 16px !important;
  cursor: pointer;
  background: #fff;
  transition: all .25s ease;
  position: relative;
}
.wc-block-components-radio-control__option:hover {
  border-color: var(--brand) !important;
  background: #f9fcfc !important;
  box-shadow: 0 2px 8px rgba(70,205,207,.08);
}
.wc-block-components-radio-control__option-checked {
  border-color: var(--brand) !important;
  background: linear-gradient(135deg, #f4fbfb 0%, #eafaf9 100%) !important;
  box-shadow: 0 2px 10px rgba(70,205,207,.12) !important;
}
.wc-block-components-radio-control input[type=radio] {
  accent-color: var(--brand);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}
/* 兜底：option 容器內直接後代之間全部拉開間距 */
.wc-block-components-radio-control__option > * + * {
  margin-left: 0;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__label{
  text-align: left;
}
.wc-block-components-radio-control .wc-block-components-radio-control__label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 0 30px;
}
.wc-block-components-radio-control .wc-block-components-radio-control__label small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.wc-block-components-radio-control .wc-block-components-radio-control__description {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---- Order Summary Items ---- */
/* 中間層歸零 — 讓商品列表直接融入外層 order-summary 卡片 */
.wc-block-components-order-summary {
  background: none;
  border-radius: 0;
  padding: 0;
  border: none;
  overflow: visible;
  margin-bottom: 0;
}
.wc-block-components-order-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(23,57,58,.05);
  transition: background .2s;
}
.wc-block-components-order-summary-item:last-child {
  border-bottom: none;
}
.wc-block-components-order-summary-item:hover {
  background: #fafcfc;
}
.wc-block-components-order-summary-item__image {
  flex-shrink: 0;
}
.wc-block-components-order-summary-item__image img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-s);
  background: #f4f9f9;
  border: 1px solid rgba(23,57,58,.06);
}
.wc-block-components-order-summary-item__description {
  flex: 1;
  min-width: 0;
}
.wc-block-components-order-summary-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-block-components-order-summary-item__quantity {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.wc-block-components-order-summary-item__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-3);
  text-align: right;
  white-space: nowrap;
}

:root :where(.wp-element-button, .wp-block-button__link){
  background-color:var(--brand-3)
}
/* ---- Totals ---- */
/* totals 層也歸零，融入外層卡片 */
.wc-block-components-totals-wrapper {
  background: none;
  border: none;
  border-radius: 0;
  padding: 18px 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(23,57,58,.06);
}
.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.wc-block-components-totals-item__label {
  color: var(--text);
  font-weight: 600;
}
.wc-block-components-totals-item__value {
  font-weight: 700 !important;
  color: var(--text) !important;
  font-size: 15px;
}
.wc-block-components-totals-item.total {
  border-top: 2px solid var(--brand);
  margin-top: 10px;
  padding-top: 14px;
}
.wc-block-components-totals-item.total .wc-block-components-totals-item__label {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
}
.wc-block-components-totals-item.total .wc-block-components-totals-item__value {
  font-size: 24px !important;
  color: var(--brand-3) !important;
  font-weight: 800 !important;
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
}

/* ---- Coupon / Discount ---- */
.wc-block-components-totals-coupon {
  margin-bottom: 16px;
}
.wc-block-components-totals-coupon .wc-block-components-panel__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7fcfc;
  border: 1px dashed rgba(70,205,207,.3);
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-3);
  cursor: pointer;
  transition: all .2s;
}
.wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
  background: #edf9f9;
  border-color: var(--brand);
}

/* ---- Payment Methods ---- */
.wc-block-components-radio-control--accordion-option {
  border: 1.5px solid rgba(23,57,58,.08) !important;
  border-radius: var(--radius-s) !important;
  margin-bottom: 10px !important;
  overflow: hidden;
  transition: all .2s;
}
.wc-block-components-radio-control--accordion-option:hover {
  border-color: var(--brand) !important;
}
.wc-block-components-radio-control--accordion-option .wc-block-components-radio-control__option-checked {
  border-color: var(--brand) !important;
}

/* ---- Checkout Submit Button ---- */
.wc-block-checkout__actions {
  margin-top: 24px;
}
.wc-block-checkout__actions_row .wc-block-components-button {
  width: 100% !important;
  padding: 18px 32px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  border-radius: var(--radius-s) !important;
  background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 100%) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  transition: all .3s ease !important;
  box-shadow: 0 6px 20px rgba(47,177,179,.28) !important;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em !important;
}
.wc-block-checkout__actions_row .wc-block-components-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 40%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.wc-block-checkout__actions_row .wc-block-components-button:hover::after {
  transform: translateX(120%);
}
.wc-block-checkout__actions_row .wc-block-components-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(47,177,179,.38) !important;
}
.wc-block-checkout__actions_row .wc-block-components-button:active {
  transform: translateY(-1px) !important;
}
.wc-block-checkout__actions_row .wc-block-components-button:disabled {
  background: #c3c8c9 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}
.wc-block-checkout__actions_row .wc-block-components-button:disabled::after {
  display: none;
}

/* ---- Return to Cart link ---- */
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--brand-3);
}

/* ---- Checkboxes ---- */
.wc-block-components-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 14px 16px;
  background: #f9fbfb;
  border-radius: var(--radius-s);
  border: 1px solid rgba(23,57,58,.06);
  transition: all .2s;
}
.wc-block-components-checkbox:hover {
  border-color: rgba(70,205,207,.2);
  background: #fcffff;
}
.wc-block-components-checkbox input[type=checkbox] {
  accent-color: var(--brand);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.wc-block-components-checkbox label {
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.5;
  font-weight: 500;
}

/* ---- Add Shipping Address toggle ---- */
.wc-block-checkout__add-shipping-address {
  margin: 20px 0;
}
.wc-block-checkout__add-shipping-address .wc-block-components-button {
  background: transparent !important;
  color: var(--brand-3) !important;
  border: 1.5px dashed rgba(70,205,207,.3) !important;
  border-radius: var(--radius-s) !important;
  padding: 12px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all .25s !important;
  width: auto !important;
}
.wc-block-checkout__add-shipping-address .wc-block-components-button:hover {
  background: #f4fbfb !important;
  border-color: var(--brand) !important;
  color: var(--brand-3) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Address Form Grid ---- */
.wc-block-components-address-form {
  margin-top: 20px;
}
.wc-block-components-address-form .wc-block-components-address-form__address-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Ensure address fields don't get squished */
.wc-block-components-address-form .wc-block-components-text-input {
  min-width: 0;
}

/* ---- Shipping / Billing fields internal layout - ensure proper width distribution ---- */
.wc-block-checkout__main .wc-block-components-shipping-address,
.wc-block-checkout__main .wc-block-components-billing-address,
.wc-block-checkout__main .wc-block-checkout__shipping-methods {
  min-width: 0;
}

/* ---- Notice / Alerts ---- */
.wc-block-components-notices {
  margin-bottom: 20px;
}
.wc-block-components-notice {
  border-radius: var(--radius-s);
  font-size: 14px;
  padding: 14px 18px;
  margin: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.wc-block-components-notice.is-error {
  background: #fef5f5;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.wc-block-components-notice.is-error::before {
  content: '⚠️';
  flex-shrink: 0;
}
.wc-block-components-notice.is-success {
  background: #f0fdf7;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}
.wc-block-components-notice.is-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
}

/* ---- Shipping Address Form ---- */
.wc-block-components-shipping-address {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(23,57,58,.06);
}

/* ---- General block component buttons (non-primary) ---- */
.wc-block-checkout__main .wc-block-components-button:not(.wc-block-checkout__actions_row .wc-block-components-button) {
  background: transparent !important;
  color: var(--brand-3) !important;
  border: 1.5px solid rgba(70,205,207,.2) !important;
  border-radius: var(--radius-s) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  transition: all .2s !important;
  width: auto !important;
}
.wc-block-checkout__main .wc-block-components-button:not(.wc-block-checkout__actions_row .wc-block-components-button):hover {
  background: #f4fbfb !important;
  border-color: var(--brand) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ---- Privacy / Terms text ---- */
.wc-block-checkout__terms {
  margin: 20px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.wc-block-checkout__terms a {
  color: var(--brand-3);
  text-decoration: underline;
  font-weight: 600;
}
.wc-block-checkout__terms a:hover {
  color: var(--brand);
}

/* ---- Create Account ---- */
.wc-block-checkout__create-account {
  margin: 20px 0;
}

/* ---- Contact Form specific ---- */
.wc-block-checkout__contact-fields .wc-block-components-text-input:first-child {
  margin-bottom: 18px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .wc-block-checkout__sidebar {
    position: static;
  }
  .wc-block-checkout__main {
    padding: 28px 22px;
  }
  .wc-checkout-steps .step-divider {
    width: 28px;
    margin: 0 6px;
  }
  .wc-checkout-steps li {
    font-size: 12px;
    gap: 6px;
  }
}

@media (max-width: 860px) {
  .wc-block-cart { grid-template-columns: 1fr !important; }
  .wp-block-woocommerce-cart { padding: 0 16px; }
}

@media (max-width: 600px) {
  .wc-block-checkout__main,
  .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
    padding: 22px 16px;
    border-radius: var(--radius-m);
  }
  .wc-block-components-address-form .wc-block-components-address-form__address-fields {
    grid-template-columns: 1fr;
  }
  .wc-block-components-text-input input,
  .wc-block-components-text-input select {
    font-size: 16px; /* prevent iOS zoom */
    padding: 12px 14px;
  }
  .wc-checkout-steps {
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0 24px;
  }
  .wc-checkout-steps li {
    font-size: 11px;
  }
  .wc-checkout-steps .step-divider {
    width: 20px;
    margin: 0 4px;
  }
  .wc-checkout-steps li .step-num {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .wp-block-woocommerce-checkout {
    padding: 0 0 30px;
  }
  .wc-checkout-hero {
    padding: 20px 16px 22px;
    margin-bottom: 20px;
  }
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted{
    box-shadow:none!important;
}
/* ===== 商品詳情頁 主佈局（畫廊 | 摘要） ===== */
/* 使用 CSS Grid：只有畫廊和摘要兩列，其餘所有子元素自動流入下方整行 */
.wc-page div.product,
body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin: 0;
}

/* 左欄 — 畫廊區域（固定在第1列第1行）*/
.wc-page .wc-product-gallery-wrap,
body.single-product .wc-product-gallery-wrap {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  max-width: 690px;
  width: 100%;
  margin: 0;
}

/* 右欄 — 商品信息（固定在第2列第1行）*/
.wc-page .entry-summary,
body.single-product .entry-summary {
  grid-column: 2;
  grid-row: 1;
  padding-top: 4px;
  min-width: 0;
}

/*
 * 其餘所有子元素（after_single_product_summary 輸出的 tabs/屬性表 等）
 * 在 CSS Grid 中自動流入後續行，天然佔滿整列寬度 —— 不需要額外規則
 */

/* 覆蓋 WooCommerce 默認 float 佈局 */
.wc-page div.product .images,
body.single-product div.product .images,
.wc-page div.product .woocommerce-product-gallery,
body.single-product div.product .woocommerce-product-gallery {
  float: none !important;
  width: auto !important;
  margin-right: 0 !important;
}

.wc-page div.product .summary,
body.single-product div.product .summary {
  float: none !important;
  width: auto !important;
}

/* ============================================
   商品 Tabs（描述 / 其他信息）
   ============================================ */
.woocommerce-tabs {
  margin-top: 40px !important;
  clear: both;
}

/* Tab 導航欄 */
.wc-page .woocommerce-tabs ul.tabs,
body.single-product .woocommerce-tabs ul.tabs,
.wc-tabs {
  display: flex !important;
  gap: 6px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  border: none !important;
  background: #f0f3f5;
  border-radius: 14px !important;
  overflow: hidden;
}

.wc-tabs::before {
  display: none !important;
}

/* Tab 按鈕 */
.wc-tabs li {
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  position: static !important;
}

.wc-tabs li a {
  display: block !important;
  text-align: center !important;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #7a8a8f !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
  transition: all .25s ease !important;
  position: relative;
}

.wc-tabs li a:hover {
  color: #3a4a4f !important;
  background: rgba(0,0,0,.04) !important;
}

/* 激活態標籤 */
.wc-tabs li.active a {
  color: #333 !important;
  font-weight: 700 !important;
}

/* 面板容器 */
.woocommerce-tabs .panel,
.woocommerce-Tabs-panel {
  border: none !important;
  border-radius: 20px !important;
  background: #fff;
  padding: 28px 32px !important;
  margin: 0 !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* 描述面板 */
#tab-description {
  font-size: 16px;
  line-height: 1.8;
  color: #3a4a4f;
}

/* 屬性表 */
.woocommerce-product-attributes,
.shop_attributes {
  border: none !important;
  width: 100% !important;
  border-collapse: collapse !important;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td,
.shop_attributes th,
.shop_attributes td {
  padding: 14px 20px !important;
  font-size: 15px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  color: #333 !important;
  text-align: left !important;
}

.woocommerce-product-attributes tr:last-child td,
.woocommerce-product-attributes tr:last-child th,
.shop_attributes tr:last-child td,
.shop_attributes tr:last-child th {
  border-bottom: none !important;
}

.woocommerce-product-attributes th,
.shop_attributes th {
  color: #7a8a8f !important;
  font-weight: 600 !important;
  width: 140px !important;
  white-space: nowrap;
}

/* 隱藏默認 tab 標題（h2） */
.woocommerce-tabs .panel h2:first-child,
.woocommerce-Tabs-panel > h2:first-of-type {
  display: none;
}

/* ===== 商品圖片畫廊 ===== */

/* 主圖容器 — 超大圓角 + 淺色背景 */
.woocommerce-product-gallery {
  overflow: hidden !important;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image,
.woocommerce-product-gallery .flex-viewport {
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: 20px;
}
.woocommerce-product-gallery .flex-viewport img {
  border-radius: 40px;
  transition: opacity .3s ease;
}

/* 縮略圖行 — 只顯示一行，超出隱藏，箭頭控制滑動 */
.wc-product-gallery-wrap .woocommerce-product-gallery .flex-control-thumbs,
.woocommerce-page .woocommerce-product-gallery .flex-control-thumbs,
.woocommerce .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  padding: 18px 44px;
  margin: 0 !important;
  gap: 14px;
  list-style: none !important;
  width: auto !important;
  max-width: 100% !important;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}
.wc-product-gallery-wrap .flex-control-thumbs li,
.woocommerce-page .flex-control-thumbs li,
.woocommerce .flex-control-thumbs li {
  flex-shrink: 0 !important;
  width: 100px !important;
  max-width: 100px !important;
  height: 100px !important;
  overflow: hidden !important;
}
.woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  transition: all .25s ease;
  display: block;
  background: #fff;
}
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
  border-color: rgba(70,205,207,.4);
}
.woocommerce-product-gallery .flex-control-thumbs li.flex-active img {
  border-color: #46CDCF;
  box-shadow: 0 2px 12px rgba(70,205,207,.18);
}

/* 左右箭頭 — 默認隱藏，縮略圖>4張時 JS 控制顯示 */
.wc-thumb-arrow {
  position: absolute;
  top: calc(100% - 102px);
  z-index: 20;
  width: 22px;
  height: 46px;
  margin-top: 0;
  border-radius: 6px;
  border: 1.5px solid #d0d8dc;
  background: #fff;
  color: #556;
  font-size: 15px;
  font-weight: 400;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: all .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  line-height: 1;
  outline: none;
}
.wc-thumb-arrow:hover {
  border-color: #46CDCF;
  color: #46CDCF;
  box-shadow: 0 2px 10px rgba(70,205,207,.18);
}
.wc-thumb-arrow-left  { left: -30px; }
.wc-thumb-arrow-right { right: -24px; }

/* 圖片切換淡入動畫 */
.woocommerce-product-gallery__image.flex-active-slide img {
  animation: galleryFadeIn .3s ease-out;
}
@keyframes galleryFadeIn {
  from { opacity: .35; }
  to   { opacity: 1; }
}

/* ===== 商品屬性（Single Product entry-summary 內） ===== */
.wc-product-attributes {
  margin-top: 28px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f7fcfc, #eefaf9);
  border-radius: 12px;
  border: 1.5px solid rgba(70,205,207,.10);
}
.wc-attrs-title {
  font-size: 16px;
  font-weight: 800;
  color: #17393a;
  margin-bottom: 16px;
  letter-spacing: .8px;
}
.wc-attrs-table {
  width: 100%;
  border-collapse: collapse;
}
.wc-attrs-table th,
.wc-attrs-table td {
  padding: 12px 14px;
  font-size: 15px;
  border-bottom: 1px solid rgba(70,205,207,.08);
  text-align: left;
  vertical-align: top;
}
.wc-attrs-table th {
  width: 110px;
  min-width: 90px;
  color: var(--brand-3);
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
  border-radius: 6px;
}
.wc-attrs-table td {
  color: #17393a;
  font-weight: 600;
  font-size: 15px;
}
.wc-attrs-table tr:last-child th,
.wc-attrs-table tr:last-child td {
  border-bottom: none;
}
.wc-product-sku {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.wc-product-sku span {
  margin-right: 6px;
}
.wc-product-sku strong {
  color: #17393a;
  font-weight: 700;
}

/* ===== 產品頁 數量+加購按鈕 等高對齊 ===== */
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2em;
}
.woocommerce div.product form.cart .quantity {
  margin: 0;
}
.woocommerce div.product form.cart .quantity input.qty {
  width: 64px;
  height: 46px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid rgba(70,205,207,.25);
  border-radius: 8px;
  padding: 0 8px;
  box-sizing: border-box;
  outline: none;
  color: #17393a;
}
.woocommerce div.product form.cart .quantity input.qty:focus {
  border-color: #46CDCF;
  box-shadow: 0 0 0 3px rgba(70,205,207,.15);
}
.woocommerce div.product form.cart {
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
.woocommerce div.product form.cart .quantity {
  margin: 0 !important;
}
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button.button {
  height: 46px;
  line-height: 46px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  margin: 0 !important;
}
.woocommerce div.product form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart button.button:hover {
  background: var(--brand-3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(70,205,207,.35);
}
.woocommerce table.shop_table th{
    width: 30%;
}
/* 立即購買按鈕 */
.wc-buy-now-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  line-height: 46px !important;
  padding: 0 28px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  background: var(--brand) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all .2s ease !important;
  white-space: nowrap !important;
  margin: 0 !important;
  cursor: pointer !important;
}
.wc-buy-now-btn:hover {
  background: var(--brand-3) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(70,205,207,.35);
}

/* ===== 分類頁產品列表 - 產品編號 ===== */
.wc-loop-sku {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.products li.product .wc-loop-sku {
  padding: 0 16px;
}

/* --- 詢價/購買按鈕（分類/循環列表用） --- */
.wc-inquiry-btn,
.wc-buy-now {
  display: inline-block !important;
  background: linear-gradient(135deg, #46CDCF, #38b8ba) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  width: calc(100% - 32px);
  margin: 12px 16px 8px !important;
  padding: 10px 20px !important;
  border-radius: 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: transform .2s, box-shadow .2s !important;
  border: none !important;
}
.wc-inquiry-btn:hover,
.wc-buy-now:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(70,205,207,.35) !important;
}

/* 隱藏默認加購按鈕（無價格商品） */
li.product form.cart { display: none; }

/* ============================================
   服務保障模塊 (Service Guarantees)
   ============================================ */
.service-guarantees {
  padding: 44px 0 28px;
  margin-bottom: 46px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfc 100%);
}
.sg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sg-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid rgba(23,57,58,.06);
  transition: var(--t);
}
.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(70,205,207,.2);
}
.sg-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, rgba(70,205,207,.12), rgba(151,227,228,.16));
}
.sg-icon svg {
  width: 36px;
  height: 36px;
  color: var(--brand-3);
}
.sg-body { display: grid; gap: 4px; }
.sg-body h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-3);
  line-height: 1.4;
}
.sg-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .sg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sg-icon { width: 52px; height: 52px; }
  .sg-icon svg { width: 28px; height: 28px; }
  .sg-body h3 { font-size: 1rem; }
  .sg-body p { font-size: 12px; }
}
@media (max-width: 560px) {
  .service-guarantees { padding: 32px 0 22px; }
  .sg-grid { grid-template-columns: 1fr; gap: 10px; }
  .sg-card { padding: 16px 14px; }
}

/* ============================================
   案例詳情頁 - 標籤、輪播、正文
   ============================================ */
.case-tag { padding:5px 14px; border-radius:999px; font-size:13px; font-weight:700; }
.case-tag--cat { background:rgba(70,205,207,.12); color:var(--brand-3); }
.case-tag--ind { background:rgba(255,140,50,.12); color:#e07b30; }
.case-body h2, .case-body h3 { margin-top:1.6em; color:var(--ink); }
.case-body img { width:100%; border-radius:12px; margin:16px 0; }
.case-body ul, .case-body ol { padding-left:1.2em; }

/* 焦點圖輪播 */
.case-gallery {
  position:relative; overflow:hidden; border-radius:16px;
  background:rgba(0,0,0,.04); margin-bottom:32px;
}
.case-gallery-track {
  display:flex; transition:transform 0.5s cubic-bezier(0.25,0.1,0.25,1); will-change:transform;
}
.case-gallery-slide { flex:0 0 100%; min-width:0; }
.case-gallery-slide img { width:100%; display:block; }

/* 箭頭 */
.case-gallery-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:88px; border-radius:10px;
  background:rgba(255,255,255,1); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:var(--ink);
  box-shadow:0 2px 8px rgba(0,0,0,.15); transition:all .2s;
}
.case-gallery-prev { left:12px; }
.case-gallery-next { right:12px; }
.case-gallery-arrow:hover { background:#fff; box-shadow:0 4px 14px rgba(0,0,0,.18); }

/* 小圓點 */
.case-gallery-dots {
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; gap:20px;
}
.case-gallery-dot {
  width:12px; height:12px; border-radius:50%; border:none; padding:0;
  cursor:pointer; background:rgba(0,0,0,.2); transition:all .3s;
}
.case-gallery-dot.active {width:32px; height:12px; border-radius:6px; background:var(--brand-3); transform:scale(1.3); }

@media (max-width: 760px) {
  .case-single .container { padding-left:20px; padding-right:20px; }
  .case-header { margin:40px 0 !important; }
  .case-header > div { flex-direction:column; }
  .case-client-logo {
    width:100% !important; max-width:200px; height:auto !important;
    margin-right:0 !important; padding-right:0 !important;
    border-right:none !important; border-bottom:2px dotted rgba(0,0,0,.3);
    padding-bottom:20px; margin-bottom:20px;
  }
  .case-client-logo img { height:auto !important; width:100%; }
  .case-header h1 { font-size:28px !important; line-height:1.3 !important; }
  .case-hero img { border-radius:10px; }
  .case-body { font-size:15px; }
  .case-gallery-arrow { width:36px; height:36px; }
  .case-gallery-arrow svg { width:16px; height:16px; }
}
