
:root{--ink:#26231f;--yellow:#f6b726;--soft:#fff4d6;--mist:#f5f4f1;--line:#e7e4dd;--muted:#6a665e;--font:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font);color:var(--ink);background:var(--mist);line-height:1.5;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:6px}
.wrap{width:min(1180px,100% - 32px);margin-inline:auto}

/* header */
header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
header .wrap{height:58px;display:flex;align-items:center}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.05rem}
.logo i{width:30px;height:30px;border-radius:9px;background:var(--yellow);display:grid;place-items:center}

/* banner */
.banner{position:relative;overflow:hidden;background:var(--ink)}
.track{display:flex;transition:transform .5s ease}
.slide{flex:0 0 100%;min-height:300px;display:flex;align-items:center;position:relative;overflow:hidden}
.slide .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 0 52px}
.slide h2{font-size:clamp(1.9rem,5vw,3.4rem);font-weight:800;line-height:1.1;max-width:14ch}
.slide p{margin-top:10px;font-weight:600;font-size:1.05rem}
.slide .btn{display:inline-block;margin-top:20px;background:var(--ink);color:#fff;font-weight:700;padding:12px 24px;border-radius:8px}
.slide.dark .btn{background:var(--yellow);color:var(--ink)}
.slide svg{width:min(300px,34vw);flex:none}
.slide>img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dots{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:10px}
.dots button{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.7);cursor:pointer;padding:0}
.dots button[aria-current="true"]{background:var(--ink);box-shadow:0 0 0 2px #fff}

/* products */
main{padding:32px 0 48px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;border:1px solid var(--line);transition:box-shadow .2s}
.card:hover{box-shadow:0 10px 26px rgba(38,35,31,.1)}
.pic{aspect-ratio:1/1;border-radius:10px;background:var(--soft);display:grid;place-items:center;overflow:hidden}
.pic img{width:100%;height:100%;object-fit:contain;background:#fff}
.card h3{font-size:.95rem;font-weight:700;margin:12px 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.price{font-weight:800;font-size:1.1rem}
.price s{color:var(--muted);font-weight:600;font-size:.85rem;margin-left:6px}
.buy{margin-top:12px;background:var(--yellow);font-weight:800;font-size:.9rem;text-align:center;padding:11px;border-radius:8px;transition:background .15s}
.buy:hover{background:#ffc63d}


/* product detail */
.open{display:block;color:inherit}
body.lock{overflow:hidden}
.detail{position:fixed;inset:0;z-index:20;background:var(--mist);overflow-y:auto;display:none;-webkit-overflow-scrolling:touch}
.detail.show{display:block}
.dbar{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:2}
.dbar .wrap{height:56px;display:flex;align-items:center;gap:12px}
.back{font:inherit;font-weight:700;border:1.5px solid var(--ink);background:#fff;border-radius:8px;padding:8px 14px;cursor:pointer}
.dbar b{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dbody{padding:28px 0 56px}
.dgrid{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start}
.gal .main{aspect-ratio:1/1;background:#fff;border-radius:14px;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.gal .main img{width:100%;height:100%;object-fit:contain}
.thumbs{display:flex;gap:10px;margin-top:12px;overflow-x:auto}
.thumbs button{flex:none;width:64px;height:64px;border-radius:10px;border:2px solid var(--line);background:#fff;padding:0;cursor:pointer;overflow:hidden}
.thumbs button[aria-current="true"]{border-color:var(--yellow)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.info h1{font-size:clamp(1.4rem,3vw,2rem);font-weight:800;line-height:1.25}
.rate{margin-top:8px;color:var(--muted);font-size:.9rem;font-weight:600}
.rate .st{color:var(--yellow);letter-spacing:2px;font-size:1.05rem;margin-right:6px}
.dprice{margin:16px 0 4px;display:flex;align-items:baseline;flex-wrap:wrap;gap:10px}
.dprice b{font-size:2rem;font-weight:800}
.dprice s{color:var(--muted);font-weight:600}
.dprice em{font-style:normal;background:var(--soft);color:#8a5a00;font-weight:800;font-size:.85rem;padding:4px 10px;border-radius:20px}
.info .buy{display:block;margin-top:16px;padding:15px;font-size:1rem}
.note{margin-top:8px;font-size:.78rem;color:var(--muted);text-align:center}
.box{margin-top:26px}
.box h2{font-size:1.05rem;font-weight:800;margin-bottom:10px}
.box p{color:#3d3a34;font-size:.95rem}
.box ul{padding-left:20px;display:grid;gap:6px;font-size:.95rem;color:#3d3a34}
.specs{width:100%;border-collapse:collapse;font-size:.92rem;background:#fff;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.specs th,.specs td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.specs tr:last-child th,.specs tr:last-child td{border-bottom:0}
.specs th{width:38%;color:var(--muted);font-weight:600;background:var(--mist)}
@media (max-width:760px){.dgrid{grid-template-columns:1fr;gap:22px}.dprice b{font-size:1.7rem}}

/* header actions, cart, toast */
header .wrap{justify-content:space-between;gap:12px}
.hact{display:flex;align-items:center;gap:8px}
.hbtn{font:inherit;font-weight:700;font-size:.85rem;border:1.5px solid var(--ink);background:#fff;color:var(--ink);border-radius:8px;padding:8px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;position:relative;white-space:nowrap}
.hbtn:hover{background:var(--mist)}
.hbtn.primary{background:var(--yellow);border-color:var(--yellow)}
.badge{min-width:20px;height:20px;border-radius:10px;background:var(--ink);color:#fff;font-size:.72rem;font-weight:800;display:grid;place-items:center;padding:0 5px}
.badge[data-n="0"]{display:none}
.chip{display:flex;align-items:center;gap:8px}
.chip[hidden]{display:none}
.hbtn[hidden],.umenu[hidden]{display:none}
.chip{position:relative}
.logo{white-space:nowrap}
.hact{flex-shrink:0}
button.avatar{border:0;font:inherit;font-weight:800;color:var(--ink);cursor:pointer;padding:0}
.umenu{position:absolute;right:0;top:calc(100% + 10px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(38,35,31,.15);padding:12px;min-width:190px;z-index:10;display:grid;gap:10px}
.uname{font-weight:700;font-size:.9rem;word-break:break-all}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--yellow);font-weight:800;display:grid;place-items:center}
.dbar .spacer{flex:1}
button.buy{font-family:inherit;border:0;cursor:pointer;color:var(--ink);width:100%}
.buy+.buy{margin-top:8px}
.buy.ghost{background:#fff;border:1.5px solid var(--ink);font-size:.85rem;padding:9px;font-weight:700}
.buy.ghost:hover{background:var(--mist)}
.info .buy+.buy{margin-top:10px}
.scrim{position:fixed;inset:0;background:rgba(38,35,31,.45);z-index:30;opacity:0;pointer-events:none;transition:opacity .2s}
.scrim.show{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;z-index:31;display:flex;flex-direction:column;transform:translateX(100%);visibility:hidden;transition:transform .25s,visibility .25s}
.drawer.open{transform:none;visibility:visible}
.dh{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
.dh h2{font-size:1.1rem;font-weight:800}
.x{font:inherit;font-size:1.4rem;line-height:1;border:0;background:none;cursor:pointer;padding:4px 8px;border-radius:6px}
.cbody{flex:1;overflow-y:auto;padding:6px 18px}
.empty{text-align:center;color:var(--muted);padding:56px 12px}
.line{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.line .t{width:64px;height:64px;border-radius:10px;background:var(--soft);display:grid;place-items:center;overflow:hidden}
.line .t img{width:100%;height:100%;object-fit:contain;background:#fff}
.line .t svg{width:28px;height:28px}
.line h3{font-size:.9rem;font-weight:700;line-height:1.3}
.line .pr{font-weight:800;font-size:.95rem;margin-top:2px}
.ctl{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:8px}
.qty button{font:inherit;font-weight:800;width:32px;height:32px;border:0;background:none;cursor:pointer}
.qty span{min-width:26px;text-align:center;font-weight:700;font-size:.9rem}
.lnk{font:inherit;font-size:.8rem;font-weight:700;color:var(--muted);background:none;border:0;cursor:pointer;text-decoration:underline;padding:4px}
.cfoot{border-top:1px solid var(--line);padding:16px 18px;display:grid;gap:10px}
.total{display:flex;justify-content:space-between;font-weight:800;font-size:1.05rem}
.cfoot .buy{display:block;text-align:center;padding:14px;margin:0}
.cfoot small{color:var(--muted);font-size:.78rem;line-height:1.4}
.cfoot .lnk{justify-self:start}
.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);background:var(--ink);color:#fff;font-weight:600;font-size:.9rem;padding:11px 18px;border-radius:10px;z-index:40;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 32px);text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (max-width:640px){.hbtn{padding:8px 10px}.chip .nm{display:none}.logo{font-size:.95rem}}
@media (max-width:400px){.logo{font-size:.85rem;gap:8px}.logo i{width:26px;height:26px}.hbtn{padding:7px 9px;font-size:.8rem}}
@media (prefers-reduced-motion:reduce){.drawer,.scrim,.toast{transition:none}}

/* faq */
.faq{background:#fff;border-top:1px solid var(--line);padding:44px 0}
.faq h2{font-size:1.5rem;font-weight:800;text-align:center;margin-bottom:22px}
.faq .list{max-width:760px;margin-inline:auto}
details{border-bottom:1px solid var(--line);padding:14px 0}
summary{cursor:pointer;font-weight:700;font-size:.97rem;list-style:none;display:flex;justify-content:space-between;gap:14px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--muted);font-weight:800;font-size:1.2rem;line-height:1}
details[open] summary::after{content:"\2013"}
details p{color:var(--muted);font-size:.92rem;margin-top:10px}
footer{background:var(--ink);color:#cfcabd;padding:28px 0;font-size:.82rem;text-align:center}
footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;margin-bottom:14px;font-weight:600}
footer nav a{color:#fff}
footer nav a:hover{color:var(--yellow)}
footer p+p{margin-top:4px;color:#9a958a}

@media (max-width:900px){.grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){
  .grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .card{padding:10px}
  .card h3{font-size:.85rem}
  .slide{min-height:210px}
  .slide .wrap{padding:24px 0 44px}
  .slide svg{display:none}
  .slide p{font-size:.95rem}
  .slide .btn{margin-top:14px;padding:10px 20px}
}
@media (prefers-reduced-motion:reduce){.track{transition:none}}

/* ---- static product pages ---- */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.crumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin-bottom:18px}
.crumbs a{text-decoration:underline}
.ppage{padding:22px 0 56px}
.long{max-width:820px;margin:40px auto 0}
.long section{margin-top:34px}
.long h2{font-size:1.25rem;font-weight:800;margin-bottom:12px}
.long p{margin-bottom:12px;color:#3d3a34}
.pc{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pc>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}
.pc h3{font-size:.95rem;margin-bottom:8px}
.pc ul{padding-left:18px;display:grid;gap:5px;font-size:.92rem}
.rel{margin-top:56px}
.rel h2{font-size:1.25rem;font-weight:800;margin-bottom:16px}
.page{max-width:720px;margin:0 auto;padding:36px 0 56px}
.page h1{font-size:1.8rem;font-weight:800;margin-bottom:16px}
.page h2{font-size:1.15rem;font-weight:800;margin:24px 0 8px}
.page p,.page li{color:#3d3a34;margin-bottom:10px}
.page ul{padding-left:20px}
@media (max-width:640px){.pc{grid-template-columns:1fr}}
