/* =========================================================
   MOJAY｜MJ-UI Global Styles (Base & Components)
   File: assets/css/mj-ui.css
   Version: V11 Hybrid Scope (SAFE + WORKING)

   Scope Rule（長期可維護版本）：
   - 會「影響全站排版/字體/區塊」的規則：限定在 .mj-page-shell
   - 已經是 mj-namespace 的「元件本體」規則（例如 .mj-gallery__*）：
     允許全域，避免首頁/未包 shell 的頁面元件失效
   ========================================================= */


/* =========================================================
   0) Page Shell (Global Structure) — CLEAN & STABLE
   Fix: Remove global 100vw breakout to prevent mobile offset
   ========================================================= */

.mj-page-shell{
  width: 100%;
  max-width: 100%;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  overflow-x: clip; /* modern */
  color: #e5dfd2;
}

@supports not (overflow: clip) {
  .mj-page-shell{ overflow-x: hidden; } /* fallback */
}

/* =========================================================
   Full-width sections (apply breakout ONLY where needed)
   - WordPress/Gutenberg commonly uses .alignfull
   ========================================================= */

.mj-page-shell .alignfull{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* =========================================================
   Mobile: Disable alignfull breakout to prevent viewport drift
   ========================================================= */
@media (max-width: 768px){
  .mj-page-shell .alignfull{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* If any alignfull contains inner wrappers, keep them inside viewport */
.mj-page-shell .alignfull > *{
  box-sizing: border-box;
}

.mj-page-shell .mj-section.alignfull{
  background: transparent;
}

.mj-page-shell .mj-section.alignfull > .alignwide,
.mj-page-shell .alignwide{
  margin-inline: auto;
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
}

.mj-page-shell .mj-products-section,
.mj-page-shell .mj-products-section.alignfull{
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.mj-page-shell .mj-products-section-header,
.mj-page-shell .mj-products-section .woocommerce,
.mj-page-shell .mj-products-section .products{
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: 1120px !important;
}

.mj-page-shell .mj-products-section-header{
  text-align: center;
  margin-bottom: 40px;
}

.mj-page-shell .mj-hero-crystals{
  background: transparent !important;
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(60px, 8vh, 100px);
}

.mj-page-shell .mj-section{
  padding-top: clamp(44px, 6vh, 76px);
  padding-bottom: clamp(44px, 6vh, 76px);
}
.mj-page-shell .mj-section + .mj-section{
  margin-top: 0;
}

.mj-page-shell .mj-section.alignfull > .alignwide{
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}


/* =========================================================
   0.9) Page Variants (Background / Mood)
   ========================================================= */

.mj-page-shell.mj-page--crystals{
  background:
    radial-gradient(1200px 520px at 72% 18%, rgba(122, 76, 255, 0.35) 0%, rgba(122, 76, 255, 0.18) 34%, rgba(10, 10, 16, 0) 70%),
    radial-gradient(900px 520px at 18% 28%, rgba(247, 217, 154, 0.14) 0%, rgba(12, 12, 18, 0) 62%),
    linear-gradient(180deg, #07070b 0%, #07070b 16%, #080815 42%, #05050a 100%);
  color: #e5dfd2;
}

.mj-page-shell.mj-page--thunder-wood{
  /* NOTE:
     thunder-wood mood/overrides live in mj-pages.css (page-only).
     Keep this entry point empty to avoid cross-file conflicts. */
}


/* =========================================================
   1) Layout Helpers (Utilities)
   Scope: .mj-page-shell
   ========================================================= */

.mj-page-shell .text-stagger-left { text-align: left; display: block; }
.mj-page-shell .text-stagger-right { text-align: right; display: block; }


/* =========================================================
   2) Button System
   ========================================================= */

/* =========================
   2.1) Existing (Scoped) — keep as-is
   ========================= */

.mj-page-shell .mj-cta-row{
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 32px;
}

.mj-page-shell .mj-btn{
  --mj-btn-gold: #c2a35d;
  --mj-btn-gold-soft: rgba(194,163,93,.35);
  --mj-btn-text: #f5f5f5;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;

  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.mj-page-shell .mj-btn.is-primary{
  background: linear-gradient(135deg, #f7d99a 0%, #d7b46a 100%);
  color: #141414;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mj-page-shell .mj-btn.is-outline{
  background: rgba(255, 255, 255, 0.03);
  color: #f7d99a;
  border: 1px solid rgba(247, 217, 154, 0.35);
}

.mj-page-shell .mj-btn--ghost{
  background: transparent;
  color: var(--mj-btn-text);
  border: 1px solid var(--mj-btn-gold-soft);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 14px;
  padding: 14px 34px;
}
.mj-page-shell .mj-btn--ghost:hover,
.mj-page-shell .mj-btn--ghost:focus-visible{
  color: #fff;
  border-color: var(--mj-btn-gold);
  box-shadow:
    0 0 0 1px rgba(194,163,93,.35),
    0 8px 28px rgba(194,163,93,.22);
  transform: translateY(-1px);
}
.mj-page-shell .mj-btn--ghost:active{
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(194,163,93,.45),
    0 4px 16px rgba(194,163,93,.18);
}

.mj-page-shell .mj-btn[aria-disabled="true"],
.mj-page-shell .mj-btn.is-disabled{
  opacity: .45;
  pointer-events: none;
}

.mj-page-shell .mj-btn-wrap{
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

@media (max-width: 768px){
  .mj-page-shell .mj-cta-row{
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 10px;
  }
  .mj-page-shell .mj-btn{
    width: auto;
    flex: 1 1 0;
    padding: 12px 8px;
    font-size: 14px;
  }

  .mj-page-shell h1,
  .mj-page-shell h2,
  .mj-page-shell h3{
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .mj-page-shell .mj-hero-crystals h1{
    font-size: 36px !important;
  }

  .mj-page-shell .mj-title-responsive{
    font-size: clamp(20px, 5vw, 26px) !important;
  }
}

@media (max-width: 600px){
  .mj-page-shell .mj-btn--ghost{
    padding: 13px 28px;
    letter-spacing: .18em;
  }
}

/* =========================
   2.2) GLOBAL mj-btn (namespaced)
   ========================= */

.mj-btn{
  --mj-btn-gold: #d7b46a;
  --mj-btn-gold-strong: #f7d99a;
  --mj-btn-purple: rgba(122, 76, 255, 0.28);
  --mj-btn-ink: #0b0b0f;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 28px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;

  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;

  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .22s ease,
    transform .18s ease;
}

.mj-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 1px rgba(247, 217, 154, .35),
    0 0 0 4px rgba(122, 76, 255, .22);
}

.mj-btn.is-primary{
  color: var(--mj-btn-ink);
  border: 1px solid rgba(247, 217, 154, 0.55);
  background:
    linear-gradient(135deg,
      rgba(247, 217, 154, 0.98) 0%,
      rgba(215, 180, 106, 0.92) 55%,
      rgba(122, 76, 255, 0.35) 100%);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.mj-btn.is-primary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 16px 46px rgba(0,0,0,0.55),
    0 0 0 3px rgba(122, 76, 255, .18);
}
.mj-btn.is-primary:active{ transform: translateY(0); }

.mj-btn.is-outline{
  color: rgba(247, 217, 154, 0.95);
  border: 1px solid rgba(247, 217, 154, 0.35);
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0.02) 60%,
      rgba(122, 76, 255, 0.06) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mj-btn.is-outline:hover{
  transform: translateY(-1px);
  border-color: rgba(247, 217, 154, 0.65);
  box-shadow:
    0 0 0 1px rgba(247, 217, 154, 0.18),
    0 0 0 4px rgba(122, 76, 255, 0.16);
}
.mj-btn.is-outline:active{ transform: translateY(0); }

.mj-btn[aria-disabled="true"],
.mj-btn.is-disabled{
  opacity: .45;
  pointer-events: none;
}

.mj-spotlight-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

@media (max-width: 768px){
  .mj-spotlight-actions{
    justify-content: center;
    gap: 10px;
  }
  .mj-spotlight-actions .mj-btn{
    flex: 1 1 0;
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* Backward-compat aliases */
.mj-btn-gold{ display:inline-flex; align-items:center; justify-content:center; padding:12px 28px; border-radius:999px; font-size:15px; font-weight:600; letter-spacing:.02em; text-decoration:none; white-space:nowrap; cursor:pointer; user-select:none; color:#0b0b0f; border:1px solid rgba(247, 217, 154, 0.55); background: linear-gradient(135deg, rgba(247, 217, 154, 0.98) 0%, rgba(215, 180, 106, 0.92) 55%, rgba(122, 76, 255, 0.35) 100%); box-shadow:0 14px 40px rgba(0,0,0,0.45); transition:color .18s ease,border-color .18s ease,background .18s ease,box-shadow .22s ease,transform .18s ease; }
.mj-btn-gold:hover{ transform:translateY(-1px); box-shadow:0 16px 46px rgba(0,0,0,0.55), 0 0 0 3px rgba(122, 76, 255, .18); }
.mj-btn-gold:active{ transform:translateY(0); }

.mj-btn-outline{ display:inline-flex; align-items:center; justify-content:center; padding:12px 28px; border-radius:999px; font-size:15px; font-weight:600; letter-spacing:.02em; text-decoration:none; white-space:nowrap; cursor:pointer; user-select:none; color:rgba(247, 217, 154, 0.95); border:1px solid rgba(247, 217, 154, 0.35); background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.02) 60%, rgba(122, 76, 255, 0.06) 100%); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); transition:color .18s ease,border-color .18s ease,background .18s ease,box-shadow .22s ease,transform .18s ease; }
.mj-btn-outline:hover{ transform:translateY(-1px); border-color:rgba(247, 217, 154, 0.65); box-shadow:0 0 0 1px rgba(247, 217, 154, 0.18), 0 0 0 4px rgba(122, 76, 255, 0.16); }
.mj-btn-outline:active{ transform:translateY(0); }


/* =========================================================
   3) Card System
   ========================================================= */

.mj-page-shell .mj-card,
.mj-page-shell .mj-guide-card{
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(247, 217, 154, 0.15);
  background: radial-gradient(circle at 20% 10%,
      rgba(30, 20, 50, 0.70) 0%,
      rgba(10, 10, 16, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.mj-page-shell .mj-guide-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 768px){
  .mj-page-shell .mj-guide-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  .mj-page-shell .mj-guide-grid{ grid-template-columns: repeat(3, 1fr); }
}

.mj-page-shell .mj-guide-card h3{
  margin: 0 0 12px 0;
  line-height: 1.25;
  letter-spacing: .04em;
}
.mj-page-shell .mj-guide-card p{
  margin: 0;
  line-height: 1.85;
}


/* =========================================================
   4) Products Block Card
   ========================================================= */

.mj-page-shell .mj-products-card{
  --mj-prod-gold: #c2a35d;

  position: relative;
  isolation: isolate;

  padding: 46px 32px 42px;
  margin: 0 auto 80px;

  border-radius: 24px;
  border: 1px solid rgba(194,163,93,.18);

  background:
    radial-gradient(circle at 20% 10%,
      rgba(30, 20, 50, 0.65) 0%,
      rgba(10, 10, 16, 0.88) 100%);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 24px 70px rgba(0,0,0,.55);
}

.mj-page-shell .mj-products-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(120% 120% at 50% 0%,
      rgba(194,163,93,.20) 0%,
      rgba(194,163,93,.12) 40%,
      rgba(0,0,0,0) 70%);
}

.mj-page-shell .mj-products-card > *{
  position: relative;
  z-index: 1;
}

.mj-page-shell .mj-products-card__inner{
  max-width: 1100px;
  margin: 0 auto;
}

.mj-page-shell .mj-products-card .mj-products-section-header{
  margin-bottom: 34px;
}

@media (max-width: 768px){
  .mj-page-shell .mj-products-card{
    padding: 36px 18px 34px;
    margin: 0 16px 64px;
  }
}


/* =========================================================
   5) Gallery Component (Slider) — namespaced global
   ========================================================= */

.mj-gallery{
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.mj-gallery__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  z-index: 1;
}
.mj-gallery__viewport::-webkit-scrollbar{ display: none; }

.mj-gallery__track{
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mj-gallery__card{
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  position: relative;
  background-color: #0a0a0a;
  border: 1px solid #222;
  overflow: hidden;
}

.mj-gallery__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.2s;
  user-select: none;

  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.6);
  border: 1px solid #e5cfa5;
  color: #e5cfa5;
  font-size: 20px;
}
.mj-gallery__btn:hover{
  background: #e5cfa5;
  color: #000;
}
.mj-gallery__btn--prev{ left: 15px; }
.mj-gallery__btn--next{ right: 15px; }

.mj-gallery--hero .mj-gallery__card{
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 500px;
  align-items: center;
}
.mj-gallery--hero .mj-gallery__media{
  height: 500px;
  width: 100%;
}
.mj-gallery--hero .mj-gallery__content{
  padding: 40px 60px 40px 20px;
}

.mj-gallery--compact .mj-gallery__card{
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 300px;
  align-items: center;
}
.mj-gallery--compact .mj-gallery__media{
  height: 300px;
  width: 100%;
}
.mj-gallery--compact .mj-gallery__content{
  padding: 20px 30px;
}
.mj-gallery--compact h3{ font-size: 1.5rem; }

@media (max-width: 768px){
  .mj-gallery--hero .mj-gallery__card,
  .mj-gallery--compact .mj-gallery__card{
    grid-template-columns: 1fr;
    height: auto;
  }
  .mj-gallery--hero .mj-gallery__media{ height: 350px; }
  .mj-gallery--compact .mj-gallery__media{ height: 250px; }
  .mj-gallery__content{ padding: 20px !important; text-align: center; }
}

.mj-gallery__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* 「開啟 lightbox 時禁止底層滾動」*/
.mj-no-scroll { overflow: hidden !important; }


/* =========================================================
   MJ Custom Request (Shared UI) — SINGLE SOURCE OF TRUTH
   Scope: .mj-page--custom-request
   - Unified for 6 pages
   - Includes IDs: #mjCustomForm / #mjCustomOutputBox / #mjCustomPreview
   ========================================================= */

.mj-page--custom-request{
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(44px, 7vh, 84px);
  color: #e5dfd2;
}

.mj-custom-signboard{
  text-align: center;
  margin-bottom: 24px;
}
.mj-signboard-sub{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .28em;
  opacity: .75;
}
.mj-signboard-title{
  margin: 10px 0 0 0;
  font-size: clamp(26px, 4.6vw, 40px);
  letter-spacing: .06em;
}

.mj-cr-warning{
  border-radius: 20px;
  border: 1px solid rgba(247, 217, 154, 0.18);
  background: radial-gradient(circle at 20% 10%,
    rgba(30, 20, 50, 0.62) 0%,
    rgba(10, 10, 16, 0.88) 100%);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  padding: 18px 18px;
  margin: 18px 0 28px;
}
.mj-cr-warning__badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 217, 154, 0.25);
  background: rgba(0,0,0,0.35);
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(247, 217, 154, 0.95);
  margin-bottom: 12px;
}
.mj-cr-warning__text{
  line-height: 1.9;
  opacity: .92;
}

.mj-cr-form{
  margin-bottom: 22px;
}

/* ---- Form Grid: prefer standard IDs (your 6 pages engine) ---- */
.mj-page--custom-request #mjCustomForm{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 980px;
  margin: 18px auto 0;
}

@media (max-width: 780px){
  .mj-page--custom-request #mjCustomForm{
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Field wrappers (if your HTML uses class grid too, keep compatible) */
.mj-cr-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px){
  .mj-cr-grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .mj-cr-field--full{
    grid-column: 1 / -1;
  }
}

/* ---- Inputs unified (ID + class compatible) ---- */
/* Critical: font-size 16px to prevent iOS auto-zoom */
.mj-page--custom-request #mjCustomForm input,
.mj-page--custom-request #mjCustomForm textarea,
.mj-cr-field input,
.mj-cr-field textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(247, 217, 154, 0.16);
  background: rgba(0,0,0,0.35);
  color: #f3efe6;

  min-height: 52px;      /* tap target */
  padding: 14px 14px;
  font-size: 16px;       /* iOS zoom fix */
  line-height: 1.5;

  outline: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  box-sizing: border-box;
}

.mj-page--custom-request #mjCustomForm textarea,
.mj-cr-field textarea{
  min-height: 140px;
  resize: vertical;
}

.mj-page--custom-request #mjCustomForm input::placeholder,
.mj-page--custom-request #mjCustomForm textarea::placeholder,
.mj-cr-field input::placeholder,
.mj-cr-field textarea::placeholder{
  color: rgba(229, 223, 210, 0.55);
}

.mj-page--custom-request #mjCustomForm input:focus,
.mj-page--custom-request #mjCustomForm textarea:focus,
.mj-cr-field input:focus,
.mj-cr-field textarea:focus{
  border-color: rgba(247, 217, 154, 0.45);
  background: rgba(0,0,0,0.40);
  box-shadow:
    0 0 0 1px rgba(247, 217, 154, 0.20),
    0 0 0 4px rgba(122, 76, 255, 0.16),
    0 14px 40px rgba(0,0,0,0.55);
  transform: translateY(-1px);
}

/* ---- Output Card (IDs are the real runtime target) ---- */
.mj-page--custom-request #mjCustomOutputBox{
  max-width: 980px;
  margin: 18px auto 0;
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(247, 217, 154, 0.16);
  background: radial-gradient(circle at 20% 10%,
    rgba(30, 20, 50, 0.62) 0%,
    rgba(10, 10, 16, 0.90) 100%);
  box-shadow: 0 22px 70px rgba(0,0,0,0.6);
}

.mj-page--custom-request #mjCustomOutputBox > label{
  display: block;
  font-size: 13px;
  letter-spacing: .14em;
  opacity: .8;
  margin: 0 0 12px 0;
}

/* The preview is a textarea (JS sets preview.value) */
.mj-page--custom-request #mjCustomPreview{
  width: 100%;
  box-sizing: border-box;
  min-height: 220px;
  padding: 14px 14px;

  border-radius: 16px;
  border: 1px solid rgba(247, 217, 154, 0.12);
  background: rgba(0,0,0,0.28);
  color: rgba(243, 239, 230, 0.92);

  font-size: 16px; /* keep consistent */
  line-height: 1.75;
}

.mj-page--custom-request #mjCustomPreview[readonly]{ opacity: 1; }

/* Actions */
.mj-page--custom-request .mj-output-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mj-page--custom-request .mj-output-actions .mj-btn{
  min-width: 168px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
}

/* LINE CTA */
.mj-line-cta{
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.mj-line-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
  color: #0b0b0f;
  border: 1px solid rgba(247, 217, 154, 0.55);
  background:
    linear-gradient(135deg,
      rgba(247, 217, 154, 0.98) 0%,
      rgba(215, 180, 106, 0.92) 55%,
      rgba(122, 76, 255, 0.35) 100%);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  transition: transform .18s ease, box-shadow .22s ease;
}

.mj-line-btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 16px 46px rgba(0,0,0,0.55),
    0 0 0 3px rgba(122, 76, 255, .18);
}

.mj-line-btn:active{
  transform: translateY(0);
}

/* Mobile extra bottom padding if you have fixed bottom bar */
@media (max-width: 780px){
  .mj-page--custom-request{
    padding-bottom: 96px;
  }
}

/* =========================================================
   Global: Bottom Fixed Nav Safe Space
   ========================================================= */

:root{
  --mj-bottom-nav-h: 86px;
  --mj-bottom-safe: env(safe-area-inset-bottom, 0px);
  --mj-bottom-gap: calc(var(--mj-bottom-nav-h) + var(--mj-bottom-safe) + 16px);
}

@media (max-width: 768px){
  body{ padding-bottom: var(--mj-bottom-gap); }
}

.mj-bottom-nav,
.mj-mobile-dock,
.mj-fixed-bottom,
.mj-footer-dock{
  padding-bottom: var(--mj-bottom-safe);
}

/* =========================================================
   WooCommerce — Product Card (Loop) polish
   Path: /assets/css/mj-ui.css
   Scope: product lists (archive/shop/blocks)
   ========================================================= */

/* 讓卡片內容更可控：圖/文/按鈕垂直排列 */
.woocommerce ul.products li.product{
  display: flex;
  flex-direction: column;
}

/* 標題與價格留出呼吸空間 */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  margin: 14px 0 10px;
  line-height: 1.35;
}

/* 價格區：原價與特價分層，避免擠在一起 */
.woocommerce ul.products li.product .price{
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px; /* 行內/換行間距 */
}

.woocommerce ul.products li.product .price del{
  opacity: .65;
  font-size: .95em;
  margin-right: 2px;
}

.woocommerce ul.products li.product .price ins{
  text-decoration: none;
  font-weight: 700;
}

/* 加入購物車：文字置中、不要跑位 */
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  padding: 14px 16px;
}

/* Woo 預設會在加入後塞一個「查看購物車」連結：讓它看起來像次要按鈕 */
.woocommerce ul.products li.product a.added_to_cart{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 14px;

  text-decoration: none;
  line-height: 1;

  border: 1px solid rgba(247, 217, 154, 0.28);
  background: rgba(255,255,255,0.03);
  color: rgba(247, 217, 154, 0.95);
}

.woocommerce ul.products li.product a.added_to_cart:hover{
  border-color: rgba(247, 217, 154, 0.55);
  background: rgba(122, 76, 255, 0.10);
}

/* 避免按鈕群太貼底：讓卡片底部留空間（若你卡片背景/陰影很吃距離） */
.woocommerce ul.products li.product{
  padding-bottom: 6px;
}
