/* Giao diện theo design.jpg. Xem ../../../AGENTS.md. Mọi trang dùng file này; trang con nạp thêm pages.css. */
:root {
  --c-primary: #932427;
  --c-primary-active: #983635;
  --c-heading: #7e151c;
  --c-brand-dark: #6f1417;
  --c-hero-title: #931921;
  --c-hero-subtitle: #621918;
  --c-price: #b11a2d;
  --c-badge: #e6031b;
  --c-green: #2f7317;
  --c-green-icon: #35781f;
  --c-text: #0e0e0e;
  --c-bg: #fefefe;
  --c-bg-soft: #fafafa;
  --c-bg-pink: #fcf1f0;
  --c-bg-card: #fbfaf8;
  --c-bg-image: #f7f6f4;
  --c-bg-hero: #f5ecec;
  --c-border: #e5e5e5;
  --html-bg-website: var(--c-primary); /* carousel.css dùng biến này */
  /* Hai trục canh lề: tâm lệch phải 6px so với giữa trang ở khổ 1199px */
  --top-w: 1070px;
  --main-w: 1119px;
  --shift: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; } /* chừa chỗ cho thanh ghim khi nhảy tới neo hoặc focus */
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 16px/1.4 'Roboto', Arial, sans-serif; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1d6fd1; outline-offset: 2px; }
.ic { width: 1em; height: 1em; flex: none; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: #fff; padding: 8px 12px; }
.skip-link:focus { top: 8px; }

.wrap { width: min(var(--main-w), 100% - 32px); margin-inline: auto; position: relative; left: var(--shift); }
.wrap--top { width: min(var(--top-w), 100% - 32px); }

h2 { color: var(--c-heading); font-size: 28px; line-height: 1.25; font-weight: 700; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--c-heading); font-weight: 500; white-space: nowrap; }
.more .ic { font-size: 13px; }
.more:hover { text-decoration: underline; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 169px; height: 42px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #378219, var(--c-green) 60%, #286512); color: #fff; font-size: 18px; font-weight: 700; }
.btn-primary .ic { font-size: 14px; }
.btn-primary:hover { background: #24590f; }

/* ---------- Header ---------- */
/* Header và thanh menu cùng ghim; z-index cao hơn menu để gợi ý tìm kiếm nằm trên */
body > header { position: sticky; top: 0; z-index: 45; background: var(--c-bg); }
.header { height: 74px; display: grid; grid-template-columns: 302px 404px 1fr auto; align-items: center; }
.menu-toggle { display: none; }
.logo { display: flex; align-items: center; margin-left: -5px; color: var(--c-brand-dark); font-weight: 700; font-size: 27.6px; line-height: 25px; white-space: nowrap; }
.logo img { margin-right: 5px; }
.search { position: relative; display: flex; height: 34px; border: 1px solid #cfcfcf; border-radius: 7px; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 11px; font-size: 13px; }
.search input:focus, .search input:focus-visible { outline: none; }
.search:focus-within { border-color: #b9a2a3; }
.search button { width: 44px; margin: 3px 0; padding: 0; border: 0; border-left: 1px solid var(--c-border); background: none; display: grid; place-items: center; font-size: 20px; }
.search-autocomplete { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.search-autocomplete.is-open { display: block; }
.search-autocomplete > * { display: block; padding: 9px 12px; font-size: 14px; }
.search-autocomplete a:hover { background: var(--c-bg-pink); }
.search-autocomplete > [hidden] { display: none; }
.hcontact, .hcart { display: flex; align-items: center; color: var(--c-heading); font-size: 14px; line-height: 18px; white-space: nowrap; }
.hcontact span, .hcart > span { color: var(--c-text); }
.hcontact b, .hcart b { display: block; color: var(--c-heading); font-size: 17px; line-height: 21px; }
.hcontact { justify-self: start; margin-left: 84px; gap: 8px; }
.hcontact .ic { font-size: 24px; margin-top: 6px; }
.hcart { gap: 9px; padding-left: 24px; border-left: 1px solid var(--c-border); height: 32px; }
.hcart .ic { font-size: 31px; }

/* ---------- Menu ---------- */
.mainnav { background: var(--c-primary); color: #fff; position: sticky; top: 74px; z-index: 40; } /* 74px = chiều cao header */
.mainnav__close { display: none; }
.mainnav > .wrap > ul { display: flex; justify-content: space-between; height: 44px; }
.mainnav > .wrap > ul > li { position: relative; }
.mainnav > .wrap > ul > li > a { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; font-size: 15.3px; font-weight: 500; white-space: nowrap; text-transform: capitalize; }
.mainnav > .wrap > ul > li > a:hover, .mainnav > .wrap > ul > li > a.is-active { background: var(--c-primary-active); }
.mainnav li:first-child > a .ic { font-size: 19px; }
.home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ic-down { width: 11px; height: 11px; margin-left: -3px; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; color: var(--c-text); border: 1px solid var(--c-border); border-radius: 0 0 8px 8px; }
.sub a { display: block; padding: 11px 14px; font-size: 15px; }
.sub a:hover { background: var(--c-bg-pink); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }

/* ---------- Hero ---------- */
.hero-banner { position: relative; height: clamp(346px, 28.86vw, 460px); background: var(--c-bg-hero); overflow: hidden; display: flex; }
.hero-banner__photo { position: absolute; inset: 0 0 0 auto; width: 63.3%; }
.hero-banner__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-banner__photo::before { content: ""; position: absolute; z-index: 1; inset: 0 0 0 -2px; background: linear-gradient(90deg, var(--c-bg-hero) 0, rgba(245, 236, 236, 0) 17%); }
.hero-banner__content { position: relative; z-index: 2; height: 346px; align-self: center; }
.hero-banner h1 { padding-top: 47px; margin-left: 2px; font-weight: 700; }
.hero-banner h1 span { display: block; width: max-content; max-width: 100%; }
.hero-banner h1 span:first-child { color: var(--c-hero-title); font-size: 45.8px; line-height: 50px; }
.hero-banner h1 span:last-child { color: var(--c-hero-subtitle); font-size: 39.4px; line-height: 47px; margin-left: 2px; }
.hero-banner ul { margin: 10px 0 0 7px; font-size: 17px; }
.hero-banner li { display: flex; align-items: center; gap: 16px; height: 29.5px; }
.hero-banner li .ic { font-size: 20px; color: var(--c-green-icon); }
.hero-banner .btn-primary { margin: 17px 0 0 6px; }

/* ---------- Dải cam kết ---------- */
.usp { background: var(--c-bg-soft); height: 82px; display: flex; align-items: center; }
.usp ul { display: grid; grid-template-columns: 228px 295px 309px 1fr; padding-left: 31px; white-space: nowrap; }
.usp li { display: flex; align-items: center; gap: 16px; height: 46px; }
.usp li + li { border-left: 1px solid var(--c-border); }
.usp li:nth-child(2) { padding-left: 46px; }
.usp li:nth-child(3) { padding-left: 41px; }
.usp li:nth-child(4) { padding-left: 47px; }
.usp__icon { width: 42px; height: 42px; color: var(--c-green-icon); flex: none; }
.usp li:nth-child(3) .usp__icon { width: 61px; }
.usp b, .usp li > span > span { display: block; font-size: 15px; line-height: 21px; }
.usp li > span > span { font-size: 14.5px; }
.usp li:nth-child(4) > span > span { font-size: 17px; }

/* ---------- Danh mục ---------- */
.cats { height: 245px; padding-top: 22px; }
.cats h2 { height: 54px; }
.cats__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat { position: relative; display: block; height: 148px; background: var(--c-bg-pink); border-radius: 9px; text-align: center; border: 1px solid transparent; }
.cat:hover { border-color: #e8bdbd; }
.cat img { width: calc(100% - 12px); height: 100px; margin: 5px auto 0; object-fit: cover; border-radius: 7px; }
.cat > span { display: block; margin-top: 9px; font-size: 17px; font-weight: 700; }

/* ---------- Bán chạy ---------- */
.best { padding: 23px 0 40px; }
.best .head { height: 52px; align-items: flex-start; }
.best .head .more { margin: 8px 5px 0 0; }
.best__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.best__grid > li[hidden] { display: none; }
.prod-search { flex: 0 1 340px; height: 38px; margin-top: 4px; align-items: center; }
.prod-search input { height: 100%; font-size: 14px; }
.prod-search .ic { width: 20px; height: 20px; margin-right: 12px; color: #777; flex: none; }
.prod-empty { margin: 16px 0 0; padding: 18px; border: 1px dashed var(--c-border); border-radius: 8px; text-align: center; }
.prod-empty a { color: var(--c-price); font-weight: 700; }
.prod { height: 272px; background: var(--c-bg-card); border: 1px solid #efedeb; border-radius: 8px; overflow: hidden; }
.prod:hover { border-color: #ddc3c5; }
.prod__img { display: block; height: 134px; background: var(--c-bg-image); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod h3 { margin: 6px 14px 0; font-size: 16px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod__price { margin: 2px 14px 0; color: var(--c-price); font-size: 18px; line-height: 24px; font-weight: 700; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 46px); height: 32px; margin: 11px auto 0; border: 1px solid var(--c-price); border-radius: 999px; background: #fff; color: var(--c-price); font-size: 14px; font-weight: 500; }
.btn-outline .ic { font-size: 18px; }
.btn-outline:hover { background: var(--c-price); color: #fff; }
.btn-outline:disabled { border-color: #bbb; background: #fff; color: #666; cursor: not-allowed; }

/* ---------- Tồn kho theo kg ---------- */
.stock { color: var(--c-green); font-size: 13px; line-height: 18px; font-weight: 500; }
.stock.is-out { color: var(--c-badge); font-weight: 700; }
.prod__stock { margin: 2px 14px 0; }

/* ---------- Cửa sổ chọn số kg (cart.js) ---------- */
.qty-dialog { width: min(400px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--c-text); box-shadow: 0 18px 48px rgba(0, 0, 0, .25); }
.qty-dialog::backdrop { background: rgba(30, 6, 8, .5); }
.qty-dialog form { display: grid; gap: 10px; padding: 22px 20px 20px; }
.qty-dialog__title { margin: 0; padding-right: 8px; color: var(--c-heading); font-size: 20px; line-height: 26px; }
.qty-dialog__price { margin: 0; color: var(--c-price); font-size: 18px; font-weight: 700; }
.qty-dialog__stock { margin: -4px 0 4px; color: var(--c-green); font-size: 14px; }
.qty-dialog__label { font-size: 14px; font-weight: 700; }
.qty-dialog__row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.qty-dialog__row input { width: 96px; height: 42px; padding: 0 8px; border: 1px solid #cfcfcf; border-radius: 8px; font: 700 18px 'Roboto', Arial, sans-serif; text-align: center; }
.qty-dialog__row input[aria-invalid="true"] { border-color: var(--c-badge); outline-color: var(--c-badge); }
.qty-dialog__step { width: 42px; height: 42px; flex: none; border: 1px solid var(--c-price); border-radius: 50%; background: #fff; color: var(--c-price); font-size: 22px; line-height: 1; }
.qty-dialog__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.qty-dialog__preset { min-width: 64px; height: 34px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-bg-pink); color: var(--c-heading); font-size: 14px; font-weight: 500; }
.qty-dialog__preset:hover:not(:disabled), .qty-dialog__step:hover:not(:disabled) { border-color: var(--c-price); background: var(--c-price); color: #fff; }
.qty-dialog__step:disabled, .qty-dialog__preset:disabled { border-color: #ddd; background: #f4f4f4; color: #aaa; cursor: not-allowed; }
.qty-dialog__total { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--c-bg-soft); font-weight: 700; }
.qty-dialog__error { min-height: 20px; margin: 0; color: var(--c-badge); font-size: 14px; line-height: 20px; }
.qty-dialog__error:empty { min-height: 0; }
.qty-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.qty-dialog__actions button { height: 42px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.qty-dialog__cancel { border: 1px solid #cfcfcf; background: #fff; color: #444; }
.qty-dialog__ok { border: 1px solid var(--c-price); background: var(--c-price); color: #fff; }
.qty-dialog__ok:disabled { border-color: #ccc; background: #ccc; cursor: not-allowed; }
@media (max-width: 420px) {
  .qty-dialog__actions { flex-direction: column-reverse; }
  .qty-dialog__actions button { width: 100%; }
}

/* ---------- Tin tức, Đánh giá ---------- */
.block { padding: 34px 0 38px; }
.block .carousel { margin-top: 22px; --gap: 13px; }
.reviews { background: var(--c-bg-soft); }
.news-card { height: 100%; display: flex; flex-direction: column; background: var(--c-bg-card); border: 1px solid #efedeb; border-radius: 8px; overflow: hidden; }
.news-card:hover { border-color: #ddc3c5; }
.news-card__img img { width: 100%; height: auto; aspect-ratio: 285 / 204; object-fit: cover; }
.news-card__body { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 14px; }
.news-card h3, .news-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-card h3 { font-size: 16px; line-height: 22px; min-height: 44px; }
.news-card h3 a:hover { color: var(--c-heading); }
.news-card p { margin-top: 8px; font-size: 14px; line-height: 21px; color: #444; }
.news-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c-border); font-size: 13px; color: #555; }
.news-card__meta .more { font-size: 14px; }
.review-card { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--c-border); border-radius: 9px; }
.review-card__stars { display: flex; gap: 3px; color: #f5a900; font-size: 17px; }
.review-card blockquote { flex: 1; font-size: 15px; line-height: 24px; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-card figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.review-card b { display: block; color: var(--c-heading); font-size: 15px; }
.review-card small { color: #555; font-size: 13px; }

/* ---------- Câu hỏi thường gặp (trang chủ, Dịch vụ) ---------- */
.faq { display: grid; gap: 10px; }
.block .faq { margin-top: 22px; }
.faq details { border: 1px solid var(--c-border); border-radius: 9px; background: var(--c-bg-card); }
.faq summary { padding: 13px 16px; font-weight: 700; cursor: pointer; }
.faq p { padding: 0 16px 14px; line-height: 1.6; }
.faq a { color: var(--c-heading); text-decoration: underline; }

/* ---------- Dải địa phương ---------- */
.local { position: relative; height: clamp(169px, 14.1vw, 250px); background: #fbfaf8 url(../images/home-temp/local-band.webp) right center / auto 100% no-repeat; display: flex; align-items: center; }
.local::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fbfaf8 calc(100% - clamp(169px, 14.1vw, 250px) * 4.52), rgba(251, 250, 248, 0) 62%); }
.local__content { position: relative; padding-left: 108px; margin-left: max(0px, calc((100% - 1199px) / 2)); }
.local__pin { position: absolute; left: 56px; top: 4px; width: 36px; height: 48px; color: var(--c-heading); }
.local h2 { color: var(--c-brand-dark); font-size: 30px; line-height: 33px; }
.local h2 span { display: block; font-size: 24px; line-height: 29px; }
.local p { margin: 9px 0 0 -52px; font-size: 18px; line-height: 24px; font-style: italic; }

/* ---------- Footer ---------- */
.footer { border-top: 4px solid var(--c-primary); }
.register { background: var(--c-bg-pink); padding: 24px 0; }
.register__form { display: grid; grid-template-columns: 1fr minmax(0, 520px); align-items: center; gap: 10px 32px; }
.register h2 { font-size: 22px; }
.register p { font-size: 14px; }
.register__row { display: flex; gap: 10px; }
.register input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 1px solid #cfcfcf; border-radius: 7px; background: #fff; }
.register .form-message { grid-column: 1 / -1; color: var(--c-heading); font-weight: 500; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding-block: 34px; font-size: 14px; line-height: 22px; }
.footer__grid h3 { margin-bottom: 12px; color: var(--c-heading); font-size: 17px; }
.footer__grid li { padding: 4px 0; }
.footer__grid a:not(.logo):hover { color: var(--c-heading); text-decoration: underline; }
.logo--footer { margin: 0 0 12px -5px; }
.footer__copy { padding: 13px 16px; background: var(--c-primary); color: #fff; text-align: center; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 150; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 12px 18px; border-radius: 9px; background: var(--c-brand-dark); color: #fff; font-size: 14px; visibility: hidden; opacity: 0; }
.toast.is-open { visibility: visible; opacity: 1; }

/* ---------- Responsive ([Đề xuất] trong AGENTS.md) ---------- */
@media (min-width: 1180px) {
  :root { --shift: 6px; }
}

@media (max-width: 1179px) {
  .header { grid-template-columns: auto minmax(180px, 1fr) auto auto; column-gap: 20px; }
  .hcontact { margin-left: 0; }
  .hcart { padding-left: 16px; }
  .mainnav > .wrap > ul > li > a { padding: 0 8px; }
  .usp { height: auto; padding: 18px 0; }
  .usp ul { grid-template-columns: 1fr 1fr; gap: 18px; padding-left: 0; white-space: normal; }
  .usp li:nth-child(n) { padding-left: 12px; }
  .usp li:nth-child(odd) { border-left: 0; }
  .cats, .best { height: auto; padding-bottom: 10px; }
  .cats__grid { grid-template-columns: repeat(4, 1fr); }
  .best__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  html { scroll-padding-top: 116px; }
  body > header { border-bottom: 1px solid var(--c-border); }
  .header { grid-template-columns: auto 1fr auto; height: auto; padding-block: 10px; row-gap: 8px; column-gap: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search input { font-size: 16px; }
  .hcontact { display: none; }
  .hcart { grid-column: 3; grid-row: 1; justify-self: end; }
  .logo { margin-left: 0; font-size: 20px; line-height: 21px; }
  .logo img { width: 62px; height: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: 0; background: none; }
  .menu-toggle span { height: 2px; background: var(--c-primary); }

  /* Menu ngăn kéo */
  .mainnav { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(300px, 85vw); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .mainnav.active { transform: none; visibility: visible; }
  .mainnav .wrap { width: 100%; left: 0; }
  .mainnav__close { display: block; margin: 8px 8px 8px auto; padding: 8px 12px; border: 0; background: none; color: #fff; }
  .mainnav > .wrap > ul { display: block; height: auto; }
  .mainnav > .wrap > ul > li > a { width: 100%; height: 48px; padding: 0 20px; }
  .home-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .sub { display: block; position: static; border: 0; border-radius: 0; background: rgba(0, 0, 0, .16); color: #fff; }
  .sub a { padding-left: 36px; }
  .sub a:hover { background: var(--c-primary-active); }
  body.menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mainnav { transition: none; }
}

@media (max-width: 767px) {
  h2 { font-size: 22px; }
  .hero-banner { height: auto; flex-direction: column-reverse; }
  .hero-banner__photo { position: relative; width: 100%; aspect-ratio: 759 / 344; }
  .hero-banner__photo::before { display: none; }
  .hero-banner__content { height: auto; align-self: auto; width: auto; margin-inline: 16px; left: 0; padding-bottom: 20px; }
  .hero-banner h1 { padding-top: 20px; }
  .hero-banner h1 span:first-child { font-size: 30px; line-height: 38px; }
  .hero-banner h1 span:last-child { font-size: 24px; line-height: 32px; margin-left: 0; }
  .hero-banner ul { margin-left: 0; font-size: 15px; }
  .hero-banner li { height: auto; padding: 4px 0; gap: 10px; }
  .hero-banner .btn-primary { margin-left: 0; }
  .usp ul { grid-template-columns: 1fr; }
  .usp li:nth-child(n) { border-left: 0; padding-left: 4px; }
  .usp li:nth-child(3) .usp__icon { width: 42px; }
  .cats__grid, .best__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .best .head .more { margin-top: 2px; font-size: 14px; }
  .best .head { height: auto; margin-bottom: 16px; }
  .best .head { flex-wrap: wrap; }
  .prod-search { flex: 1 1 100%; margin-top: 0; }
  .cat > span { font-size: 15px; }
  .prod { height: auto; padding-bottom: 12px; }
  .prod__img { height: auto; aspect-ratio: 217 / 131; }
  .prod h3 { margin-inline: 10px; white-space: normal; min-height: 44px; font-size: 15px; }
  .prod__price { margin-inline: 10px; font-size: 16px; }
  .prod__stock { margin-inline: 10px; }
  .btn-outline { width: calc(100% - 16px); height: 36px; gap: 5px; font-size: 13px; }
  .local { height: auto; display: block; padding: 20px 0 0; background: #fbfaf8; }
  .local::before { display: none; }
  .local::after { content: ""; display: block; height: 150px; margin-top: 14px; background: url(../images/home-temp/local-band.webp) right center / cover; }
  .local__content { margin: 0; padding: 0 16px 0 64px; }
  .local__pin { left: 16px; }
  .local h2 { font-size: 23px; line-height: 28px; }
  .local h2 span { font-size: 18px; }
  .local p { margin-left: -48px; font-size: 15px; }
  .local p br { display: none; }
  .register__form { grid-template-columns: 1fr; }
  .register__row { flex-wrap: wrap; }
  .register input { flex: 1 1 100%; height: 44px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Vùng chạm trên điện thoại, máy tính bảng ---------- */
@media (max-width: 991px) {
  .footer__grid small { font-size: 12px; }
  .search button { width: 48px; margin: 0; }
  .search { height: 40px; }
  .more { min-height: 40px; }
  .footer__grid li { padding: 0; }
  .footer__grid li a { display: inline-block; padding: 8px 0; }
  .footer__grid li:not(:has(a)) { padding: 5px 0; }
  .mainnav__close { min-height: 44px; }
  .carousel__arrow { width: 40px; height: 40px; }
  .carousel__dots { gap: 16px; }
  .carousel__dot { position: relative; }
  .carousel__dot::after { content: ""; position: absolute; inset: -8px; } /* chấm vẫn 10px, vùng bấm 26px */
}

/* Màn hình rất hẹp: thu logo để không đè lên giỏ hàng */
@media (max-width: 359px) {
  .header { column-gap: 6px; }
  .logo { font-size: 16px; line-height: 19px; }
  .logo img { width: 44px; }
  .hcart { gap: 5px; padding-left: 8px; }
  .hcart > span { font-size: 12px; }
  .hcart .ic { font-size: 26px; }
}

/* ---------- Footer: liên kết hỗ trợ và chính sách ---------- */
.footer__links li { position: relative; padding-left: 18px; }
.footer__links li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--c-primary); }
.footer__grid .footer__links a { display: inline-block; }
@media (max-width: 991px) {
  .footer__grid .footer__links li { padding-left: 18px; }
  .footer__links li::before { top: 19px; }
}
