/* Shared department tokens: quiet backgrounds, readable accent text, visible frame edges. */
:root{--dept:#126787;--dept-bg:#edf6f9;--dept-edge:#a9cdd9}
[data-dept="wifi"]{--dept:#124fb7;--dept-bg:#edf4ff;--dept-edge:#a5c4ef}
[data-dept="outdoor"]{--dept:#006b67;--dept-bg:#eaf7f3;--dept-edge:#99cfbe}
[data-dept="recorders"]{--dept:#6438a0;--dept-bg:#f3eefb;--dept-edge:#c5b2e5}
[data-dept="locks"]{--dept:#a51c65;--dept-bg:#fbecf3;--dept-edge:#dfaec8}
[data-dept="network"]{--dept:#16354b;--dept-bg:#eff4f7;--dept-edge:#a8c0d0}
[data-dept="solar"]{--dept:#835107;--dept-bg:#fff5de;--dept-edge:#ddbf7d;--dept-fill:#ffd14a;--dept-on-fill:#392500}
[data-dept="smart"]{--dept:#396b20;--dept-bg:#eef6e8;--dept-edge:#b6d2a5}
[data-dept="vehicles"]{--dept:#a03f0e;--dept-bg:#fdf0e8;--dept-edge:#e8b79f;--dept-fill:#ff9a58;--dept-on-fill:#411c07}
[data-dept="office"]{--dept:#4e535a;--dept-bg:#f0f2f4;--dept-edge:#b8bdc5}
[data-dept="radio"]{--dept:#ac242c;--dept-bg:#fbefed;--dept-edge:#dfafaa}

.jump-grid button{border-top:3px solid var(--dept-edge);background:var(--dept-bg);padding:14px 12px;gap:10px}
.jump-grid button:hover{background:#fff;border-top-color:var(--dept)}
.jump-grid button small,.jump-grid button span{color:var(--dept)}
.department-floor .department .department-intro{background:var(--dept-bg);border-top-color:var(--dept);padding:19px}
.department .tag,.department .view-range,.catalog-head .tag,.framed-detail .tag,.framed-detail .price-tag{color:var(--dept)}
.department-filters{gap:8px}
.department-filters a{padding:5px 8px;border-color:var(--dept-edge)}
.department-filters a:hover{border-color:var(--dept);color:var(--dept)}
.tile[data-dept]{border-color:var(--dept-edge);border-top:3px solid var(--dept-edge);background:#fff}
.tile[data-dept]:hover{border-color:var(--dept)}
.tile[data-dept] .art{background:var(--dept-bg);padding:9px 10px}
.tile[data-dept] .art img{width:min(100%,172px);height:100%;object-fit:contain}
.tile[data-dept] .art .hardware{height:100%;width:min(100%,172px)}
.tile[data-dept] .price-tag{color:var(--dept)}
.department-grid .retail-tile .art{height:132px}
.department-grid .retail-tile .copy{padding:12px}
.retail-depts summary{display:block;position:relative;padding:11px 36px 11px 14px;line-height:1.35;list-style:none}
.retail-depts summary::-webkit-details-marker{display:none}
.retail-depts summary::after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg)}
.retail-depts details[open] summary::after{transform:translateY(-25%) rotate(225deg)}
.retail-depts details[data-dept] summary{box-shadow:inset 3px 0 var(--dept-edge)}
.retail-depts details[data-dept][open] summary,.retail-depts details[data-dept] summary:hover{color:var(--dept);background:var(--dept-bg)}
.retail-depts details div{gap:4px;padding:8px 12px 12px 24px}
.retail-depts details div a[data-dept]{color:var(--dept);padding:2px 3px}
.side a[data-dept][aria-current],.side a[data-dept]:hover{background:var(--dept-bg);color:var(--dept);box-shadow:inset 3px 0 var(--dept-edge)}
.catalog-head{border-left:4px solid var(--dept);padding:15px 17px;background:var(--dept-bg);border-radius:0 8px 8px 0}
.catalog-head p:last-child{margin-bottom:0}
.filters{gap:14px 18px;padding:5px 0 3px}
.filters label{display:grid;gap:6px;min-width:153px}
.filters select{appearance:none;margin:0;min-height:44px;width:100%;padding:8px 42px 8px 12px;border-color:#b8c8cd;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4' fill='none' stroke='%23384e59' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/15px no-repeat}
.filters .btn{min-height:44px}
.framed-detail{background:white;border:1px solid var(--dept-edge);border-top:4px solid var(--dept);border-radius:14px;padding:23px;align-items:center;gap:clamp(20px,3vw,40px)}
.framed-detail .art{min-height:clamp(220px,32vw,406px);padding:24px;background:var(--dept-bg);border:1px solid var(--dept-edge)}
.framed-detail .art img{width:min(100%,380px);height:auto;max-height:290px;object-fit:contain}
.framed-detail .art .hardware{width:min(100%,360px);height:auto}
.framed-detail .btn.primary,.wd-product .btn.primary{background:var(--dept);border-color:var(--dept)}

/* Product detail stays mostly white; the accents separate the jobs of each section. */
.wd-product .product{border:1px solid var(--dept-edge);border-top:4px solid var(--dept);border-radius:15px;padding:20px;gap:clamp(18px,3vw,40px)}
.wd-product .visual{min-height:clamp(252px,30vw,420px);border-color:var(--dept-edge);background:radial-gradient(ellipse at 48% 45%,white,var(--dept-bg) 85%)}
.wd-product .visual svg{width:min(70%,348px);max-height:312px}
.wd-product .buy .eyebrow,.wd-product .price strong{color:var(--dept)}
.wd-product .toc{background:var(--dept-bg);border-color:var(--dept-edge)}
.wd-product .toc .wrap{gap:8px;padding:9px 0}
.wd-product .toc a{color:var(--dept);padding:5px 9px;border-radius:5px}
.wd-product .toc a:hover{background:#fff}
.wd-product .reading article section{border:1px solid var(--section-edge,#dce6e9);border-left:4px solid var(--section-ink,#526775);border-radius:0 9px 9px 0;padding:clamp(16px,3vw,25px);margin-bottom:18px;background:linear-gradient(180deg,var(--section-bg,#f6f8f9),white 110px)}
.wd-product .reading article section .eyebrow{color:var(--section-ink,#526775)}
.wd-product #mo-ta{--section-ink:#5c4092;--section-bg:#f3eefb;--section-edge:#ddd0f1}
.wd-product #thong-so{--section-ink:#135f9c;--section-bg:#edf5fe;--section-edge:#cbdff3}
.wd-product #tuong-thich{--section-ink:#086b61;--section-bg:#eaf7f3;--section-edge:#bbdfd4}
.wd-product #dung-luong{--section-ink:#835107;--section-bg:#fff5de;--section-edge:#ecd5a1}
.wd-product #hoi-dap{--section-ink:#8e285a;--section-bg:#fbecf3;--section-edge:#eac6d7}
.wd-product #mua-kem{--section-ink:#435978;--section-bg:#eef2f8;--section-edge:#c9d5e6}
.wd-product .estimate{background:#fffaf1;border-color:var(--section-edge)}
.wd-product .estimate output{color:var(--section-ink)}
.wd-product details summary{list-style:none;position:relative;padding:4px 32px 4px 0}
.wd-product details summary::-webkit-details-marker{display:none}
.wd-product details summary::after{content:"+";position:absolute;right:11px;top:2px;font-size:17px;color:var(--section-ink)}
.wd-product details[open] summary::after{content:"−"}
@media(max-width:620px){
 .filters{gap:12px}.filters label{min-width:0;flex:1 1 138px}
 .retail-depts summary{padding:11px 29px 11px 10px}
 .retail-depts summary::after{right:12px}
 .department-floor .department .department-intro{padding:15px}
 .department-grid .retail-tile .art{height:116px}
 .framed-detail,.wd-product .product{padding:12px}
 .framed-detail .art{min-height:208px;padding:13px}
 .wd-product .visual svg{width:min(66%,220px);max-height:195px}
 .wd-product .toc .wrap{gap:4px}
}
.jump-grid button,.department-floor .department .department-intro,.catalog-head{background:#fff}
.jump-grid button{border-top-color:var(--dept);color:var(--dept)}
.jump-grid button:hover{background:#f4f7f8}
.category-outline,.department-filters a.category-outline,.shortcuts a.category-outline{
 background:#fff;color:var(--dept);border:1px solid var(--dept);border-radius:6px;
}
.category-outline:hover,.department-filters a.category-outline:hover,.shortcuts a.category-outline:hover{background:var(--dept-bg);color:var(--dept)}
.tile[data-dept] .art,.framed-detail .art{background:#f5f7f8}
.tile[data-dept] .price-tag,.framed-detail .price-tag,.wd-product .price strong{color:var(--ink)}
.framed-detail .btn.primary,.wd-product .btn.primary{background:#102a35;border-color:#102a35;color:#fff}
.wd-product .visual{background:#f5f7f8}
.wd-product .toc{background:#fff}
.wd-product .reading article section{background:#fff;border-color:#dce6e9;border-left-color:var(--dept-edge)}
.wd-product .reading article section .eyebrow,.wd-product .estimate output{color:var(--dept)}
.wd-product .estimate{background:#f5f7f8;border-color:#dce6e9}
.product-crumb,.product-contents,.related-products{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.product-crumb{font-size:13px;margin-bottom:18px;color:var(--dept)}
.product-crumb a:hover,.product-contents a:hover{text-decoration:underline}
.product-long .framed-detail figure{margin:0;grid-template-rows:1fr auto;text-align:center}
.product-long .framed-detail figure>div{display:grid;width:100%;height:100%;place-items:center;min-height:0}
.framed-detail figcaption{font-size:12px;color:#52646e}
.product-contents{position:sticky;top:73px;z-index:2;background:#fff;border-bottom:1px solid var(--dept-edge);margin:12px 0 24px;padding:9px 0;gap:5px 13px}
.product-contents a{color:var(--dept);font-weight:700;font-size:13px;padding:5px 4px}
.product-reading{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px}
.product-reading article section{scroll-margin-top:162px;padding:17px 0 20px 16px;margin-bottom:12px;border-left:3px solid var(--dept-edge);border-bottom:1px solid #e4ebee}
.product-reading h2{font-size:clamp(23px,3vw,35px);margin-bottom:12px}
.product-reading .tag{color:var(--dept)}
.product-reading table{width:100%;border-collapse:collapse;margin:10px 0 14px}
.product-reading th,.product-reading td{padding:9px;text-align:left;border-bottom:1px solid #dce6e9}
.product-reading tr:nth-child(odd){background:#f5f7f8}
.product-reading details{border-top:1px solid #dce6e9;padding:10px 0}
.product-reading summary{cursor:pointer;font-weight:700;padding-right:15px}
.product-reading details p{margin:7px 0 0}
.product-help{padding:17px;background:#f5f7f8;border:1px solid #dce6e9;border-radius:8px}
@media(max-width:830px){.product-contents{top:112px}.product-reading{grid-template-columns:minmax(0,1fr) 190px}}
@media(max-width:620px){.product-reading{grid-template-columns:minmax(0,1fr);gap:8px}.product-contents{top:0;position:relative}.product-reading article section{scroll-margin-top:124px}}
.static-product{scroll-behavior:smooth}
.static-product .product-contents{top:73px}
@media(max-width:620px){.static-product .product-contents{position:relative;top:0}}

/* Color lives on the whole navigation button, not in large background areas. */
.retail-links,.shortcuts{gap:10px;padding-inline:2px}
.retail-links a,.shortcuts a{
 display:inline-flex;flex:none;align-items:center;justify-content:center;
 min-height:44px;padding:9px 17px;line-height:1.35;border:1px solid #dce5e9;
 border-radius:7px;background:#fff;color:#274852;
}
.retail-links a[data-dept],.shortcuts a[data-dept],.department-filters a[data-dept],.jump-grid button[data-dept]{
 background:var(--dept-fill,var(--dept));color:var(--dept-on-fill,#fff);
 border:1px solid var(--dept-fill,var(--dept));
 transition:filter .18s,box-shadow .18s;
}
.retail-links a[data-dept]:hover,.shortcuts a[data-dept]:hover,.department-filters a[data-dept]:hover,.jump-grid button[data-dept]:hover{
 background:var(--dept-fill,var(--dept));color:var(--dept-on-fill,#fff);
 filter:brightness(.89);box-shadow:0 2px 6px #14242c24;
}
.department-filters a[data-dept]{padding:6px 10px}
.jump-grid{gap:9px;background:transparent;border:0}
.jump-grid button[data-dept]{min-height:54px;border-radius:7px;padding:11px 12px}
.jump-grid button[data-dept] small,.jump-grid button[data-dept] span{color:inherit}
.framed-detail,.wd-product .product,.department-floor .department .department-intro{border-top-color:var(--dept-fill,var(--dept))}
.tile[data-dept]{border-top-color:var(--dept-fill,var(--dept))}
@media(max-width:650px){
 .retail-links,.shortcuts{gap:8px}
 .retail-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;white-space:normal}
 .retail-links a,.shortcuts a{padding-inline:14px}
 .retail-links a{text-align:center}
}
.supplier-families{padding-block:22px}.supplier-families h2{font-size:clamp(26px,4vw,39px)}.supplier-families>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:14px 0}.supplier-families a{display:flex;flex-direction:column;padding:13px 16px;background:#f5f7f8;border-top:2px solid #187292}.supplier-families a:hover{background:#edf6f9}.supplier-families span{color:var(--muted);font-size:14px}
.cart-card{display:flex;flex-direction:column;min-width:0;gap:6px}.cart-card .tile{flex:1}.cart-add{font-size:14px;width:100%;min-height:42px}.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px}.cart-row{display:grid;grid-template-columns:minmax(0,1fr) 86px 120px auto;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.cart-row small,.cart-summary small{display:block;color:var(--muted)}.cart-row label,#review-order label{display:grid;gap:4px;font-size:14px}.cart-row input,#review-order input,#review-order textarea{font:inherit;border:1px solid #b7c9cf;border-radius:6px;min-height:42px;padding:8px 10px;min-width:0;width:100%}.cart-summary{background:#f5f7f8;border-radius:10px;padding:19px}.cart-summary h2{font-size:25px}.cart-summary p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px}.cart-summary .btn{width:100%;margin:17px 0 10px}.shopping-cart dialog{max-width:480px;width:calc(100% - 26px);padding:23px;border:1px solid var(--line);border-radius:12px;color:var(--ink)}.shopping-cart dialog::backdrop{background:#081c2fa0}.shopping-cart dialog h2{font-size:28px}#review-order{display:grid;gap:10px}#request-status{font-weight:700;margin:0}
@media(max-width:720px){.cart-layout{grid-template-columns:minmax(0,1fr);gap:15px}.cart-row{grid-template-columns:82px minmax(0,1fr) auto;gap:9px}.cart-row>div:first-child{grid-column:1/-1}}
