/* Hoppika — giao diện cửa hàng. Tinh thần: trắng, chữ lớn, nhiều khoảng thở, một màu nhấn. */
:root {
  --text: #1d1d1f; --muted: #6e6e73; --bg: #fff; --surface: #f5f5f7; --line: #d2d2d7;
  --accent: #ff5a1f; --accent-d: #e04a12; --link: #0066cc; --ok: #1a7f37; --err: #c4321c;
  --radius: 18px; --font: "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="th"] body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 620px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.right { text-align: right; }

/* Thanh trên cùng */
.staging { background: #1d1d1f; color: #f5f5f7; text-align: center; font-size: 12px; padding: 6px 12px; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.nav-row { display: flex; align-items: center; height: 52px; gap: 28px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--text); opacity: .85; }
.nav-right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.langs { display: flex; gap: 2px; font-size: 12px; font-weight: 500; }
.langs a { color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--text); background: var(--surface); }
.cart-link { position: relative; color: var(--text); display: flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.cart-count[hidden] { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } .nav-row { gap: 16px; } }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 0;
  border-radius: 980px; padding: 11px 22px; font-size: 16px; font-weight: 500; cursor: pointer; min-height: 44px; transition: background .15s; }
.btn:hover { background: var(--accent-d); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-lg { font-size: 17px; padding: 14px 28px; min-height: 52px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:hover { background: rgba(255, 90, 31, .06); }

/* Trang chủ */
.hero { text-align: center; padding: 88px 22px 56px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 8px; letter-spacing: .01em; }
.hero h1 { font-size: clamp(40px, 7.4vw, 80px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 700; white-space: pre-line; }
html[lang="th"] .hero h1 { line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); margin: 0 auto 30px; max-width: 640px; }
.tiles { display: grid; gap: 16px; }
.tile { background: var(--surface); border-radius: 28px; overflow: hidden; text-align: center; padding: 56px 24px 0; }
.tile h2 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -.03em; margin: 0 0 6px; line-height: 1.08; }
.tile .tagline { font-size: clamp(19px, 2.2vw, 26px); margin: 0 auto 8px; max-width: 640px; }
.tile-price { color: var(--muted); margin: 0 0 20px; }
.tile .links { display: flex; gap: 22px; justify-content: center; align-items: center; margin-bottom: 32px; }
.tile .more { font-size: 17px; }
.tile img { margin: 0 auto; max-height: 460px; width: auto; object-fit: contain; }
.section { padding-top: 64px; padding-bottom: 24px; } /* không đè lề trái/phải của .wrap */
.section-tight { padding: 32px 22px 72px; }
.section-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; margin: 0 0 28px; font-weight: 700; }
.page-title { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; margin: 8px 0 24px; line-height: 1.12; }
.sub-title { font-size: 21px; margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.card-img { aspect-ratio: 1; display: grid; place-items: center; }
.card-img img { max-height: 100%; object-fit: contain; }
.card .name { font-weight: 600; font-size: 19px; margin: 14px 0 2px; }
.card-tag { color: var(--muted); font-size: 14px; }
.card .price { margin-top: auto; padding-top: 14px; font-size: 15px; }
.soon-tag { color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.pills a { padding: 8px 16px; border-radius: 980px; background: var(--surface); color: var(--text); font-size: 14px; }
.pills a[aria-current="page"] { background: var(--text); color: #fff; }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.promise { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; }
.promise h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.promise p { margin: 0; color: var(--muted); }

/* ===== Trang sản phẩm — khuôn chuẩn cho mọi sản phẩm: màn đầu đủ để mua, bên dưới gọn, có thanh mục dính ===== */
.pd-crumbs .crumbs { padding-top: 14px; padding-bottom: 6px; }
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 48px; }

.pd-media { position: sticky; top: 72px; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; background: var(--surface); outline: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: center; display: grid; place-items: center; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; }
.pd-count { position: absolute; right: 14px; top: 14px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: none; width: 72px; height: 72px; padding: 3px; border-radius: 12px; border: 2px solid transparent; background: var(--surface); cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--text); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.pd-info { min-width: 0; }
.pd-eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.pd-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 8px; }
.pd-tagline { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0 0 10px; }
.pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pd-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); min-height: 32px; }
.pd-meta a span { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pd-meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--line); margin-right: 14px; vertical-align: -2px; }
.pd-meta em { font-style: normal; font-size: 10px; font-weight: 800; background: #ffcf4d; color: #5a3b00; border-radius: 4px; padding: 1px 5px; }

.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; background: #fff6f1; border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.pd-price strong { font-size: 32px; line-height: 1.1; color: var(--accent); letter-spacing: -.02em; }
.pd-price s { color: var(--muted); font-size: 15px; }
.pd-off { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.pd-price [hidden] { display: none; }

.pd-packs { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.pd-packs legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.pd-pack-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.pd-pack-grid.n1 { grid-template-columns: 1fr; }
.pd-pack-grid.n2 { grid-template-columns: 1fr 1fr; }
.pd-pack { position: relative; display: grid; gap: 2px; align-content: start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 12px 12px; cursor: pointer; background: #fff;
  transition: border-color .15s, box-shadow .15s; }
.pd-pack:hover { border-color: #b0b0b5; }
.pd-pack:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #fffaf7; }
.pd-pack:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.pd-pack input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pd-badge { position: absolute; top: -9px; left: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.pd-pack-q { font-weight: 600; font-size: 15px; }
.pd-pack-p { font-weight: 700; font-size: 18px; }
.pd-pack-sub { font-size: 12px; color: var(--muted); }
.pd-save { justify-self: start; font-size: 11px; font-weight: 700; color: #0f7a3a; background: #e3f6ea; border-radius: 6px; padding: 1px 6px; margin-top: 4px; }

.pd-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.pd-actions .btn { min-height: 52px; font-size: 17px; }
.pd-buy { box-shadow: 0 12px 26px -14px rgba(255, 90, 31, .9); }
.pd-trust { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); line-height: 1.3; }
.pd-trust svg { flex: none; color: var(--ok); }
.pd-trust a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pd-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.pd-points li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pd-points svg { flex: none; color: var(--ok); margin-top: 2px; }
.pd-points strong { color: var(--text); font-weight: 600; }

.pd-tabs { position: sticky; top: 52px; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs a { flex: none; padding: 0 14px; min-height: 48px; display: inline-flex; align-items: center; color: var(--muted); font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.pd-tabs a:hover { color: var(--text); text-decoration: none; }
.pd-tabs a.is-on { color: var(--text); border-bottom-color: var(--accent); }

.pd-body { max-width: 880px; padding-bottom: 24px; }
.pd-sec { padding: 44px 0 8px; scroll-margin-top: 110px; }
.pd-sec h2, .pd-body .fd-head h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 16px; }
.pd-sec > p { font-size: 17px; line-height: 1.7; margin: 0 0 12px; color: #3a3a3c; }
.pd-sec > p.pd-lead { font-size: 20px; color: var(--text); font-weight: 500; line-height: 1.6; }
.pd-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.pd-feat { background: var(--surface); border-radius: 18px; padding: 20px; }
.pd-feat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--ok); margin-bottom: 14px; }
.pd-feat h3 { font-size: 17px; margin: 0 0 4px; }
.pd-feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; background: var(--surface); border-radius: 16px; padding: 16px 18px; }
.pd-steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 700; }
.pd-steps p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; }
.pd-spec { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pd-spec > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; }
.pd-spec > div:nth-child(odd) { background: var(--surface); }
.pd-spec dt, .pd-spec dd { padding: 12px 16px; margin: 0; font-size: 15px; }
.pd-spec dt { color: var(--muted); }
.pd-warn { margin: 14px 0 0; font-size: 14px; color: var(--muted); background: #fff8e6; border-radius: 12px; padding: 12px 14px; }
.pd-body .fd { padding: 44px 0 8px; scroll-margin-top: 110px; }
.pd-body .fd-ribbon { margin: 0 0 18px; border-radius: 10px; }
.pd-body .faq details { padding: 14px 0; }

.js-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.nw { white-space: nowrap; }
.soon { background: var(--surface); border-radius: 14px; padding: 18px; color: var(--muted); }
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: 2px; }
.was { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 400; }

.sticky-buy { display: none; }
@media (max-width: 860px) {
  .pd-crumbs { display: none; }
  .pd { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .pd-media { position: relative; top: auto; margin: 0 -22px; }
  .pd-track { border-radius: 0; }
  .pd-thumbs { display: none; }
  .pd-title { font-size: 24px; }
  .pd-price strong { font-size: 28px; }
  .pd-trust { grid-template-columns: 1fr; gap: 6px; }
  .pd-tabs { top: 52px; }
  .pd-sec { padding-top: 32px; }
  .has-sticky { padding-bottom: 76px; }
  .sticky-buy { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom);
    transition: transform .25s; }
  .sticky-buy.is-hidden { transform: translateY(110%); }
  .sticky-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
  .sticky-name { font-size: 13px; color: var(--muted); max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-price { font-weight: 700; color: var(--accent); }
}
@media (max-width: 400px) { .pd-pack-grid { grid-template-columns: 1fr 1fr; } .pd-pack-grid.n1 { grid-template-columns: 1fr; } }

/* ===== Ngôn ngữ trên đầu trang ===== */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 99px;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface); }
.lang-code { display: none; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: rgba(255, 255, 255, .96); border-radius: 16px; padding: 6px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: pop .18s ease-out; z-index: 60; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-pop a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text); font-size: 15px; }
.lang-pop a:hover { background: var(--surface); text-decoration: none; }
.lang-pop a[aria-current="true"] { font-weight: 600; }
.lang-suggest { background: #f5f5f7; border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-suggest-row { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.lang-suggest-row span { flex: 1; }
.btn-sm { padding: 8px 16px; font-size: 14px; min-height: 40px; }
.drawer-langs { display: flex; gap: 6px; margin: 4px 0 14px; }
.drawer-langs a { flex: 1; text-align: center; min-height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; }
.drawer-langs a[aria-current="true"] { background: var(--text); color: #fff; }
@media (max-width: 640px) {
  .lang-cur { display: none; }
  .lang-code { display: inline; font-weight: 600; }
  .lang-menu summary { padding: 0 8px; }
}
:root { --rv-accent: var(--accent); --rv-text: var(--text); --rv-muted: var(--muted); --rv-surface: var(--surface); --rv-line: var(--line); }

/* Giỏ hàng, đặt hàng */
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-top: 32px; padding-bottom: 88px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 24px; } }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line img { width: 96px; height: 96px; object-fit: contain; background: var(--surface); border-radius: 14px; padding: 8px; }
.line .ln-name { font-weight: 600; color: var(--text); }
.line .ln-qty { color: var(--muted); font-size: 14px; }
.line .ln-right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 14px; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; position: sticky; top: 76px; }
.summary h2 { margin: 0 0 4px; font-size: 21px; }
.summary hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; }
.sum-total { font-weight: 700; font-size: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.code { letter-spacing: .06em; }
.status { color: var(--ok); font-weight: 600; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center;
  font-size: 32px; margin: 8px auto 0; }
.empty { padding: 32px 0; }

.form { display: grid; gap: 16px; }
.form label > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 17px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--text); -webkit-appearance: none; appearance: none; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(0, 102, 204, .18); }
.form input[aria-invalid="true"] { border-color: var(--err); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.err { color: var(--err); font-size: 15px; margin: 0; min-height: 1px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1d1f; color: #fff; padding: 12px 18px;
  border-radius: 14px; font-size: 15px; z-index: 60; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.toast[hidden] { display: none; }
.toast a { color: #6cb4ff; }
.has-sticky .toast { bottom: 88px; }

.footer { background: var(--surface); color: var(--muted); font-size: 13px; padding: 32px 0 40px; margin-top: 24px; }
.footer p { margin: 6px 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--text); }

/* ---- Khung trang mở rộng: thông báo, menu điện thoại, tìm kiếm ---- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.announce { background: var(--surface); color: var(--text); text-align: center; font-size: 13px; padding: 8px 12px; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: none; border: 0; color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface); text-decoration: none; }
.menu-btn { display: none; margin-left: -10px; }
.nav-right { gap: 4px; }
.langs { margin-right: 6px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav-links { display: none; }
  .nav-row { gap: 6px; }
  .nav .langs { display: none; }
}
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .35); }
.drawer[hidden] { display: none; }
.drawer-panel { background: #fff; width: min(88vw, 360px); height: 100%; overflow-y: auto; padding: 14px 20px 40px; display: grid; align-content: start; gap: 14px;
  animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-search input, .searchbar input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.drawer-links, .drawer-sub { display: grid; }
.drawer-links a { color: var(--text); font-size: 22px; font-weight: 600; padding: 10px 0; letter-spacing: -.01em; }
.drawer-sub a { color: var(--text); padding: 8px 0; }
body.menu-open { overflow: hidden; }

/* ---- Trang chủ mở rộng ---- */
.hero-ctas { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.more { font-size: 17px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cat { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 16px; padding: 22px 24px;
  color: var(--text); font-weight: 600; font-size: 18px; transition: background .15s; }
.cat:hover { background: #ececf0; text-decoration: none; }
.cat .arrow { color: var(--accent); font-size: 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }
.promise-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.band { margin: 40px 0 24px; background: #1d1d1f; color: #f5f5f7; border-radius: 28px; padding: 44px 40px; display: flex; gap: 28px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.band p { margin: 0; color: #a1a1a6; }
.band-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.band .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }

/* ---- Trang sản phẩm mở rộng ---- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }
.delivery { margin-top: 20px; background: var(--surface); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; font-size: 14px; }
.delivery span { color: var(--muted); }
.delivery a { margin-top: 4px; }
.related { border-top: 1px solid var(--line); }

/* ---- Trang nội dung, liên hệ, tìm kiếm ---- */
.prose h2 { font-size: 22px; letter-spacing: -.01em; margin: 32px 0 8px; }
.prose p, .prose li { color: #333336; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.draft { background: #fff4e5; color: #8a4b00; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.contact-list { display: grid; gap: 10px; margin: 8px 0 24px; }
.contact-item { display: grid; gap: 2px; background: var(--surface); border-radius: 14px; padding: 16px 18px; color: var(--text); }
.contact-item:hover { text-decoration: none; background: #ececf0; }
.contact-more { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar { display: flex; gap: 10px; margin-bottom: 20px; }

/* ---- Chân trang 4 cột ---- */
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-cols h3 { font-size: 13px; color: var(--text); margin: 0 0 10px; }
.footer-cols a { display: block; color: var(--muted); padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { padding-top: 16px; display: grid; gap: 4px; }
.footer-bottom .langs { margin-top: 8px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Vùng bấm tối thiểu 44px cho ngón tay (ui.md §3) — giữ nguyên cỡ chữ, chỉ nới vùng bấm. */
.icon-btn { width: 44px; height: 44px; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 8px; }
.footer-cols a { display: flex; align-items: center; min-height: 44px; padding: 0; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.crumbs { padding-top: 4px; }
.more, .section-head a, .delivery a, .logo { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
