/*
Theme Name: Đồ Nên Mua
Author: Do Nen Mua
Description: Theme affiliate tiếng Việt theo mockup, có sản phẩm, danh mục, đánh giá và liên kết mua hàng. Không cần WooCommerce.
Version: 2.6.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: do-nen-mua
*/
:root{--blue:#0875ff;--navy:#0a2d59;--muted:#58708c;--border:#e3ebf5;--light:#edf7ff}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;color:var(--navy);background:#fff;font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ff961d;outline-offset:4px}svg{width:24px;height:24px;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.25}h2{font-size:24px;line-height:1.3}h3{font-size:16px;line-height:1.5}.container{max-width:1214px;padding:0 50px;margin:auto}.site-header{background:#fff;border-bottom:1px solid #f1f5fa}.header-inner{min-height:72px;display:flex;align-items:center;gap:36px}.brand{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:24px;font-weight:850;color:var(--navy);letter-spacing:-.7px}.brand:hover{text-decoration:none}.brand svg{color:#ff921d;width:36px;height:36px}.custom-logo{max-width:210px;max-height:58px;object-fit:contain}.header-inner nav{flex:1}.header-inner nav ul{display:flex;list-style:none;margin:0;padding:0;gap:27px;align-items:center}.header-inner nav a{font-size:12px;color:var(--navy);font-weight:600;white-space:nowrap;display:block;padding:24px 0}.header-inner nav a:hover,.header-inner nav .current-menu-item>a{color:var(--blue)}.header-inner nav li{position:relative}.header-inner nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:10;padding:12px;background:white;min-width:190px;box-shadow:0 8px 25px #0a2d5920;border-radius:8px}.header-inner nav .sub-menu a{padding:8px}.header-inner nav li:hover>.sub-menu,.header-inner nav li:focus-within>.sub-menu{display:block}.header-search{width:245px}.search-form{display:flex;border:1px solid #dce4ed;border-radius:30px;background:#fff;overflow:hidden;box-shadow:0 2px 5px #062f4f08}.search-form input{border:0;background:transparent;width:100%;min-width:0;padding:14px 20px;color:var(--navy);outline-offset:-4px}.search-form button{display:flex;align-items:center;justify-content:center;background:var(--blue);color:white;border:0;width:58px;flex-shrink:0;cursor:pointer}.search-form button:hover,.button:hover{background:#005bdb;color:white;text-decoration:none}.search-form input::placeholder{color:#7890ab}.header-search .search-form{background:#f8faff;box-shadow:none}.header-search input{font-size:11px;padding:10px 15px}.header-search button{background:none;color:var(--navy);width:35px}.header-search svg{width:18px}.hero{overflow:hidden;background:linear-gradient(120deg,#eff7ff,#e4f5fd)}.hero-inner{position:relative;min-height:300px;display:flex;align-items:center}.hero-copy{position:relative;z-index:1;width:53%;padding:26px 0 37px}.hero-brand{display:flex;gap:20px;align-items:center;margin-bottom:8px}.hero-brand svg{width:80px;height:80px;color:#ff951e}.hero h1{font-size:52px;letter-spacing:-1.6px;margin:0;font-weight:900}.hero-copy>p{font-size:25px;font-weight:650;line-height:1.4;margin:10px 0 25px;max-width:510px}.hero .search-form{max-width:525px}.hero-art{position:absolute;right:0;top:0;height:300px;width:565px;background-image:url('assets/mockup.png');background-size:1214px 1295px;background-position:-649px -65px;background-repeat:no-repeat;mask-image:linear-gradient(to right,transparent,#000 12%)}.hero-custom{position:absolute;right:0;top:0;width:48%;height:100%;object-fit:cover}.home-content{padding-top:25px;padding-bottom:26px}.home-content section{margin-bottom:30px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.section-heading h2{margin:0}.section-heading>a{font-size:13px;white-space:nowrap}.category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.category{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#e5f3ff;min-height:117px;border-radius:10px;color:var(--navy);font-size:14px;transition:transform .15s}.category:nth-child(8n+2){background:#ede9ff}.category:nth-child(8n+3),.category:nth-child(8n+8){background:#dcf7ec}.category:nth-child(8n+4),.category:nth-child(8n+6){background:#ffebf0}.category:nth-child(8n+5){background:#fff2df}.category span{font-size:42px;line-height:1.25}.category:hover{transform:translateY(-3px);text-decoration:none}.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.product-card{border:1px solid var(--border);border-radius:11px;padding:13px;display:flex;flex-direction:column;min-width:0;transition:box-shadow .15s,transform .15s;background:white}.product-card:hover{box-shadow:0 8px 25px #133d6c12;transform:translateY(-2px)}.product-image{height:155px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;overflow:hidden}.product-image img{height:100%;width:100%;object-fit:contain}.product-card h3{font-size:13px;font-weight:600;margin:4px 0;min-height:22px}.product-card h3 a{color:var(--navy)}.rating{font-size:15px;margin-bottom:4px}.rating>span{color:#ffad20;letter-spacing:1px}.rating small{color:var(--muted);font-size:11px;letter-spacing:0}.price{font-size:19px;font-weight:800;line-height:1.5;margin:2px 0 10px}.price del{display:block;font-size:12px;font-weight:400;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--blue);color:white;border:0;border-radius:8px;padding:10px 17px;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}.button svg{width:19px;height:19px}.product-card .button{margin-top:auto}.demo-button{cursor:default;background:#eaf3ff;color:#195395}.demo-button:hover{background:#eaf3ff;color:#195395}.demo-note{font-size:12px;color:var(--muted);margin:12px 0 0}.demo-image{width:180px;height:155px;background:url('assets/mockup.png') no-repeat;background-size:1214px 1295px;flex-shrink:0}.demo-0{background-position:-67px -640px}.demo-1{background-position:-290px -640px}.demo-2{background-position:-516px -640px}.demo-3{background-position:-741px -640px}.demo-4{background-position:-969px -640px}.trust-banner{display:flex;align-items:center;gap:25px;background:#f0f8ff;border-radius:10px;padding:18px 32px}.trust-icon{width:88px;height:84px;display:grid;place-items:center;border-radius:16px;background:#d5e8ff;color:var(--blue);flex-shrink:0}.trust-icon svg{width:47px;height:47px}.trust-banner h2{font-size:17px;margin-bottom:6px}.trust-banner p{font-size:13px;color:#466489;margin:0}.trust-banner .button{margin-left:auto;min-width:150px;min-height:44px}.site-footer{background:#192e44;color:#d5e3f2;font-size:12px}.footer-grid{display:grid;grid-template-columns:1.4fr 1.3fr 1.2fr 1fr;gap:40px;padding-top:25px;padding-bottom:25px}.site-footer .brand{color:white;margin-bottom:5px}.site-footer a{color:#d5e3f2}.site-footer h3{color:white;font-size:14px;font-weight:500;margin-bottom:7px}.site-footer p{line-height:1.9}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer div> a:not(.brand){display:block;margin-bottom:3px}.footer-categories{display:grid;grid-template-columns:1fr 1fr;gap:3px 15px}.footer-bottom{border-top:1px solid #ffffff14;padding:14px 0;font-size:10px}.menu-toggle{display:none}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:10px;left:10px;z-index:100;background:white;padding:10px}.inner-page{padding-top:40px;padding-bottom:60px;min-height:60vh}.narrow{max-width:850px}.muted{color:var(--muted);font-size:14px}.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.review-card{padding:20px;border:1px solid var(--border);border-radius:10px;overflow-wrap:anywhere}.review-card img{width:100%;height:180px;object-fit:cover;border-radius:6px;margin-bottom:12px}.review-card h2,.review-card h3{font-size:18px;color:var(--navy)}.review-card p{font-size:14px;color:var(--muted)}.archive-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.filter-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:25px}.filter-links a{padding:8px 16px;border-radius:30px;background:var(--light)}.pagination{margin-top:30px}.nav-links{display:flex;gap:15px;flex-wrap:wrap}.page-numbers{padding:6px 12px;background:var(--light);border-radius:5px}.page-numbers.current{background:var(--blue);color:#fff}.empty-state{max-width:700px;text-align:center;padding-top:70px;padding-bottom:70px}.empty-state .search-form{margin:25px auto}.empty-state>a{display:inline-flex}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin:30px 0 50px}.detail-image{display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:18px;padding:30px}.detail-image img{max-height:450px;object-fit:contain}.detail-image>svg,.placeholder svg{width:80px;height:80px;color:#aac7e7}.product-detail .price{font-size:30px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--blue);font-weight:700}.entry-content{overflow-wrap:anywhere;line-height:1.85}.entry-content:after{content:"";display:table;clear:both}.entry-content iframe{max-width:100%}.entry-content table{display:block;overflow:auto;border-collapse:collapse}.entry-content td,.entry-content th{border:1px solid var(--border);padding:8px}.entry-content pre{overflow:auto;padding:15px;background:var(--light)}.entry-content blockquote{border-left:4px solid var(--blue);padding:10px 20px;margin-left:0;background:var(--light)}.aligncenter{display:block;margin-left:auto;margin-right:auto}.alignleft{float:left;margin-right:20px}.alignright{float:right;margin-left:20px}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font-size:12px;color:var(--muted)}.article-cover{border-radius:12px;margin-bottom:25px}.comments-area{margin-top:45px}.comments-area input:not([type=checkbox]),.comments-area textarea{max-width:100%;padding:10px;border:1px solid var(--border);border-radius:6px}.comments-area label{display:block}.comments-area .submit{background:var(--blue);color:white;cursor:pointer}.bypostauthor{border-left:2px solid var(--blue);padding-left:12px}
@media(min-width:1300px){.hero-art{right:0}.hero-inner{min-height:310px}.hero-art{height:310px}}
@media(max-width:1100px){.container{padding-left:28px;padding-right:28px}.header-inner{gap:25px}.header-search{display:none}.hero h1{font-size:43px}.hero-copy>p{font-size:22px}.hero-copy{width:55%}.hero-art{right:-90px}.hero-brand svg{width:64px}.product-grid{gap:10px}.product-card{padding:10px}.product-card h3{min-height:40px}.price{font-size:17px}.footer-grid{gap:25px}.trust-banner{padding:20px}.hero-art{opacity:.9}}
@media(max-width:800px){.header-inner{min-height:68px;justify-content:space-between;flex-wrap:wrap;gap:0}.menu-toggle{display:block;background:#eef6ff;border:0;border-radius:7px;padding:8px 12px;color:var(--navy);font-size:22px}.header-inner nav{display:none;flex-basis:100%;padding-bottom:12px}.header-inner nav.is-open{display:block}.header-inner nav ul{display:block}.header-inner nav a{font-size:15px;padding:9px 4px}.header-inner nav .sub-menu{display:block;position:static;box-shadow:none;padding:0 0 0 20px}.hero h1{font-size:38px}.hero-copy{width:66%}.hero-copy>p{font-size:20px}.hero-art{opacity:.3;right:-155px}.hero-brand{gap:10px}.hero-brand svg{width:53px;height:60px}.category-grid{grid-template-columns:repeat(4,1fr)}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.trust-banner{flex-wrap:wrap;gap:15px}.trust-banner .button{margin-left:103px}.footer-grid{grid-template-columns:1fr 1fr}.review-grid{grid-template-columns:1fr 1fr}.product-detail{gap:25px}.product-detail h1{font-size:28px}}
@media(max-width:520px){.container{padding-left:18px;padding-right:18px}.brand{font-size:22px}.hero-copy{width:100%;padding:26px 0 30px}.hero h1{font-size:37px}.hero-copy>p{font-size:19px;max-width:350px}.hero-art{opacity:.14;right:-160px}.hero-custom{opacity:.15;width:100%}.hero .search-form input{font-size:13px}.section-heading{align-items:flex-start;gap:12px}.section-heading h2{font-size:20px}.section-heading>a{font-size:11px;white-space:normal;text-align:right;max-width:105px}.category-grid{gap:8px}.category{font-size:12px;min-height:96px;gap:6px}.category span{font-size:33px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image{height:145px}.demo-image{transform:scale(.88)}.product-card h3{font-size:12px;min-height:38px}.product-card .button{font-size:12px;padding:10px 5px}.price{font-size:16px}.rating small{font-size:10px}.rating{font-size:13px}.trust-icon{width:55px;height:60px}.trust-icon svg{width:35px}.trust-banner{padding:18px;align-items:flex-start}.trust-banner>div:nth-child(2){flex:1}.trust-banner h2{font-size:15px}.trust-banner p{font-size:12px}.trust-banner br{display:none}.trust-banner .button{margin-left:70px;min-width:0}.footer-grid{gap:22px}.footer-grid>div:first-child{grid-column:1/-1}.footer-grid>div:last-child{grid-column:1/-1}.footer-categories{grid-template-columns:1fr}.review-grid,.product-detail{grid-template-columns:1fr}.inner-page h1{font-size:28px}.product-detail{margin-top:20px}.entry-content{font-size:15px}.detail-image{min-height:250px}.home-content section{margin-bottom:27px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
