/* Li Hanwen | Sancha product template. All rules are scoped to this isolated section. */
.hw-sancha-main { --sancha-ink:#322d27; --sancha-muted:#78726a; --sancha-line:#d9d6d1; --sancha-bg:#efefef;
  display:grid!important;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important;
  gap:55px clamp(26px,4.2vw,68px)!important;align-items:start!important;
  max-width:1200px;margin:0 auto;padding:0 20px 34px;color:var(--sancha-ink);box-sizing:border-box;
}
.hw-sancha-main *, .hw-sancha-main *::before,.hw-sancha-main *::after {box-sizing:border-box;}
.hw-sancha-main [hidden] {display:none!important;}
.hw-sancha-main > .product-detail__media-group {grid-column:1;grid-row:1;position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0;}
.hw-sancha-main > .product-detail__info {grid-column:2;grid-row:1;width:100%!important;max-width:100%!important;min-width:0;position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:4px 0 0!important;}
.hw-sancha-main > .product-detail__info > * {width:100%;max-width:100%;}
.hw-sancha-main .product-detail__title {font-family:'Noto Serif TC','Noto Serif SC','Songti SC',serif;font-size:clamp(25px,2.1vw,32px)!important;font-weight:500!important;line-height:1.5;margin:0 0 4px!important;text-align:left!important;letter-spacing:0;overflow-wrap:anywhere;}
.hw-sancha-brief {order:1;margin:0 0 18px!important;font-size:13px;color:var(--sancha-muted);line-height:1.8;}
.hw-sancha-main .product-detail__price {order:2;margin:0 0 18px!important;padding:0!important;line-height:1.5;}
.hw-sancha-main .product-detail__price .product-price {font-size:clamp(25px,2.2vw,32px);}
.hw-sancha-main .hw-product-trust {display:none!important;}
.hw-sancha-main .hw-sancha-purchase {order:3;width:100%;padding-top:16px;border-top:1px solid var(--sancha-line);}
.hw-sancha-field-label {display:block;margin:0 0 11px;color:#514c45;font-size:13px;font-weight:500;line-height:1.55;}
.hw-sancha-tabs {display:flex;gap:27px;border-bottom:1px solid var(--sancha-line);margin:0 0 0;}
.hw-sancha-tab {border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:12px 2px 10px;background:transparent!important;border-radius:0;color:var(--sancha-muted);font-size:14px;line-height:1.5;cursor:pointer;font-family:inherit;}
.hw-sancha-tab.is-active,.hw-sancha-tab[aria-pressed='true'] {color:var(--sancha-ink);border-bottom-color:#493a2d;font-weight:600;}
.hw-sancha-tab:focus-visible,.hw-sancha-custom-panel button:focus-visible,.hw-sancha-custom-panel a:focus-visible {outline:2px solid #967b5e;outline-offset:2px;}
.hw-sancha-loose-help {color:var(--sancha-muted);font-size:12px;line-height:1.85;margin:11px 0 12px;}
.hw-sancha-main .product-detail__variant-picker {order:4;margin-top:11px!important;margin-bottom:12px!important;}
.hw-sancha-main .variant-picker__group {padding:0;margin:0 0 9px;}
.hw-sancha-main .variant-picker__group-head {margin-bottom:10px;}
.hw-sancha-main .variant-picker__group-label {font-size:13px!important;font-weight:500!important;color:#514c45;}
.hw-sancha-main .product-detail__buy-button-group {order:5;margin:9px 0 0!important;width:100%;}
.hw-sancha-main .hw-inquiry-buttons {gap:9px;}
.hw-sancha-main .hw-inquiry-buttons__separator,.hw-sancha-main .hw-inquiry-channels,.hw-sancha-main .hw-inquiry-buttons__wechat,.hw-sancha-main .hw-inquiry-buttons__note {display:none!important;}
.hw-sancha-main .hw-inquiry-buttons__help {order:0;margin:4px 0!important;font-size:12px;color:var(--sancha-muted);}
.hw-sancha-main .hw-inquiry-buttons__primary {order:1;min-height:47px!important;border-radius:0!important;font-size:14px!important;background:transparent!important;color:var(--sancha-ink)!important;border:1px solid #aaa39a!important;}
.hw-sancha-main .hw-inquiry-buttons__primary:hover {background:#e3e0da!important;}
.hw-sancha-main .hw-inquiry-buttons__native .block-product-buy-button {border-radius:0!important;background:#37312a!important;border-color:#37312a!important;min-height:48px!important;}
.hw-sancha-main .hw-inquiry-buttons__native .block-product-buy-button:hover {background:#584b3e!important;}
.hw-sancha-main .hw-inquiry-buttons__native > div {display:flex!important;flex-wrap:nowrap!important;gap:10px!important;width:100%!important;}
.hw-sancha-main .hw-inquiry-buttons__native .block-product-buy-button-wrapper {flex:1 1 0;min-width:0;width:auto;max-width:100%;}
.hw-sancha-main .hw-inquiry-buttons__native .block-product-buy-button {width:100%!important;max-width:100%;}
.hw-sancha-main .hw-inquiry-buttons__native .quantity-selector__input {max-width:125px;min-width:93px;}
/* Only this template: separate WhatsApp and LINE links immediately below Messenger. */
.hw-sancha-main .hw-sancha-loose-contact {
  order:6; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px; margin:10px 0 0; width:100%;
}
.hw-sancha-main .hw-sancha-loose-channel {
  display:flex; align-items:center; justify-content:center; min-height:45px;
  border:1px solid #aaa39a; border-radius:0; padding:10px 8px;
  text-align:center; color:var(--sancha-ink)!important;
  text-decoration:none!important; font-size:13px; line-height:1.5;
  background:transparent; font-weight:400;
}
.hw-sancha-main .hw-sancha-loose-channel:hover {background:#e3e0da;}
.hw-sancha-main .hw-sancha-loose-channel:focus-visible {outline:2px solid #967b5e; outline-offset:2px;}
.hw-sancha-main[data-sancha-mode='custom'] .hw-sancha-loose-contact {display:none!important;}

/* Keep genuine SHOPLINE SKU/cart only for loose-tea mode. Custom crushing is consultation-only. */
.hw-sancha-main[data-sancha-mode='custom'] .product-detail__variant-picker,
.hw-sancha-main[data-sancha-mode='custom'] .product-detail__buy-button-group {display:none!important;}
.hw-sancha-custom-panel {padding-top:19px;}
.hw-sancha-custom-tip {font-size:13px;line-height:1.85;color:#716b63;margin:0 0 20px;}
.hw-sancha-custom-field {border:0;padding:0;margin:0 0 21px;min-width:0;}
.hw-sancha-qty {display:flex;align-items:center;gap:0;}
.hw-sancha-qty button {width:40px;height:39px;background:transparent;border:1px solid #cbc6bf;cursor:pointer;font-size:19px;color:#5f5952;line-height:1;}
.hw-sancha-qty input {text-align:center;width:53px;height:39px;border:1px solid #cbc6bf;border-left:0;border-right:0;background:transparent;border-radius:0;font:inherit;font-size:13px;appearance:textfield;-moz-appearance:textfield;color:var(--sancha-ink);}
.hw-sancha-qty input::-webkit-inner-spin-button,.hw-sancha-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
.hw-sancha-qty span {font-size:12px;margin-left:11px;color:var(--sancha-muted);}
.hw-sancha-shape-options {display:flex;gap:8px;flex-wrap:wrap;}
.hw-sancha-shape-options label {position:relative;cursor:pointer;font-size:12px;line-height:1.5;}
.hw-sancha-shape-options input {position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer;}
.hw-sancha-shape-options span {display:block;border:1px solid var(--sancha-line);padding:8px 11px;min-height:36px;color:#5f5952;transition:background .16s ease;}
.hw-sancha-shape-options input:checked+span {background:#e4e0d9;border-color:#8c7e6f;color:#342e28;}
.hw-sancha-shape-options input:focus-visible+span {outline:2px solid #967b5e;outline-offset:2px;}
.hw-sancha-fee {border-top:1px solid var(--sancha-line);padding-top:14px;color:#756e67;font-size:12px;line-height:1.9;margin:0 0 19px;}
.hw-sancha-fee strong {color:#42372d;font-size:14px;font-weight:500;}
.hw-sancha-custom-primary {display:flex!important;align-items:center;justify-content:center;min-height:49px;padding:10px 14px;background:#37312a!important;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:500;}
.hw-sancha-custom-primary:hover {background:#53473c!important;}
.hw-sancha-custom-links {display:flex;align-items:center;justify-content:center;gap:32px;padding:12px 0 0;font-size:13px;}
.hw-sancha-custom-links a {color:#5c5247!important;text-decoration:underline;text-underline-offset:3px;}
.hw-sancha-custom-notice {font-size:11px;color:#8c857f;line-height:1.75;margin:12px 0 0;}
.hw-sancha-notes {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:45px 70px;padding-top:42px;margin-top:9px;border-top:1px solid var(--sancha-line);min-width:0;}
.hw-sancha-notes section {min-width:0;}
.hw-sancha-notes h2 {font-family:'Noto Serif TC','Noto Serif SC','Songti SC',serif;font-size:clamp(20px,1.8vw,24px);font-weight:500;line-height:1.6;margin:0 0 19px;color:var(--sancha-ink);}
.hw-sancha-description {font-size:14px;color:#5c5750;line-height:1.95;overflow-wrap:anywhere;}
.hw-sancha-description p {margin:0 0 12px;line-height:1.95;}
.hw-sancha-description img,.hw-sancha-description video,.hw-sancha-description iframe {max-width:100%;height:auto;}
.hw-sancha-description table{max-width:100%;display:block;overflow-x:auto;}
.hw-sancha-facts dl {margin:0;padding:0;}
.hw-sancha-facts dl>div {display:grid;grid-template-columns:96px minmax(0,1fr);gap:15px;border-bottom:1px solid #dedbd6;padding:12px 0;font-size:13px;line-height:1.75;}
.hw-sancha-facts dl>div:first-child {border-top:1px solid #dedbd6;}
.hw-sancha-facts dt {color:#868079;}
.hw-sancha-facts dd {margin:0;color:#544f48;white-space:pre-line;overflow-wrap:anywhere;}
.hw-sancha-custom-note {grid-column:1/-1;border-top:1px solid var(--sancha-line);padding-top:30px;margin-top:13px;display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px 55px;}
.hw-sancha-custom-note p {margin:0 0 11px;max-width:790px;font-size:13px;color:#625c55;line-height:1.95;}
.hw-sancha-custom-note p:last-child {margin-bottom:0;}
@media(max-width:959px){
 .hw-sancha-main{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:0 18px 30px;}
 .hw-sancha-main > .product-detail__media-group{grid-column:1;grid-row:1;}
 .hw-sancha-main > .product-detail__info{grid-column:1;grid-row:2;padding:22px 0 0!important;}
 .hw-sancha-main > .hw-sancha-notes{grid-column:1;grid-row:3;}
 .hw-sancha-notes {display:block;padding-top:28px;margin-top:44px;}
 .hw-sancha-notes > section + section {margin-top:33px;}
 .hw-sancha-custom-note{display:block;padding-top:30px;margin-top:34px;}
 .hw-sancha-main .product-detail__title {font-size:26px!important;}
 .hw-sancha-custom-links {gap:20px;}
}
@media(max-width:420px){
 .hw-sancha-main {padding-inline:13px;}
 .hw-sancha-main .hw-inquiry-buttons__native > div{gap:8px!important;}
 .hw-sancha-shape-options{gap:7px;}
 .hw-sancha-notes h2{font-size:21px;}
}
@media(prefers-reduced-motion: reduce) {.hw-sancha-shape-options span{transition:none;}}
