/* Lớp nền giao diện khách Cao Phong — nạp SAU cp-mau.css. Chỉ chỉnh chi tiết hiển thị, không đổi bố cục hay màu thương hiệu.
   Áp các luật chung từ 3 bộ quy tắc thiết kế: unslop (Damir Sokolovsky, CC BY 4.0, github.com/heydamir/unslop),
   hallmark (github.com/Nutlope/hallmark, MIT) và taste-skill (github.com/Leonxlnx/taste-skill, MIT):
   - 3 cỡ bo góc: nút/ô nhập 8px, thẻ 12px, nhãn tròn 999px; ảnh trong thẻ 8px
   - chữ đậm tối đa 600; chữ thường, không giãn chữ; không chữ dưới 11px
   - số tiền thẳng cột; vùng bấm trên điện thoại tối thiểu 44px
   - viền sáng rõ khi chọn bằng bàn phím; tắt chuyển động khi máy bật "giảm chuyển động"
   Màn Quản trị (body.la-qt) giữ nguyên. */
html, body { overflow-x: clip; }
/* Màu thương hiệu lấy đúng từ logo: đỏ #FF0000. Chữ đỏ nhỏ và trạng thái rê/bấm dùng sắc đậm hơn cùng tông để dễ đọc */
body:not(.la-qt) {
  --luc: #FF0000; --luc-sang: #FF0000; --do: #FF0000; --cp-do: #FF0000; --cp-ngoc: #FF0000; --cp-ngoc-dam: #D10000;
  --dam: #D10000; --cp-do-dam: #B80000; --nhat: #FFF0F0;
  --r-nut: 8px; --r-the: 12px; --r-tron: 999px;
  -webkit-font-smoothing: antialiased;
}

/* Bo góc */
body:not(.la-qt) :is(.nut, .sp-nut, .ct-mua, .goi, .nh-o, .tim-chu, .cp-header-search, input, select, textarea, #nTim) { border-radius: var(--r-nut) !important; }
body:not(.la-qt) :is(.the, .sp-the, .bl-o, .bai-the, .bai-moi-o, .dv-nhanh button, .nh-nhanh button, .hot-the, .canhbao, .chan-tr, .moi-dn, .cs-luoi .dong-ds, .tk-the, .dai-mua, .ma-quay) { border-radius: var(--r-the) !important; }
body:not(.la-qt) :is(.sp-anh, .hot-anh, .sp-the img, .hot-the img) { border-radius: var(--r-nut) !important; }
body:not(.la-qt) :is(.tab-mua, .vip-nhan, .mq-vip) { border-radius: var(--r-tron) !important; }
body:not(.la-qt) :is(#dau .goi, .hang .goi, .nvyt-nut) { border-radius: var(--r-nut) !important; }
body:not(.la-qt) :is(.cay-nhom) { border-radius: var(--r-the) !important; }
body:not(.la-qt) :is(.nh-anh) { border-radius: var(--r-nut) !important; }
body:not(.la-qt) :is(em, .cc-dem) { border-radius: var(--r-tron) !important; }

/* Chữ: đậm tối đa 600, chữ thường không giãn, không quá nhỏ */
body:not(.la-qt) :is(b, strong, h1, h2, h3, h4, h5, th, .bv-doc, .hot-gia, .sp-gia, .ct-gia, .ct-muc, .sp-nut, .ct-mua, .nut) { font-weight: 600 !important; }
body:not(.la-qt) :is([style*="font-weight:700"], [style*="font-weight:800"], [style*="font-weight:900"], [style*="font-weight: 700"], [style*="font-weight: 800"], [style*="font-weight: 900"]) { font-weight: 600 !important; }
body:not(.la-qt) :is(h1, h2, h3) { letter-spacing: normal !important; }
body:not(.la-qt) :is(.sp-hang, b, small, label, em, .tag, .nhan) { text-transform: none !important; letter-spacing: normal !important; }
body:not(.la-qt) small { font-size: max(12px, .8em) !important; }

/* Giá tiền thẳng cột */
body:not(.la-qt) :is(.hot-gia, .sp-gia, .ct-gia, .gia, [class*="-gia"], td) { font-variant-numeric: tabular-nums; }

/* Vùng bấm đủ lớn trên điện thoại */
@media (max-width: 760px) {
  body:not(.la-qt) :is(.sp-nut, .ct-mua, .nut, .goi) { min-height: 44px; }
  body:not(.la-qt) #chan button { min-height: 52px; }
}

/* Viền chọn bằng bàn phím: hiện ngay, rõ ràng */
body:not(.la-qt) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--luc, #C8102E) !important; outline-offset: 2px; box-shadow: none !important;
}

/* Hiệu ứng: chỉ đổi màu, viền, độ mờ; không phóng to thẻ khi rê chuột */
body:not(.la-qt) :is(.sp-the, .hot-the, .bai-the, .bai-moi-o, .the):hover { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Ảnh từng cơ sở để khách nhận ra cửa hàng */
body:not(.la-qt) .cs-luoi .dong-ds.co-anh-cs { flex-wrap: wrap; }
body:not(.la-qt) .cs-anh { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-nut); margin-bottom: 10px; background: #F3F2F1; }
body:not(.la-qt) .cs-anh-to { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-the); margin-bottom: 12px; background: #F3F2F1; }
body:not(.la-qt) .cs-anh-nho { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-nut); display: block; }
@media (min-width: 760px) { body:not(.la-qt) .cs-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; } }
.qt-cs { border: 1px solid var(--vien, #E7E5E4); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.qt-cs-anh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.qt-cs-anh img, .qt-cs-anh > span { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #F3F2F1; display: grid; place-items: center; font-size: 12px; color: #6B6560; }
.qt-cs-anh label { width: auto; padding: 0 12px; display: inline-flex; align-items: center; cursor: pointer; }
