/* Customer-facing look, matched to the shop's Carrd / email style: rounded pill buttons, soft cards, serif headings. Loaded last. */
button,.button,a.button,input[type=submit],input[type=button]{border-radius:999px!important}
.sfc-qty{border-radius:999px!important}
.sfc-qty button{border-radius:0!important}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:14px!important}
.card,.panel,article.card,.sfc-card,dialog,details.card{border-radius:22px!important}
dialog{border-radius:22px!important}
h1,h2,h3,.sfc-brand-title{font-family:Georgia,'Times New Roman',Times,serif;letter-spacing:.2px}
#sfcToast{border-radius:999px!important;padding:12px 20px!important}

/* Branded header band (same fabric photo as the emails) */
#sfcMemberHeader,.sfc-shop-header{background-color:#2f4a3d!important;background-image:linear-gradient(rgba(36,58,47,.55),rgba(36,58,47,.78)),url(./email/banner.jpg)!important;background-position:center,center 35%!important;background-size:cover,cover!important;background-repeat:no-repeat!important;color:#f4efe4;border-radius:22px;padding:18px 18px 14px!important;margin-bottom:14px}
#sfcMemberHeader h1,.sfc-shop-header .sfc-shop-brand{color:#fff!important;text-shadow:0 2px 6px rgba(90,25,20,.55)}
#sfcMemberHeader .sfc-brand-subtitle,#sfcMemberHeader .muted,#sfcMemberHeader summary,#sfcMemberHeader p{color:#e6ede8!important}
#sfcMemberHeader a{color:#fff}
#sfcMemberHeader button,.sfc-shop-header .sfc-shop-circle{background:rgba(255,255,255,.12)!important;border:1.5px solid rgba(244,239,228,.9)!important;color:#fff!important}
#sfcMemberHeader button svg,.sfc-shop-header .sfc-shop-circle svg{stroke:#fff!important}

/* Shop nav tabs as pills (anchors on Browse) */
.sfc-shop-nav a{border-radius:999px!important}
/* Back to top on Browse, under the floating cart (same as member page) */
body:has(.sfc-shop-header) #sfcBackToTop{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:48px;height:48px;padding:0;border-radius:50%!important;background:#274536;color:#fff;border:0;font-size:22px;line-height:48px;text-align:center;box-shadow:0 4px 10px #0002;z-index:30;cursor:pointer}
body:has(.sfc-shop-header) #sfcBackToTop[hidden]{display:none}
body:has(.sfc-shop-header) #floatingCart{bottom:calc(76px + env(safe-area-inset-bottom))!important}

/* ===== Typography policy (customer pages) =====
   Serif (display)  : brand title, section titles, card titles, ALL buttons & tabs
   Sans  (reading)  : body text, help text, labels, form fields, numbers
   Sizes (mobile)   : T1 brand 28 · T2 section 24 · T3 card 19 · button 16 (tabs 15) · body 16 · help 14 · label 14
   Colours          : ink #2b3a32 · help #5f6f66 · accent #2e503e                                   */
:root{--sfc-serif:Georgia,'Times New Roman',Times,serif;--sfc-sans:-apple-system,BlinkMacSystemFont,system-ui,'Segoe UI',sans-serif;--sfc-ink:#2b3a32;--sfc-help:#5f6f66}
body{font-family:var(--sfc-sans)!important;font-size:16px!important;line-height:1.55!important;color:var(--sfc-ink)}
/* T1 brand */
#sfcMemberHeader h1,.sfc-shop-header .sfc-shop-brand{font-family:var(--sfc-serif)!important;font-size:clamp(20px,6vw,28px)!important;font-weight:700!important;line-height:1.2!important}
/* T2 section titles */
main h2{font-family:var(--sfc-serif)!important;font-size:24px!important;font-weight:700!important;line-height:1.25!important;color:var(--sfc-ink)}
/* T3 card titles (incl. product names) */
main h3,main h4,dialog h2,dialog h3{font-family:var(--sfc-serif)!important;font-size:19px!important;font-weight:700!important;line-height:1.3!important;color:var(--sfc-ink)}
/* Buttons & tabs */
button,.button,a.button,input[type=submit],input[type=button],.sfc-shop-nav a,summary{font-family:var(--sfc-serif)!important;font-weight:600!important;letter-spacing:.2px}
button,.button,a.button{font-size:16px!important}
.sfc-subnav button,#sfcOrderFilters>button{font-size:15px!important}
.sfc-main-nav button,.sfc-shop-nav a{font-size:clamp(11px,3.05vw,15px)!important;letter-spacing:0!important;white-space:nowrap;padding-left:3px!important;padding-right:3px!important}
.sfc-qty button,#sfcMemberHeader .sfc-member-toolbar button,.sfc-shop-circle{font-family:var(--sfc-sans)!important}
/* Body & help text */
main p,main li,main td,main th,main label,main span{font-family:var(--sfc-sans)}
main p,main li,main td{font-size:16px}
.muted,.hint,.tiny,.sfc-mini,.sfc-note,small,p.muted,p.tiny{font-family:var(--sfc-sans)!important;font-size:14px!important;font-weight:400!important;color:var(--sfc-help)!important;line-height:1.5!important}
label{font-size:14px;font-weight:600}
input,select,textarea{font-family:var(--sfc-sans)!important;font-size:16px!important}
/* keep special notes readable */
.sfc-fee-note{color:#8a4b14!important}
#sfcMemberHeader .muted,#sfcMemberHeader p{color:#e6ede8!important}
button span,button strong,.sfc-shop-nav a span{font-family:inherit!important}
label{font-weight:500}

/* NEW / 数字角标：放在胶囊按钮右上角，不占按钮文字空间 */
.sfc-main-nav,.sfc-shop-nav{overflow:visible!important;padding-top:10px!important}
.sfc-main-nav button,.sfc-shop-nav a{position:relative!important;overflow:visible!important}
.sfc-main-nav .sfc-new-badge,.sfc-shop-nav .sfc-new-badge{position:absolute!important;top:-8px;right:-4px;margin:0!important;
  font:700 10px/1 system-ui,-apple-system,sans-serif!important;letter-spacing:.02em;padding:3px 6px!important;border-radius:999px!important;
  background:#b7312b!important;color:#fff!important;border:2px solid #f7f8f4;box-shadow:0 1px 3px #0003;pointer-events:none;z-index:2;white-space:nowrap}
