/*
Theme Name: Khắc Dấu Mộc
Description: Cửa hàng dấu mộc theo yêu cầu — CentriX Con Dấu.
Version: 7.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: centrix
*/
:root{--red:#c62828;--dark:#a61e1e;--ink:#24272e;--muted:#68707d;--line:#e4e5e9;--canvas:#f5f5f7;--cream:#fff;--soft:#fff1f1;--shadow:0 2px 8px #1c24300a;--radius:12px;--header-height:72px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'Be Vietnam Pro',Arial,sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}a:hover{color:var(--red)}img{display:block;max-width:100%;height:auto}svg{width:20px;height:20px;flex:none;vertical-align:middle}
.kdm-icon{display:inline-block;width:20px;height:20px;max-width:none;flex:none;object-fit:contain;vertical-align:middle;filter:var(--icon-filter,none)}.kdm-icon-zalo{filter:none!important}
button,input,select,textarea{font:inherit;max-width:100%}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e39046;outline-offset:3px}button:focus:not(:focus-visible){outline:0}[hidden]{display:none!important}
.container{width:min(1200px,calc(100% - 32px));margin-inline:auto}.screen-reader-text{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{clip:auto;width:auto;height:auto;padding:12px;background:#fff;color:var(--red);left:20px;top:20px;z-index:1000}.text-muted{color:var(--muted)}h1,h2,h3,h4{line-height:1.35}p{margin:0 0 12px}
/* The top information and navigation bars scroll away; only this main header sticks. */
.topbar{height:24px;background:var(--dark);color:#fff;font-size:10px;--icon-filter:brightness(0) invert(1)}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;height:24px}.topbar-inner>span:first-child{display:flex;align-items:center;gap:6px}.topbar .kdm-icon{width:13px;height:13px}.topbar a:hover{color:#fff}.topbar-note{opacity:.85;font-size:10px}
.site-header{position:sticky;top:0;z-index:60;background:var(--red);color:#fff;box-shadow:0 2px 6px #6c131318;--icon-filter:brightness(0) invert(1)}.header-main{height:72px;display:flex;align-items:center;gap:14px;position:relative}
.brand-logo{width:145px;height:58px;background:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:none;padding:4px 8px}.brand-logo>img{width:100%;height:100%;object-fit:contain;max-width:100%}
.header-category-wrap{flex:none}.header-category{display:flex;align-items:center;gap:7px;border:1px solid #ffffff13;background:#ffffff20;border-radius:8px;height:42px;padding:0 12px;color:#fff;font-size:12px;font-weight:600}.header-category>.kdm-icon:last-child{width:12px;height:12px;transform:rotate(90deg)}.header-category:hover,.header-category[aria-expanded=true]{background:#ffffff30}
.header-search-wrap{flex:1;min-width:150px;position:relative;--icon-filter:none}.header-search{display:flex;align-items:center;width:100%;height:42px;background:#fff;border-radius:8px;color:var(--ink);overflow:hidden}.header-search button{display:grid;place-items:center;background:transparent;border:0;color:#71717a;width:42px;flex:none;height:42px;padding:0}.header-search button .kdm-icon{filter:grayscale(1);opacity:.7}.header-search input{width:100%;height:100%;border:0;background:transparent;padding:0 12px 0 0;outline:0;min-width:0;font-size:14px}.header-search:focus-within{box-shadow:0 0 0 3px #ffffff70}.header-search input::placeholder{color:#8a8d94}
.header-utilities{display:flex;align-items:center;gap:10px;flex:none}.header-utility{position:relative;border:0;background:transparent;color:#fff;display:flex;align-items:center;flex-direction:column;gap:2px;font-size:10px;line-height:1.3;min-width:43px;min-height:44px;padding:4px 2px;border-radius:6px}.header-utility>.kdm-icon{width:22px;height:22px}.header-utility b{position:absolute;right:0;top:-4px;background:#fff;color:var(--red);font-size:9px;min-width:14px;height:14px;line-height:14px;text-align:center;border-radius:8px}.header-utility:hover,.header-contact:hover,.header-zalo:hover{color:#fff;background:#ffffff1f}
.header-contact,.header-zalo{display:flex;align-items:center;gap:7px;line-height:1.4;border-radius:6px;padding:5px 3px;font-size:11px;color:#fff;min-height:44px}.header-contact strong{font-size:12px;display:block;white-space:nowrap}.header-contact small{font-size:10px;display:block}.header-zalo>.kdm-icon{width:28px;height:28px;background:#fff;border-radius:7px;padding:2px}
.navigation{background:#fff;border-bottom:1px solid var(--line)}.nav-inner{height:36px;display:flex;gap:29px;align-items:center;font-weight:600;font-size:14px}.nav-inner>a{height:36px;display:flex;align-items:center;position:relative;white-space:nowrap}.nav-inner>a.is-current{color:var(--red)}.nav-inner>a.is-current:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--red)}.nav-note{display:flex;gap:6px;align-items:center;margin-left:auto;font-size:10px;font-weight:400;color:var(--muted)}.nav-note .kdm-icon{width:14px;height:14px;filter:grayscale(1)}
/* Shared buttons, headings and reading surfaces. */
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:8px;font-weight:600;font-size:13px;line-height:1.45;text-align:center}.button .kdm-icon{width:18px;height:18px}.button-red{background:var(--red);color:#fff;--icon-filter:brightness(0) invert(1)}.button-red:hover{background:var(--dark);color:#fff}.button-border,.button-outline-light{border-color:var(--red);color:var(--red);background:#fff;--icon-filter:none}.button-border:hover,.button-outline-light:hover{background:var(--soft)}.button-light{background:#fff;border-color:var(--line);--icon-filter:none}
.eyebrow,.section-kicker{display:block;font-size:10px;letter-spacing:.07em;font-weight:700;color:var(--red)}.section{margin-top:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.section-heading h1,.section-heading h2{font-size:22px;letter-spacing:-.035em;margin:0;font-weight:700}.section-heading p{margin:4px 0 0;font-size:13px;color:var(--muted)}.section-heading>a{font-size:12px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:500}.section-heading>a .kdm-icon{width:15px;height:15px}.section-more{text-align:center;margin-top:16px}.section-more a{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;padding:9px 22px;border-radius:7px;font-size:12px;font-weight:500}
.breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:16px 0}.breadcrumbs .kdm-icon{width:12px;height:12px}.breadcrumbs a:hover{color:var(--red)}.price-line{display:flex;gap:5px;align-items:baseline;flex-wrap:wrap}.price{color:var(--red);font-weight:700;font-size:20px;letter-spacing:-.025em}.price-line del,.detail-price del{color:#8a8c92;font-size:12px}
.card-link{flex:1;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#fff3f3;color:var(--red);font-weight:600;border-radius:6px;font-size:12px}.card-link:hover{background:#ffe4e4}.card-link .kdm-icon{width:14px;height:14px}
.pagination{margin:26px 0}.nav-links{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.page-numbers{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);padding:6px 12px;border-radius:6px;min-height:40px}.page-numbers.current{background:var(--red);border-color:var(--red);color:#fff}
.empty-state,.contact-panel,.description,.content-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px}.empty-state{text-align:center;padding:42px 20px}.empty-state h2{margin:0 0 10px}.empty-state p{color:var(--muted)}.content{line-height:1.9}.content a{color:var(--red)}.content img{height:auto}.content h2{font-size:22px}.content h3{font-size:18px}.content ul,.content ol{padding-left:22px}
/* Footer: a clear contact entrance followed by four aligned information columns. */
.site-footer{margin-top:32px;background:#fff;border-top:1px solid var(--line);color:#667080}
.footer-contact-strip{background:#fff7f7;border-bottom:1px solid #f0dede}.footer-contact-strip>.container{display:grid;grid-template-columns:minmax(0,1fr) 228px 228px;gap:16px;align-items:center;padding-block:22px}
.footer-contact-intro{display:flex;align-items:center;gap:14px;min-width:0}.footer-contact-intro>.kdm-icon{width:38px;height:38px}.footer-contact-intro strong{display:block;color:var(--ink);font-size:19px;line-height:1.4}.footer-contact-intro small{display:block;margin-top:4px;font-size:12px;line-height:1.65;color:#747b87}
.footer-contact-card{display:flex;align-items:center;gap:12px;min-height:66px;padding:10px 14px;border:1px solid #ecd7d7;background:#fff;border-radius:10px;line-height:1.45}.footer-contact-card>.kdm-icon{width:29px;height:29px}.footer-contact-card span{min-width:0}.footer-contact-card small{display:block;font-size:11px;color:#747b87}.footer-contact-card strong{display:block;font-size:18px;color:var(--red);white-space:nowrap}.footer-contact-zalo{border-color:#d9e8f8}.footer-contact-zalo strong{font-size:15px;color:#206cca}.footer-contact-card:hover{border-color:var(--red);box-shadow:0 3px 10px #9c25250a}
.footer-grid{display:grid;grid-template-columns:1.2fr 1.15fr .9fr 1fr;gap:32px;padding-block:32px}.footer-grid>*{min-width:0}.footer-brand>a{display:block;width:100%}.footer-brand img{display:block;width:100%;max-width:320px;height:auto;object-fit:contain;object-position:left center;margin-bottom:12px}.footer-brand h2{font-size:16px;color:var(--ink);margin:0 0 8px}.footer-brand p{font-size:13px;line-height:1.8;margin:0;color:#747b87}
.footer-group summary{color:var(--ink);font-size:14px;font-weight:700;margin-bottom:17px;list-style:none;pointer-events:none}.footer-group summary::-webkit-details-marker{display:none}.footer-group summary>.kdm-icon{display:none}.footer-group p{font-size:12px;line-height:1.8;margin:0 0 10px}.footer-group a{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.8}.footer-info{display:flex;gap:8px;align-items:flex-start}.footer-group .kdm-icon{width:17px;height:17px;margin-top:3px}.footer-grid a{overflow-wrap:anywhere}.footer-group a:hover{color:var(--red)}.footer-more{color:var(--red);font-weight:500}
.copyright{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:16px;border-top:1px solid var(--line);font-size:10px;line-height:1.7;color:#8b929d}.copyright-note{margin-left:auto;text-align:right}.icons-credit{white-space:nowrap;color:#6b7482;text-decoration:underline;text-underline-offset:3px}.mobile-bottom-nav{display:none}
@media(min-width:768px){.footer-group:not([open])>div{display:block}.footer-group{display:block}}
@media(max-width:1100px){.header-main{gap:10px}.header-contact{display:none}.header-utilities{gap:8px}.nav-note{font-size:9px}.footer-grid{gap:24px}.footer-contact-strip>.container{grid-template-columns:minmax(0,1fr) 208px 208px;gap:12px}.footer-contact-intro strong{font-size:17px}}
@media(max-width:900px){.header-zalo{display:none}.nav-note{display:none}.footer-grid{grid-template-columns:1fr 1fr;gap:28px 36px}.footer-brand img{max-width:270px}.footer-contact-strip>.container{grid-template-columns:1fr 1fr}.footer-contact-intro{grid-column:1/-1}.footer-contact-intro>.kdm-icon{width:30px;height:30px}.copyright{flex-wrap:wrap;gap:8px 16px}.copyright-note{order:3;flex-basis:100%;text-align:left;margin:0}}
@media(max-width:767px){
 :root{--header-height:110px}html{scroll-padding-top:122px}body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}.container{width:calc(100% - 24px)}.topbar{display:none}
 .header-main{height:110px;display:grid;grid-template-columns:115px 1fr auto;grid-template-rows:53px 41px;gap:5px 10px;padding:5px 0 6px}.brand-logo{width:115px;height:52px;grid-column:1;padding:3px 6px}.header-category-wrap{grid-column:2;justify-self:end}.header-category{height:36px;font-size:11px;padding:0 8px;gap:5px}.header-category .kdm-icon{width:17px;height:17px}.header-category>.kdm-icon:last-child{display:none}.header-utilities{grid-column:3;gap:9px}.header-utility{min-width:31px;font-size:9px;padding:2px 0}.header-utility>.kdm-icon{width:20px;height:20px}.header-utility b{right:-3px;font-size:8px;min-width:12px;height:12px;line-height:12px}.header-search-wrap{grid-column:1/-1;grid-row:2;min-width:0}.header-search,.header-search button{height:39px}.header-search input{font-size:12px}.navigation{display:none}
 .section{margin-top:24px}.section-heading{align-items:flex-start;gap:8px;margin-bottom:12px}.section-heading h1,.section-heading h2{font-size:19px}.section-heading p{font-size:12px}.section-heading>a{font-size:11px;align-self:center}.section-heading>a .kdm-icon{width:12px;height:12px}.button{font-size:12px;padding:10px 13px}.empty-state,.contact-panel,.description,.content-panel{padding:20px}.breadcrumbs{font-size:11px;gap:5px}.content h2{font-size:20px}
 .footer-contact-strip>.container{gap:10px;padding-block:20px}.footer-contact-intro{gap:10px;margin-bottom:3px}.footer-contact-intro strong{font-size:16px}.footer-contact-intro small{font-size:11px}.footer-contact-intro>.kdm-icon{width:28px;height:28px}.footer-contact-card{gap:8px;padding:10px;min-height:64px}.footer-contact-card>.kdm-icon{width:23px;height:23px}.footer-contact-card strong{font-size:14px}.footer-contact-card small{font-size:10px}.footer-contact-zalo strong{font-size:12px}
 .footer-grid{display:block;padding-block:24px}.footer-brand{padding-bottom:22px}.footer-brand img{width:240px;max-width:100%;margin-bottom:12px}.footer-brand p{max-width:450px}.footer-group{border-top:1px solid var(--line);padding:15px 0}.footer-group summary{pointer-events:auto;cursor:pointer;display:flex;align-items:center;justify-content:space-between;margin:0;font-size:13px;min-height:24px}.footer-group summary>.kdm-icon{display:block;width:16px;height:16px;transform:rotate(90deg);transition:transform .2s}.footer-group[open] summary{margin-bottom:14px}.footer-group[open] summary>.kdm-icon{transform:rotate(-90deg)}.footer-group a,.footer-group p{font-size:12px}.copyright{font-size:10px;padding-block:14px;gap:7px 12px}.site-footer{margin-top:26px}
 .mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:70;background:#fff;display:flex;align-items:stretch;justify-content:space-around;border-top:1px solid var(--line);box-shadow:0 -3px 14px #1f29370c;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));height:calc(62px + env(safe-area-inset-bottom,0px))}.mobile-bottom-nav>a,.mobile-bottom-nav>button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#666d77;border:0;background:transparent;padding:0;font-size:10px;line-height:1.4}.mobile-bottom-nav .kdm-icon{width:22px;height:22px}.mobile-bottom-nav [aria-current]{color:var(--red)}.mobile-bottom-nav b{background:#fff1f1;color:var(--red);font-size:8px;padding:0 3px;border-radius:4px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
