/* LUỒNG MUA MỚI (đề xuất cho V2) — trang Mua sắm, Xem nhanh, So sánh, Đơn gần đây.
 * Khuôn và bảng màu lấy theo trang Giỏ hàng / Thanh toán sẵn có của V2 (public/styles/commerce/cart.css):
 *   máy tính: thẻ trắng viền #e9e9e9 góc vuông, đầu mục nền #f6f4ef, nút chính lime #bddc24 chữ in hoa;
 *   điện thoại (≤600px): thẻ bo 18–24px viền rgba(35,58,25,.12), nút chính dạng viên xanh đậm — đúng như giỏ hàng V2 trên điện thoại.
 * Mọi lớp bắt đầu bằng .rl- để không đụng CSS sẵn có của V2. */

.rl,
.rl-sheet,
.rl-tabbar,
.rl-added-zone {
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #0b1408;
  letter-spacing: 0;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
.rl *,
.rl-sheet *,
.rl-tabbar *,
.rl-added-zone * { box-sizing: border-box; }
.rl-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.rl-muted { color: #6b6d65; }
.rl-h1-count { color: #666; font-size: .62em; font-weight: 400; }
.rl-lead { max-width: 720px; margin: 0 0 18px; color: #555; font-size: 14px; line-height: 22px; }
.rl .rl-link { color: #3f6500; text-decoration: underline; text-underline-offset: 3px; }
.rl .rl-link:hover { color: #0b1408; }
.rl a:focus-visible,
.rl button:focus-visible,
.rl select:focus-visible,
.rl summary:focus-visible,
.rl-sheet a:focus-visible,
.rl-sheet button:focus-visible,
.rl-sheet input:focus-visible,
.rl-sheet summary:focus-visible,
.rl-tabbar a:focus-visible,
.rl-tabbar button:focus-visible,
.rl-added a:focus-visible,
.rl-added button:focus-visible { outline: 3px solid #4f6d0f; outline-offset: 2px; }

/* ---------- nút ---------- */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 48px; margin: 0; padding: 12px 18px; border: 1px solid #0b1408; border-radius: 0; background: #fff; color: #0b1408; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 22px; letter-spacing: .2px; text-align: center; text-decoration: none; text-transform: uppercase; box-shadow: none; cursor: pointer; }
.rl-btn--primary { border-color: #bddc24; background: #bddc24; color: #0b1408; }
.rl-btn--primary:hover { border-color: #0b1408; background: #0b1408; color: #fff; }
.rl-btn--ghost:hover { background: #f6f4ef; }
.rl a.rl-btn { color: #0b1408; }
.rl a.rl-btn--primary:hover { color: #fff; }
.rl-icon-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #e9e9e9; border-radius: 0; background: #fff; color: #0b1408; cursor: pointer; }
.rl-icon-btn:hover { background: #f6f4ef; }
.rl-icon-btn svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- trang Mua sắm ---------- */
.rl-shop { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.rl-groups { position: sticky; top: 16px; min-width: 0; border: 1px solid #e9e9e9; background: #fff; }
.rl .rl-groups__title { margin: 0; padding: 17px 18px; border-bottom: 1px solid #eee; background: #f6f4ef; color: #0b1408; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 24px; letter-spacing: 0; }
.rl-groups__list { list-style: none; margin: 0; padding: 8px; }
.rl-groups__list li { margin: 0; padding: 0; }
.rl-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 9px 10px; border: 0; border-radius: 0; background: transparent; color: #333; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 22px; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.rl-chip:hover { background: #f6f4ef; }
.rl-chip[aria-pressed="true"] { background: #0b1408; color: #fff; font-weight: 700; }
.rl-chip__n { flex: none; color: #6b6d65; font-size: 12px; font-weight: 400; }
.rl-chip[aria-pressed="true"] .rl-chip__n { color: #d9d9d2; }

.rl-results { min-width: 0; scroll-margin-top: 12px; }
.rl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #e9e9e9; background: #fff; }
.rl-count { min-width: 0; margin: 0 auto 0 0; color: #555; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.rl-count strong { color: #0b1408; font-weight: 700; }
.rl .rl-clear { min-height: 40px; margin: 0; padding: 8px 4px; border: 0; background: transparent; color: #3f6500; font-family: inherit; font-size: 13px; line-height: 21px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rl-sort { display: flex; align-items: center; gap: 8px; margin: 0; color: #555; font-size: 13px; line-height: 21px; }
.rl-sort__select { box-sizing: border-box; height: 40px; min-width: 0; max-width: 100%; margin: 0; padding: 0 34px 0 12px; border: 1px solid #d3d3d3; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.2l4 4 4-4' fill='none' stroke='%230b1408' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 12px; color: #0b1408; font-family: inherit; font-size: 14px; line-height: 22px; -webkit-appearance: none; appearance: none; cursor: pointer; }

.rl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rl-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 1px solid #e9e9e9; background: #fff; }
.rl .rl-card__open { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 12px 12px 0; color: #0b1408; text-decoration: none; }
.rl-card__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f6f4ef; }
.rl .rl-card__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.rl-card__brand { display: block; margin: 12px 0 2px; color: #4f6d0f; font-size: 10px; font-weight: 800; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.rl-card__name { display: block; color: #0b1408; font-size: 14px; font-weight: 700; line-height: 20px; overflow-wrap: anywhere; }
.rl .rl-card__open:hover .rl-card__name { text-decoration: underline; text-underline-offset: 3px; }
.rl-card__meta { display: block; margin-top: 4px; color: #6b6d65; font-size: 12px; line-height: 18px; }
.rl-card__foot { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; }
.rl-card__price { color: #0b1408; font-size: 15px; font-weight: 800; line-height: 22px; white-space: nowrap; }
/* đơn vị tính giá ghi kèm sau giá: "/ lọ", "/ miếng" */
.rl-per { color: #6b6d65; font-size: 12px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.rl-card__add { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; width: 100%; min-height: 40px; margin: 0; padding: 9px 10px; border: 1px solid #0b1408; border-radius: 0; background: #fff; color: #0b1408; font-family: inherit; font-size: 11px; font-weight: 800; line-height: 18px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.rl-card__add:hover { background: #0b1408; color: #fff; }
.rl-card__add-plus { font-size: 14px; line-height: 18px; }
.rl-card__add-qty { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 2px; padding: 0 4px; border-radius: 9px; background: #bddc24; color: #0b1408; font-size: 10px; font-weight: 800; line-height: 18px; letter-spacing: 0; }
.rl-empty { padding: 36px 20px; border: 1px solid #e9e9e9; background: #fff; text-align: center; }
.rl-empty p { margin: 0 0 16px; color: #555; }

/* ---------- Đơn gần đây ---------- */
.rl-order { margin: 0 0 24px; border: 1px solid #e9e9e9; background: #fff; }
.rl-order__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid #eee; background: #f6f4ef; }
.rl .rl-order__title { margin: 0; color: #0b1408; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 24px; letter-spacing: 0; }
.rl-order__scope { margin: 0; color: #6b6d65; font-size: 12px; line-height: 19px; }
.rl-order__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 16px 24px; align-items: center; padding: 16px 18px; }
.rl-order__main { min-width: 0; }
.rl-order__body--closed { grid-template-columns: minmax(0, 1fr) auto; }
.rl-order__ref { margin: 0 0 2px; color: #333; font-size: 14px; }
.rl-order__ref strong { color: #0b1408; }
.rl-order__ref span { color: #6b6d65; }
.rl-order__status { margin: 0 0 2px; color: #3f5d2e; font-size: 14px; font-weight: 700; }
.rl-order__meta { margin: 0; color: #6b6d65; font-size: 13px; line-height: 21px; }
.rl-order__stages { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; }
.rl-order__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 0; color: #6b6d65; font-size: 12px; line-height: 17px; text-align: center; }
.rl-order__stage::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: #e2e2e2; }
.rl-order__stage:first-child::before { display: none; }
.rl-order__stage.is-done::before { background: #4f6d0f; }
.rl-order__dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid #d9d9d2; border-radius: 50%; background: #fff; color: #6b6d65; font-size: 12px; font-weight: 700; line-height: 1; }
.rl-order__stage.is-done .rl-order__dot { border-color: #4f6d0f; background: #4f6d0f; color: #fff; }
.rl-order__stage.is-current { color: #0b1408; font-weight: 700; }
.rl-order__open { white-space: nowrap; }
.rl-order__older { padding: 0 18px 14px; color: #555; font-size: 13px; }
.rl-order__older summary { display: flex; align-items: center; min-height: 44px; padding: 4px 0; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.rl-order__older summary::-webkit-details-marker { display: none; }
.rl-order__older summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: -3px 10px 0 2px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); }
.rl-order__older[open] summary::before { margin-top: 4px; transform: rotate(-135deg); }
.rl-order__older ul { list-style: none; margin: 6px 0 0; padding: 0; }
.rl-order__older li { margin: 0; padding: 0; border-top: 1px solid #eee; }
.rl .rl-order__older a { display: block; padding: 10px 0; color: #0b1408; text-decoration: underline; text-underline-offset: 3px; }
.rl-order__scope .pv-tag { margin-right: 6px; vertical-align: 1px; }
/* đơn đã ghi nhớ nhưng chưa tải được biên nhận: nói rõ còn bao nhiêu đơn, ghi mã từng đơn kèm nút bỏ ghi nhớ của riêng nó */
.rl-order__missing { margin: 0; padding: 12px 18px 6px; border-top: 1px solid #eee; color: #555; font-size: 13px; line-height: 21px; }
.rl-order__missing-text { margin: 0; }
.rl-order__missing-list { list-style: none; margin: 4px 0 0; padding: 0; }
.rl-order__missing-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin: 0; padding: 0; border-top: 1px solid #f0f0f0; }
.rl-order__missing-list li:first-child { border-top: 0; }
.rl-order__missing-ref { min-width: 0; color: #333; font-size: 14px; overflow-wrap: anywhere; }
.rl-order__missing-ref strong { color: #0b1408; }
/* câu báo sau khi bỏ ghi nhớ một đơn bằng nút của riêng nó */
.rl-order__note { margin: 0; padding: 10px 18px; border-top: 1px solid #d9e9df; background: #edf7f1; color: #17643f; font-size: 14px; line-height: 22px; }
.rl-order__note:focus { outline: none; }
.rl-order__note:focus-visible { outline: 2px solid #17643f; outline-offset: -2px; }
/* Đơn gần đây lưu trên thiết bị (CEO chốt 06/10): nút gỡ danh sách khỏi thiết bị + bước hỏi lại */
.rl-order__device { display: flex; justify-content: flex-end; padding: 0 18px 10px; border-top: 1px solid #eee; }
.rl .rl-order__forget { min-height: 40px; margin: 0; padding: 8px 4px; border: 0; background: transparent; color: #555; font-family: inherit; font-size: 13px; line-height: 21px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rl .rl-order__forget:hover { color: #0b1408; }
.rl-order__ask { display: grid; gap: 10px; width: 100%; padding: 12px 0 4px; }
.rl-order__ask-text { margin: 0; color: #333; font-size: 14px; line-height: 22px; }
.rl-order__ask-text:focus { outline: none; }
.rl-order__ask-text:focus-visible { outline: 2px solid #4f6d0f; outline-offset: 4px; }
.rl-order__ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rl .rl-order__ask-yes { min-height: 44px; padding: 8px 16px; }
.rl-order__gone { margin: 0 0 24px; padding: 12px 16px; border: 1px solid #e9e9e9; background: #f6f4ef; color: #333; font-size: 14px; line-height: 22px; }
.rl-order__gone:focus { outline: none; }
.rl-order__gone:focus-visible { outline: 2px solid #4f6d0f; outline-offset: 2px; }

/* ---------- So sánh ---------- */
.rl-cmp__pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.rl-cmp__pick { display: grid; gap: 6px; min-width: 0; margin: 0; }
.rl-cmp__pick-label { color: #555; font-size: 13px; line-height: 21px; }
.rl-cmp__pick .rl-sort__select { width: 100%; height: 44px; }
.rl-cmp__wrap { border: 1px solid #e9e9e9; background: #fff; }
.rl-cmp { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; background: #fff; font-size: 14px; line-height: 22px; }
.rl-cmp th,
.rl-cmp td { border: 0; padding: 0; text-align: left; vertical-align: top; font-weight: 400; }
.rl-cmp__head { width: 50%; padding: 16px !important; }
.rl-cmp__head + .rl-cmp__head,
.rl-cmp__value-row td + td { border-left: 1px solid #eee; }
.rl .rl-cmp__open { display: block; color: #0b1408; text-decoration: none; }
.rl-cmp__media { display: block; max-width: 220px; aspect-ratio: 1 / 1; overflow: hidden; background: #f6f4ef; }
.rl .rl-cmp__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.rl-cmp__name { display: block; min-height: 46px; color: #0b1408; font-size: 16px; font-weight: 700; line-height: 23px; overflow-wrap: anywhere; }
.rl .rl-cmp__open .rl-card__brand { min-height: 16px; }
.rl-cmp__price .rl-per { line-height: inherit; }
.rl .rl-cmp__open:hover .rl-cmp__name { text-decoration: underline; text-underline-offset: 3px; }
.rl-cmp__price { display: block; margin: 8px 0 12px; color: #0b1408; font-size: 18px; font-weight: 800; line-height: 26px; }
.rl-cmp__add { width: 100%; max-width: 220px; }
.rl-cmp__label-row th { padding: 9px 16px !important; border-top: 1px solid #eee; border-bottom: 1px solid #eee; background: #f6f4ef; color: #0b1408; font-size: 12px; font-weight: 800 !important; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; }
.rl-cmp__value-row td { padding: 12px 16px !important; color: #333; overflow-wrap: anywhere; }
.rl-cmp__start { padding: 20px 18px; border: 1px solid #e9e9e9; background: #fff; }
.rl .rl-cmp__start-title { margin: 0 0 14px; color: #0b1408; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 24px; letter-spacing: 0; }
.rl-cmp__suggest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rl-cmp__suggest li { margin: 0; }
.rl-cmp__suggest-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; margin: 0; padding: 8px 12px 8px 8px; border: 1px solid #e9e9e9; border-radius: 0; background: #fff; color: #0b1408; font-family: inherit; font-size: 14px; line-height: 20px; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.rl-cmp__suggest-btn:hover { border-color: #0b1408; }
.rl .rl-cmp__suggest-img { flex: none; width: 60px; height: 60px; object-fit: cover; background: #f6f4ef; }
.rl-cmp__suggest-name { display: block; font-weight: 700; }
.rl-cmp__suggest-meta { display: flex; flex-wrap: wrap; gap: 0 10px; color: #6b6d65; font-size: 12px; line-height: 18px; }
.rl-cmp__back { margin: 10px 0 0; }
.rl .rl-cmp__back .rl-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px 0 0; }

/* ---------- hộp thoại (Xem nhanh, Tư vấn) ---------- */
.rl-sheet { margin: auto; padding: 0; border: 1px solid #e9e9e9; border-radius: 0; background: #fff; color: #0b1408; box-shadow: 0 24px 60px rgba(11, 20, 8, .22); overflow: hidden; }
.rl-sheet::backdrop { background: rgba(23, 32, 14, .5); }
html.rl-modal-open { overflow: hidden; }
.rl-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.rl-sheet__title { margin: 0; color: #303a25; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }

.rl-qv { width: min(980px, calc(100vw - 48px)); max-width: none; height: auto; max-height: min(780px, calc(100dvh - 48px)); }
.rl-qv[open] { display: flex; }
.rl-qv__inner { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; }
.rl-qv__bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-bottom: 1px solid #eee; background: #f6f4ef; }
.rl-qv__kicker { margin: 0; color: #0b1408; font-size: 12px; font-weight: 800; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; }
.rl-qv__scroll { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 0 28px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.rl-qv__media { position: sticky; top: 0; align-self: start; aspect-ratio: 1 / 1; overflow: hidden; background: #f6f4ef; }
.rl-qv__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.rl-qv__info { min-width: 0; }
.rl-qv__brand { margin: 0 0 4px; color: #4f6d0f; font-size: 11px; font-weight: 800; line-height: 17px; letter-spacing: .12em; text-transform: uppercase; }
.rl-qv__title { margin: 0; color: #0b1408; font-family: inherit; font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: 0; overflow-wrap: anywhere; }
.rl-qv__title:focus { outline: none; }
.rl-qv__official { margin: 4px 0 0; color: #6b6d65; font-size: 13px; line-height: 20px; }
.rl-qv__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0; color: #0b1408; font-size: 24px; font-weight: 800; line-height: 32px; }
.rl-qv__size { color: #6b6d65; font-size: 13px; font-weight: 400; line-height: 20px; }
.rl-qv__desc { margin: 0 0 16px; color: #333; font-size: 14px; line-height: 23px; }
.rl-qv__facts { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); margin: 0 0 12px; border-top: 1px solid #eee; }
.rl-qv__facts dt,
.rl-qv__facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 14px; line-height: 22px; }
.rl-qv__facts dt { padding-right: 16px; color: #666; }
.rl-qv__facts dd { color: #0b1408; overflow-wrap: anywhere; }
.rl-qv__terms { list-style: none; margin: 14px 0 0; padding: 12px 14px; border: 1px solid #dce8cf; border-radius: 5px; background: #f4f8ed; color: #3f5d2e; font-size: 13px; line-height: 21px; }
.rl-qv__terms li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; margin: 0; padding: 2px 0; }
.rl-qv__terms li span:first-child { color: #55693f; }
.rl-qv__links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 6px 0 0; }
.rl-qv__links a { display: inline-flex; align-items: center; min-height: 40px; color: #3f6500; font-size: 14px; line-height: 22px; text-decoration: underline; text-underline-offset: 3px; }
.rl-qv__links a:hover { color: #0b1408; }
.rl-qv__buy { position: relative; display: grid; flex: none; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 20px; border-top: 1px solid #eee; background: #fff; }
/* Dòng báo "Đã thêm…": nổi ngay phía trên dải nút, KHÔNG chiếm chỗ trong dải → các nút không xê dịch sau khi bấm */
.rl-qv__incart { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; min-height: 40px; margin: 0; padding: 4px 20px; border-top: 1px solid #dce8cf; background: #f4f8ed; color: #3f5d2e; font-size: 13px; line-height: 20px; }
.rl-qv__incart:empty { display: none; }
.rl-qv__incart.is-error { border-top-color: #ecc8c4; background: #fdf1f0; color: #8a2820; }
.rl-qv__incart a { display: inline-block; padding: 6px 0; color: #3f6500; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* nội dung phía trên chừa chỗ cho dòng báo để vẫn cuộn tới được dòng cuối */
.rl-qv__inner:has(.rl-qv__incart:not(:empty)) .rl-qv__scroll { padding-bottom: 68px; }
.rl-qty { display: inline-flex; align-items: stretch; flex: none; }
.rl-qty button { display: block; width: 44px; min-width: 44px; height: 48px; margin: 0; padding: 0; border: 1px solid #d3d3d3; border-radius: 0; background: #fff; color: #0b1408; font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1; cursor: pointer; }
.rl-qty button:disabled { color: #b5b5b5; cursor: default; }
.rl-qty input { display: block; width: 52px; height: 48px; margin: 0; padding: 4px; border: 1px solid #d3d3d3; border-left: 0; border-right: 0; border-radius: 0; background: #fff; color: #0b1408; font-family: inherit; font-size: 16px; line-height: 24px; text-align: center; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.rl-qty input::-webkit-inner-spin-button,
.rl-qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; }

.rl-advice { width: min(520px, calc(100vw - 32px)); padding: 20px; }
.rl-advice__copy { margin: 10px 0 18px; color: #59624d; font-size: 15px; line-height: 1.6; }
.rl-advice__contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 10px; background: #303a25; color: #fff; font-size: 15px; line-height: 1.5; text-decoration: none; }
.rl-advice__contact:hover { background: #455236; }
.rl-advice__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid #ebede5; color: #303a25; font-size: 15px; line-height: 1.5; text-decoration: none; }
.rl-advice svg { display: block; flex: none; width: 24px; height: 24px; }

/* ---------- thông báo "đã thêm vào giỏ" ---------- */
.rl-added-zone { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.rl-added { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #20321c; color: #fff; font-size: 14px; line-height: 20px; box-shadow: 0 12px 32px rgba(25, 45, 18, .28); pointer-events: auto; animation: rl-rise .18s ease-out; }
.rl-added--error { background: #8a2820; }
.rl-added__text { flex: 1 1 auto; min-width: 0; }
.rl-added__link { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: #bddc24; color: #182212; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.rl-added__link:hover { background: #fff; }
.rl-added__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.rl-added__close:hover { background: rgba(255, 255, 255, .14); }
.rl-added__close svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes rl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- thanh điều hướng dưới: chép đúng .rmi-bottom / .rmi-tab của trang chủ V2 (rmi-style.css) ---------- */
.rl-tabbar,
.rl-tabbar-space { display: none; }
/* Hiện tới 900 px: V2 ẩn nút Zalo nổi từ 900 px trở xuống (styles/site.css), nên từ mốc đó thanh này là lối Tư vấn luôn thấy của trang. */
@media (max-width: 900px) {
  /* trang có thanh dưới cố định: khi tiêu điểm bàn phím chuyển tới một phần tử, trình duyệt cuộn sao cho phần tử đó nằm TRÊN thanh, không nằm sau thanh */
  html:has(.rl-tabbar) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .rl-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 999; bottom: 0; left: 0; right: 0; width: auto; box-sizing: border-box; padding: 5px max(4px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); border-top: 1px solid #e3e5da; box-shadow: 0 -3px 16px #26311a0a; background: #fff; direction: ltr; font-family: Arial, "Helvetica Neue", sans-serif; }
  .rl-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; box-sizing: border-box; min-width: 0; min-height: 61px; height: auto; margin: 0; padding: 5px 2px; border: 0; border-radius: 7px; background: #fff; color: #6a6e61; font-family: Arial, sans-serif; font-size: 11px; line-height: 1.35; font-weight: 400; letter-spacing: normal; text-transform: none; text-align: center; text-decoration: none; box-shadow: none; cursor: pointer; overflow-wrap: anywhere; }
  .rl-tab[aria-current="page"] { color: #303a25; font-weight: 700; }
  .rl-tab[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: calc(50% - 12px); width: 24px; height: 2px; border-radius: 2px; background: #a7bf25; }
  .rl-tab__icon { display: block; flex-shrink: 0; width: 24px; height: 28px; margin: 0; fill: none; }
  .rl-tab__mark { display: block; width: 48px; height: 28px; object-fit: contain; background: #fff; }
  .rl-tab__badge { position: absolute; top: 0; right: 10%; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 18px; min-width: 18px; padding: 0 3px; border: 1px solid #fff; border-radius: 12px; background: #0b1408; color: #fff; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; line-height: 16px; }
  .rl-tabbar-space { display: block; height: calc(88px + env(safe-area-inset-bottom)); background: #fff; }
  .rl-added-zone { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* trang có thanh dưới: chân trang không bị che */
  .rl-page .ron-unified-main { padding-bottom: 28px; }
}
/* trang sản phẩm đầy đủ của V2 có thanh mua bám đáy riêng (từ 850 px trở xuống): câu báo "Đã thêm…" nằm trên thanh đó */
@media (max-width: 850px) {
  html[data-pv-route="product"] .rl-added-zone { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- khối "Thông tin từng sản phẩm" (cuối trang Mua sắm): phần chữ của trang danh sách V2, LUÔN HIỆN ---------- */
.rl-info { margin: 22px 0 0; border: 1px solid #e9e9e9; background: #fff; }
.rl-info__kicker { margin: 0; padding: 14px 18px; border-bottom: 1px solid #eee; background: #f6f4ef; color: #0b1408; font-size: 17px; font-weight: 700; line-height: 24px; }
.rl-info__body { display: grid; gap: 26px; padding: 18px; }
.rl-info__brand { min-width: 0; }
/* tiêu đề nhóm mang mã neo mà chân trang và trang chủ V2 trỏ tới (#ron85-beface, #ron85-caso): chừa chỗ phía trên khi nhảy tới neo */
.rl .rl-info__title { margin: 0 0 4px; color: #4f6d0f; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 20px; letter-spacing: .1em; text-transform: uppercase; scroll-margin-top: 20px; }
.rl .rl-info__title:focus { outline: none; }
.rl .rl-info__title:focus-visible { outline: 3px solid #4f6d0f; outline-offset: 3px; }
.rl-info__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; }
.rl-info__item { min-width: 0; margin: 0; padding: 4px 0 12px; border-top: 1px solid #eee; }
.rl .rl-info__name { display: block; padding: 9px 0; color: #0b1408; font-size: 14px; font-weight: 700; line-height: 22px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rl .rl-info__name:hover { color: #3f6500; }
.rl-info__desc { margin: 0; color: #333; font-size: 14px; line-height: 22px; }
.rl-info__spec { margin: 2px 0 0; color: #6b6d65; font-size: 13px; line-height: 21px; }

/* ---------- lối "Tư vấn phù hợp ↗" trong trang (dưới lưới sản phẩm, ở ô "chưa tìm thấy") ---------- */
.rl-shop { scroll-margin-top: 20px; }
.rl-consult { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 18px; margin: 24px 0 0; padding: 8px 18px; border: 1px solid #dce8cf; background: #f4f8ed; color: #3f5d2e; font-size: 14px; line-height: 22px; }
.rl-consult > span { flex: 1 1 280px; min-width: 0; padding: 6px 0; }
.rl .rl-consult .rl-link,
.rl .rl-empty__consult .rl-link { display: inline-flex; align-items: center; flex: none; min-height: 40px; color: #2f4d00; font-weight: 700; white-space: nowrap; }
.rl .rl-consult .rl-link:hover,
.rl .rl-empty__consult .rl-link:hover { color: #0b1408; }
.rl-empty .rl-empty__consult { margin: 10px 0 0; }

/* ---------- "Ghi nhớ đơn này" — trang Hoàn tất của V2, ngay dưới câu dặn lưu đường dẫn. Theo khuôn ô "Tiếp theo" (.rsc-next) của chính trang đó ---------- */
.rl-remember-slot { display: block; }
.rsc-confirmation .rsc-panel .rl-remember { box-sizing: border-box; max-width: 640px; margin: 18px auto 0; padding: 16px 18px; border: 1px solid #e8e8e8; border-radius: 3px; background: #fafafa; text-align: left; }
.rsc-confirmation .rsc-panel .rl-remember * { box-sizing: border-box; }
.rsc-confirmation .rsc-panel .rl-remember__title { display: block; margin: 0 0 5px; padding: 0; border: 0; color: #171717; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 20px; letter-spacing: 0; text-transform: none; }
.rsc-confirmation .rsc-panel .rl-remember__text { display: block; max-width: none; margin: 0 0 12px; padding: 0; color: #4b4b4b; font-size: 14px; font-weight: 400; line-height: 23px; overflow-wrap: normal; word-break: normal; }
/* dòng báo sau khi bấm (đã bỏ ghi nhớ / chưa ghi nhớ được): nhận tiêu điểm, không phải nút */
.rsc-confirmation .rsc-panel .rl-remember__note { margin-bottom: 8px; padding: 8px 10px; border: 1px solid #d9e9df; border-radius: 3px; background: #edf7f1; color: #17643f; }
.rsc-confirmation .rsc-panel .rl-remember__note--error { border-color: #e7c2ba; background: #fff4f1; color: #913c2f; }
.rsc-confirmation .rsc-panel .rl-remember__note:focus { outline: none; }
.rsc-confirmation .rsc-panel .rl-remember__note:focus-visible { outline: 2px solid #17643f; outline-offset: 2px; }
.rsc-confirmation .rsc-panel .rl-remember__saved { margin-bottom: 4px; }
.rsc-confirmation .rsc-panel .rl-remember__saved strong { color: #17643f; font-weight: 700; }
.rsc-confirmation .rsc-panel .rl-remember__saved:focus { outline: none; }
.rsc-confirmation .rsc-panel .rl-remember__saved:focus-visible { outline: 2px solid #17643f; outline-offset: 4px; }
.rsc-confirmation .rsc-panel .rl-remember__save,
.rsc-confirmation .rsc-panel .rl-remember__undo { display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: 100%; min-height: 46px; margin: 0; padding: 11px 22px; border: 1px solid #171717; border-radius: 2px; background: #fff; color: #171717; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 22px; letter-spacing: 0; text-align: center; text-transform: none; box-shadow: none; cursor: pointer; }
.rsc-confirmation .rsc-panel .rl-remember__save:hover { border-color: #17643f; background: #edf7f1; color: #17643f; }
.rsc-confirmation .rsc-panel .rl-remember__undo { min-height: 44px; padding: 10px 2px; border-color: transparent; background: transparent; color: #4b4b4b; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.rsc-confirmation .rsc-panel .rl-remember__undo:hover { color: #171717; }
.rsc-confirmation .rsc-panel .rl-remember__save:focus-visible,
.rsc-confirmation .rsc-panel .rl-remember__undo:focus-visible { outline: 3px solid #17643f; outline-offset: 3px; }
@media (max-width: 600px) {
  .rsc-confirmation .rsc-panel .rl-remember { padding: 14px; }
  .rsc-confirmation .rsc-panel .rl-remember__save { width: 100%; }
}

/* ---------- co giãn ---------- */
@media (max-width: 1180px) {
  .rl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .rl-shop { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rl-groups { position: static; border: 0; background: transparent; }
  .rl .rl-groups__title { padding: 0 0 8px; border: 0; background: transparent; color: #555; font-size: 13px; font-weight: 400; line-height: 21px; }
  .rl-groups__list { display: flex; gap: 8px; margin: 0 -20px; padding: 2px 20px 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rl-groups__list::-webkit-scrollbar { display: none; }
  .rl-groups__list li { flex: none; }
  .rl-chip { width: auto; min-height: 42px; padding: 9px 14px; border: 1px solid #d3d3d3; background: #fff; white-space: nowrap; }
  .rl-chip:hover { background: #f6f4ef; }
  .rl-chip[aria-pressed="true"] { border-color: #0b1408; }
  .rl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rl-order__body { grid-template-columns: minmax(0, 1fr) auto; }
  .rl-order__stages { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 820px) {
  .rl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .rl-qv__scroll { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 0 20px; }
}
@media (max-width: 760px) {
  .rl-groups__list { margin: 0 -12px; padding: 2px 12px 8px; }
  .rl-info__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .rl-groups__list { margin: 0 -10px; padding: 2px 10px 8px; }
}

/* ---------- điện thoại: cùng nét với giỏ hàng V2 trên điện thoại ---------- */
@media (max-width: 600px) {
  .rl-page .ron-unified-breadcrumb { display: none; }
  .rl-page .ron-unified-main { padding-top: 14px; }
  .rl-page .ron-unified-article-head { margin-bottom: 6px; }
  .rl-page .ron-unified-article-head h1 { color: #22321e; font-size: 21px; font-weight: 700; line-height: 1.35; }
  .rl-lead { margin-bottom: 14px; color: #677161; font-size: 13px; line-height: 21px; }

  .rl-btn { min-height: 52px; padding: 12px 18px; border-color: #dce3d5; border-radius: 999px; background: #f6f8f2; color: #3d5036; font-size: 15px; font-weight: 650; letter-spacing: .01em; text-transform: none; }
  .rl-btn--primary { border-color: #2d4527; background: linear-gradient(135deg, #3e5b35, #20321c); color: #fff; font-size: 16px; font-weight: 750; box-shadow: 0 10px 24px rgba(35, 58, 25, .18); }
  .rl-btn--primary:hover { border-color: #2d4527; background: linear-gradient(135deg, #3e5b35, #20321c); color: #fff; }
  .rl-btn--ghost:hover { background: #eef3df; }
  .rl a.rl-btn { color: #3d5036; }
  .rl-icon-btn { border-color: #dbe2d2; border-radius: 50%; background: #f7f9f3; color: #384732; }

  .rl-chip { border-color: #dbe2d2; border-radius: 999px; background: #fff; color: #384732; font-size: 13px; line-height: 20px; }
  .rl-chip:hover { background: #f7f9f3; }
  .rl-chip[aria-pressed="true"] { border-color: #20321c; background: #20321c; color: #fff; }
  .rl-chip__n { color: #5c6856; font-size: 11px; }
  .rl-chip[aria-pressed="true"] .rl-chip__n { color: #cfd8c4; }
  .rl-toolbar { gap: 8px 12px; margin-bottom: 12px; padding: 0; border: 0; background: transparent; }
  .rl-count { flex: 1 1 100%; color: #677161; font-size: 13px; }
  .rl-count strong { color: #22321e; }
  .rl-sort { flex: 1 1 auto; justify-content: space-between; }
  .rl-sort__select { height: 44px; border-color: #d6ddcf; border-radius: 13px; color: #24301e; }

  .rl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rl-card { overflow: hidden; border-color: rgba(35, 58, 25, .12); border-radius: 18px; box-shadow: 0 6px 18px rgba(25, 45, 18, .05); }
  .rl .rl-card__open { padding: 8px 8px 0; }
  .rl-card__media { border-radius: 13px; background: #f5f6f0; }
  .rl-card__brand { margin: 10px 4px 2px; color: #4f6d0f; font-size: 9px; letter-spacing: .08em; line-height: 14px; }
  .rl-card__name { margin: 0 4px; color: #1f2c1b; font-size: 14px; line-height: 1.4; }
  .rl-card__meta { margin: 4px 4px 0; color: #677161; font-size: 11px; line-height: 16px; }
  .rl-card__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 10px 12px; }
  .rl-card__price { color: #24351f; font-size: 15px; font-weight: 750; }
  .rl-card__price .rl-per { display: block; margin-top: -3px; line-height: 15px; }
  .rl-card__add { flex: none; width: 44px; min-height: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #bddc24; color: #182212; }
  .rl-card__add:hover { background: #20321c; color: #fff; }
  .rl-card__add-plus { font-size: 26px; font-weight: 400; line-height: 1; }
  .rl-card__add-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .rl-card__add-qty { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; margin: 0; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; background: #20321c; color: #fff; font-size: 11px; line-height: 16px; }
  .rl-empty { border-color: rgba(35, 58, 25, .12); border-radius: 20px; }

  .rl-order { overflow: hidden; margin-bottom: 16px; border-color: rgba(35, 58, 25, .12); border-radius: 20px; box-shadow: 0 9px 28px rgba(25, 45, 18, .07); }
  .rl-order__head { padding: 14px 16px; background: #f7f8f3; }
  .rl-order__body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 16px 16px; }
  .rl-order__stages { grid-row: auto; }
  .rl-order__stage { font-size: 11px; line-height: 15px; }
  .rl-order__open { width: 100%; min-height: 46px; }
  .rl-order__older { padding: 0 16px 14px; }
  .rl-order__missing { padding: 12px 16px 6px; }
  .rl-order__note { padding: 10px 16px; }
  .rl-order__device { justify-content: flex-start; padding: 0 16px 10px; }
  .rl .rl-order__forget { min-height: 44px; }
  .rl .rl-order__ask-yes { min-height: 46px; }
  .rl-order__gone { margin-bottom: 16px; border-color: rgba(35, 58, 25, .12); border-radius: 16px; background: #f7f8f3; }

  .rl-info { overflow: hidden; margin-top: 16px; border-color: rgba(35, 58, 25, .12); border-radius: 20px; }
  .rl-info__kicker { padding: 14px 16px; background: #f7f8f3; color: #22321e; font-size: 16px; }
  .rl-info__body { gap: 20px; padding: 14px 16px 16px; }
  .rl-consult { margin-top: 18px; padding: 8px 16px; border-color: rgba(35, 58, 25, .12); border-radius: 18px; background: #f7f8f3; color: #384732; font-size: 13px; line-height: 21px; }
  .rl .rl-consult .rl-link, .rl .rl-empty__consult .rl-link { min-height: 44px; font-size: 14px; }
  .rl-info__desc { color: #384732; font-size: 13px; line-height: 21px; }
  .rl-info__spec { color: #677161; font-size: 12px; line-height: 19px; }

  .rl-cmp__pickers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rl-cmp__pick .rl-sort__select { border-color: #d6ddcf; border-radius: 13px; }
  .rl-cmp__wrap { overflow: hidden; border-color: rgba(35, 58, 25, .12); border-radius: 20px; box-shadow: 0 9px 28px rgba(25, 45, 18, .07); }
  .rl-cmp { font-size: 13px; line-height: 20px; }
  .rl-cmp__head { padding: 10px !important; }
  .rl-cmp__media { border-radius: 13px; background: #f5f6f0; }
  .rl-cmp__name { min-height: 39.2px; font-size: 14px; line-height: 1.4; }
  .rl-cmp__price { margin: 6px 0 10px; font-size: 16px; line-height: 22px; }
  .rl-cmp__add { min-height: 46px; padding: 8px 10px; font-size: 13px; line-height: 18px; }
  .rl-cmp__label-row th { padding: 8px 12px !important; background: #f7f8f3; font-size: 11px; }
  .rl-cmp__value-row td { padding: 10px 12px !important; }
  .rl-cmp__start { border-color: rgba(35, 58, 25, .12); border-radius: 20px; }
  .rl-cmp__suggest { grid-template-columns: minmax(0, 1fr); }
  .rl-cmp__suggest-btn { border-color: #dbe2d2; border-radius: 16px; }
  .rl .rl-cmp__suggest-img { border-radius: 11px; }

  /* Xem nhanh: tấm trượt từ đáy màn hình — cùng kiểu hộp thoại .rmi-dialog của V2 */
  .rl-sheet { inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 520px; border: 1px solid #e3e5da; border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(11, 20, 8, .2); }
  .rl-sheet[open] { animation: rl-sheet-up .2s ease-out; }
  .rl-qv { width: 100%; max-width: 560px; max-height: 92dvh; }
  .rl-qv__bar { padding: 8px 8px 8px 18px; background: #fff; }
  .rl-qv__scroll { display: block; padding: 14px 16px 18px; }
  .rl-qv__media { position: static; border-radius: 16px; background: #f5f6f0; }
  .rl-qv__info { padding-top: 14px; }
  .rl-qv__title { color: #1f2c1b; font-size: 20px; line-height: 1.38; }
  .rl-qv__price { margin: 10px 0 12px; color: #24351f; font-size: 22px; font-weight: 750; }
  .rl-qv__terms { border-radius: 14px; }
  .rl-qv__terms li { grid-template-columns: 84px minmax(0, 1fr); }
  .rl-qv__buy { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(25, 45, 18, .06); }
  .rl-qv__incart { padding: 4px 16px; }
  .rl-qv__now { grid-column: 1 / -1; min-height: 46px; }
  .rl-qty { overflow: hidden; border: 1px solid #d6ddcf; border-radius: 13px; background: #fff; }
  .rl-qty button { width: 44px; height: 50px; border: 0; background: #f5f7f1; font-size: 20px; }
  .rl-qty input { width: 46px; height: 50px; border: 0; border-left: 1px solid #e0e5da; border-right: 1px solid #e0e5da; font-weight: 650; }
  .rl-advice { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
  .rl-added { border-radius: 16px; }
}
@media (max-width: 380px) {
  .rl-added { flex-wrap: wrap; padding: 10px 8px 8px 14px; }
  .rl-added__text { flex: 1 1 100%; }
  .rl-added__link { margin-left: auto; }
}
@media (max-width: 340px) {
  .rl-grid { gap: 8px; }
  .rl-card__name { font-size: 13px; }
  .rl-card__price { font-size: 14px; }
}
@keyframes rl-sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rl-added,
  .rl-sheet[open] { animation: none; }
}

/* ---------- (bản 8, 21/10/2026) Kiến thức kinh doanh Spa: trang chuyên mục và trang bài viết ----------
 * Cùng khuôn với trang Mua sắm: máy tính thẻ trắng viền #e9e9e9 góc vuông; điện thoại (≤600px) thẻ bo góc viền xanh nhạt. */
.rl-kb-guides { margin: 0 0 24px; }
.rl .rl-kb-guides__title { margin: 0 0 10px; color: #0b1408; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 24px; letter-spacing: 0; }
.rl-kb-guides__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.rl-kb-guides__list li { min-width: 0; margin: 0; padding: 0; }
.rl .rl-kb-guides__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; height: 100%; padding: 12px 16px; border: 1px solid #e9e9e9; background: #f6f4ef; color: #0b1408; font-size: 14px; font-weight: 600; line-height: 21px; text-decoration: none; overflow-wrap: anywhere; }
.rl .rl-kb-guides__link::after { content: "→"; flex: none; color: #4f6d0f; font-weight: 400; }
.rl .rl-kb-guides__link:hover { border-color: #0b1408; background: #fff; }
.rl-kb { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 20px; }
.rl-kb-side { position: sticky; top: 16px; display: grid; gap: 12px; min-width: 0; }
.rl-kb-side .rl-groups { position: static; }
.rl-kb-search { display: grid; gap: 6px; margin: 0; padding: 14px; border: 1px solid #e9e9e9; background: #fff; }
.rl-kb-search__label { color: #0b1408; font-size: 14px; font-weight: 700; line-height: 21px; }
.rl-kb-search__input { box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #d3d3d3; border-radius: 0; background: #fff; color: #0b1408; font-family: inherit; font-size: 15px; line-height: 22px; }
.rl-kb-search__input::placeholder { color: #767870; }
.rl-kb-search__input:focus-visible { outline: 3px solid #4f6d0f; outline-offset: 1px; }
.rl-kb-results { min-width: 0; scroll-margin-top: 12px; }
.rl .rl-kb-results__title { margin: 0 0 10px; color: #0b1408; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: 0; }
.rl-kb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.rl-kb-card { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; margin: 0; padding: 16px 18px 18px; border: 1px solid #e9e9e9; background: #fff; }
.rl-kb-card:hover { border-color: #0b1408; }
.rl-kb-card:focus-within { border-color: #4f6d0f; }
.rl .rl-kb-card__title { order: 2; margin: 0; color: #0b1408; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 23px; letter-spacing: 0; overflow-wrap: anywhere; }
.rl .rl-kb-card__link { color: inherit; text-decoration: none; }
.rl .rl-kb-card__link::after { content: ""; position: absolute; inset: 0; }
.rl .rl-kb-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rl .rl-kb-card__link:focus-visible { outline: 0; }
.rl .rl-kb-card__link:focus-visible::after { outline: 3px solid #4f6d0f; outline-offset: -3px; }
.rl-kb-card__meta { order: 1; margin: 0; color: #6b6d65; font-size: 12px; line-height: 18px; }
.rl-kb-card__topic { display: block; color: #4f6d0f; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rl-kb-art__meta .rl-kb-card__topic { display: inline; }
.rl-kb-card__when { white-space: nowrap; }
.rl-nowrap { white-space: nowrap; }
.rl-kb-card__excerpt { order: 3; margin: 0; color: #555; font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.rl-kb-more { display: grid; justify-items: center; gap: 8px; margin: 20px 0 0; }
.rl-kb-more__count { margin: 0; color: #6b6d65; font-size: 13px; line-height: 20px; }
/* trang bài viết: máy tính rộng (≥1180px) đặt mục lục ở cột phải, dính theo khi cuộn */
.rl-kb-art { min-width: 0; }
.rl-kb-art__body { min-width: 0; }
@media (min-width: 1180px) {
  .rl-kb-art { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 300px); gap: 48px; align-items: start; }
  .rl-kb-art .rl-kb-toc { grid-column: 2; grid-row: 1; position: sticky; top: 16px; max-height: calc(100vh - 32px); margin: 0; overflow-y: auto; }
  .rl-kb-art .rl-kb-art__body { grid-column: 1; grid-row: 1; }
  .rl-kb-art .rl-kb-toc__list { font-size: 13px; line-height: 20px; }
}
.rl-kb-art__meta { margin: -6px 0 12px; color: #6b6d65; font-size: 13px; line-height: 21px; }
.rl .rl-kb-art__lead { max-width: 720px; color: #333; font-size: 16px; line-height: 26px; }
.rl-kb-toc { max-width: 720px; margin: 0 0 24px; padding: 16px 18px; border: 1px solid #e9e9e9; background: #f6f4ef; }
.rl .rl-kb-toc__title { margin: 0 0 8px; color: #0b1408; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 22px; letter-spacing: 0; }
.rl-kb-toc__list { margin: 0; padding: 0 0 0 22px; }
.rl-kb-toc__list li { margin: 4px 0; padding: 0; }
.rl .rl-kb-toc__list a { color: #3f6500; text-decoration: underline; text-underline-offset: 3px; }
.rl .rl-kb-toc__list a:hover { color: #0b1408; }
.rl-kb-prose { max-width: 720px; color: #1d2219; font-size: 16px; line-height: 28px; }
.rl .rl-kb-prose h2 { margin: 32px 0 10px; color: #0b1408; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 30px; letter-spacing: 0; scroll-margin-top: 16px; }
.rl .rl-kb-prose h2:focus { outline: 0; }
.rl .rl-kb-prose h3 { margin: 22px 0 8px; color: #0b1408; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 26px; letter-spacing: 0; }
.rl-kb-prose p { margin: 0 0 14px; }
.rl-kb-prose ul,
.rl-kb-prose ol { margin: 0 0 16px; padding: 0 0 0 24px; }
.rl-kb-prose li { margin: 0 0 6px; }
.rl-kb-prose blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid #bddc24; background: #f6f4ef; }
.rl-kb-fig { margin: 0 0 16px !important; padding: 10px 14px; border: 1px dashed #c9cdc0; background: #fafaf7; color: #555; font-size: 14px; line-height: 22px; }
.rl-kb-fig__label { display: block; color: #4f6d0f; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 18px; text-transform: uppercase; }
.rl-kb-table { max-width: 100%; margin: 0 0 18px; overflow-x: auto; border: 1px solid #e9e9e9; }
.rl-kb-table:focus-visible { outline: 3px solid #4f6d0f; outline-offset: 2px; }
.rl-kb-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.rl-kb-table th,
.rl-kb-table td { padding: 9px 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.rl-kb-table th { background: #f6f4ef; color: #0b1408; font-weight: 700; }
.rl-kb-related { margin: 36px 0 0; }
.rl .rl-kb-related__title { margin: 0 0 12px; color: #0b1408; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: 0; }
.rl-kb-back { margin: 24px 0 0; }
@media (max-width: 980px) {
  .rl-kb { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rl-kb-side { position: static; gap: 10px; }
  .rl-kb-guides__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* điện thoại: sáu lối thành một dải cuộn ngang (như dải nhóm của trang Mua sắm) để danh sách bài lên sớm */
  .rl-kb-guides__list { display: flex; gap: 8px; margin: 0 -12px; padding: 2px 12px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rl-kb-guides__list::-webkit-scrollbar { display: none; }
  .rl-kb-guides__list li { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
  .rl .rl-kb-guides__link { min-height: 52px; border-color: rgba(35, 58, 25, .12); border-radius: 16px; }
  .rl-kb-search { padding: 0; border: 0; background: transparent; }
  .rl-kb-search__input { border-color: #d6ddcf; border-radius: 13px; }
  .rl-kb-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rl-kb-card { padding: 14px 16px 16px; border-color: rgba(35, 58, 25, .12); border-radius: 20px; }
  .rl-kb-card:hover { border-color: rgba(35, 58, 25, .4); }
  .rl .rl-kb-card__link:focus-visible::after { border-radius: 20px; }
  .rl-kb-toc { border-color: rgba(35, 58, 25, .12); border-radius: 18px; }
  .rl-kb-table { border-radius: 14px; }
  .rl .rl-kb-prose h2 { font-size: 20px; line-height: 28px; }
}
/* (bản 8, sửa sau vòng rà) đoạn giới thiệu của mảng kiến thức (chữ của RON) và dải sáu lối ở màn ≤360px (khung của V2 chừa 10px mỗi bên) */
.rl-kb-area { max-width: 760px; margin: -4px 0 12px; }
.rl-kb-area__tag { margin: 0 0 4px; color: #4f6d0f; font-size: 14px; font-weight: 700; line-height: 21px; }
.rl-kb-area__desc { max-width: 760px; margin: -4px 0 12px; color: #555; font-size: 14px; line-height: 22px; }
.rl-kb-area .rl-kb-area__desc { margin: 0; }
@media (max-width: 360px) {
  .rl-kb-guides__list { margin: 0 -10px; padding: 2px 10px 8px; scroll-padding-inline: 10px; }
}
