.thm{display:contents}
:root{--primary:#F57224;      
  --primary-dark:#D95D12;
  --head:#0F3D8C;         
  --head-2:#0A2E6B;
  --bg:#F2F4F8;--card:#fff;--ink:#1B2433;--muted:#6B7385;--line:#E3E7EE;
  --star:#FFB400;--green:#12A150;--red:#E5383B;
  --radius:10px;}
.thm *{box-sizing:border-box}
.thm a{color:inherit;text-decoration:none}
.thm img{display:block;max-width:100%}
.thm button{font-family:inherit;cursor:pointer}
.thm .wrap{max-width:1240px;margin:0 auto;padding:0 16px}
.thm .num{font-family:'Inter',sans-serif}
.thm .strip{background:var(--head-2);color:#BFD0F2;font-size:12.5px}
.thm .strip .wrap{display:flex;justify-content:space-between;gap:12px;height:30px;align-items:center}
.thm .strip a:hover{color:#fff}
.thm header{background:var(--head);position:sticky;top:0;z-index:30;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.thm .hd{display:flex;align-items:center;gap:20px;height:68px}
.thm .logo{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700;font-size:24px;white-space:nowrap}
.thm .logo b{width:36px;height:36px;border-radius:9px;background:var(--primary);display:grid;place-items:center;font-size:20px}
.thm .search{flex:1;display:flex;height:44px;border-radius:8px;overflow:hidden;background:#fff}
.thm .search select{border:0;background:#F1F3F7;padding:0 10px;font-family:inherit;color:var(--muted);border-right:1px solid var(--line)}
.thm .search input{flex:1;border:0;padding:0 14px;font-size:15px;outline:0;font-family:inherit;min-width:0}
.thm .search button{border:0;background:var(--primary);color:#fff;padding:0 22px;font-weight:600;font-size:15px}
.thm .hicons{display:flex;gap:18px;color:#fff;font-size:13px;padding-right:8px}
.thm .hicons a{display:flex;flex-direction:column;align-items:center;gap:2px;position:relative}
.thm .hicons svg{width:24px;height:24px}
.thm .badge{position:absolute;top:-6px;right:-8px;background:var(--primary);color:#fff;font-size:11px;font-weight:700;border-radius:99px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 5px;font-family:'Inter'}
.thm .catbar{background:#fff;border-bottom:1px solid var(--line)}
.thm .catbar .wrap{display:flex;gap:22px;height:44px;align-items:center;overflow-x:auto;font-weight:600;font-size:14.5px;white-space:nowrap;scrollbar-width:none}
.thm .catbar a:hover{color:var(--primary)}
.thm .catbar .all{display:flex;align-items:center;gap:8px;color:var(--head)}
.thm .hero{display:grid;grid-template-columns:230px 1fr 260px;gap:14px;margin-top:16px}
.thm .menu{background:#fff;border-radius:var(--radius);padding:8px 0;border:1px solid var(--line)}
.thm .menu a{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:14.5px}
.thm .menu a:hover{background:#FFF4EC;color:var(--primary)}
.thm .menu span{width:26px;height:26px;border-radius:7px;background:#F1F4FA;display:grid;place-items:center;font-size:14px}
.thm .slide{position:relative;border-radius:var(--radius);overflow:hidden;min-height:330px;background:#0B2246}
.thm .slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.thm .slide .t{position:relative;padding:44px;color:#fff;max-width:460px}
.thm .slide .eb{display:inline-block;background:var(--primary);padding:3px 12px;border-radius:99px;font-size:13px;font-weight:700}
.thm .slide h1{font-size:38px;line-height:1.2;margin:14px 0 10px}
.thm .slide p{color:#D7E1F5;margin:0 0 22px}
.thm .btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 22px;border-radius:8px;background:var(--primary);color:#fff;font-weight:700;border:0;font-size:15px}
.thm .btn:hover{background:var(--primary-dark)}
.thm .dots{position:absolute;bottom:16px;left:44px;display:flex;gap:6px}
.thm .dots i{width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.5)}
.thm .dots i.on{width:24px;background:#fff}
.thm .side{display:grid;grid-template-rows:1fr 1fr;gap:14px}
.thm .promo{position:relative;border-radius:var(--radius);overflow:hidden;padding:18px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;min-height:150px}
.thm .promo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thm .promo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.7));z-index:1}
.thm .promo *{position:relative;z-index:2}
.thm .promo b{font-size:18px}
.thm .promo small{color:#FFD9C2;font-weight:600}
.thm .trust{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}
.thm .trust div{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;gap:12px;align-items:center}
.thm .trust span{width:42px;height:42px;border-radius:10px;background:#EEF3FC;display:grid;place-items:center;font-size:20px;flex-shrink:0}
.thm .trust b{display:block;font-size:14.5px}
.thm .trust small{color:var(--muted)}
.thm .sec{background:#fff;border-radius:var(--radius);margin-top:18px;border:1px solid var(--line)}
.thm .sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.thm .sec-h h2{margin:0;font-size:20px;display:flex;align-items:center;gap:12px}
.thm .sec-h a{color:var(--primary);font-weight:700;font-size:14px}
.thm .timer{display:flex;gap:5px;align-items:center;font-size:13px;color:var(--muted);font-weight:500}
.thm .timer b{background:var(--ink);color:#fff;border-radius:6px;padding:2px 7px;font-family:'Inter';font-size:13px}
.thm .flash .sec-h{background:linear-gradient(90deg,#FFF1E8,#fff)}
.thm .fs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:16px}
.thm .fcard{display:flex;flex-direction:column;gap:6px}
.thm .fcard .im{aspect-ratio:1;border-radius:8px;overflow:hidden;background:#F4F6FA;position:relative}
.thm .fcard img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.thm .fcard:hover img{transform:scale(1.05)}
.thm .off{position:absolute;top:8px;left:8px;background:var(--red);color:#fff;font-size:12px;font-weight:700;padding:2px 7px;border-radius:5px}
.thm .price{color:var(--primary);font-weight:800;font-size:17px;font-family:'Inter'}
.thm .old{color:var(--muted);text-decoration:line-through;font-size:13px;font-family:'Inter';margin-left:6px;font-weight:500}
.thm .sold{height:6px;border-radius:99px;background:#FDE3D4;overflow:hidden}
.thm .sold i{display:block;height:100%;background:var(--primary)}
.thm .fcard small{color:var(--muted);font-size:12.5px}
.thm .cats{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0}
.thm .cats a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;text-align:center;font-size:14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.thm .cats a:hover{box-shadow:inset 0 0 0 2px var(--primary)}
.thm .cats img{width:72px;height:72px;border-radius:12px;object-fit:cover}
.thm .grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:16px}
.thm .pc{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.thm .pc:hover{box-shadow:0 10px 24px -12px rgba(15,61,140,.35);transform:translateY(-2px)}
.thm .pc .im{aspect-ratio:1;background:#F4F6FA;position:relative}
.thm .pc .im img{width:100%;height:100%;object-fit:cover}
.thm .pc .bd{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.thm .pc .nm{font-size:14.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.thm .rate{display:flex;align-items:center;gap:4px;font-size:12.5px;color:var(--muted)}
.thm .rate i{color:var(--star);font-style:normal;letter-spacing:-1px}
.thm .tag{display:inline-block;font-size:11.5px;font-weight:700;color:var(--green);background:#E7F7EE;padding:1px 7px;border-radius:5px;width:max-content}
.thm .add{margin-top:auto;height:38px;border-radius:8px;border:1.5px solid var(--primary);background:#fff;color:var(--primary);font-weight:700;font-size:14px}
.thm .add:hover{background:var(--primary);color:#fff}
.thm .wish{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:99px;background:#fff;border:0;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.12);font-size:15px}
.thm .banners{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.thm .bn{position:relative;border-radius:var(--radius);overflow:hidden;min-height:180px;padding:26px;color:#fff;display:flex;flex-direction:column;justify-content:center;gap:6px}
.thm .bn img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thm .bn::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,46,107,.9),rgba(10,46,107,.15));z-index:1}
.thm .bn.o::before{background:linear-gradient(90deg,rgba(217,93,18,.92),rgba(217,93,18,.1))}
.thm .bn *{position:relative;z-index:2}
.thm .bn h3{margin:0;font-size:24px}
.thm .bn p{margin:0 0 8px;opacity:.9}
.thm .bn .btn{background:#fff;color:var(--ink);height:38px;width:max-content}
.thm footer{background:#0B1A33;color:#AAB6CC;margin-top:30px;padding:40px 0 0}
.thm .fcols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:30px}
.thm footer h4{color:#fff;margin:0 0 12px;font-size:16px}
.thm footer a{display:block;padding:3px 0}
.thm footer a:hover{color:#fff}
.thm .pay{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.thm .pay span{background:#fff;color:var(--ink);font-weight:700;font-size:12px;border-radius:6px;padding:5px 10px;font-family:'Inter'}
.thm .copy{border-top:1px solid #1E2E4D;margin-top:30px;padding:16px 0;font-size:13px;text-align:center}
.thm .mbar{display:none}
.thm .qadd{position:absolute;right:8px;bottom:8px;width:34px;height:34px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:22px;line-height:1;box-shadow:0 4px 10px rgba(245,114,36,.4);opacity:0;transform:translateY(6px);transition:.2s}
.thm .fcard:hover .qadd,.thm .qadd:focus-visible{opacity:1;transform:none}
.thm .tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.thm .chips{display:flex;gap:6px}
.thm .chips button{height:34px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:#fff;font-weight:600;font-size:13.5px;color:var(--ink)}
.thm .chips button.on{background:var(--head);border-color:var(--head);color:#fff}
.thm #sort{height:34px;border-radius:8px;border:1px solid var(--line);padding:0 8px;font-family:inherit;background:#fff}
.thm .more{background:#fff;color:var(--primary);border:1.5px solid var(--primary)}
.thm .more:hover{background:var(--primary);color:#fff}
.thm .dots button{width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.5);border:0;padding:0;transition:width .3s}
.thm .dots button.on{width:24px;background:#fff}
.thm .slide img{transition:opacity .4s}
.thm .pc .nm{margin:0;font-weight:500;font-family:inherit}
@media (hover:none){
.thm .qadd{opacity:1;transform:none}
}
@media (max-width:1100px){
.thm .hero{grid-template-columns:1fr}
.thm .menu,.thm .side{display:none}
.thm .fs{grid-template-columns:repeat(3,1fr)}
.thm .grid{grid-template-columns:repeat(3,1fr)}
.thm .cats{grid-template-columns:repeat(4,1fr)}
.thm .fcols{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
.thm .strip,.thm .hicons a:not(.cart){display:none}
.thm .hd{flex-wrap:wrap;height:auto;padding:10px 0;gap:10px}
.thm .logo{font-size:20px}
.thm .search{order:3;flex-basis:100%;height:40px}
.thm .search select{display:none}
.thm .hicons{margin-left:auto}
.thm .slide{min-height:220px}
.thm .slide .t{padding:24px}
.thm .slide h1{font-size:25px}
.thm .trust{grid-template-columns:1fr 1fr}
.thm .trust div{padding:10px}
.thm .trust span{width:34px;height:34px;font-size:16px}
.thm .fs{grid-template-columns:repeat(2,1fr);gap:10px;padding:12px}
.thm .grid{grid-template-columns:repeat(2,1fr);gap:10px;padding:12px}
.thm .cats img{width:52px;height:52px}
.thm .cats a{font-size:12.5px;padding:12px 4px}
.thm .banners{grid-template-columns:1fr}
.thm .fcols{grid-template-columns:1fr}
.thm .mbar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:40;height:60px}
.thm .mbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11.5px;gap:2px;color:var(--muted)}
.thm .mbar a.on{color:var(--primary)}
.thm .mbar svg{width:22px;height:22px}
.thm .tools{width:100%}
.thm .chips{overflow-x:auto}
.thm #sort{margin-left:auto}
}

/* ---- platform additions ---- */
.thm .logo img{display:block}
.thm .slide .t{z-index:1}
.thm .promo.plain{background:linear-gradient(135deg,var(--head),var(--primary))}
.thm .promo.plain::before{display:none}
.thm .fcard .im,.thm .pc .im{display:block}
.thm .fcard .fn{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.thm .pc .ph,.thm .cats .ci{display:grid;place-items:center;width:100%;height:100%;color:var(--muted);font-style:normal;padding:10px;text-align:center}
.thm .cats .ci{width:72px;height:72px;border-radius:12px;background:#F1F4FA;font-size:26px;font-weight:700}
.thm .pc .so{position:absolute;left:8px;right:8px;bottom:8px;background:rgba(0,0,0,.65);color:#fff;border-radius:6px;text-align:center;font-size:12.5px;padding:3px}
.thm a.add{display:flex;align-items:center;justify-content:center}
.thm .menu span img{display:block}
.s-grid .pc{height:100%}
@media (max-width:640px){body{padding-bottom:64px}.sc-chat{bottom:76px}.sc-toast{bottom:76px}}
/* the trust strip never pushes the page wider than the phone (long phone numbers / words wrap inside the box) */
.thm .trust{grid-template-columns:repeat(4,minmax(0,1fr))}
.thm .trust div{min-width:0}
.thm .trust b,.thm .trust small{overflow-wrap:anywhere}
@media (max-width:640px){.thm .trust{grid-template-columns:repeat(2,minmax(0,1fr))}}
