/*
Theme Name: 华人优选超市
Description: 马来西亚中文 WooCommerce 超市主题
Version: 2.0.0
*/
:root{--green:#05bd61;--deep:#00aa50;--orange:#ff8a00;--bg:#f3f4f7;--text:#282828;--muted:#6f7478;--line:#ffd188}*{box-sizing:border-box}html{background:#e7e9ec}body{margin:0;background:#e7e9ec;color:var(--text);font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif}.app-shell{position:relative;width:min(950px,100%);min-height:100vh;margin:auto;background:var(--bg);box-shadow:0 0 0 1px #d8dce0;overflow:hidden;padding-bottom:86px}.app-header{height:84px;padding:14px 24px 15px 20px;background:linear-gradient(90deg,#00c56b,#00ad55);display:flex;align-items:center;gap:16px}.icon-button{flex:0 0 30px;border:0;background:none;color:#fff;padding:2px;cursor:pointer}.icon-button svg,.app-search svg,.bottom-nav svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app-search{height:45px;flex:1;display:flex;align-items:center;gap:8px;padding:0 17px;background:#fff;border-radius:28px;color:#a2a6aa}.app-search svg{width:20px;height:20px;stroke-width:1.5}.app-search input{width:100%;border:0;outline:0;font-size:16px;color:#333;background:transparent}.app-search input::placeholder{color:#a7aaae}.app-main{padding:15px 19px 42px}.promo-banner{position:relative;height:188px;overflow:hidden;border-radius:15px;background:#ffd437}.promo-banner img{position:absolute;width:950px;height:670px;max-width:none;left:-25px;top:-99px}.policy-card{margin-top:13px;padding:14px 16px 15px;border:2px solid var(--line);border-radius:15px;background:#fffdf9}.policy-heading{display:flex;align-items:center;gap:11px;color:#a84200}.policy-heading span{padding:2px 10px;border-radius:999px;background:var(--orange);color:#fff;font-size:13px;font-weight:800}.policy-heading strong{font-size:17px}.policy-links{display:flex;gap:11px;flex-wrap:wrap;margin-top:10px}.policy-links a{border:1px solid #ffc56e;border-radius:999px;padding:5px 13px;color:#ad4b08;font-size:14px;font-weight:700}.category-panel{margin-top:15px;padding:21px 28px 18px;background:#fff;border-radius:15px;display:grid;grid-template-columns:repeat(4,1fr);row-gap:17px}.category-item{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;color:#444;font-size:15px;cursor:pointer}.category-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:var(--tile)}.category-icon svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round}.category-item.selected .category-icon{outline:3px solid rgba(0,190,96,.2);transform:translateY(-2px)}.catalog{padding:22px 5px}.catalog-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.catalog-title strong{font-size:20px}.catalog-title span{font-size:13px;color:var(--muted)}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.product-card{min-width:0;overflow:hidden;border-radius:13px;background:#fff}.product-image{display:block;aspect-ratio:1/1;background:#f1f1f1}.product-image img{display:block;width:100%;height:100%;object-fit:cover}.product-body{padding:11px}.product-body h3{font-size:15px;line-height:1.35;margin:0 0 5px}.product-body p{height:34px;overflow:hidden;margin:0 0 10px;color:#8a8d90;font-size:12px;line-height:17px}.product-foot{display:flex;align-items:center;justify-content:space-between;gap:5px}.price{font-size:15px;font-weight:800;color:#e45b24}.product-card .add_to_cart_button{min-width:34px!important;height:34px!important;padding:7px!important;border:0!important;border-radius:50%!important;background:var(--green)!important;color:#fff!important;font-size:0!important}.product-card .add_to_cart_button:after{content:'+';font-size:22px;line-height:18px}.product-card .added_to_cart{display:none}.empty{display:none;padding:40px;text-align:center;color:var(--muted);background:#fff;border-radius:14px}.bottom-nav{position:fixed;z-index:80;left:50%;bottom:0;transform:translateX(-50%);width:min(950px,100%);height:65px;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.97);box-shadow:0 -2px 12px rgba(0,0,0,.06);border-top:1px solid #eef0f1}.bottom-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#3e4245;font-size:14px}.bottom-nav svg{width:26px;height:26px}.bottom-nav a.active{color:var(--green)}.cart-count{position:absolute;top:3px;margin-left:30px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:10px;background:#ff5d45;color:#fff;font-size:10px}.notice-toast{position:fixed;z-index:100;left:50%;bottom:82px;transform:translate(-50%,20px);opacity:0;padding:10px 18px;border-radius:20px;background:#252525;color:#fff;transition:.2s}.notice-toast.show{opacity:1;transform:translate(-50%,0)}.store-page{padding:24px 20px 92px}.store-page h1{font-size:28px}.woocommerce .button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button{border-radius:10px!important;background:var(--green)!important;color:#fff!important}
@media(max-width:700px){.app-header{height:72px;padding:11px 13px;gap:9px}.app-search{height:43px}.app-main{padding:12px 12px 35px}.promo-banner{height:30vw;min-height:118px;max-height:188px}.promo-banner img{width:100vw;height:70.526vw;left:-2.63vw;top:-10.42vw}.category-panel{padding:18px 10px;row-gap:15px}.category-icon{width:54px;height:54px}.products{grid-template-columns:repeat(2,1fr)}.policy-links{gap:7px}.policy-links a{font-size:12px;padding:4px 9px}}
@media(max-width:380px){.category-panel{grid-template-columns:repeat(4,1fr)}.category-icon{width:49px;height:49px}.category-item{font-size:13px}.policy-heading strong{font-size:15px}.policy-card{padding:12px}.app-search input{font-size:14px}}
