:root {
  --wine: #6f1724;
  --wine-dark: #4d0e18;
  --rose: #d67a82;
  --cream: #fffaf6;
  --ink: #3f2728;
  --line: rgba(111, 23, 36, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.95), rgba(250,241,235,.76) 40%, rgba(244,227,221,.82) 100%),
    #f7eee9;
  font-family: "Noto Sans TC", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-shell { width: 100%; overflow: clip; }
.artboard {
  width: min(100%, 1440px);
  margin: 0 auto;
  position: relative;
  background: white;
  box-shadow: 0 28px 90px rgba(76, 35, 39, .13);
}
.visual-section { position: relative; line-height: 0; }
.visual-section > img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.spot {
  position: absolute;
  z-index: 3;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 999px;
}
.spot:focus-visible { outline: 3px solid #d76f7b; outline-offset: 3px; }
.header-hotspots { position: absolute; inset: 0; }
.s-home { left: 19.5%; top: 30%; width: 4%; height: 42%; }
.s-style { left: 25.5%; top: 30%; width: 7%; height: 42%; }
.s-custom { left: 34.5%; top: 30%; width: 7%; height: 42%; }
.s-series { left: 43.2%; top: 30%; width: 7%; height: 42%; }
.s-about { left: 52%; top: 30%; width: 7%; height: 42%; }
.s-flow { left: 60.8%; top: 30%; width: 7%; height: 42%; }
.s-contact { left: 69.5%; top: 30%; width: 7%; height: 42%; }
.s-instagram { left: 80.2%; top: 27%; width: 3.5%; height: 48%; }
.s-cart { left: 84.1%; top: 27%; width: 3.5%; height: 48%; }
.s-order { left: 88.2%; top: 19%; width: 8.2%; height: 62%; }
.hero-cta { left: 7.1%; top: 52.4%; width: 16.5%; height: 9.8%; }
.product { top: 18%; width: 16.3%; height: 72%; border-radius: 16px; }
.product:hover { box-shadow: inset 0 0 0 2px rgba(111,23,36,.18); }
.p1 { left: 6.2%; }
.p2 { left: 24.4%; }
.p3 { left: 42.6%; }
.p4 { left: 60.8%; }
.p5 { left: 79%; width: 14.4%; }
.custom-cta { left: 7%; top: 70%; width: 15.5%; height: 9%; }
.order-cta { left: 7%; top: 8%; width: 59%; height: 82%; border-radius: 20px; }
.footer-instagram { left: 6%; top: 22%; width: 20%; height: 65%; }
.footer-order { left: 72.2%; top: 20%; width: 21%; height: 65%; }

.floating-order {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: white;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #7a1d2a, #4f0d18);
  box-shadow: 0 16px 35px rgba(75, 15, 25, .28);
}

.order-dialog, .product-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(90vh, 940px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 30px 100px rgba(55, 18, 24, .36);
}
.order-dialog::backdrop, .product-dialog::backdrop {
  background: rgba(38, 13, 18, .54);
  backdrop-filter: blur(10px);
}
.dialog-card, .product-card-dialog {
  position: relative;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  max-height: 90vh;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.98), rgba(255,249,246,.94) 48%, rgba(250,231,228,.97));
}
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wine);
  background: rgba(255,255,255,.86);
  font-size: 26px;
  line-height: 1;
}
.dialog-heading {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding-right: 52px;
}
.dialog-heading img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; }
.eyebrow { margin: 0 0 4px; color: #a7515b; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
h2 { margin: 0; color: var(--wine); font-family: "Noto Serif TC", serif; font-size: clamp(26px, 4vw, 42px); }
.dialog-heading p:last-child, .product-card-dialog p { line-height: 1.75; color: #765d5e; }
fieldset { margin: 0 0 26px; padding: 0; border: 0; }
legend { margin-bottom: 14px; color: var(--wine); font-family: "Noto Serif TC", serif; font-size: 19px; font-weight: 700; }
.cake-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cake-picker label { position: relative; display: grid; gap: 7px; cursor: pointer; }
.cake-picker input { position: absolute; opacity: 0; pointer-events: none; }
.cake-picker img { width: 100%; aspect-ratio: 1/1.18; object-fit: cover; border: 2px solid transparent; border-radius: 14px; transition: .2s ease; }
.cake-picker span { font-size: 12px; text-align: center; color: #6f5658; }
.cake-picker input:checked + img { border-color: var(--wine); box-shadow: 0 8px 20px rgba(111,23,36,.15); transform: translateY(-2px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: grid; gap: 8px; color: #694a4c; font-size: 13px; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(111,23,36,.14);
  border-radius: 14px;
  padding: 13px 14px;
  color: #42292b;
  background: rgba(255,255,255,.84);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #c86772; box-shadow: 0 0 0 4px rgba(200,103,114,.1); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.primary, .secondary {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
}
.primary { color: white; background: linear-gradient(135deg, #7b1d2b, #4f0e19); }
.secondary { color: var(--wine); background: #f7e6e4; }
.form-note { margin: 14px 0 0; color: #987d7e; font-size: 12px; text-align: right; }
.product-card-dialog { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; gap: clamp(24px, 5vw, 52px); align-items: center; }
.product-card-dialog > img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 50px rgba(82,40,45,.18); }
.product-card-dialog .primary { margin-top: 12px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 99;
  padding: 12px 18px;
  color: white;
  border-radius: 999px;
  background: #5c1320;
  box-shadow: 0 14px 40px rgba(50,11,18,.28);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: .28s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1441px) {
  .artboard { border-left: 1px solid rgba(111,23,36,.07); border-right: 1px solid rgba(111,23,36,.07); }
}
@media (max-width: 820px) {
  .artboard { width: 100%; box-shadow: none; }
  .floating-order { display: inline-flex; }
  .s-order, .s-cart { display: none; }
  .cake-picker { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dialog-heading { grid-template-columns: 70px 1fr; }
  .dialog-heading img { width: 70px; height: 70px; }
  .product-card-dialog { grid-template-columns: 1fr; }
  .product-card-dialog > img { max-height: 420px; }
}
@media (max-width: 560px) {
  .order-dialog, .product-dialog { width: calc(100% - 14px); }
  .dialog-card, .product-card-dialog { border-radius: 20px; padding: 22px 16px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .cake-picker { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  .floating-order { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
