/*
Theme Name: 原味 YUANWEI · Storefront 子主题
Description: A warm, responsive local store preview built on the free Storefront theme.
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuanwei-store
*/
:root{--paper:#f9f8f4;--surface:#efeee8;--ink:#292e28;--muted:#666b61;--line:#dedfd5;--accent:#434d3c;--white:#fff;--serif:Georgia,'Songti SC','STSong','SimSun',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}
html{scroll-behavior:smooth}body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.8}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:4px}img{border-radius:0}button,.button,input[type=submit]{background:var(--accent);color:var(--white);border:0;border-radius:0;font-weight:400}button:hover,.button:hover,input[type=submit]:hover{background:#30392b;color:var(--white)}.yw-announcement{background:var(--accent);color:#f7f7ef;text-align:center;font-size:11px;letter-spacing:1.3px;min-height:32px;display:flex;justify-content:center;align-items:center;gap:24px;padding:4px 12px}.yw-announcement span{font-size:9px;opacity:.8;border-left:1px solid #99a28f;padding-left:24px}.yw-header{height:100px;display:flex;align-items:center;justify-content:space-between;gap:32px;max-width:1600px;margin:auto;padding:0 5%;border-bottom:1px solid var(--line)}.yw-brand{font-family:var(--serif);font-size:31px;letter-spacing:5px;line-height:1.2;display:flex;align-items:baseline;gap:12px;white-space:nowrap}.yw-brand span{font-family:var(--sans);font-size:10px;letter-spacing:2px}.yw-brand i{font-family:var(--sans);font-size:10px;letter-spacing:1px;font-style:normal;margin-left:12px;color:var(--muted)}.yw-nav{display:flex;gap:28px;align-items:center;font-size:13px;white-space:nowrap}.yw-nav a{padding:8px 0;border-bottom:1px solid transparent}.yw-nav a:hover,.yw-nav [aria-current=page]{border-color:var(--accent)}.yw-actions{display:flex;align-items:center;gap:20px}.yw-currency{font-size:10px;white-space:nowrap;letter-spacing:1px}.yw-icon-button{padding:0;background:transparent;color:var(--ink);width:36px;height:40px;display:grid;place-items:center}.yw-icon-button:hover{background:var(--surface);color:var(--ink)}.yw-cart-link{display:flex;align-items:center;gap:7px;min-height:44px}.yw-cart-count{font-size:11px}.yw-menu-button{display:none}.site-content>.col-full{max-width:1440px;margin:auto;padding:0 5%}.home .site-content>.col-full{max-width:none;padding:0}.yw-hero{position:relative;max-width:1600px;min-height:600px;margin:auto;display:grid;grid-template-columns:44% 56%;background:var(--surface)}.yw-hero-image{grid-column:2;grid-row:1;width:100%;height:100%;object-fit:cover;object-position:62% center;position:absolute;inset:0}.yw-hero-panel{grid-column:1;grid-row:1;z-index:1;padding:76px 48px 32px max(48px,11.36%);display:flex;flex-direction:column;align-items:flex-start}.yw-eyebrow{font-size:10px;font-weight:500;letter-spacing:2.5px;margin:0 0 24px;line-height:1.6;display:flex;align-items:center;gap:12px}.yw-eyebrow>span{display:block;width:24px;height:1px;background:var(--accent)}.yw-hero h1{font-family:var(--serif);font-weight:400;font-size:clamp(36px,3.6vw,58px);letter-spacing:2px;line-height:1.45;margin:0 0 24px}.yw-hero-description{color:var(--muted);font-size:13px;line-height:2.2;margin:0 0 36px}.yw-button{background:var(--accent);color:var(--white);padding:15px 24px;display:inline-flex;align-items:center;gap:44px;font-size:13px;min-height:50px}.yw-button:hover{background:#30392b;color:var(--white)}.yw-hero-foot{border-top:1px solid #d1d3c8;width:100%;padding-top:16px;margin-top:auto;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted)}.yw-image-caption{position:absolute;right:28px;bottom:20px;z-index:1;color:white;text-shadow:0 1px 5px #000;font-size:9px;letter-spacing:2px;display:flex;gap:20px}.yw-values{max-width:1440px;margin:auto;padding:24px 5%;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:1px;color:var(--muted)}.yw-values b{font-weight:400;font-family:Georgia,serif;font-size:13px;margin-right:12px;color:var(--ink)}.yw-featured{max-width:1440px;margin:auto;padding:64px 5% 40px}.yw-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.yw-section-heading .yw-eyebrow{margin-bottom:12px}.yw-section-heading h2{font-family:var(--serif);font-weight:400;font-size:31px;letter-spacing:2px;margin:0}.yw-text-link{display:inline-flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);font-size:12px;padding:8px 0}.yw-text-link:hover{border-color:var(--ink)}.yw-section-description{font-size:12px;color:var(--muted);margin:12px 0 28px}.yw-featured ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.yw-featured ul.products:before,.yw-featured ul.products:after{display:none}.yw-featured ul.products li.product{width:auto!important;float:none!important;margin:0!important;text-align:left!important;position:relative;padding-bottom:16px}.yw-featured ul.products li.product img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;margin-bottom:20px;transition:filter .2s}.yw-featured ul.products li.product a:hover img{filter:brightness(.95)}ul.products li.product h2.woocommerce-loop-product__title{font-size:15px;font-weight:400;letter-spacing:.5px;margin:0 0 6px}ul.products li.product .price{color:var(--ink);font-size:13px;margin-bottom:12px}ul.products li.product .button{background:transparent;color:var(--muted);border-bottom:1px solid var(--line);font-size:11px;padding:4px 0}.onsale{font-size:10px;border:0;background:var(--paper);color:var(--ink);padding:4px 8px}.yw-featured .onsale{position:absolute;top:12px;left:12px;z-index:2}.yw-story{max-width:1296px;margin:24px auto 0;display:grid;grid-template-columns:1fr 1fr;background:var(--surface)}.yw-story-photo img{width:100%;height:460px;object-fit:cover}.yw-story-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:48px 15%}.yw-story-copy h2{font-family:var(--serif);font-weight:400;font-size:38px;line-height:1.5;letter-spacing:3px;margin:0 0 24px}.yw-story-copy>p:not(.yw-eyebrow){font-size:12px;color:var(--muted);line-height:2.2;margin-bottom:20px}.yw-closing{text-align:center;padding:76px 20px}.yw-closing .yw-eyebrow{justify-content:center;margin-bottom:20px}.yw-closing h2{font-family:var(--serif);font-weight:400;font-size:30px;letter-spacing:3px;margin-bottom:20px}.yw-closing>a{font-size:12px;border-bottom:1px solid var(--line);padding-bottom:8px}.yw-footer{background:#eeeee6;padding:48px 5% 16px}.yw-footer-main{max-width:1296px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1.2fr 1.2fr;gap:40px;padding-bottom:40px}.yw-footer-main p{font-size:11px;color:var(--muted);line-height:2;margin-top:20px}.yw-footer-main h2{font-size:12px;font-weight:500;margin-bottom:20px}.yw-footer-main>div>a:not(.yw-brand){display:block;font-size:11px;color:var(--muted);margin-bottom:12px}.yw-footer-note>span{font-family:Georgia,serif;font-size:15px;letter-spacing:1px}.yw-footer-note{border-left:1px solid var(--line);padding-left:40px}.yw-footer-bottom{max-width:1296px;margin:auto;padding-top:20px;border-top:1px solid #d7d9cc;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted)}.yw-search-dialog{border:1px solid var(--line);padding:40px;width:min(600px,calc(100% - 32px));background:var(--paper);color:var(--ink)}.yw-search-dialog::backdrop{background:#20271e88}.yw-search-dialog h2{font-family:var(--serif);font-weight:400;font-size:26px}.yw-search-dialog label{display:block;font-size:12px;margin-bottom:8px}.yw-search-row{display:flex;gap:8px}.yw-search-row input{min-width:0;flex:1}.yw-dialog-close{position:absolute;top:8px;right:8px;font-size:24px;background:none;color:var(--ink);padding:0 12px}.yw-search-dialog form{margin-bottom:0}.site-main{padding:36px 0}.home .site-main{padding:0}.woocommerce-breadcrumb{font-size:11px;margin-bottom:12px;padding-top:24px}.woocommerce-products-header h1,.entry-title{font-family:var(--serif);font-size:36px;font-weight:400;letter-spacing:2px}.woocommerce-products-header{padding-bottom:24px!important}.woocommerce-ordering select{padding:10px;border:1px solid var(--line);background:var(--paper);max-width:100%}.woocommerce-result-count{font-size:12px;color:var(--muted)}.woocommerce-info,.woocommerce-message{background:var(--accent)}.woocommerce-error{background:#8e493b}.woocommerce-message a{color:white}.woocommerce-cart .entry-content,.woocommerce-checkout .entry-content{font-size:14px}.woocommerce table.shop_table{border:1px solid var(--line)}table:not(.has-background) th{background:var(--surface)}table:not(.has-background) tbody td{background:var(--paper)}.woocommerce table td a{font-weight:400}.woocommerce-checkout h3,.cart_totals h2{font-size:22px;font-family:var(--serif);font-weight:400}.single-product .product_title{font-family:var(--serif);font-size:36px;font-weight:400}.single-product div.product .woocommerce-product-gallery img{max-height:650px;object-fit:cover;width:100%}.single-product div.product .summary{padding:20px 0}.single-product .woocommerce-product-details__short-description{color:var(--muted);font-size:14px}.product_meta{font-size:12px}.woocommerce-tabs{font-size:14px}.woocommerce-tabs h2{font-size:24px;font-weight:400}.storefront-handheld-footer-bar{display:none}.woocommerce-checkout #payment .payment_methods>.wc_payment_method>label{font-weight:400}.woocommerce-checkout #payment .place-order{background:var(--surface)}.woocommerce-order-received .woocommerce-thankyou-order-received{font-size:22px}.woocommerce-order-received .entry-content:before{content:'演示订单已生成 · 不会真实扣款或发货';display:block;padding:16px;background:var(--surface);margin-bottom:24px}.site-content .widget-area{display:none}.entry-content a:not(.button){text-decoration:underline}.home .entry-content a{text-decoration:none}.woocommerce-privacy-policy-text{font-size:12px;color:var(--muted)}
@media(min-width:1600px){.yw-hero{min-height:660px}.yw-hero-panel{padding-top:96px}.yw-hero-foot{margin-top:64px}}
@media(max-width:1200px){.yw-brand i{display:none}.yw-nav{gap:20px}.yw-header{gap:20px}.yw-actions{gap:12px}.yw-hero{min-height:540px}.yw-hero-panel{padding:56px 32px 28px 11.36%}.yw-hero h1{font-size:42px}.yw-hero-foot{font-size:9px;margin-top:48px}.yw-story{margin-left:5%;margin-right:5%}}
@media(max-width:900px){.yw-header{height:84px}.yw-brand{font-size:27px}.yw-brand span{font-size:9px}.yw-nav{gap:14px;font-size:11px}.yw-currency{display:none}.yw-actions{gap:8px}.yw-hero{grid-template-columns:48% 52%;min-height:510px}.yw-hero-panel{padding:44px 24px 24px 10.4%}.yw-hero h1{font-size:36px}.yw-hero-description{font-size:12px}.yw-hero-foot{display:none}.yw-hero .yw-eyebrow{font-size:8px;letter-spacing:1.5px}.yw-button{gap:24px;padding:13px 20px}.yw-values{font-size:10px;letter-spacing:0}.yw-values b{margin-right:6px}.yw-featured ul.products{gap:16px}.yw-story-photo img{height:420px}.yw-story-copy{padding:32px 12%}.yw-story-copy h2{font-size:31px}.yw-footer-main{gap:24px}.yw-footer-note{padding-left:24px}.yw-featured ul.products li.product h2{font-size:13px}}
@media(max-width:680px){.yw-announcement{font-size:9px;letter-spacing:.4px;min-height:30px}.yw-announcement span{display:none}.yw-header{height:76px;padding:0 6%;position:relative;z-index:5}.yw-brand{font-size:27px;gap:8px}.yw-brand span{font-size:8px;letter-spacing:1px}.yw-menu-button{display:grid}.yw-nav{display:none;position:absolute;top:76px;left:0;right:0;background:var(--paper);padding:16px 6%;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:4px;font-size:14px}.yw-nav.is-open{display:flex}.yw-nav a{padding:10px 0}.yw-actions{gap:6px}.yw-icon-button{width:32px}.yw-cart-link{gap:4px}.yw-hero{display:flex;flex-direction:column;min-height:0}.yw-hero-panel{padding:40px 7% 36px;order:1}.yw-hero h1{font-size:38px;line-height:1.45;letter-spacing:1px;margin-bottom:16px}.yw-hero .yw-eyebrow{font-size:9px;margin-bottom:20px}.yw-hero-description{font-size:12px;margin-bottom:24px}.yw-hero-image{position:relative;order:2;height:300px;object-position:center 60%;width:100%}.yw-image-caption{bottom:14px;right:16px;font-size:8px}.yw-image-caption span{display:none}.yw-values{padding:20px 6%;justify-content:center;flex-wrap:wrap;gap:12px 20px;font-size:10px}.yw-values span:last-child{display:none}.yw-featured{padding:40px 6% 24px}.yw-section-heading h2{font-size:25px;letter-spacing:1px}.yw-section-heading .yw-eyebrow{font-size:8px;letter-spacing:1.7px}.yw-section-description{font-size:11px}.yw-text-link{font-size:11px;gap:12px;white-space:nowrap}.yw-featured ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.yw-featured ul.products li.product h2{font-size:13px}.yw-featured ul.products li.product img{margin-bottom:12px}.yw-story{grid-template-columns:1fr;margin:8px 6% 0}.yw-story-photo img{height:250px}.yw-story-copy{padding:32px 28px}.yw-story-copy .yw-eyebrow{font-size:9px}.yw-story-copy h2{font-size:31px}.yw-closing{padding:48px 20px}.yw-closing h2{font-size:24px;letter-spacing:1px}.yw-closing .yw-eyebrow{font-size:9px}.yw-footer{padding:32px 6% 20px}.yw-footer-main{grid-template-columns:1fr 1fr;gap:24px;padding-bottom:24px}.yw-footer-main>div:first-child{grid-column:1/-1}.yw-footer-main p{margin-bottom:0}.yw-footer-note{display:none}.yw-footer-main h2{margin-bottom:12px}.yw-footer-bottom{flex-direction:column;gap:6px;font-size:9px}.yw-footer-bottom span:last-child{display:none}.site-content>.col-full{padding:0 6%}.yw-search-dialog{padding:36px 20px 24px}.yw-search-dialog h2{font-size:22px}.yw-search-row{flex-direction:column}.site-main{padding:24px 0}.woocommerce-products-header h1,.entry-title,.single-product .product_title{font-size:28px}.woocommerce-ordering{float:none;width:100%}.woocommerce-ordering select{width:100%}.woocommerce-result-count{display:block!important}.woocommerce ul.products li.product{width:46.2%;float:left;clear:none}.woocommerce ul.products li.product:nth-child(odd){margin-right:7.6%;clear:both}.woocommerce ul.products li.product:nth-child(even){margin-right:0}.single-product div.product .woocommerce-product-gallery img{max-height:450px}.woocommerce-checkout .col2-set,.woocommerce-checkout #order_review,.woocommerce-checkout #order_review_heading{float:none;width:100%;margin:0}.yw-announcement,.yw-header,.yw-footer{overflow-wrap:break-word}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
input[type=radio],input[type=checkbox]{accent-color:var(--accent)}
#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label:before{color:var(--accent)}
