:root {
  --nen: #f5f6f8; --the: #fff; --chu: #1d2330; --phu: #5c6370; --vien: #e2e5ea;
  --do: #e3000f; --do-dam: #b8000c; --xanh: #0a7d3c; --cam: #b45f06;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--nen); color: var(--chu); }
a { color: inherit; }
.khung { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.dau { background: var(--the); border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 5; }
.dau-trong { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 1.1rem; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.the { background: var(--do); color: #fff; padding: 2px 8px; border-radius: 4px; letter-spacing: .5px; }
.gio { text-decoration: none; border: 1px solid var(--vien); border-radius: 20px; padding: 6px 14px; font-size: .95rem; }
.gio b { background: var(--do); color: #fff; border-radius: 10px; padding: 0 7px; margin-left: 4px; font-size: .85rem; }

.tim { margin: 20px 0 12px; }
.tim input { width: 100%; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--vien); border-radius: 8px; background: var(--the); }
.tim input:focus { outline: 2px solid var(--do); border-color: transparent; }

.nhom { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.nhom button { flex: none; border: 1px solid var(--vien); background: var(--the); border-radius: 20px; padding: 7px 14px; cursor: pointer; font-size: .92rem; }
.nhom button[aria-pressed="true"] { background: var(--chu); color: #fff; border-color: var(--chu); }

.dem { color: var(--phu); font-size: .9rem; margin: 12px 0; min-height: 1.2em; }

.luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sp { background: var(--the); border: 1px solid var(--vien); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sp .anh { aspect-ratio: 4/3; background: #eef0f3; border-radius: 6px; display: grid; place-items: center; color: #9aa1ab; font-size: .8rem; overflow: hidden; }
.sp .anh img { width: 100%; height: 100%; object-fit: contain; }
.sp .nhan { font-size: .75rem; color: var(--phu); text-transform: uppercase; letter-spacing: .4px; }
.sp h3 { font-size: 1rem; margin: 0; line-height: 1.35; }
.sp .ma { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; color: var(--phu); }
.sp .mo-ta { font-size: .85rem; color: var(--phu); }
.sp .gia { font-size: 1.15rem; font-weight: 700; color: var(--do); margin-top: auto; }
.sp .gia small { font-weight: 400; color: var(--phu); font-size: .8rem; }
.tt { font-size: .8rem; font-weight: 600; }
.tt.con_hang { color: var(--xanh); }
.tt.dat_hang { color: var(--cam); }
.sp button { margin-top: 6px; background: var(--do); color: #fff; border: 0; border-radius: 6px; padding: 10px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.sp button:hover { background: var(--do-dam); }
.sp button.da-chon { background: var(--chu); }

.trang { display: flex; justify-content: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.trang button { min-width: 38px; padding: 7px 10px; border: 1px solid var(--vien); background: var(--the); border-radius: 6px; cursor: pointer; }
.trang button[aria-current="page"] { background: var(--chu); color: #fff; }

.trong { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--phu); }
.chan { color: var(--phu); font-size: .85rem; padding-top: 12px; padding-bottom: 32px; }

.thong-bao { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--chu); color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
.thong-bao.hien { opacity: 1; }
.sp .gia-cu { font-size: .85rem; font-weight: 400; color: var(--phu); margin-top: 2px; }
.sp .giam { background: #fde7e9; color: var(--do-dam); font-weight: 700; border-radius: 4px; padding: 0 5px; }
.sp .gia.lien-he { color: var(--chu); }
