/*
Theme Name: Sleep Destination WP
Theme URI: https://example.com/sleepdestination-wp
Author: NickChang
Description: 依照 didi2 WordPress 佈景主題結構整理的森眠計畫主題，支援主選單、頁尾選單、WooCommerce、會員中心、網誌文章與首頁單頁式內容。
Version: 1.5.10
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sleepdestination
*/

/* =========================================================
   01. Design tokens / Reset / Base
   ========================================================= */
:root {
  --forest: #2f4d3c;
  --mist: #6b8f7a;
  --sand: #e7e2d6;
  --stone: #afa796;
  --gold: #c9b07c;
  --deep: #1e2a23;
  --ink: #25322b;
  --muted: #718076;
  --paper: #f7f4ed;
  --white: #ffffff;

  --wp-forest: var(--forest);
  --wp-moss: var(--mist);
  --wp-sand: var(--sand);
  --wp-cream: var(--paper);
  --wp-ink: var(--deep);
  --wp-white: var(--white);
  --wp-gold: var(--gold);
  --wp-border: rgba(47, 77, 60, .16);

  --shadow: 0 22px 60px rgba(30, 42, 35, .18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  z-index: 99999;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  color: var(--wp-ink);
  background: var(--wp-white);
  border-radius: 999px;
  clip: auto;
}

/* =========================================================
   02. Shared components
   ========================================================= */
section {
  padding: 46px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: .08em;
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  margin-top: 6px;
}

.text-link {
  color: var(--forest);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--mist), var(--forest));
  box-shadow: 0 14px 28px rgba(47, 77, 60, .28);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
  background: rgba(20, 35, 28, .22);
  backdrop-filter: blur(10px);
}

/* =========================================================
   03. WordPress header / Navigation
   ========================================================= */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  color: #fff;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 96px;
}

.site-branding {
  margin-right: auto;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .brand-mark,
.site-footer .brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: "Noto Serif TC", serif;
  font-size: 26px;
  line-height: 1;
}

.site-header .brand-mark {
  color: #fff;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .86);
}

.site-footer .brand-mark {
  color: var(--wp-cream);
  background: var(--wp-forest);
  border: 0;
  border-radius: 50% 50% 44% 56%;
}

.custom-logo-wrap img,
.custom-logo-link img {
  width: auto;
  max-height: 48px;
}

.brand-name {
  display: block;
  color: #fff;
  font-family: "Noto Serif TC", "Microsoft JhengHei", "PingFang TC", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
}

.brand-tagline {
  display: block;
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 6px;
  left: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .85);
  transition: right .2s ease, left .2s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  right: 0;
  left: 0;
}

.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  min-width: 190px;
  padding: 10px 14px;
  color: var(--wp-ink);
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(30, 42, 35, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  color: var(--wp-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.site-header .cart-link {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 42px;
  padding: 0;
  font-size: 0;
  gap: 0;
}

.site-header .cart-link::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2 9m12-9l2 9M9 22a1 1 0 100-2 1 1 0 000 2zm8 0a1 1 0 100-2 1 1 0 000 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2 9m12-9l2 9M9 22a1 1 0 100-2 1 1 0 000 2zm8 0a1 1 0 100-2 1 1 0 000 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-header .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: var(--wp-gold);
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: none;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 24px;
  height: 18px;
  background:
    linear-gradient(#fff, #fff) top center / 24px 1.8px no-repeat,
    linear-gradient(#fff, #fff) center center / 24px 1.8px no-repeat,
    linear-gradient(#fff, #fff) bottom center / 24px 1.8px no-repeat;
}

/* =========================================================
   04. Hero / Static homepage sections
   ========================================================= */
.hero {
  position: relative;
  min-height: 700px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 35, 28, .88) 0%, rgba(18, 35, 28, .62) 45%, rgba(18, 35, 28, .26) 100%),
    linear-gradient(180deg, rgba(18, 35, 28, .3), rgba(18, 35, 28, .6)),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(18, 35, 28, .72), transparent);
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: .9;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 42px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .85);
}

.nav-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(201, 176, 124, .92);
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 44px;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  background: rgba(20, 35, 28, .22);
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.nav-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.nav-links a.nav-auth:hover::after,
.nav-links a.nav-auth.active::after {
  display: none;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
  backdrop-filter: blur(10px);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  font-size: 23px;
  cursor: pointer;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 76px;
  padding: 82px 0 38px;
}

.eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 28px;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .06em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .95);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.benefit-card {
  justify-self: end;
  width: 100%;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(235, 232, 220, .16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(16px);
}

.benefit-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.benefit-item:last-child {
  border-bottom: 0;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  font-size: 28px;
}

.benefit-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

.benefit-text {
  margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(850px, 100%);
  gap: 0;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  background: rgba(18, 35, 28, .48);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.stat {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 24px 26px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.stat:last-child {
  border-right: 0;
}

.stat-icon {
  font-size: 36px;
  opacity: .9;
}

.stat-number {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .03em;
}

.stat-number small {
  font-size: 17px;
}

.stat-label {
  margin-top: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

/* =========================================================
   05. Homepage content blocks
   ========================================================= */
.process {
  background: #fbfaf6;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  gap: 22px;
  position: relative;
}

.process-item {
  position: relative;
  text-align: center;
}

.process-item:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -16px;
  top: 33px;
  color: var(--stone);
  font-size: 36px;
  font-weight: 200;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  color: var(--deep);
  background: #ede8dc;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(47, 77, 60, .05);
  font-size: 38px;
}

.process-title {
  margin-bottom: 7px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}

.process-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.partners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 40px;
  align-items: stretch;
}

.hotel-cards {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 14px;
}

.hotel-card {
  overflow: hidden;
  border: 1px solid rgba(30, 42, 35, .06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 42, 35, .08);
}

.hotel-image {
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(30, 42, 35, .1), rgba(30, 42, 35, .15)),
    url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=800&q=80") center / cover;
}

.hotel-card.feature .hotel-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 184px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(30, 42, 35, .16), rgba(30, 42, 35, .82)),
    url("https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=900&q=80") center / cover;
}

.hotel-card:nth-child(2) .hotel-image {
  background-image: url("https://images.unsplash.com/photo-1582719508461-905c673771fd?auto=format&fit=crop&w=700&q=80");
}

.hotel-card:nth-child(3) .hotel-image {
  background-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=700&q=80");
}

.hotel-card:nth-child(4) .hotel-image {
  background-image: url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=700&q=80");
}

.hotel-card:nth-child(5) .hotel-image {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=700&q=80");
}

.hotel-body {
  padding: 14px 12px 16px;
  background: rgba(255, 255, 255, .9);
}

.hotel-name {
  min-height: 58px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.hotel-location {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.test-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 282px;
  padding: 34px;
  color: #fff;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(30, 42, 35, .92), rgba(47, 77, 60, .76)),
    url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1200&q=85") center / cover;
  box-shadow: var(--shadow);
}

.test-title {
  margin-bottom: 2px;
  text-align: center;
  font-family: "Noto Serif TC", serif;
  font-size: 30px;
  letter-spacing: .08em;
}

.test-sub {
  margin-bottom: 26px;
  text-align: center;
  opacity: .92;
}

.test-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.test-item {
  color: rgba(255, 255, 255, .9);
  text-align: center;
  font-size: 13px;
}

.test-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 8px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  font-size: 22px;
}

.test-card .btn {
  width: min(420px, 100%);
  margin: 0 auto;
  color: #fff;
  background: var(--gold);
}

.privacy {
  margin-top: 18px;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  font-size: 13px;
}

.enterprise {
  border-top: 1px solid rgba(30, 42, 35, .08);
  border-bottom: 1px solid rgba(30, 42, 35, .08);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 52px;
  align-items: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.service {
  padding: 22px 12px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .44);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ede8dc;
  font-size: 28px;
}

.service-title {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
}

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

.enterprise-photo {
  height: 260px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(30, 42, 35, .05), rgba(30, 42, 35, .06)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=900&q=85") center / cover;
  box-shadow: 0 20px 50px rgba(30, 42, 35, .14);
}

.style-guide {
  padding: 36px 0;
  background: #f2eee5;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .55fr;
  gap: 30px;
  align-items: stretch;
}

.guide-card {
  padding: 26px 26px 24px;
  background: rgba(255, 255, 255, .42);
  border-right: 1px solid rgba(30, 42, 35, .08);
}

.guide-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: .08em;
}

.guide-label small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.swatch {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.color-dot {
  height: 64px;
  margin-bottom: 10px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.color-forest { background: #2f4d3c; }
.color-mist { background: #6b8f7a; }
.color-sand { background: #e7e2d6; }
.color-stone { background: #afa796; }
.color-gold { background: #c9b07c; }
.color-deep { background: #1e2a23; }

.font-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.font-sample {
  color: var(--ink);
  text-align: center;
}

.font-sample strong {
  display: block;
  margin-bottom: 10px;
  font-size: 62px;
  line-height: 1;
}

.font-serif strong {
  font-family: "Noto Serif TC", serif;
}

.font-sans strong {
  font-family: "Noto Sans TC", sans-serif;
}

.font-sample p {
  color: var(--muted);
  font-size: 12px;
}

.button-stack {
  display: grid;
  gap: 12px;
}

.guide-btn {
  display: block;
  padding: 12px 18px;
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
}

.guide-btn.primary {
  color: #fff;
  background: var(--forest);
}

.guide-btn.secondary {
  color: #fff;
  background: var(--gold);
}

.guide-btn.line {
  color: var(--deep);
  background: transparent;
  border: 1px solid var(--stone);
}

.promise {
  padding: 34px 0 54px;
  overflow: hidden;
  background: linear-gradient(180deg, #f2eee5, #fbfaf6);
}

.promise-heading {
  margin-bottom: 22px;
  font-size: 24px;
}

.promise-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(47, 77, 60, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  font-size: 20px;
}

.promise-title {
  font-size: 14px;
  font-weight: 700;
}

.promise-text {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.mountains {
  height: 90px;
  margin-top: -10px;
  opacity: .72;
  background:
    radial-gradient(ellipse at 75% 70%, rgba(107, 143, 122, .22), transparent 45%),
    linear-gradient(135deg, transparent 0 35%, rgba(107, 143, 122, .2) 36% 42%, transparent 43%),
    linear-gradient(45deg, transparent 0 42%, rgba(47, 77, 60, .18) 43% 50%, transparent 51%),
    linear-gradient(160deg, transparent 0 38%, rgba(175, 167, 150, .24) 39% 46%, transparent 47%);
}

/* =========================================================
   06. LINE / Custom cart drawer / Homepage product cards
   ========================================================= */
.shop {
  background: #fbfaf6;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.cart-text-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 42, 35, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(30, 42, 35, .08);
}

.product-card > a {
  display: block;
}

.product-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-image: linear-gradient(180deg, rgba(30, 42, 35, .06), rgba(30, 42, 35, .16));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-image-1 {
  background-image:
    linear-gradient(180deg, rgba(30, 42, 35, .06), rgba(30, 42, 35, .16)),
    url("https://images.unsplash.com/photo-1519823551278-64ac92734fb1?auto=format&fit=crop&w=700&q=80");
}

.product-image-2 {
  background-image:
    linear-gradient(180deg, rgba(30, 42, 35, .06), rgba(30, 42, 35, .16)),
    url("https://images.unsplash.com/photo-1495195134817-aeb325a55b65?auto=format&fit=crop&w=700&q=80");
}

.product-image-3 {
  background-image:
    linear-gradient(180deg, rgba(30, 42, 35, .06), rgba(30, 42, 35, .16)),
    url("https://images.unsplash.com/photo-1511379938547-c1f69419868d?auto=format&fit=crop&w=700&q=80");
}

.product-image-4 {
  background-image:
    linear-gradient(180deg, rgba(30, 42, 35, .06), rgba(30, 42, 35, .16)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=700&q=80");
}

.product-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.product-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--forest);
  background: #ede8dc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-title {
  min-height: 50px;
  margin-bottom: 8px;
  color: #123026;
  font-size: 18px;
  line-height: 1.4;
}

.product-text {
  min-height: 45px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.product-price {
  color: var(--forest);
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
}

.product-add {
  padding: 10px 14px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(10, 18, 14, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  height: 100vh;
  background: #fff;
  box-shadow: -24px 0 60px rgba(30, 42, 35, .18);
  transform: translateX(102%);
  transition: transform .28s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 22px 24px;
}

.cart-header {
  display: flex;
  border-bottom: 1px solid rgba(30, 42, 35, .08);
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.cart-header h2 {
  font-size: 24px;
}

.cart-header p {
  color: var(--muted);
  font-size: 14px;
}

.cart-footer {
  border-top: 1px solid rgba(30, 42, 35, .08);
  border-bottom: 0;
}

.cart-close {
  width: 38px;
  height: 38px;
  color: var(--deep);
  border: 0;
  border-radius: 50%;
  background: #ede8dc;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px 24px;
}

.cart-empty {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(30, 42, 35, .08);
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

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

.cart-remove {
  margin-top: 6px;
  color: var(--stone);
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(47, 77, 60, .18);
  border-radius: 50%;
  background: #fbfaf6;
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.cart-checkout,
.cart-clear {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cart-checkout {
  margin-bottom: 10px;
  color: #fff;
  background: var(--forest);
}

.cart-clear {
  color: var(--deep);
  background: #ede8dc;
}

.line-service {
  background: linear-gradient(180deg, #fbfaf6, #eef7ef);
}

.line-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 34px;
  align-items: stretch;
  padding: 38px;
  border: 1px solid rgba(30, 42, 35, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 24px 60px rgba(30, 42, 35, .1);
}

.line-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 14px;
  color: #fff;
  background: #06c755;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .05em;
}

.line-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.line-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: #f7f4ed;
}

.line-feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: rgba(6, 199, 85, .12);
}

.line-feature strong,
.line-feature span {
  display: block;
}

.line-feature strong {
  font-size: 16px;
}

.line-feature span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.line-main-btn {
  color: #fff;
  background: #06c755;
  box-shadow: 0 14px 28px rgba(6, 199, 85, .18);
}

.line-outline-btn {
  color: #048f3e;
  border-color: rgba(6, 199, 85, .5);
  background: rgba(6, 199, 85, .08);
}

.line-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 30px;
  color: #fff;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #163623, #2f4d3c);
}

.line-qr-image {
  width: 174px;
  height: 174px;
  margin: 0 auto 18px;
  object-fit: cover;
  border: 12px solid var(--white);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(30, 42, 35, .12);
}

.line-qr-placeholder {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}

.line-qr-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #06c755;
  border-radius: 12px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  background:
    linear-gradient(90deg, rgba(6, 199, 85, .12) 50%, transparent 50%) 0 0 / 22px 22px,
    linear-gradient(rgba(6, 199, 85, .12) 50%, transparent 50%) 0 0 / 22px 22px;
}

.line-qr-panel h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.line-qr-panel p {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.line-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 88px;
  min-height: 72px;
  color: #fff;
  border-radius: 22px;
  background: #06c755;
  box-shadow: 0 18px 42px rgba(6, 199, 85, .25), 0 12px 26px rgba(0, 0, 0, .14);
  font-weight: 800;
}

.line-float strong {
  font-size: 18px;
  line-height: 1;
}

.line-float span {
  font-size: 13px;
}

/* =========================================================
   07. Page / Post / Archive layout
   ========================================================= */
.page-hero {
  padding: 120px 0 80px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 35, 28, .88) 0%, rgba(18, 35, 28, .62) 45%, rgba(18, 35, 28, .26) 100%),
    linear-gradient(180deg, rgba(18, 35, 28, .3), rgba(18, 35, 28, .6)),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.page-hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  max-width: 1180px;
  transform: translateY(30px);
}

.page-eyebrow {
  order: 2;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .58);
  font-size: 20px;  /* ← 英文字大小 */
  line-height: 1;
  letter-spacing: .18em;
  white-space: nowrap;
}

.page-title {
  order: 1;
  margin: 0;
  color: #fff;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(28px, 6vw, 54px); /* ← 中文字大小 */
  line-height: 1.25;
  letter-spacing: .04em;
}

.page-meta {
  margin-top: 17px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.content-area {
  padding: 75px 0 110px;
  background: var(--wp-white);
}

.entry-content {
  width: min(100%, 860px);
  margin-inline: auto;
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* Content lists: restore indentation removed by the global reset.
   Cover lists nested inside Gutenberg/container blocks while excluding
   WooCommerce page UI, navigation, footer and account menus. */
body:not(.woocommerce-page) .entry-content ul,
body:not(.woocommerce-page) .entry-content ol,
body.single-product .woocommerce-product-details__short-description ul,
body.single-product .woocommerce-product-details__short-description ol,
body.single-product .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-Tabs-panel ol,
.term-description ul,
.term-description ol {
  margin: .9em 0 1.1em;
  padding-inline-start: 2em;
  list-style-position: outside;
}

body:not(.woocommerce-page) .entry-content li,
body.single-product .woocommerce-product-details__short-description li,
body.single-product .woocommerce-Tabs-panel li,
.term-description li {
  margin: .28em 0;
}

body:not(.woocommerce-page) .entry-content ul ul,
body:not(.woocommerce-page) .entry-content ul ol,
body:not(.woocommerce-page) .entry-content ol ul,
body:not(.woocommerce-page) .entry-content ol ol,
body.single-product .woocommerce-product-details__short-description ul ul,
body.single-product .woocommerce-product-details__short-description ul ol,
body.single-product .woocommerce-product-details__short-description ol ul,
body.single-product .woocommerce-product-details__short-description ol ol,
body.single-product .woocommerce-Tabs-panel ul ul,
body.single-product .woocommerce-Tabs-panel ul ol,
body.single-product .woocommerce-Tabs-panel ol ul,
body.single-product .woocommerce-Tabs-panel ol ol,
.term-description ul ul,
.term-description ul ol,
.term-description ol ul,
.term-description ol ol {
  margin: .35em 0 0;
  padding-inline-start: 1.6em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  font-family: "Noto Serif TC", serif;
  line-height: 1.4;
}

.entry-content h2 {
  font-size: 31px;
}

.entry-content a:not(.button):not(.btn) {
  color: var(--wp-forest);
  text-decoration: underline;
  text-decoration-color: var(--wp-gold);
  text-underline-offset: 3px;
}

.entry-content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 18px;
  object-fit: contain;
}

/* Single article images: preserve the original aspect ratio when the image
   width is reduced on phones. WordPress outputs width/height attributes on
   images; without height:auto the browser can keep the desktop height and
   make the image look vertically stretched. */
.single-post .entry-content .wp-block-image,
.single-post .entry-content figure {
  max-width: 100%;
}

.single-post .entry-content > img.wp-post-image {
  width: 100%;
  max-width: 100%;
  height: auto !important;
}

.entry-content .alignwide {
  width: min(1100px, 100vw - 40px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content input:not([type="checkbox"]):not([type="radio"]),
.entry-content textarea,
.entry-content select {
  width: 100%;
  padding: 13px 16px;
  color: var(--wp-ink);
  background: var(--wp-cream);
  border: 1px solid var(--wp-border);
  border-radius: 10px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  overflow: hidden;
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  border-radius: 22px;
  box-shadow: 0 12px 45px rgba(30, 42, 35, .07);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--wp-sand);
}

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

.post-card-body {
  padding: 28px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  line-height: 1.4;
}

.post-card p {
  margin: 0;
  color: #667970;
  font-size: 14px;
}

.pagination {
  margin-top: 55px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--wp-border);
  border-radius: 999px;
}

.pagination .current {
  color: var(--wp-white);
  background: var(--wp-forest);
}

.empty-state {
  padding: 50px;
  text-align: center;
  background: var(--wp-cream);
  border-radius: 24px;
}

/* =========================================================
   08. WooCommerce general / Product archive / Account
   ========================================================= */
.woo-home-products .product-add {
  padding: 10px 14px;
  color: var(--wp-white);
  background: var(--wp-forest);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 25px;
  color: var(--wp-moss);
  font-size: 13px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  color: var(--wp-white);
  background: var(--wp-forest);
  border-radius: 999px;
  font-weight: 600;
}

/* WooCommerce 區塊購物車：前往結帳按鈕文字顏色 */
.wc-block-cart__submit-button,
.wc-block-cart__submit-button:visited,
.wc-block-components-button.wc-block-cart__submit-button,
.wc-block-components-button.wc-block-cart__submit-button:visited {
  color: #ffffff !important;
  background: var(--wp-forest) !important;
  border: 0 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

.wc-block-cart__submit-button .wc-block-components-button__text,
.wc-block-cart__submit-button:hover .wc-block-components-button__text,
.wc-block-cart__submit-button:focus .wc-block-components-button__text,
.wc-block-cart__submit-button:active .wc-block-components-button__text,
.wc-block-components-button.wc-block-cart__submit-button .wc-block-components-button__text {
  color: #ffffff !important;
  text-decoration: none !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button:focus,
.wc-block-cart__submit-button:active,
.wc-block-components-button.wc-block-cart__submit-button:hover,
.wc-block-components-button.wc-block-cart__submit-button:focus,
.wc-block-components-button.wc-block-cart__submit-button:active {
  color: #ffffff !important;
  background: var(--wp-forest) !important;
  text-decoration: none !important;
}
/* End WooCommerce checkout button text color */

.woocommerce div.product div.images img {
  border-radius: 22px;
}

.woocommerce div.product .product_title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(32px, 4vw, 48px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--wp-moss);
}

.woocommerce-message,
.woocommerce-info {
  background: var(--wp-cream);
  border-top-color: var(--wp-gold);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--wp-gold);
}

/* Product archive: blog-like card layout, desktop 4 columns */
body.post-type-archive-product .content-area,
body.woocommerce-shop .content-area {
  background: #fbfaf6;
  padding: 42px 0 92px;
}

body.post-type-archive-product .content-area > .container,
body.woocommerce-shop .content-area > .container,
body.woocommerce-page.archive .content-area > .container {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.post-type-archive-product .content-area h1.page-title,
body.woocommerce-shop .content-area h1.page-title,
body.post-type-archive-product .content-area .page-title,
body.woocommerce-shop .content-area .page-title,
body.post-type-archive-product .woocommerce-products-header,
body.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header__title,
body.woocommerce-shop .woocommerce-products-header__title {
  display: none !important;
}

body.post-type-archive-product .woocommerce-result-count,
body.woocommerce-shop .woocommerce-result-count {
  float: none;
  margin: 0 0 18px;
  color: #718076;
  font-size: 14px;
}

body.post-type-archive-product .woocommerce-ordering,
body.woocommerce-shop .woocommerce-ordering {
  float: none;
  width: fit-content;
  margin: -42px 0 28px auto;
}

.woocommerce .woocommerce-ordering select {
  height: 38px;
  padding: 0 12px;
  color: #25322b;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .18);
  border-radius: 8px;
}

body.post-type-archive-product ul.products,
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products.columns-4,
body.woocommerce-shop ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
  display: none !important;
}

body.post-type-archive-product ul.products li.product,
body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products.columns-4 li.product,
body.woocommerce-shop ul.products.columns-4 li.product {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .08);
}

body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
  padding: 18px 18px 6px !important;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 18px !important;
  line-height: 1.45;
  letter-spacing: .04em;
}

body.post-type-archive-product ul.products li.product .price,
body.woocommerce-shop ul.products li.product .price {
  display: block;
  padding: 0 18px 14px !important;
  color: #2f4d3c !important;
  font-size: 15px;
  font-weight: 700;
}

/* 商品列表特價：原價灰色刪除線，特價紅色；僅定義一次避免重複覆寫 */
body.post-type-archive-product ul.products li.product .price del,
body.woocommerce-shop ul.products li.product .price del,
body.woocommerce-page.archive ul.products li.product .price del {
  color: #8a948e !important;
  opacity: 1 !important;
  font-weight: 400;
}

body.post-type-archive-product ul.products li.product .price ins,
body.woocommerce-shop ul.products li.product .price ins,
body.woocommerce-page.archive ul.products li.product .price ins {
  color: #ff3b3b !important;
  text-decoration: none !important;
  font-weight: 700;
}

body.post-type-archive-product ul.products li.product .button,
body.woocommerce-shop ul.products li.product .button {
  margin: 0 18px 22px !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background: #2f4d3c !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

body.post-type-archive-product span.onsale,
body.woocommerce-shop span.onsale {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  min-width: 46px;
  min-height: 46px;
  line-height: 46px;
  background: #9aaa00;
}



body.single-product .header-inner {
  min-height: 88px;
}

body.single-product .main-navigation .sub-menu {
  background: rgba(255, 255, 255, .96);
}

/* Single product: custom detail template */

body.single-product .content-area > .container {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-inline: auto;
}

body.single-product div.product.sleep-product-detail {
  margin: 0;
}

body.single-product .sleep-product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .72fr);
  gap: 52px;
  align-items: start;
}

body.single-product .sleep-product-gallery {
  position: relative;
}

body.single-product div.product div.images,
body.single-product .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.single-product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product .woocommerce-product-gallery__image a {
  display: block;
}

body.single-product div.product div.images img,
body.single-product .woocommerce-product-gallery img {
  width: 100%;
  height: clamp(420px, 50vw, 560px);
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(30, 42, 35, .12);
}

body.single-product span.onsale {
  z-index: 3;
  top: 18px !important;
  left: 18px !important;
  right: auto !important;
  min-width: 52px;
  min-height: 52px;
  line-height: 52px;
  color: #fff;
  background: #9aaa00;
}

body.single-product div.product div.summary,
body.single-product .summary.entry-summary.sleep-product-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 40px 42px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .08);
}

body.single-product div.product .product_title {
  margin: 0 0 14px;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.16;
  letter-spacing: .04em;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  color: #2f4d3c;
  font-size: 24px;
  font-weight: 800;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del {
  color: #718076;
  font-size: .82em;
  opacity: .75;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins {
  color: #2f4d3c;
  text-decoration: none;
}

body.single-product .woocommerce-product-details__short-description {
  margin: 14px 0 22px;
  color: #50635a;
  font-size: 16px;
  line-height: 1.8;
}

body.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0 26px;
}

body.single-product form.cart .quantity {
  margin: 0 !important;
}

body.single-product .quantity .qty {
  width: 78px;
  height: 46px;
  padding: 0 12px;
  color: #123026;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .18);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

body.single-product .single_add_to_cart_button {
  min-height: 46px;
  padding: 0 26px !important;
  color: #fff !important;
  background: #2f4d3c !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
}

body.single-product .product_meta {
  margin-top: 24px;
  padding-top: 22px;
  color: #667970;
  border-top: 1px solid rgba(47, 77, 60, .12);
  font-size: 14px;
}

body.single-product .product_meta > span {
  display: block;
  margin: 6px 0;
}

body.single-product .product_meta a {
  color: #2f4d3c;
  text-decoration: underline;
  text-decoration-color: rgba(201, 176, 124, .9);
  text-underline-offset: 3px;
}

body.single-product .sleep-product-extra {
  margin-top: 56px;
}

body.single-product .related.products,
body.single-product .upsells.products {
  margin-top: 58px;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  margin: 0 0 24px;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 30px;
  letter-spacing: .04em;
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after {
  display: none !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .08);
}

body.single-product .related.products ul.products li.product a img,
body.single-product .upsells.products ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #f8f7f2 !important;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
  padding: 18px 18px 6px !important;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 18px !important;
  line-height: 1.45;
}

body.single-product .related.products ul.products li.product .price,
body.single-product .upsells.products ul.products li.product .price {
  display: block;
  padding: 0 18px 14px !important;
  color: #2f4d3c !important;
  font-size: 15px;
  font-weight: 700;
}

body.single-product .related.products ul.products li.product .button,
body.single-product .upsells.products ul.products li.product .button {
  margin: 0 18px 22px !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background: #2f4d3c !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  body.single-product .sleep-product-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.single-product .summary.entry-summary.sleep-product-summary {
    padding: 32px;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  
  body.single-product .content-area > .container {
    width: min(100% - 34px, 520px);
  }

  body.single-product .summary.entry-summary.sleep-product-summary {
    padding: 26px 22px;
    border-radius: 20px;
  }

  body.single-product div.product .product_title {
    font-size: 34px;
  }

  body.single-product div.product p.price,
  body.single-product div.product span.price {
    font-size: 22px;
  }

  body.single-product form.cart {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  body.single-product form.cart .quantity {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  body.single-product .quantity .qty {
    width: 86px;
    min-width: 86px;
    height: 46px;
    min-height: 46px;
    text-align: center;
  }

  body.single-product .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 132px;
    height: 46px;
    min-height: 46px;
    padding: 0 22px !important;
    white-space: nowrap;
    word-break: keep-all;
    line-height: 1 !important;
    writing-mode: horizontal-tb;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: 1fr !important;
  }

  body.single-product .related.products ul.products li.product a img,
  body.single-product .upsells.products ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 520px) {
  body.single-product.sleep-experience-product .sleep-scent-options {
    grid-template-columns: 1fr;
    max-height: 190px;
  }
}

@media (max-width: 420px) {
  body.single-product form.cart {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  body.single-product form.cart .quantity {
    flex: 0 0 auto;
  }

  body.single-product .quantity .qty {
    width: 74px;
    min-width: 74px;
    height: 44px;
    min-height: 44px;
  }

  body.single-product .single_add_to_cart_button {
    width: auto !important;
    min-width: 118px;
    height: 44px;
    min-height: 44px;
    padding: 0 18px !important;
    white-space: nowrap;
    word-break: keep-all;
    line-height: 1 !important;
    font-size: 14px !important;
  }
}


/* Account / Member center: stable two-column login/register layout */
.entry-content.account-content {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.account-content .woocommerce {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

.account-content .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.account-content .woocommerce-MyAccount-navigation a {
  display: inline-flex;
  padding: 10px 16px;
  background: var(--wp-cream);
  border: 1px solid var(--wp-border);
  border-radius: 999px;
  text-decoration: none;
}

.account-content .woocommerce-MyAccount-navigation .is-active a {
  color: var(--wp-white);
  background: var(--wp-forest);
}

.woocommerce-account .content-area {
  background: #fff;
}

.woocommerce-account .account-content .woocommerce-notices-wrapper {
  width: 100%;
}

.woocommerce-account:not(.logged-in) .woocommerce #customer_login,
.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  width: min(1080px, 100%) !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.woocommerce-account:not(.logged-in) .woocommerce #customer_login::before,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login::after,
.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set::before,
.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set::after {
  display: none !important;
  content: none !important;
}

.woocommerce-account:not(.logged-in) .woocommerce #customer_login .u-column1.col-1,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login .u-column2.col-2,
.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column1.col-1,
.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column2.col-2 {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .16);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .06);
}

.woocommerce-account .woocommerce h2 {
  margin: 0 0 12px;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .04em;
}

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
  display: block !important;
  width: 100% !important;
  margin: 32px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce form .form-row {
  margin: 0 0 22px;
  padding: 0;
}

.woocommerce-account .woocommerce form .form-row label {
  display: block;
  margin-bottom: 10px;
  color: #123026;
  font-weight: 700;
}

.woocommerce-account .woocommerce form .input-text,
.woocommerce-account .woocommerce form input[type="text"],
.woocommerce-account .woocommerce form input[type="email"],
.woocommerce-account .woocommerce form input[type="password"] {
  width: 100%;
  height: 56px;
  padding: 12px 18px;
  color: #123026;
  background: #f7f4ed;
  border: 1px solid rgba(47, 77, 60, .18);
  border-radius: 10px;
  box-shadow: none;
}

.woocommerce-account .woocommerce form .woocommerce-button,
.woocommerce-account .woocommerce form button.button {
  min-height: 42px;
  padding: 0 18px !important;
  color: #fff !important;
  background: var(--wp-forest) !important;
  border-radius: 999px !important;
}

.woocommerce-account .woocommerce form .lost_password {
  margin-top: 16px;
}

.woocommerce-account .woocommerce form .lost_password a,
.woocommerce-account .woocommerce form a {
  color: var(--wp-forest);
  text-decoration: underline;
  text-decoration-color: var(--wp-gold);
  text-underline-offset: 3px;
}



/* Confirm password live validation */
/* Registration live availability messages */
.woocommerce-account .woocommerce form .sleep-field-status {
  display: none;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: baseline;
}

.woocommerce-account .woocommerce form .sleep-field-status.is-visible {
  display: inline;
}

.woocommerce-account .woocommerce form .sleep-field-status.is-checking {
  color: #718076;
}

.woocommerce-account .woocommerce form .sleep-field-status.is-error {
  color: #b13626;
}

.woocommerce-account .woocommerce form .sleep-field-status.is-success {
  color: #2f4d3c;
}

.woocommerce-account .woocommerce form #reg_username[aria-invalid="true"],
.woocommerce-account .woocommerce form #reg_email[aria-invalid="true"] {
  border-color: rgba(177, 54, 38, .62);
  box-shadow: 0 0 0 3px rgba(177, 54, 38, .08);
}

.woocommerce-account .woocommerce form .sleep-confirm-password-row {
  position: relative;
}

.woocommerce-account .woocommerce form .sleep-password-match-message {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 0 0 10px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.woocommerce-account .woocommerce form .sleep-password-match-message.is-visible {
  display: block;
}

.woocommerce-account .woocommerce form .sleep-password-match-message.is-error {
  color: #7a1f1f;
  background: #ffe1dc;
  border: 1px solid rgba(122, 31, 31, .18);
}

.woocommerce-account .woocommerce form .sleep-password-match-message.is-success {
  color: #234f3b;
  background: #dff3e8;
  border: 1px solid rgba(47, 77, 60, .18);
}

.woocommerce-account .woocommerce form #reg_password_2[aria-invalid="true"] {
  border-color: rgba(177, 54, 38, .62);
  box-shadow: 0 0 0 3px rgba(177, 54, 38, .08);
}

.woocommerce-account .woocommerce form button.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}


/* =========================================================
   09. Member center dashboard / logged-in account
   會員中心登入後版面：參考側邊選單 + 右側內容卡片
   ========================================================= */
.woocommerce-account.logged-in .content-area {
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 176, 124, .18), transparent 34%),
    linear-gradient(135deg, #f7f4ed 0%, #f4efe5 48%, #edf6ef 100%);
  padding: 76px 0 110px;
}

.woocommerce-account.logged-in .entry-content.account-content {
  width: min(1180px, 100%);
  max-width: 1180px;
}

.woocommerce-account.logged-in .account-content .woocommerce {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  width: 100%;
  max-width: 1180px;
}

.woocommerce-account.logged-in .account-content .woocommerce::before,
.woocommerce-account.logged-in .account-content .woocommerce::after {
  display: none !important;
  content: none !important;
}

.woocommerce-account.logged-in .account-content .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(47, 77, 60, .13);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(30, 42, 35, .10);
  backdrop-filter: blur(12px);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation a {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 11px 14px;
  color: #123026;
  background: transparent;
  border: 0;
  border-radius: 18px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation a::before {
  content: "";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--wp-forest);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .92), rgba(251, 250, 246, .74) 54%, rgba(231, 226, 214, .34) 100%);
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 8px 18px rgba(30, 42, 35, .04);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  width: 22px;
  height: 22px;
  background-color: var(--wp-forest);
  transform: translateY(-50%);
  -webkit-mask: var(--sd-account-icon) center / contain no-repeat;
  mask: var(--sd-account-icon) center / contain no-repeat;
  pointer-events: none;
  transition: background-color .22s ease, transform .22s ease, opacity .22s ease;
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation a:hover {
  background: rgba(47, 77, 60, .08);
  transform: translateY(-1px);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation a:hover::after {
  transform: translateY(-50%) scale(1.05);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation .is-active a {
  color: #fff;
  background: var(--wp-forest);
  box-shadow: 0 14px 28px rgba(47, 77, 60, .20);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation .is-active a::before {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 8px 18px rgba(0, 0, 0, .06);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation .is-active a::after {
  background-color: #fff;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--orders a {
  --sd-account-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M8%204h8%27%2F%3E%3Cpath%20d%3D%27M9%202h6v4H9z%27%2F%3E%3Cpath%20d%3D%27M6%204H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h9%27%2F%3E%3Cpath%20d%3D%27M19%2011V6a2%202%200%200%200-2-2h-1%27%2F%3E%3Cpath%20d%3D%27M7%2010h6%27%2F%3E%3Cpath%20d%3D%27M7%2014h4%27%2F%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2717%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M17%2015v2l1.5%201%27%2F%3E%3C%2Fsvg%3E");
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--downloads a {
  --sd-account-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M13.5%203.5A7.8%207.8%200%201%200%2020.5%2014%206.6%206.6%200%200%201%2013.5%203.5z%27%2F%3E%3Cpath%20d%3D%27M6.5%2015.5h3l1.2-2.2%202.1%204.4%201.4-2.2h3.3%27%2F%3E%3Cpath%20d%3D%27M18%203.6v2.6%27%2F%3E%3Cpath%20d%3D%27M16.7%204.9h2.6%27%2F%3E%3Cpath%20d%3D%27M21%207.5v2%27%2F%3E%3Cpath%20d%3D%27M20%208.5h2%27%2F%3E%3C%2Fsvg%3E");
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--edit-account a {
  --sd-account-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M4.5%2021a7.5%207.5%200%200%201%2015%200%27%2F%3E%3C%2Fsvg%3E");
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a {
  --sd-account-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10%204H6a2%202%200%200%200-2%202v12a2%202%200%200%200%202%202h4%27%2F%3E%3Cpath%20d%3D%27M14%208l4%204-4%204%27%2F%3E%3Cpath%20d%3D%27M18%2012H9%27%2F%3E%3C%2Fsvg%3E");
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  min-height: 430px;
  margin: 0 !important;
  padding: 42px 44px;
  color: #25322b;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(47, 77, 60, .13);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(30, 42, 35, .10);
  backdrop-filter: blur(12px);
}

.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-content::before,
.woocommerce-account.logged-in .account-content .woocommerce-MyAccount-content::after {
  display: none !important;
  content: none !important;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content p {
  color: #52645b;
  font-size: 15px;
  line-height: 1.85;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content h2,
.woocommerce-account.logged-in .woocommerce-MyAccount-content h3,
.woocommerce-account.logged-in .woocommerce-MyAccount-content legend {
  margin: 0 0 22px;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: .04em;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content a:not(.button) {
  color: var(--wp-forest);
  text-decoration: underline;
  text-decoration-color: var(--wp-gold);
  text-underline-offset: 3px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content .button,
.woocommerce-account.logged-in .woocommerce-MyAccount-content button.button,
.woocommerce-account.logged-in .woocommerce-MyAccount-content input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  color: #fff !important;
  background: var(--wp-forest) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 800;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table {
  overflow: hidden;
  margin: 18px 0 0;
  background: transparent;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table thead {
  display: none;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table tr {
  border: 0;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table td,
.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table th {
  padding: 18px 20px;
  background: #fbfaf6;
  border-top: 1px solid rgba(47, 77, 60, .14) !important;
  border-bottom: 1px solid rgba(47, 77, 60, .14) !important;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table td:first-child,
.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table th:first-child {
  border-left: 1px solid rgba(47, 77, 60, .14) !important;
  border-radius: 16px 0 0 16px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table td:last-child,
.woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table th:last-child {
  border-right: 1px solid rgba(47, 77, 60, .14) !important;
  border-radius: 0 16px 16px 0;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content .woocommerce-Addresses,
.woocommerce-account.logged-in .woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-account.logged-in .woocommerce-MyAccount-content form.edit-account {
  display: grid;
  gap: 22px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-account.logged-in .woocommerce-MyAccount-content form.edit-account,
.woocommerce-account.logged-in .woocommerce-MyAccount-content .woocommerce-address-fields {
  padding: 26px;
  background: #fbfaf6;
  border: 1px solid rgba(47, 77, 60, .13);
  border-radius: 20px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content .form-row {
  margin-bottom: 18px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content label {
  display: block;
  margin-bottom: 8px;
  color: #123026;
  font-weight: 700;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content input.input-text,
.woocommerce-account.logged-in .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account.logged-in .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account.logged-in .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account.logged-in .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account.logged-in .woocommerce-MyAccount-content select,
.woocommerce-account.logged-in .woocommerce-MyAccount-content textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: #123026;
  background: #f7f4ed;
  border: 1px solid rgba(47, 77, 60, .18);
  border-radius: 12px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .woocommerce-account.logged-in .account-content .woocommerce {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .woocommerce-account.logged-in .content-area {
    padding: 42px 0 80px;
  }

  .woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation,
  .woocommerce-account.logged-in .account-content .woocommerce-MyAccount-content {
    padding: 18px;
    border-radius: 20px;
  }

  .woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr;
  }

  .woocommerce-account.logged-in .account-content .woocommerce-MyAccount-navigation a {
    min-height: 58px;
    font-size: 15px;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table tbody,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table tr,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table td {
    display: block;
    width: 100%;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table tr {
    overflow: hidden;
    margin-bottom: 14px;
    background: #fbfaf6;
    border: 1px solid rgba(47, 77, 60, .14);
    border-radius: 18px;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-content table.shop_table td {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 12px 16px;
  }
}

/* =========================================================
   09. Footer
   ========================================================= */
.site-footer {
  padding: 72px 0 28px;
  color: rgba(255, 255, 255, .72);
  background: var(--wp-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 70px;
  padding-bottom: 60px;
}

.footer-brand .brand-link {
  color: var(--wp-white);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, .62);
}

.footer-brand p {
  max-width: 420px;
  margin: 20px 0 0;
  font-size: 14px;
}

.footer-column h2 {
  margin: 0 0 18px;
  color: var(--wp-white);
  font-size: 16px;
  letter-spacing: .15em;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin: 8px 0;
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--wp-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
}


@media (max-width: 900px) {
  .woocommerce-account:not(.logged-in) .woocommerce #customer_login,
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
    grid-template-columns: 1fr !important;
    width: min(100%, 620px) !important;
    gap: 24px;
  }

  .woocommerce-account:not(.logged-in) .woocommerce #customer_login .u-column1.col-1,
  .woocommerce-account:not(.logged-in) .woocommerce #customer_login .u-column2.col-2,
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column1.col-1,
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set .u-column2.col-2 {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .entry-content.account-content {
    width: min(100%, 520px);
  }

  .woocommerce-account:not(.logged-in) .woocommerce #customer_login,
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
    width: min(100%, 520px) !important;
  }
}



/* Member profile: address section displayed inside 「會員資料」 */
.woocommerce-account.logged-in .sleep-member-profile-addresses {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(47, 77, 60, .12);
}

.woocommerce-account.logged-in .sleep-member-profile-addresses h3 {
  margin-bottom: 8px;
}

.woocommerce-account.logged-in .sleep-member-profile-note {
  margin-bottom: 18px;
  color: #718076;
}

.woocommerce-account.logged-in .sleep-member-profile-addresses .woocommerce-Addresses {
  margin-top: 18px;
}

.woocommerce-account.logged-in .sleep-member-profile-addresses .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.woocommerce-account.logged-in .sleep-member-profile-addresses .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 22px;
}

.woocommerce-account.logged-in .sleep-member-profile-addresses address {
  color: #52645b;
  font-style: normal;
  line-height: 1.8;
}

/* =========================================================
   10. Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .container {
    width: min(100% - 34px, 960px);
  }

  .main-navigation {
    position: fixed;
    inset: 82px 0 auto;
    max-height: 0;
    overflow: hidden;
    background: rgba(30, 42, 35, .94);
    border-top: 0;
    backdrop-filter: blur(16px);
    transition: max-height .3s ease;
  }

  body.menu-open .main-navigation {
    max-height: calc(100vh - 82px);
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .main-navigation ul {
    display: block;
    width: min(100% - 34px, 960px);
    margin-inline: auto;
    padding: 24px 0 34px;
  }

  .main-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .main-navigation a {
    display: flex;
    padding: 12px 0;
    font-size: 16px;
  }

  .main-navigation a::after {
    display: none;
  }

  .main-navigation .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 18px;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-navigation .sub-menu a {
    color: #fff;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 92px;
    right: 0;
    left: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    background: rgba(30, 42, 35, .92);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta,
  .nav-auth,
  .cart-toggle {
    justify-content: center;
    text-align: center;
  }

  .menu-btn {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefit-card {
    justify-self: start;
    max-width: 520px;
  }

  .process-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-item:nth-child(3)::after {
    display: none;
  }

  .partners-grid,
  .enterprise-grid,
  .guide-grid,
  .line-service-card {
    grid-template-columns: 1fr;
  }

  .hotel-cards,
  .shop-grid,
  .line-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hotel-card.feature {
    grid-column: span 2;
  }

  .promise-row {
    grid-template-columns: repeat(3, 1fr);
  }

  body.post-type-archive-product ul.products,
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products.columns-4,
  body.woocommerce-shop ul.products.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  body.post-type-archive-product ul.products,
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products.columns-4,
  body.woocommerce-shop ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.post-type-archive-product ul.products li.product a img,
  body.woocommerce-shop ul.products li.product a img {
    height: 190px !important;
  }

}

@media (max-width: 760px) {
  .site-header .container {
    width: min(100% - 22px, 420px);
  }

  .header-inner {
    min-height: 70px;
    gap: 8px;
  }

  .site-branding {
    min-width: 0;
    flex: 1 1 auto;
    transform: translateX(-10px);
  }

  .brand-link {
    gap: 8px;
    min-width: 0;
  }

  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 19px;
  }

  .brand-name {
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: .06em;
    white-space: nowrap;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .site-header .account-link {
    height: 38px;
    min-width: auto;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-header .cart-link {
    width: 42px;
    min-width: 42px;
    height: 38px;
  }

  .site-header .cart-link::before {
    width: 20px;
    height: 20px;
  }

  .menu-toggle {
    width: 34px;
    height: 38px;
    flex: 0 0 34px;
  }

  .menu-toggle::before {
    width: 24px;
    height: 18px;
    background:
      linear-gradient(#fff, #fff) top center / 24px 1.8px no-repeat,
      linear-gradient(#fff, #fff) center center / 24px 1.8px no-repeat,
      linear-gradient(#fff, #fff) bottom center / 24px 1.8px no-repeat;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 60px 0 18px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions,
  .line-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .benefit-card {
    padding: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .line-feature-grid {
    grid-template-columns: 1fr;
  }

  /* 首頁手機版：體驗方案商品改為一排兩個，呈現方式接近音樂試聽 */
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .shop .product-body,
  .woo-home-products .product-body {
    padding: 14px;
  }

  .shop .product-tag,
  .woo-home-products .product-tag {
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .shop .product-title,
  .woo-home-products .product-title {
    min-height: 44px;
    font-size: 15px;
    line-height: 1.45;
  }

  .shop .product-text,
  .woo-home-products .product-text {
    min-height: 40px;
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .shop .product-footer,
  .woo-home-products .product-footer {
    min-height: 78px;
    gap: 8px;
  }

  .shop .product-price,
  .woo-home-products .product-price {
    font-size: 15px;
  }

  .shop .product-add,
  .woo-home-products .product-add {
    min-width: 84px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .hotel-cards,
  .palette,
  .font-row,
  .promise-row {
    grid-template-columns: 1fr 1fr;
  }


  .partners-grid {
    gap: 26px;
  }

  .enterprise-photo {
    height: 220px;
  }

  .guide-card {
    border-right: 0;
  }

  .line-service-card {
    padding: 24px;
  }

  .line-float {
    right: 16px;
    bottom: 16px;
    min-width: 78px;
    min-height: 64px;
    border-radius: 18px;
  }

  .page-hero {
    padding: 90px 0 44px;
  }

  .page-hero-inner {
    gap: 10px;
    transform: translateY(10px);
  }

  .page-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: .14em;
  }

  .content-area {
    padding: 55px 0 80px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }
}


@media (max-width: 760px) {
  .product-image {
    aspect-ratio: 16 / 10;
  }

  .product-body {
    padding: 16px;
  }

  .product-footer {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 640px) {
  body.post-type-archive-product .content-area,
  body.woocommerce-shop .content-area {
    padding-top: 36px;
    padding-bottom: 80px;
  }

  body.post-type-archive-product .content-area > .container,
  body.woocommerce-shop .content-area > .container {
    width: min(100% - 34px, 520px);
    max-width: 520px;
  }

  body.post-type-archive-product .woocommerce-ordering,
  body.woocommerce-shop .woocommerce-ordering {
    width: 100%;
    margin: 0 0 24px;
  }

  body.post-type-archive-product .woocommerce-ordering select,
  body.woocommerce-shop .woocommerce-ordering select {
    width: 100%;
  }

  /* 體驗方案頁手機版：商品一排兩個 */
  body.post-type-archive-product ul.products,
  body.woocommerce-shop ul.products,
  body.woocommerce-page.archive ul.products,
  body.post-type-archive-product ul.products.columns-4,
  body.woocommerce-shop ul.products.columns-4,
  body.woocommerce-page.archive ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.post-type-archive-product ul.products li.product a img,
  body.woocommerce-shop ul.products li.product a img,
  body.woocommerce-page.archive ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f8f7f2;
  }

  body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
  body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
  body.woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 12px 4px !important;
    font-size: 15px !important;
    line-height: 1.35;
  }

  body.post-type-archive-product ul.products li.product .price,
  body.woocommerce-shop ul.products li.product .price,
  body.woocommerce-page.archive ul.products li.product .price {
    padding: 0 12px 10px !important;
    font-size: 14px;
  }

  body.post-type-archive-product ul.products li.product .button,
  body.woocommerce-shop ul.products li.product .button,
  body.woocommerce-page.archive ul.products li.product .button {
    margin: 0 12px 16px !important;
    padding: 9px 14px !important;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 26px, 420px);
  }

  section {
    padding: 36px 0;
  }

  .section-head {
    display: block;
  }

  .section-head .text-link {
    display: inline-block;
    margin-top: 12px;
  }


  .hotel-cards,
  .palette,
  .font-row,
  .promise-row {
    grid-template-columns: 1fr;
  }

  .hotel-card.feature {
    grid-column: auto;
  }

  .site-header .brand-mark,
  .site-footer .brand-mark {
    width: 38px;
    height: 38px;
  }

  .icon-link {
    min-width: 38px;
    height: 38px;
    padding-inline: 10px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

}

@media (max-width: 390px) {
  .site-header .container {
    width: min(100% - 18px, 390px);
  }

  .header-inner {
    gap: 6px;
  }

  .site-header .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 17px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: .04em;
  }

  .site-header .account-link {
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .site-header .cart-link {
    width: 38px;
    min-width: 38px;
    height: 36px;
  }

  .menu-toggle {
    width: 30px;
    height: 36px;
    flex-basis: 30px;
  }

  .menu-toggle::before {
    width: 22px;
    height: 16px;
    background:
      linear-gradient(#fff, #fff) top center / 22px 1.8px no-repeat,
      linear-gradient(#fff, #fff) center center / 22px 1.8px no-repeat,
      linear-gradient(#fff, #fff) bottom center / 22px 1.8px no-repeat;
  }
}

/* =========================================================
   12. Member center sleep record
   會員中心：睡眠檢測紀錄
   ========================================================= */
.sleep-member-report-panel {
  width: 100%;
}

.sleep-member-report-loading,
.sleep-member-report-empty,
.sleep-member-report-card {
  padding: 42px;
  background: #fbfaf6;
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 22px;
}

.sleep-member-report-eyebrow {
  margin: 0 0 8px;
  color: #6b8f7a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.sleep-member-report-card h2,
.sleep-member-report-empty h2,
.sleep-member-report-loading h2 {
  margin: 0 0 14px;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.25;
}

.sleep-member-report-lead,
.sleep-member-report-empty p,
.sleep-member-report-loading p {
  color: #667970;
}

.sleep-member-report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.sleep-member-report-date {
  color: #718076;
  font-size: 14px;
  white-space: nowrap;
}

.sleep-member-report-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .12);
  border-radius: 18px;
}

.sleep-member-report-score {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  color: #2f4d3c;
}

.sleep-member-report-score strong {
  font-size: clamp(64px, 8vw, 96px);
  line-height: .85;
}

.sleep-member-report-score span {
  margin-bottom: 8px;
  font-weight: 700;
}

.sleep-member-report-result h3 {
  margin: 0 0 10px;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
}

.sleep-member-report-summary {
  margin: 0;
  color: #25322b;
  line-height: 1.8;
}

.sleep-member-report-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.sleep-member-report-type {
  padding: 24px;
  background: #f2eee5;
  border-left: 5px solid #c9b07c;
  border-radius: 16px;
}

.sleep-member-report-type span {
  display: block;
  margin-bottom: 8px;
  color: #667970;
  font-size: 14px;
}

.sleep-member-report-type strong {
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 26px;
}

.sleep-member-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.sleep-member-report-metric {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .12);
  border-radius: 16px;
}

.sleep-member-report-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #667970;
  font-size: 14px;
}

.sleep-member-report-metric-head strong {
  color: #2f4d3c;
}

.sleep-member-report-bar {
  height: 8px;
  overflow: hidden;
  background: #ede8dc;
  border-radius: 999px;
}

.sleep-member-report-bar span {
  display: block;
  height: 100%;
  background: #2f4d3c;
  border-radius: inherit;
}

.sleep-member-report-actions {
  display: flex;
  justify-content: flex-start;
}

.sleep-member-report-actions .button,
.sleep-member-report-empty .button,
.sleep-member-report-loading .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: #fff !important;
  background: #2f4d3c !important;
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .sleep-member-report-loading,
  .sleep-member-report-empty,
  .sleep-member-report-card {
    padding: 26px 20px;
  }

  .sleep-member-report-card-head,
  .sleep-member-report-result {
    display: block;
  }

  .sleep-member-report-date {
    margin-top: 10px;
    white-space: normal;
  }

  .sleep-member-report-result > div + div {
    margin-top: 18px;
  }

  .sleep-member-report-types,
  .sleep-member-report-metrics {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Homepage partner hotels: CPT UI + ACF dynamic cards
   首頁合作飯店：改由後台「合作飯店」自動帶入，首頁只顯示 2 間
   ========================================================= */
.hotel-cards.hotel-cards-dynamic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hotel-cards.hotel-cards-dynamic .hotel-card {
  display: flex;
  min-height: 292px;
  overflow: hidden;
}

.hotel-cards.hotel-cards-dynamic .hotel-card-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
}

.hotel-cards.hotel-cards-dynamic .hotel-image {
  min-height: 174px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hotel-cards.hotel-cards-dynamic .hotel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 18px 20px;
}

.hotel-cards.hotel-cards-dynamic .hotel-name {
  min-height: auto;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.45;
}

.hotel-cards.hotel-cards-dynamic .hotel-tagline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hotel-cards.hotel-cards-dynamic .hotel-location {
  margin-top: auto;
  padding-top: 12px;
}

.hotel-empty-state {
  padding: 26px;
  color: var(--muted);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(47, 77, 60, .12);
  border-radius: 18px;
}

.hotel-empty-state h3 {
  margin-bottom: 6px;
  color: var(--deep);
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
}

@media (max-width: 760px) {
  .hotel-cards.hotel-cards-dynamic {
    grid-template-columns: 1fr;
  }

  .hotel-cards.hotel-cards-dynamic .hotel-image {
    min-height: 210px;
  }
}

/* =========================================================
   Mobile two-column layout update
   手機版：流程 / 測驗項目 / 企業方案維持一排兩個，
   頁尾「探索」與「聯絡我們」左右並排。
   ========================================================= */
@media (max-width: 760px) {
  .process-row,
  .test-items,
  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px;
  }

  .process-item,
  .test-item,
  .service {
    text-align: center;
  }

  .process-item::after,
  .process-item:not(:last-child)::after {
    display: none !important;
  }

  .process-icon,
  .test-icon,
  .service-icon {
    width: 68px;
    height: 68px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-title,
  .service-title {
    font-size: 17px;
  }

  .process-text,
  .service-text {
    font-size: 13px;
    line-height: 1.7;
  }

  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 22px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .site-footer .footer-column {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .process-row,
  .test-items,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 12px;
  }

  .process-icon,
  .test-icon,
  .service-icon {
    width: 62px;
    height: 62px;
  }

  .process-title,
  .service-title {
    font-size: 16px;
  }

  .process-text,
  .service-text {
    font-size: 12px;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 18px;
  }

  .site-footer .footer-column h2 {
    font-size: 16px;
  }

  .site-footer .footer-column a {
    font-size: 15px;
  }
}

/* =========================================================
   Mobile article image aspect-ratio fix
   手機版文章圖片保持原始比例，避免寬度縮小後高度仍沿用桌機尺寸。
   ========================================================= */
@media (max-width: 760px) {
  body.single-post .entry-content img,
  body.single-post .entry-content .wp-block-image img,
  body.single-post .entry-content img[class*="wp-image-"],
  body.single-post .entry-content .wp-post-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.single-post .entry-content figure,
  body.single-post .entry-content .wp-block-image {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* =========================================================
   12. Music preview library
   音樂試聽列表、單曲頁面與原生音訊播放器
   ========================================================= */
.sleep-music-intro {
  width: min(100%, 760px);
  margin: 0 auto 42px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
}

.sleep-music-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sleep-music-grid.sleep-music-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sleep-music-grid.sleep-music-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sleep-music-grid.sleep-music-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sleep-music-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(30, 42, 35, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sleep-music-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(30, 42, 35, .13);
}

.sleep-music-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #dfe9e1, #c7d8cc);
}

.sleep-music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.sleep-music-card:hover .sleep-music-cover img {
  transform: scale(1.035);
}

.sleep-music-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(47, 77, 60, .64);
  font-family: Georgia, serif;
  font-size: clamp(58px, 9vw, 94px);
}

.sleep-music-card-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
}

.sleep-music-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sleep-music-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 11px;
  color: var(--forest);
  background: rgba(107, 143, 122, .12);
  border: 1px solid rgba(107, 143, 122, .16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.sleep-music-duration {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sleep-music-card-title {
  margin: 0 0 10px;
  color: var(--deep);
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  line-height: 1.45;
}

.sleep-music-card-title a:hover {
  color: var(--mist);
}

.sleep-music-card-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.sleep-music-audio {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: auto;
  accent-color: var(--forest);
}

.sleep-music-unavailable {
  margin-top: auto;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
}

.sleep-music-empty {
  padding: 44px 28px;
  color: var(--muted);
  background: rgba(247, 244, 237, .72);
  border: 1px solid rgba(47, 77, 60, .12);
  border-radius: 22px;
  text-align: center;
}

.sleep-music-empty h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-family: "Noto Serif TC", serif;
  font-size: 25px;
}

.sleep-music-single {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  width: min(100%, 1040px);
  margin-inline: auto;
}

.sleep-music-single-cover {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #dfe9e1, #c7d8cc);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(30, 42, 35, .16);
}

.sleep-music-single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sleep-music-single-panel {
  min-width: 0;
}

.sleep-music-single-panel .sleep-music-badge {
  margin-bottom: 16px;
}

.sleep-music-single-summary {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.sleep-music-single-player {
  height: 54px;
  margin: 0 0 14px;
}

.sleep-music-preview-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.sleep-music-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  color: #fff;
  background: var(--forest);
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.sleep-music-cta:hover {
  color: #fff;
  background: var(--deep);
  transform: translateY(-2px);
}

.sleep-music-single-content {
  width: min(100%, 860px);
  margin: 64px auto 0;
  padding-top: 52px;
  border-top: 1px solid rgba(47, 77, 60, .14);
}

.sleep-music-back {
  width: min(100%, 1040px);
  margin: 48px auto 0;
  text-align: center;
}

.sleep-music-back a {
  color: var(--forest);
  font-weight: 700;
}

@media (max-width: 1020px) {
  .sleep-music-grid.sleep-music-columns-4,
  .sleep-music-grid.sleep-music-columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sleep-music-grid,
  .sleep-music-grid.sleep-music-columns-2,
  .sleep-music-grid.sleep-music-columns-3,
  .sleep-music-grid.sleep-music-columns-4,
  .sleep-music-grid.sleep-music-columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .sleep-music-card-body {
    padding: 16px;
  }

  .sleep-music-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .sleep-music-card-title {
    font-size: 18px;
  }

  .sleep-music-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .sleep-music-audio {
    height: 44px;
  }

  .sleep-music-single {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sleep-music-single-cover {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .sleep-music-single-panel {
    text-align: center;
  }

  .sleep-music-single-panel .sleep-music-badge {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sleep-music-grid,
  .sleep-music-grid.sleep-music-columns-2,
  .sleep-music-grid.sleep-music-columns-3,
  .sleep-music-grid.sleep-music-columns-4,
  .sleep-music-grid.sleep-music-columns-5 {
    grid-template-columns: 1fr;
  }

  .sleep-music-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
  }

  .sleep-music-cover {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
  }

  .sleep-music-card-body {
    padding: 15px;
  }

  .sleep-music-card-description {
    -webkit-line-clamp: 2;
  }

  .sleep-music-audio {
    min-width: 0;
  }
}



/* =========================================================
   13. Homepage music preview
   首頁以最新音樂試聽取代原企業方案區塊
   ========================================================= */
.home-music-preview {
  border-top: 1px solid rgba(30, 42, 35, .08);
  border-bottom: 1px solid rgba(30, 42, 35, .08);
  background:
    radial-gradient(circle at 90% 10%, rgba(107, 143, 122, .13), transparent 32%),
    linear-gradient(180deg, rgba(247, 244, 237, .45), rgba(231, 226, 214, .32));
}

.home-music-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.home-music-heading .section-title,
.home-music-heading .section-subtitle {
  margin-bottom: 0;
}

.home-music-heading .section-subtitle {
  margin-top: 10px;
}

.home-music-all-link {
  flex: 0 0 auto;
  margin-bottom: 4px;
  color: var(--forest);
  font-weight: 700;
  white-space: nowrap;
}

.home-music-list .sleep-music-grid,
.home-music-list .sleep-music-grid.sleep-music-columns-2,
.home-music-list .sleep-music-grid.sleep-music-columns-3,
.home-music-list .sleep-music-grid.sleep-music-columns-4,
.home-music-list .sleep-music-grid.sleep-music-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: start;
  gap: 18px;
}

.home-music-list .sleep-music-card {
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(30, 42, 35, .08);
}

.home-music-list .sleep-music-cover {
  aspect-ratio: 1 / 1;
}

.home-music-list .sleep-music-card-body {
  padding: 18px 18px 20px;
}

.home-music-list .sleep-music-card-title {
  font-size: 18px;
}

.home-music-list .sleep-music-card-description {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.home-music-list .sleep-music-audio {
  height: 42px;
}

.home-music-list .sleep-music-empty {
  background: rgba(255, 255, 255, .66);
}

@media (max-width: 980px) {
  .home-music-list .sleep-music-grid,
  .home-music-list .sleep-music-grid.sleep-music-columns-2,
  .home-music-list .sleep-music-grid.sleep-music-columns-3,
  .home-music-list .sleep-music-grid.sleep-music-columns-4,
.home-music-list .sleep-music-grid.sleep-music-columns-5 {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}

@media (max-width: 760px) {
  .home-music-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
  }

  .home-music-all-link {
    margin-bottom: 0;
  }

  .home-music-list .sleep-music-grid,
  .home-music-list .sleep-music-grid.sleep-music-columns-2,
  .home-music-list .sleep-music-grid.sleep-music-columns-3,
  .home-music-list .sleep-music-grid.sleep-music-columns-4,
.home-music-list .sleep-music-grid.sleep-music-columns-5 {
    grid-template-columns: repeat(2, minmax(0, min(100%, 240px)));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .home-music-list .sleep-music-grid,
  .home-music-list .sleep-music-grid.sleep-music-columns-2,
  .home-music-list .sleep-music-grid.sleep-music-columns-3,
  .home-music-list .sleep-music-grid.sleep-music-columns-4,
.home-music-list .sleep-music-grid.sleep-music-columns-5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-music-list .sleep-music-card {
    display: flex;
  }

  .home-music-list .sleep-music-cover {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

/* =========================================================
   Header PNG logo replacement
   使用 assets/images/Logo_final-01.png 取代原本文字 Logo
   ========================================================= */
.site-header .brand-link-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.site-header .site-logo-img {
  display: block;
  width: auto;
  height: 200px;
  max-width: 280px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .site-header .site-logo-img {
    height: 120px;
    max-width: 230px;
  }
}

@media (max-width: 420px) {
  .site-header .site-logo-img {
    height: 80px;
    max-width: 160px;
  }
}

/* =========================================================
   Product image square ratio + homepage price/button layout
   首頁體驗方案與 WooCommerce 商品列表圖統一為 1:1；
   只調首頁體驗方案的價格/加入購物車垂直排列。
   ========================================================= */

/* 首頁體驗方案：商品圖改為 1:1，並在卡片視窗內完整等比例縮放 */
.shop .product-image,
.woo-home-products .product-image {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f7f2 !important;
  background-size: cover !important;
  background-position: center center !important;
}

.shop .product-image img,
.woo-home-products .product-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  background: #f8f7f2 !important;
}

/* 體驗方案頁 / 商品列表頁：
   商品視窗維持 1:1；實際圖片來源改由 functions.php 取「原始未裁切圖片」，
   再用 contain 等比例完整縮放進視窗，避免 WooCommerce 正方形縮圖先被裁切。 */
body.post-type-archive-product ul.products li.product a img,
body.woocommerce-shop ul.products li.product a img,
body.woocommerce-page.archive ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f8f7f2;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* 只調首頁體驗方案：價格在上、加入購物車在下 */
.shop .product-body,
.woo-home-products .product-body {
  display: flex;
  flex-direction: column;
}

.shop .product-footer,
.woo-home-products .product-footer {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  min-height: 86px;
}

.shop .product-price,
.woo-home-products .product-price {
  display: block;
  width: 100%;
  line-height: 1.25;
}

.shop .product-add,
.woo-home-products .product-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 96px;
  align-self: flex-start;
  white-space: nowrap;
}


/* =========================================================
   Single product page header spacing fix
   只調整 WooCommerce 商品內頁：讓 Header 回到正常佔位，避免蓋住商品圖片與標題。
   ========================================================= */
body.single-product .site-header {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  background:
  linear-gradient(90deg, rgba(18, 35, 28, .88) 0%, rgba(18, 35, 28, .62) 45%, rgba(18, 35, 28, .26) 100%),
  linear-gradient(180deg, rgba(18, 35, 28, .3), rgba(18, 35, 28, .6)),
  url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=80") center / cover !important;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 36px rgba(18, 35, 28, .12);
  backdrop-filter: none;
}

body.admin-bar.single-product .site-header {
  top: auto !important;
}

body.single-product .content-area {
  background: #fbfaf6;
  padding-top: 48px !important;
  padding-right: 0;
  padding-bottom: 110px;
  padding-left: 0;
}

@media (max-width: 760px) {
  body.single-product .content-area {
    padding-top: 36px !important;
    padding-bottom: 80px;
  }
}

/* =========================================================
   Single product tabs: description / reviews polished layout
   只調整 WooCommerce 商品內頁下方「描述 / 評價」區塊
   ========================================================= */
body.single-product .woocommerce-tabs {
  margin-top: 56px !important;
  overflow: hidden !important;
  padding: 0;
  border: 1px solid rgba(47, 77, 60, .16) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .06) !important;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 28px !important;
  list-style: none !important;
  background: #f7f4ed !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(47, 77, 60, .14) !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  color: #1e2a23 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #2f4d3c !important;
  box-shadow: inset 0 -3px 0 #c9b07c !important;
}

/* 描述 / 評價內容面板 */
body.single-product .woocommerce-tabs .panel,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .woocommerce-Tabs-panel {
  margin: 0 !important;
  padding: 38px 36px 44px !important;
  color: #4f5f56 !important;
  background: #fff !important;
  overflow: visible !important;
  line-height: 1.9 !important;
}

body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Reviews-title,
body.single-product #reply-title {
  display: block !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  color: #123026 !important;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: .04em !important;
  overflow: visible !important;
}

body.single-product .woocommerce-tabs .panel p,
body.single-product .woocommerce-Tabs-panel p {
  margin: 0 0 14px !important;
  color: #4f5f56 !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
}

body.single-product .woocommerce-tabs .panel p:last-child,
body.single-product .woocommerce-Tabs-panel p:last-child {
  margin-bottom: 0 !important;
}

/* 評價列表 */
body.single-product #reviews {
  display: grid !important;
  gap: 28px !important;
}

body.single-product #reviews #comments {
  padding: 0 !important;
}

body.single-product #reviews ol.commentlist {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.single-product #reviews ol.commentlist li {
  margin: 0 0 18px !important;
  padding: 22px !important;
  border: 1px solid rgba(47, 77, 60, .14) !important;
  border-radius: 18px !important;
  background: #fbfaf6 !important;
}

body.single-product #reviews .comment-text {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.single-product #reviews .meta {
  margin-bottom: 8px !important;
  color: #4f5f56 !important;
  font-size: 14px !important;
}

body.single-product #reviews .description {
  color: #25322b !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* 評價表單 */
body.single-product #review_form_wrapper {
  margin-top: 8px !important;
  padding: 28px !important;
  border: 1px solid rgba(47, 77, 60, .14) !important;
  border-radius: 20px !important;
  background: #fbfaf6 !important;
}

body.single-product #review_form {
  margin: 0 !important;
}

body.single-product #review_form .comment-form {
  display: grid !important;
  gap: 16px !important;
}

body.single-product #review_form label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #123026 !important;
  font-weight: 700 !important;
}

body.single-product #review_form input[type="text"],
body.single-product #review_form input[type="email"],
body.single-product #review_form textarea {
  width: 100% !important;
  padding: 13px 15px !important;
  color: #25322b !important;
  background: #fff !important;
  border: 1px solid rgba(47, 77, 60, .18) !important;
  border-radius: 12px !important;
}

body.single-product #review_form textarea {
  min-height: 140px !important;
  resize: vertical;
}

body.single-product #review_form .form-submit {
  margin-top: 6px !important;
}

body.single-product #review_form .submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 24px !important;
  color: #fff !important;
  background: #2f4d3c !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* 評價星等 */
body.single-product .woocommerce p.stars a,
body.single-product .star-rating,
body.single-product .star-rating::before {
  color: #c9b07c !important;
}

@media (max-width: 760px) {
  body.single-product .woocommerce-tabs {
    margin-top: 36px !important;
    border-radius: 18px !important;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    padding: 0 16px !important;
    overflow-x: auto !important;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    min-height: 52px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }

  body.single-product .woocommerce-tabs .panel,
  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
  body.single-product .woocommerce-Tabs-panel {
    padding: 30px 22px 34px !important;
  }

  body.single-product #review_form_wrapper {
    padding: 22px 18px !important;
  }
}


/* =========================================================
   14. Homepage activity information
   ========================================================= */
.home-activities {
  background: #fff;
}

.home-activity-grid {
  align-items: stretch;
}

.home-activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-activity-card .post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-activity-card .post-card-body > p:last-child {
  margin-top: auto;
}

.home-activity-date {
  margin-bottom: 10px !important;
  color: var(--mist) !important;
  font-size: 12px !important;
  letter-spacing: .12em;
}

.home-activity-empty {
  padding: 28px;
  border: 1px solid var(--wp-border);
  border-radius: 18px;
  background: #fbfaf6;
}

/* =========================================================
   15. 體驗方案：商品內頁參考電商版型
   IMPORTANT: Only body.sleep-experience-product is affected.
   Other pages and non-experience products keep the original theme styles.
   ========================================================= */
body.single-product.sleep-experience-product .content-area {
  background: #fff;
  padding: 132px 0 96px;
}

body.single-product.sleep-experience-product .content-area > .container {
  width: min(1240px, calc(100% - 56px));
  max-width: 1240px;
}

body.single-product.sleep-experience-product .sleep-product-main {
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

/* 左側商品圖片 */
body.single-product.sleep-experience-product .sleep-product-gallery {
  min-width: 0;
}

body.single-product.sleep-experience-product .woocommerce-product-gallery__wrapper {
  margin: 0;
  background: #fff;
}

body.single-product.sleep-experience-product .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 12px;
  background: #fff;
}

body.single-product.sleep-experience-product div.product div.images img,
body.single-product.sleep-experience-product .woocommerce-product-gallery img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs {
  display: flex;
  gap: 18px;
  margin: 28px 0 0 !important;
  padding: 0;
  list-style: none;
}

body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs li {
  float: none !important;
  width: 72px !important;
  height: 72px;
  margin: 0 !important;
}

body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs img {
  width: 72px !important;
  height: 72px !important;
  padding: 5px;
  object-fit: contain !important;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 0 !important;
  box-shadow: none;
  opacity: 1 !important;
  cursor: pointer;
}

body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs img.flex-active {
  border-color: #666;
  box-shadow: inset 0 0 0 1px #666;
}

body.single-product.sleep-experience-product span.onsale {
  top: 10px !important;
  left: 10px !important;
  min-width: auto;
  min-height: auto;
  padding: 5px 10px;
  color: #e64b4b;
  background: #fff0f0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

/* 右側商品資訊 */
body.single-product.sleep-experience-product div.product div.summary,
body.single-product.sleep-experience-product .summary.entry-summary.sleep-product-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.single-product.sleep-experience-product div.product .product_title {
  margin: 0 0 18px;
  color: #161616;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
}

body.single-product.sleep-experience-product div.product p.price,
body.single-product.sleep-experience-product div.product span.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  color: #ff5158;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
}

body.single-product.sleep-experience-product div.product p.price del,
body.single-product.sleep-experience-product div.product span.price del {
  order: -1;
  width: 100%;
  color: #a1a1a1;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
}

body.single-product.sleep-experience-product div.product p.price ins,
body.single-product.sleep-experience-product div.product span.price ins {
  color: #ff5158;
  text-decoration: none;
}

body.single-product.sleep-experience-product .woocommerce-product-details__short-description {
  margin: 16px 0 20px;
  color: #565656;
  font-size: 15px;
  line-height: 1.8;
}

body.single-product.sleep-experience-product .sleep-product-sales-meta {
  display: flex;
  justify-content: flex-end;
  margin: -3px 0 42px;
  color: #777;
  font-size: 13px;
}

/* 商品規格：按鈕式選擇 */
body.single-product.sleep-experience-product .sleep-product-spec-selectors {
  grid-column: 1 / -1;
  order: 1;
  width: 100%;
  margin: 0 0 20px;
}

body.single-product.sleep-experience-product .sleep-product-spec-group {
  width: 100%;
  margin: 0 0 16px;
}

body.single-product.sleep-experience-product .sleep-product-spec-group:last-child {
  margin-bottom: 0;
}

body.single-product.sleep-experience-product .sleep-scent-selector__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
}

body.single-product.sleep-experience-product .sleep-scent-selector__title {
  color: #222;
  font-size: 14px;
  font-weight: 500;
}

body.single-product.sleep-experience-product .sleep-scent-selector__hint {
  color: #888;
  font-size: 12px;
  font-weight: 400;
}

body.single-product.sleep-experience-product .sleep-scent-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 164px;
  padding: 1px 8px 1px 1px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #8a8a8a transparent;
}

body.single-product.sleep-experience-product .sleep-scent-options::-webkit-scrollbar {
  width: 6px;
}

body.single-product.sleep-experience-product .sleep-scent-options::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 999px;
}

body.single-product.sleep-experience-product .sleep-scent-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

body.single-product.sleep-experience-product .sleep-scent-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.single-product.sleep-experience-product .sleep-scent-option__box {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 11px;
  color: #555;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.single-product.sleep-experience-product .sleep-scent-option__icon {
  display: inline-flex;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  color: #2f4d3c;
  background: #f2f6f3;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

body.single-product.sleep-experience-product .sleep-scent-option__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.4;
}

body.single-product.sleep-experience-product .sleep-scent-option:hover .sleep-scent-option__box {
  border-color: #9cab9f;
  background: #fbfdfb;
}

body.single-product.sleep-experience-product .sleep-scent-option input:checked + .sleep-scent-option__box {
  color: #18382a;
  background: #f2f7f4;
  border-color: #2f4d3c;
  box-shadow: inset 0 0 0 1px #2f4d3c;
}

body.single-product.sleep-experience-product .sleep-scent-option input:focus-visible + .sleep-scent-option__box {
  outline: 2px solid #2f4d3c;
  outline-offset: 2px;
}


body.single-product.sleep-experience-product .sleep-scent-option__stock {
  flex: 0 0 auto;
  margin-left: auto;
  color: #999;
  font-size: 11px;
}

body.single-product.sleep-experience-product .sleep-scent-option.is-sold-out {
  cursor: not-allowed;
  opacity: .55;
}

body.single-product.sleep-experience-product .sleep-scent-option.is-sold-out .sleep-scent-option__box {
  background: #f7f7f7;
  border-color: #e3e3e3;
}

/* 數量與購買按鈕 */
body.single-product.sleep-experience-product form.cart:not(.variations_form) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 20px;
}

body.single-product.sleep-experience-product form.cart:not(.variations_form)::before,
body.single-product.sleep-experience-product form.variations_form .woocommerce-variation-add-to-cart::before {
  content: "數量";
  grid-column: 1 / -1;
  order: 2;
  display: block;
  margin-bottom: -2px;
  color: #222;
  font-size: 14px;
  font-weight: 500;
}

body.single-product.sleep-experience-product form.cart .quantity {
  order: 3;
  display: inline-grid !important;
  grid-template-columns: 44px minmax(80px, 114px) 44px;
  width: max-content;
  margin: 0 !important;
  border: 1px solid #dadada;
  border-radius: 4px;
  overflow: hidden;
}

body.single-product.sleep-experience-product form.cart:not(.variations_form) .quantity {
  grid-column: 1 / -1;
}

body.single-product.sleep-experience-product .quantity .qty {
  width: 114px;
  height: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: #111;
  background: #fff;
  border: 0;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-radius: 0;
  outline: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  appearance: textfield;
  -moz-appearance: textfield;
}

body.single-product.sleep-experience-product .quantity .qty::-webkit-outer-spin-button,
body.single-product.sleep-experience-product .quantity .qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.single-product.sleep-experience-product .sleep-qty-button {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #2f4d3c;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 21px;
  font-weight: 400;
  line-height: 44px;
  text-align: center;
}

body.single-product.sleep-experience-product .sleep-qty-minus {
  color: #bdbdbd;
}

body.single-product.sleep-experience-product .sleep-qty-button:hover {
  background: #fafafa;
}

body.single-product.sleep-experience-product .single_add_to_cart_button,
body.single-product.sleep-experience-product .sleep-buy-now-button {
  order: 4;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 18px !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: .01em;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.single-product.sleep-experience-product .single_add_to_cart_button {
  color: #2f4d3c !important;
  background: #fff !important;
  border: 1px solid #2f4d3c !important;
}

body.single-product.sleep-experience-product .single_add_to_cart_button:hover {
  color: #e94249 !important;
  background: #fff7f7 !important;
}

body.single-product.sleep-experience-product .sleep-buy-now-button {
  color: #fff !important;
  background: #2f4d3c !important;
  border: 1px solid #2f4d3c !important;
}

body.single-product.sleep-experience-product .sleep-buy-now-button:hover {
  background: #e94249 !important;
  border-color: #e94249 !important;
}

body.single-product.sleep-experience-product form.variations_form {
  display: block;
}

body.single-product.sleep-experience-product form.variations_form .variations {
  width: 100%;
  margin-bottom: 18px;
}

body.single-product.sleep-experience-product form.variations_form .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

body.single-product.sleep-experience-product form.variations_form .woocommerce-variation-add-to-cart .quantity {
  grid-column: 1 / -1;
}

body.single-product.sleep-experience-product .product_meta {
  margin-top: 28px;
  padding-top: 18px;
  color: #777;
  border-top: 1px solid #ececec;
  font-size: 13px;
  line-height: 1.75;
}

body.single-product.sleep-experience-product .product_meta > span {
  margin: 4px 0;
}

body.single-product.sleep-experience-product .product_meta a {
  color: #666;
  text-decoration: none;
}

@media (max-width: 1024px) {
  body.single-product.sleep-experience-product .sleep-product-main {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  body.single-product.sleep-experience-product .woocommerce-product-gallery__image a,
  body.single-product.sleep-experience-product div.product div.images img,
  body.single-product.sleep-experience-product .woocommerce-product-gallery img {
    height: 420px;
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  body.single-product.sleep-experience-product .content-area {
    padding: 98px 0 70px;
  }

  body.single-product.sleep-experience-product .content-area > .container {
    width: min(100% - 32px, 560px);
  }

  body.single-product.sleep-experience-product .sleep-product-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.single-product.sleep-experience-product .woocommerce-product-gallery__image a,
  body.single-product.sleep-experience-product div.product div.images img,
  body.single-product.sleep-experience-product .woocommerce-product-gallery img {
    height: 360px;
    min-height: 360px;
  }

  body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs {
    gap: 12px;
    margin-top: 18px !important;
  }

  body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs li,
  body.single-product.sleep-experience-product div.product div.images .flex-control-thumbs img {
    width: 62px !important;
    height: 62px !important;
  }

  body.single-product.sleep-experience-product .summary.entry-summary.sleep-product-summary {
    padding-top: 0;
  }

  body.single-product.sleep-experience-product div.product .product_title {
    font-size: 21px;
  }

  body.single-product.sleep-experience-product .sleep-product-sales-meta {
    margin-bottom: 30px;
  }

  body.single-product.sleep-experience-product form.cart:not(.variations_form),
  body.single-product.sleep-experience-product form.variations_form .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  body.single-product.sleep-experience-product .woocommerce-product-gallery__image a,
  body.single-product.sleep-experience-product div.product div.images img,
  body.single-product.sleep-experience-product .woocommerce-product-gallery img {
    height: 310px;
    min-height: 310px;
  }

  body.single-product.sleep-experience-product form.cart:not(.variations_form),
  body.single-product.sleep-experience-product form.variations_form .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr;
  }

  body.single-product.sleep-experience-product .single_add_to_cart_button,
  body.single-product.sleep-experience-product .sleep-buy-now-button {
    grid-column: 1;
  }
}


/* =========================================================
   16. 購物車空白頁「新品到貨」商品卡美化
   參考「體驗方案」商品列表：4 欄卡片、1:1 圖片、圓角陰影、膠囊按鈕。
   同時相容 WooCommerce Empty Cart Block / Product Grid 與 classic cross-sells。
   ========================================================= */

/* 空購物車頁：推薦商品區整體寬度與標題 */
body.woocommerce-cart .entry-content {
  width: 100%;
  max-width: 1180px;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  width: 100%;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
  width: 100%;
  max-width: 1180px;
  margin: 54px auto 26px !important;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  text-align: left !important;
}

/* WooCommerce 舊版 Product Grid（目前空購物車「新品到貨」使用） */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  position: relative;
  display: flex !important;
  flex: none !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .08);
  text-align: left !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 77, 60, .24);
  box-shadow: 0 24px 58px rgba(30, 42, 35, .13);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product a,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image > a {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  transition: transform .35s ease;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.025);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 !important;
  padding: 18px 18px 6px !important;
  overflow: hidden;
  color: #123026 !important;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .03em;
  text-align: left !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
  min-height: 38px;
  margin: 0 !important;
  padding: 0 18px 14px !important;
  color: #2f4d3c !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.45;
  text-align: left !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price del {
  margin-right: 6px;
  color: #8a948e;
  font-size: .88em;
  font-weight: 500;
  opacity: .9;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price ins {
  color: #2f4d3c;
  text-decoration: none;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
  margin: auto 0 0 !important;
  padding: 0 18px 22px !important;
  text-align: left !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 112px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background: #2f4d3c !important;
  border: 1px solid #2f4d3c !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a:hover,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart button:hover {
  color: #fff !important;
  background: #426451 !important;
  border-color: #426451 !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-onsale {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  min-width: 48px;
  min-height: 28px;
  padding: 5px 9px !important;
  color: #2f4d3c !important;
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(47, 77, 60, .28) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* 新版 Product Collection / Product Template，避免 WooCommerce 更新後版型跑掉 */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-template,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100%;
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-template > li,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-template > li {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .08);
}

/* 非空購物車如果有 cross-sells，也沿用體驗方案卡片風格 */
body.woocommerce-cart .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

body.woocommerce-cart .cross-sells ul.products::before,
body.woocommerce-cart .cross-sells ul.products::after {
  display: none !important;
}

body.woocommerce-cart .cross-sells ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 77, 60, .14);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(30, 42, 35, .08);
}

body.woocommerce-cart .cross-sells ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #f8f7f2 !important;
}

body.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
  min-height: 66px;
  padding: 18px 18px 6px !important;
  color: #123026;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 17px !important;
  line-height: 1.45;
}

body.woocommerce-cart .cross-sells ul.products li.product .price {
  padding: 0 18px 14px !important;
  color: #2f4d3c !important;
  font-size: 15px;
  font-weight: 700;
}

body.woocommerce-cart .cross-sells ul.products li.product .button {
  margin: 0 18px 22px !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background: #2f4d3c !important;
  border-radius: 999px !important;
}

@media (max-width: 1100px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-template,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-template,
  body.woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (max-width: 900px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-template,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-template,
  body.woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 600px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
    margin-top: 42px !important;
    margin-bottom: 18px !important;
    font-size: 24px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-template,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-template,
  body.woocommerce-cart .cross-sells ul.products {
    gap: 14px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-template > li,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-template > li,
  body.woocommerce-cart .cross-sells ul.products li.product {
    border-radius: 16px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title,
  body.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
    min-height: 58px;
    padding: 13px 12px 5px !important;
    font-size: 14px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price,
  body.woocommerce-cart .cross-sells ul.products li.product .price {
    min-height: 34px;
    padding: 0 12px 10px !important;
    font-size: 13px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
    padding: 0 12px 14px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart button,
  body.woocommerce-cart .cross-sells ul.products li.product .button {
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart button {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.woocommerce-cart .cross-sells ul.products li.product .button {
    width: calc(100% - 24px) !important;
    margin: 0 12px 14px !important;
  }
}

/* =========================================================
   Experience product archive sale badge — strict 1:1 circle
   Only affects the "特價" badge on the WooCommerce product listing.
   ========================================================= */
body.woocommerce-shop ul.products li.product span.onsale,
body.post-type-archive-product ul.products li.product span.onsale,
body.woocommerce.archive ul.products li.product span.onsale {
  box-sizing: border-box !important;
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  color: #fff !important;
  background: #9aaa00 !important;
  border: 0 !important;
  border-radius: 50% !important;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-stretch: normal !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}


/* =========================================================
   Single product description images — square corners
   商品頁「描述」內容圖片恢復一般直角，不套用卡片圓角。
   ========================================================= */
body.single-product #tab-description img,
body.single-product .woocommerce-Tabs-panel--description img,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description .wp-block-image img {
  display: inline-block !important;
  max-width: 100% !important;
  height: auto !important;
  vertical-align: top !important;
  border-radius: 0 !important;
  clip-path: none !important;
}

/* =========================================================
   Single product description — honor editor alignment
   商品描述依 WordPress / WooCommerce 編輯器設定顯示左、中、右對齊。
   支援傳統編輯器 aligncenter / alignleft / alignright、
   Gutenberg has-text-align-*，以及編輯器產生的 inline text-align。
   ========================================================= */
body.single-product #tab-description .has-text-align-center,
body.single-product .woocommerce-Tabs-panel--description .has-text-align-center {
  text-align: center !important;
}

body.single-product #tab-description .has-text-align-left,
body.single-product .woocommerce-Tabs-panel--description .has-text-align-left {
  text-align: left !important;
}

body.single-product #tab-description .has-text-align-right,
body.single-product .woocommerce-Tabs-panel--description .has-text-align-right {
  text-align: right !important;
}

/* 傳統編輯器：圖片本身設定「置中」 */
body.single-product #tab-description img.aligncenter,
body.single-product #tab-description .aligncenter > img,
body.single-product .woocommerce-Tabs-panel--description img.aligncenter,
body.single-product .woocommerce-Tabs-panel--description .aligncenter > img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* figure / 圖片區塊設定「置中」 */
body.single-product #tab-description figure.aligncenter,
body.single-product #tab-description .wp-block-image.aligncenter,
body.single-product .woocommerce-Tabs-panel--description figure.aligncenter,
body.single-product .woocommerce-Tabs-panel--description .wp-block-image.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* 圖片區塊設定左 / 右對齊時也尊重後台設定 */
body.single-product #tab-description figure.alignleft,
body.single-product #tab-description .wp-block-image.alignleft,
body.single-product .woocommerce-Tabs-panel--description figure.alignleft,
body.single-product .woocommerce-Tabs-panel--description .wp-block-image.alignleft {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

body.single-product #tab-description figure.alignright,
body.single-product #tab-description .wp-block-image.alignright,
body.single-product .woocommerce-Tabs-panel--description figure.alignright,
body.single-product .woocommerce-Tabs-panel--description .wp-block-image.alignright {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

/* Classic editor 常會把置中寫在父層 p/div 的 style 屬性。若圖片是 block，
   單靠 text-align 不會移動，因此補上左右 auto margin。 */
body.single-product #tab-description p[style*="text-align: center"] > img,
body.single-product #tab-description p[style*="text-align:center"] > img,
body.single-product #tab-description div[style*="text-align: center"] > img,
body.single-product #tab-description div[style*="text-align:center"] > img,
body.single-product .woocommerce-Tabs-panel--description p[style*="text-align: center"] > img,
body.single-product .woocommerce-Tabs-panel--description p[style*="text-align:center"] > img,
body.single-product .woocommerce-Tabs-panel--description div[style*="text-align: center"] > img,
body.single-product .woocommerce-Tabs-panel--description div[style*="text-align:center"] > img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 置中設定可能加在圖片外層的 p / div / figure，圖片也可能再包一層連結。
   全站 img 預設為 display:block，會讓父層的 text-align:center 無法移動圖片；
   因此描述區圖片預設改成 inline-block，並針對所有常見置中標記補上完整支援。 */
body.single-product #tab-description [style*="text-align: center"],
body.single-product #tab-description [style*="text-align:center"],
body.single-product #tab-description [align="center"],
body.single-product .woocommerce-Tabs-panel--description [style*="text-align: center"],
body.single-product .woocommerce-Tabs-panel--description [style*="text-align:center"],
body.single-product .woocommerce-Tabs-panel--description [align="center"] {
  text-align: center !important;
}

body.single-product #tab-description .has-text-align-center img,
body.single-product #tab-description [style*="text-align: center"] img,
body.single-product #tab-description [style*="text-align:center"] img,
body.single-product #tab-description [align="center"] img,
body.single-product .woocommerce-Tabs-panel--description .has-text-align-center img,
body.single-product .woocommerce-Tabs-panel--description [style*="text-align: center"] img,
body.single-product .woocommerce-Tabs-panel--description [style*="text-align:center"] img,
body.single-product .woocommerce-Tabs-panel--description [align="center"] img {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 圖片本身若是 aligncenter，改回 block + auto margin，避免 inline-block 時 auto margin 失效。 */
body.single-product #tab-description img.aligncenter,
body.single-product .woocommerce-Tabs-panel--description img.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Gutenberg figure / wp-block-image 若有置中設定，讓其內圖片真正置中。 */
body.single-product #tab-description figure.aligncenter img,
body.single-product #tab-description .wp-block-image.aligncenter img,
body.single-product .woocommerce-Tabs-panel--description figure.aligncenter img,
body.single-product .woocommerce-Tabs-panel--description .wp-block-image.aligncenter img {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

