/* 18 Wood - 日式木作工房風格 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600&display=swap');

:root {
  --cream: #ffffff;
  --wood-medium: #dda15e;
  --wood-dark: #a05b1e;
  --wood-light: #e8c88a;
  --washi: #ffffff;
  --ink: #2C2C2C;
  --ink-light: #4A4A4A;
  --accent: #a05b1e;
  --border: #e8dcc8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Responsive images (mobile-first base) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #F5F5DC;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* 防止 iPhone 等小螢幕橫向捲動：主內容區留邊距與安全區域 */
main {
  max-width: 100%;
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  overflow-x: hidden;
}

/* 區塊容器：內邊距避免橫向捲動，內容置中 */
.container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
  background-repeat: repeat;
  background-size: 300px;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 600;
  color: var(--wood-dark);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.35rem;
}

a {
  color: var(--wood-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wood-medium);
}

/* Header – mobile-first base */
.site-header {
  background: #F5F2E8;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 漢堡選單：流動裝置顯示，觸控至少 44x44px */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(0,0,0,0.05);
  outline: 2px solid var(--wood-medium);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wood-dark);
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.nav-wrap {
  width: 100%;
  order: 3;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
body.nav-open .nav-wrap {
  max-height: 320px;
}
.nav-main {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0.5rem 0;
}
.nav-main a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-main li:last-child a {
  border-bottom: none;
}

/* Hero – mobile-first base */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--washi) 0%, var(--cream) 100%);
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8E2D9' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

/* 首頁 Hero Banner */
.hero.hero-image {
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  min-height: 70vh;
  padding: 2.5rem 1rem;
}

.hero.hero-image::before {
  background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
  opacity: 1;
}

.hero.hero-image .hero-poster {
  display: none;
}

/* Hero slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.03);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 2;
}

.hero-arrow--prev { left: 1rem; }
.hero-arrow--next { right: 1rem; }

.hero-arrow:hover {
  background: rgba(0,0,0,0.55);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,0.55);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.hero-actions .btn {
  width: 100%;
  max-width: 280px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sections – mobile-first */
.section {
  padding: 2rem 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  color: var(--wood-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 木作體驗 + 日曆區塊：與上下區塊分明，不痴住 */
.section-intro-calendar {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.section-intro-calendar .workshop-intro-block {
  margin-bottom: 2rem;
}

/* 木作體驗介紹區塊 (index.php) */
.workshop-intro-block {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}
.workshop-intro-lead {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.workshop-intro-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-light);
}
.workshop-intro-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.workshop-intro-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--wood-medium);
}
.workshop-intro-cta {
  font-weight: 500;
  color: var(--wood-dark);
  margin-bottom: 1rem;
}
.workshop-intro-btn {
  display: inline-block;
}
.workshop-intro-custom {
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  background: var(--wood-dark);
  color: var(--cream) !important;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--wood-medium);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--wood-dark);
  color: var(--wood-dark) !important;
}

/* 浮動 WhatsApp 按鈕 – 行動優先觸控大小 */
.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 999;
}

.floating-whatsapp:hover {
  background: #1ebe5d;
}

.btn-outline:hover {
  background: var(--wood-dark);
  color: var(--cream) !important;
}

/* Product / Workshop Cards – mobile-first grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 14px 32px rgba(92, 64, 51, 0.16);
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 4/3;
  background: var(--washi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--wood-light);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-price {
  color: var(--wood-medium);
  font-weight: 500;
}

/* 首頁產品卡：電商風格 */
.product-card--home {
  position: relative;
  background: rgba(181, 175, 175, 0.47);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.7px);
  -webkit-backdrop-filter: blur(6.7px);
  border: 1px solid rgba(181, 175, 175, 0.83);
}

.product-card-image img {
  transition: transform 0.3s ease;
}

.product-card--home:hover .product-card-image img {
  transform: scale(1.08);
}

.product-fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--wood-dark);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-fav-btn:hover {
  background: var(--wood-medium);
  color: #fff;
}

.product-price {
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-btn-detail {
  padding: 0.45rem 0.9rem;
}

.product-btn-buy {
  padding: 0.45rem 0.9rem;
  background: var(--wood-medium);
  color: #fff;
  border: 1px solid var(--wood-medium);
}

.product-btn-buy:hover {
  background: var(--wood-dark);
  border-color: var(--wood-dark);
  color: #fff;
}

.product-thumbs {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-thumb {
  min-width: 90px;
  max-width: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

.product-thumb-price {
  display: block;
  font-size: 0.75rem;
  padding: 0.2rem 0.35rem 0.35rem;
  color: #c0392b;
  font-weight: 600;
}
.product-section-home {
  background: linear-gradient(135deg, rgba(245,243,238,0.95) 0%, rgba(232,228,220,0.98) 50%, rgba(245,240,235,0.95) 100%);
  padding-bottom: 5rem;
  margin: 1.5rem 0.75rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
#page-products .product-section-home {
  padding-top: 2.5rem;
  margin-top: 1.5rem;
}
.product-section-home .card-grid { max-width: 1200px; margin: 0 auto; }
.product-grid-home { grid-template-columns: 1fr; }
/* 手機版卡區置中 */
@media (max-width: 767px) {
  .product-section-home .card-grid,
  .product-section-home .product-grid-home {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
  }
  .section {
    margin-left: auto;
    margin-right: auto;
  }
}
.product-section-cta { text-align: center; margin-top: 1rem; }
.product-modal-sep {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 1rem 0;
}
.product-modal-content-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
}
.product-card-image-clickable { cursor: pointer; }
.product-card-image-clickable .product-placeholder { font-size: 3rem; }
/* 產品彈窗圖片 hover 放大 */
.product-modal-zoom .product-modal-image-wrap img {
  transition: transform 0.35s ease;
}
.product-modal-zoom .product-modal-image-wrap:hover img {
  transform: scale(1.08);
}
.product-card-image-hover img { transition: transform 0.3s ease; }
.product-card-image-hover:hover img { transform: scale(1.05); }

/* Calendar */
.calendar-wrap {
  background: #fff;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  overflow-x: hidden;
  max-width: 100%;
}

/* 首頁大日曆（加大顯示）– 行動優先 */
.calendar-wrap.calendar-lg {
  max-width: 920px;
  padding: 1.25rem;
}

/* 上下行距加大，左右再收窄；日曆不橫向捲動 */
.calendar-wrap.calendar-lg .calendar-table th,
.calendar-wrap.calendar-lg .calendar-table td {
  padding: 1.25rem 0.25rem;
  font-size: 1.1rem;
}

.calendar-wrap.calendar-lg .calendar-table .workshop-day {
  cursor: pointer;
}

.calendar-wrap.calendar-lg .calendar-header h3 {
  font-size: 1.75rem;
}

.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-num {
  font-size: 1.15rem;
}

.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-line {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* 首頁：日曆 + 預訂資訊側欄 */
.home-cal-layout {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.home-cal-main {
  flex: 0 0 720px;
  max-width: 100%;
}
.home-cal-main-only {
  flex: 1 1 100%;
  max-width: 100%;
}

.calendar-main-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wood-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.home-cal-sidebar {
  flex: 1;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
}

.home-cal-price-bar {
  background: var(--wood-medium);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  margin: -1.5rem -1.75rem 1.25rem;
}

.home-cal-sidebar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--wood-dark);
}

.home-cal-sidebar p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.home-cal-promo-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.home-cal-promo-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.home-cal-promo-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: #c0392b;
  border-radius: 50%;
}

.home-cal-timeslot {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: var(--ink-light);
}

.home-cal-book-btn {
  margin-top: 1.2rem;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.8rem 1.5rem;
  background: var(--wood-medium);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.home-cal-book-btn:hover {
  background: var(--wood-dark);
  color: #fff;
}

@media (max-width: 900px) {
  .home-cal-main {
    flex: 1 1 100%;
  }
}

/* 班期詳情彈窗 */
.cal-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cal-modal-overlay.show {
  display: flex;
}

.cal-modal {
  background: #fff;
  padding: 1.5rem 1rem;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  max-width: none;
  border-radius: 4px;
  position: relative;
  margin: auto;
}
.cal-modal .btn,
.cal-modal .cal-modal-book-link,
.cal-modal-book-right {
  background: var(--wood-dark) !important;
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}
.cal-modal .btn:hover,
.cal-modal .cal-modal-book-link:hover {
  background: #8a4a18 !important;
  color: #fff !important;
}
.cal-modal-section { padding: 0.75rem 0; border-bottom: 1px solid var(--wood-dark); }
.cal-modal-section:last-child { border-bottom: none; }
.cal-modal-desc { line-height: 1.35; margin-top: 0.35rem; }
.cal-modal-header-row .cal-modal-workshop-name { margin-bottom: 0.15rem; }
.cal-modal-time-list li { margin-bottom: 0.2rem; }
.cal-modal-guests-row { margin-bottom: 0.75rem; }
.cal-modal-guests-row label { margin-right: 0.5rem; font-size: 0.9rem; }
.cal-modal-guests-row select { padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: 4px; min-width: 4rem; }

.cal-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-light);
}

.cal-modal-close:hover {
  color: var(--ink);
}

.cal-modal h4 {
  margin-bottom: 1rem;
  color: var(--wood-dark);
}

.cal-modal p {
  margin-bottom: 0.5rem;
}

.cal-modal .btn {
  margin-top: 1rem;
}

.cal-modal-time { color: var(--wood-dark); }
.cal-modal-content { white-space: pre-line; }

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header h3 {
  font-size: 1.25rem;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  padding: 0.4rem 0.8rem;
  background: var(--cream);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
}

.calendar-nav button:hover {
  background: var(--wood-light);
  color: #fff;
}

.calendar-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar-table th {
  padding: 0.5rem;
  background: var(--washi);
  font-size: 0.85rem;
}

.calendar-table td {
  padding: 0.85rem 0.25rem;
  text-align: center;
  border: 2px solid var(--wood-dark);
}

.calendar-table .other-month {
  color: #ccc;
}

.calendar-table .workshop-day {
  background: var(--wood-medium);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.calendar-table .workshop-day.selected {
  background: var(--wood-dark);
  outline: 2px solid var(--wood-dark);
}

.calendar-table .workshop-day small.cal-cell-time {
  display: block;
  font-size: 0.7em;
  opacity: 0.95;
}

.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-time {
  color: var(--wood-medium);
}

.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-title {
  display: block;
  font-size: 0.7em;
  color: var(--ink-light);
  margin-top: 0.1rem;
}

.calendar-table .workshop-day small.cal-cell-avail {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--wood-dark);
}

.workshop-dual-calendar .calendar-table .workshop-day {
  background: rgba(221, 161, 94, 0.35);
  color: var(--wood-dark);
}
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-num {
  display: block;
  font-weight: 600;
}
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-line,
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-line-btn {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.cal-cell-line-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  width: 100%;
}
.workshop-dual-calendar .cal-cell-line-btn { text-align: center; }
.cal-cell-line-btn:hover { text-decoration: underline; }
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-times {
  display: block;
  font-size: 0.65rem;
  margin-top: 0.1rem;
  color: var(--wood-dark);
}
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-remain,
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-avail {
  display: none !important;
}

.workshop-dual-calendar .calendar-table .workshop-day.selected {
  background: var(--wood-medium);
  color: #fff;
}

.workshop-dual-calendar .calendar-table .workshop-day.selected small.cal-cell-avail,
.workshop-dual-calendar .calendar-table .workshop-day.selected small.cal-cell-time {
  color: rgba(255,255,255,0.95);
}

/* 首頁大日曆：有班日期金/橙高亮，儲格內顯示工作坊名稱與時段 */
.calendar-wrap.calendar-lg .calendar-table .workshop-day {
  background: rgba(221, 161, 94, 0.25);
  color: var(--ink);
}
.calendar-wrap.calendar-lg .calendar-table .workshop-day.workshop-day-available {
  background: rgba(221, 161, 94, 0.35);
}
.calendar-wrap.calendar-lg .calendar-table .workshop-day:hover {
  background: var(--wood-light);
  color: var(--wood-dark);
}
.cal-cell-num {
  display: block;
  font-weight: 600;
}
.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-line {
  display: block;
  font-size: 0.7rem;
  color: var(--wood-dark);
  margin-top: 0.15rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-times {
  display: block;
  font-size: 0.6rem;
  margin-top: 0.1rem;
  color: var(--wood-medium);
  margin-top: 0.1rem;
  text-align: center;
}
.calendar-wrap.calendar-lg .calendar-table .workshop-day .cal-cell-time {
  display: block;
  font-size: 0.75em;
  color: var(--wood-medium);
}
/* 首頁日曆彈窗：工作坊名、時段、價格、優惠列表 */
.cal-modal-workshop-name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.cal-modal-date { font-size: 0.9rem; color: var(--ink-light); margin-bottom: 0.5rem; }
.cal-modal-price { font-weight: 600; color: var(--wood-dark); margin-bottom: 0.75rem; }
.cal-modal-times { margin-bottom: 0.75rem; }
.cal-modal-time-list { list-style: none; padding: 0; margin: 0.35rem 0 0; }
.cal-modal-time-list li { margin-bottom: 0.35rem; }
.cal-modal-time-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.cal-modal-book-right { margin-left: auto; }
.cal-modal-desc { font-size: 0.9rem; margin-bottom: 0.75rem; }
.cal-modal-promo { margin: 0.75rem 0; padding-left: 1.25rem; font-size: 0.9rem; color: var(--ink-light); }
.cal-modal-book-link { margin-left: 0.5rem; }
.cal-cell-line-btn { display: block; width: 100%; margin: 0.2rem 0; padding: 0.2rem 0; background: none; border: none; cursor: pointer; font-size: inherit; text-align: center; color: inherit; text-decoration: underline; }
.cal-cell-line-btn:hover { text-decoration: none; }

/* 工作坊預訂版面：左日曆 + 右詳情，金白主題、鬆動排版 */
.workshop-booking-section {
  background: var(--cream);
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  margin: 0.75rem 0 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.workshop-booking-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

.workshop-calendar-column {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.workshop-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.workshop-tabs a {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.9rem;
}

.workshop-tabs a.active {
  background: var(--wood-medium);
  color: #fff;
  border-color: var(--wood-medium);
}
.workshop-tabs-minimal {
  margin-bottom: 1rem;
}
.btn-modal-trigger {
  cursor: pointer;
  font-size: 0.9rem;
}
.workshop-booking-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.workshop-detail-note {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 1rem;
}
.workshop-content-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.workshop-content-modal.show {
  display: flex;
}
.workshop-content-modal-inner {
  background: #fff;
  padding: 1.5rem 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.workshop-content-modal-inner h3 {
  margin-bottom: 1rem;
  color: var(--wood-dark);
}
.workshop-content-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-light);
}
.workshop-content-modal-close:hover {
  color: var(--ink);
}
.workshop-detail-body-p { white-space: pre-line; }
.workshop-sessions-heading { margin: 1rem 0 0.5rem; font-size: 1rem; }
.workshop-modal-block { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.workshop-modal-block:last-child { border-bottom: none; margin-bottom: 0; }
.workshop-modal-total { font-size: 0.85rem; color: var(--ink-light); margin-top: 1rem; }
.workshop-other-notes-wrap { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.workshop-other-notes { margin-top: 0.25rem; color: var(--ink-light); }
.workshop-addons-wrap { margin-top: 1rem; font-size: 0.9rem; }
.workshop-addons-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.workshop-addons-list li { margin-bottom: 0.35rem; }
.workshop-addons-list label { cursor: pointer; }

.workshop-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.workshop-cal-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workshop-cal-header-right .cal-nav-btn {
  padding: 0.4rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--wood-dark);
}

.workshop-cal-header-right .cal-nav-btn:hover {
  background: var(--wood-light);
  color: #fff;
}

.workshop-cal-header-right .btn-link {
  background: none;
  border: none;
  color: var(--wood-dark);
  cursor: pointer;
  font-size: 0.9rem;
}

.workshop-dual-calendar {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.workshop-dual-calendar .calendar-month-wrap {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  flex: 1;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

/* 工作坊頁只顯示一個月份日曆 */
.workshop-dual-calendar .calendar-month-wrap:nth-child(2) {
  display: none;
}

.workshop-dual-calendar .calendar-table td {
  padding: 1rem 0.25rem;
  min-width: 0;
}

.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-line,
.workshop-dual-calendar .calendar-table .workshop-day .cal-cell-line-btn {
  margin-top: 0.15rem;
  font-size: 0.65rem;
}

.workshop-dual-calendar .calendar-month-wrap h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--wood-dark);
}

.workshop-time-slot {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--wood-medium);
  color: #fff;
  font-weight: 500;
}

.workshop-detail-column {
  display: none; /* 預訂頁右側大塊內容改用彈窗顯示 */
}

.workshop-detail-panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: sticky;
  top: 100px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.workshop-detail-placeholder {
  color: #888;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.workshop-detail-price-bar {
  background: var(--wood-medium);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.workshop-detail-content h3 {
  margin-bottom: 0.75rem;
  color: var(--wood-dark);
  font-size: 1.1rem;
}

.workshop-detail-meta p {
  margin-bottom: 0.5rem;
}

.workshop-detail-body {
  margin: 1rem 0;
  white-space: pre-line;
}

.workshop-promo-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.workshop-promo-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.workshop-promo-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: #c0392b;
  border-radius: 50%;
}

.workshop-book-btn {
  margin-top: 1.25rem;
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--wood-medium);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.workshop-book-btn:hover {
  background: var(--wood-dark);
  color: #fff;
}

.workshop-detail-content .btn-view-detail {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--wood-medium);
  color: var(--wood-dark);
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
}

.workshop-detail-content .btn-view-detail:hover {
  background: var(--wood-light);
  color: #fff;
  border-color: var(--wood-light);
}

/* 工作坊詳情彈窗（與產品查看詳情同風格） */
.workshop-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.workshop-modal-overlay.show { display: flex; }
.workshop-modal {
  background: #fff;
  max-width: 360px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
  padding: 1.5rem 1.75rem;
  font-family: inherit;
}
.cal-modal { font-family: inherit; }
.cal-modal-workshop-name,
.workshop-modal .workshop-modal-title-only { color: #2C2C2C; font-weight: 600; font-size: 1.1rem; }
.cal-modal .cal-modal-time-row span,
.cal-modal .cal-modal-time-slot { font-weight: 600; color: var(--wood-dark); }
.cal-modal-time-list li { line-height: 1.25; margin-bottom: 0.2rem; }
.cal-modal-desc,
.workshop-modal .workshop-detail-body-p { line-height: 1.4; margin-top: 0.25rem; font-size: 0.9rem; }
.workshop-modal .workshop-sessions-list .workshop-session-item { line-height: 1.3; margin-bottom: 0.35rem; }
.workshop-modal .workshop-modal-content-bottom { margin-top: 0.5rem; padding-top: 0; border-top: none; }
.workshop-modal .workshop-modal-section { padding: 0.6rem 0; border-bottom: 1px solid var(--wood-dark); }
.workshop-modal .workshop-modal-section:last-child { border-bottom: none; }
.workshop-modal-guests-row { margin: 0.5rem 0 0.75rem; }
.workshop-modal-guests-row label { margin-right: 0.5rem; font-size: 0.9rem; }
.workshop-modal-guests-row select { padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: 4px; min-width: 4rem; }
.workshop-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.workshop-modal-close:hover {
  background: var(--wood-dark);
}
.workshop-modal .workshop-detail-price-bar {
  margin: 0 0 1rem 0;
}
.workshop-modal .workshop-promo-list {
  margin: 0.75rem 0;
}
.workshop-modal .workshop-book-btn {
  margin-top: 1rem;
}

.workshop-sessions-list { margin: 0.5rem 0 1rem; }
.workshop-session-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.25rem 0;
}
.workshop-modal-header-row .workshop-modal-title-only { margin-bottom: 0.15rem; }
.workshop-modal-date-ymd,
.cal-modal-date-ymd { font-size: 0.9rem; color: var(--ink-light); margin-top: 0.15rem; margin-bottom: 0; }
.workshop-session-item-flex { justify-content: space-between; }
.workshop-session-btn-right { margin-left: auto; }
.workshop-session-time { font-weight: 600; color: var(--wood-dark); min-width: 8rem; }
.workshop-session-seats { font-size: 0.9rem; color: var(--ink-light); }
.workshop-session-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  background: var(--wood-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.workshop-session-btn:hover { background: #8a4a18; color: #fff; }

.calendar-table .workshop-day small.cal-cell-remain {
  display: block;
  font-size: 0.7em;
  color: var(--wood-dark);
}

.workshop-detail-price {
  background: var(--wood-medium);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.calendar-table .workshop-day a {
  color: #fff;
}

.workshop-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.workshop-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.workshop-item:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.workshop-date {
  min-width: 80px;
  font-weight: 500;
  color: var(--wood-dark);
}

.workshop-item-info {
  flex: 1;
}
.workshop-item-info strong { display: block; margin-bottom: 0.25rem; }
.workshop-item-price { font-size: 0.95rem; color: var(--wood-dark); }
.workshop-item-book { margin-left: auto; flex-shrink: 0; }

/* Instagram Section */
.instagram-section {
  background: var(--washi);
  padding: 4rem 2rem;
  margin: 2rem 0.75rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 手機版首頁 Instagram 區只顯示 3 張圖 */
@media (max-width: 768px) {
  .instagram-grid .instagram-item:nth-child(n+4) {
    display: none !important;
  }
}

.instagram-item {
  aspect-ratio: 1;
  background: var(--border);
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}
.instagram-item:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}
.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.instagram-item:hover img {
  transform: scale(1.02);
}

.instagram-link {
  text-align: center;
  margin-top: 1.5rem;
}

.instagram-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-inner a {
  color: var(--wood-light);
}

.footer-inner a:hover {
  color: var(--cream);
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
}

/* Page specific – mobile-first */
.page-header {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--washi);
  margin: 0.75rem 0.75rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--wood-dark);
}

/* 訂製傢俬 / 工作坊 CTA – 純色 */
.cta-box {
  background: var(--wood-dark);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  margin: 1.5rem 0;
}

.cta-box h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-box p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.cta-box .btn {
  background: #fff;
  color: var(--wood-dark) !important;
}

/* 產品詳情彈窗：大圖左 40%、詳情右 60%、底部縮圖 */
.product-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.product-modal-overlay.show { display: flex; }
.product-modal {
  background: #fff;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: auto;
}
.product-modal.product-modal-noimg {
  grid-template-columns: 1fr;
}
.product-modal.product-modal-noimg .product-modal-image-column {
  display: none;
}
.product-modal.product-modal-noimg .product-modal-image-wrap {
  display: none;
}
/* 彈窗左欄：主圖與縮圖與邊緣保留間距 */
.product-modal-image-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 1.25rem 1.25rem;
}
.product-modal-image-column .product-modal-image-wrap {
  flex: 0 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.product-modal-image-column .product-modal-thumbs-wrap {
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 0;
}
.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.product-modal-close:hover {
  background: var(--wood-dark);
}
.product-modal .product-modal-image-wrap {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.product-modal .product-modal-image-wrap img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 12px;
}
.product-modal .product-modal-image-wrap img:hover {
  transform: scale(1.03);
}
.product-modal .product-modal-detail {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.product-modal-detail h2,
.product-modal-detail h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--wood-dark);
  color: var(--ink);
}
.product-modal-price-box {
  background: #2C2C2C;
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}
.product-modal-detail .product-modal-desc {
  margin: 0.5rem 0;
  line-height: 1.35;
  font-size: 0.95rem;
}
.product-modal-detail .product-modal-bullets {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0;
}
.product-modal-detail .product-modal-bullets li {
  padding: 0.15rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.35;
}
.product-modal-detail .product-modal-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--wood-medium);
}
.product-modal-detail .btn {
  margin-top: 0;
  align-self: auto;
}
.product-modal-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}
/* 分隔線與按鈕之間距加大 */
.product-modal-thumbs-wrap {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.product-modal-image-column .product-modal-thumbs-wrap {
  margin-top: 1rem;
  padding: 1rem;
  padding-top: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.product-modal-thumbs-wrap h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--ink-light);
}
.product-modal-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
.product-modal-thumbs img {
  width: 72px;
  height: 72px;
  min-width: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-modal-thumbs img:hover,
.product-modal-thumbs img.active {
  border-color: var(--wood-medium);
  box-shadow: 0 2px 12px rgba(160, 91, 30, 0.2);
}
.product-card { cursor: pointer; }

/* Contact grid */
.about-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 100%;
}

/* 手機版：日曆不橫向捲動、卡區置中；訂製/關於我們作品展示改為 Hero 式輪播（箭嘴 + 4 秒自動） */
@media (max-width: 768px) {
  .calendar-wrap.calendar-lg,
  .workshop-dual-calendar .calendar-month-wrap {
    max-width: 100%;
  }
  .workshop-calendar-column {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .workshop-dual-calendar {
    justify-content: center;
    width: 100%;
  }
  .custom-gallery-hero-wrap,
  .about-gallery-hero-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
  }
  .custom-gallery-hero-wrap .custom-gallery-slider-wrap,
  .about-gallery-hero-wrap .about-gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.35s ease;
    width: 100%;
  }
  .custom-gallery-hero-wrap .custom-gallery-slider-wrap .custom-gallery-item,
  .custom-gallery-hero-wrap .custom-gallery-slider-wrap .about-gallery-item,
  .about-gallery-hero-wrap .about-gallery-grid .about-gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .custom-gallery-hero-wrap .about-gallery-item img,
  .custom-gallery-hero-wrap .custom-gallery-item img,
  .about-gallery-hero-wrap .about-gallery-item img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
  }
  .gallery-hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.2s ease;
  }
  .gallery-hero-arrow:hover {
    background: rgba(0,0,0,0.6);
  }
  .custom-gallery-hero-wrap .gallery-hero-prev,
  .about-gallery-hero-wrap .gallery-hero-prev {
    left: 0.5rem;
  }
  .custom-gallery-hero-wrap .gallery-hero-next,
  .about-gallery-hero-wrap .gallery-hero-next {
    right: 0.5rem;
  }
}

@media (min-width: 769px) {
  .gallery-hero-arrow {
    display: none;
  }
  .about-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.22);
    transform: translateY(-3px);
    display: block;
  }
}
.about-gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.about-gallery-lightbox.show {
  display: flex;
}
.about-gallery-lightbox img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
}
.about-gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}
.about-gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.35);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  justify-items: center;
}
.contact-grid > div {
  width: 100%;
  max-width: 500px;
}
.contact-grid > div:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Responsive: mobile-first (min-width only) ========== */

/* sm: 576px+ */
@media (min-width: 576px) {
  .section {
    padding: 2.5rem 1.25rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  .about-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .about-gallery-item img {
    height: 220px;
  }
}

/* md: 768px+ */
@media (min-width: 768px) {
  .site-header {
    padding: 1rem 1.5rem;
  }
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .logo {
    justify-content: flex-start;
    font-size: 1.5rem;
  }
  .nav-main {
    gap: 1.5rem;
  }
  .nav-main a {
    padding: 0.5rem 0;
  }
  .section {
    padding: 3rem 2rem;
  }
  .hero,
  .hero.hero-image {
    min-height: 72vh;
    padding: 3rem 2rem;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-actions .btn {
    width: auto;
    max-width: none;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
  }
  .site-footer {
    padding: 3rem 2rem;
    margin-top: 4rem;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    text-align: center;
    gap: 2rem;
  }
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
  .cal-modal-overlay {
    align-items: center;
    padding: 1rem;
  }
  .cal-modal {
    max-width: 360px;
    width: 90%;
    padding: 1.5rem 1.75rem;
  }
  .product-modal-overlay {
    align-items: center;
    padding: 1rem;
  }
  .product-modal {
    grid-template-columns: 40% 1fr;
    max-width: 900px;
    max-height: 90vh;
  }
  .floating-whatsapp {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    font-size: 1.6rem;
  }
}

/* lg: 992px+ – 電腦版顯示文字導覽，不需漢堡選單 */
@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .nav-wrap {
    width: auto;
    max-height: none;
    order: 0;
    overflow: visible;
  }
  .nav-main {
    flex-direction: row;
    gap: 0.5rem 1rem;
    padding: 0;
  }
  .nav-main a {
    padding: 0.5rem 0.35rem;
    min-height: 44px;
    border-bottom: none;
  }
  .section {
    padding: 4rem 2rem;
  }
  .hero,
  .hero.hero-image {
    min-height: 75vh;
    padding: 4rem 2rem;
  }
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    text-align: center;
  }
  .product-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.6rem;
  }
  .about-gallery-item img {
    height: 260px;
  }
  .workshop-booking-layout {
    flex-direction: row;
    max-width: 960px;
    padding: 0 1rem;
    gap: 2rem;
  }
  .workshop-calendar-column {
    min-width: 300px;
  }
  .cta-box {
    padding: 3rem;
    margin: 2rem 0;
  }
}

/* xl: 1200px+ */
@media (min-width: 1200px) {
  .section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .header-inner {
    max-width: 1200px;
  }
  .footer-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ensure product/hero images stay responsive where they have fixed dimensions */
.product-modal .product-modal-image-wrap img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.about-gallery-item img {
  max-width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
}
.product-card-image img,
.product-card-image .product-placeholder {
  max-width: 100%;
}

