/* =================================================
   GPT THEME TOKENS (DEFAULT = 圖片 Lime 主題)
   ================================================= */

/* ---------- NEW Default Theme (Image Lime) ---------- */
:root{
  /* layout */
  --radius:16px;
  --shadow: 0 10px 24px rgba(0,0,0,.12);

  /* base colors（以你截圖的亮黃綠/深綠為基礎） */
  --bg:#f0f0f0;
  --panel:#ffffff;
  --panel2:#f7f7f7;
  --border: rgba(0,0,0,.12);

  --text:#111111;
  --muted: rgba(17,17,17,.65);

  /* 主色：頂部亮黃綠 + 按鈕深綠 */
  --brand:#c0d000;   /* ≈ #c0d000（header lime） */
  --brand2:#50a020;  /* ≈ #50a020（button green） */

  /* background（淡淡的黃綠光暈） */
  --bg-grad-1: radial-gradient(1200px 600px at 10% 0%, rgba(192,208,0,.18), transparent 45%);
  --bg-grad-2: radial-gradient(900px 500px at 90% 20%, rgba(80,160,32,.14), transparent 50%);
  --page-bg: var(--bg);

  /* card */
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,247,247,.96));
  --card-head-bg: linear-gradient(180deg, rgba(192,208,0,.18), rgba(192,208,0,.06));
  --card-head-border: var(--border);

  /* progress */
  --dot-bg: rgba(0,0,0,.06);
  --dot-border: var(--border);
  --dot-active-bg: var(--brand);
  --dot-active-border: rgba(80,160,32,.55);

  /* form */
  --input-bg: rgba(255,255,255,.95);
  --input-border: var(--border);
  --placeholder: rgba(17,17,17,.40);

  /* button */
  --btn-bg: rgba(255,255,255,.92);
  --btn-border: var(--border);
  --btn-text: var(--text);

  --btn-primary-bg: linear-gradient(180deg, rgba(80,160,32,.96), rgba(80,160,32,.78));
  --btn-primary-border: rgba(80,160,32,.55);
  --btn-primary-text: #ffffff;

  /* misc */
  --chip-bg: rgba(192,208,0,.10);
  --chip-border: rgba(192,208,0,.22);
  --chip-text: rgba(17,17,17,.80);

  --divider: rgba(0,0,0,.10);

  --badge-bg: rgba(192,208,0,.16);
  --badge-border: rgba(192,208,0,.28);
  --badge-text: var(--brand2);
}

/* ---------- Light Green Theme（你原本的 :root 改到這裡） ---------- */
:root.customize-lightgreen{
  /* layout */
  --radius:16px;
  --shadow: 0 10px 24px rgba(31,143,99,.18);

  /* base colors */
  --bg:#e9f7f1;
  --panel:#ffffff;
  --panel2:#f3fbf7;
  --border: rgba(31,143,99,.28);

  --text:#0b2e1f;
  --muted: rgba(11,46,31,.70);

  --brand:#2fb57e;
  --brand2:#1f8f63;

  /* background */
  --bg-grad-1: radial-gradient(1200px 600px at 10% 0%, rgba(47,181,126,.18), transparent 45%);
  --bg-grad-2: radial-gradient(900px 500px at 90% 20%, rgba(159,211,181,.22), transparent 50%);
  --page-bg: var(--bg);

  /* card */
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.92), rgba(243,251,247,.92));
  --card-head-bg: linear-gradient(180deg, rgba(47,181,126,.22), rgba(47,181,126,.08));
  --card-head-border: var(--border);

  /* progress */
  --dot-bg: rgba(31,143,99,.10);
  --dot-border: var(--border);
  --dot-active-bg: var(--brand);
  --dot-active-border: rgba(31,143,99,.65);

  /* form */
  --input-bg: rgba(255,255,255,.92);
  --input-border: var(--border);
  --placeholder: rgba(11,46,31,.45);

  /* button */
  --btn-bg: rgba(228,244,236,.90);
  --btn-border: var(--border);
  --btn-text: var(--text);

  --btn-primary-bg: linear-gradient(180deg, rgba(47,181,126,.95), rgba(31,143,99,.88));
  --btn-primary-border: rgba(31,143,99,.75);
  --btn-primary-text: #ffffff;

  /* misc */
  --chip-bg: rgba(228,244,236,.75);
  --chip-border: var(--border);
  --chip-text: rgba(11,46,31,.80);

  --divider: rgba(31,143,99,.25);

  --badge-bg: rgba(182,230,203,.55);
  --badge-border: var(--border);
  --badge-text: var(--brand2);
}
/* =================================================
   PRODUCT EMBED / DIALOG COMMON
   index.php 用 iframe 開啟產品頁 embed=1 時共用
   ================================================= */

html,
body {
  width: 100%;
  min-height: 100%;
}

body.product-embed {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* 產品頁 embed 基本容器 */
.product-embed main {
  width: 100%;
  box-sizing: border-box;
}

/* embed 內頁沒有載 header.php，所以這裡補 btn 基本樣式 */
.product-embed .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--btn-border, var(--border));
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: none;
}

.product-embed .btn:visited,
.product-embed .btn:hover,
.product-embed .btn:active {
  text-decoration: none;
}

.product-embed .btn:hover {
  transform: translateY(-1px);
}

/* 主要按鈕 */
.product-embed .btn.blue,
.product-embed .btn.primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-text);
}

/* CTA 深色區塊裡的白色主按鈕 */
.product-embed .btn.gold {
  background: #fff;
  border-color: rgba(255, 255, 255, .72);
  color: var(--brand2);
}

/* CTA 深色區塊裡的透明按鈕 */
.product-embed .btn.white {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

/* 如果白底區塊需要白色按鈕，另外加 is-light 避免白字看不到 */
.product-embed .btn.white.is-light,
.product-embed .light-area .btn.white {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

/* 共用 CTA：產品頁可逐步改成 class="product-cta xxx-cta" */
.product-embed .product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .16), transparent 34%),
    linear-gradient(135deg, var(--brand2), #123f7a);
  color: #fff;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.product-embed .product-cta > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.product-embed .product-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 950;
}

.product-embed .product-cta p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.product-embed .product-cta-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.product-embed .product-cta-actions .btn {
  width: auto;
  min-width: 104px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  white-space: nowrap;
}

/* dialog 寬度不足時，CTA 改上下排列 */
@media (max-width: 820px) {
  .product-embed .product-cta {
    display: block;
  }

  .product-embed .product-cta-actions {
    margin-top: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-embed .product-cta-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* 手機 dialog */
@media (max-width: 520px) {
  .product-embed .product-cta {
    padding: 14px;
    border-radius: 16px;
  }

  .product-embed .product-cta h2 {
    font-size: 22px;
  }

  .product-embed .product-cta-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}