:root {
  --brand: #b8b8dc;
  --brand-deep: #8f90c6;
  --text: #29292e;
  --muted: #8e8e8e;
  --line: #ececf3;
  --soft: #f7f7fa;
  --paper: #ffffff;
  --shadow: 0 12px 30px rgba(38, 38, 52, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eeeeef;
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

button {
  border: 0;
  font: inherit;
}

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

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand img {
  width: auto;
  height: clamp(36px, 10vw, 46px);
  max-width: 128px;
  object-fit: contain;
  border-radius: 12px;
}

.icon-button,
.product-meta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #f8f8fb;
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-content {
  padding: 14px 14px 94px;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 32%);
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 14px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.search-bar {
  display: grid;
  grid-template-columns: 22px 1fr 34px;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 6px 0 14px;
  border: 1px solid #e2e2ee;
  border-radius: 999px;
  background: #fafaff;
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.search-bar input::placeholder {
  color: #aaaab2;
}

.search-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
}

.search-bar button svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.sort-row {
  display: flex;
  gap: 8px;
  margin: 10px -14px 0;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sort-row::-webkit-scrollbar {
  display: none;
}

.sort-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sort-chip svg {
  width: 16px;
  height: 16px;
}

.sort-chip.is-active {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: #f6f5ff;
  box-shadow: inset 0 0 0 1px rgba(184, 184, 220, 0.24);
}

.shop-content {
  padding: 14px 14px 96px;
  background: #fbfbfd;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  height: 60px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.page-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8f8fb;
}

.back-button svg {
  width: 20px;
  height: 20px;
}

.header-spacer {
  width: 38px;
  height: 38px;
}

.about-content {
  padding: 0 14px 96px;
  background: #fff;
}

.guide-content {
  min-height: calc(100vh - 60px);
  padding: 18px 14px 96px;
  background: #fbfbfd;
}

.cart-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 60px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.cart-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.cart-header button {
  height: 34px;
  padding: 0 12px;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 999px;
  background: #fafaff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.cart-content {
  min-height: calc(100vh - 60px);
  padding: 14px 14px 168px;
  background: #fbfbfd;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-card {
  display: grid;
  grid-template-columns: 26px 92px 1fr;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.05);
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.check-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.check-control > span {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1.5px solid #d6d6e6;
  border-radius: 6px;
  background: #fff;
}

.check-control input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
}

.check-control input:checked + span::after {
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cart-card > .check-control {
  align-self: center;
}

.cart-thumb {
  display: grid;
  gap: 7px;
}

.cart-thumb img {
  width: 92px;
  height: 104px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.cart-thumb button {
  width: 92px;
  min-height: 28px;
  padding: 4px 6px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafaff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.cart-item-info {
  display: grid;
  align-content: space-between;
  min-width: 0;
}

.cart-item-top {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 6px;
  align-items: start;
}

.cart-item-top h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  border-radius: 50%;
  background: #f8f8fb;
  cursor: pointer;
}

.trash-btn svg {
  width: 17px;
  height: 17px;
}

.cart-item-info > strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  justify-self: start;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.qty-stepper button,
.qty-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.qty-stepper button {
  background: #fafaff;
  cursor: pointer;
}

.qty-stepper span {
  color: var(--muted);
  border-inline: 1px solid var(--line);
}

.coupon-box,
.coupon-input {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coupon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 12px 0 14px;
}

.coupon-box div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.coupon-box svg {
  width: 20px;
  height: 20px;
  color: var(--brand-deep);
}

.coupon-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border-radius: 50%;
  background: #fafaff;
  cursor: pointer;
}

.coupon-input {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 8px;
  padding: 8px;
}

.coupon-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 8px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.coupon-input input::placeholder {
  color: #aaaab2;
}

.coupon-input button {
  height: 36px;
  color: #fff;
  border-radius: 999px;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.checkout-bar {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 29;
  display: grid;
  grid-template-columns: auto 1fr 112px;
  align-items: center;
  gap: 10px;
  width: min(100%, 430px);
  min-height: 64px;
  padding: 9px 14px;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 24px rgba(38, 38, 52, 0.08);
  backdrop-filter: blur(18px);
}

.select-all {
  white-space: nowrap;
}

.checkout-total {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.checkout-total small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.checkout-total strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: #fff;
  border-radius: 999px;
  background: var(--brand);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
}

.checkout-content {
  min-height: calc(100vh - 60px);
  padding: 14px 14px 126px;
  background: #fbfbfd;
}

.checkout-section,
.order-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.05);
}

.checkout-section {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px;
}

.checkout-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.form-grid input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  color: var(--text);
  background: #fafaff;
  font-size: 14px;
}

.form-grid input:focus {
  border-color: var(--brand);
  background: #fff;
}

.option-stack {
  display: grid;
  gap: 9px;
}

.option-stack.compact {
  grid-template-columns: 1fr;
}

.radio-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.radio-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1.5px solid #d6d6e6;
  border-radius: 50%;
  background: #fff;
}

.radio-dot::after {
  position: absolute;
  inset: 4px;
  content: "";
  border-radius: 50%;
  background: transparent;
}

.radio-card:has(input:checked) {
  border-color: var(--brand);
  background: #fbfbff;
  box-shadow: inset 0 0 0 1px rgba(184, 184, 220, 0.2);
}

.radio-card input:checked + .radio-dot {
  border-color: var(--brand);
}

.radio-card input:checked + .radio-dot::after {
  background: var(--brand);
}

.radio-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.radio-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 999px;
  background: #fafaff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.store-button svg {
  width: 18px;
  height: 18px;
}

.order-summary {
  overflow: hidden;
}

.order-summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.order-summary summary::-webkit-details-marker {
  display: none;
}

.order-summary summary span {
  font-size: 16px;
  font-weight: 900;
}

.order-summary summary svg {
  width: 20px;
  height: 20px;
  color: var(--brand-deep);
  transition: transform 0.22s ease;
}

.order-summary[open] summary {
  border-bottom: 1px solid var(--line);
}

.order-summary[open] summary svg {
  transform: rotate(180deg);
}

.summary-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.summary-items {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.summary-item img {
  flex: 0 0 auto;
}

.summary-item img {
  width: 54px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.summary-item h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

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

.summary-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.summary-totals {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.summary-totals div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-totals dt,
.summary-totals dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-totals .grand-total {
  padding-top: 8px;
  border-top: 1px dashed #ddddef;
}

.summary-totals .grand-total dt,
.summary-totals .grand-total dd {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.submit-order-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(100%, 430px);
  padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -10px 24px rgba(38, 38, 52, 0.08);
  backdrop-filter: blur(18px);
}

.submit-order-bar div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.submit-order-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.submit-order-bar strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.submit-order-bar button {
  width: 100%;
  height: 48px;
  color: #fff;
  border-radius: 999px;
  background: var(--brand);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
  cursor: pointer;
}

.auth-content {
  min-height: 100vh;
  padding: 34px 18px 100px;
  background: linear-gradient(180deg, #fbfbff 0%, #ffffff 46%);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0 24px;
}

.auth-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(38, 38, 52, 0.08);
}

.auth-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(38, 38, 52, 0.08);
}

.tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.auth-tabs label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs label::after {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 4px;
  content: "";
  border-radius: 999px 999px 0 0;
  background: transparent;
}

#login-tab:checked ~ .auth-tabs .login-label,
#register-tab:checked ~ .auth-tabs .register-label {
  color: var(--text);
}

#login-tab:checked ~ .auth-tabs .login-label::after,
#register-tab:checked ~ .auth-tabs .register-label::after {
  background: var(--brand);
}

.auth-form {
  display: none;
  gap: 14px;
  padding: 18px;
}

#login-tab:checked ~ .login-form,
#register-tab:checked ~ .register-form {
  display: grid;
}

.field-group {
  position: relative;
  display: grid;
  gap: 7px;
}

.field-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field-group input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: #fafaff;
  font-size: 14px;
}

.field-group input:focus {
  border-color: var(--brand);
  background: #fff;
}

.password-field input {
  padding-right: 46px;
}

.password-field button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.password-field svg {
  width: 19px;
  height: 19px;
}

.forgot-link {
  justify-self: end;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 900;
}

.primary-action {
  width: 100%;
  height: 48px;
  color: #fff;
  border-radius: 999px;
  background: var(--brand);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
  cursor: pointer;
}

.verify-field {
  grid-template-columns: 1fr 112px;
}

.verify-field > span {
  grid-column: 1 / -1;
}

.verify-field button {
  height: 46px;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 8px;
  background: #fafaff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.policy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.policy-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.policy-check span {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d6d6e6;
  border-radius: 5px;
  background: #fff;
}

.policy-check input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
}

.policy-check input:checked + span::after {
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.policy-check em {
  font-style: normal;
}

.social-login {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.divider::before,
.divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.social-auth-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-auth-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.06);
}

.social-auth-buttons svg {
  width: 23px;
  height: 23px;
}

.member-content {
  min-height: 100vh;
  padding: 0 14px 110px;
  background: #fbfbfd;
}

/* ---------- Hero ---------- */
.member-hero {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0 -14px 0;
  padding: 34px 18px 64px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #9a9bd0 0%, #8f90c6 45%, #b8b8dc 100%);
}

.member-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120px 120px at 18% 12%, rgba(255, 255, 255, 0.25), transparent 70%),
    radial-gradient(160px 160px at 88% 28%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(90px 90px at 75% 92%, rgba(255, 255, 255, 0.14), transparent 70%);
}

.member-hero > *:not(.member-hero__bg):not(.member-settings) {
  position: relative;
  z-index: 1;
}

.member-settings {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.member-settings:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(35deg);
}

.member-settings svg {
  width: 20px;
  height: 20px;
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.55));
  box-shadow: 0 14px 30px rgba(70, 70, 110, 0.28);
}

.avatar-wrap img,
.avatar-wrap .default-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 5px 15px 5px 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.member-tier svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.member-hero h1 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.member-hero p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 700;
}

/* ---------- 統計列(浮在 hero 底緣) ---------- */
.member-stats.member-stats--2 {
  grid-template-columns: repeat(2, 1fr);
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 22px -4px -52px;
  padding: 14px 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(70, 70, 110, 0.2);
  backdrop-filter: blur(6px);
}

.member-stats a {
  display: grid;
  justify-items: center;
  gap: 4px;
  position: relative;
  color: var(--text);
  text-align: center;
}

.member-stats a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  border-left: 1px solid var(--line);
}

.member-stats strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.member-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
}

.member-stats svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--brand-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 訂單卡片 ---------- */
.member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 10px;
}

.member-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.member-card-head a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.member-card-head a svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-orders-card {
  margin-top: 26px;
}

.order-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 38, 52, 0.06);
}

.order-status a {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transition: transform 0.16s ease;
}

.order-status a:hover {
  transform: translateY(-3px);
}

.order-status__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f0f8, #e7e7f4);
}

.order-status svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--brand-deep);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-status__label {
  color: var(--text);
}

/* ---------- 功能清單 ---------- */
.member-list {
  display: grid;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 38, 52, 0.06);
}

.member-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 0 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 900;
  transition: background 0.16s ease;
}

.member-list a:hover {
  background: #faf9ff;
}

.member-list a:last-child {
  border-bottom: 0;
}

.member-list__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f1fa, #e9e9f6);
}

.member-list__ic svg {
  width: 19px;
  height: 19px;
  color: var(--brand-deep);
  stroke-width: 1.7;
}

.member-list__label {
  flex: 1;
  min-width: 0;
}

.member-list > a > svg:last-child {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #c9c9d4;
}

.logout-button {
  display: block;
  width: max-content;
  margin: 26px auto 0;
  padding: 11px 32px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.logout-button:hover,
.logout-button:focus {
  color: var(--brand-deep);
  border-color: var(--brand);
}

.product-floating-bar {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 430px);
  padding: 12px 14px;
  transform: translateX(-50%);
  pointer-events: none;
}

.product-floating-bar div {
  display: flex;
  gap: 8px;
}

.product-floating-bar a,
.product-floating-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
  pointer-events: auto;
}

.product-floating-bar svg {
  width: 20px;
  height: 20px;
}

.detail-content {
  min-height: 100vh;
  padding: 0 0 158px;
  background: #fbfbfd;
}

.detail-gallery {
  position: relative;
  background: var(--soft);
}

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

.detail-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.detail-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.detail-dots .is-active {
  width: 18px;
  background: #fff;
}

.detail-panel {
  margin-top: 10px;
  padding: 16px 14px;
  background: #fff;
  border-block: 1px solid var(--line);
}

.product-basic h1 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.detail-price {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.sales-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-rating div {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--brand-deep);
}

.sales-rating svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
}

.sales-rating div span {
  margin-left: 4px;
  color: var(--muted);
}

.spec-section h2,
.product-description h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.spec-group + .spec-group {
  margin-top: 14px;
}

.spec-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-options button {
  min-width: 58px;
  height: 36px;
  padding: 0 13px;
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.spec-options .is-selected {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: #fbfbff;
}

.product-description {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-block: 0;
  background: linear-gradient(180deg, #fbfbff 0%, #fff 100%);
}

.product-description__card {
  overflow: hidden;
  padding: 16px 15px;
  border: 1px solid #e7e6f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(91, 87, 145, 0.08);
}

.product-description__card--intro {
  background: linear-gradient(145deg, #fff 0%, #f8f7ff 100%);
}

.product-description__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.product-description__eyebrow::before {
  content: "";
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), #cbc9ee);
}

.product-description__body {
  color: #5f5d70;
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
}

.product-description__body > *:first-child { margin-top: 0; }
.product-description__body > *:last-child { margin-bottom: 0; }

.product-description p {
  margin: 0 0 12px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.product-description ul,
.product-description ol {
  margin: 8px 0 12px 1.25em;
  padding: 0;
}

.product-description li + li {
  margin-top: 5px;
}

.product-description h2,
.product-description h3,
.product-description h4 {
  margin: 16px 0 10px;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: 0;
}

.product-description h3 { font-size: 16px; }
.product-description h4 { font-size: 15px; }

.product-description img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(38, 38, 52, 0.10);
}

.product-description .wp-video,
.product-description video,
.product-description .wp-video-shortcode {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

.product-description .wp-video {
  margin: 14px auto;
}

.product-description video,
.product-description .wp-video-shortcode {
  height: auto !important;
  max-height: 78vh;
  border-radius: 16px;
  background: #111;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(38, 38, 52, 0.12);
  pointer-events: auto;
}

.product-description table {
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.product-description table th,
.product-description table td {
  padding: 9px 7px;
  border: 1px solid #e5e3f3;
}

.product-description__note {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

.fit-table-wrap {
  overflow-x: auto;
}

.fit-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.fit-table th,
.fit-table td {
  border: 1px solid var(--muted);
  padding: 10px 6px;
}

.fit-table th {
  color: var(--text);
  background: #fafaff;
  font-weight: 900;
}

.product-action-bar {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 29;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  width: min(100%, 430px);
  padding: 9px 14px;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 24px rgba(38, 38, 52, 0.08);
  backdrop-filter: blur(18px);
}

.quick-actions,
.buy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions button {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.quick-actions svg {
  width: 21px;
  height: 21px;
}

.buy-actions button {
  height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.add-cart {
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  background: #f4f3ff;
}

.buy-now {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
}

/* ---------- WooCommerce 變化類型表單(商品詳情頁規格選擇) ---------- */
.wc-add-to-cart .variations_form {
  margin: 0;
}
.wc-add-to-cart table.variations {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 6px;
}
.wc-add-to-cart table.variations tr {
  display: block;
}
.wc-add-to-cart table.variations tr + tr {
  margin-top: 14px;
}
.wc-add-to-cart table.variations th.label,
.wc-add-to-cart table.variations td.value {
  display: block;
  padding: 0;
}
.wc-add-to-cart table.variations th.label {
  margin-bottom: 8px;
}
.wc-add-to-cart table.variations th.label label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.wc-add-to-cart td.value {
  position: relative;
}
.wc-add-to-cart .variations select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f90c6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.wc-add-to-cart .variations select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(143, 144, 198, 0.18);
}
/* 「Clear / 清除」重設連結 */
.wc-add-to-cart .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 0;
  text-decoration: none;
}
.wc-add-to-cart .reset_variations::after {
  content: "清除重選";
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-deep);
  text-decoration: underline;
}
/* 選定變化後顯示的價格 / 庫存 */
.wc-add-to-cart .single_variation {
  margin: 12px 0;
}
.wc-add-to-cart .single_variation .price {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}
.wc-add-to-cart .single_variation .price del {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-right: 6px;
}
.wc-add-to-cart .woocommerce-variation-availability {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.wc-add-to-cart .woocommerce-variation-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
/* 數量 + 加入購物車 */
.wc-add-to-cart .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}
.wc-add-to-cart .quantity {
  flex: 0 0 auto;
}
.wc-add-to-cart .quantity .qty {
  width: 66px;
  height: 48px;
  padding: 0 8px;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  -moz-appearance: textfield;
}
.wc-add-to-cart .quantity .qty:focus {
  outline: none;
  border-color: var(--brand);
}
.wc-add-to-cart .single_add_to_cart_button {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.wc-add-to-cart .single_add_to_cart_button:hover {
  filter: brightness(1.05);
}
.wc-add-to-cart .single_add_to_cart_button.disabled,
.wc-add-to-cart .single_add_to_cart_button:disabled,
.wc-add-to-cart .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}
.wc-add-to-cart .stock {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.wc-add-to-cart .woocommerce-info,
.wc-add-to-cart .wc-no-matching-variations {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #faf9ff;
  color: #8e8e8e;
  font-size: 12.5px;
  border: 1px solid #ececf3;
}

/* ---------- WooCommerce 前台通知(購物車/結帳/帳號等) ---------- */
.woocommerce-notices-wrapper:empty {
  display: none;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  position: relative;
  margin: 0 0 14px;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf9ff;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.65;
  box-shadow: 0 6px 16px rgba(38, 38, 52, 0.05);
}
.woocommerce-message > li,
.woocommerce-error > li,
.woocommerce-info > li {
  list-style: none;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
}
/* 成功(加入購物車等) */
.woocommerce-message {
  background: #f0faf2;
  border-color: #c9e9cd;
  color: #2f7a3d;
}
.woocommerce-message::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334a853' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}
/* 一般提示 */
.woocommerce-info {
  background: #faf9ff;
  border-color: #ddddef;
  color: var(--brand-deep);
}
.woocommerce-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f90c6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5v.5'/%3E%3C/svg%3E");
}
/* 錯誤 */
.woocommerce-error {
  background: #fdf2f2;
  border-color: #f2d2d2;
  color: #c0392b;
}
.woocommerce-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16.5v.5'/%3E%3C/svg%3E");
}
/* 通知內的連結按鈕(查看購物車 / 結帳 / 返回商店) */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-message a.wc-forward,
.woocommerce-info a.wc-forward {
  float: right;
  margin: -2px 0 0 12px;
  padding: 8px 16px;
  color: #fff !important;
  background: var(--brand) !important;
  border: 0 !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 12px rgba(143, 144, 198, 0.22);
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-message a.wc-forward:hover,
.woocommerce-info a.wc-forward:hover {
  filter: brightness(1.05);
}
/* 空購物車提示與返回商店按鈕 */
.cart-empty.woocommerce-info {
  text-align: center;
  padding-left: 16px;
}
.cart-empty.woocommerce-info::before {
  display: none;
}
.return-to-shop {
  margin-top: 12px;
  text-align: center;
}
.return-to-shop .button {
  display: inline-block;
  padding: 11px 26px;
  color: #fff !important;
  background: var(--brand) !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
}

.guide-intro {
  padding: 4px 2px 18px;
}

.guide-intro span {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.guide-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.05);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 14px 0 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary span {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.accordion-item summary svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--brand-deep);
  transition: transform 0.22s ease;
}

.accordion-item[open] summary {
  color: var(--brand-deep);
  border-bottom: 1px solid var(--line);
  background: #fbfbff;
}

.accordion-item[open] summary svg {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.accordion-panel p {
  margin: 0;
}

.accordion-panel p + p,
.accordion-panel p + ul {
  margin-top: 10px;
}

.accordion-panel ol,
.accordion-panel ul {
  margin: 0;
  padding-left: 19px;
}

.accordion-panel li + li {
  margin-top: 6px;
}

.brand-story {
  margin: 0 -14px;
}

.brand-story > img {
  width: 100%;
  height: 286px;
  object-fit: cover;
}

.story-copy {
  padding: 24px 20px 8px;
}

.story-copy span,
.contact-panel > div span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.story-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.feature-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  padding: 14px 6px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  text-align: center;
}

.feature-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--brand-deep);
  border-radius: 50%;
  background: #f0f0fb;
}

.feature-item svg {
  width: 22px;
  height: 22px;
}

.feature-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0;
}

.contact-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.06);
}

.contact-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
}

.mail-link,
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mail-link svg,
.social-links svg {
  width: 20px;
  height: 20px;
  color: var(--brand-deep);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafaff;
}

.shop-category-fold {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 38, 52, 0.06);
  overflow: hidden;
}

.shop-category-fold__toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.shop-category-fold__toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shop-category-fold__toggle strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
}

.shop-category-fold__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.shop-category-fold__toggle.is-open svg {
  transform: rotate(180deg);
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 360px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.shop-tabs.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
}

.shop-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.shop-tabs a.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.shop-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 2px 14px;
}

.shop-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-summary h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.shop-summary p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.shop-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.06);
}

.shop-card-media {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.shop-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1.28;
  object-fit: cover;
}

.favorite-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(38, 38, 52, 0.12);
  cursor: pointer;
}

.favorite-btn svg {
  width: 17px;
  height: 17px;
}

.favorite-btn.is-saved {
  color: var(--brand-deep);
  background: #f6f5ff;
}

.shop-card-body {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.brand-tag {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-card-body h2 {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
}

.price-row del {
  color: #b6b6bd;
  font-size: 11px;
  font-weight: 700;
}

.price-row strong {
  color: #2f2f35;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin: 10px 0 0;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.load-more svg {
  width: 18px;
  height: 18px;
}

.hero-banner {
  position: relative;
  margin: 0 -14px;
  min-height: 238px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-banner img {
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.hero-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.03), rgba(20, 20, 24, 0.58));
}

.banner-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  z-index: 1;
  color: #fff;
}

.banner-copy span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.16);
}

.banner-copy h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.banner-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.banner-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  gap: 5px;
}

.banner-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.banner-dots .is-active {
  width: 16px;
  background: #fff;
}

.section-block {
  margin-top: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* 首頁特賣專區：以橫向滑動呈現，不擠壓既有首頁兩欄商品卡。 */
.sale-showcase {
  padding: 16px 0 13px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 224, 213, .75), transparent 40%),
    linear-gradient(135deg, #fffaf8 0%, #fff3ef 100%);
  border: 1px solid #f4dfd9;
  border-radius: 18px;
  overflow: hidden;
}

.sale-showcase__heading {
  padding: 0 14px;
  margin-bottom: 11px;
}

.sale-showcase__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #d95f56;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.sale-showcase__heading a {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #bd5b53;
}

.sale-showcase__heading a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sale-showcase__scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(136px, 42%);
  gap: 11px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 14px 12px;
  scroll-padding-inline: 14px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sale-showcase__scroll::-webkit-scrollbar { display: none; }

.sale-showcase__card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(239, 211, 204, .9);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(136, 72, 63, .09);
  scroll-snap-align: start;
}

.sale-showcase__media { display: block; position: relative; background: #f5efed; }
.sale-showcase__media img { display: block; width: 100%; aspect-ratio: .82; object-fit: cover; }

.sale-showcase__badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: #e85f58;
  box-shadow: 0 4px 8px rgba(196, 64, 57, .22);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.sale-showcase__body { position: relative; min-height: 93px; padding: 9px 34px 10px 10px; }
.sale-showcase__body h3 { margin: 0 0 6px; font-size: 12px; line-height: 1.35; }
.sale-showcase__body h3 a { display: -webkit-box; overflow: hidden; color: var(--text); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sale-showcase__price { display: grid; gap: 1px; }
.sale-showcase__price span { min-height: 13px; color: #a8a4a4; font-size: 10px; text-decoration: line-through; }
.sale-showcase__price strong { color: #d5534c; font-size: 13px; line-height: 1.2; }

.sale-showcase__cart {
  position: absolute;
  right: 8px;
  bottom: 10px;
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  color: #c75a53;
  background: #fff4f1;
  border: 0;
  border-radius: 50%;
}

.sale-showcase__cart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sale-showcase__hint { margin: 0; padding: 0 14px; color: #ba8d87; font-size: 10px; font-weight: 700; letter-spacing: .02em; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 50%;
  background: #fafaff;
}

.category-icon svg {
  width: 23px;
  height: 23px;
}

.sale-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 138px;
  gap: 12px;
  margin: 0 -14px;
  padding: 0 14px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.sale-scroller::-webkit-scrollbar {
  display: none;
}

.sale-card {
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.06);
}

.sale-card img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
}

.sale-body {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.timer {
  display: inline-flex;
  width: max-content;
  padding: 4px 7px;
  color: #fff;
  border-radius: 999px;
  background: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.sale-body strong {
  color: var(--text);
  font-size: 15px;
}

.product-grid {
  column-count: 2;
  column-gap: 12px;
}

.product-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
}

.product-card.tall img {
  aspect-ratio: 1 / 1.45;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.product-info h3 {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-meta span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.product-meta button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
  background: var(--brand);
}

.product-meta svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 430px);
  height: 74px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

.nav-item.is-active {
  color: var(--brand);
}

@media (max-width: 360px) {
  .home-content {
    padding-inline: 12px;
  }

  .category-grid {
    gap: 11px 4px;
    padding-inline: 4px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
  }

  .sale-scroller {
    grid-auto-columns: 128px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .hero-banner {
    margin-inline: -12px;
  }
}

/* ---------- 紅利點數明細頁 ---------- */
.points-balance-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 4px 0 18px;
  padding: 26px 18px;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(150deg, #9a9bd0 0%, #8f90c6 50%, #b8b8dc 100%);
  box-shadow: 0 14px 30px rgba(70, 70, 110, 0.22);
}

.points-balance-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.points-balance-label svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.points-balance-value {
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.points-balance-tier {
  margin-top: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
}

.points-log-title {
  margin: 0 2px 10px;
  font-size: 15px;
  font-weight: 900;
}

.points-log {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 38, 52, 0.06);
}

.points-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.points-log-row:last-child {
  border-bottom: 0;
}

.points-log-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.points-log-info strong {
  font-size: 14px;
  font-weight: 800;
}

.points-log-info time {
  font-size: 12px;
  color: var(--muted);
}

.points-log-delta {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
}

.points-log-delta.is-plus {
  color: #1a7f37;
}

.points-log-delta.is-minus {
  color: #c0392b;
}

/* ---------- 收件地址:新增表單 ---------- */
.address-form {
  margin: 14px 0;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 38, 52, 0.06);
}

.address-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ghost-action {
  height: 46px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.address-form .primary-action {
  margin: 0;
}

/* 動態地址卡的「刪除」文字鈕 */
.address-actions button[data-addr-del] {
  height: 30px;
  padding: 0 12px;
  color: #c0392b;
  border: 1px solid #f0d4d0;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* ---------- 商店:進階篩選面板 ---------- */
.filter-chip.is-active {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: #f6f5ff;
}

.shop-filter {
  margin: 4px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.05);
}

.shop-filter .filter-group + .filter-group {
  margin-top: 14px;
}

.shop-filter h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.filter-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddddef;
  border-radius: 8px;
  background: #fafaff;
  font-size: 14px;
}

.filter-price span {
  color: var(--muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  min-width: 46px;
  height: 34px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill.is-selected {
  color: #fff;
  border-color: var(--brand-deep);
  background: var(--brand-deep);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.filter-actions .ghost-action,
.filter-actions .primary-action {
  height: 44px;
  margin: 0;
  border-radius: 12px;
  font-size: 14px;
}

/* ============ 會員串接頁面美化(登入/註冊/忘記密碼/個資/地址) ============ */

/* 下拉與日期輸入:與一般輸入框一致 */
.field-group select,
.field-group input[type="date"],
.form-grid select,
.form-grid input[type="date"] {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: #fafaff;
  font-size: 14px;
  font-family: inherit;
}
.form-grid select,
.form-grid input[type="date"] { height: 44px; }

.field-group select,
.form-grid select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e8e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.field-group select:focus,
.field-group input[type="date"]:focus,
.form-grid select:focus,
.form-grid input[type="date"]:focus {
  border-color: var(--brand);
  background-color: #fff;
}
.field-group input[readonly] {
  color: var(--muted);
  background: #f1f1f5;
  cursor: not-allowed;
}

/* 必填星號 */
.field-group > span i {
  color: #e15b6a;
  font-style: normal;
  margin-left: 2px;
}

/* 註冊頁:生日/性別 並排 */
.auth-form .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 選填區分隔標題 */
.field-divider {
  position: relative;
  margin: 6px 0 2px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* 錯誤提示 */
.form-error {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fdecee;
  border: 1px solid #f6cdd2;
  color: #c0392b;
  font-size: 13px;
  font-weight: 800;
}

/* 成功 / 通知訊息 */
.auth-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef0fb;
  border: 1px solid #d9dcf3;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}
.auth-message--error {
  background: #fff2f4;
  border-color: #ffd0d8;
  color: #b4233b;
}
.checkout-content > .auth-message { margin: 14px 14px 0; }

/* 忘記密碼卡片內距 */
.forgot-card { padding: 18px; }
.forgot-card .auth-form { display: grid; padding: 0; }
.forgot-card .auth-message + .primary-action { margin-top: 14px; }

/* ============ WooCommerce 購物車 / 結帳 輕度品牌化 ============ */
.wc-content {
  padding: 16px 14px 120px;
  background: #fbfbfd;
  min-height: calc(100vh - 60px);
}
.wc-content a:not(.button) { color: var(--brand-deep); }
.wc-content .button,
.wc-content button.button,
.wc-content .wc-proceed-to-checkout .checkout-button,
.wc-content #place_order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 10px 18px !important;
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
  line-height: 1.25 !important;
  box-shadow: 0 10px 18px rgba(143, 144, 198, 0.24);
}
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-content .woocommerce-button.pay {
  min-width: 118px !important;
  margin: 4px 0 4px 6px !important;
  padding-inline: 18px !important;
  white-space: nowrap !important;
}
.wc-content .button:hover,
.wc-content #place_order:hover { filter: brightness(1.05); }
.wc-content h1, .wc-content h2, .wc-content h3 { letter-spacing: 0; }
.wc-content table.shop_table,
.wc-content .cart-collaterals .cart_totals,
.wc-content .woocommerce-checkout-review-order {
  border-radius: 14px;
  overflow: hidden;
}
.wc-content input[type="text"],
.wc-content input[type="email"],
.wc-content input[type="tel"],
.wc-content input[type="password"],
.wc-content textarea,
.wc-content select,
.wc-content .select2-container--default .select2-selection--single {
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: #fafaff !important;
}
.wc-content .woocommerce-info,
.wc-content .woocommerce-message {
  border-top-color: var(--brand);
  border-radius: 10px;
}

/* 忘記密碼說明文字:卡片頂部不需分隔線 */
.forgot-card .field-divider {
  border-top: 0;
  padding-top: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

/* ============ 關於我們 v2(編輯感版型) ============ */
.about-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-eyebrow--light { color: #fff; opacity: 0.95; }

.about-hero {
  position: relative;
  margin: 0 -14px;
  height: 340px;
  overflow: hidden;
}
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 41, 46, 0.05) 0%, rgba(41, 41, 46, 0.62) 100%);
}
.about-hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px;
  color: #fff;
}
.about-hero__text h2 { margin: 2px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: 0; }
.about-hero__text p { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; opacity: 0.95; }

.about-block { padding: 26px 2px 4px; }
.about-block h2 {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
}
.about-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.about-block p { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

.about-values { display: grid; gap: 10px; margin-top: 24px; }
.value-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.05);
}
.value-ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--brand-deep);
  background: linear-gradient(135deg, #f1f1fa, #e9e9f6);
}
.value-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.value-card h3 { margin: 0 0 3px; font-size: 15px; font-weight: 900; letter-spacing: 0; }
.value-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.about-quote {
  position: relative;
  margin: 26px -14px 0;
  padding: 34px 24px 28px;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(150deg, #9a9bd0 0%, #8f90c6 55%, #b8b8dc 100%);
}
.about-quote__mark {
  position: absolute;
  top: 4px;
  left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1;
  opacity: 0.28;
}
.about-quote blockquote { position: relative; margin: 0; font-size: 26px; font-weight: 900; letter-spacing: 0.04em; }
.about-quote p { position: relative; margin: 14px 0 0; font-size: 13px; line-height: 1.85; opacity: 0.95; }

.contact-panel { border-radius: 16px; margin-top: 24px; }
.contact-head h2 { margin: 0; font-size: 19px; }
.social-links a {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #e3e3f2;
  border-radius: 999px;
  background: #fafaff;
  color: var(--brand-deep);
  font-weight: 900;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.company-note { margin: 2px 0 0; color: #aaaab2; font-size: 11px; }

/* ============ 購物說明 v2:標題底線 + 編號徽章 ============ */
.guide-intro h2 { position: relative; padding-bottom: 12px; }
.guide-intro h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.acc-title { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.acc-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: var(--brand-deep);
  background: #f0f0fb;
  font-size: 12.5px;
  font-weight: 900;
}
.accordion-item[open] .acc-num { color: #fff; background: var(--brand); }
.guide-footnote { margin: 18px 2px 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.guide-footnote a { color: var(--brand-deep); font-weight: 900; }

/* ========================================================================
   商品詳情頁:右上角購物車紅圈徽章
   ======================================================================== */
.product-floating-bar .cart-icon-link {
  position: relative;
}
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8443a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 10px rgba(232, 68, 58, 0.32), 0 0 0 2px #fff;
  pointer-events: none;
  z-index: 2;
}
.cart-count-badge.is-hidden { display: none; }

/* ========================================================================
   商品詳情頁:規格選擇區優化(WooCommerce 變化類型表單)
   ======================================================================== */
.wc-add-to-cart { padding-top: 18px; padding-bottom: 18px; }
.wc-add-to-cart > h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}
.wc-add-to-cart > h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 36px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--brand);
}
.wc-add-to-cart table.variations tr + tr { margin-top: 18px; }
.wc-add-to-cart table.variations th.label label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.wc-add-to-cart table.variations th.label label::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand);
}
.wc-add-to-cart .variations select {
  height: 50px;
  padding: 0 44px 0 16px;
  font-size: 15px;
  font-weight: 800;
  border-color: #e2e2ee;
  background-color: #fafafe;
}
.wc-add-to-cart .variations select:focus {
  background-color: #fff;
}
/* 變化選定後的價格區塊 */
.wc-add-to-cart .single_variation_wrap { margin-top: 16px; }
.wc-add-to-cart .single_variation .woocommerce-variation-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f2ff 0%, #faf9ff 100%);
}
.wc-add-to-cart .single_variation .price ins {
  text-decoration: none;
  color: var(--brand);
  font-size: 24px;
  font-weight: 900;
}
.wc-add-to-cart .woocommerce-variation-availability { padding-left: 4px; }
/* 數量 + 加入購物車 — 規格選擇下方按鈕區放大、間距更舒適 */
.wc-add-to-cart .woocommerce-variation-add-to-cart {
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #ececf3;
}
.wc-add-to-cart .quantity .qty {
  width: 70px;
  height: 52px;
  font-size: 16px;
  border-radius: 14px;
}
.wc-add-to-cart .single_add_to_cart_button {
  min-height: 52px;
  font-size: 15px;
  letter-spacing: 1.5px;
}
/* 動作列在 WC 模式下只剩 quick-actions(無 buy-actions) */
.product-action-bar.is-wc-mode { grid-template-columns: 1fr; }
.product-action-bar.is-wc-mode .quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 240px;
  margin: 0 auto;
}

/* ========================================================================
   非固定 header 修飾(在 cart / checkout 用)
   ======================================================================== */
.page-header.is-static {
  position: static !important;
  background: #fff !important;
  backdrop-filter: none !important;
}
/* 含 cart-edit 按鈕時,右側欄拉寬以容納文字按鈕(避免「編 輯」直書) */
.page-header.is-static:has(.cart-edit) {
  grid-template-columns: 42px 1fr auto !important;
}
.page-header .cart-edit {
  height: 34px;
  padding: 0 14px;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 999px;
  background: #fafaff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

/* ========================================================================
   購物車頁面:重新美化 WooCommerce 原生購物車為手機卡片版型(v2)
   ======================================================================== */
.cart-content.wc-content {
  padding: 16px 14px 220px !important;
  background: #fbfbfd;
  min-height: 100vh;
  font-size: 14px;
}
.cart-content.wc-content .woocommerce-notices-wrapper { margin-bottom: 12px; }

/* 隱藏響應式表格的 data-title ::before 標籤(我們改用卡片) */
.cart-content.wc-content table.shop_table_responsive td::before,
.cart-content.wc-content table.shop_table_responsive tfoot th::before { display: none !important; }
.cart-content.wc-content table.shop_table_responsive thead { display: none !important; }

.cart-content.wc-content table.shop_table {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-spacing: 0 !important;
}
.cart-content.wc-content table.shop_table tbody { display: block !important; }

/* 每件商品 → 手機卡片(grid 兩列三欄,確保商品名稱有足夠寬度) */
.cart-content.wc-content table.shop_table tr.cart_item {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 12px !important;
  row-gap: 10px !important;
  align-items: start !important;
  position: relative !important;
  margin: 0 0 12px !important;
  padding: 14px 14px 14px 14px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 16px rgba(38, 38, 52, 0.06) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.cart-content.wc-content table.shop_table tr.cart_item td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  width: auto !important;
  vertical-align: top !important;
}

/* 左欄圖片(跨兩列) */
.cart-content.wc-content td.product-thumbnail {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: block !important;
  width: 84px !important;
}
.cart-content.wc-content td.product-thumbnail a { display: block !important; }
.cart-content.wc-content td.product-thumbnail img,
.cart-content.wc-content td.product-thumbnail a img {
  display: block !important;
  width: 84px !important;
  height: 100px !important;
  max-width: 84px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin: 0 !important;
  background: #f5f5fa;
}

/* 第一列右側:商品名稱橫跨第 2、3 欄 */
.cart-content.wc-content td.product-name {
  grid-column: 2 / -1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding-right: 36px !important;  /* 給右上 × 鈕讓位 */
}
.cart-content.wc-content td.product-name a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: var(--text) !important;
  font-weight: 900 !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  word-break: break-word !important;
  /* 重要:避免 CJK 字元被當作單字元換行 */
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
}

/* 變化屬性 — 尺碼/顏色 膠囊 */
.cart-content.wc-content td.product-name .variation,
.cart-content.wc-content td.product-name dl.variation {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cart-content.wc-content td.product-name .variation dt {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  background: transparent !important;
  white-space: nowrap !important;
}
.cart-content.wc-content td.product-name .variation dd {
  margin: 0 6px 0 0 !important;
  padding: 3px 8px !important;
  background: #f3f2ff !important;
  color: var(--brand-deep) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}
.cart-content.wc-content td.product-name .variation dt p,
.cart-content.wc-content td.product-name .variation dd p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
}

/* 第二列左側:數量輸入(在圖片右側的「row 2」、column 2) */
.cart-content.wc-content td.product-price { display: none !important; }
.cart-content.wc-content td.product-quantity {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cart-content.wc-content td.product-quantity::before {
  content: "數量" !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: var(--muted) !important;
}
.cart-content.wc-content td.product-quantity .quantity { display: inline-flex !important; align-items: center; }
.cart-content.wc-content td.product-quantity .quantity .qty {
  width: 60px !important;
  height: 36px !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.cart-content.wc-content td.product-quantity .quantity .qty:focus { outline: none !important; border-color: var(--brand) !important; }

/* 第二列右側:小計(在 row 2、column 3) */
.cart-content.wc-content td.product-subtotal {
  grid-column: 3 !important;
  grid-row: 2 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 6px 0 0 0 !important;
}
.cart-content.wc-content td.product-subtotal::before {
  content: "小計" !important;
  font-size: 11.5px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
}
.cart-content.wc-content td.product-subtotal .woocommerce-Price-amount,
.cart-content.wc-content td.product-subtotal bdi {
  color: var(--brand) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0 !important;
}

/* 右上角 × 移除鈕(絕對定位浮在卡片右上) */
.cart-content.wc-content td.product-remove {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 26px !important;
  height: 26px !important;
  z-index: 2 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}
.cart-content.wc-content td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  color: #fff !important;
  background: #e8443a !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(232, 68, 58, 0.28);
}
.cart-content.wc-content td.product-remove a.remove:hover { filter: brightness(1.05) !important; }

/* 更新購物車 + 優惠券動作列 — 整列獨立佔一張卡片 */
.cart-content.wc-content tr.actions {
  display: block !important;
  margin: 0 0 16px !important;
  background: transparent !important;
  border: 0 !important;
}
.cart-content.wc-content tr.actions td {
  display: block !important;
  padding: 0 !important;
}
.cart-content.wc-content .coupon { display: none !important; }
.cart-content.wc-content button[name="update_cart"] {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  color: var(--brand-deep) !important;
  background: #f4f3ff !important;
  border: 1.5px solid #ddddef !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  cursor: pointer;
}
.cart-content.wc-content button[name="update_cart"]:hover { background: #ebeaff !important; }
.cart-content.wc-content button[name="update_cart"]:disabled { opacity: 0.5 !important; cursor: default !important; }

/* 購物車總計卡片 */
.cart-content.wc-content .cart_totals {
  margin: 0 !important;
  padding: 18px 16px 20px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 16px rgba(38, 38, 52, 0.06) !important;
}
.cart-content.wc-content .cart_totals h2 {
  margin: 0 0 14px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
}
.cart-content.wc-content .cart_totals table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
}
.cart-content.wc-content .cart_totals table tbody { display: table-row-group !important; }
.cart-content.wc-content .cart_totals table tr { display: table-row !important; }
.cart-content.wc-content .cart_totals table th,
.cart-content.wc-content .cart_totals table td {
  display: table-cell !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px dashed #ececf3 !important;
  font-size: 14px !important;
  background: transparent !important;
  vertical-align: middle !important;
}
.cart-content.wc-content .cart_totals table th { text-align: left !important; color: var(--muted) !important; font-weight: 800 !important; }
.cart-content.wc-content .cart_totals table td { text-align: right !important; color: var(--text) !important; font-weight: 800 !important; font-feature-settings: "tnum" 1; }
.cart-content.wc-content .cart_totals .order-total th,
.cart-content.wc-content .cart_totals .order-total td {
  border-bottom: 0 !important;
  padding-top: 16px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: var(--text) !important;
}
.cart-content.wc-content .cart_totals .order-total .woocommerce-Price-amount,
.cart-content.wc-content .cart_totals .order-total bdi {
  color: var(--brand) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px;
  font-feature-settings: "tnum" 1;
}
.cart-content.wc-content .shipping-calculator-button { color: var(--brand-deep) !important; }

/* 「前往結帳」主按鈕 */
.cart-content.wc-content .wc-proceed-to-checkout { padding: 18px 0 0 !important; }
.cart-content.wc-content .checkout-button.button {
  display: block !important;
  width: 100% !important;
  min-height: 54px !important;
  padding: 16px 18px !important;
  color: #fff !important;
  background: var(--brand) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 15.5px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 12px 22px rgba(143, 144, 198, 0.28) !important;
}
.cart-content.wc-content .checkout-button.button:hover { filter: brightness(1.05) !important; }
.cart-content.wc-content .cart-collaterals { display: block !important; }

/* ========================================================================
   結帳頁面:重新美化 WooCommerce 原生結帳表單為手機版型(v2 — 穩定欄位)
   ======================================================================== */
.checkout-content.wc-content {
  padding: 16px 14px 220px !important;
  background: #fbfbfd;
  min-height: 100vh;
  font-size: 14px;
}
.checkout-content.wc-content .woocommerce-notices-wrapper { margin-bottom: 12px; }
.checkout-content.wc-content form.checkout {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.checkout-content.wc-content .col2-set,
.checkout-content.wc-content #customer_details {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.checkout-content.wc-content .col-1,
.checkout-content.wc-content .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 各區塊改成卡片 */
.checkout-content.wc-content .woocommerce-billing-fields,
.checkout-content.wc-content .woocommerce-shipping-fields,
.checkout-content.wc-content .woocommerce-additional-fields,
.checkout-content.wc-content #order_review {
  padding: 18px 16px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 16px rgba(38, 38, 52, 0.06) !important;
}
.checkout-content.wc-content #order_review_heading {
  margin: 6px 2px 0 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
}
.checkout-content.wc-content .woocommerce-billing-fields h3,
.checkout-content.wc-content .woocommerce-shipping-fields h3,
.checkout-content.wc-content .woocommerce-additional-fields h3 {
  margin: 0 0 14px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px dashed #ececf3 !important;
  color: var(--text) !important;
  font-size: 15.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
}

/* 欄位包覆器 — 用 grid 而非 inline-block,避免雙欄破版 */
.checkout-content.wc-content .woocommerce-billing-fields__field-wrapper,
.checkout-content.wc-content .woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 10px !important;
  row-gap: 14px !important;
}

/* 預設每欄佔滿,雙欄(first/last)各佔半 */
.checkout-content.wc-content .form-row {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.checkout-content.wc-content .form-row-first { grid-column: 1 !important; }
.checkout-content.wc-content .form-row-last { grid-column: 2 !important; }
.checkout-content.wc-content .form-row-wide { grid-column: 1 / -1 !important; }

.checkout-content.wc-content .form-row label {
  display: block !important;
  margin: 0 0 6px !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}
.checkout-content.wc-content .form-row label .required,
.checkout-content.wc-content .form-row .required {
  color: #e8443a !important;
  text-decoration: none !important;
  margin-left: 2px !important;
  font-weight: 900 !important;
}
.checkout-content.wc-content .form-row label .optional {
  color: var(--muted) !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  margin-left: 4px !important;
}

/* 統一輸入欄高度 / 風格(包含 input / textarea / select / select2) */
.checkout-content.wc-content .form-row input.input-text,
.checkout-content.wc-content .form-row textarea,
.checkout-content.wc-content .form-row select,
.checkout-content.wc-content .form-row .select2-container,
.checkout-content.wc-content .form-row .select2-container--default .select2-selection--single {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fafafe !important;
  color: var(--text) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 48px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.checkout-content.wc-content .form-row textarea {
  height: 96px !important;
  min-height: 96px !important;
  padding: 12px 14px !important;
  line-height: 1.6 !important;
  resize: vertical !important;
}
.checkout-content.wc-content .form-row input.input-text:focus,
.checkout-content.wc-content .form-row textarea:focus,
.checkout-content.wc-content .form-row select:focus {
  outline: none !important;
  border-color: var(--brand) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(143, 144, 198, 0.16) !important;
}

/* select2(WC 國家選單)— 鎖死高度與字體不會跳 */
.checkout-content.wc-content .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-weight: 700 !important;
}
.checkout-content.wc-content .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  top: 0 !important;
  right: 12px !important;
}
.checkout-content.wc-content .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--brand) !important;
  background: #fff !important;
}
.checkout-content.wc-content .select2-container .selection { display: block !important; }

/* 隱藏 WC 內建的「兩段式」標題(woocommerce-additional-fields 內訂單備註標題若不需要可保留) */
.checkout-content.wc-content .woocommerce-shipping-fields > h3.optional { font-weight: 700 !important; }
.checkout-content.wc-content .woocommerce-shipping-fields__field-wrapper { margin-top: 10px !important; }

/* 訂單總覽表格 */
.checkout-content.wc-content table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}
.checkout-content.wc-content table.shop_table thead { display: none; }
.checkout-content.wc-content table.shop_table th,
.checkout-content.wc-content table.shop_table td {
  border: 0;
  border-bottom: 1px dashed #ececf3;
  padding: 12px 0;
  font-size: 14px;
}
.checkout-content.wc-content table.shop_table tr.cart_item td.product-name {
  color: var(--text);
  font-weight: 800;
}
.checkout-content.wc-content table.shop_table tr.cart_item td.product-total {
  text-align: right;
  color: var(--brand);
  font-weight: 900;
}
.checkout-content.wc-content table.shop_table tfoot th,
.checkout-content.wc-content table.shop_table tfoot td {
  font-weight: 800;
  text-align: right;
}
.checkout-content.wc-content table.shop_table tfoot th { text-align: left; color: var(--muted); }
.checkout-content.wc-content table.shop_table tfoot tr.order-total th { color: var(--text); font-size: 16px; }
.checkout-content.wc-content table.shop_table tfoot tr.order-total td {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}
.checkout-content.wc-content table.shop_table tfoot tr.order-total td .woocommerce-Price-amount { font-weight: 900; }

/* 付款方式區塊 */
.checkout-content.wc-content #payment {
  margin-top: 12px;
  padding: 12px;
  background: #faf9ff;
  border-radius: 12px;
}
.checkout-content.wc-content #payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checkout-content.wc-content #payment ul.payment_methods > li {
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.checkout-content.wc-content #payment ul.payment_methods > li input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--brand);
}
.checkout-content.wc-content #payment ul.payment_methods > li label {
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}
.checkout-content.wc-content #payment .payment_box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fbfbfd;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.checkout-content.wc-content #payment .payment_box::before { display: none; }
/* 條款同意 */
.checkout-content.wc-content .woocommerce-terms-and-conditions-wrapper {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.checkout-content.wc-content .form-row.place-order { margin: 14px 0 0; }
/* 下訂單主按鈕 */
.checkout-content.wc-content #place_order {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(143, 144, 198, 0.3);
}
.checkout-content.wc-content #place_order:hover { filter: brightness(1.05); }
.checkout-content.wc-content #place_order:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.checkout-content.wc-content .blockUI.blockOverlay { border-radius: 16px; }
/* 隱藏 WC 自帶優惠券區塊(全站已關閉) */
.checkout-content.wc-content .checkout_coupon,
.checkout-content.wc-content .woocommerce-form-coupon-toggle { display: none !important; }

/* ========================================================================
   購物車 / 結帳:topbar 下方的副標題(返回 + 標題)
   ======================================================================== */
.page-sub-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.page-sub-header h1 {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}
.page-sub-header .header-spacer {
  width: 38px;
  height: 38px;
}
.page-sub-header:has(.cart-edit) {
  grid-template-columns: 42px 1fr auto;
}
.page-sub-header .cart-edit {
  height: 34px;
  padding: 0 14px;
  color: var(--brand-deep);
  border: 1px solid #ddddef;
  border-radius: 999px;
  background: #fafaff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

/* ========================================================================
   訂單完成頁(感謝頁)
   ======================================================================== */
.complete-content {
  min-height: calc(100vh - 66px);
  padding: 18px 14px 110px;
  background: linear-gradient(180deg, #f8f7ff 0%, #fbfbfd 220px);
}

/* Hero — 大綠勾 + 標題 + 副標 */
.complete-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 16px 26px;
  margin: 0 0 16px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(38, 38, 52, 0.06);
}
.complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d1f5d8, #b8eec3);
  box-shadow: 0 14px 28px rgba(52, 168, 83, 0.22), inset 0 0 0 6px rgba(255, 255, 255, 0.6);
}
.complete-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #2f7a3d;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.complete-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}
.complete-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.complete-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f3f2ff;
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 900;
}
.complete-status__label { color: var(--muted); font-weight: 700; }
.complete-status__value { color: var(--brand-deep); }

/* 卡片(訂單資訊 / 商品 / 收件人) */
.complete-card {
  padding: 18px 16px;
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(38, 38, 52, 0.05);
}
.complete-card h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ececf3;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0;
}

/* 鍵值列表 */
.kv-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.kv-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #ececf3;
  font-size: 13.5px;
}
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt {
  flex: 0 0 88px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.kv-list dd {
  flex: 1 1 auto;
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 800;
  word-break: break-word;
  font-feature-settings: "tnum" 1;
}
.kv-list .kv-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.kv-list .kv-total dt {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.kv-list .kv-total dd {
  color: var(--brand);
  font-size: 19px;
  font-weight: 900;
}

/* 商品明細列表 */
.complete-item-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.complete-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #ececf3;
}
.complete-item:last-child { border-bottom: 0; padding-bottom: 0; }
.complete-item__thumb {
  display: block;
  width: 64px;
  height: 76px;
  border-radius: 10px;
  background: #f5f5fa;
  overflow: hidden;
}
.complete-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.complete-item__thumb[data-empty] {
  background: linear-gradient(135deg, #f3f2ff, #e9e8fb);
}
.complete-item__body { min-width: 0; }
.complete-item__body h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.complete-item__meta {
  margin: 0;
  color: var(--brand-deep);
  font-size: 11.5px;
  font-weight: 800;
}
.complete-item__qty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.complete-item__total {
  align-self: center;
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
}
.complete-totals { margin-top: 6px; }

/* 「接下來」說明 */
.complete-care {
  margin: 0 0 14px;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3f2ff 0%, #faf9ff 100%);
  border: 1px dashed #d8d7f4;
}
.complete-care h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}
.complete-care ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.85;
}
.complete-care li { padding-left: 2px; }
.complete-care a { color: var(--brand-deep); font-weight: 900; text-decoration: underline; }

/* 動作按鈕 */
.complete-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.complete-actions .primary-action {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(143, 144, 198, 0.28);
}
.complete-actions .primary-action:hover { filter: brightness(1.05); }
.complete-actions .ghost-action {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--brand-deep);
  background: #fff;
  border: 1.5px solid #ddddef;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
}
.complete-actions .ghost-action:hover { background: #fafaff; }

.complete-payment { border-color:#deddf1; background:linear-gradient(145deg,#fff 0%,#f7f7fc 100%); }
.complete-payment__intro { margin:0 0 16px; color:var(--muted); font-size:12px; line-height:1.65; }
.complete-payment__account { position:relative; margin:0 0 14px; padding:16px; border-radius:12px; background:#292936; color:#fff; }
.complete-payment__account span,.complete-payment__barcodes span { display:block; margin-bottom:6px; font-size:11px; font-weight:800; letter-spacing:.08em; }
.complete-payment__account strong { display:block; padding-right:68px; font-size:20px; letter-spacing:.13em; font-feature-settings:"tnum" 1; word-spacing:3px; }
.complete-payment__copy { position:absolute; right:14px; top:50%; transform:translateY(-50%); min-width:54px; height:34px; padding:0 12px; border:0; border-radius:999px; background:#fff; color:#55518c; font-size:12px; font-weight:900; cursor:pointer; box-shadow:0 8px 18px rgba(0,0,0,.16); }
.complete-payment__copy:hover { background:#f3f2ff; }
.complete-payment__loading { display:flex; gap:8px; align-items:center; justify-content:center; min-height:42px; }
.complete-payment__loading span { width:9px; height:9px; border-radius:999px; background:#aaa8dc; animation:edsPayPulse 1s infinite ease-in-out; }
.complete-payment__loading span:nth-child(2) { animation-delay:.15s; }
.complete-payment__loading span:nth-child(3) { animation-delay:.3s; }
@keyframes edsPayPulse { 0%,80%,100%{ opacity:.35; transform:scale(.72); } 40%{ opacity:1; transform:scale(1); } }
.complete-payment__resume { display:flex; align-items:center; justify-content:center; min-height:46px; border-radius:12px; background:#aaa8dc; color:#fff; font-size:14px; font-weight:900; text-decoration:none; box-shadow:0 10px 20px rgba(115,112,175,.2); }
.complete-payment__resume:hover { background:#918fca; color:#fff; }
.complete-payment__help { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }
.complete-payment__barcodes { display:grid; gap:12px; }
.complete-payment__barcodes > div { padding:12px; border:1px solid #e5e4ee; border-radius:10px; background:#fff; }
.eds-barcode { display:block; width:100%; height:62px; margin:3px 0 6px; fill:#15151b; }
.complete-payment__barcodes strong { display:block; color:#34343d; font-size:13px; letter-spacing:.08em; text-align:center; font-feature-settings:"tnum" 1; }
.complete-logistics { border-color:#d7e7df; background:linear-gradient(145deg,#fff 0%,#f4fbf7 100%); }
.complete-logistics > p { margin:0 0 16px; color:var(--muted); font-size:12px; line-height:1.65; }
.complete-logistics__number { margin-bottom:12px; background:#225b4a; }
.complete-logistics__track { display:flex; align-items:center; justify-content:center; min-height:42px; border:1px solid #9bc8b4; border-radius:11px; background:#fff; color:#24684f; font-size:13px; font-weight:900; text-decoration:none; }
.complete-logistics__track:hover { background:#eaf7f0; }

.order-card-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.order-action { display:inline-flex; align-items:center; justify-content:center; min-width:104px; min-height:40px; padding:0 16px; border:1px solid #aaa8dc; border-radius:999px; background:#aaa8dc; color:#fff; font:inherit; font-size:13px; font-weight:900; text-decoration:none; cursor:pointer; }
.order-action:hover { background:#918fca; border-color:#918fca; color:#fff; }
.order-action:disabled { opacity:.62; cursor:wait; }
.order-action--secondary { background:#fff; color:#7a779d; border-color:#d4d2e9; }
.order-action--secondary:hover { background:#f7f6ff; color:#5c5988; border-color:#bbb8dc; }

/* ========================================================================
   空購物車:主題設計的空狀態
   ======================================================================== */
.eds-empty-cart {
  padding: 54px 20px 8px;
  text-align: center;
}
.eds-empty-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3f2ff, #e6e5fa);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.65), 0 14px 28px rgba(143, 144, 198, 0.18);
}
.eds-empty-cart__icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--brand-deep);
  stroke-width: 1.7;
}
.eds-empty-cart h2 {
  margin: 18px 0 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}
.eds-empty-cart p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
/* 返回商店按鈕(空購物車下方) */
.cart-content.wc-content .return-to-shop {
  margin: 22px auto 0;
  text-align: center;
}
.cart-content.wc-content .return-to-shop .button {
  display: inline-block;
  min-width: 200px;
  padding: 14px 30px;
  color: #fff !important;
  background: var(--brand) !important;
  border: 0;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(143, 144, 198, 0.28);
}
.cart-content.wc-content .return-to-shop .button:hover { filter: brightness(1.05); }

/* ========================================================================
   舊站外掛相容:隱藏與主題重複/衝突的注入元件
   ======================================================================== */
/* Chaty 浮動聊天按鈕 — 與主題自帶的 LINE 客服側邊鈕重複 */
.chaty,
.chaty-container,
#chaty-widget,
#chaty-widget-container,
.chaty-widget,
.sticky-chaty,
#chaty-widget-0,
.chaty-i-trigger { display: none !important; }
/* Super Socializer / Heateor 分享列(為舊主題設計,版型不相容) */
.the_champ_sharing_container,
.the_champ_counter_container,
.heateor_sss_sharing_container,
.heateor_sss_sharing_title { display: none !important; }

/* 登入頁的 Super Socializer 社群登入按鈕(LINE / Google / Facebook…) */
.social-login {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.eds-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid #e4e3ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  color: #29283a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(91, 87, 145, 0.11);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.eds-google-login:hover,
.eds-google-login:focus {
  transform: translateY(-1px);
  border-color: #c9c7e9;
  color: #29283a;
  box-shadow: 0 16px 30px rgba(91, 87, 145, 0.15);
}
.eds-google-login__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.eds-google-login__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.eds-line-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid rgba(6, 199, 85, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #06c755 0%, #04b84d 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 13px 28px rgba(6, 199, 85, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.eds-line-login:hover,
.eds-line-login:focus {
  transform: translateY(-1px);
  color: #fff;
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(6, 199, 85, 0.24);
}
.eds-line-login__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  color: #06c755;
  font-family: Jost, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.eds-social-login { text-align: center; }
.eds-social-login .the_champ_login_container,
.eds-social-login .the_champ_login_ul_container { margin: 0 !important; width: 100% !important; }
.eds-social-login .theChampLogin_ul,
.eds-social-login ul.the_champ_login_ul {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.eds-social-login ul.the_champ_login_ul li {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.eds-social-login .theChampLogin {
  width: 100% !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid rgba(6, 199, 85, 0.18) !important;
  background: linear-gradient(180deg, #06c755 0%, #04b84d 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.18) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease !important;
}
.eds-social-login .theChampLogin::after {
  content: "使用 LINE 登入";
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.eds-social-login .theChampLogin::before {
  content: "LINE";
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 24px;
  flex: 0 0 38px;
  border-radius: 8px;
  background: #fff;
  color: #06c755;
  font-family: Jost, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.eds-social-login .theChampLogin:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
  box-shadow: 0 16px 30px rgba(6, 199, 85, 0.23) !important;
}
.eds-social-login .theChampLogin i,
.eds-social-login .theChampLogin svg {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}
.eds-social-login .theChampLogin .theChampLoginSvg,
.eds-social-login .theChampLogin ss {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: none !important;
}

/* ========================================================================
   WP Admin Bar 相容:管理員登入瀏覽前台時,固定/黏性元素往下讓位
   ======================================================================== */
body.admin-bar .topbar,
body.admin-bar .page-header { top: 46px; }
body.admin-bar .product-floating-bar { top: 46px; }
@media (min-width: 783px) {
  body.admin-bar .topbar,
  body.admin-bar .page-header { top: 32px; }
  body.admin-bar .product-floating-bar { top: 32px; }
}

/* 藍新付款資訊：同時套用於自訂完成頁與 WooCommerce 原生付款區塊 */
.eds-payment-card {
  box-sizing: border-box;
  width: 100%;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #deddf2;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f7f6ff 100%);
  box-shadow: 0 10px 28px rgba(91, 87, 145, .10);
  color: #29283a;
}
.eds-payment-card__heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.eds-payment-card__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: #aaa8dc; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.eds-payment-card__icon--barcode { font-size: 30px; line-height: 1; }
.eds-payment-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.eds-payment-card p { margin: 4px 0 0; color: #77758b; font-size: 13px; line-height: 1.55; }
.eds-payment-card__account-label { color: #77758b; font-size: 13px; font-weight: 700; }
.eds-payment-card__account-wrap { position: relative; margin: 6px 0 15px; }
.eds-payment-card__account { min-height: 52px; margin: 0; padding: 13px 86px 13px 15px; border-radius: 11px; background: #fff; color: #45427f; font: 800 23px/1.2 Jost, monospace; letter-spacing: .12em; text-align: center; word-spacing: .15em; }
.eds-payment-card__account-wrap .complete-payment__copy { right:10px; box-shadow:0 8px 18px rgba(91,87,145,.15); background:#f3f2ff; }
.eds-payment-card__details { display: grid; gap: 8px; margin: 0; }
.eds-payment-card__details div { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; border-top: 1px dashed #deddf2; font-size: 14px; }
.eds-payment-card__details dt { color: #77758b; font-weight: 600; }
.eds-payment-card__details dd { margin: 0; font-weight: 800; }
.eds-barcode-list { display: grid; gap: 14px; }
.eds-barcode-row { padding: 12px; border-radius: 12px; background: #fff; text-align: center; }
.eds-barcode-label { display: block; margin-bottom: 8px; color: #77758b; font-size: 12px; font-weight: 700; text-align: left; }
.eds-barcode-visual { min-height: 72px; overflow: hidden; }
.eds-barcode-visual svg { display: block; width: 100%; max-width: 440px; height: 72px; margin: 0 auto; }
.eds-barcode-row code { display: block; margin-top: 7px; color: #45427f; font: 700 12px/1.4 Jost, monospace; letter-spacing: .06em; word-break: break-all; }
.eds-payment-card__expiry { margin-top: 14px; color: #b24f5a; font-size: 13px; font-weight: 800; }
@media (max-width: 600px) { .eds-payment-card { padding: 18px; border-radius: 15px; } .eds-payment-card__account { font-size: 19px; } }

/* ========================================================================
   首頁精選分類 3×2 + PNG 圖示
   ======================================================================== */
.category-grid.category-grid--3x2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
  padding: 20px 14px 22px;
}
.category-grid.category-grid--3x2 .category-item .category-icon {
  width: 64px;
  height: 64px;
}
.category-grid .category-icon--img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7f6ff 0%, #eeecfa 100%);
  box-shadow: 0 8px 18px rgba(143, 144, 198, 0.14);
  overflow: hidden;
}
.category-grid .category-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================================================
   購物車總計:運費列(shipping row)長字串防溢出
   ======================================================================== */
.cart-content.wc-content .cart_totals table tr.shipping td,
.cart-content.wc-content .cart_totals table tr.shipping th {
  vertical-align: top !important;
  padding: 12px 0 !important;
}
.cart-content.wc-content .cart_totals table tr.shipping td {
  text-align: right !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
}
.cart-content.wc-content .cart_totals ul#shipping_method,
.cart-content.wc-content .cart_totals .shipping ul {
  list-style: none !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}
.cart-content.wc-content .cart_totals .shipping ul li {
  display: block !important;
  padding: 4px 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}
.cart-content.wc-content .cart_totals .shipping ul li label {
  display: inline-block;
  padding-left: 4px;
  font-weight: 700;
  color: var(--text);
}
.cart-content.wc-content .cart_totals .shipping ul li input[type="radio"] {
  accent-color: var(--brand);
  margin-right: 4px;
}
.cart-content.wc-content .cart_totals .woocommerce-shipping-destination,
.cart-content.wc-content .cart_totals .shipping-calculator,
.cart-content.wc-content .cart_totals .shipping .woocommerce-shipping-methods,
.cart-content.wc-content .cart_totals .shipping p {
  display: block !important;
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  word-break: break-word !important;
}
/* Woodmart / 其他外掛塞的免運進度徽章 */
.cart-content.wc-content .cart_totals .shipping .wd-free-progress,
.cart-content.wc-content .cart_totals .shipping .free-shipping-progress,
.cart-content.wc-content .cart_totals .shipping .wd-free-shipping,
.cart-content.wc-content .cart_totals .shipping .free-shipping {
  display: inline-block !important;
  margin-top: 6px !important;
  padding: 4px 10px !important;
  background: #fef2f0 !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  color: #c0392b !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

/* ========================================================================
   桌面版購物車總計：安靜、清楚的訂單摘要卡
   ======================================================================== */
@media (min-width: 783px) {
  .cart-content.wc-content .cart-collaterals {
    width: min(100%, 440px) !important;
    margin-left: auto !important;
  }

  .cart-content.wc-content .cart_totals {
    position: sticky;
    top: 56px;
    padding: 28px 28px 24px !important;
    border: 1px solid #e5e4f1 !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 18px 46px rgba(48, 48, 73, 0.10) !important;
  }

  .cart-content.wc-content .cart_totals h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px !important;
    font-size: 20px !important;
    letter-spacing: .04em !important;
  }

  .cart-content.wc-content .cart_totals h2::before {
    width: 8px;
    height: 24px;
    border-radius: 999px;
    background: var(--brand);
    content: '';
  }

  .cart-content.wc-content .cart_totals table th,
  .cart-content.wc-content .cart_totals table td {
    padding: 15px 0 !important;
    font-size: 15px !important;
  }

  .cart-content.wc-content .cart_totals table th {
    color: #69697a !important;
    letter-spacing: .03em;
  }

  .cart-content.wc-content .cart_totals table tr.shipping th,
  .cart-content.wc-content .cart_totals table tr.shipping td {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .cart-content.wc-content .cart_totals .shipping ul li {
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 7px 0 !important;
  }

  .cart-content.wc-content .cart_totals .shipping ul li label {
    max-width: 230px;
    color: #393946 !important;
    font-weight: 800 !important;
    text-align: right;
  }

  .cart-content.wc-content .cart_totals .shipping ul li input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0 !important;
    accent-color: var(--brand);
  }

  .cart-content.wc-content .cart_totals .order-total th,
  .cart-content.wc-content .cart_totals .order-total td {
    padding-top: 19px !important;
    padding-bottom: 19px !important;
    border-top: 1px solid #e5e4f1 !important;
    background: #f7f7fc !important;
  }

  .cart-content.wc-content .cart_totals .order-total th {
    padding-left: 16px !important;
    border-radius: 14px 0 0 14px;
    color: #31313f !important;
  }

  .cart-content.wc-content .cart_totals .order-total td {
    padding-right: 16px !important;
    border-radius: 0 14px 14px 0;
  }

  .cart-content.wc-content .cart_totals .order-total .woocommerce-Price-amount,
  .cart-content.wc-content .cart_totals .order-total bdi {
    font-size: 26px !important;
  }

  .cart-content.wc-content .wc-proceed-to-checkout {
    padding-top: 22px !important;
  }

  .cart-content.wc-content .checkout-button.button {
    min-height: 58px !important;
    border-radius: 14px !important;
    letter-spacing: .12em !important;
    box-shadow: 0 12px 22px rgba(143, 144, 198, 0.24) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
  }

  .cart-content.wc-content .checkout-button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(143, 144, 198, 0.32) !important;
  }
}

/* 結帳配送選項：手機版改為完整寬度卡片，避免表格欄寬造成文字直排 */
.checkout-content.wc-content table.shop_table tr.shipping,
.checkout-content.wc-content table.shop_table tr.choose_cvs {
  display: block !important;
  width: 100% !important;
}
.checkout-content.wc-content table.shop_table tr.shipping > th,
.checkout-content.wc-content table.shop_table tr.shipping > td,
.checkout-content.wc-content table.shop_table tr.choose_cvs > th,
.checkout-content.wc-content table.shop_table tr.choose_cvs > td {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}
.checkout-content.wc-content table.shop_table tr.shipping > th,
.checkout-content.wc-content table.shop_table tr.choose_cvs > th {
  padding: 12px 0 6px !important;
  white-space: nowrap !important;
}
.checkout-content.wc-content table.shop_table tr.shipping > td,
.checkout-content.wc-content table.shop_table tr.choose_cvs > td {
  padding: 0 0 14px !important;
}
.checkout-content.wc-content #shipping_method li,
.checkout-content.wc-content ul.woocommerce-shipping-methods li {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 54px !important;
  margin: 0 0 10px !important;
  padding: 12px 14px !important;
  border: 1.5px solid #e4e3ef !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}
.checkout-content.wc-content #shipping_method li:has(input:checked),
.checkout-content.wc-content ul.woocommerce-shipping-methods li:has(input:checked) {
  border-color: var(--brand) !important;
  box-shadow: 0 5px 14px rgba(143, 144, 198, .16) !important;
}
.checkout-content.wc-content #shipping_method li input[type="radio"],
.checkout-content.wc-content ul.woocommerce-shipping-methods li input[type="radio"] {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
}
.checkout-content.wc-content #shipping_method li label,
.checkout-content.wc-content ul.woocommerce-shipping-methods li label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 0 !important;
  width: 100% !important;
  gap: 10px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.checkout-content.wc-content #shipping_method li label .amount,
.checkout-content.wc-content ul.woocommerce-shipping-methods li label .amount,
.checkout-content.wc-content #shipping_method li label .woocommerce-Price-amount {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}
.checkout-content.wc-content table.shop_table tr.choose_cvs td > .button,
.checkout-content.wc-content table.shop_table tr.choose_cvs td button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  text-align: center !important;
  box-shadow: 0 7px 15px rgba(143, 144, 198, .22) !important;
}
.checkout-content.wc-content table.shop_table tr.choose_cvs .show_choose_cvs_name {
  display: block !important;
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}
.checkout-content.wc-content table.shop_table tr.choose_cvs .choose_cvs_name {
  color: var(--text) !important;
  font-weight: 800 !important;
}

/* ========================================================================
   加入購物車 底部彈出的規格選擇面板
   ======================================================================== */
.eds-var-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
}
.eds-var-sheet.is-hidden { display: none; }
.eds-var-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 46, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.eds-var-sheet.is-open .eds-var-sheet__backdrop { opacity: 1; }
.eds-var-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  padding: 18px 18px 24px;
  background: #fff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -18px 40px rgba(38, 38, 52, 0.16);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.eds-var-sheet.is-open .eds-var-sheet__panel { transform: translateY(0); }
.eds-var-sheet__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #f4f3ff;
  color: var(--brand-deep);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.eds-var-sheet__head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 38px;
}
.eds-var-sheet__img {
  width: 76px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: #f5f5fa;
  flex: 0 0 auto;
}
.eds-var-sheet__intro { min-width: 0; }
.eds-var-sheet__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eds-var-sheet__price {
  color: var(--brand);
  font-size: 19px;
  font-weight: 900;
  font-feature-settings: "tnum" 1;
}
.eds-var-sheet__body {
  overflow-y: auto;
  padding: 4px 2px 8px;
  border-top: 1px dashed #ececf3;
  border-bottom: 1px dashed #ececf3;
}
.eds-var-sheet__group + .eds-var-sheet__group { margin-top: 14px; }
.eds-var-sheet__group { margin: 12px 0 6px; }
.eds-var-sheet__label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 900;
}
.eds-var-sheet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eds-var-sheet__pills button {
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.eds-var-sheet__pills button.is-selected {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: #f4f3ff;
}
.eds-var-sheet__loading,
.eds-var-sheet__error {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
  margin: 0;
}
.eds-var-sheet__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eds-var-sheet__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.eds-var-sheet__qty button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f4f3ff;
  color: var(--brand-deep);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.eds-var-sheet__qty button:hover { background: #ebeaff; }
.eds-var-sheet__qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  font-feature-settings: "tnum" 1;
}
.eds-var-sheet__submit {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(143, 144, 198, 0.28);
}
.eds-var-sheet__submit:hover { filter: brightness(1.05); }
.eds-var-sheet__submit:disabled {
  background: #d5d5e6;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  letter-spacing: 0.5px;
}

/* ========================================================================
   商店卡片:快速加入購物車按鈕
   ======================================================================== */
.shop-card .price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
.shop-card .price-row .price-values {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.shop-card .price-row .price-values del {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.shop-card .price-row .price-values strong {
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
  font-feature-settings: "tnum" 1;
}
.shop-card .price-row .quick-cart-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(143, 144, 198, 0.32);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.shop-card .price-row .quick-cart-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.shop-card .price-row .quick-cart-btn:active { transform: scale(0.95); }
.shop-card .price-row .quick-cart-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2;
}

/* ========================================================================
   商品詳情頁:圖片區(不可左右滑動 + 放大 icon + 圖庫張數)
   ======================================================================== */
.detail-gallery {
  overflow: hidden;
  touch-action: pan-y;   /* 只允許直向捲動,阻擋左右滑手勢 */
}
.detail-gallery__trigger {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.detail-gallery__trigger img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.detail-gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  color: var(--brand-deep);
  box-shadow: 0 8px 18px rgba(38, 38, 52, 0.15);
}
.detail-gallery__zoom svg { width: 20px; height: 20px; }
.detail-gallery__count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(31, 31, 46, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}
.detail-gallery__thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 10px 12px 13px;
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.detail-gallery__thumbs::-webkit-scrollbar { display: none; }
.detail-gallery__thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 86px;
  padding: 3px;
  border: 1.5px solid #e7e6f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(91, 87, 145, 0.08);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.detail-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.detail-gallery__thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(143, 144, 198, 0.22);
  transform: translateY(-1px);
}
.detail-gallery__thumb:focus-visible {
  outline: 3px solid rgba(143, 144, 198, 0.24);
  outline-offset: 2px;
}
.detail-dots { display: none; }  /* 原有的分頁點不再使用 */

/* ========================================================================
   商品詳情頁:sales-rating 內的收藏按鈕(取代原本的星星數)
   ======================================================================== */
.sales-rating .detail-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.sales-rating .detail-fav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.sales-rating .detail-fav:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: #fafaff;
}
.sales-rating .detail-fav.is-saved {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.sales-rating .detail-fav.is-saved svg {
  fill: #fff;
  stroke: #fff;
}

/* 產品動作列在 buy-only 模式時(示範模式)只顯示購買按鈕 */
.product-action-bar.buy-only {
  grid-template-columns: 1fr;
}
.product-action-bar.buy-only .buy-actions {
  grid-template-columns: 1fr 1fr;
  max-width: none;
}

/* ========================================================================
   全螢幕圖片放大 lightbox(可左右滑動)
   ======================================================================== */
.eds-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 15, 22, 0.94);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.eds-lightbox.is-hidden { display: none; }
.eds-lightbox.is-open { opacity: 1; }
.eds-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  z-index: 3;
}
.eds-lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
.eds-lightbox__prev,
.eds-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  z-index: 2;
}
.eds-lightbox__prev { left: 12px; }
.eds-lightbox__next { right: 12px; }
.eds-lightbox__prev:hover,
.eds-lightbox__next:hover { background: rgba(255, 255, 255, 0.22); }
.eds-lightbox__track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.05);
  cursor: grab;
  user-select: none;
}
.eds-lightbox__track:active { cursor: grabbing; }
.eds-lightbox__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
}
.eds-lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.eds-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  z-index: 2;
}

/* ========================================================================
   加入購物車後的綠色成功通知美化(有 SVG icon + 品牌質感)
   ======================================================================== */
.woocommerce-message {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #ecfaf0 0%, #f5fbf7 100%) !important;
  border: 1px solid #c9e9cd !important;
  border-radius: 14px !important;
  color: #2f7a3d !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  box-shadow: 0 6px 16px rgba(52, 168, 83, 0.10) !important;
}
.woocommerce-message::before {
  content: "";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background-color: #34a853;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60% 60%;
  box-shadow: 0 6px 12px rgba(52, 168, 83, 0.32);
  position: relative !important;
  left: auto !important;
  top: auto !important;
}
.woocommerce-message .button,
.woocommerce-message a.wc-forward,
.woocommerce-message a.button {
  margin: 0 0 0 auto !important;
  padding: 8px 18px !important;
  color: #fff !important;
  background: var(--brand) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 6px 14px rgba(143, 144, 198, 0.28) !important;
  text-decoration: none !important;
  float: none !important;
}
.woocommerce-message .button:hover,
.woocommerce-message a.wc-forward:hover { filter: brightness(1.05) !important; }

/* ========================================================================
   商品詳情頁:「可選規格」預覽區(唯讀,實際選擇在底部面板)
   ======================================================================== */
.spec-preview {
  padding: 18px 16px;
}
.spec-preview h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0;
}
.spec-preview__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
}
.spec-preview__row + .spec-preview__row {
  border-top: 1px dashed #ececf3;
  padding-top: 12px;
  margin-top: 4px;
}
.spec-preview__row > span {
  flex: 0 0 44px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.spec-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.spec-preview__chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f2ff;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.spec-preview__hint {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fbfbfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ========================================================================
   商品詳情頁:固定底部加入購物車 CTA 列
   ======================================================================== */
.detail-content {
  padding-bottom: 82px !important;  /* 讓內容不被 CTA 列蓋住 */
}
.detail-cta-bar {
  position: fixed;
  left: 50%;
  bottom: 74px;                     /* 剛好貼在底部導覽列上方 */
  z-index: 29;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 430px);
  padding: 10px 14px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(38, 38, 52, 0.08);
  backdrop-filter: blur(18px);
}
body.admin-bar .detail-cta-bar { }  /* 位置由 bottom-nav 決定,不需額外偏移 */

.detail-cta-bar__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.detail-cta-bar__price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.detail-cta-bar__price strong {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.detail-cta-bar__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(143, 144, 198, 0.30);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.detail-cta-bar__btn:hover { filter: brightness(1.05); }
.detail-cta-bar__btn:active { transform: scale(0.98); }
.detail-cta-bar__btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2;
}

/* ========================================================================
   結帳頁面:進度條(購物車 → 結帳 → 完成訂單)
   ======================================================================== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 18px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.checkout-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.checkout-step__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eeeef5;
  color: #a4a4b8;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.checkout-step.is-done .checkout-step__dot {
  background: #f4f3ff;
  color: var(--brand-deep);
  border-color: var(--brand);
}
.checkout-step.is-done .checkout-step__label { color: var(--brand-deep); }
.checkout-step.is-active .checkout-step__dot {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(143, 144, 198, 0.32);
}
.checkout-step.is-active .checkout-step__label {
  color: var(--text);
  font-weight: 900;
}
.checkout-step__bar {
  flex: 0 1 40px;
  height: 2px;
  border-radius: 999px;
  background: #eeeef5;
  align-self: flex-start;
  margin-top: 16px;
}
.checkout-step__bar.is-active { background: var(--brand); }

/* ========================================================================
   結帳頁面:隱藏欄位 / 地址欄位 / 條款同意
   ======================================================================== */
.checkout-content.wc-content .eds-hidden-field,
.checkout-content.wc-content .form-row.eds-hidden-field { display: none !important; }
.checkout-content.wc-content .eds-detail-address {
  transition: opacity 0.15s ease;
}

/* 「寄送到其他地址」勾選整區隱藏 */
.checkout-content.wc-content .woocommerce-shipping-fields,
.checkout-content.wc-content .woocommerce-account-fields,
.checkout-content.wc-content .shipping_address,
.checkout-content.wc-content #ship-to-different-address,
.checkout-content.wc-content .woocommerce-billing-fields > h3 {
  display: none !important;
}
/* 保留「收件資訊」自訂區塊標題(由 gettext filter 提供) */
.checkout-content.wc-content .woocommerce-billing-fields__field-wrapper {
  margin-top: 0 !important;
}

/* 國家下拉美化(select2 已在其他規則設好 h48,這裡加特色) */
.checkout-content.wc-content #billing_country_field .woocommerce-input-wrapper {
  position: relative;
}
.checkout-content.wc-content .select2-container--default .select2-selection--single {
  padding: 0 44px 0 16px !important;
  background-color: #fafafe !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checkout-content.wc-content .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-weight: 800 !important;
  color: var(--text) !important;
  padding-left: 0 !important;
}
.checkout-content.wc-content .select2-container--default .select2-selection__arrow {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f90c6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center no-repeat !important;
  background-size: 20px 20px !important;
  width: 40px !important;
}
.checkout-content.wc-content .select2-container--default .select2-selection__arrow b { display: none !important; }
.select2-dropdown {
  border: 1.5px solid var(--brand) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 24px rgba(38, 38, 52, 0.12) !important;
}
.select2-container--open .select2-dropdown--below { border-top-left-radius: 12px !important; border-top-right-radius: 12px !important; }
.select2-results__option {
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}
.select2-results__option--highlighted[aria-selected] {
  background: var(--brand) !important;
  color: #fff !important;
}
.select2-results__option[aria-selected="true"] {
  background: #f4f3ff !important;
  color: var(--brand-deep) !important;
  font-weight: 900 !important;
}

/* 條款同意 checkbox:大點擊區、品牌色勾選、連結到購物說明 */
.checkout-content.wc-content .woocommerce-terms-and-conditions-wrapper {
  margin-top: 4px !important;
  padding: 14px 16px !important;
  background: #faf9ff !important;
  border: 1px dashed #d8d7f4 !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
}
.checkout-content.wc-content .validate-required.woocommerce-form__label-for-checkbox,
.checkout-content.wc-content .form-row.terms {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 4px 0 !important;
}
.checkout-content.wc-content .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
}
.checkout-content.wc-content .woocommerce-form__input-checkbox {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  accent-color: var(--brand) !important;
  cursor: pointer !important;
}
.checkout-content.wc-content .woocommerce-terms-and-conditions-checkbox-text a {
  color: var(--brand-deep) !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.checkout-content.wc-content .woocommerce-terms-and-conditions-checkbox-text a:hover { color: var(--brand); }
.checkout-content.wc-content .validate-required .required { color: #e8443a !important; }

/* ========================================================================
   結帳頁面:自訂國家選擇按鈕 + 彈窗
   ======================================================================== */
.eds-country-wrapper { position: relative; }
/* 隱藏原生 select 與 select2 chrome,只用自訂觸發按鈕 */
.eds-country-wrapper select,
.eds-country-wrapper .select2-container {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 48px !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
}
.eds-country-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fafafe;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.eds-country-trigger:hover { border-color: var(--brand); }
.eds-country-trigger:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(143, 144, 198, 0.18);
}
.eds-country-trigger__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  font-size: 20px;
  line-height: 1;
}
.eds-country-trigger__flag:empty::before {
  content: "🌏";
  filter: grayscale(0.3);
}
.eds-country-trigger__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eds-country-trigger__chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--brand);
}
.eds-country-trigger:active .eds-country-trigger__chev { transform: translateY(-50%) rotate(180deg); }

/* 彈窗(bottom sheet) */
.eds-country-sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
}
.eds-country-sheet.is-hidden { display: none; }
.eds-country-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 46, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.eds-country-sheet.is-open .eds-country-sheet__backdrop { opacity: 1; }
.eds-country-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 18px 22px;
  background: #fff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -18px 40px rgba(38, 38, 52, 0.16);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
.eds-country-sheet.is-open .eds-country-sheet__panel { transform: translateY(0); }
/* 拉桿手把感 */
.eds-country-sheet__panel::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 6px auto 12px;
  border-radius: 999px;
  background: #ddddef;
}
.eds-country-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
  border-bottom: 1px dashed #ececf3;
  margin-bottom: 8px;
}
.eds-country-sheet__head h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}
.eds-country-sheet__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f4f3ff;
  color: var(--brand-deep);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.eds-country-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eds-country-sheet__item + .eds-country-sheet__item { margin-top: 6px; }
.eds-country-sheet__item button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: left;
}
.eds-country-sheet__item button:hover {
  background: #fafaff;
  border-color: var(--brand);
}
.eds-country-sheet__item.is-selected button {
  background: #f4f3ff;
  border-color: var(--brand);
}
.eds-country-sheet__flag {
  font-size: 26px;
  line-height: 1;
  flex: 0 0 auto;
}
.eds-country-sheet__label {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}
.eds-country-sheet__hint {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.eds-country-sheet__check {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
}
.eds-country-sheet__item.is-selected .eds-country-sheet__check { opacity: 1; }

/* ========================================================================
   結帳頁面:銀行轉帳帳號卡片(直接顯示於付款方式描述上方)
   ======================================================================== */
.eds-bacs-accounts {
  margin: 0 0 8px;
}
.eds-bacs-accounts__title {
  margin: 0 0 8px;
  padding-left: 2px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.eds-bacs-accounts__card {
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(143, 144, 198, 0.14);
}
.eds-bacs-accounts__card + .eds-bacs-accounts__card { margin-top: 8px; }
.eds-bacs-accounts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #ececf3;
  font-size: 13.5px;
}
.eds-bacs-accounts__row:last-child { border-bottom: 0; }
.eds-bacs-accounts__row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.eds-bacs-accounts__row strong {
  color: var(--text);
  font-weight: 900;
  font-feature-settings: "tnum" 1;
  text-align: right;
  word-break: break-all;
}
.eds-bacs-accounts__num {
  cursor: pointer;
  color: var(--brand) !important;
  font-size: 15px !important;
}
.eds-bacs-accounts__num em {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f3ff;
  color: var(--brand-deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ========================================================================
   結帳頁面訂單表格內的「運送方式」多選卡片(顯示後台所有可用方法)
   ======================================================================== */
.checkout-content.wc-content table.shop_table tr.shipping td { text-align: left !important; padding: 12px 0 !important; }
.checkout-content.wc-content table.shop_table tr.shipping th { color: var(--muted) !important; font-weight: 800 !important; vertical-align: top !important; }
.checkout-content.wc-content #shipping_method,
.checkout-content.wc-content ul.woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.checkout-content.wc-content #shipping_method li,
.checkout-content.wc-content ul.woocommerce-shipping-methods li {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkout-content.wc-content #shipping_method li:has(input:checked),
.checkout-content.wc-content ul.woocommerce-shipping-methods li:has(input:checked) {
  border-color: var(--brand) !important;
  background: #f4f3ff !important;
}
.checkout-content.wc-content #shipping_method li label,
.checkout-content.wc-content ul.woocommerce-shipping-methods li label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  color: var(--text) !important;
  font-weight: 800 !important;
}
.checkout-content.wc-content #shipping_method li input[type="radio"],
.checkout-content.wc-content ul.woocommerce-shipping-methods li input[type="radio"] {
  accent-color: var(--brand) !important;
  width: 16px !important;
  height: 16px !important;
}
.checkout-content.wc-content .woocommerce-shipping-destination {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}

/* ========================================================================
   購物車總計：在行動式畫布與桌面瀏覽器皆維持完整且易讀的比例
   ======================================================================== */
.cart-content.wc-content .cart-collaterals {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 24px 0 0 !important;
}

.cart-content.wc-content .cart_totals {
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.cart-content.wc-content .cart_totals table {
  table-layout: fixed !important;
}

.cart-content.wc-content .cart_totals table th {
  width: 32% !important;
}

.cart-content.wc-content .cart_totals table td {
  width: 68% !important;
}

.cart-content.wc-content .cart_totals table tr.shipping td {
  padding-left: 14px !important;
  text-align: left !important;
}

.cart-content.wc-content .cart_totals .shipping ul li {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 8px 0 !important;
}

.cart-content.wc-content .cart_totals .shipping ul li label {
  flex: 1 1 auto;
  max-width: none !important;
  padding-left: 0 !important;
  text-align: left !important;
  line-height: 1.55 !important;
}

.cart-content.wc-content .cart_totals .shipping ul li input[type="radio"] {
  flex: 0 0 auto;
  margin: 3px 0 0 !important;
}

@media (min-width: 783px) {
  .cart-content.wc-content .cart-collaterals {
    width: 100% !important;
    margin-top: 28px !important;
  }

  .cart-content.wc-content .cart_totals {
    position: static;
    padding: 24px 26px 26px !important;
  }

  .cart-content.wc-content .cart_totals h2 {
    font-size: 18px !important;
  }

  .cart-content.wc-content .cart_totals table th,
  .cart-content.wc-content .cart_totals table td {
    font-size: 14px !important;
  }

  .cart-content.wc-content .cart_totals .order-total .woocommerce-Price-amount,
  .cart-content.wc-content .cart_totals .order-total bdi {
    font-size: 23px !important;
  }
}
