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

:root {
  --bg: #fffbf7;
  --bg-cream: #f7f0e8;
  --bg-warm: #fdf6ef;
  --bg-card: #ffffff;
  --text: #3d3530;
  --text-muted: #7a6f68;
  --border: #e8dfd5;
  --accent: #d4846a;
  --accent-hover: #c07458;
  --accent-soft: #f5e6df;
  --sage: #8ba888;
  --sage-soft: #e8f0e7;
  --nav-height: 76px;
  --max-width: 1180px;
  --font-sans: 'Noto Sans TC', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 2px 12px rgba(61, 53, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(61, 53, 48, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell main {
  flex: 1;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
}

.header-nav a {
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.header-nav a:hover,
.header-nav a.active { color: var(--accent); }

.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.header-login {
  background: none;
  border: none;
  font-size: 14px;
  padding: 8px 12px;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.header-login:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-line-cta {
  display: none;
  padding: 8px 16px;
  background: var(--sage);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: filter 0.2s, transform 0.2s;
}

.header-line-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

@media (min-width: 900px) {
  .header-line-cta { display: inline-flex; align-items: center; }
}

.header-cart {
  background: none;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

.mobile-menu {
  background: #fff;
  padding: 16px 24px 32px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.mobile-menu ul { list-style: none; }

.mobile-menu li a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu li a.active { color: var(--accent); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: #fff;
  padding: 12px 20px;
  border: 1px solid var(--text);
}

.skip-link:focus { left: 8px; top: 8px; }

/* Floating CTA */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(212, 132, 106, 0.45);
  transition: background 0.2s, transform 0.2s;
}

.floating-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

.mobile-menu {
  background: var(--bg);
  padding: 20px 24px 32px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.mobile-menu li a.active {
  color: var(--accent);
  font-weight: 600;
}

.mobile-menu-login {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu-line {
  display: block;
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  background: var(--sage);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
}

.modal {
  background: var(--bg-card);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.booking-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.booking-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 1;
}

.page-banner {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin: 48px 0 32px;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  background: var(--bg-cream);
}

.hero-media {
  position: relative;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: clamp(420px, 58vh, 620px);
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(61, 53, 48, 0.5) 0%,
    rgba(61, 53, 48, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
  z-index: 1;
  pointer-events: none;
}

.hero-panel > * { pointer-events: auto; }

.hero-eyebrow {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  margin-bottom: 16px;
  background: rgba(255, 251, 247, 0.92);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 560px;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  max-width: 480px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn-primary { width: auto; }

.hero-btn-alt {
  background: rgba(255, 251, 247, 0.92);
  border-color: transparent;
}

.hero-controls {
  position: absolute;
  bottom: 20px;
  right: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 6px;
  margin-right: 4px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.hero-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 251, 247, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

/* Legacy selectors kept for compatibility */
.hero-slide,
.hero-overlay,
.hero-desc { display: none; }

/* Brand intro strip */
.brand-intro {
  max-width: var(--max-width);
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.brand-intro-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}

.brand-intro-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 12px;
  color: var(--text);
}

.brand-intro-card p {
  max-width: 640px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.brand-pill {
  padding: 8px 16px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 0 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover img { transform: scale(1.03); }

.feature-card-body {
  padding: 20px 22px 24px;
}

.feature-card h5 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.feature-card-link:hover { text-decoration: underline; }

/* Section */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-alt { background: var(--bg-warm); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.news-card:hover { box-shadow: var(--shadow-md); }

.news-card-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.news-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.news-list blockquote {
  border-bottom: 2px dotted var(--accent);
  padding: 16px 4px;
  font-size: 15px;
  color: var(--text);
}

.news-list blockquote:last-child { border-bottom: none; }

.news-list blockquote strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Activity grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.activity-card:hover img { transform: scale(1.05); }

.activity-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 53, 48, 0.75) 0%, transparent 55%);
}

.activity-card h6 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  z-index: 1;
  font-family: var(--font-serif);
}

/* CTA band */
.cta-band {
  max-width: var(--max-width);
  margin: 0 auto 72px;
  padding: 0 24px;
}

.cta-band-inner {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--sage-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Challenge cards */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.challenge-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.challenge-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.challenge-card h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.45;
}

.challenge-price {
  font-size: 13px;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 16px;
}

.challenge-card .btn-primary { margin-top: auto; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(212, 132, 106, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #c8c0b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 251, 247, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); }

.btn-sage {
  background: var(--sage);
  box-shadow: 0 4px 14px rgba(139, 168, 136, 0.35);
}

.btn-sage:hover { filter: brightness(1.05); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero-desc {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Products page */
.page-banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 16px auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a:hover { text-decoration: underline; }

.products-toolbar {
  display: none;
}

.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.products-main { min-width: 0; }

.sidebar-muted {
  font-size: 14px;
  color: var(--text-muted);
}

.category-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 28px);
  margin-bottom: 12px;
}

.product-card-body {
  padding: 12px 14px 16px;
}

.mobile-filter-btn { display: none; }

.filter-sheet-overlay { display: none; }

.sort-btn { white-space: nowrap; }

.sidebar h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sidebar-section {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.sidebar-section summary {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
}

.filter-item input { accent-color: var(--accent); }

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.products-count { font-size: 13px; color: var(--text-muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.product-card { position: relative; }

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f5f5;
}

.product-name {
  font-size: 14px;
  margin-top: 8px;
  font-weight: 400;
}

.product-stock {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.category-desc {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.8;
}

.category-tags {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  white-space: pre-line;
  line-height: 1.8;
}

/* Booking */
.booking-list {
  max-width: 860px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.booking-item h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.booking-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.booking-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Challenge detail */
.challenge-detail {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 24px;
}

.challenge-detail h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.challenge-detail .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.challenge-detail h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.challenge-sections li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

/* Product detail */
.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}

.product-gallery { position: relative; }

.gallery-main {
  position: relative;
  border: 1px solid var(--border);
}

.gallery-zoom-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active { border-color: var(--text); }

.product-info h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price {
  font-size: 20px;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-buy {
  max-width: 100%;
  margin-bottom: 12px;
}

.product-buy:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.product-line-cta {
  display: block;
  text-align: center;
  margin-bottom: 32px;
}

.product-mobile-bar {
  display: none;
}

.home-page {
  width: 100%;
  overflow-x: hidden;
}

/* Accordions */
.product-accordions {
  list-style: none;
  border-top: 1px solid var(--border);
}

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  text-align: left;
}

.accordion-header h2 {
  font-size: 15px;
  font-weight: 500;
}

.accordion-icon { font-size: 20px; line-height: 1; }

.accordion-body {
  padding: 0 0 20px;
  font-size: 13px;
  line-height: 1.9;
  color: #333;
}

.accordion-image-btn {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  max-width: 320px;
}

/* Share icon rows */
.product-share,
.challenge-share {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.product-share a,
.challenge-share a,
.challenge-share button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  color: var(--text);
  transition: background 0.2s;
}

.product-share a:hover,
.challenge-share a:hover,
.challenge-share button:hover { background: var(--bg-cream); }

/* Read more */
.read-more-btn {
  background: none;
  border: none;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 120px 24px 160px;
}

.error-404 h2 {
  font-size: 16px;
  letter-spacing: 0.3em;
  font-weight: 400;
  margin-bottom: 16px;
}

.error-404 h1 {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 40px;
}

/* Notifications */
.notification-list {
  max-width: 720px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.notification-item {
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.notification-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.notification-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.notification-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 56px 24px 32px;
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-block h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: #fff;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  border-radius: 4px;
}

.modal h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

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

.form-group textarea { min-height: 80px; resize: vertical; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #1a1a1a;
  color: #fff;
  padding: 24px;
}

.admin-sidebar h2 {
  font-size: 16px;
  margin-bottom: 24px;
}

.admin-nav {
  list-style: none;
}

.admin-nav li {
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.8;
}

.admin-nav li:hover,
.admin-nav li.active { opacity: 1; }

.admin-content {
  padding: 32px;
  background: var(--bg-cream);
}

.admin-card {
  background: #fff;
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-login {
  max-width: 400px;
  margin: 120px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
}

.admin-subcard {
  border: 1px dashed var(--border);
  padding: 16px;
  margin-bottom: 16px;
  background: #fafaf7;
}

.admin-image-picker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-image-picker img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.admin-image-empty {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  color: #999;
  font-size: 12px;
  background: #fff;
}

.admin-upload-btn {
  display: inline-block;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 13px;
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
  cursor: pointer;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
}

.admin-save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--bg-cream);
  z-index: 5;
}

.admin-saved-hint {
  color: #2e7d32;
  font-size: 14px;
}

.admin-move-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.admin-move-btns .btn-secondary,
.admin-move-btns .btn-primary {
  padding: 4px 12px;
  font-size: 12px;
}

.admin-del-btn {
  color: #b3261e;
  border-color: #b3261e;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.admin-gallery-item {
  border: 1px solid var(--border);
  padding: 8px;
  background: #fff;
}

.admin-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.admin-images-item {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  color: #555;
  overflow: hidden;
}

.admin-images-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
}

.admin-images-item span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-logout {
  margin-top: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 16px;
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .admin-nav li {
    padding: 6px 0;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }

  .admin-image-picker {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 48px 0 32px;
}

/* Responsive — Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --page-pad: 16px;
  }

  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .header-brand { display: none; }
  .header-actions { margin-left: auto; gap: 4px; }
  .header-login { display: none; }
  .header-line-cta { display: none; }
  .header-inner { padding: 0 var(--page-pad); gap: 8px; }
  .header-cart,
  .hamburger { min-width: 44px; min-height: 44px; }

  /* Hero: image on top, content card below */
  .hero-slideshow {
    display: flex;
    flex-direction: column;
  }

  .hero-media::after {
    background: linear-gradient(to top, rgba(61, 53, 48, 0.35) 0%, transparent 50%);
  }

  .hero-image {
    height: 46vh;
    min-height: 260px;
    max-height: 360px;
  }

  .hero-panel {
    position: relative;
    inset: auto;
    background: var(--bg-card);
    padding: 20px var(--page-pad) 24px;
    border-bottom: 1px solid var(--border);
    pointer-events: auto;
  }

  .hero-eyebrow {
    background: var(--accent-soft);
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hero-title {
    color: var(--text);
    text-shadow: none;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .hero-lead {
    color: var(--text-muted);
    font-size: 14px;
    -webkit-line-clamp: 5;
    margin-bottom: 18px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-btn-alt {
    background: var(--bg-card);
    border-color: var(--border);
  }

  .hero-controls {
    top: auto;
    bottom: 12px;
    right: 12px;
    left: auto;
    background: rgba(255, 251, 247, 0.85);
    padding: 6px 8px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
  }

  .hero-dot { background: rgba(61, 53, 48, 0.25); }
  .hero-dot.active { background: var(--accent); }

  .hero-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    background: transparent;
    box-shadow: none;
  }

  /* Brand intro */
  .brand-intro {
    margin-top: 0;
    padding: 20px var(--page-pad) 0;
  }

  .brand-intro-card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .brand-intro-card h2 { font-size: 20px; }
  .brand-pills { gap: 8px; }
  .brand-pill { font-size: 12px; padding: 6px 12px; }

  /* Sections */
  .section { padding: 48px var(--page-pad); }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 24px; }
  .feature-grid,
  .challenge-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--page-pad);
    margin-top: 32px;
    gap: 16px;
  }

  .section .activity-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 16px;
  }

  .feature-card img { height: 200px; }
  .activity-card { aspect-ratio: 16/10; }

  .news-grid { grid-template-columns: 1fr; gap: 12px; }

  .cta-band {
    margin-bottom: 48px;
    padding: 0 var(--page-pad);
  }

  .cta-band-inner { padding: 28px 20px; }
  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band-actions .btn-primary,
  .cta-band-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Products page */
  .products-page { overflow-x: hidden; }

  .page-banner {
    max-height: 160px;
    object-fit: cover;
    width: 100%;
  }

  .breadcrumb,
  .category-desc,
  .category-tags {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .category-desc { margin-top: 12px; margin-bottom: 8px; }
  .category-title { font-size: 22px; }

  .breadcrumb {
    font-size: 12px;
    margin: 12px auto;
  }

  .products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--page-pad);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky;
    top: var(--nav-height);
    z-index: 20;
  }

  .products-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    min-height: 44px;
  }

  .sort-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 44px;
  }

  .sidebar-desktop { display: none; }

  .products-layout {
    grid-template-columns: 1fr;
    padding: 16px var(--page-pad) 32px;
    gap: 0;
  }

  .products-header { display: none; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-name { font-size: 13px; }
  .product-stock { font-size: 12px; }
  .product-badge { font-size: 10px; padding: 3px 8px; }

  /* Filter bottom sheet */
  .filter-sheet-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(61, 53, 48, 0.45);
    align-items: flex-end;
  }

  .filter-sheet {
    width: 100%;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    animation: sheetUp 0.28s ease;
  }

  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
  }

  .filter-sheet-header h2 {
    font-size: 18px;
    font-weight: 600;
  }

  .filter-sheet-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-warm);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-muted);
  }

  .filter-sheet-body {
    overflow-y: auto;
    padding: 16px 20px;
    flex: 1;
  }

  .filter-sheet-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-card);
  }

  .filter-sheet-footer .btn-secondary,
  .filter-sheet-footer .btn-primary {
    flex: 1;
    min-height: 48px;
  }

  .filter-item {
    padding: 10px 0;
    min-height: 44px;
    font-size: 15px;
  }

  /* Product detail */
  .product-detail {
    padding: 0 var(--page-pad) calc(88px + env(safe-area-inset-bottom));
  }

  .product-buy,
  .product-line-cta {
    display: none;
  }

  .product-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 140;
    gap: 10px;
    padding: 12px var(--page-pad) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 251, 247, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(61, 53, 48, 0.1);
    backdrop-filter: blur(8px);
  }

  .product-mobile-bar .btn-primary {
    flex: 1;
    min-height: 48px;
    justify-content: center;
  }

  .product-mobile-bar .btn-secondary {
    min-height: 48px;
    padding: 0 16px;
    flex-shrink: 0;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 12px;
  }

  .gallery-main { border-radius: var(--radius-md); overflow: hidden; }

  .gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
  }

  .gallery-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
  }

  .product-info h1 { font-size: 22px; }
  .product-desc { font-size: 14px; }

  .accordion-header {
    padding: 14px 0;
    min-height: 48px;
  }

  .accordion-header h2 { font-size: 14px; padding-right: 12px; }

  /* Booking */
  .booking-list { padding: 0 var(--page-pad); margin-bottom: 48px; }
  .booking-item {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .booking-item img { height: 200px; }

  .booking-item .btn-primary {
    width: 100%;
    max-width: none;
    min-height: 48px;
  }

  .challenge-card .btn-primary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* Page hero */
  .page-hero { padding: 40px var(--page-pad) 32px; }
  .page-hero-title { font-size: 26px; }

  /* Challenge grid padding */
  .challenge-grid { padding-bottom: 48px; }

  /* Footer */
  .site-footer { padding: 40px var(--page-pad) calc(24px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Floating CTA hidden on mobile — overlaps grids; use menu LINE + page CTAs */
  .floating-cta {
    display: none;
  }

  main {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* Modal */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%;
    max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
    min-height: 48px;
  }

  /* Mobile menu */
  .mobile-menu-overlay {
    top: var(--nav-height);
  }

  .mobile-menu li a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 17px;
  }

  /* 404 */
  .error-404 {
    padding: 80px var(--page-pad) 120px;
  }

  .error-404 h1 { font-size: 72px; }

  .challenge-detail {
    padding: 32px var(--page-pad);
    margin: 0;
  }

  .challenge-detail h1 { font-size: 24px; }

  .notification-list {
    padding: 0 var(--page-pad);
    margin-bottom: 48px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 22px; }
  .product-grid { gap: 10px; }
  .product-card-body { padding: 10px 10px 12px; }
}
