/* ============================================================
   Shared styles for all shop pages
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: #333029; background: #fdf7e3; line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #8f3a1c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Document wrapper + decorative background layer */
.doc { position: relative; overflow: hidden; }
.deco { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.deco img { position: absolute; max-width: none; }
.deco .wave-top  { top: -180px; left: -12%; width: 124%; }
.deco .dots-1    { top: 240px; right: -420px; width: 900px; }
.deco .wave-mid  { top: 900px; left: -18%; width: 136%; transform: scaleY(-1); }
.deco .dots-2    { top: 1500px; left: -480px; width: 820px; }
.deco .wave-bot  { top: 1900px; right: -20%; width: 130%; }

.page { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 32px 24px 40px; }

/* Top bar: logo left, back link right */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.top-bar .logo { height: 70px; width: auto; }
.back-link { font-size: .95rem; font-weight: 700; white-space: nowrap; text-decoration: underline; }

/* Gallery */
.carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 10px; background: #fff;
  box-shadow: 0 6px 20px rgba(143, 58, 28, .12);
}
.carousel-track { display: flex; transition: transform .4s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 420px; object-fit: cover; }
.carousel-slide .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(60, 26, 10, .72));
  color: #fff; padding: 26px 16px 12px; font-size: .9rem;
  text-align: center; letter-spacing: .04em;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(253, 247, 227, .85); border: 0;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; color: #8f3a1c; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: #fdf7e3; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
.carousel-dots span {
  width: 9px; height: 9px; border-radius: 50%; background: #e6cfae;
  cursor: pointer; transition: background .3s;
}
.carousel-dots span.active { background: #8f3a1c; }

/* Titles */
h1 {
  font-size: 2rem; font-weight: 700; color: #8f3918;
  line-height: 1.6; margin: 36px 0 8px;
}
.title-rule {
  width: 68px; height: 3px; border-radius: 2px;
  background: #8f3a1c; margin: 0 auto 28px;
}
h2 {
  font-size: 1.15rem; font-weight: 700; color: #2b2b2b;
  margin: 34px 0 10px; letter-spacing: .01em;
}

/* Body paragraphs */
.content p { margin-bottom: 14px; text-align: justify; font-size: 1rem; }
.content p.indent { text-indent: 2em; }

/* Full-bleed dark divider (as in the printed layout) */
.band { position: relative; z-index: 1; height: 10px; background: #1c1c1c; margin: 44px 0; }

/* Closing reflection */
.epilogue { padding-top: 8px; }
.epilogue p { text-indent: 2em; text-align: justify; margin-bottom: 14px; }
.epilogue .rule { border: 0; border-top: 1px solid #ddc9a8; margin: 12px 0; }

/* Footer */
.site-footer { position: relative; z-index: 1; background: #fce9d0; padding: 34px 0 40px; }
.footer-inner { max-width: 780px; margin: 0 auto; padding: 0 24px; color: #4a2f1d; }

.org-row { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 26px; }
.org { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.org-label { font-size: .9rem; font-weight: 700; white-space: nowrap; }

/* Crop wrappers: source logos sit on large empty canvases */
.logo-crop { position: relative; display: block; overflow: hidden; flex: 0 0 auto; }
.logo-crop img { position: absolute; max-width: none; }
.logo-crop.dsedt { width: 206px; height: 33px; }
.logo-crop.dsedt img { width: 127.19%; height: 887.4%; left: -13.47%; top: -378.46%; }
.cpttm-logo { width: 240px; height: auto; flex: 0 0 auto; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px;
}
.contact-col h3 {
  font-size: .95rem; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid #f0d5b6;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; font-weight: 700; line-height: 1.5;
}
.ci {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  overflow: hidden; flex: 0 0 auto;
}
.ci img { position: absolute; max-width: none; width: 125.2%; height: 140.4%; left: -12.5%; top: -19.7%; }

/* Responsive */
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .carousel-slide img { height: 240px; }
  h1 { font-size: 1.6rem; }
  .top-bar .logo { height: 40px; }
  .back-link { font-size: .85rem; }
  .logo-crop.dsedt { width: 176px; height: 28px; }
  .cpttm-logo { width: 172px; }
}
