/* ===== lifestyle 主題：移植自 Demo(Tailwind)→ Bootstrap5 + 自訂 ===== */
.lifestyle {
  --foreground: #0a0a0a;
  --primary: #030213;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --border: rgba(0, 0, 0, 0.1);
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  /* 對齊 Demo(Tailwind 預設 sans，非 Noto Sans）：Windows 上即 Segoe UI */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--foreground);
}
.lifestyle img { max-width: 100%; height: auto; vertical-align: middle; }
.lifestyle a { text-decoration: none; color: inherit; }
/* Tailwind Preflight：標題預設字重 400(不是 Bootstrap 的 500)；間距由各元素自訂 */
.lifestyle h1, .lifestyle h2, .lifestyle h3, .lifestyle h4 { font-weight: 400; line-height: 1.2; margin: 0; }

.ls-container { max-width: 1600px; margin: 0 auto; padding-inline: 24px; }
@media (min-width: 992px) { .ls-container { padding-inline: 48px; } }

/* ---------- 通用按鈕(用 .lifestyle 前綴提高權重，避免被 .lifestyle a 的 color:inherit 蓋掉) ---------- */
.lifestyle .btn-ls-dark { display: inline-block; border: 1px solid var(--foreground); background: var(--foreground); color: #fff;
  padding: 12px 28px; border-radius: 9999px; font-size: 14px; cursor: pointer; transition: .25s; }
.lifestyle .btn-ls-dark:hover { background: rgba(10,10,10,.9); color: #fff; }
.lifestyle .btn-ls-outline { display: inline-block; border: 1px solid var(--foreground); background: transparent; color: var(--foreground);
  padding: 10px 22px; border-radius: 9999px; font-size: 14px; cursor: pointer; transition: .25s; }
.lifestyle .btn-ls-outline:hover { background: var(--foreground); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header.is-transparent { background: transparent; }
.site-header.is-solid { background: #fff; box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .header-inner { height: 80px; } }
.header-logo { font-size: 20px; letter-spacing: -.025em; }
@media (min-width: 768px) { .header-logo { font-size: 24px; } }
.header-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav-link { font-size: 14px; letter-spacing: .02em; transition: color .2s; }
.header-nav-item { position: relative; }
.header-nav-item .caret { font-size: 10px; }

/* 購物車數量角標 */
.header-cart { position: relative; }
.header-cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--foreground); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
}
.is-transparent .header-cart-badge { background: #fff; color: var(--foreground); }

/* 透明態文字白、實心態文字黑 */
.is-transparent .header-logo, .is-transparent .header-nav-link, .is-transparent .header-icon-btn { color: rgba(255,255,255,.95); }
.is-transparent .header-nav-link:hover, .is-transparent .header-icon-btn:hover { color: #fff; }
.is-solid .header-logo, .is-solid .header-icon-btn { color: var(--foreground); }
.is-solid .header-nav-link { color: rgba(10,10,10,.75); }
.is-solid .header-nav-link:hover { color: var(--foreground); }
.is-solid .header-icon-btn:hover { background: var(--stone-100); }

.header-tools { display: flex; align-items: center; gap: 16px; }
@media (min-width: 768px) { .header-tools { gap: 24px; } }
.header-icon-btn { display: inline-flex; padding: 8px; border-radius: 9999px; border: 0; background: transparent; cursor: pointer; transition: .2s; }
.header-icon-btn svg { width: 20px; height: 20px; }
.header-burger { display: inline-flex; }
@media (min-width: 768px) { .header-burger { display: none; } }

/* Mega 選單 */
.header-mega { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: 16px;
  width: min(700px, 90vw); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s; }
.header-nav-item.has-mega:hover .header-mega { opacity: 1; visibility: visible; pointer-events: auto; }
.header-mega-inner { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.12); }
.header-mega-cover { position: relative; min-height: 200px; }
.header-mega-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.header-mega-cover-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.2), transparent); }
.header-mega-cover-text .t1 { font-size: 20px; margin: 0 0 4px; }
.header-mega-cover-text .t2 { font-size: 14px; opacity: .8; margin: 0 0 8px; }
.header-mega-cover-text .t3 { font-size: 14px; }
.header-mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.header-mega-title { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 16px; }
.header-mega-cols a { display: block; font-size: 14px; color: rgba(10,10,10,.7); padding: 6px 0; }
.header-mega-cols a:hover { color: var(--foreground); }
@media (max-width: 767px) { .header-mega-inner { grid-template-columns: 1fr; } .header-mega-cover { display: none; } }

/* 手機選單 */
.mobile-nav-panel { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav-panel.is-open { display: block; }
.mobile-nav-panel nav { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.mobile-nav-panel a { font-size: 16px; color: var(--foreground); }

/* 搜尋覆蓋層 */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); padding: 96px 16px 0;
  display: none; flex-direction: column; align-items: center; }
.search-overlay.is-open { display: flex; }
.search-box { position: relative; width: 100%; max-width: 576px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.search-close { position: absolute; right: 16px; top: 16px; border: 0; background: transparent; border-radius: 9999px; padding: 8px; cursor: pointer; }
.search-close svg { width: 20px; height: 20px; }
.search-title { font-size: 18px; font-weight: 500; margin: 0 0 16px; }
.search-input { border: 1px solid var(--border); background: var(--stone-100); border-radius: 12px; padding: 12px 16px; }

/* ---------- 區塊通用 ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.bg-white { background: #fff; }
.bg-stone { background: var(--stone-100); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { font-size: 30px; margin: 0 0 8px; }
@media (min-width: 768px) { .section-title { font-size: 36px; } }
.section-eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: .025em; color: var(--muted-foreground); margin: 0; }

/* ---------- Hero ---------- */
.hero-section { position: relative; height: 88vh; min-height: 520px; margin-top: -80px; overflow: hidden; background: var(--accent); }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.4), transparent); }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-caption-inner { max-width: 600px; color: #fff; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.hero-slide.is-active .hero-caption-inner { opacity: 1; transform: translateY(0); }
.hero-caption .hero-title { font-size: 36px; line-height: 1.1; margin: 0 0 24px; }
@media (min-width: 768px) { .hero-caption .hero-title { font-size: 60px; line-height: 1; } }
.hero-caption p { font-size: 18px; color: rgba(255,255,255,.9); margin: 0 0 32px; }
@media (min-width: 768px) { .hero-caption p { font-size: 20px; } }
.hero-cta { display: inline-flex; align-items: center; background: #fff; border-radius: 9999px; overflow: hidden; transition: .3s; }
.hero-cta:hover { box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hero-cta-text { padding: 16px 32px; color: var(--foreground); }
.hero-cta-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-left: 1px solid rgba(0,0,0,.1); color: var(--foreground); font-size: 20px; transition: background .2s; }
.hero-cta:hover .hero-cta-icon { background: var(--accent); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 9999px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.25); }
.hero-arrow-prev { left: 16px; } .hero-arrow-next { right: 16px; }
@media (min-width: 768px) { .hero-arrow-prev { left: 32px; } .hero-arrow-next { right: 32px; } }
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border: 0; border-radius: 9999px; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s; }
.hero-dot.is-current { background: #fff; width: 32px; }

/* ---------- 商品卡 ---------- */
.product-card { display: block; }
.product-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; background: var(--accent); margin-bottom: 16px; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-badges { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; }
.badge-pill { background: var(--primary); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 9999px; letter-spacing: .02em; }
.badge-pill.is-sale { background: #dc2626; }
.product-cat { font-size: 12px; color: var(--muted-foreground); margin: 0 0 4px; }
.product-name { font-size: 16px; margin: 0 0 8px; }
.product-price { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.product-price .is-sale { color: #dc2626; font-weight: 500; }
.product-price .price-old { color: rgba(10,10,10,.4); text-decoration: line-through; font-size: 12px; }

/* ---------- 服務特色 ---------- */
.service-no { font-size: 12px; color: var(--muted-foreground); margin: 0 0 16px; }
.service-title { font-size: 20px; margin: 0 0 16px; }
.service-desc { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); margin: 0; }

/* ---------- 精選系列(bento) ---------- */
.collections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.collection-card { position: relative; overflow: hidden; border-radius: 8px; background: var(--accent); min-height: 250px; display: block; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; position: absolute; inset: 0; }
.collection-card:hover img { transform: scale(1.05); }
.collection-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2), transparent); }
.collection-text { position: absolute; inset: auto 0 0 0; padding: 32px; color: #fff; }
.collection-text h3 { font-size: 24px; margin: 0 0 8px; }
.collection-text p { font-size: 12px; color: rgba(255,255,255,.8); margin: 0 0 12px; }
.collection-tall .collection-text h3, .collection-wide .collection-text h3 { font-size: 30px; }
.collection-tall .collection-text p, .collection-wide .collection-text p { font-size: 14px; }
.collection-link { font-size: 14px; display: inline-block; transition: transform .3s; }
.collection-card:hover .collection-link { transform: translateX(8px); }
.collection-tall { grid-row: span 2; min-height: 524px; }
.collection-wide { grid-column: span 2; min-height: 300px; }
@media (max-width: 767px) {
  .collections-grid { grid-template-columns: 1fr; }
  .collection-tall, .collection-wide { grid-row: auto; grid-column: auto; min-height: 280px; }
}

/* ---------- 顧客好評跑馬燈 ---------- */
.testimonial-viewport { overflow: hidden; }
.testimonial-track { display: flex; gap: 24px; width: max-content; animation: ls-marquee 45s linear infinite; }
.testimonial-track.is-paused { animation-play-state: paused; }
@keyframes ls-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testimonial-card { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.testimonial-stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text { font-size: 14px; line-height: 1.7; color: var(--stone-600); flex: 1; margin: 0 0 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }
.ta-name { font-size: 14px; font-weight: 500; margin: 0; }
.ta-role { font-size: 12px; color: var(--stone-500); margin: 0; }

/* ---------- 品牌視差 ---------- */
.brand-story { position: relative; overflow: hidden; background: var(--stone-200); }
.brand-parallax-bg { position: fixed; inset: 0; z-index: -1; }
.brand-parallax-bg img { width: 100%; height: 100%; object-fit: cover; }
.brand-shade { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.brand-story-inner { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 80vh; padding: 0 24px 96px; text-align: center; color: #fff; }
.brand-story-inner h2 { font-size: 36px; line-height: 1.1; margin: 0 0 16px; }
@media (min-width: 768px) { .brand-story-inner { min-height: 100vh; } .brand-story-inner h2 { font-size: 60px; line-height: 1; } }
@media (min-width: 992px) { .brand-story-inner h2 { font-size: 72px; } }
.brand-story-inner p { font-size: 18px; color: rgba(255,255,255,.9); margin: 0; }
@media (min-width: 768px) { .brand-story-inner p { font-size: 20px; } }

/* ---------- 最新消息 ---------- */
.news-feature { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: var(--stone-100); height: 100%; }
.news-feature-media { height: 300px; overflow: hidden; }
@media (min-width: 768px) { .news-feature-media { height: 400px; } }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-feature:hover .news-feature-media img { transform: scale(1.05); }
.news-feature-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
@media (min-width: 768px) { .news-feature-body { padding: 32px; } }
.news-feature-body h3 { font-size: 24px; margin: 0 0 12px; }
@media (min-width: 768px) { .news-feature-body h3 { font-size: 30px; } }
.news-feature-body > p { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); flex: 1; margin: 0 0 24px; }
.news-feature-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; }
.news-author { display: flex; align-items: center; gap: 12px; }
.news-author img { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }
.na-name { font-size: 14px; font-weight: 500; margin: 0; }
.na-role { font-size: 12px; color: var(--muted-foreground); margin: 0; }
.news-date { text-align: right; font-size: 12px; color: var(--muted-foreground); }
.news-date p { margin: 0; }
.news-side { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 8px; transition: background .2s; margin-bottom: 8px; }
@media (min-width: 576px) { .news-side { flex-direction: row; } }
.news-side:hover { background: rgba(233,235,239,.3); }
.news-side-media { height: 180px; overflow: hidden; border-radius: 8px; flex-shrink: 0; }
@media (min-width: 576px) { .news-side-media { height: 128px; width: 192px; } }
.news-side-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-side:hover .news-side-media img { transform: scale(1.05); }
.news-side-body h3 { font-size: 18px; margin: 0 0 8px; }
.news-side-body p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 3fr 5fr; gap: 48px; padding-block: 64px; } }
.footer-brand { font-size: 24px; margin: 0 0 24px; }
.footer-contact p { font-size: 14px; color: var(--stone-300); margin: 0 0 8px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 576px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: var(--stone-300); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links-title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: var(--stone-300); transition: color .2s; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 32px; font-size: 14px; color: var(--stone-500); }
@media (min-width: 576px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--stone-500); transition: color .2s; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- 登入 ---------- */
.login-wrap { display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 2px 30px rgba(0,0,0,.06); }
.login-title { font-size: 28px; margin: 0 0 8px; }
.login-sub { font-size: 14px; color: var(--muted-foreground); margin: 0 0 28px; }
.login-form { display: flex; flex-direction: column; }
.login-label { font-size: 13px; color: var(--foreground); margin-bottom: 6px; }
.login-input { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.login-input:focus { outline: none; border-color: var(--foreground); box-shadow: none; }
.login-submit { width: 100%; margin-top: 4px; }
.login-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; }
.login-links a { color: var(--muted-foreground); }
.login-links a:hover { color: var(--foreground); }
.login-divider { display: flex; align-items: center; text-align: center; color: var(--muted-foreground); font-size: 12px; margin: 22px 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-divider span { padding: 0 12px; }

/* ---------- 註冊 ---------- */
.register-card { max-width: 520px; }
.register-radios { display: flex; gap: 24px; margin-bottom: 18px; font-size: 14px; }
.register-radios label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.register-phone { display: flex; align-items: flex-start; gap: 10px; }
.register-phone .login-input { flex: 1; }
.register-vcf-btn { flex-shrink: 0; padding: 12px 16px; white-space: nowrap; }
.register-verified { flex-shrink: 0; padding: 12px 4px; font-size: 14px; color: #1a7f4b; white-space: nowrap; }
.register-hint { margin: -12px 0 18px; font-size: 12px; color: var(--muted-foreground); }
.register-terms { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 22px; font-size: 13px; color: var(--muted-foreground); }
.register-terms a { color: var(--foreground); text-decoration: underline; }

/* 手機驗證碼視窗 */
.vcf-mask { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); }
.vcf-box { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 36px 32px 28px; }
.vcf-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted-foreground); }
.vcf-title { font-size: 20px; margin: 0 0 6px; }
.vcf-sub { font-size: 13px; color: var(--muted-foreground); margin: 0 0 20px; }
.vcf-input { margin-bottom: 0; text-align: center; letter-spacing: .4em; font-size: 20px; }
.vcf-resend { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.vcf-resend-btn { border: 0; background: none; padding: 0; color: var(--foreground); text-decoration: underline; }

/* ---------- 商品內頁 ---------- */
.product-single { padding-top: 40px; }
@media (min-width: 768px) { .product-single { padding-top: 56px; } }

/* 後台頁面通用樣板（pages/page.php） */
.content-page { padding-top: 40px; }
@media (min-width: 768px) { .content-page { padding-top: 56px; } }
.content-page-inner { max-width: 880px; }
.content-page-title { margin-bottom: 32px; }
.content-page-cover { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 32px; }
.ps-state { padding: 96px 0; text-align: center; color: var(--muted-foreground); }
.ps-state-title { font-size: 24px; color: var(--foreground); margin: 0 0 8px; }
.ps-state-desc { font-size: 14px; margin: 0 0 24px; }

.ps-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); margin-bottom: 32px; }
.ps-crumb a:hover { color: var(--foreground); }
.ps-crumb-sep { color: var(--stone-300); }
.ps-crumb-current { color: var(--foreground); }

.ps-main { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .ps-main { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

.ps-gallery-main { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; background: var(--accent); }
.ps-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.ps-gallery-badge { position: absolute; left: 16px; top: 16px; }
.ps-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ps-thumb { width: 80px; height: 80px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--accent); cursor: pointer; transition: border-color .2s; }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-thumb:hover { border-color: var(--stone-500); }
.ps-thumb.is-active { border-color: var(--foreground); }

.ps-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .025em; color: var(--muted-foreground); margin: 0 0 12px; }
.ps-title { font-size: 30px; margin: 0 0 20px; }
@media (min-width: 768px) { .ps-title { font-size: 36px; } }
.ps-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ps-price-now { font-size: 24px; }
.ps-price-now.is-sale { color: #dc2626; font-weight: 500; }
.ps-price-old { font-size: 14px; color: rgba(10,10,10,.4); text-decoration: line-through; }
.ps-intro { font-size: 14px; line-height: 1.8; color: var(--muted-foreground); margin: 0 0 32px; }

.ps-block { padding-top: 24px; border-top: 1px solid var(--border); margin-bottom: 24px; }
.ps-label { font-size: 13px; font-weight: 500; margin: 0 0 12px; }

.ps-sku-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ps-sku { border: 1px solid var(--border); background: #fff; color: var(--foreground); border-radius: 9999px; padding: 10px 20px; font-size: 14px; cursor: pointer; transition: .2s; }
.ps-sku:hover:not(:disabled) { border-color: var(--foreground); }
.ps-sku.is-active { background: var(--foreground); border-color: var(--foreground); color: #fff; }
.ps-sku:disabled { color: var(--stone-300); border-color: var(--stone-200); cursor: not-allowed; text-decoration: line-through; }
.ps-sku small { font-size: 12px; }

.ps-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ps-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9999px; overflow: hidden; }
.ps-qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--foreground); font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s; }
.ps-qty button:hover:not(:disabled) { background: var(--stone-100); }
.ps-qty button:disabled { color: var(--stone-300); cursor: not-allowed; }
.ps-qty-num { min-width: 48px; text-align: center; font-size: 15px; }
.lifestyle .ps-add { flex: 1; min-width: 200px; padding-block: 14px; }
.lifestyle .ps-add:disabled { background: var(--stone-300); border-color: var(--stone-300); color: #fff; cursor: not-allowed; }

.ps-arrival { font-size: 13px; color: var(--muted-foreground); margin: 0 0 24px; }
.ps-notice { padding-top: 24px; border-top: 1px solid var(--border); }
.ps-notice-title { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.ps-notice ul { margin: 0; padding-left: 18px; }
.ps-notice li, .ps-notice-text { font-size: 13px; line-height: 1.8; color: var(--muted-foreground); margin: 0; }

.ps-section { margin-top: 80px; }
@media (min-width: 768px) { .ps-section { margin-top: 112px; } }
.ps-content { font-size: 15px; line-height: 1.9; color: var(--stone-600); }
.ps-content img { border-radius: 8px; }
.ps-content h2, .ps-content h3 { margin: 32px 0 12px; }
.ps-content p { margin: 0 0 16px; }

/* ---------- 錯誤頁 / 佔位 ---------- */
.error-page { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.error-inner { max-width: 520px; text-align: center; }
.error-code { font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: rgba(10,10,10,.9); margin: 0 0 16px; }
@media (min-width: 768px) { .error-code { font-size: 96px; } }
.error-title { font-size: 24px; font-weight: 500; margin: 0 0 16px; }
@media (min-width: 768px) { .error-title { font-size: 30px; } }
.error-desc { color: var(--muted-foreground); line-height: 1.7; margin: 0 0 32px; }
.error-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; justify-content: center; }
@media (min-width: 576px) { .error-actions { flex-direction: row; } }
.error-foot { margin-top: 32px; font-size: 14px; color: var(--muted-foreground); }
.error-foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 後台編輯器內容(posts.content)：尺寸與 vue_backend 的 .ProseMirror 對齊 ---------- */
.lifestyle .rich-text { font-size: 16px; line-height: 1.7; }
.lifestyle .rich-text h1,
.lifestyle .rich-text h2,
.lifestyle .rich-text h3,
.lifestyle .rich-text h4,
.lifestyle .rich-text h5,
.lifestyle .rich-text h6 { line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
.lifestyle .rich-text h1 { font-size: 28px; }
.lifestyle .rich-text h2 { font-size: 24px; }
.lifestyle .rich-text h3 { font-size: 20px; }
.lifestyle .rich-text h4 { font-size: 18px; }
.lifestyle .rich-text h5 { font-size: 16px; }
.lifestyle .rich-text h6 { font-size: 14px; }
.lifestyle .rich-text p { margin: 0 0 .8em; }
.lifestyle .rich-text ul,
.lifestyle .rich-text ol { padding-left: 1.5em; margin: 0 0 .8em; }
.lifestyle .rich-text ol { list-style-type: decimal; }
.lifestyle .rich-text ul { list-style-type: disc; }
.lifestyle .rich-text img { max-width: 100%; height: auto; display: block; }
.lifestyle .rich-text iframe { width: 100%; aspect-ratio: 16 / 9; border: none; }
.lifestyle .rich-text a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== 公告彈窗 ===== */
.lifestyle .announcement-popup {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lifestyle .announcement-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.lifestyle .announcement-popup-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.lifestyle .announcement-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.lifestyle .announcement-popup-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.lifestyle .announcement-popup-close {
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #666;
}
.lifestyle .announcement-popup-content {
  padding: 20px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
}
.lifestyle .announcement-popup-content img { max-width: 100%; height: auto; }
.lifestyle .announcement-popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #eee;
}
.lifestyle .announcement-popup-count { font-size: 14px; color: #999; }
.lifestyle .announcement-popup-btn {
  margin-left: auto;
  padding: 8px 24px;
  border: 0;
  border-radius: 15rem;
  background-color: #1f1f1f;
  color: #fff;
  font-size: 14px;
}

/* ---------- 關於我們(page-about) ---------- */
.about-hero { position: relative; padding: 48px 0 40px; background: var(--stone-100); overflow: hidden; }
.about-hero.has-cover { display: flex; align-items: flex-end; min-height: 420px; padding: 0 0 56px; color: #fff; }
.about-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1)); }
.about-hero-inner { position: relative; width: 100%; }
.about-hero.has-cover .about-crumb, .about-hero.has-cover .about-crumb .ps-crumb-current { color: rgba(255,255,255,.85); }
.about-hero.has-cover .about-crumb .ps-crumb-sep { color: rgba(255,255,255,.5); }
.about-hero.has-cover .about-crumb a:hover { color: #fff; }
.about-eyebrow { font-size: 14px; letter-spacing: .1em; margin: 0 0 12px; opacity: .8; }
.about-hero-title { font-size: 36px; margin: 0; }
.about-hero-sub { font-size: 18px; margin: 16px 0 0; max-width: 640px; opacity: .9; }
.about-intro { max-width: 880px; }
.about-intro-lead { font-size: 20px; line-height: 1.7; margin: 0 0 32px; }
.about-story { padding-top: 0; }
.about-block { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-bottom: 56px; }
.about-block:last-child { margin-bottom: 0; }
.about-block-media { overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--accent); }
.about-block-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.about-block:hover .about-block-media img { transform: scale(1.03); }
.about-block-no { font-size: 12px; color: var(--muted-foreground); margin: 0 0 12px; }
.about-block-title { font-size: 24px; margin: 0 0 16px; }
.lifestyle .about-block-text { color: var(--stone-600); font-size: 15px; }
.about-cta { text-align: center; max-width: 720px; }
.about-cta-title { font-size: 28px; margin: 0 0 12px; }
.about-cta-desc { color: var(--muted-foreground); margin: 0 0 32px; }
.about-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 聯絡我們(page-contact) ---------- */
.contact-head-section { padding-top: 40px; }
.contact-head { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; margin-bottom: 48px; }
.contact-title { margin-top: 8px; }
.contact-lead { font-size: 16px; line-height: 1.8; color: var(--stone-600); margin: 16px 0 0; max-width: 520px; }
.contact-cover { overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; background: var(--accent); }
.contact-cover img { width: 100%; height: 100%; object-fit: cover; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.contact-card:hover { border-color: var(--stone-300); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.contact-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; background: var(--stone-100); margin-bottom: 16px; }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-label { font-size: 13px; color: var(--muted-foreground); margin: 0 0 6px; }
.lifestyle .contact-card-value { display: block; font-size: 17px; color: var(--foreground); margin: 0; word-break: break-word; }
.lifestyle a.contact-card-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card-note { font-size: 13px; color: var(--muted-foreground); margin: 8px 0 0; }
.contact-social { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.contact-social-title { font-size: 14px; margin: 0; }
.contact-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lifestyle .contact-social-links .btn-ls-outline { padding: 8px 20px; font-size: 14px; border-radius: 9999px; }
.contact-map { line-height: 0; background: var(--stone-100); }
.contact-map iframe { width: 100%; height: 360px; border: 0; filter: grayscale(.3); }
.contact-faq { max-width: 880px; }
.contact-faq .accordion-button { font-size: 16px; padding: 20px 0; background: transparent; color: var(--foreground); box-shadow: none; }
.contact-faq .accordion-button:not(.collapsed) { color: var(--foreground); }
.contact-faq .accordion-body { padding: 0 0 20px; font-size: 15px; line-height: 1.8; color: var(--stone-600); }
.contact-faq .accordion-item { border-color: var(--border); }

@media (min-width: 768px) {
  .about-hero.has-cover { min-height: 520px; }
  .about-hero-title { font-size: 52px; }
  .about-block { grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 96px; }
  .about-block.is-reverse .about-block-media { order: 2; }
  .about-block-title { font-size: 30px; }
  .about-cta-title { font-size: 36px; }
  .contact-head-section { padding-top: 56px; }
  .contact-head { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-map iframe { height: 440px; }
}
@media (min-width: 1200px) {
  .contact-cards { grid-template-columns: repeat(4, 1fr); }
}
