/*
Theme Name: Âu Lạc EVA Demo
Description: Catalogue song ngữ tiếng Việt và tiếng Anh cho Xốp EVA Âu Lạc.
Version: 1.0.11
Requires at least: 6.2
Requires PHP: 7.4
Author: Âu Lạc
Text Domain: aulac-eva
*/
:root { --ink:#12244a; --brand:#0037aa; --dark:#082353; --muted:#455674; --line:#dae4f5; --pale:#edf3ff; --width:1200px }
* { box-sizing:border-box }
body { margin:0; font:16px/1.6 system-ui,sans-serif; color:var(--ink); background:#fff }
a { color:inherit; text-decoration:none }
a:focus-visible, summary:focus-visible { outline:3px solid #c08910; outline-offset:4px }
img { display:block; max-width:100%; height:auto }
h1,h2,h3,p { margin:0 0 .75rem }
h1,h2,h3 { line-height:1.13; letter-spacing:-.035em }
h1 { font-size:clamp(2.6rem,6.8vw,6.25rem); font-weight:800 }
h2 { font-size:clamp(1.75rem,3.2vw,2.8rem) }
h3 { font-size:1.38rem }
.wrap { width:min(var(--width),calc(100% - 64px)); margin-inline:auto }
.header { position:relative; z-index:2; border-bottom:1px solid var(--line); background:#fff }
.mast,.tools,.actions { display:flex; align-items:center; gap:.75rem }
.mast { min-height:84px; justify-content:space-between }
.brand { display:flex; align-items:center }
.brand img { width:auto; height:58px }
.custom-logo { max-width:145px; max-height:64px; object-fit:contain }
.menu,.menu ul { list-style:none; padding:0; margin:0 }
.menu { display:flex; align-items:center; gap:clamp(.55rem,1.7vw,1.65rem); font-weight:700; font-size:.91rem }
summary { cursor:pointer }
.menu summary { color:var(--brand) }
.products-menu { position:relative }
.products-menu ul { position:absolute; top:calc(100% + .85rem); left:0; background:#fff; border:1px solid var(--line); border-radius:12px; min-width:235px; padding:.65rem; box-shadow:0 10px 30px #08235318 }
.products-menu ul a { display:block; padding:.45rem .55rem }
.menu-toggle { display:none }
.language { font-size:.78rem; font-weight:800 }
.button { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:45px; border:1px solid var(--brand); padding:.6rem 1rem; border-radius:8px; background:var(--brand); color:white; font-weight:750; white-space:nowrap }
.button:hover { background:var(--dark); color:white }
.outline { background:transparent; color:var(--brand) }
.hero {
    position:relative; isolation:isolate; overflow:hidden; color:white; background:var(--brand);
    min-height:clamp(475px,43vw,650px); display:grid; align-items:center;
    padding-block:clamp(60px,8vw,112px);
}
.hero-photo,.hero-photo::after { position:absolute; inset:0 }
.hero-photo { z-index:-1 }
.hero-photo img { width:100%; height:100%; object-fit:cover; object-position:65% 55% }
.hero-photo::after {
    content:"";
    background:linear-gradient(90deg,#082353fa 0%,#0037aae8 34%,#0037aa95 58%,#08235328 100%);
}
.hero-inner { width:min(var(--width),calc(100% - 64px)) }
.hero-copy { max-width:760px }
.hero h1 { font-size:clamp(3rem,6.3vw,6rem); text-shadow:0 2px 22px #071a4b45 }
.hero .eyebrow { color:#fff; border-left:3px solid #94b8ff; padding-left:.75rem; margin-bottom:1.15rem }
.hero .intro { color:#fff; max-width:53ch; text-shadow:0 1px 10px #071a4b88 }
.hero .button { color:var(--brand); background:#fff; border-color:#fff }
.hero .button:hover { background:var(--pale) }
.hero .outline { color:#fff; background:#08235355; border-color:#fff }
.hero .outline:hover { color:var(--brand); background:#fff }
.eyebrow { color:var(--brand); font-size:.78rem; font-weight:800; letter-spacing:.105em; text-transform:uppercase }
.intro { color:var(--muted); font-size:1.05rem; max-width:42ch; margin:0 0 1.6rem }
.section { padding-block:clamp(36px,5vw,72px) }
.section h2 { margin-bottom:1.45rem }
.cards,.application-grid,.split { display:grid; gap:1.15rem }
.cards { grid-template-columns:repeat(3,minmax(0,1fr)) }
.card { overflow:hidden; border:1px solid var(--line); border-radius:14px; display:block; background:white }
.card:hover { box-shadow:0 8px 24px #08235320 }
.card img { width:100%; aspect-ratio:1.8; object-fit:cover }
.card-copy { padding:1.2rem }
.spec,.card-link { color:var(--brand); font-weight:750; font-size:.9rem }
.spec { display:block; margin-bottom:.45rem }
.applications { background:var(--pale) }
.application-grid { grid-template-columns:repeat(4,minmax(0,1fr)) }
.application-grid a { padding:1rem; background:#fff; border-radius:10px; font-weight:700; border:1px solid var(--line); display:flex; justify-content:space-between; gap:.5rem }
.split { grid-template-columns:1.3fr 1fr }
.split>div { background:#f3f6fc; padding:1.4rem; border-radius:14px }
.split h2 { font-size:1.5rem; margin-bottom:.75rem }
.article { max-width:900px }
.article h1 { font-size:clamp(2.2rem,5vw,4.25rem); margin:.9rem 0 1.4rem }
.article h2 { font-size:1.65rem; margin:1.4rem 0 .6rem }
.article>img { border-radius:14px; margin-bottom:1.4rem }
.footer { background:#1c2d9b; color:#fff; padding-block:clamp(30px,4vw,48px); font-size:.95rem }
.footer-columns { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(20px,5vw,76px) }
.footer-reach { border-left:1px solid #ffffff45; padding-left:clamp(20px,4vw,60px) }
.footer h2 { font-size:clamp(1.15rem,2.3vw,1.55rem); letter-spacing:0; line-height:1.35; margin-bottom:1.35rem }
.footer address { font-style:normal }
.footer-location + .footer-location { margin-top:1rem }
.footer-location h3 { font-size:1rem; letter-spacing:0; margin-bottom:.35rem }
.footer-location h3 span,.footer-contact li span { display:inline-block; width:1.45rem }
.footer-location p { margin:0; overflow-wrap:anywhere }
.footer-contact { list-style:none; padding:0; margin:0; overflow-wrap:anywhere }
.footer-contact li + li { margin-top:.25rem }
.footer-contact a:hover { text-decoration:underline }
.footer-social { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1.25rem }
.footer-social a { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; font-size:1.1rem; font-weight:800 }
.footer-social a:hover { box-shadow:0 0 0 2px #fff }
.footer-social .facebook { background:#0866d9 }
.footer-social .tiktok { background:#101010 }
.footer-social .youtube { background:#e00000 }
@media(max-width:740px) {
    .footer-columns { grid-template-columns:minmax(0,1fr); gap:1.2rem }
    .footer-reach { border-left:0; padding:1rem 0 0; border-top:1px solid #ffffff45 }
}
.skip { position:fixed; top:.5rem; left:.5rem; z-index:5; transform:translateY(-200%); background:#fff; padding:.5rem }
.skip:focus { transform:none }
@media(max-width:1020px) {
    .mast { min-height:72px; position:relative }
    .desktop-nav { display:none }
    .menu-toggle { display:block }
    .mast .nav { order:3 }
    .tools { margin-left:auto }
    .menu { position:absolute; top:100%; right:0; width:min(330px,100%); display:grid; gap:.7rem; padding:1rem; background:white; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px #08235318 }
    .products-menu ul { position:static; box-shadow:none; margin-top:.55rem }
    .application-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (min-width:641px) and (max-width:900px) {
    .cards { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:640px) {
    .wrap { width:calc(100% - 32px) }
    .mast { gap:.55rem; min-height:64px }
    .brand img { height:44px }
    .custom-logo { max-width:92px }
    .tools { gap:.45rem }
    .hotline { min-height:38px; min-width:38px; padding:.25rem }
    .hotline span + span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
    .cards,.split { grid-template-columns:minmax(0,1fr) }
    .hero { align-items:end; min-height:485px; padding-block:95px 45px }
    .hero-inner { width:calc(100% - 32px) }
    .hero h1 { font-size:clamp(2.75rem,12vw,4.5rem) }
    .hero-photo img { object-position:65% center }
    .hero-photo::after { background:linear-gradient(0deg,#082353fe 3%,#0037aadc 49%,#0037aa62 82%,#08235333 100%) }
    .actions { flex-wrap:wrap }
}

.screen-reader-text { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap }
.header { position:sticky; top:0; box-shadow:0 3px 14px #08235309 }
.menu > li > a, .products-menu > summary {
    display:flex; align-items:center; gap:.55rem; position:relative; min-height:44px;
    color:var(--ink); text-decoration:none; transition:color .18s ease;
}
.menu > li > a::after, .products-menu > summary::before {
    content:""; position:absolute; inset:auto 0 4px; height:2px; border-radius:2px;
    background:var(--brand); transform:scaleX(0); transform-origin:left;
    transition:transform .2s ease;
}
.menu > li > a:is(:hover,:focus-visible,[aria-current]), .products-menu:is([open],.is-current) > summary,
.products-menu > summary:is(:hover,:focus-visible) { color:var(--brand) }
.menu > li > a:is(:hover,:focus-visible,[aria-current])::after,
.products-menu:is([open],.is-current) > summary::before, .products-menu > summary:is(:hover,:focus-visible)::before { transform:scaleX(1) }
.products-menu > summary { list-style:none }
.products-menu > summary::-webkit-details-marker, .menu-toggle > summary::-webkit-details-marker { display:none }
.products-menu > summary::after {
    content:""; width:7px; height:7px; border:solid currentColor; border-width:0 2px 2px 0;
    transform:translateY(-2px) rotate(45deg); transition:transform .2s ease;
}
.products-menu[open] > summary::after { transform:translateY(2px) rotate(225deg) }
.products-menu[open] ul, .menu-toggle[open] > .menu { animation:menu-enter .2s ease-out }
@keyframes menu-enter { from { opacity:0; transform:translateY(-7px) } to { opacity:1; transform:translateY(0) } }
.products-menu ul a { border-radius:7px; transition:background-color .18s ease,color .18s ease }
.products-menu ul a:is(:hover,:focus-visible,[aria-current]) { background:var(--pale); color:var(--brand); text-decoration:none }
.language { width:36px; min-height:36px; display:grid; place-items:center; border-radius:8px; border:1px solid transparent; transition:background-color .18s ease }
.language img { width:24px; height:auto; border-radius:3px; box-shadow:0 0 0 1px #12244a25 }
.language:is(:hover,[aria-current]) { background:var(--pale); border-color:var(--line) }
.menu-toggle > summary {
    display:grid; place-items:center; width:42px; height:42px;
    border-radius:8px; border:1px solid var(--line); color:var(--brand); list-style:none;
}
.menu-icon { position:relative; width:17px; height:2px; background:currentColor }
.menu-icon::before,.menu-icon::after {
    content:""; position:absolute; inset:0; background:currentColor;
    transition:transform .2s ease;
}
.menu-icon::before { transform:translateY(-5px) }
.menu-icon::after { transform:translateY(5px) }
.menu-toggle[open] .menu-icon { background:transparent }
.menu-toggle[open] .menu-icon::before { transform:rotate(45deg) }
.menu-toggle[open] .menu-icon::after { transform:rotate(-45deg) }
#products, #main { scroll-margin-top:92px }
@media(max-width:1020px) {
    .menu-toggle > .menu { max-height:calc(100dvh - 140px); overflow:auto; gap:.25rem }
}
@media(prefers-reduced-motion:reduce) {
    .menu *, .menu *::before, .menu *::after, .menu-toggle *, .menu-toggle *::before, .menu-toggle *::after, .language {
        animation:none !important; transition:none !important;
    }
}

.product-article { max-width:var(--width) }
.product-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:clamp(16px,3vw,40px); align-items:start }
.product-gallery-frame { position:relative; border-radius:14px; overflow:hidden; background:var(--pale) }
.product-photo { aspect-ratio:1.15 }
.product-photo img { width:100%; height:100%; object-fit:contain }
.product-gallery-frame button { position:absolute; top:50%; transform:translateY(-50%); border:0; border-radius:9px; width:44px; height:44px; background:#fff; color:var(--brand); font:700 34px/1 system-ui,sans-serif; cursor:pointer; box-shadow:0 2px 12px #08235335 }
.product-gallery-frame button:hover { color:#fff; background:var(--brand) }
.product-gallery-frame button:focus-visible { outline:3px solid #f5c643; outline-offset:2px }
.gallery-prev { left:12px }
.gallery-next { right:12px }
.gallery-count,.gallery-note { margin:.5rem 0 0; color:var(--muted); text-align:center; font-size:.88rem }
.product-specs { padding:clamp(16px,2vw,26px); border-radius:14px; background:#f3f6fc }
.product-specs dl { margin:0 }
.product-specs dl div { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); gap:.75rem; align-items:center; padding:.8rem 0; border-bottom:1px solid #d1dced }
.product-specs dl div:first-child { padding-top:0 }
.product-specs dd { margin:0; text-align:right; font-weight:750 }
.product-description h2 { font-size:1.1rem }
.product-specs .actions { flex-wrap:wrap; margin-top:1.25rem }
@media(max-width:760px) { .product-layout { grid-template-columns:minmax(0,1fr) } }

.product-order { margin-top:1.4rem }
.product-order-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem .75rem }
.product-order label { display:block; font-size:.9rem; font-weight:750 }
.product-order select,.product-order input { width:100%; min-height:44px; margin-top:.35rem; padding:.55rem .7rem; border:1px solid #b8c9e6; border-radius:5px; background:#fff; color:var(--ink); font:inherit }
.product-order :is(input,select):focus-visible { outline:2px solid var(--brand); outline-offset:2px }
.product-order .button { min-height:50px; border-radius:5px; font:inherit; font-weight:800; text-align:center; white-space:normal; cursor:pointer }
.product-order .cart-add { color:#12244a; border-color:#ffd438; background:#ffd438 }
.product-order .cart-add:hover { background:#ffe16c }
.product-cart { margin-top:1rem; padding:.7rem .85rem; border:1px solid var(--line); border-radius:8px; background:#fff }
.product-cart summary { color:var(--brand); font-weight:750 }
.product-cart p { margin:.55rem 0 0 }
.product-cart ul { list-style:none; padding:0; margin:0 }
.product-cart li { display:flex; justify-content:space-between; gap:.65rem; align-items:center; padding:.6rem 0; border-top:1px solid var(--line) }
.product-cart li:first-child { margin-top:.55rem }
.product-cart li button { color:var(--brand); background:var(--pale); border:1px solid var(--line); border-radius:6px; padding:.35rem .6rem; font:inherit; cursor:pointer }
.product-selector { margin-top:1rem; white-space:normal }
@media(max-width:380px) { .product-order-grid .button { grid-column:1 / -1 } }

.cart-request { margin-top:1rem; border-top:1px solid var(--line); padding-top:1rem }
.cart-request label { font-size:.9rem; font-weight:750 }
.cart-request input,.cart-request textarea { display:block; width:100%; min-height:44px; margin-top:.35rem; padding:.55rem .7rem; border:1px solid #b8c9e6; border-radius:5px; background:#fff; color:var(--ink); font:inherit }
.cart-request-note { grid-column:1 / -1 }
.cart-request .button { width:100%; margin-top:1rem; font:inherit; font-weight:750; cursor:pointer }
.cart-request .button:disabled { opacity:.6; cursor:wait }
.cart-request-result:empty { display:none }
.cart-request-result { margin:1rem 0 0; color:var(--brand); font-weight:700 }
@media(max-width:440px) { .cart-request .product-order-grid { grid-template-columns:1fr } }

.dealer-panel { margin-top:1.5rem; padding:clamp(16px,3vw,30px); border:1px solid var(--line); border-radius:14px; background:#f3f6fc }
.article .dealer-panel h2 { margin-top:0; margin-bottom:1rem }
.dealer-panel label { display:block; font-size:.9rem; font-weight:750 }
.dealer-panel input,.dealer-panel textarea { display:block; width:100%; min-height:44px; margin-top:.35rem; padding:.55rem .7rem; border:1px solid #b8c9e6; border-radius:5px; background:#fff; color:var(--ink); font:inherit }
.dealer-panel [data-dealer-empty] { margin:.85rem 0 0; color:var(--muted) }
.dealer-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:.9rem }
.dealer-list:empty { display:none }
.dealer-entry { padding:1rem; border:1px solid var(--line); border-radius:8px; background:#fff }
.dealer-entry img { width:100%; aspect-ratio:1.65; object-fit:cover; margin-bottom:.75rem; border-radius:6px }
.dealer-entry p { overflow-wrap:anywhere }
.dealer-request .button { margin-top:1rem; font:inherit; font-weight:750; cursor:pointer }
.dealer-request .button:disabled { opacity:.6; cursor:wait }
@media(max-width:560px) { .dealer-list,.dealer-panel .product-order-grid { grid-template-columns:1fr } }

.knowledge-list { margin-top:2rem }
.knowledge-list .card-copy p { color:var(--muted); font-size:.95rem }
.knowledge-links { margin-top:1.5rem; flex-wrap:wrap }

.quick-contact {
    position:fixed; z-index:5;
    right:max(18px,env(safe-area-inset-right)); bottom:max(56px,calc(env(safe-area-inset-bottom) + 16px));
    display:flex; flex-direction:column; gap:10px;
}
.quick-contact a {
    display:grid; place-items:center; width:48px; height:48px; border-radius:50%;
    color:#fff; box-shadow:0 3px 14px #10234d38; font-size:.9rem; font-weight:850;
}
.quick-contact a:hover { box-shadow:0 0 0 2px #fff,0 4px 15px #10234d66 }
.quick-contact .zalo { background:#0068d5 }
.quick-contact .messenger { background:#0075d2 }
.quick-contact .phone { background:#d31624 }
@media(max-width:640px) {
    .quick-contact { right:max(8px,env(safe-area-inset-right)); bottom:max(16px,calc(env(safe-area-inset-bottom) + 8px)); gap:8px }
    .quick-contact a { width:44px; height:44px }
}

.topic-filters,.article-topics { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.2rem; padding:0; list-style:none }
.topic-filters button,.article-topics li { padding:.4rem .75rem; border:1px solid var(--line); border-radius:100px; background:var(--pale); color:var(--brand); font:inherit; font-weight:700; font-size:.86rem }
.topic-filters button { cursor:pointer }
.topic-filters button[aria-pressed="true"] { background:var(--brand); color:white }
.knowledge-list .card[hidden] { display:none }
