/* ChiaoStore storefront refinement: restrained editorial commerce. */
:root {
  --cs-ink: #202622;
  --cs-muted: #626b65;
  --cs-line: #e5e9e4;
  --cs-paper: #ffffff;
  --cs-warm: #faf9f6;
  --cs-accent: #506b5b;
}

body { color: var(--cs-ink); }
body :where(h1, h2, h3) { text-wrap: balance; letter-spacing: -.025em; }
body :where(p, li) { text-wrap: pretty; }
body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 3px;
}

/* The main offer and the printed products share the first viewport. */
body.home .cs-wf-hero {
  padding-top: clamp(64px, 6vw, 96px) !important;
  padding-bottom: clamp(80px, 7vw, 112px) !important;
  background: var(--cs-paper) !important;
}
body.home .cs-wf-hero > .wp-block-columns { align-items: center; }
body.home .cs-wf-hero h1 {
  max-width: 10ch;
  margin-top: 18px;
  margin-bottom: 24px;
  color: var(--cs-ink) !important;
  font-size: clamp(46px, 4vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em;
}
body.home .cs-wf-hero .cs-wf-eyebrow,
body.home .cs-wf-section .cs-wf-eyebrow {
  color: var(--cs-accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
}
body.home .cs-wf-hero p:not(.cs-wf-eyebrow) {
  max-width: 35em;
  color: var(--cs-muted) !important;
  line-height: 1.7;
}
body.home .cs-wf-hero .wp-block-buttons { align-items: center; gap: 12px; }
body.home .cs-wf-hero .wp-block-button__link,
body.home .cs-cta .wp-block-button__link {
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background-color .3s cubic-bezier(.22,1,.36,1), color .3s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
body.home .cs-wf-hero .cs-btn-gold .wp-block-button__link,
body.home .cs-cta .wp-block-button__link { background: var(--cs-ink) !important; color: #fff !important; }
body.home .cs-wf-hero .cs-btn-gold .wp-block-button__link:hover,
body.home .cs-cta .wp-block-button__link:hover { background: var(--cs-accent) !important; }
body.home .cs-wf-hero .wp-block-columns .wp-block-columns p { font-weight: 500 !important; }

.cs-hero-showcase { position: relative; min-height: 610px; padding: 24px 70px 42px 0; }
.cs-hero-showcase a { display: block; position: relative; overflow: hidden; text-decoration: none; }
.cs-hero-showcase__main {
  width: 82%;
  aspect-ratio: 4 / 5;
  background: var(--cs-warm);
  border: 1px solid var(--cs-line);
  border-radius: 8px;
}
.cs-hero-showcase__secondary {
  position: absolute !important;
  right: 0;
  bottom: 0;
  width: 45%;
  aspect-ratio: 4 / 5;
  background: var(--cs-paper);
  border: 8px solid var(--cs-paper);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(32,38,34,.10);
}
.cs-hero-showcase img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-hero-showcase a > span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 12px;
  background: rgba(255,255,255,.94);
  color: var(--cs-ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.cs-hero-showcase small { display: block; color: var(--cs-muted); font-size: 11px; font-weight: 500; }

/* Open section rhythm and restrained surfaces. */
body.home .cs-wf-section {
  padding-top: clamp(80px, 7vw, 112px) !important;
  padding-bottom: clamp(88px, 7vw, 120px) !important;
  background: var(--cs-warm) !important;
}
body.home .cs-wf-why,
body.home .cs-wf-process { background: var(--cs-paper) !important; }
body.home .cs-wf-section h2,
body.home .cs-cta h2 {
  margin-top: 14px;
  margin-bottom: 32px;
  color: var(--cs-ink) !important;
  font-size: clamp(30px, 2.5vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.22;
}
body.home .cs-wf-section h3 { font-weight: 600 !important; }
body.home .cs-price-card,
body.home .cs-ip-card,
body.home .cs-step4 {
  border: 1px solid var(--cs-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
body.home .cs-wf-why .cs-benefit {
  padding: 28px 28px 8px 0;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--cs-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.home .cs-wf-why .cs-benefit-num { color: var(--cs-accent) !important; }
body.home .cs-wf-section .cs-card img { border-radius: 6px; }

/* A usable collection replaces the empty Query placeholder. */
body.home .cs-wf-section:has(#cs-collection) .wp-block-group p:last-child[style*="font-size"] { display: none; }
.cs-curated-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.cs-curated-card { min-width: 0; background: #fff; border: 1px solid var(--cs-line); border-radius: 8px; overflow: hidden; }
.cs-curated-card__image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f5f2; }
.cs-curated-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.cs-curated-card:hover .cs-curated-card__image img { transform: scale(1.035); }
.cs-curated-card__body { display: flex; flex-direction: column; min-height: 156px; padding: 18px 20px 20px; }
.cs-curated-card h3 { margin: 0 0 8px; font-size: 18px !important; line-height: 1.45; }
.cs-curated-card h3 a { color: var(--cs-ink); text-decoration: none; }
.cs-curated-card__price { margin: 0 0 16px; color: var(--cs-muted); font-size: 14px; }
.cs-curated-card__link { margin-top: auto; align-self: flex-start; color: var(--cs-accent); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.cs-curated-card__link:hover { color: var(--cs-ink); }

/* The catalog uses the same 1392px content width as the shared page frame. */
body.woocommerce-shop .cs-shop-main { padding-top: 72px !important; padding-bottom: 112px !important; }
body.woocommerce-shop .cs-shop-main #main > :not(ul.products) { max-width: 1392px; margin-left: auto; margin-right: auto; }
body.woocommerce-shop .woocommerce-products-header__title { margin-top: 22px; margin-bottom: 28px; font-size: clamp(36px,3vw,52px); font-weight: 700; letter-spacing: -.04em; }
body.woocommerce-shop ul.products li.product {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
  padding: 14px;
  border-color: var(--cs-line);
  border-radius: 8px;
  transition: border-color .3s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1);
}
body.woocommerce-shop ul.products li.product:hover { transform: none; border-color: #cbd5cc; box-shadow: 0 10px 28px rgba(32,38,34,.07); }
body.woocommerce-shop ul.products li.product a img { border-radius: 4px; }
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title { min-height: 3em; font-size: 17px; font-weight: 600; line-height: 1.5; }
body.woocommerce-shop ul.products li.product .price { margin-top: auto; font-size: 15px; font-variant-numeric: tabular-nums; }
body.woocommerce-shop ul.products li.product .button { align-self: flex-start; border-radius: 5px; font-weight: 600; }

/* LINE remains available without covering the first visit. */
#csLineFab { border-radius: 6px; padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(32,38,34,.14); }
#csLineFab .dot { display: none; }
.cs-line-card { border-radius: 8px; }
.cs-line-close:focus-visible { outline: 2px solid #9fe6c0; outline-offset: 3px; }

@media (max-width: 1024px) {
  .cs-hero-showcase { min-height: 480px; }
  .cs-curated-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body.home .cs-wf-hero { padding-top: 36px !important; padding-bottom: 72px !important; }
  body.home .cs-wf-hero h1 { max-width: none; font-size: clamp(38px, 10vw, 50px) !important; }
  body.home .cs-wf-hero > .wp-block-columns { gap: 32px !important; }
  body.home .cs-wf-hero .wp-block-columns .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    margin-top: 20px !important;
  }
  body.home .cs-wf-hero .wp-block-columns .wp-block-columns .wp-block-column { min-width: 0; }
  body.home .cs-wf-hero .wp-block-columns .wp-block-columns p { font-size: 11px !important; white-space: nowrap; }
  .cs-hero-showcase { min-height: 0; padding: 0 36px 30px 0; }
  .cs-hero-showcase__main { width: 85%; }
  .cs-hero-showcase__secondary { width: 44%; }
  .cs-curated-grid { gap: 12px; }
  .cs-curated-card__body { padding: 14px; min-height: 168px; }
  .cs-curated-card h3 { font-size: 15px !important; }
  body.woocommerce-shop .cs-shop-main { padding-top: 48px !important; padding-bottom: 80px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-hero-showcase *, .cs-curated-card *, body.woocommerce-shop ul.products li.product { transition-duration: 0.01ms !important; }
}

/* WooCommerce mini-cart drawer: quiet, compact product hierarchy. */
.wc-block-mini-cart__drawer {
  color: #202823;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents {
  background: #fff;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 22px 56px 19px 24px;
  border-bottom: 1px solid #e7eae6;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-title-items-counter-block {
  display: inline-block;
  margin-left: 5px;
  color: #68736c;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.wc-block-mini-cart__drawer .wc-block-components-drawer__close {
  top: 17px;
  right: 18px;
  color: #66716a;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__items {
  padding: 4px 24px 18px;
}
.wc-block-mini-cart__drawer .wc-block-cart-items__row {
  padding: 20px 0;
  border-bottom: 1px solid #edf0ec;
  align-items: start;
}
.wc-block-mini-cart__drawer .wc-block-cart-items__row:last-child {
  border-bottom: 0;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__image {
  padding-right: 12px;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__image img:not([hidden]) {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid #e9ece8;
  border-radius: 5px;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__product {
  min-width: 0;
}
.wc-block-mini-cart__drawer .wc-block-components-product-name {
  color: #243029;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.wc-block-mini-cart__drawer a.wc-block-components-product-name:hover {
  color: #436f5b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__prices {
  margin-top: 5px;
  color: #68736c;
  font-size: 12px;
}
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description p {
  margin: 7px 0 0;
  color: #758078;
  font-size: 12px;
  line-height: 1.5;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__total {
  color: #243029;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__quantity {
  gap: 10px;
  margin-top: 10px;
}
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
  border: 1px solid #dce2dc;
  border-radius: 5px;
  box-shadow: none;
  height: 32px;
}
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button,
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__input {
  min-height: 30px;
  color: #344239;
  font-size: 13px;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link {
  color: #78827b;
  border-radius: 4px;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:hover {
  color: #2c3830;
  background: #f0f2ef;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
  padding: 20px 24px 22px;
  border-top: 1px solid #e7eae6;
  background: #fbfcfa;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal {
  color: #243029;
  font-size: 14px;
  font-weight: 600;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
  font-size: 18px;
  font-weight: 700;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
  color: #7b857e;
  font-size: 11px;
  font-weight: 400;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions {
  gap: 10px;
  margin-top: 14px;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart {
  color: #334139;
  background: transparent;
  border: 1px solid #cdd6ce;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout {
  color: #fff;
  background: #284436;
  border: 1px solid #284436;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout:hover {
  background: #1e3429;
  border-color: #1e3429;
}
.wc-block-mini-cart__drawer :is(button,a,input):focus-visible {
  outline: 2px solid #356b4e;
  outline-offset: 2px;
}
body:has(.wc-block-mini-cart__drawer[aria-hidden="false"]) #vue-app .kodee-fab {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 520px) {
  .wc-block-mini-cart__drawer .wc-block-mini-cart__title { padding-left: 18px; }
  .wc-block-mini-cart__drawer .wc-block-mini-cart__items { padding-inline: 18px; }
  .wc-block-mini-cart__drawer .wc-block-mini-cart__footer { padding-inline: 18px; }
  .wc-block-mini-cart__drawer .wc-block-cart-item__image img:not([hidden]) { width: 60px; height: 60px; }
  .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions { gap: 8px; }
  .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button { font-size: 13px; }
}

