/*
Theme Name: The Deal Focus
Description: Coupon store pages with affiliate redirect and click tracking.
Version: 1.5.0
Requires PHP: 7.4
*/
*{box-sizing:border-box}
body{margin:0;background:#F7F6F2;font-family:Inter,system-ui,sans-serif;color:#15171A;line-height:1.5}
a{color:#0B6E4F}a:hover{color:#084D37}
img{max-width:100%;height:auto}
h1,h2,h3{font-family:'Bricolage Grotesque',sans-serif;line-height:1.2}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.card{background:#fff;border:1px solid #E3E1DA;border-radius:14px}
.muted{color:#5B6068}
.top{background:#fff;border-bottom:1px solid #E3E1DA}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px;padding-top:14px;padding-bottom:14px}
.top img{display:block;height:36px;width:auto}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 24px;font-size:15px;font-weight:500}
.nav a{color:#15171A;text-decoration:none;padding:10px 0}
input[type=search]{height:44px;padding:0 14px;border:1px solid #CFCCC2;border-radius:8px;font:inherit;max-width:100%}
.crumb{padding-top:20px;font-size:14px;color:#5B6068}
.cols{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;padding-top:20px;padding-bottom:64px}
aside{flex:1 1 280px;display:flex;flex-direction:column;gap:16px}
aside .card{padding:20px}
main.col{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:14px}
h1{margin:0;font-size:38px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.stats div{padding:14px 16px}.stats span{display:block;font-size:13px;color:#5B6068}.stats strong{font-size:22px}
.tabs{display:flex;flex-wrap:wrap;border-bottom:2px solid #E3E1DA}
.tabs button{height:46px;padding:0 18px;margin-bottom:-2px;border:0;border-bottom:3px solid transparent;background:none;font:600 15px Inter,sans-serif;color:#5B6068;cursor:pointer}
.tabs button[aria-pressed=true]{border-bottom-color:#0B6E4F;color:#15171A}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 20px;padding:16px 18px}
.row[hidden]{display:none}
.big{width:100px;min-height:72px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px;font:700 20px 'Bricolage Grotesque',sans-serif;background:#E6F2EC;color:#0B6E4F}
.big{overflow-wrap:anywhere;line-height:1.15}
.big.sm{font-size:15px;letter-spacing:.01em}.big.xs{font-size:13px;letter-spacing:0}
.hero .htext{font-size:21px;line-height:1.15;overflow-wrap:anywhere}.hero .htext.sm{font-size:17px}.hero .htext.xs{font-size:14px}
.deal .big{background:#FBEDE6;color:#A33F14}
.info{flex:1 1 260px;min-width:0}.info h3{margin:0 0 4px;font:600 17px/1.35 Inter,sans-serif}.info p{margin:0;font-size:13px}
.act{flex:0 1 200px;min-width:180px}
.btn{display:flex;width:100%;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border:0;border-radius:8px;background:#0B6E4F;color:#fff;font:600 15px Inter,sans-serif;text-decoration:none;cursor:pointer}
.btn:hover{background:#084D37;color:#fff}
.deal .btn{background:#15171A}
.expired{background:#EFEDE7;border-radius:12px;padding:4px 18px;color:#4A4E55}
summary{cursor:pointer;font-weight:600;padding:12px 0}
.sec{padding:24px}.sec h2{margin:0 0 10px;font-size:20px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.tile{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px;text-align:center;text-decoration:none;color:#15171A;font-weight:600}
.tile img,.logo-s{width:96px;height:96px;object-fit:contain}
.letter{width:96px;height:96px;border-radius:50%;border:1px solid #E3E1DA;display:flex;align-items:center;justify-content:center;font:700 38px 'Bricolage Grotesque',sans-serif;color:#0B6E4F}
dialog{width:min(440px,calc(100vw - 32px));border:0;border-radius:18px;padding:28px;text-align:center}
dialog::backdrop{background:rgba(18,20,23,.6)}
.mcode{display:flex;gap:8px;margin:18px 0 12px;padding:8px 8px 8px 16px;align-items:center;justify-content:space-between;border:2px dashed #0B6E4F;border-radius:12px;background:#E6F2EC;font:700 20px ui-monospace,Menlo,monospace}
.mcode .btn{width:auto}
.x{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;background:none;font-size:24px;cursor:pointer}
footer{background:#121417;color:#B9BDC4;font-size:14px}
footer a{color:#B9BDC4;text-decoration:none;display:inline-block;padding:5px 0}footer a:hover{color:#7FD1AE}
.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:32px;padding-top:48px;padding-bottom:32px}
.fgrid h3{margin:0 0 10px;color:#fff;font:600 15px Inter,sans-serif}
.fgrid ul{margin:0;padding:0;list-style:none}.fgrid img{height:36px;width:auto}
.legal{border-top:1px solid #2A2E34;padding-top:20px;padding-bottom:28px;font-size:13px}
.thumb{width:56px;height:56px;flex:none;object-fit:cover;border-radius:10px;border:1px solid #E3E1DA}
.prods{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.prod{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #E3E1DA;border-radius:12px;text-decoration:none;color:#15171A}
.prod:hover{border-color:#0B6E4F;color:#15171A}
.prod img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#F7F6F2}
.prod .pt{font-size:14px;font-weight:600;line-height:1.35}
.prod .pp{font-size:14px;font-weight:600;color:#0B6E4F}
.prod .pv{margin-top:auto;font-size:13px;color:#0B6E4F;text-decoration:underline}
.about h3{margin:18px 0 6px;font:600 16px Inter,sans-serif}
.about blockquote{margin:12px 0;padding:10px 16px;border-left:3px solid #0B6E4F;background:#F7F6F2;border-radius:0 8px 8px 0}
.about blockquote p{margin:0}.about cite{display:block;margin-top:6px;font-size:13px;color:#5B6068;font-style:normal}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chips a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid #E3E1DA;border-radius:999px;background:#fff;color:#15171A;text-decoration:none;font-size:14px}
.chips a[aria-current]{background:#15171A;color:#fff;border-color:#15171A}
.pagination{margin-top:32px}.nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.nav-links a,.nav-links span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid #E3E1DA;border-radius:8px;background:#fff;color:#15171A;text-decoration:none}
.nav-links .current{background:#0B6E4F;color:#fff;border-color:#0B6E4F}
.screen-reader-text{position:absolute;left:-9999px}
.vlabel{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:#0B6E4F;margin-bottom:2px}
.vlabel svg{width:15px;height:15px;flex:none}
.seen{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:#5B6068;margin-bottom:2px}
.vcount{color:#0B6E4F;font-weight:600}
.peel{position:relative;overflow:hidden;padding:0;background:#F2FAF6;border:2px dashed #0B6E4F;justify-content:flex-end}
.peel:hover{background:#F2FAF6}
.peel .tail{font:700 16px ui-monospace,Menlo,monospace;letter-spacing:.08em;color:#0B6E4F;padding:0 12px}
.peel .cover{position:absolute;left:-2px;top:-2px;bottom:-2px;right:44px;display:flex;align-items:center;justify-content:center;background:#0B6E4F;color:#fff;border-radius:8px 0 0 8px;transition:right .2s}
.peel .cover:after{content:"";position:absolute;right:-20px;top:0;border-style:solid;border-width:0 0 50px 20px;border-color:transparent transparent transparent #08523B}
.peel:hover .cover{right:60px}
.peel.shown{justify-content:center}.peel.shown .cover{display:none}.peel.shown .tail{padding:0}
.hero{display:grid;grid-template-columns:130px minmax(0,1fr);overflow:hidden;position:relative;border:2px solid #0B6E4F}
.hero .hbig{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px 8px;background:#E6F2EC;border-right:2px dashed #0B6E4F;color:#0B6E4F;font:700 30px/1.05 'Bricolage Grotesque',sans-serif}
.hero .hbig small{font:600 13px Inter,sans-serif;margin-top:4px}
.hero.deal .hbig{background:#FBEDE6;color:#A33F14}
.hero .hbody{padding:16px 18px;min-width:0}
.hero h2{margin:8px 0 4px;font:600 19px/1.3 Inter,sans-serif}
.hero .hmeta{margin:0 0 12px;font-size:13px;color:#5B6068}
.hero .act{max-width:260px}
.vpill{display:inline-flex;align-items:center;gap:6px;background:#0B6E4F;color:#fff;border-radius:999px;padding:4px 12px;font-size:12.5px;font-weight:600}
.vpill svg{width:15px;height:15px}
.dpill{display:inline-flex;align-items:center;gap:6px;background:#FBEDE6;color:#A33F14;border-radius:999px;padding:4px 12px;font-size:12.5px;font-weight:600}
.ribbon{position:absolute;top:16px;right:-36px;transform:rotate(35deg);background:#0B6E4F;color:#fff;font:700 11px Inter,sans-serif;letter-spacing:.1em;padding:4px 40px}
.rate{display:flex;flex-direction:column;align-items:center;gap:4px}
.stars{position:relative;display:inline-block;font-size:28px;line-height:1;letter-spacing:2px}
.stars .sbase{color:#D9D6CE}.stars .sfill{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#F5A623}
.rnum{font-size:15px;color:#5B6068}.rnum b{color:#15171A;font-weight:600}
.rbtn{border:0;border-radius:8px;background:#FFF3DC;color:#B26A00;font:600 15px Inter,sans-serif;padding:7px 18px;cursor:pointer;margin-top:4px}
.rbtn:hover{background:#FDE7BE}
.rpick{display:flex;flex-direction:row-reverse;gap:2px}
.rpick button{border:0;background:none;font-size:32px;line-height:1;color:#D9D6CE;cursor:pointer;padding:2px}
.rpick button:hover,.rpick button:hover~button,.rpick button:focus-visible,.rpick button:focus-visible~button{color:#F5A623}
.rmsg{font-size:13px}
.rate [hidden]{display:none!important}
.mrate{display:flex;flex-direction:column;align-items:center;gap:3px}
.mrate .rnum a{color:#0B6E4F;font-weight:600}
.rsub{font-size:12.5px;color:#5B6068}
.rate.small{padding-top:10px;border-top:1px solid #E3E1DA;width:100%}
.rate.small .stars{font-size:18px}.rate.small .rnum{font-size:13px}.rate.small .rbtn{font-size:13px;padding:5px 14px}
/* 1.5 · trang chủ mới: không hiện số lượng shop / số offer */
.tile .best{font-size:14px;font-weight:600;color:#0B6E4F}
.home{padding-bottom:0}
.hhero{display:flex;flex-wrap:wrap;gap:32px 40px;align-items:stretch;padding-top:48px;padding-bottom:28px}
.hintro{flex:999 1 480px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:16px}
.hupd{margin:0;display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#0B6E4F}
.home h1{font-size:52px;line-height:1.05}
.hlead{margin:0;font-size:18px;color:#4A4E55;max-width:560px}
.hsearch{display:flex;gap:8px;max-width:560px;margin-top:6px}
.hsearch input[type=search]{flex:1;min-width:0;height:52px;padding:0 18px;border-radius:12px;background:#fff;font-size:16px}
.hsearch .btn{width:auto;min-height:52px;border-radius:12px;padding:0 24px}
.hbest{flex:1 1 340px;min-width:0;padding:24px;display:flex;flex-direction:column;gap:10px}
.hbtop,.dtop{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.bpill{font-size:13px;font-weight:700;color:#0B6E4F;background:#E6F2EC;padding:5px 11px;border-radius:999px}
.dlogo{display:flex;align-items:center}
.dlogo img,.dlogo .logo-s{width:auto;height:auto;max-width:120px;max-height:40px;object-fit:contain}
.dlogo .letter{width:40px;height:40px;font-size:16px}
.hbig2{margin:4px 0 0;font:700 40px/1.05 'Bricolage Grotesque',sans-serif;color:#0B6E4F;overflow-wrap:anywhere}
.hbest h2{margin:0;font:600 18px/1.35 Inter,sans-serif}
.hbest p.muted,.dcard p.muted{margin:0;font-size:13px}
.hbact,.dact{margin-top:auto;padding-top:8px}
.home .chips{margin-top:0;padding-bottom:40px}
.hsec{padding-bottom:48px}
.hhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-bottom:18px}
.hhead h2{margin:0;font-size:28px}
.hhead a{font-weight:600;font-size:15px;text-decoration:none}
.dgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.dcard{padding:18px;display:flex;flex-direction:column;gap:8px}
.vtag,.stag{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:4px 9px;border-radius:999px;white-space:nowrap}
.vtag{background:#E6F2EC;color:#0B6E4F}.vtag svg{width:14px;height:14px}
.stag{background:#F0EEE8;color:#4A4E55}
.doff{margin:4px 0 0;font:700 26px/1.1 'Bricolage Grotesque',sans-serif;color:#0B6E4F;overflow-wrap:anywhere}
.dcard h3{margin:0;font:600 15px/1.4 Inter,sans-serif}
.hstores{background:#fff;border-top:1px solid #E3E1DA;border-bottom:1px solid #E3E1DA;padding:48px 0 56px}
.hstores .tile{background:#FBFAF7}
.hhow{padding-top:48px;padding-bottom:56px}.hhow h2{margin:0 0 20px;font-size:28px}
.hsteps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.hsteps span{font-size:14px;font-weight:700;color:#0B6E4F}
.hsteps h3{margin:6px 0;font:700 18px Inter,sans-serif}.hsteps p{margin:0;font-size:15px}

@media (max-width:640px){.home h1{font-size:36px}.hsearch .btn{padding:0 16px}.hbig2{font-size:32px}.hero{grid-template-columns:96px minmax(0,1fr)}.hero .hbig{font-size:24px}.ribbon{display:none}h1{font-size:30px}.wrap{padding-left:16px;padding-right:16px}main.col{order:-1}.act{flex:1 1 100%}}
