:root{--o:#ff5a36;--b:#40a2e3;--b2:#e8f4fc;--o2:#ff9a3c;--ink:#111;--mut:#777;--line:#efeff2;--soft:#f6f6f8;--r:16px}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.45;padding-bottom:70px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;border:0;background:none;cursor:pointer;color:inherit}
.wrap{max-width:1180px;margin:0 auto}
/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.6) blur(10px);border-bottom:1px solid var(--line)}
.top .wrap{padding:12px 16px 10px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.logo{font-weight:800;font-size:23px;letter-spacing:-.6px;flex:1}
.logo img{display:block;height:29px;width:auto}
.lang{position:relative;order:2}
.sbox{order:3}
.lang summary{list-style:none;font-size:13px;font-weight:700;background:var(--soft);padding:7px 12px;border-radius:20px;cursor:pointer}
.lang summary::-webkit-details-marker{display:none}
.lang div{position:absolute;right:0;top:40px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.1);padding:6px;min-width:150px}
.lang div a{display:block;padding:9px 12px;border-radius:10px;font-size:14px;font-weight:600}
.lang div a:hover{background:var(--soft)}
.dnav{display:none;gap:22px;font-weight:600;font-size:14px;margin-right:8px}
.dnav a:hover{color:var(--o)}
.sbox{flex-basis:100%;display:flex;align-items:center;gap:8px;background:var(--soft);border-radius:14px;padding:0 14px}
.sbox input{flex:1;border:0;background:none;font:inherit;font-size:15px;padding:12px 0;outline:none;min-width:0}
.sbox svg{flex:none;opacity:.45}
/* category icons */
.cats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:14px 12px 4px;scroll-snap-type:x proximity}
.cats::-webkit-scrollbar,.hs::-webkit-scrollbar,.chips::-webkit-scrollbar{display:none}
.cat{flex:none;width:72px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px;font-weight:600;text-align:center;scroll-snap-align:start}
.cat i{width:58px;height:58px;border-radius:19px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:27px;transition:transform .15s}
.cat:active i{transform:scale(.94)}
/* hero */
.hero{margin:12px 16px;border-radius:22px;padding:20px;background:linear-gradient(135deg,var(--o),var(--o2));color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;overflow:hidden;position:relative}
.hero h1{font-size:22px;line-height:1.15;letter-spacing:-.3px}
.hero p{font-size:13px;opacity:.92;margin-top:6px}
.hero .hb{display:inline-block;margin-top:12px;background:#fff;color:var(--o);font-weight:800;font-size:13px;padding:9px 16px;border-radius:12px}
.hero .hi{font-size:66px;flex:none;filter:drop-shadow(0 6px 10px rgba(0,0,0,.15))}
/* section heads */
.sh{display:flex;justify-content:space-between;align-items:baseline;padding:20px 16px 12px;gap:12px}
.sh h2{font-size:18px;letter-spacing:-.2px}
.sh a{font-size:13px;color:var(--b);font-weight:700;white-space:nowrap}
.sh p{font-size:13px;color:var(--mut)}
/* product grid */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row dense;gap:12px;padding:0 16px}
.card{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;position:relative;background:#fff;display:flex;flex-direction:column;transition:box-shadow .15s}
.card:hover{box-shadow:0 8px 24px rgba(0,0,0,.07)}
.card .ph{aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center;padding:14px;border-bottom:1px solid var(--line)}
.card .ph{position:relative;overflow:hidden}.card .ph img{position:absolute;top:14px;left:14px;width:calc(100% - 28px);height:calc(100% - 28px);object-fit:contain}
.bdg{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;z-index:2}
.b{font-size:10px;font-weight:800;padding:4px 8px;border-radius:8px;color:#fff;letter-spacing:.2px;line-height:1.2}
.b-off{background:var(--o)}.b-bs{background:#7c3aed}.b-ch{background:var(--b)}.b-hot{background:#f59e0b}.b-deal{background:#e11d48}
.heart{position:absolute;top:8px;right:8px;z-index:2;width:32px;height:32px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.heart svg{width:16px;height:16px;fill:none;stroke:#222;stroke-width:2}
.heart.on svg{fill:var(--o);stroke:var(--o)}
.card .in{padding:10px;display:flex;flex-direction:column;flex:1}
.card .t{font-size:13px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
.stars{font-size:11.5px;color:#f5a623;margin-top:4px;white-space:nowrap}
.stars em{color:var(--mut);font-style:normal}
.pr{margin-top:6px;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.pr b{font-size:16px}
.pr s{font-size:11.5px;color:#999}
.btn{display:block;margin-top:auto;background:var(--ink);color:#fff;text-align:center;border-radius:11px;padding:10px;font-size:12.5px;font-weight:700}
.card .pr{margin-bottom:8px}
.btn:active{opacity:.85}
/* countdown deal card (full width, mixed between products) */
.dl{grid-column:1/-1;display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,#1a1033,#3b1d6e);color:#fff;border-radius:20px;padding:14px;position:relative;overflow:hidden}
.dl:after{content:"";position:absolute;right:-40px;top:-40px;width:160px;height:160px;background:radial-gradient(rgba(255,154,60,.45),transparent 70%)}
.dl .ph{overflow:hidden;flex:none;width:112px;height:112px;background:#fff;border-radius:14px;padding:8px}
.dl .ph img{width:100%;height:100%;object-fit:contain}
.dl .tg{display:inline-block;background:var(--o);font-size:10.5px;font-weight:800;padding:4px 8px;border-radius:7px}
.dl .t{font-size:14px;font-weight:700;line-height:1.3;margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dl .pr b{font-size:19px}.dl .pr s{color:#bbb}
.dl .pct{background:#fff;color:#e11d48;font-weight:800;font-size:11px;padding:3px 7px;border-radius:7px}
.cd{display:flex;gap:5px;margin-top:8px;font-variant-numeric:tabular-nums;position:relative;z-index:1}
.cd span{background:rgba(255,255,255,.14);border-radius:8px;padding:5px 7px;font-size:13px;font-weight:800;min-width:38px;text-align:center}
.cd small{font-size:9px;font-weight:600;opacity:.7;margin-left:1px}
.dl .bx{position:relative;z-index:1;min-width:0}
/* horizontal deal strip */
.hs{display:flex;gap:12px;overflow-x:auto;padding:0 16px 4px;scroll-snap-type:x mandatory;scrollbar-width:none}
.hs .dl{flex:none;width:86%;max-width:420px;scroll-snap-align:start}
/* chips */
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 16px 6px;scrollbar-width:none}
.chip{flex:none;white-space:nowrap;background:var(--soft);padding:8px 14px;border-radius:30px;font-size:13px;font-weight:600}
.chip.on{background:var(--b);color:#fff}
/* category page head */
.crumb{font-size:12px;color:var(--mut);padding:14px 16px 0;display:flex;flex-wrap:wrap;gap:6px}
.crumb a{color:var(--b)}.crumb a:hover{text-decoration:underline}
.ch{padding:8px 16px 10px;display:flex;align-items:center;gap:12px}
.ch i{width:52px;height:52px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:26px;flex:none}
.ch h1{font-size:22px;letter-spacing:-.3px;line-height:1.15}
.ch p{font-size:13px;color:var(--mut)}
.note{margin:6px 16px 12px;background:#fff7f3;border-radius:14px;padding:12px 14px;font-size:13px;color:#7a4a3a}
/* product page */
.pp{padding-bottom:20px}
.gal{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;background:#fff}
.gal::-webkit-scrollbar{display:none}
.gal img{min-width:0;max-width:100%;flex:none;width:100%;height:min(44vh,420px);object-fit:contain;scroll-snap-align:center;padding:14px}
@media (min-width:900px){.gal img{height:auto;aspect-ratio:1/1}}
.dots{display:flex;justify-content:center;gap:6px;padding:4px 0 6px}
.dots i{width:7px;height:7px;border-radius:50%;background:#ddd}
.dots i.on{background:var(--o);width:18px;border-radius:5px}
.pbody{padding:6px 16px}
.pbadges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.pbody h1{font-size:20px;line-height:1.25;letter-spacing:-.2px}
.brand{font-size:13px;color:var(--mut);margin-top:4px}
.pbody .stars{font-size:14px;margin-top:8px}
.pbody .pr b{font-size:26px}.pbody .pr s{font-size:14px}
.pbody .pct{background:#ffeee9;color:var(--o);font-weight:800;font-size:12px;padding:4px 8px;border-radius:8px}
.pdeal{margin-top:12px;background:linear-gradient(135deg,#1a1033,#3b1d6e);color:#fff;border-radius:14px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700;font-size:13px}
.pdeal .cd{margin-top:0}
.cta{display:flex;gap:10px;margin-top:14px}
.cta a{flex:1;background:var(--o);color:#fff;text-align:center;font-weight:800;border-radius:14px;padding:15px;font-size:15px;box-shadow:0 6px 16px rgba(255,90,54,.3)}
.cta .heart{position:static;width:52px;height:52px;border-radius:14px;box-shadow:none;border:1px solid var(--line)}
.cta .heart svg{width:20px;height:20px}
.pnote{font-size:11.5px;color:var(--mut);margin-top:8px}
.box{margin-top:20px}
.box h2{font-size:17px;margin-bottom:8px}
.box p{font-size:15px;color:#333;line-height:1.6;margin-bottom:10px}
.hl{list-style:none;display:flex;flex-direction:column;gap:8px}
.hl li{display:flex;gap:10px;font-size:14.5px;line-height:1.45;background:var(--soft);border-radius:12px;padding:10px 12px}
.hl li:before{content:"✓";color:var(--b);font-weight:800;flex:none}
.sticky{position:fixed;left:0;right:0;bottom:62px;z-index:15;padding:10px 16px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;transform:translateY(130%);transition:transform .2s}
.sticky.show{transform:none}
.sticky b{font-size:18px}
.sticky a{flex:1;background:var(--o);color:#fff;text-align:center;font-weight:800;border-radius:12px;padding:12px;font-size:14px}
/* categories page */
.acc{padding:0 16px;display:flex;flex-direction:column;gap:10px}
.acc details{border:1px solid var(--line);border-radius:16px;overflow:hidden}
.acc summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px;font-weight:700;cursor:pointer}
.acc summary::-webkit-details-marker{display:none}
.acc summary i{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:22px}
.acc summary span{flex:1}
.acc summary:after{content:"›";font-size:22px;color:#bbb;transform:rotate(90deg);transition:transform .2s}
.acc details[open] summary:after{transform:rotate(270deg)}
.acc .sub{padding:0 12px 12px;display:flex;flex-direction:column;gap:2px}
.acc .sub>a{font-weight:700;font-size:14px;padding:8px 6px}
.acc .leaf{display:flex;flex-wrap:wrap;gap:6px;padding:0 6px 8px}
.acc .leaf a{font-size:12.5px;background:var(--soft);padding:6px 10px;border-radius:20px}
.acc .all{color:var(--o);font-weight:700;font-size:13px;padding:4px 6px 10px}
/* text pages */
.txt{padding:20px 16px;max-width:720px}
.txt h1{font-size:24px;margin-bottom:12px}
.txt p{font-size:15px;line-height:1.7;color:#333}
.empty{padding:40px 16px;text-align:center;color:var(--mut);font-size:14px;grid-column:1/-1}
/* footer */
footer{margin-top:36px;background:var(--soft);padding:24px 16px 30px;font-size:12.5px;color:var(--mut)}
footer .wrap{display:flex;flex-direction:column;gap:12px}
footer nav{display:flex;flex-wrap:wrap;gap:16px;font-weight:600;color:#444}
footer .logo{flex:none}footer .logo img{height:24px}
/* bottom nav (mobile) */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:20;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:7px 0 calc(7px + env(safe-area-inset-bottom))}
.bnav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;font-weight:600;color:#999;min-width:64px}
.bnav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bnav a.on{color:var(--o)}
@media (min-width:640px){
.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hs .dl{width:420px}
.hero{padding:30px}.hero h1{font-size:30px}.hero .hi{font-size:96px}
}
@media (min-width:900px){
body{padding-bottom:0}
.bnav{display:none}
.sticky{bottom:0}
.dnav{display:flex}
.top .wrap{flex-wrap:nowrap}
.logo{flex:none;margin-right:12px}
.sbox{flex:1;flex-basis:auto;order:1}
.dnav{order:2}.lang{order:3}
.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cats{justify-content:center;flex-wrap:wrap}
.pp .wrap2{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:16px}
.pbody{padding:6px 0}
.acc{display:grid;grid-template-columns:1fr 1fr;align-items:start}
}
@media (min-width:1180px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:900px){.dgrid .dl{grid-column:span 2}}
@media(min-width:1180px){.dgrid{grid-template-columns:repeat(6,1fr)}.dgrid .dl{grid-column:span 2}}
.score{display:flex;align-items:center;gap:3px;margin-top:5px;white-space:nowrap}
.score i{width:11px;height:11px;border-radius:50%;border:1.5px solid #f5a623;background:linear-gradient(90deg,#f5a623 var(--f),#fff var(--f));flex:none}
.score b{font-size:11.5px;color:#b7791f;margin-left:3px;font-weight:800}
.score em{font-style:normal;color:var(--mut);font-size:12px;margin-left:4px}
.pbody .score i{width:15px;height:15px;border-width:2px}.pbody .score b{font-size:14px}
.txt h2{font-size:17px;margin:22px 0 6px}
.txt p+p{margin-top:10px}
.txt .upd{font-size:13px;color:var(--mut)}
.sbox:focus-within{box-shadow:0 0 0 2px var(--b) inset;background:#fff}
.lang summary{color:#1d6fa5;background:var(--b2)}
footer nav a:hover{color:var(--b)}
/* fill whole rows: r1 = one row block, r2 = two row block */
.r1>:nth-child(n+5),.r2>:nth-child(n+9){display:none}
@media (min-width:640px){.r1>:nth-child(n+5){display:flex}.r1>:nth-child(n+7){display:none}.r2>:nth-child(n+9){display:flex}.r2>:nth-child(n+10){display:none}}
@media (min-width:900px){.r1>:nth-child(n+5){display:none}.r2>:nth-child(n+9){display:none}}
@media (min-width:1180px){.r1>:nth-child(5){display:flex}.r2>:nth-child(9),.r2>:nth-child(10){display:flex}}
/* desktop: featured deals as 3 equal cards aligned with the product grid */
@media (min-width:900px){.hs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:visible}.hs .dl{width:auto;max-width:none;grid-column:auto}.hs>:nth-child(n+4){display:none}}
