/*
Theme Name: Dr.SunSimiao
Description: Bilingual Chinese botanical storefront with WooCommerce support.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: dr-sunsimiao
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

:root{--paper:#f9f6ee;--ink:#202b22;--forest:#202d24;--deep:#19251d;--rule:#ded8cb;--muted:#53594f;--gold:#e7c68f;--accent:#795126;--display:Georgia,"Songti SC","Noto Serif CJK SC",serif;--body:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;--gutter:clamp(18px,4.8vw,76px)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--body)}
a{color:inherit;text-underline-offset:.2em}
img{max-width:100%;height:auto;vertical-align:middle}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid #96602a;outline-offset:4px}
h1,h2,h3{margin:0;font:400 1.12em/1.09 var(--display)}
h1{font-size:clamp(38px,5vw,72px)}
h2{font-size:clamp(32px,4vw,52px)}
h3{font-size:clamp(23px,2.1vw,34px)}
p{margin:0 0 1em}
.site-shell{width:min(calc(100% - var(--gutter) * 2),1450px);margin-inline:auto}
.visually-hidden,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{position:fixed;z-index:10;top:40px;left:18px;padding:12px 16px;background:#fff;color:var(--ink)}
.site-header{background:#fffdf7;border-bottom:1px solid var(--rule)}
.masthead{min-height:87px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;border-bottom:1px solid var(--rule)}
.brand,.custom-logo-link{justify-self:start;display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.brand span,.footer-brand{font:700 clamp(22px,2.35vw,31px)/1 var(--display);letter-spacing:-.055em}
.brand img{width:44px;height:48px;object-fit:contain}
.custom-logo{width:auto;max-width:min(220px,42vw);max-height:60px;object-fit:contain}
.main-nav ul{display:flex;justify-content:center;gap:clamp(17px,3.5vw,48px);padding:0;margin:0;list-style:none}
.main-nav a,.header-actions a{display:inline-block;padding:8px 0;text-decoration:none;font-size:14px;font-weight:650;white-space:nowrap}
.main-nav a:hover,.header-actions a:hover{text-decoration:underline}
.header-actions{justify-self:end;display:flex;align-items:center;gap:20px}
.languages{display:flex;gap:11px;align-items:center}
.languages a{color:var(--muted);font-size:13px}
.languages a[aria-current]{color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--accent);text-underline-offset:6px}
.bag{padding-inline-start:15px!important;border-inline-start:1px solid var(--rule)}
.search-bar{display:flex;align-items:stretch;margin-block:13px 16px;border:1px solid var(--rule);background:#fbf8f1}
.search-bar input{width:100%;min-width:0;padding:10px 14px;border:0;background:transparent;color:var(--ink)}
.search-bar button{flex:none;border:0;border-inline-start:1px solid var(--rule);padding:0 17px;background:transparent;color:var(--ink);font-size:13px;font-weight:700;cursor:pointer}
.search-bar button:hover{background:#eee7da}
.search-bar button span{margin-inline-start:6px}
.hero{width:min(calc(100% - var(--gutter) * 2),1450px);margin:20px auto 0;display:grid;grid-template-columns:54% 46%;background:var(--forest);color:#fffbf0;min-height:clamp(455px,41vw,630px)}
.hero-photo{position:relative;min-width:0}
.hero-photo img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 51%}
.hero-copy{align-self:center;padding:clamp(27px,5.5vw,88px)}
.eyebrow{margin:0 0 18px;color:var(--gold);font-size:12px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.hero h1{font-size:clamp(43px,5.6vw,86px);letter-spacing:-.05em;line-height:1}
.hero-description{max-width:34ch;margin:22px 0 30px;color:#e4e4d8}
.button-primary{display:inline-flex;gap:16px;align-items:center;padding:13px 17px;background:var(--gold);color:#252a21;text-decoration:none;font-size:14px;font-weight:750}
.button-primary:hover{background:#f5dcae}
.hero a:focus-visible,.site-footer a:focus-visible{outline-color:var(--gold)}
.collections,.storefront-products{padding-block:clamp(42px,6vw,88px) 0}
.collections h2,.section-heading{margin:0 0 clamp(21px,3vw,36px)}
.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,25px)}
.collection-card{position:relative;min-width:0;background:#fffdf7;border:1px solid var(--rule)}
.collection-card>img{width:100%;aspect-ratio:4/4.35;object-fit:cover}
.collection-copy{padding:clamp(12px,2vw,24px)}
.collection-copy a{display:flex;align-items:baseline;justify-content:space-between;gap:4px;text-decoration:none}
.collection-copy a::after{content:"";position:absolute;inset:0}
.collection-copy a:hover{text-decoration:underline}
.collection-copy h3 span{color:var(--accent);font:16px var(--body)}
.collection-copy p{margin:.6em 0 0;color:var(--muted);font-size:14px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap}
.story{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;margin-block:clamp(46px,7vw,95px);background:#efe8db}
.story-photo{width:100%;height:100%;min-height:290px;object-fit:cover}
.story-copy{align-self:center;padding:clamp(27px,5vw,74px)}
.story-copy img{margin-bottom:20px;object-fit:contain}
.story-copy p{margin:20px 0 0;max-width:46ch;color:var(--muted)}
.site-footer{background:var(--deep);color:#fcf7ea;padding:32px 0}
.footer-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 27px}
.footer-brand{text-decoration:none}
.footer-row p{margin:0}
.footer-row p,.footer-row a:not(.footer-brand),.footer-row small{font-size:14px}
.footer-row small{margin-inline-start:auto}
.page-content,.shop-layout{min-height:48vh;padding-block:clamp(30px,5vw,75px)}
.page-content h1,.shop-layout h1{margin-bottom:24px}
.page-content article+article,.comments{padding-top:24px;margin-top:24px;border-top:1px solid var(--rule)}
.entry-content,.front-content{margin-block:25px}
.entry-content>*+*{margin-top:1em}
.page-content h2{margin-bottom:.45em}
.woocommerce ul.products li.product a img{aspect-ratio:1;object-fit:contain;background:#f1eadf}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--display);font-size:1.3rem}
.woocommerce ul.products li.product .price{color:#495940}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{color:#fff;background:var(--forest);line-height:1.25}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{color:#fff;background:#3a4e3f}
@media(max-width:850px){
	.masthead{grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;padding-top:10px}
	.main-nav{grid-row:2;grid-column:1/-1;overflow-x:auto}
	.main-nav ul{justify-content:flex-start;gap:24px;min-width:max-content}
	.header-actions{grid-row:1;grid-column:2}
	.hero{grid-template-columns:1fr 1fr;min-height:415px}
	.hero-copy{padding:30px}
	.hero h1{font-size:clamp(36px,6vw,57px)}
	.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
	.brand img{width:34px;height:38px}
	.brand span{font-size:22px}
	.header-actions{gap:10px}
	.bag{padding-inline-start:9px!important}
	.hero,.story{grid-template-columns:1fr}
	.hero{margin-top:12px}
	.hero-photo{aspect-ratio:4/3}
	.hero-copy{padding:26px 22px 32px}
	.hero h1{font-size:clamp(38px,10vw,53px)}
	.hero-description{margin:15px 0 23px}
	.story-photo{min-height:0;aspect-ratio:4/3}
	.footer-row small{margin:0;width:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:360px){
	.masthead{gap:2px 8px}
	.brand{gap:6px}
	.brand img{width:27px;height:32px}
	.brand span{font-size:19px}
	.languages{gap:7px}
	.header-actions{gap:7px}
	.bag{font-size:12px!important;padding-inline-start:7px!important}
}
