/* ================= CỬA HÀNG BÁN LẺ =================
   Thanh trên kiểu cửa hàng, nút thêm vào giỏ, giỏ trượt, trang Giỏ hàng – Đặt hàng, thanh dưới trên điện thoại.
   Dùng chung bộ màu ở đầu style.css (--xanh, --xanh-dam, --do, --vang). */
:root { --sh-h: 76px; --sh-blue: var(--xanh-dam); --sh-deep: #1d6db5; }
body.no-scroll { overflow: hidden; }

/* ---------- dải cam kết trên cùng ---------- */
.sh-top { background: var(--sh-deep); color: #fff; font-size: 13px; }
.sh-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 36px; }
.sh-promise { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.sh-promise li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sh-promise svg { color: var(--vang); }
.sh-top-r { display: flex; gap: 18px; white-space: nowrap; }
.sh-top-r a, .sh-top-r span { display: inline-flex; align-items: center; gap: 6px; color: #fff; opacity: .92; }
.sh-top-r a:hover { opacity: 1; text-decoration: underline; }

/* ---------- thanh chính: logo · tìm · gọi · giỏ ---------- */
.sh-head { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 14px rgba(var(--xanh-dam-rgb), .10); }
.sh-head .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--sh-h); }
.sh-head .brand { flex: none; }
.sh-menu { display: none; width: 44px; height: 44px; border: 1.5px solid var(--xanh-vien); border-radius: 10px; background: var(--xanh-nhat); color: var(--sh-blue); cursor: pointer; place-items: center; flex: none; }
.sh-menu svg { width: 22px; height: 22px; }
.sh-search { flex: 1; display: flex; min-width: 0; max-width: 620px; margin-inline: auto; border: 2px solid var(--sh-blue); border-radius: 12px; overflow: hidden; background: #fff; }
.sh-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; height: 46px; font: inherit; font-size: 15px; background: transparent; }
.sh-search input:focus { outline: none; }
.sh-search button { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0 20px; background: var(--sh-blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.sh-search button:hover { background: var(--sh-deep); }
.sh-search button svg { width: 18px; height: 18px; }
.sh-call, .sh-cart { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); line-height: 1.2; }
.sh-ico { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--xanh-nhat); color: var(--sh-blue); flex: none; }
.sh-ico svg { width: 22px; height: 22px; }
.sh-call .sh-ico { background: var(--do); color: #fff; }
.sh-call small, .sh-cart small { display: block; font-size: 12px; color: var(--muted); }
.sh-call b { font-size: 17px; color: var(--do); white-space: nowrap; }
.sh-cart b { font-size: 14.5px; white-space: nowrap; }
.sh-cart:hover .sh-ico { background: var(--sh-blue); color: #fff; }
/* nút giỏ hàng: đỏ thẫm chuyển sắc, viền sáng mảnh, chữ phụ ánh vàng — nổi bật mà sang */
.sh-cart { background: linear-gradient(135deg, #e8343a 0%, #c41820 55%, #9e1018 100%); color: #fff; border-radius: 14px; padding: 6px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 22px -8px rgba(158, 16, 24, .6), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.sh-cart .sh-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sh-cart small { color: #ffe2a0; font-weight: 500; letter-spacing: .01em; }
.sh-cart b { color: #fff; font-size: 15px; letter-spacing: .01em; }
.sh-cart:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 26px -8px rgba(158, 16, 24, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.sh-cart:hover .sh-ico { background: rgba(255, 255, 255, .24); color: #fff; }
.sh-cart .sh-ico em { background: linear-gradient(180deg, #ffd96e, #f2b000); color: #4a2a00; border-color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.sh-cart.bump { animation: cart-bump .5s ease; }
/* vệt sáng lướt qua giống logo, cùng nhịp với logo (logo-shine 3,6 giây) */
.sh-cart { position: relative; overflow: hidden; }
.sh-cart::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 40%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  animation: logo-shine 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sh-cart::after { animation: none; display: none; } }
@keyframes cart-bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.sh-ico em, .sh-tab em { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--do); color: #fff;
  font-style: normal; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.sh-zalo { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--zalo); color: #fff; }
.sh-zalo .zl, .sh-tab .zl { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: -.02em; }

/* ---------- thanh danh mục ---------- */
.sh-cats { background: var(--sh-blue); color: #fff; position: relative; z-index: 55; }
.sh-cats .wrap { display: flex; align-items: center; gap: 6px; min-height: 46px; }
.sh-all { position: relative; flex: none; }
.sh-all-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; background: var(--sh-deep); font-weight: 600; font-size: 15px; }
.sh-all-btn svg { width: 17px; height: 17px; }
.sh-all-menu { position: absolute; left: 0; top: 100%; min-width: 300px; background: #fff; color: var(--ink); list-style: none; margin: 0; padding: 8px;
  border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.sh-all:hover .sh-all-menu, .sh-all:focus-within .sh-all-menu { opacity: 1; visibility: visible; transform: none; }
.sh-all-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.sh-all-menu a:hover { background: var(--xanh-nhat); color: var(--sh-blue); }
.sh-all-menu em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.sh-links { display: flex; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.sh-links a { display: block; padding: 0 14px; line-height: 46px; font-weight: 500; font-size: 15px; white-space: nowrap; color: #fff; opacity: .95; }
.sh-links a:hover, .sh-links a[aria-current="page"] { background: rgba(255, 255, 255, .14); opacity: 1; }
.sh-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--vang); }
.sh-si { margin-left: auto; white-space: nowrap; font-size: 14px; color: var(--vang-nhat); }
.sh-si b { color: var(--vang); }

/* ---------- menu trượt (điện thoại) ---------- */
.sh-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(15, 30, 50, .5); }
.sh-drawer-box { position: absolute; inset: 0 auto 0 0; width: min(330px, 86vw); background: #fff; overflow-y: auto; padding: 0 0 20px; display: flex; flex-direction: column; animation: sh-left .2s ease; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--sh-blue); color: #fff; }
.sh-drawer-head button, .mc-head button { border: 0; background: none; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.sh-drawer ul { list-style: none; margin: 0; padding: 8px; }
.sh-drawer li a { display: flex; justify-content: space-between; padding: 12px 12px; border-radius: 8px; font-weight: 500; border-bottom: 1px solid var(--line); }
.sh-drawer li a[aria-current="page"] { color: var(--do); }
.sh-drawer em { font-style: normal; color: var(--muted); font-size: 13px; }
.sh-drawer .btn { margin: 12px 16px 0; }
@keyframes sh-left { from { transform: translateX(-100%); } }
@keyframes sh-right { from { transform: translateX(100%); } }

/* ---------- thẻ sản phẩm: giá + nút giỏ ---------- */
.card .price { font-weight: 700; color: var(--do); font-size: 16.5px; }
.card .price.ask { color: var(--do-dam); font-size: 14.5px; }
.add-cart { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--sh-blue); background: #fff; color: var(--sh-blue);
  border-radius: 9px; padding: 7px 11px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s ease; }
.add-cart svg { width: 17px; height: 17px; }
.add-cart:hover, .add-cart.done { background: var(--sh-blue); color: #fff; }
.add-cart.done span::after { content: " ✓"; }
/* giá một dòng, nút «Thêm vào giỏ» dòng dưới, rộng hết thẻ: thẻ nào cũng thẳng hàng như nhau */
.card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.card-foot .add-cart { justify-content: center; width: 100%; }

/* ---------- trang sản phẩm: khung mua ---------- */
.pd-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: stretch; }
.pd-buy .btn { padding-block: 16px; font-size: 16.5px; }
.pd-or { margin: 14px 0 0; font-size: 14.5px; color: var(--xanh-nhat); }
.pd-or a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--xanh-vien); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 42px; border: 0; background: var(--xanh-nhat); color: var(--sh-blue); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--xanh-vien); }
.qty button svg { width: 18px; height: 18px; }
.qty input { width: 54px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 17px; -moz-appearance: textfield; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; height: 32px; font-size: 17px; }
.qty.sm input { width: 40px; font-size: 15px; }

/* ---------- giỏ trượt ---------- */
.mini-cart { position: fixed; inset: 0; z-index: 95; background: rgba(15, 30, 50, .5); }
.mc-box { position: absolute; inset: 0 0 0 auto; width: min(420px, 100vw); background: #fff; display: flex; flex-direction: column; animation: sh-right .2s ease; }
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 18px; }
.mc-list { flex: 1; overflow-y: auto; padding: 6px 20px; }
.mc-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.mc-empty a { color: var(--sh-blue); font-weight: 600; }
.mc-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; }
.mc-sum, .co-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; }
.mc-sum b, .co-sum b { color: var(--do); font-size: 20px; text-align: right; }
.ci { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-img { flex: none; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ci-name { font-weight: 600; line-height: 1.35; font-size: 15px; }
.ci-name:hover { color: var(--sh-blue); }
.ci-price { color: var(--do); font-weight: 600; font-size: 14.5px; }
.ci-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ci-sub { margin-left: auto; font-size: 16px; }
.ci-del { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.ci-del:hover { color: var(--do); }

/* ---------- thông báo nhỏ ---------- */
.sh-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 99; background: #16324f; color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25); font-size: 15px; max-width: calc(100vw - 32px); animation: sh-up .2s ease; }
.sh-toast a { color: var(--vang); font-weight: 700; text-decoration: underline; }
@keyframes sh-up { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- trang Giỏ hàng – Đặt hàng ---------- */
.cart-sec { background: var(--bg); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 26px; align-items: start; }
.cart-items, .checkout, .cart-empty, .cart-done { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.cart-items h2, .checkout h2 { font-size: 20px; margin-bottom: 6px; }
.cart-items h2 small { font-size: 14px; color: var(--muted); font-weight: 500; }
.cart-items .link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; }
.checkout { display: grid; gap: 14px; position: sticky; top: calc(var(--sh-h) + 16px); }
.checkout label { display: block; font-weight: 600; font-size: 14.5px; }
.checkout label > input, .checkout label > textarea { display: block; margin-top: 6px; }
.checkout label i { color: var(--do); font-style: normal; }
.checkout input:not([type=radio]), .checkout textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-weight: 400; font-size: 15.5px; background: #fff; }
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--sh-blue); box-shadow: 0 0 0 3px rgba(var(--xanh-dam-rgb), .14); }
.checkout fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.checkout legend { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; padding: 0; }
.opt { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-weight: 400 !important; }
.opt:has(input:checked) { border-color: var(--sh-blue); background: var(--xanh-nhat); }
.opt input { margin-top: 4px; accent-color: var(--sh-blue); }
.opt b { display: block; font-size: 15px; }
.opt small { color: var(--muted); font-size: 13px; }
.checkout .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-sum { border-top: 1px dashed var(--line); padding-top: 14px; }
.co-note { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.co-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff1f1; color: var(--do-dam); font-weight: 600; font-size: 14.5px; }
.co-err a { text-decoration: underline; }
.co-btn { width: 100%; padding-block: 16px; font-size: 18px; }
.co-btn:disabled { opacity: .65; cursor: wait; }
.co-safe { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 13.5px; }
.cart-empty, .cart-done { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 40px 24px; }
.cart-empty b, .cart-done b { font-size: 22px; }
.cart-done p { margin: 0; }
.ce-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--xanh-nhat); color: var(--sh-blue); }
.ce-ico svg { width: 34px; height: 34px; }
.ce-ico.ok { background: #e7f7ee; color: #1f8a4c; }

/* ---------- thanh dưới (điện thoại) ---------- */
.sh-tab { display: none; }

/* ---------- màn hình vừa và nhỏ ---------- */
@media (max-width: 1240px) {
  .sh-si, .sh-top-r span { display: none; }
  .sh-call small { display: none; }
}
@media (max-width: 1100px) {
  .sh-links a { padding: 0 10px; font-size: 14.5px; }
  .sh-cart-t { display: none; }
  .sh-cart { padding: 5px; }
}
@media (max-width: 900px) {
  :root { --sh-h: 62px; }
  .sh-top .wrap { justify-content: center; min-height: 32px; }
  .sh-promise { gap: 14px; overflow: hidden; }
  .sh-promise li:nth-child(n+3), .sh-top-r { display: none; }
  .sh-head .wrap { flex-wrap: wrap; gap: 10px; padding-block: 8px; }
  .sh-menu { display: grid; order: 1; }
  .sh-head .brand { order: 2; margin-right: auto; }
  .sh-head .brand-logo img { height: 42px; width: auto; }
  .sh-head .brand-text b { font-size: 17px; }
  .sh-head .brand-text small { font-size: 9.5px; }
  .sh-call { order: 3; }
  .sh-call > span:last-child, .sh-zalo { display: none; }
  .sh-cart { order: 4; }
  .sh-search { order: 5; flex-basis: 100%; max-width: none; }
  .sh-search input { height: 42px; }
  .sh-search button span { display: none; }
  .sh-cats { display: none; }
  .sh-tab { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); }
  .sh-tab a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; font-size: 11.5px; color: var(--muted); }
  .sh-tab a svg { width: 22px; height: 22px; }
  .sh-tab a .zl { height: 22px; display: grid; place-items: center; color: var(--zalo); }
  .sh-tab a[aria-current="page"] { color: var(--sh-blue); }
  .sh-tab .sh-tab-call { color: var(--do); font-weight: 600; }
  .sh-tab em { top: 2px; right: calc(50% - 22px); }
  body { padding-bottom: 62px; }
  .dock { bottom: 74px !important; }
  .sh-toast { bottom: 76px; }
  .cart-grid { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .pd-buy { grid-template-columns: auto 1fr; }
  .pd-buy [data-now] { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .add-cart { padding: 7px 9px; font-size: 13.5px; }
  .card .price { font-size: 15px; }
  .card .price.ask { font-size: 13px; }
  .cart-items, .checkout { padding: 18px 16px; }
  .ci-img { width: 66px; height: 66px; }
}

/* điện thoại: logo gọn một hàng với nút menu, gọi, giỏ; dãy danh mục trượt ngang */
@media (max-width: 900px) {
  .sh-head .wrap { flex-wrap: wrap; }
  .sh-head .brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .sh-head .brand-logo { flex: none; }
  .sh-head .brand-logo img { height: 38px !important; width: auto !important; }
  .sh-head .brand-text { min-width: 0; }
  .sh-head .brand-text small { display: none; }
  .sh-head .brand-text b { font-size: 16px !important; white-space: nowrap; }
  .sh-head .sh-ico, .sh-menu { width: 40px; height: 40px; }
  .sh-tab .zl { background: none !important; color: var(--zalo) !important; width: auto; font-size: 14px; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .toolbar .chips > * { flex: none; }
}
@media (max-width: 360px) { .sh-head .brand-text b { font-size: 14px !important; } }
@media (max-width: 900px) { .sh-head .sh-call { display: none; } }

/* ---------- kiểu sàn: đã bán, còn hàng, sắp xếp, tra cứu đơn ---------- */
.card-meta { display: flex; justify-content: space-between; gap: 8px; min-height: 18px; font-size: 12.5px; color: var(--muted); }
.card-meta .stock.it { color: #b45309; font-weight: 600; }
.card-meta .stock.het { color: var(--do-dam); font-weight: 600; }
.card-meta .sold { margin-left: auto; }
.card.out .card-img img { opacity: .55; }
.sort-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; background: var(--xanh-nhat); border-radius: 12px; font-size: 14.5px; }
.sort-bar span { color: var(--muted); margin-right: 4px; }
.sort-bar button { border: 1.5px solid var(--xanh-vien); background: #fff; border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.sort-bar button.on { background: var(--sh-blue); border-color: var(--sh-blue); color: #fff; font-weight: 600; }
.done-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.track-wrap { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.track-form { position: static; }
.track-res { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.track-res h2 { font-size: 20px; }
.steps-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; padding: 0; margin: 18px 0; counter-reset: s; }
.steps-bar li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.steps-bar li::before { content: ""; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.steps-bar li:first-child::before { display: none; }
.steps-bar li.on::before { background: #1f8a4c; }
.steps-bar i { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--line); color: #fff; }
.steps-bar li.on { color: #1f8a4c; font-weight: 600; }
.steps-bar li.on i { background: #1f8a4c; }
.tr-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tr-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .track-wrap { grid-template-columns: 1fr; } }
/* điện thoại: ô «Giỏ hàng» ở thanh dưới tô đỏ cho dễ thấy */
.sh-tab a.sh-tab-cart { color: var(--do); font-weight: 700; }
.sh-tab a.sh-tab-cart svg { background: var(--do); color: #fff; border-radius: 50%; padding: 4px; width: 30px; height: 30px; box-sizing: border-box; }
.sh-tab a.sh-tab-cart.bump { animation: cart-bump .5s ease; }
/* một nút liên hệ: lần lượt «Gọi đặt hàng» (đỏ) rồi «Chat Zalo» (xanh), đổi nhịp nhàng; rê chuột vào thì dừng để bấm */
.sh-contact { position: relative; display: grid; flex: none; }
.sh-contact > a { grid-area: 1 / 1; animation: cc-a 7s ease-in-out infinite; }
.sh-contact > a.cc-zalo { animation-name: cc-b; }
.sh-contact:hover > a, .sh-contact:focus-within > a { animation-play-state: paused; }
.cc-zalo .sh-ico { background: var(--zalo); color: #fff; }
.cc-zalo .sh-ico .zl { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: -.02em; }
.cc-zalo b { color: var(--zalo); }
.sh-contact .sh-ico { animation: cc-ring 1.75s ease-out infinite; }
/* cả hai đều trồi từ dưới lên rồi trôi lên trên mất đi — luôn chạy lên, thay nhau */
@keyframes cc-a { 0% { opacity: 0; visibility: hidden; transform: translateY(10px); } 6%, 44% { opacity: 1; visibility: visible; transform: none; }
  50%, 100% { opacity: 0; visibility: hidden; transform: translateY(-10px); } }
@keyframes cc-b { 0%, 44% { opacity: 0; visibility: hidden; transform: translateY(10px); } 50%, 94% { opacity: 1; visibility: visible; transform: none; }
  100% { opacity: 0; visibility: hidden; transform: translateY(-10px); } }
@keyframes cc-ring { 0% { box-shadow: 0 0 0 0 rgba(213, 31, 38, .35); } 100% { box-shadow: 0 0 0 10px rgba(213, 31, 38, 0); } }
.cc-zalo .sh-ico { animation-name: cc-ring-z; }
@keyframes cc-ring-z { 0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, .35); } 100% { box-shadow: 0 0 0 10px rgba(0, 104, 255, 0); } }
@media (max-width: 900px) { .sh-contact { order: 3; } }
@media (prefers-reduced-motion: reduce) { .sh-contact > a, .sh-contact .sh-ico { animation: none; } .sh-contact > a.cc-zalo { display: none; } }
/* giỏ hàng nổi góc phải dưới, ngay trên nút liên hệ: luôn hiện (máy tính; điện thoại đã có giỏ ở thanh dưới) */
.dock-cart { position: relative; overflow: hidden; width: 54px; height: 54px; margin-right: 3px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #e8343a 0%, #c41820 55%, #9e1018 100%); border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 12px 26px -8px rgba(158, 16, 24, .65), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s ease, filter .2s ease; }
.dock-cart:hover { filter: brightness(1.06); transform: translateY(-2px); }
.dock-cart svg { width: 25px; height: 25px; transform-origin: 50% 20%; animation: cart-ring 3.6s ease-in-out infinite; }
.dock-cart:hover svg { animation-play-state: paused; }
/* rung như chuông điện thoại: lắc nhanh một hồi rồi nghỉ, lặp lại */
@keyframes cart-ring { 0%, 22%, 100% { transform: rotate(0); } 2% { transform: rotate(-18deg); } 4% { transform: rotate(16deg); } 6% { transform: rotate(-14deg); }
  8% { transform: rotate(12deg); } 10% { transform: rotate(-10deg); } 12% { transform: rotate(8deg); } 14% { transform: rotate(-6deg); } 16% { transform: rotate(4deg); } 18% { transform: rotate(-2deg); } }
.dock-cart em { position: absolute; top: 4px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font-style: normal; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; background: linear-gradient(180deg, #ffd96e, #f2b000); color: #4a2a00; }
.dock-cart::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 40%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); animation: logo-shine 3.6s ease-in-out infinite; }
.dock-cart.bump { animation: cart-bump .5s ease; }
@media (max-width: 900px) { .dock-cart { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock-cart::after { display: none; } .dock-cart svg { animation: none; } }
/* nút giỏ hàng trên thanh trên cũng rung như chuông, cùng nhịp với nút nổi và vệt sáng */
.sh-cart .sh-ico svg { transform-origin: 50% 20%; animation: cart-ring 3.6s ease-in-out infinite; }
.sh-cart:hover .sh-ico svg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .sh-cart .sh-ico svg { animation: none; } }

/* ---------- trang chủ kiểu cửa hàng ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.cs-item { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cs-item:hover { transform: translateY(-3px); border-color: var(--sh-blue); box-shadow: 0 10px 22px rgba(31, 111, 184, .14); }
.cs-img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--xanh-nhat); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-item b { font-size: 14px; line-height: 1.3; color: var(--ink); }
.cs-item small { font-size: 12px; color: var(--muted); }
.home-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.home-tabs button { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.home-tabs button.on { background: var(--sh-blue); border-color: var(--sh-blue); color: #fff; font-weight: 600; }
.home-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.deal-sec .card .price { color: var(--do); }
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .cat-strip { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
  .cs-item { flex: 0 0 104px; padding: 10px 6px; }
  .cs-img { width: 64px; height: 64px; }
  .cs-item b { font-size: 12.5px; }
  .home-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 640px) { .home-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.home-more { display: flex; justify-content: center; margin-top: 22px; }
.home-more .btn { min-width: 240px; justify-content: center; }
/* điện thoại: 4 cam kết xếp 2 × 2 cho gọn */
@media (max-width: 640px) {
  .trust ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
  .trust li { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; padding: 10px !important; border: 1px solid var(--line) !important; border-radius: 12px; background: #fff; }
  .trust li::before, .trust li::after { display: none !important; }
  .trust .ico { width: 34px !important; height: 34px !important; }
  .trust .ico svg { width: 17px; height: 17px; }
  .trust b { font-size: 13px; }
  .trust small { font-size: 11.5px; line-height: 1.3; }
}
/* đăng nhập phần mềm (nhân viên, giám đốc): góc phải thanh trên cùng, và trong menu điện thoại */
.sh-top-r .sh-login { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; font-weight: 600; }
.sh-top-r .sh-login svg { width: 14px; height: 14px; }
.sh-top-r .sh-login:hover { background: #fff; color: var(--sh-blue); }
.sh-dr-login { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.sh-dr-login svg { width: 15px; height: 15px; }
