/* =========================================================
   IMS Việt Nam – giao diện trang khách
   Tông màu theo logo: xanh #00AEEF, navy đậm, xám bạc
   ========================================================= */
:root {
  --blue: #00AEEF;
  --blue-d: #0090c8;
  --blue-dd: #00699a;
  --blue-l: #e6f7fd;
  --navy: #0b2545;
  --navy-2: #13315c;
  --silver: #c9ced6;
  --silver-l: #eef1f5;
  --gray: #5b6675;
  --gray-l: #8a94a3;
  --text: #1c2533;
  --bg: #f4f6f9;
  --white: #fff;
  --price: #d62c1f;
  --ok: #12965a;
  --warn: #c7790a;
  --zalo: #0068ff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 37, 69, .08);
  --shadow-h: 0 8px 24px rgba(11, 37, 69, .14);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  overflow-x: hidden; top: 0 !important; /* Google Translate đẩy body xuống – chặn lại */
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dd); text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--gray); }
.small { font-size: .85rem; }

/* ---------- Google Translate: ẩn thanh mặc định ---------- */
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none; }
font[style] { background: transparent !important; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 16px; font-weight: 600; background: var(--blue); color: #fff; transition: background .15s, transform .1s; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--blue-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--silver); }
.btn-outline:hover { background: var(--silver-l); color: var(--navy); }
.btn-zalo { background: var(--zalo); }
.btn-zalo:hover { background: #0052cc; }
.btn-zalo-outline { background: #fff; color: var(--zalo); border-color: #b9d4ff; }
.btn-zalo-outline:hover { background: #eef5ff; color: var(--zalo); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 8px; color: inherit; display: inline-flex; border-radius: 8px; }
.icon-btn:hover { background: var(--silver-l); }

/* ---------- topbar ---------- */
.topbar { background: var(--navy); color: #cfd8e3; font-size: .82rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topbar a { color: #cfd8e3; display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { color: #fff; }
.topbar .ic { width: 14px; height: 14px; }
.topbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  border-radius: 20px; padding: 2px 10px; font-size: .8rem; font-weight: 700;
}
.lang-btn:hover, .lang-btn.on { background: var(--blue); border-color: var(--blue); }
.lang-btn .ic { width: 14px; height: 14px; }

/* ---------- header ---------- */
#site-header { display: contents; } /* để header sticky theo body */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--silver-l); }
.header-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.menu-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo img { width: 56px; height: 56px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 1.2rem; letter-spacing: .5px; color: var(--navy); white-space: nowrap; }
.logo-text small { font-size: .78rem; color: var(--blue-d); font-weight: 600; letter-spacing: .3px; }
.search { position: relative; display: flex; max-width: 620px; width: 100%; justify-self: center; }
.search input {
  flex: 1; min-width: 0; height: 44px; border: 2px solid var(--blue); border-right: 0; border-radius: 22px 0 0 22px; padding: 0 16px; outline: none; background: #fff;
}
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button[type=submit] { width: 56px; height: 44px; border: 0; background: var(--blue); color: #fff; border-radius: 0 22px 22px 0; display: grid; place-items: center; }
.search button[type=submit]:hover { background: var(--blue-d); }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-h);
  z-index: 60; overflow: hidden; border: 1px solid var(--silver-l); max-height: 70vh; overflow-y: auto;
}
.sg-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; color: var(--text); border-bottom: 1px solid var(--silver-l); }
.sg-item:hover { background: var(--blue-l); color: var(--text); }
.sg-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; }
.sg-name { font-size: .9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-name small { display: block; color: var(--gray-l); font-size: .75rem; }
.sg-price { font-weight: 700; color: var(--price); font-size: .88rem; white-space: nowrap; }
.sg-all { display: block; padding: 10px 12px; text-align: center; font-weight: 600; background: var(--silver-l); }
.sg-empty { padding: 14px; color: var(--gray); font-size: .9rem; }
.hotline { display: flex; align-items: center; gap: 10px; }
.hotline-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); display: grid; place-items: center; }
.hotline-nums { display: flex; flex-direction: column; line-height: 1.35; font-size: .9rem; }
.hotline-nums small { color: var(--gray); font-size: .75rem; }
.hotline-nums a { font-weight: 700; color: var(--navy); }
.hotline-nums a.z { font-size: .7rem; font-weight: 700; color: #fff; background: var(--zalo); border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.header-icons { display: flex; gap: 4px; }
.hicon { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--navy); padding: 4px 8px; border-radius: 8px; font-size: .72rem; }
.hicon:hover { background: var(--silver-l); color: var(--navy); }
.hicon .ic { width: 24px; height: 24px; }
.hicon em { font-style: normal; margin-top: 2px; white-space: nowrap; }
.count {
  position: absolute; top: -2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--price); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.count.zero { background: var(--silver); }

/* ---------- navbar + mega menu ---------- */
.navbar { background: linear-gradient(90deg, var(--blue-d), var(--blue)); }
.navbar-in { display: flex; align-items: stretch; gap: 16px; }
.cat-menu { position: relative; width: 270px; flex: none; }
.cat-btn {
  width: 100%; height: 46px; border: 0; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px; padding: 0 16px; text-transform: uppercase; font-size: .88rem; letter-spacing: .3px;
}
.cat-btn .ic { transition: transform .2s; }
.cat-btn[aria-expanded="true"] { background: var(--navy-2); }
.cat-btn:hover { background: var(--navy-2); }
.mega { display: none; position: absolute; top: 100%; left: 0; width: 270px; background: #fff; box-shadow: var(--shadow-h); z-index: 55; border-radius: 0 0 var(--radius) var(--radius); }
.cat-menu.open .mega { display: block; animation: megaIn .15s ease-out; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-4px); } }
.mega-l1 { list-style: none; margin: 0; padding: 6px 0; max-height: calc(100vh - 190px); overflow-y: auto; overscroll-behavior: contain; }
.mega-l1 > li > a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--text); font-weight: 500; font-size: .92rem; }
.mega-l1 > li > a img { width: 24px; height: 24px; object-fit: contain; }
.mega-l1 > li > a span { flex: 1; }
.mega-l1 > li > a .chev { width: 14px; height: 14px; color: var(--gray-l); }
.mega-l1 > li:hover > a, .mega-l1 > li:focus-within > a { background: var(--blue-l); color: var(--blue-dd); }
.mega-loading { padding: 12px 16px; color: var(--gray); }
.mega-panel {
  display: none; position: absolute; left: 100%; top: 0; min-height: 100%; width: min(900px, calc(100vw - 340px)); background: #fff; box-shadow: var(--shadow-h);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; border-left: 3px solid var(--blue);
}
.mega-l1 > li:hover > .mega-panel, .mega-l1 > li:focus-within > .mega-panel { display: block; }
.mega-cols { columns: 3 200px; column-gap: 24px; }
.mega-col { break-inside: avoid; margin-bottom: 16px; }
.mega-h { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .92rem; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 3px 0; color: var(--gray); font-size: .88rem; }
.mega-col li a:hover, .mega-h:hover { color: var(--blue-d); }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links a { display: flex; align-items: center; height: 46px; padding: 0 14px; color: #fff; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: rgba(11, 37, 69, .18); color: #fff; }

/* ---------- drawer mobile ---------- */
.drawer { position: fixed; inset: 0; background: rgba(11, 37, 69, .5); z-index: 200; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; padding-bottom: 80px; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1; }
.drawer-head .icon-btn:hover { background: rgba(255,255,255,.1); }
.drawer-links { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--silver-l); }
.drawer-links a { display: block; padding: 10px 16px; color: var(--text); font-weight: 600; }
.drawer-title { padding: 12px 16px 4px; font-size: .78rem; text-transform: uppercase; color: var(--gray); font-weight: 700; letter-spacing: .5px; }
.drawer-tree, .drawer-tree ul { list-style: none; margin: 0; padding: 0; }
.dt-row { display: flex; align-items: center; border-bottom: 1px solid var(--silver-l); }
.dt-row a { flex: 1; padding: 11px 16px; color: var(--text); }
.lv2 .dt-row a { padding-left: 30px; font-size: .93rem; }
.lv3 .dt-row a { padding-left: 44px; font-size: .9rem; color: var(--gray); }
.dt-toggle { border: 0; background: none; padding: 10px 14px; color: var(--gray); }
.dt-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.drawer-contact { padding: 16px; display: grid; gap: 8px; }
.drawer-contact a { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }

/* ---------- breadcrumb ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--silver-l); font-size: .88rem; }
.breadcrumb .container { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.breadcrumb a { color: var(--gray); }
.breadcrumb .sep { color: var(--silver); }
.breadcrumb .last { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- khối chung ---------- */
main { min-height: 50vh; }
.section { padding-top: 24px; padding-bottom: 24px; } /* không đè padding ngang của .container */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--silver-l); }
.section-head h2 { margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--blue); margin-bottom: -2px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .3px; }
.section-head .more { font-size: .88rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; padding-bottom: 8px; }
.section-head .more .ic { width: 16px; height: 16px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.empty-box { background: #fff; border: 1px dashed var(--silver); border-radius: var(--radius); padding: 32px 16px; text-align: center; color: var(--gray); }
.empty-box .btn { margin-top: 12px; }
.note { border-left: 4px solid var(--blue); background: var(--blue-l); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: .92rem; }
.note.warn { border-color: var(--warn); background: #fff6e6; }
.note a { font-weight: 700; }

/* ---------- slider trang chủ ---------- */
.home-hero { padding-top: 16px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; height: 404px; background: var(--navy); box-shadow: var(--shadow); touch-action: pan-y; }
.slides { display: flex; height: 100%; transition: transform .5s ease; }
.slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; color: #fff; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; padding: 32px 48px; gap: 16px; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-bg svg { width: 100%; height: 100%; }
.slide-text, .slide-media { position: relative; z-index: 1; min-width: 0; }
.slide .kicker { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 12px; }
.slide h2 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.slide p { color: #dbe7f3; margin: 0 0 18px; max-width: 460px; }
.slide .btn { box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.slide-media { display: flex; justify-content: center; align-items: center; height: 100%; }
.slide-media .ring { overflow: hidden; width: min(300px, 100%); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 34px; box-shadow: 0 0 0 12px rgba(0,174,239,.35), 0 0 0 26px rgba(255,255,255,.08), 0 16px 40px rgba(0,0,0,.35); }
.slide-media .ring img { width: 100%; height: 100%; object-fit: contain; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: width .2s; }
.slider-dots button.on { width: 26px; background: var(--blue); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.slider-nav:hover { background: rgba(255,255,255,.35); }
.slider-nav.prev { left: 10px; } .slider-nav.next { right: 10px; }

/* ---------- cam kết ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.commit { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.commit .c-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-l); color: var(--blue-d); display: grid; place-items: center; flex: none; }
.commit .c-ic .ic { width: 24px; height: 24px; }
.commit b { display: block; color: var(--navy); font-size: .95rem; }
.commit span { font-size: .85rem; color: var(--gray); }

/* ---------- danh mục nổi bật ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 16px 12px; text-align: center; box-shadow: var(--shadow); color: var(--navy); font-weight: 600; font-size: .9rem; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); color: var(--blue-dd); }
.cat-tile .cat-img { width: 84px; height: 84px; border-radius: 50%; background: var(--blue-l); display: grid; place-items: center; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-l); }
.cat-tile .cat-img img { width: 70%; height: 70%; object-fit: contain; }
.cat-tile small { color: var(--gray-l); font-weight: 400; }

/* ---------- thẻ sản phẩm ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.grid-products.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; min-width: 0; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.card-img { position: relative; display: block; aspect-ratio: 1; min-height: 0; overflow: hidden; background: #fff; padding: 12px; border-bottom: 1px solid var(--silver-l); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: #fff; text-transform: uppercase; letter-spacing: .3px; }
.badge-new { background: var(--blue); }
.card-tools { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tool { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--silver-l); background: rgba(255,255,255,.95); color: var(--gray); display: grid; place-items: center; transition: all .15s; }
.tool .ic { width: 17px; height: 17px; }
.tool:hover { color: var(--blue-d); border-color: var(--blue); }
.tool.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.tool[data-act="wish"].on { background: var(--price); border-color: var(--price); }
.tool[data-act="wish"].on .ic { fill: currentColor; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { color: var(--text); font-weight: 600; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; overflow-wrap: anywhere; }
.card-name:hover { color: var(--blue-d); }
.card-sku { font-size: .76rem; color: var(--gray-l); }
.card-desc { display: none; margin: 0; font-size: .86rem; color: var(--gray); }
.card-price { font-weight: 800; color: var(--price); font-size: 1.05rem; margin-top: auto; }
.card-price.contact { color: var(--blue-dd); }
.card .btn { width: 100%; padding: 9px 10px; font-size: .88rem; }
.card.skeleton .card-img { background: linear-gradient(90deg, var(--silver-l), #f8f9fb, var(--silver-l)); background-size: 200% 100%; animation: sk 1.2s infinite; }
.sk-line { height: 12px; border-radius: 6px; background: var(--silver-l); margin: 6px 0; }
.sk-line.short { width: 50%; }
@keyframes sk { to { background-position: -200% 0; } }

/* Chế độ danh sách */
.grid-products.list { grid-template-columns: minmax(0, 1fr); }
.grid-products.list .card { flex-direction: row; }
.grid-products.list .card-img { width: 200px; flex: none; border-bottom: 0; border-right: 1px solid var(--silver-l); }
.grid-products.list .card-name { -webkit-line-clamp: 3; min-height: 0; font-size: 1rem; }
.grid-products.list .card-desc { display: block; }
.grid-products.list .card .btn { width: auto; align-self: flex-start; }
.grid-products.list .card-tools { flex-direction: row; }

/* ---------- trang danh mục ---------- */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 16px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; }
.filters h3 { font-size: .9rem; text-transform: uppercase; margin: 16px 0 8px; letter-spacing: .3px; }
.f-cat-list { list-style: none; margin: 0; padding: 0; }
.f-cat-list a { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text); font-size: .92rem; border-bottom: 1px dashed var(--silver-l); }
.f-cat-list a.on { color: var(--blue-dd); font-weight: 700; }
.f-cat-list a.up { color: var(--gray); font-size: .85rem; }
.price-inputs { display: flex; gap: 6px; align-items: center; }
.price-inputs input { width: 100%; min-width: 0; border: 1px solid var(--silver); border-radius: 6px; padding: 7px 8px; font-size: .88rem; }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px solid var(--silver); background: #fff; border-radius: 16px; padding: 4px 10px; font-size: .8rem; color: var(--gray); }
.chip:hover, .chip.on { border-color: var(--blue); color: var(--blue-dd); background: var(--blue-l); }
.radio-list label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .92rem; cursor: pointer; }
.filters .btn { margin-top: 12px; }
.filters-head { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 14px; }
.toolbar .result-count { color: var(--gray); font-size: .9rem; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar select { border: 1px solid var(--silver); border-radius: 6px; padding: 7px 10px; background: #fff; max-width: 100%; }
.view-btns { display: flex; flex: none; border: 1px solid var(--silver); border-radius: 6px; overflow: hidden; }
.view-btns button { border: 0; background: #fff; padding: 6px 9px; color: var(--gray); display: grid; place-items: center; }
.view-btns button.on { background: var(--blue); color: #fff; }
.view-btns .ic { width: 18px; height: 18px; }
.filter-open { display: none; }
.page-title { margin: 0 0 4px; font-size: 1.4rem; }
.cat-children { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.cat-children a { background: #fff; border: 1px solid var(--silver); padding: 6px 12px; border-radius: 18px; font-size: .86rem; color: var(--navy); }
.cat-children a:hover { border-color: var(--blue); color: var(--blue-dd); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--silver-l); color: var(--text); font-weight: 600; padding: 0 8px; }
.pagination a:hover { border-color: var(--blue); color: var(--blue-dd); }
.pagination .cur { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .dots { background: none; border: 0; }
.pagination .ic { width: 16px; height: 16px; }

/* ---------- chi tiết sản phẩm ---------- */
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.gallery-main { position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--silver-l); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-main .zoom-lens { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 220%; opacity: 0; transition: opacity .15s; background-color: #fff; pointer-events: none; }
.gallery-main.zooming .zoom-lens { opacity: 1; }
.gallery-main .zoom-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(11,37,69,.7); color: #fff; border-radius: 16px; padding: 4px 10px; font-size: .75rem; display: flex; gap: 4px; align-items: center; pointer-events: none; }
.gallery-main .zoom-hint .ic { width: 14px; height: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1; border: 2px solid var(--silver-l); border-radius: 8px; background: #fff; padding: 4px; position: relative; }
.thumbs button.on { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs .vid-thumb { display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; gap: 2px; }
.pd-info h1 { font-size: 1.45rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--gray); margin-bottom: 12px; }
.pd-meta b { color: var(--text); }
.pd-price-box { background: var(--silver-l); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.pd-price { font-size: 1.8rem; font-weight: 800; color: var(--price); line-height: 1.2; }
.pd-price.contact { color: var(--blue-dd); }
.pd-vat { font-size: .88rem; color: var(--gray); }
.pd-short { color: var(--gray); margin: 0 0 12px; }
.qty { display: inline-flex; border: 1px solid var(--silver); border-radius: 8px; overflow: hidden; background: #fff; height: 46px; }
.qty button { width: 40px; border: 0; background: #fff; font-size: 1.2rem; color: var(--navy); }
.qty button:hover { background: var(--silver-l); }
.qty input { width: 60px; border: 0; border-left: 1px solid var(--silver-l); border-right: 1px solid var(--silver-l); text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 36px; }
.qty.sm button { width: 32px; }
.qty.sm input { width: 48px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.pd-actions .btn { height: 46px; }
.pd-secondary { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.pd-secondary .btn { padding: 8px 12px; font-size: .88rem; }
.pd-secondary .btn.on { border-color: var(--blue); color: var(--blue-dd); background: var(--blue-l); }
.pd-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--gray); margin-top: 12px; }
.pd-share a, .pd-share button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--silver); border-radius: 18px; padding: 5px 12px; background: #fff; color: var(--navy); font-size: .85rem; }
.pd-share .ic { width: 16px; height: 16px; }
.pd-contact-box { border: 1px dashed var(--blue); border-radius: var(--radius); padding: 12px 14px; font-size: .9rem; background: #fff; }
.pd-contact-box a { font-weight: 700; }
.tabs { margin-top: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tab-btns { display: flex; border-bottom: 1px solid var(--silver-l); overflow-x: auto; scrollbar-width: none; }
.tab-btns button { border: 0; background: none; padding: 14px 20px; font-weight: 700; color: var(--gray); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-btns button.on { color: var(--blue-dd); border-color: var(--blue); }
.tab-pane { padding: 20px; overflow-wrap: anywhere; }
.rich { line-height: 1.7; }
.rich img { height: auto; margin: 10px auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 10px 0; border-radius: 6px; }
.rich table { border-collapse: collapse; width: 100%; }
.rich td, .rich th { border: 1px solid var(--silver); padding: 6px 10px; }
.rich .table-scroll table { overflow-wrap: normal; word-break: normal; }
.rich .table-scroll td, .rich .table-scroll th { min-width: 5.5em; }
.rich h2 { font-size: 1.2rem; margin-top: 1.2em; }
.rich h3 { font-size: 1.05rem; margin-top: 1em; }
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--silver-l); border-radius: 8px; }
.spec-table { width: 100%; min-width: 300px; border-collapse: collapse; font-size: .93rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--silver-l); vertical-align: top; }
.spec-table th { width: 38%; background: var(--silver-l); color: var(--navy); font-weight: 600; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 14, 28, .92); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 50px 56px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; color: #fff; font-size: .9rem; }

/* ---------- giỏ hàng ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .82rem; text-transform: uppercase; color: var(--gray); padding: 0 8px 10px; border-bottom: 2px solid var(--silver-l); }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--silver-l); vertical-align: middle; }
.cart-prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cart-prod img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--silver-l); border-radius: 8px; background: #fff; flex: none; }
.cart-prod a { color: var(--text); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.cart-prod small { display: block; color: var(--gray-l); }
.cart-line-total { font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-unit-price { white-space: nowrap; }
.cart-remove { border: 0; background: none; color: var(--gray-l); padding: 6px; border-radius: 6px; }
.cart-remove:hover { color: var(--price); background: #fdecea; }
.cart-row.disabled { opacity: .7; background: #fffaf0; }
.cart-row .warn-text { color: var(--warn); font-size: .8rem; font-weight: 600; display: block; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 14px; }
.totals { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.totals td { padding: 7px 0; }
.totals td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.totals tr.grand td { border-top: 2px solid var(--silver-l); padding-top: 12px; font-size: 1.15rem; font-weight: 800; color: var(--price); }
.form-grid { display: grid; gap: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.field label .req { color: var(--price); }
.field input, .field textarea { width: 100%; border: 1px solid var(--silver); border-radius: 8px; padding: 10px 12px; background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.15); }
.field.invalid input { border-color: var(--price); }
.field .err { color: var(--price); font-size: .8rem; margin-top: 3px; display: none; }
.field.invalid .err { display: block; }
.field textarea { min-height: 80px; resize: vertical; }
.btn-quote { width: 100%; padding: 16px; font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; background: linear-gradient(90deg, var(--blue-d), var(--blue)); box-shadow: 0 6px 18px rgba(0,174,239,.35); }
.btn-quote:hover { background: linear-gradient(90deg, var(--blue-dd), var(--blue-d)); }
.btn-quote:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
/* Cloudflare Turnstile ("Tôi không phải robot") ngay trên nút Nhận báo giá */
.captcha { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.captcha-widget { width: 100%; max-width: 100%; min-height: 65px; display: flex; justify-content: center; overflow: hidden; }
.captcha-msg { margin: 0; text-align: center; color: var(--gray); }
.captcha-msg.warn { color: var(--warn); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-d); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.quote-result { border: 2px solid var(--ok); border-radius: var(--radius); background: #effaf4; padding: 18px; }
.quote-result h3 { color: var(--ok); display: flex; align-items: center; gap: 8px; }
.quote-no { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.quote-result ul { padding-left: 18px; margin: 10px 0; }
.quote-result .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.side-stack { display: grid; gap: 16px; position: sticky; top: 140px; }
.side-stack > #result:empty { display: none; }

/* ---------- so sánh ---------- */
.compare-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 560px; table-layout: fixed; }
.compare-table th, .compare-table td { border: 1px solid var(--silver-l); padding: 10px; vertical-align: top; font-size: .9rem; overflow-wrap: anywhere; }
.compare-table th { background: var(--silver-l); color: var(--navy); text-align: left; width: 150px; position: sticky; left: 0; z-index: 1; }
.compare-table td.cp-head { text-align: center; }
.compare-table td.cp-head img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 8px; }
.compare-table td.cp-head a.name { font-weight: 700; color: var(--text); display: block; margin-bottom: 8px; }
.compare-table .cp-price { font-weight: 800; color: var(--price); }
.compare-table tr.diff td { background: #fffbea; }

/* ---------- tin tức ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow-h); }
.post-cover { aspect-ratio: 16 / 9; background: var(--navy); display: block; overflow: hidden; position: relative; }
.post-cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.post-cover .cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 16px; font-weight: 700; background: radial-gradient(circle at 80% 20%, rgba(0,174,239,.55), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.post-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h3 { font-size: 1.02rem; margin: 0; }
.post-body h3 a { color: var(--navy); }
.post-body h3 a:hover { color: var(--blue-d); }
.post-body time { font-size: .8rem; color: var(--gray-l); }
.post-body p { margin: 0; color: var(--gray); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.article h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
.article .meta { color: var(--gray); font-size: .88rem; margin-bottom: 14px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; color: var(--text); font-size: .9rem; font-weight: 600; align-items: center; }
.side-list .thumb { aspect-ratio: 4/3; background: var(--navy); border-radius: 6px; overflow: hidden; }
.side-list .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- trang tĩnh ---------- */
.static-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.static-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.static-nav a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--silver-l); color: var(--text); font-size: .93rem; }
.static-nav a.on { background: var(--blue-l); color: var(--blue-dd); font-weight: 700; border-left: 3px solid var(--blue); }
.map-wrap { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--silver-l); margin-top: 12px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.contact-card { border: 1px solid var(--silver-l); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.contact-card b { display: block; color: var(--navy); }
.contact-card .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.contact-card .btn { padding: 7px 12px; font-size: .85rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 56px; background: var(--bg); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* ---------- footer ---------- */
.bulk-note-bar { background: var(--blue-l); border-top: 1px solid #c5ecfb; color: var(--navy); font-size: .92rem; margin-top: 32px; }
.bulk-note-bar .container { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; text-align: center; }
.bulk-note-bar a { font-weight: 800; }
.site-footer { background: var(--navy); color: #c3cfdd; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 32px; padding-bottom: 28px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 12px; }
.site-footer h3:not(:first-child) { margin-top: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c3cfdd; }
.site-footer a:hover { color: var(--blue); }
.site-footer p { margin: 0 0 8px; position: relative; padding-left: 24px; }
.site-footer p > .ic { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; color: var(--blue); }
.f-company p:first-of-type, .f-small { padding-left: 0 !important; }
.f-company b { color: #fff; }
.logo-footer { margin-bottom: 12px; }
.logo-footer img { background: #fff; border-radius: 50%; padding: 3px; width: 52px; height: 52px; }
.logo-footer .logo-text b { color: #fff; }
.f-zalo { display: flex !important; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-weight: 700; color: #fff !important; }
.f-zalo .ic-zalo { width: 30px; height: 30px; }
.f-small { font-size: .82rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom .container { padding-top: 14px; padding-bottom: 14px; text-align: center; }

/* ---------- nút nổi ---------- */
.fab { position: fixed; right: 16px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-item { position: relative; }
.fab-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.22); padding: 0; }
.fab-zalo { background: var(--zalo); animation: pulse 2s infinite; }
.fab-zalo .ic-zalo { width: 50px; height: 50px; border-radius: 50%; }
.fab-call { background: var(--ok); color: #fff; }
.fab-call .ic { width: 24px; height: 24px; }
.fab-top { background: var(--navy); color: #fff; width: 44px; height: 44px; }
.fab-pop { position: absolute; right: 60px; bottom: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-h); padding: 10px; min-width: 190px; display: grid; gap: 6px; }
.fab-pop b { font-size: .85rem; color: var(--gray); }
.fab-pop a { font-weight: 700; color: var(--navy); padding: 6px 8px; border-radius: 6px; background: var(--silver-l); }
.fab-pop a:hover { background: var(--blue-l); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,104,255,.5); } 70% { box-shadow: 0 0 0 14px rgba(0,104,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,104,255,0); } }
.bottom-bar { display: none; }

/* ---------- toast ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-h); font-size: .92rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: auto; animation: tin .2s; transition: opacity .3s, transform .3s; }
.toast a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.toast .ic { width: 18px; height: 18px; color: var(--blue); }
.toast-warn { background: #7a4a00; }
.toast-warn a { color: #ffd88a; }
.toast-err { background: #8f1d14; }
.toast-err a { color: #ffd2cc; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* =================== responsive =================== */
@media (max-width: 1180px) {
  .hotline { display: none; }
  .grid-products.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* giỏ hàng: bảng cần đủ rộng cho giá 9 chữ số → khung báo giá xuống dưới, chia 2 cột */
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .side-stack { position: static; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
}
@media (max-width: 1023px) {
  .commit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .side-stack { position: static; }
  .slide { padding: 28px 56px; }
  .slide h2 { font-size: 1.6rem; }
  .grid-products.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar-text { display: none; }
  .navbar { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-in { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .logo img { width: 42px; height: 42px; }
  .logo-text b { font-size: 1rem; }
  .logo-text small { font-size: .7rem; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search input, .search button[type=submit] { height: 40px; }
  .header-icons { grid-column: 4; justify-self: end; }
  .hicon em { display: none; }
  .hicon { padding: 6px; }
  .listing, .static-layout { grid-template-columns: minmax(0, 1fr); }
  .listing-main { min-width: 0; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); z-index: 210; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .25s; padding-bottom: 90px; }
  .filters.open { transform: none; box-shadow: 4px 0 24px rgba(11,37,69,.25); }
  .filters-backdrop { position: fixed; inset: 0; z-index: 205; background: rgba(11,37,69,.45); }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 10px 0; border-bottom: 1px solid var(--silver-l); z-index: 1; }
  .filter-open { display: inline-flex; }
  .pd-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .static-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .static-nav a { white-space: nowrap; border-bottom: 0; border-right: 1px solid var(--silver-l); }
  .static-nav a.on { border-left: 0; border-bottom: 3px solid var(--blue); }
  .bottom-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-bar a, .bottom-bar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 0 6px; font-size: .7rem; color: var(--navy); border: 0; background: none; }
  .bottom-bar .ic { width: 22px; height: 22px; }
  .bottom-bar .ic-zalo { width: 22px; height: 22px; }
  .bottom-bar .count { top: 2px; right: calc(50% - 22px); }
  /* chừa chỗ cho thanh dưới bằng nền footer (không lộ dải xám); chữ bản quyền tránh cột nút nổi */
  .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .footer-bottom .container { padding-left: 64px; padding-right: 64px; }
  .fab { bottom: 76px; right: 12px; }
  .fab-btn { width: 44px; height: 44px; }
  .fab-zalo .ic-zalo { width: 44px; height: 44px; }
  .fab-top { width: 40px; height: 40px; }
  .site-header { position: sticky; }
  /* vùng bấm >= 40px trên màn hình cảm ứng */
  .menu-toggle { padding: 10px; }
  .hicon { padding: 8px; min-width: 40px; min-height: 40px; justify-content: center; }
  .lang-btn { min-height: 32px; padding: 4px 12px; }
  .topbar-in { min-height: 40px; }
  .tool { position: relative; }
  .tool::after { content: ''; position: absolute; top: -5px; right: -5px; bottom: -5px; left: -5px; border-radius: 50%; }
  .slider-dots button { position: relative; }
  .slider-dots button::after { content: ''; position: absolute; top: -8px; right: -4px; bottom: -8px; left: -4px; }
  .card .btn { min-height: 40px; }
  .pd-secondary .btn, .pd-share a, .pd-share button { min-height: 40px; }
  .toolbar select { height: 40px; }
  .view-btns button { width: 40px; height: 40px; }
  .filter-open { min-height: 40px; }
  .qty.sm { height: 42px; }
  .qty.sm button { width: 40px; }
  .cart-remove { width: 40px; height: 40px; display: grid; place-items: center; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; }
  .static-nav a { padding: 12px 16px; }
  .cat-children a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
  .chip { padding: 7px 12px; }
  .dt-toggle { min-width: 44px; min-height: 44px; }
  .drawer-links a { padding: 12px 16px; }
  .compare-table th { width: 110px; }
  .compare-table td.cp-head img { width: 110px; height: 110px; }
}
/* điện thoại xoay ngang: chiều cao thấp → header không dính để còn chỗ cho nội dung */
@media (max-width: 900px) and (max-height: 500px) {
  .site-header { position: relative; }
  .drawer-panel { padding-bottom: 20px; }
  .filters { padding-bottom: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 12px; }
  .topbar-right a[href^="mailto"] { display: none; }
  .logo-text small { display: none; }
  .header-icons a[href="yeu-thich.html"] { display: none; }
  .grid-products, .grid-products.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-img { padding: 8px; }
  .card-body { padding: 10px; gap: 4px; }
  .card-name { font-size: .86rem; }
  .card-price { font-size: .95rem; }
  .card .btn { font-size: .8rem; padding: 8px 6px; gap: 5px; }
  .card .btn .ic { width: 15px; height: 15px; }
  .tool { width: 30px; height: 30px; }
  .grid-products.list .card-img { width: 110px; }
  .grid-products.list .card-desc { display: none; }
  .slider { height: 440px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 22px 18px 40px; text-align: center; gap: 6px; }
  .slide h2 { font-size: 1.3rem; }
  .slide p { font-size: .88rem; margin: 0 auto 12px; }
  .slide-media { align-items: flex-start; }
  .slide-media .ring { width: 160px; padding: 30px; }
  .slider-nav { display: none; }
  .commit-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .commit { flex-direction: column; padding: 12px; gap: 8px; }
  .commit .c-ic { width: 38px; height: 38px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 10px 6px; font-size: .78rem; }
  .cat-tile .cat-img { width: 58px; height: 58px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .section-head h2 { font-size: 1rem; }
  .pd-price { font-size: 1.5rem; }
  .pd-actions .qty { flex: none; }
  .pd-actions .btn { flex: 1 1 150px; padding: 12px 14px; font-size: 1rem; }
  .pd-actions #buy-now, .pd-actions .btn-zalo, .pd-actions .btn-outline { flex-basis: 100%; }
  .spec-table { font-size: .88rem; }
  .spec-table th, .spec-table td { padding: 8px 10px; }
  .spec-table th { width: 42%; }
  .tab-pane { padding: 14px; }
  .panel { padding: 14px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; grid-template-areas: "prod prod rm" "price price price" "qty total total";
    gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--silver-l); align-items: center;
  }
  .cart-table td { border: 0; padding: 0; width: auto; }
  .cart-table td.c-prod { grid-area: prod; }
  .cart-table td.c-remove { grid-area: rm; align-self: start; }
  .cart-table td.c-price { grid-area: price; font-size: .9rem; }
  .cart-table td.c-qty { grid-area: qty; }
  .cart-table td.c-total { grid-area: total; text-align: right; font-size: 1rem; }
  .cart-table td.c-price::before { content: 'Đơn giá: '; color: var(--gray); font-size: .82rem; }
  .cart-row.disabled { padding-left: 8px; padding-right: 8px; }
  .cart-actions .btn { flex: 1 1 200px; }
  .lightbox { padding: 50px 8px; }
  .toolbar { padding: 8px 10px; }
  .toolbar .result-count { width: 100%; }
  .toolbar-right { width: 100%; flex-wrap: nowrap; }
  .toolbar-right label[for="sort"] { display: none; }
  .toolbar select { flex: 1 1 auto; min-width: 0; }
  .cat-children { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px 0 12px; }
  .cat-children::-webkit-scrollbar { display: none; }
  .cat-children a { white-space: nowrap; flex: none; }
  .article h1 { font-size: 1.3rem; }
  h1 { font-size: 1.35rem; }
}
@media (max-width: 380px) {
  .logo { gap: 6px; min-height: 40px; }
  .logo img { width: 36px; height: 36px; }
  .logo-text b { font-size: .85rem; letter-spacing: .2px; }
  .hicon { padding: 4px; }
  .hicon .ic { width: 22px; height: 22px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-btns { display: none; }
  .card .btn { padding: 8px 4px; font-size: .78rem; }
  .card .btn .ic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .fab, .bottom-bar, .bulk-note-bar { display: none !important; }
}
