@charset "utf-8";
/* =============================================================
   A03-3「開始設計」custom-made-start（Figma node 994:2684，1440 × 7956）
   請在 custom-made-common.css 之後載入；只放本頁獨有的區塊與共用區塊的位置參數
   互動（選項 → 配置表）在 assets/js/custom-made-start.js
   ============================================================= */

/* ---------- 01 Hero：文案 x588，Create Your Wedding Shoes x628（字較大，120/130） ---------- */
.page-custom-made-start .hero {
  --hero-x: 40.833%;
  --hero-dx: clamp(28px, 2.778vw, 40px);
  --hero-pb: 89px;
  --hero-desc-w: 331px;
}
.page-custom-made-start .hero__copy { max-width: 600px; }
.page-custom-made-start .hero__display { font-size: clamp(84px, 8.33vw, 120px); line-height: 1.083; }
.page-custom-made-start .hero__title { margin-top: 4px; }   /* Figma 標題壓到大字下緣 53px，實際太擠，改成不重疊 */

/* =============================================================
   02 開始訂製（Figma 900–4772）
   左：預覽 808（sticky）／右：選項欄 461（x879）
   ============================================================= */
.builder { padding: 35px 0 65px; }
.builder__inner { display: flex; align-items: flex-start; }

.builder__preview { flex: 0 0 56.111%; position: sticky; top: 24px; padding-top: 47px; }
.builder__tag  { margin-left: 9.035%; font-family: var(--ff-display); line-height: 28px; }   /* x73 */
.builder__fig  { margin-top: 17px; }
.builder__fig .media { position: relative; aspect-ratio: 808 / 724; }
.builder__hint { text-align: center; line-height: 31px; color: var(--c-muted); }

.builder__panel { flex: 0 0 32.014%; min-width: 0; margin-left: 4.931%; }   /* x879 w461 */
.builder__head { text-align: center; }
.builder__en { font-family: var(--ff-display); font-size: var(--fs-h3); line-height: 39px; }
.builder__zh { font-size: var(--fs-lead); line-height: 24px; font-weight: 400; }
.builder__head::after {                                                      /* 下方細直線 51 */
  content: ''; display: block; width: 1px; height: 51px;
  margin: 24px auto 6px; background: var(--c-rule);
}

.cstep + .cstep { margin-top: 22px; }

/* 步驟標題：── 01 Outline 選擇鞋口輪廓 ── */
.step-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 17px; font-weight: 400; }
.step-head::before,
.step-head::after { content: ''; flex: 1 1 0; min-width: 20px; height: 1px; margin-top: 34px; background: var(--c-rule); }
.step-head__no { font-family: var(--ff-display); font-size: var(--fs-titleb); line-height: 50px; }
.step-head__en { margin-top: 22px; font-family: var(--ff-display); font-size: var(--fs-t3); line-height: 41px; }
.step-head__zh { margin-top: 21px; font-size: var(--fs-lead); line-height: 26px; }

/* 子標題：Ankle Strap 腳踝帶 */
.step-sub { display: flex; align-items: baseline; gap: 8px; margin: 30px 0 17px; font-weight: 400; }
.step-head + div > .step-sub { margin-top: 0; }
.step-sub__en { font-family: var(--ff-display); font-size: var(--fs-t3); line-height: 41px; }
.step-sub__zh { font-size: var(--fs-lead); line-height: 26px; }

/* 選項：3 欄 125 ／ 4 欄 110 ／ 5 欄 88（都排滿 461） */
.opts { display: flex; flex-wrap: wrap; row-gap: 17px; }
.opts--3 { column-gap: 9.328%; }
.opts--4 { column-gap: 1.519%; }
.opts--5 { column-gap: 1.139%; }
.opts--3 .opt { flex: 0 0 27.115%; }
.opts--4 .opt { flex: 0 0 23.861%; }
.opts--5 .opt { flex: 0 0 19.089%; }

.opt { position: relative; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.opt input { position: absolute; top: 4px; left: 4px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }  /* 隱藏但仍可用鍵盤操作 */
.opt__img { display: block; transition: box-shadow .2s ease; }
.opts--3 .opt__img { aspect-ratio: 125 / 164.58;border-radius: 65px; }
.opts--4 .opt__img { aspect-ratio: 110 / 145;border-radius: 65px; }
.opts--5 .opt__img { aspect-ratio: 88 / 115;border-radius: 65px; }
.opt__en   { margin-top: 7px; font-size: var(--fs-small); line-height: 18px; color: var(--c-muted); }
.opt__zh   { font-size: var(--fs-body); line-height: 27px; }
.opts--4 .opt__zh { margin-top: 4px; }
.opt__desc { font-size: var(--fs-small); line-height: 18px; color: var(--c-muted); }
.opt:hover .opt__img { box-shadow: 0 0 0 1px var(--c-gold); }
.opt input:checked ~ .opt__img { box-shadow: 0 0 0 2px var(--c-gold); }
.opt input:checked ~ .opt__zh  { font-weight: 600; }
.opt input:focus-visible ~ .opt__img { outline: 2px solid var(--c-gold); outline-offset: 4px; }

/* =============================================================
   03 CRAFTED FOR ME（Figma 4772–5622，色帶 1440 × 850）
   ============================================================= */
.summary { background: var(--c-surface); padding: 81px 0 18px; }
.summary__top { margin-left: 11.389%; display: flex; gap: .862%; }       /* x164 ／ 間距 11（以 1276 換算） */
.summary__fig { flex: 0 0 43.103%; }                                       /* 550 */
.summary__fig .media { position: relative; aspect-ratio: 1 / 1; }

.pair { flex: 0 0 43.103%; aspect-ratio: 1 / 1; background: #fff; padding: 34px 54px 24px 46px; text-align: center; }
.pair__en { font-family: var(--ff-display); font-size: var(--fs-h3); line-height: 40px; }
.pair__zh { font-size: var(--fs-t4); line-height: 36px; font-weight: 500; }
.pair__table { margin: 33px 0 0; text-align: left; }
.pair__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 12px 13px 9px; border-top: 1px solid var(--c-rule); line-height: 27px; }
.pair__row dd { margin: 0; text-align: right; }
.pair__row--head { border-top: 0; padding-top: 0; font-family: var(--ff-display); font-size: var(--fs-lead); line-height: 26px; }
[data-out] { transition: color .3s ease; }
[data-out].is-updated { color: var(--c-gold); }

.summary__bottom { margin: 40px 0 0 12.5%; display: flex; align-items: flex-start; }   /* x180（以下以 1260 換算） */
.summary__head { flex: 0 0 18.254%; }                                    /* 230 */
.summary__en { font-family: var(--ff-display); font-size: var(--fs-h3); line-height: 40px; }
.summary__zh { font-size: var(--fs-t4); line-height: 36px; font-weight: 500; }
.summary__desc { flex: 0 0 43.254%; margin-left: 2.302%; }               /* x439 w545 */
.summary__sign { flex: 0 0 21.984%; margin: -4px 0 0 1.905%; }            /* x1008 w277 */
.summary__sign .media { position: relative; aspect-ratio: 277 / 124; }
.summary__icon { flex: 0 0 6.19%; margin: -40px 0 0 1.825%; }             /* x1308 w78，上提 40 */
.summary__icon .media { position: relative; aspect-ratio: 78 / 201; }

/* =============================================================
   04 下一步＋商品規格（Figma 5622–6257）
   ============================================================= */
.actions { padding: 31px 0 60px; }
.tiles { display: flex; justify-content: center; gap: .625%; }            /* 間距 9 */
.tiles li { flex: 0 0 25.347%; min-width: 0; }                            /* 365 */
.tile {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  padding: 14px 12px 1px; text-align: center;
  background: var(--c-brand2); transition: opacity .25s ease;
}
.tile:hover { opacity: .8; }
.tile__title { line-height: 27px; font-weight: 600; }
.tile__sub { font-size: var(--fs-caption); line-height: 27px; color: var(--c-muted); }

.actions__more { margin-top: 41px; text-align: center; }

.specs { width: 35.278%; margin: 28px auto 0; }                            /* w508 置中 */
.specs__row { display: flex; padding: 13px 0 13px 9px; border-bottom: 1px solid var(--c-rule); line-height: 27px; }
.specs__row dt { flex: 0 0 22%; color: var(--c-muted); }
.specs__row dd { flex: 1 1 auto; min-width: 0; margin: 0; }

/* =============================================================
   05 WHAT HAPPENS NEXT（Figma 6257–6650）
   ============================================================= */
.next { padding: 76px 0 76px; }
.next__inner { padding-left: 8.194%; }                                     /* x118 */
.next__zh { font-size: var(--fs-t4); line-height: 35px; font-weight: 500; }
.flow { margin: 34px 0 0 24px; width: 89.637%; display: flex; align-items: flex-start; }   /* x142 w1185 */
.flow__step { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.flow__step:last-child { flex: 0 0 auto; }
.flow__step strong { display: flex; align-items: center; font-size: var(--fs-lead); line-height: 28px; font-weight: 500; white-space: nowrap; }
.flow__step span { margin-top: 17px; line-height: 27px; color: var(--c-muted); }
/* 步驟之間的箭頭：::after 是線、::before 是箭頭（用 order 排到線後面） */
.flow__step strong::after { content: ''; order: 1; flex: 1 1 auto; min-width: 24px; height: 1px; margin-left: 16px; background: var(--c-rule); }
.flow__step strong::before {
  content: ''; order: 2; flex: none; width: 7px; height: 7px; margin: 0 16px 0 -7px;
  border-top: 1px solid var(--c-rule); border-right: 1px solid var(--c-rule); transform: rotate(45deg);
}
.flow__step:last-child strong::before,
.flow__step:last-child strong::after { content: none; }

/* =============================================================
   06 YOU MAY ALSO BE LOOKING FOR（Figma 6650–7306，與 A02-1 相同）
   ============================================================= */
.also { background: var(--c-brand2); padding: 46px 0 82px; }
.also__label {
  margin-left: 11.458%;                                          /* x165 */
  font-family: var(--ff-display); line-height: 28px; letter-spacing: .06em;
  color: var(--c-muted);
}
.also__head {
  margin: 2px 0 0 11.458%; width: 80.486%;                       /* x165 w1159 */
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
}
.also__title { font-size: var(--fs-title); line-height: 28px; font-weight: 500; letter-spacing: .02em; }
.also__more  { font-size: var(--fs-title); line-height: 28px; transition: opacity .25s ease; }
.also__more:hover { opacity: .6; }
.occasions { margin: 30px 0 0 9.444%; width: 83.530%; display: flex; gap: .762%; }   /* x136 w1202.83 */
.occ { flex: 0 0 24.428%; min-width: 0; }                        /* 293.83 */
.occ__link { position: relative; display: block; }
.occ__fig .media { position: relative; aspect-ratio: 293.83 / 440; }
.occ__tag  { position: absolute; left: 8.849%; top: 5.454%; font-size: var(--fs-caption); line-height: 22px; color: var(--c-text-invert); }
.occ__rule { position: absolute; left: 10.040%; top: 15.682%; width: 1px; height: 68.636%; background: rgba(255,255,255,.7); }
.occ__name { position: absolute; left: 8.849%; bottom: 24px; font-size: var(--fs-title); line-height: 28px; color: var(--c-text-invert); }
.occ__link .media > img { transition: transform .6s ease; }
.occ__link:hover .media > img { transform: scale(1.04); }

/* ---------- 07 Overseas Service：共用 .cta ---------- */
.cta--overseas { --cta-pt: 66px; --cta-pb: 64px; }

/* =============================================================
   ★ 唯一的斷點：1024px（本頁）
   ============================================================= */
@media (max-width: 1023.98px) {
  .page-custom-made-start .hero { --hero-pb: 64px; }
  .page-custom-made-start .hero__display { font-size: 44px; line-height: 1.15; }
  .page-custom-made-start .hero__title { margin-top: 12px; }

  .builder { padding: 32px 0 48px; }
  .builder__inner { flex-direction: column; }
  /* 手機版預覽圖跟著捲動時固定在上方，選項在下面 */
  .builder__preview { flex: 0 0 auto; width: 100%; top: 0; z-index: 3; padding: 8px 20px 10px; background: #fff; }
  .builder__tag { display: none; }
  .builder__fig { margin-top: 0; }
  .builder__fig .media { aspect-ratio: 16 / 9; }
  .builder__hint { font-size: var(--fs-caption); line-height: 24px; }
  .builder__panel { flex: 0 0 auto; width: 100%; margin: 24px 0 0; padding-inline: 20px; }

  .summary { padding: 40px 20px 40px; }
  .summary__top { margin: 0; flex-direction: column; gap: 16px; }
  .summary__fig, .pair { flex: 0 0 auto; width: 100%; }
  .pair { aspect-ratio: auto; padding: 24px 16px; }
  .summary__bottom { margin: 28px 0 0; flex-wrap: wrap; }
  .summary__head { flex: 0 0 100%; }
  .summary__desc { flex: 0 0 100%; margin: 12px 0 0; }
  .summary__sign { flex: 0 0 55%; margin: 20px 0 0; }
  .summary__icon { flex: 0 0 14%; margin: 20px 0 0 auto; }

  .actions { padding: 32px 20px 48px; }
  .tiles { flex-direction: column; gap: 10px; }
  .tiles li { flex: 0 0 auto; }
  .tile { padding: 14px 12px; }
  .actions__more { margin-top: 28px; }
  .specs { width: 100%; margin-top: 16px; }
  .specs__row { flex-direction: column; padding: 12px 0; }
  .specs__row dt { flex: 0 0 auto; }

  .next { padding: 44px 20px 48px; }
  .next__inner { padding-left: 0; }
  .flow { width: 100%; margin: 24px 0 0; flex-direction: column; gap: 18px; }
  .flow__step { flex: 0 0 auto; padding-left: 18px; border-left: 1px solid var(--c-rule); }
  .flow__step strong::before, .flow__step strong::after { content: none; }
  .flow__step span { margin-top: 2px; }

  .also { padding: 40px 20px 44px; }
  .also__label { margin-left: 0; }
  .also__head { width: 100%; margin: 6px 0 0; }
  .also__title, .also__more { font-size: var(--fs-title); }
  .occasions { width: 100%; margin: 24px 0 0; flex-direction: column; gap: 20px; }
  .occ { flex: 0 0 auto; width: 100%; }
  .occ__fig .media { aspect-ratio: 3 / 2; max-height: 50vh; }
}
