/*
Theme Name: TW Fulu Ritual
Theme URI: https://twfu.top/
Author: TW Fulu
Description: A restrained editorial theme for Taiwanese talisman culture and WooCommerce.
Version: 1.2.0
Text Domain: twfu-ritual
*/

:root {
  --ink: #151310;
  --ink-soft: #27231d;
  --paper: #f2eee4;
  --paper-bright: #fbf8f1;
  --red: #9f1d20;
  --red-deep: #741317;
  --gold: #b7924d;
  --gold-soft: #d9c392;
  --jade: #315c50;
  --muted: #726b60;
  --line: rgba(21, 19, 16, 0.16);
  --line-light: rgba(242, 238, 228, 0.18);
  --max: 1180px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.serif,
h1,
h2,
h3,
.brand__name,
.quote {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.16;
}

.section-head p {
  margin: 0 0 7px;
  color: var(--muted);
}

.section-pad {
  padding: 112px 0;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary:hover {
  background: var(--red-deep);
}

.btn--light {
  color: var(--ink);
  background: var(--paper-bright);
}

.btn--light:hover {
  background: #fff;
}

.btn--ghost {
  color: var(--paper-bright);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(21, 19, 16, 0.18);
}

.btn--ghost:hover {
  border-color: var(--paper-bright);
  background: rgba(21, 19, 16, 0.58);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link span {
  transition: transform 180ms ease;
}

.announcement {
  position: relative;
  z-index: 60;
  padding: 8px 16px;
  color: #efe5d2;
  background: var(--red-deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 34px;
  right: 0;
  left: 0;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-header--solid {
  position: relative;
  top: 0;
  color: #fff;
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand__seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--red);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 22px;
  line-height: 1;
}

.brand__name {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 9px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.site-nav > a:not(.btn) {
  position: relative;
  font-size: 14px;
  font-weight: 700;
}

.site-nav > a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold-soft);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.site-nav .btn {
  min-height: 42px;
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(84svh, 860px);
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(16, 13, 10, 0.56);
  content: "";
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 72px;
  align-items: end;
  padding-top: 190px;
  padding-bottom: 74px;
}

.hero__copy {
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1.04;
}

.hero__lead {
  max-width: 600px;
  margin: 26px 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__aside {
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.hero__aside-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero__aside p {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 22px;
  line-height: 1.55;
}

.hero__aside small {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  line-height: 1.6;
}

.principles {
  color: var(--paper-bright);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 26px 30px;
  border-right: 1px solid var(--line-light);
}

.principle:first-child {
  padding-left: 0;
}

.principle:last-child {
  padding-right: 0;
  border-right: 0;
}

.principle__num {
  color: var(--gold-soft);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 13px;
}

.principle strong {
  display: block;
  margin-bottom: 2px;
  font-family: "Noto Serif TC", "Songti TC", serif;
}

.principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.intro {
  background: var(--paper-bright);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 90px;
  align-items: center;
}

.intro__image {
  position: relative;
  min-height: 650px;
}

.intro__image img {
  width: 86%;
  height: 600px;
  object-fit: cover;
}

.intro__image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  padding: 24px;
  color: #fff;
  background: var(--jade);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 19px;
  line-height: 1.55;
}

.intro__copy h2 {
  margin: 0 0 28px;
  font-size: clamp(40px, 5.8vw, 70px);
  line-height: 1.14;
}

.intro__copy > p {
  color: var(--muted);
}

.intro__note {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.intro__note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
}

.catalog {
  color: var(--paper-bright);
  background: var(--ink-soft);
}

.catalog .eyebrow {
  color: var(--gold-soft);
}

.catalog .section-head p {
  color: rgba(255, 255, 255, 0.57);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.ritual-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  background: var(--ink-soft);
}

.ritual-card::after {
  position: absolute;
  z-index: 0;
  right: -20px;
  bottom: -65px;
  color: rgba(183, 146, 77, 0.1);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 220px;
  line-height: 1;
  content: attr(data-mark);
  pointer-events: none;
}

.ritual-card > * {
  position: relative;
  z-index: 1;
}

.ritual-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ritual-card__tag {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
}

.ritual-card__index {
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
}

.ritual-card h3 {
  margin: auto 0 14px;
  font-size: 30px;
}

.ritual-card p {
  min-height: 82px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.ritual-card .text-link {
  color: var(--paper-bright);
}

.ritual-card:hover {
  background: #302a22;
}

.process {
  background: var(--paper);
}

.process__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.process__sticky {
  align-self: start;
  position: sticky;
  top: 110px;
}

.process__sticky h2 {
  margin: 0 0 26px;
  font-size: clamp(40px, 5.8vw, 70px);
  line-height: 1.14;
}

.process__sticky p {
  max-width: 460px;
  color: var(--muted);
}

.process__image {
  width: 100%;
  height: 260px;
  margin-top: 35px;
  object-fit: cover;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.step__num {
  color: var(--red);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.evidence {
  background: var(--paper-bright);
}

.evidence__media {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  margin-bottom: 50px;
}

.evidence__media figure {
  margin: 0;
  overflow: hidden;
}

.evidence__media img {
  width: 100%;
  height: 510px;
  object-fit: cover;
}

.evidence__media figure:last-child img {
  object-position: center 30%;
}

.evidence__media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

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

.promise {
  padding-top: 24px;
  border-top: 2px solid var(--red);
}

.promise strong {
  display: block;
  margin-bottom: 9px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 20px;
}

.promise p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.selector-band {
  position: relative;
  color: #fff;
  background: var(--jade);
  overflow: hidden;
}

.selector-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.selector-band h2 {
  max-width: 780px;
  margin: 0 0 15px;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.12;
}

.selector-band p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.faq {
  background: var(--paper);
}

.faq__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 84px;
}

.faq h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-question {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 30px;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.faq-question strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 19px;
}

.faq-question span {
  font-size: 26px;
  font-weight: 300;
  text-align: center;
  transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  max-width: 660px;
  padding: 0 50px 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-answer.is-open {
  display: block;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 64px;
  padding: 72px 0 54px;
}

.footer__brand .brand {
  color: #fff;
}

.footer__brand p {
  max-width: 430px;
  margin: 24px 0 0;
  font-size: 13px;
}

.footer__col strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-family: "Noto Serif TC", "Songti TC", serif;
}

.footer__col a,
.footer__col span {
  display: block;
  margin: 7px 0;
  font-size: 13px;
}

.footer__col a:hover {
  color: var(--gold-soft);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line-light);
  font-size: 10px;
}

.footer__credits {
  max-width: 640px;
  text-align: right;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  padding: 22px;
  overflow: auto;
  background: rgba(13, 11, 9, 0.84);
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal__dialog {
  width: min(100%, 760px);
  max-height: calc(100svh - 44px);
  overflow: auto;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px 24px;
  border-bottom: 1px solid var(--line);
}

.modal__head h2 {
  margin: 0;
  font-size: 31px;
}

.modal__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal__close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.ritual-form {
  padding: 30px 34px 36px;
}

.form-section {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.form-section legend,
.field-label {
  display: block;
  margin-bottom: 12px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 17px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.choice input:checked + span {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.form-select {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.form-note {
  margin: -8px 0 26px;
  color: var(--muted);
  font-size: 11px;
}

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

.recommendation {
  display: none;
  margin-top: 26px;
  padding: 24px;
  color: #fff;
  background: var(--jade);
}

.recommendation.is-visible {
  display: block;
}

.recommendation__label {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
}

.recommendation h3 {
  margin: 5px 0 8px;
  font-size: 27px;
}

.recommendation p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.recommendation .btn {
  margin-right: 8px;
}

.generic-page {
  min-height: 62svh;
  padding: 150px 0 90px;
}

.generic-page h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.wp-element-button {
  color: #fff !important;
  border-radius: 3px !important;
  background: var(--red) !important;
}

/* WooCommerce */
.twfu-commerce .site-header--solid {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.commerce-main,
.commerce-static-page {
  min-height: 64svh;
  background: var(--paper-bright);
}

.commerce-hero,
.commerce-static-head {
  padding: 74px 0 64px;
  color: var(--paper-bright);
  background: var(--ink-soft);
}

.commerce-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
}

.commerce-eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
}

.commerce-hero h1,
.commerce-static-head h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.12;
}

.commerce-hero__inner > div > p:last-child,
.commerce-static-head .container > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.commerce-quicklinks {
  display: flex;
  gap: 10px;
}

.commerce-quicklinks a {
  min-width: 104px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.commerce-quicklinks a:hover {
  color: var(--ink);
  background: var(--paper-bright);
}

.commerce-trust {
  color: #fff;
  background: var(--jade);
}

.commerce-trust--light {
  color: var(--ink);
  background: #e8e1d2;
  border-bottom: 1px solid var(--line);
}

.commerce-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.commerce-trust__grid > div {
  padding: 20px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.commerce-trust--light .commerce-trust__grid > div {
  border-right-color: var(--line);
}

.commerce-trust__grid > div:first-child {
  padding-left: 0;
}

.commerce-trust__grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.commerce-trust strong,
.commerce-trust span {
  display: block;
}

.commerce-trust strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 15px;
}

.commerce-trust span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.commerce-trust--light span {
  color: var(--muted);
}

.commerce-content {
  padding-top: 54px;
  padding-bottom: 92px;
}

.product-back {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.woocommerce .woocommerce-result-count {
  margin: 10px 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.woocommerce .woocommerce-ordering {
  margin: 0 0 30px;
}

.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 12px;
}

.woocommerce ul.products {
  display: grid;
  clear: both;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex;
  float: none;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 218px;
  margin: 0;
  padding: 18px;
  object-fit: contain;
  background: #ece7dc;
  transition: transform 180ms ease;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.02);
}

.twfu-product-category {
  min-height: 27px;
  padding: 20px 20px 0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 72px;
  padding: 9px 20px 0;
  font-size: 19px;
  line-height: 1.45;
}

.twfu-product-purpose {
  display: -webkit-box;
  min-height: 66px;
  margin: 0;
  padding: 6px 20px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.woocommerce ul.products li.product .price {
  margin: auto 0 0;
  padding: 14px 20px 18px;
  color: var(--ink);
  border-top: 1px solid rgba(21, 19, 16, 0.08);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 18px;
  font-weight: 700;
}

.woocommerce ul.products li.product .button.twfu-details-button {
  width: calc(100% - 40px);
  min-height: 42px;
  margin: 0 20px 20px;
  padding: 10px 14px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination {
  margin-top: 46px;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  margin-right: 6px;
  border: 1px solid var(--line);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 38px;
  min-height: 38px;
  padding: 9px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  color: #fff;
  background: var(--red);
}

.single-product div.product {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 34px;
  overflow: hidden;
  background: #ece7dc;
  border: 1px solid var(--line);
}

.woocommerce div.product div.images img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
  object-fit: contain;
}

.woocommerce div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  float: none;
  width: auto;
}

.woocommerce div.product .product_title {
  margin: 6px 0 12px;
  font-size: 42px;
  line-height: 1.22;
}

.twfu-single-category {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 25px;
  font-weight: 700;
}

.woocommerce-product-details__short-description {
  padding: 18px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.woocommerce-product-details__short-description p {
  margin: 0;
}

.twfu-product-clarity {
  margin: 22px 0;
}

.twfu-product-clarity h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.twfu-clarity-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.twfu-clarity-row strong {
  color: var(--red);
  font-size: 12px;
}

.twfu-clarity-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.twfu-order-panel {
  margin: 26px 0 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.twfu-order-panel__head {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.twfu-order-panel__head > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
}

.twfu-order-panel__head h2 {
  margin: 5px 0 8px;
  font-size: 23px;
}

.twfu-order-panel__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.twfu-order-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  background: #f1ede4;
  border-bottom: 1px solid var(--line);
}

.twfu-order-facts > div {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.twfu-order-facts > div:last-child {
  border-right: 0;
}

.twfu-order-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.twfu-order-facts dd {
  margin: 3px 0 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 13px;
  font-weight: 700;
}

.twfu-order-facts .price {
  font-size: inherit !important;
}

.twfu-order-panel__action {
  padding: 18px 22px;
}

.woocommerce div.product .twfu-order-panel form.cart {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.woocommerce div.product .twfu-order-panel form.cart p.stock,
.twfu-quantity-prompt {
  grid-column: 1 / -1;
}

.woocommerce div.product .twfu-order-panel form.cart p.stock {
  margin: 0 0 2px;
}

.twfu-quantity-prompt {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.twfu-order-panel .quantity,
.twfu-order-panel .quantity .qty {
  width: 100%;
}

.woocommerce .twfu-order-panel .quantity .qty,
.woocommerce div.product .twfu-order-panel form.cart .button {
  min-height: 50px;
  border: 1px solid var(--line);
}

.woocommerce div.product .twfu-order-panel form.cart .button {
  padding-right: 14px;
  padding-left: 14px;
  font-size: 13px;
}

.twfu-order-next {
  padding: 17px 22px 20px;
  color: #fff;
  background: var(--jade);
}

.twfu-order-next > strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 14px;
}

.twfu-order-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.twfu-order-next li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.twfu-order-next li > span {
  color: var(--gold-soft);
  font-size: 9px;
}

.twfu-order-next b,
.twfu-order-next small {
  display: block;
}

.twfu-order-next b {
  font-size: 11px;
}

.twfu-order-next small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  line-height: 1.55;
}

.twfu-order-next > p {
  margin: 14px 0 0;
  padding-top: 13px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 10px;
}

.woocommerce div.product p.stock {
  margin: 15px 0 0;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}

.twfu-checkout-guide {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.twfu-checkout-guide__inner {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 54px;
  padding-top: 38px;
  padding-bottom: 38px;
}

.twfu-checkout-guide__head > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
}

.twfu-checkout-guide__head h2 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.twfu-checkout-guide__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.twfu-checkout-guide__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.twfu-checkout-guide__list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 2px solid var(--red);
}

.twfu-checkout-guide__list li > span {
  color: var(--muted);
  font-size: 9px;
}

.twfu-checkout-guide__list strong,
.twfu-checkout-guide__list p {
  display: block;
}

.twfu-checkout-guide__list strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 14px;
}

.twfu-checkout-guide__list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.woocommerce div.product .product_meta {
  color: var(--muted);
  font-size: 11px;
}

.twfu-product-information,
.single-product .related.products {
  grid-column: 1 / -1;
}

.twfu-product-information {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 54px;
  margin-top: 78px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.twfu-information-head > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}

.twfu-information-head h2 {
  margin: 7px 0 12px;
  font-size: 32px;
}

.twfu-information-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.twfu-information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 34px;
}

.twfu-information-grid article {
  padding-top: 14px;
  border-top: 2px solid var(--red);
}

.twfu-information-grid article > span {
  color: var(--muted);
  font-size: 10px;
}

.twfu-information-grid h3 {
  margin: 7px 0 6px;
  font-size: 18px;
}

.twfu-information-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.single-product .related.products {
  margin-top: 64px;
}

.single-product .related.products > h2 {
  margin: 0 0 26px;
  font-size: 30px;
}

.commerce-static-content {
  padding-top: 54px;
  padding-bottom: 88px;
}

.commerce-static-content > h1 {
  display: none;
}

.commerce-static-content .woocommerce-notices-wrapper {
  margin-bottom: 24px;
}

.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.wc-block-components-sidebar,
.wc-block-components-main {
  color: var(--ink);
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.cart_totals,
.wc-block-components-sidebar,
.wc-block-checkout__main {
  border-color: var(--line);
  border-radius: 4px;
  background: #fff;
}

.wc-block-checkout__main,
.wc-block-components-sidebar {
  padding: 26px;
}

.wc-block-components-checkout-step {
  margin-bottom: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.wc-block-components-checkout-step__heading h2,
.wc-block-components-title {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 21px;
}

.wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select {
  border-color: var(--line);
  border-radius: 3px;
  background: #fff;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 15px;
}

.wc-block-components-order-summary-item__description p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.wp-block-woocommerce-checkout-order-summary-block {
  position: sticky;
  top: 24px;
}

.wc-block-components-checkout-place-order-button {
  min-height: 52px;
  color: #fff;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  font-weight: 700;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-top-color: var(--jade);
  background: #e8eee9;
}

@media (max-width: 1020px) {
  .site-nav {
    gap: 18px;
  }

  .hero__content {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
  }

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

  .process__grid,
  .intro__grid {
    gap: 54px;
  }

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

  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-product div.product {
    gap: 38px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .section-pad {
    padding: 82px 0;
  }

  .site-header {
    top: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 40;
    top: 100px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 34px 24px;
    color: #fff;
    background: var(--ink);
  }

  .menu-open .site-nav {
    display: flex;
  }

  .site-nav > a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: 22px;
  }

  .site-nav .btn {
    margin-top: 24px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero__content {
    display: block;
    padding-top: 180px;
    padding-bottom: 54px;
  }

  .hero__aside {
    display: none;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .hero__lead {
    max-width: 520px;
    font-size: 16px;
  }

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

  .principle,
  .principle:first-child,
  .principle:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .section-head,
  .intro__grid,
  .process__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 22px;
  }

  .intro__image {
    min-height: 540px;
  }

  .intro__image img {
    height: 510px;
  }

  .process__sticky {
    position: static;
  }

  .evidence__media img {
    height: 400px;
  }

  .selector-band__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  .commerce-hero__inner,
  .twfu-product-information {
    grid-template-columns: 1fr;
  }

  .commerce-hero__inner {
    gap: 28px;
  }

  .commerce-hero h1,
  .commerce-static-head h1 {
    font-size: 46px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-product div.product {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    min-height: 430px;
  }

  .twfu-product-information {
    gap: 30px;
  }

  .twfu-checkout-guide__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 580px) {
  .announcement {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .brand__name {
    font-size: 19px;
  }

  .brand__sub {
    display: none;
  }

  .hero {
    min-height: 78svh;
  }

  .hero__image {
    object-position: 55% center;
  }

  .hero__content {
    padding-top: 150px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero__lead {
    margin: 19px 0 25px;
    font-size: 14px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__actions .btn {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }

  .section-head h2,
  .intro__copy h2,
  .process__sticky h2,
  .selector-band h2,
  .faq h2 {
    font-size: 39px;
  }

  .intro__grid {
    gap: 42px;
  }

  .intro__image {
    min-height: 420px;
  }

  .intro__image img {
    width: 92%;
    height: 385px;
  }

  .intro__image figcaption {
    width: 65%;
    padding: 18px;
    font-size: 15px;
  }

  .ritual-grid,
  .promise-grid,
  .evidence__media,
  .choice-grid,
  .footer__main {
    grid-template-columns: 1fr;
  }

  .ritual-card {
    min-height: 320px;
  }

  .ritual-card p {
    min-height: 0;
  }

  .process__image {
    height: 220px;
  }

  .evidence__media img {
    height: 340px;
  }

  .promise-grid {
    gap: 24px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__legal {
    display: block;
  }

  .footer__credits {
    margin-top: 14px;
    text-align: left;
  }

  .modal {
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    min-height: 100svh;
    max-height: none;
  }

  .modal__head,
  .ritual-form {
    padding-right: 20px;
    padding-left: 20px;
  }

  .commerce-hero,
  .commerce-static-head {
    padding: 50px 0 44px;
  }

  .commerce-hero h1,
  .commerce-static-head h1 {
    font-size: 39px;
  }

  .commerce-quicklinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .commerce-trust__grid {
    grid-template-columns: 1fr;
  }

  .commerce-trust__grid > div,
  .commerce-trust__grid > div:first-child,
  .commerce-trust__grid > div:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .commerce-trust--light .commerce-trust__grid > div {
    border-bottom-color: var(--line);
  }

  .commerce-trust__grid > div:last-child {
    border-bottom: 0;
  }

  .commerce-content,
  .commerce-static-content {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    float: none;
    width: 100%;
  }

  .woocommerce .woocommerce-ordering select {
    width: 100%;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.woocommerce-page ul.products[class*="columns-"] li.product,
  body.woocommerce-page ul.products[class*="columns-"] li.product:nth-child(2n) {
    display: flex;
    float: none !important;
    width: 100% !important;
    min-height: 0;
    margin: 0 !important;
    clear: none !important;
    flex-direction: column;
  }

  .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .woocommerce ul.products li.product a img {
    width: 100%;
    height: 150px;
    padding: 8px;
  }

  .twfu-product-category {
    min-height: 25px;
    padding: 12px 12px 0;
    font-size: 9px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 64px;
    padding: 5px 12px 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.42;
  }

  .twfu-product-purpose {
    min-height: 50px;
    padding: 5px 12px 0;
    font-size: 10px;
    -webkit-line-clamp: 3;
  }

  .woocommerce ul.products li.product .price {
    padding: 9px 12px 12px;
    font-size: 15px;
  }

  .woocommerce ul.products li.product .button.twfu-details-button {
    width: calc(100% - 24px);
    min-height: 40px;
    margin: 0 12px 12px;
    padding: 9px 8px;
    font-size: 11px;
  }

  .product-back {
    margin-bottom: 24px;
  }

  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    min-height: 330px;
    padding: 20px;
  }

  .woocommerce div.product div.images img {
    max-height: 310px;
  }

  .woocommerce div.product .product_title {
    font-size: 31px;
  }

  .twfu-order-panel__head,
  .twfu-order-panel__action,
  .twfu-order-next {
    padding-right: 18px;
    padding-left: 18px;
  }

  .twfu-order-panel__head h2 {
    font-size: 21px;
  }

  .twfu-order-facts {
    grid-template-columns: 1fr;
  }

  .twfu-order-facts > div,
  .twfu-order-facts > div:last-child {
    padding: 11px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .twfu-order-facts > div:last-child {
    border-bottom: 0;
  }

  .woocommerce div.product .twfu-order-panel form.cart {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .woocommerce div.product .twfu-order-panel form.cart .button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .twfu-order-next ol {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .twfu-order-next li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .twfu-checkout-guide__inner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .twfu-checkout-guide__head h2 {
    font-size: 25px;
  }

  .twfu-checkout-guide__list {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .twfu-product-information {
    margin-top: 52px;
    padding: 42px 0;
  }

  .twfu-information-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wc-block-checkout__main,
  .wc-block-components-sidebar {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
