/* MKS Theme — matkhau.vn
 * Một màu chính (đỏ thương hiệu), chữ to, nút to, nền trắng thoáng.
 * Bố cục lấy cảm hứng từ bộ "AN CƯ": vòng tròn, thẻ bo góc, đường viền mảnh, menu trượt bên.
 */
@font-face { font-family: Inter; src: url('../fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('../fonts/Inter-Bold.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Inter; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --red: #d4203f;
  --red-dark: #a8142f;
  --red-soft: #fdf0f2;
  --red-line: #f6d3da;
  --ink: #1d2130;
  --text: #2b3040;
  --muted: #5d6478;
  --line: #e6e8f0;
  --soft: #f6f7fb;
  --paper: #fff;
  --ok: #138a4b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(29, 33, 48, .07);
  --header-h: 72px;
  --wrap: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.65 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip không phá position: sticky như hidden */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.ico { width: 24px; height: 24px; flex-shrink: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--red); text-transform: uppercase; margin: 0 0 8px; }

/* ---------- Nút ---------- */
.btn, .button, button.button, a.button, input.button, #place_order, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 2px solid var(--red); border-radius: 999px;
  background: var(--red); color: #fff !important;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover, .button:hover, #place_order:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active, .button:active { transform: translateY(1px); }
.btn-outline, .button.btn-outline { background: #fff; color: var(--red) !important; }
.btn-outline:hover { background: var(--red-soft); color: var(--red-dark) !important; border-color: var(--red); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.btn .ico { width: 22px; height: 22px; }
.button.disabled, .button:disabled, .button[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--soft); color: var(--red); }
.icon-btn.round { border: 1px solid var(--line); background: #fff; }
.link-more { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 3px 16px rgba(29, 33, 48, .04); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { max-width: 1440px; }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { font-weight: 800; font-size: 22px; color: var(--red); }
.header-nav { margin-left: 8px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap; }
.nav-list a:hover, .nav-list .current-menu-item a, .nav-list a[aria-current] { background: var(--red-soft); color: var(--red); }
.header-search { flex: 1; display: flex; align-items: center; min-width: 240px; max-width: 360px; margin-left: auto; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); padding-left: 18px; }
.header-search:focus-within { border-color: var(--red); background: #fff; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; outline: none; }
.header-search button { border: 0; background: none; width: 46px; height: 46px; display: grid; place-items: center; color: var(--muted); }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; padding: 6px 16px; border-radius: 999px; background: var(--red); color: #fff !important; white-space: nowrap; }
.header-phone span { font-size: 12px; opacity: .9; }
.header-phone strong { font-size: 17px; letter-spacing: .02em; }
.header-phone:hover { background: var(--red-dark); }
.header-icons { display: flex; gap: 2px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count[data-count="0"] { display: none; }
.menu-toggle, .search-toggle { display: none; }

/* Thanh công cụ trên cùng: không dính, cuộn xuống là khuất (header chính vẫn dính) */
.topbar { background: var(--ink); color: #fff; font-size: 15px; }
.topbar .wrap { max-width: 1440px; }
.topbar-row { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.topbar-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; min-width: 0; }
.topbar-label { color: #b9bdcb; font-weight: 600; margin-right: 6px; }
.topbar-tools a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #fff; font-weight: 600; white-space: nowrap; }
.topbar-tools .ico { width: 18px; height: 18px; color: #ff9fb2; }
.topbar-tools a:hover, .topbar-tools a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
.topbar-ctv { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; white-space: nowrap; }
.topbar-ctv .ico { width: 18px; height: 18px; }
.topbar-ctv:hover, .topbar-ctv[aria-current] { background: var(--red-dark); color: #fff; }

/* ---------- Menu trượt ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20, 22, 32, .45); border: 0; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(380px, calc(100vw - 48px));
  background: #fff; overflow-y: auto; padding: 22px 22px 40px;
  transform: translateX(-105%); transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 20px 0 50px rgba(0, 0, 0, .12);
}
.drawer.is-open { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.drawer-title { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0; }
.drawer-search { display: flex; border: 1px solid var(--line); border-radius: 999px; padding-left: 16px; margin-bottom: 14px; background: var(--soft); }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; height: 50px; outline: none; }
.drawer-search button { border: 0; background: none; width: 50px; color: var(--muted); }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 19px; font-weight: 700; }
.drawer-nav a:hover { color: var(--red); }
.drawer-label { margin: 24px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.drawer-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-tools a { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.25; }
.drawer-tools a:last-child:nth-child(odd) { grid-column: span 2; }
.drawer-tools .ico { flex-shrink: 0; width: 22px; height: 22px; color: var(--red); }
.drawer-tools a:hover, .drawer-tools a[aria-current] { border-color: var(--red-line); background: var(--red-soft); color: var(--ink); }
.drawer-ctv { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--red); color: #fff; }
.drawer-ctv:hover { background: var(--red-dark); color: #fff; }
.drawer-ctv .ico { flex-shrink: 0; width: 26px; height: 26px; }
.drawer-ctv strong { display: block; font-size: 17px; }
.drawer-ctv small { display: block; font-size: 14px; opacity: .92; }
.drawer-ctv > span:last-child { margin-left: auto; }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-cats a { display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; }
.drawer-cats small { color: var(--muted); font-weight: 400; }
.drawer-contact { margin-top: 26px; padding: 20px; border-radius: var(--radius); background: var(--red-soft); }
.drawer-contact strong { display: block; font-size: 19px; color: var(--ink); margin: 2px 0 4px; }
.drawer-contact p { color: var(--muted); font-size: 16px; }
body.drawer-open { overflow: hidden; }

/* ---------- Khối chung ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-weight: 400; }
.section-head h2 b { font-weight: 800; color: var(--red); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--red-line); transform: translateY(-2px); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: linear-gradient(180deg, var(--red-soft), #fff 85%); }
.hero-rings { position: absolute; inset: 0; pointer-events: none; }
.hero-rings span { position: absolute; border: 1px solid var(--red-line); border-radius: 50%; left: 50%; top: -60%; transform: translateX(-50%); }
.hero-rings span:nth-child(1) { width: 140vw; height: 140vw; max-width: 1900px; max-height: 1900px; }
.hero-rings span:nth-child(2) { width: 100vw; height: 100vw; max-width: 1400px; max-height: 1400px; top: -45%; }
.hero-rings span:nth-child(3) { width: 64vw; height: 64vw; max-width: 900px; max-height: 900px; top: -30%; border-style: dashed; opacity: .7; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 600px; }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 600px; padding: 8px 8px 8px 20px; background: #fff; border: 2px solid var(--red); border-radius: 999px; box-shadow: 0 12px 30px rgba(212, 32, 63, .12); }
.hero-search > .ico { color: var(--red); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 18px; height: 50px; background: none; }
.hero-search .btn { min-height: 52px; padding: 0 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; }
.hero-chips span { color: var(--muted); font-size: 15px; margin-right: 2px; }
.hero-chips a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; }
.hero-chips a:hover { border-color: var(--red); color: var(--red); }

/* Vòng tròn giá ở giữa (giống "GIÁ THAM KHẢO" của bộ AN CƯ) */
.hub { display: grid; justify-items: center; gap: 14px; }
.hub-circle { position: relative; width: min(400px, 82vw); aspect-ratio: 1; border-radius: 50%; background: #fff; border: 10px solid #fff; box-shadow: 0 0 0 1px var(--red-line), 0 30px 60px rgba(212, 32, 63, .14); }
.hub-circle::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed var(--red-line); }
.hub-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14%; color: var(--ink); opacity: 0; transform: scale(.96); transition: opacity .5s, transform .5s; pointer-events: none; }
.hub-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hub-thumb { width: 38%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: var(--soft); margin-bottom: 12px; }
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-name { font-weight: 700; font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-label { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.hub-price { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--red); line-height: 1.2; }
.hub-link { margin-top: 10px; padding: 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; }
.hub-slide:hover .hub-link { background: var(--red); }
.hub-dots { display: flex; gap: 0; }
/* Ô bấm 28px (dễ chạm trên điện thoại), chấm nhìn thấy vẫn nhỏ */
.hub-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; position: relative; cursor: pointer; }
.hub-dots button::before { content: ""; position: absolute; left: 8px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--red-line); }
.hub-dots button[aria-selected="true"] { width: 46px; }
.hub-dots button[aria-selected="true"]::before { width: 30px; border-radius: 6px; background: var(--red); }
.thumb-letter { display: grid; place-items: center; width: 100%; height: 100%; font-size: 48px; font-weight: 800; color: var(--red); background: var(--red-soft); }

/* ---------- 3 bước ---------- */
.steps-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: -28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 20px; }
.step strong { display: block; color: var(--ink); font-size: 18px; }
.step p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Thẻ sản phẩm ---------- */
.product-card { display: flex; flex-direction: column; height: 100%; }
.card-thumb { display: block; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.product-card:hover .card-thumb img { transform: scale(1.04); }
.card-price { margin: 4px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.card-price small { color: var(--muted); font-size: 14px; }
.card-price strong { color: var(--red); font-size: 21px; font-weight: 800; }
.card-price del { color: var(--muted); font-size: 15px; }
.product-card .btn { margin-top: auto; min-height: 48px; }
.product-card.is-out .card-thumb { opacity: .55; }
.product-card.is-out .btn { background: #fff; color: var(--muted) !important; border-color: var(--line); }

/* Băng trượt sản phẩm */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 18px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.carousel-count { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }

/* Lưới danh mục, lưới sản phẩm Woo */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.cat-tile:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); }
.cat-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: var(--red-soft); color: var(--red); font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-weight: 700; font-size: 18px; line-height: 1.3; }
.cat-tile small { color: var(--muted); font-size: 14px; }

ul.products { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
ul.products > li { min-width: 0; }
ul.products::before, ul.products::after { display: none !important; }
ul.products > li { margin: 0 !important; width: auto !important; float: none !important; }

/* ---------- Giới thiệu & liên hệ ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-art { display: grid; place-items: center; }
.about-circle { width: min(360px, 80vw); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 50px; background: radial-gradient(circle at 30% 25%, #e8445f, var(--red) 55%, var(--red-dark)); color: #fff; box-shadow: 0 0 0 14px var(--red-soft), 0 0 0 15px var(--red-line); }
.about-circle .ico { width: 64px; height: 64px; }
.about-circle strong { font-size: 30px; font-weight: 800; }
.about-circle span { font-size: 17px; opacity: .92; }
.about-copy h2 { font-weight: 400; }
.about-copy h2 b { font-weight: 800; color: var(--red); }
.lead { font-size: 19px; color: var(--muted); }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.check-list .ico { color: var(--red); margin-top: 2px; }
.check-list strong { color: var(--ink); }

.quick-contact { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 34px; border-radius: 24px; background: var(--ink); color: #dfe2ec; }
.quick-contact h2 { color: #fff; margin-bottom: 4px; }
.quick-contact p { margin: 0; font-size: 18px; }
.quick-contact strong { color: #fff; }
.quick-contact-head { display: flex; gap: 18px; align-items: center; }
.qc-icon { flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.qc-icon .ico { width: 30px; height: 30px; }
.quick-contact .btn-outline { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.quick-contact .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions.stack { flex-direction: column; }
.contact-actions.stack .btn { width: 100%; }

/* Bài viết */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-excerpt { font-size: 16px; color: var(--muted); margin: 0 0 6px; }

/* ---------- Trang thường ---------- */
.page-hero { padding: 36px 0 28px; background: linear-gradient(180deg, var(--red-soft), #fff); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { text-wrap: balance; }
.page-hero .term-desc { margin-left: auto; margin-right: auto; }
.page-hero .brand-hero { justify-content: center; text-align: left; }
.page-hero h1 { margin: 6px 0 0; }
.page-hero .meta { color: var(--muted); margin: 8px 0 0; }
.term-desc { color: var(--muted); max-width: 760px; margin-top: 10px; }
.rank-math-breadcrumb, .woocommerce-breadcrumb { font-size: 15px; color: var(--muted); }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a, .woocommerce-breadcrumb a { color: var(--muted); }
.rank-math-breadcrumb a:hover, .woocommerce-breadcrumb a:hover { color: var(--red); }
.page-body { padding-top: 36px; padding-bottom: 64px; max-width: 860px; }
.page-wide { padding-top: 32px; padding-bottom: 64px; }
.entry-content .post-note { margin: 0 0 20px; padding: 14px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; font-size: 26px; }
.entry-content h3 { margin-top: 1.4em; font-size: 21px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a.btn, .entry-content a.button { text-decoration: none; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--soft); font-weight: 700; }
@media (max-width: 600px) {
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 15px; }
  .entry-content th, .entry-content td { min-width: 120px; }
}

/* Trang chính sách: cột trái danh sách + mục lục, cột phải nội dung */
.policy-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 36px; padding-bottom: 72px; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; }
.admin-bar .policy-nav { top: calc(var(--header-h) + 52px); max-height: calc(100vh - var(--header-h) - 72px); }
.policy-pick { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px; }
.policy-pick > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px; font-size: 17px; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.policy-pick > summary::-webkit-details-marker { display: none; }
.policy-pick > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.policy-pick[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.policy-list { list-style: none; margin: 0; padding: 0 0 4px; display: grid; gap: 2px; }
.policy-list a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.35; text-decoration: none; }
.policy-list a:hover { background: var(--soft); color: var(--red); }
.policy-list .is-on > a { background: var(--red-soft); color: var(--red); font-weight: 800; }
.policy-toc { list-style: none; margin: 6px 0 10px 16px; padding: 0 0 0 12px; border-left: 2px solid var(--red-line); display: grid; gap: 0; }
.policy-toc a { padding: 7px 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.policy-main { min-width: 0; max-width: 820px; }
.policy-main .entry-content h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.policy-main .entry-content > h2:first-child, .policy-main .entry-content > .policy-summary:first-child { margin-top: 0; }
.entry-content .policy-summary { margin: 0 0 32px; padding: 22px 26px; border: 1px solid var(--red-line); border-radius: var(--radius); background: var(--red-soft); }
.entry-content .policy-summary > p:first-child { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--ink); }
.entry-content .policy-summary ul { margin: 0; }
.entry-content .policy-summary li + li { margin-top: 6px; }
.entry-content .policy-note { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--soft); }
.entry-content .policy-note > :last-child { margin-bottom: 0; }
.entry-content .policy-steps { counter-reset: step; list-style: none; padding-left: 0; }
.entry-content .policy-steps > li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 14px; }
.entry-content .policy-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 16px; }
.policy-contact { margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.policy-contact-title { margin: 0 0 16px; font-size: 22px; }
.shop-info { margin: 0 0 20px; display: grid; gap: 0; }
.shop-info > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.shop-info > div:last-child { border-bottom: 0; }
.shop-info dt { color: var(--muted); }
.shop-info dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .policy-nav { position: static; max-height: none; overflow: visible; }
  .policy-main { max-width: none; }
}
@media (max-width: 600px) {
  .shop-info > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .entry-content .policy-summary { padding: 18px; }
  .policy-contact { padding: 20px; }
}
.entry-content blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--red); background: var(--red-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.entry-content summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.post-hero-img { margin: 0 0 24px; }
.post-hero-img img { border-radius: var(--radius); width: 100%; }
.post-help { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--red-soft); }

/* Bài viết: cột phải có banner dọc dính theo, banner ngang chèn giữa bài */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-layout:not(:has(.post-side)) { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.post-layout .post-main { max-width: 800px; padding-left: 0; padding-right: 0; }
.post-side { position: sticky; top: calc(var(--header-h) + 20px); margin-top: 36px; min-width: 0; }
.admin-bar .post-side { top: calc(var(--header-h) + 52px); }
.promo-v { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: linear-gradient(165deg, var(--red) 0%, var(--red-dark) 100%); color: #fff !important; text-decoration: none; box-shadow: 0 16px 36px rgba(212, 32, 63, .22); }
.promo-v-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.promo-v-img { display: block; width: 100%; max-width: 220px; margin: 0 auto; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.promo-v-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-v-img .thumb-letter { display: grid; place-items: center; height: 100%; font-size: 64px; font-weight: 800; color: var(--red); }
.promo-v-name { font-size: 20px; font-weight: 800; line-height: 1.3; }
.promo-v-price { font-size: 24px; font-weight: 800; line-height: 1.2; }
.promo-v-price small { font-size: 15px; font-weight: 600; opacity: .9; }
.promo-v-price .woocommerce-Price-amount, .promo-v-price bdi { color: #fff; }
.promo-v-list { display: grid; gap: 6px; font-size: 15px; }
.promo-v-list span { display: flex; align-items: center; gap: 8px; }
.promo-v-list .ico { width: 18px; height: 18px; }
.promo-v-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 4px; border-radius: 999px; background: #fff; color: var(--red); font-size: 17px; font-weight: 800; transition: transform .15s; }
.promo-v-btn .ico { width: 20px; height: 20px; }
.promo-v:hover .promo-v-btn { transform: translateY(-1px); background: var(--ink); color: #fff; }
.entry-content .promo-h { display: flex; gap: 20px; align-items: center; margin: 32px 0; padding: 18px; border: 1px solid var(--red-line); border-radius: var(--radius); background: var(--red-soft); }
.promo-h-img { flex: 0 0 132px; width: 132px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; display: block; }
.entry-content .promo-h-img img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.promo-h-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.promo-h-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.entry-content .promo-h-name { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); text-decoration: none; }
.entry-content .promo-h-name:hover { color: var(--red); }
.promo-h-desc { font-size: 16px; line-height: 1.5; color: var(--muted); }
.promo-h-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 4px; }
.promo-h-price { font-size: 22px; font-weight: 800; color: var(--red); }
.promo-h-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.entry-content a.promo-h-btn { min-height: 48px; padding: 10px 22px; text-decoration: none; }
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .post-side { display: none; }
}
@media (max-width: 600px) {
  .entry-content .promo-h { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .promo-h-img { flex-basis: 88px; width: 88px; }
  .promo-h-body { flex-basis: calc(100% - 102px); }
  .promo-h-row { flex-basis: 100%; }
  .entry-content a.promo-h-btn { flex: 1 1 100%; }
}
.empty-state { padding: 48px 0; text-align: center; }
.empty-state.big { padding: 80px var(--gutter); display: grid; gap: 14px; justify-items: center; }
.empty-state .contact-actions { justify-content: center; }
.search-box { display: flex; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.search-box input { flex: 1; min-width: 0; }
.nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 32px 0 8px; padding: 0; border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { float: none; margin: 0; border: 0 !important; overflow: visible; }
.nav-links .page-numbers, .woocommerce nav.woocommerce-pagination ul li .page-numbers { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 48px; height: 48px; padding: 0 16px; margin: 0; border: 1px solid var(--line) !important; border-radius: 14px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1; text-decoration: none; transition: border-color .15s, color .15s; }
.nav-links a.page-numbers:hover, .woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover { border-color: var(--red) !important; color: var(--red); background: #fff; }
.nav-links .page-numbers.current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.nav-links .page-numbers.dots, .woocommerce nav.woocommerce-pagination ul li .dots { border-color: transparent !important; background: none; min-width: 24px; padding: 0; }

/* ---------- Biểu mẫu ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .select2-container .select2-selection--single {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid #cfd3df; border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 17px; color: var(--ink);
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 32, 63, .15); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 50px; }
label, .woocommerce form .form-row label { font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row .description { font-size: 15px; color: var(--muted); }
.required { color: var(--red); text-decoration: none; }

/* Thông báo: thẻ bo tròn theo màu trạng thái, icon tròn (không dùng khung viền trái + font icon của Woo) */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 20px !important; padding: 15px 20px 15px 60px !important;
  border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important; box-shadow: none !important;
  background: var(--soft) !important; color: var(--ink) !important; font-size: 17px; line-height: 1.55; font-weight: 500; position: relative;
}
.wc-block-components-notice-banner { padding-left: 20px !important; }
.woocommerce-message { background: #effaf3 !important; border-color: #c4e8d2 !important; }
.woocommerce-error { background: var(--red-soft) !important; border-color: var(--red-line) !important; }
.woocommerce-info { background: #f1f5fe !important; border-color: #d9e2f8 !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  position: absolute !important; left: 18px !important; top: 14px !important; width: 28px; height: 28px; border-radius: 50%;
  font: 800 16px/28px Inter, Arial, sans-serif !important; text-align: center; color: #fff !important;
}
.woocommerce-message::before { content: "\2713" !important; background: var(--ok); }
.woocommerce-error::before { content: "!" !important; background: var(--red); }
.woocommerce-info::before { content: "i" !important; background: #3a5fcf; }
.woocommerce-error li { margin: 0; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) { color: var(--red); font-weight: 700; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  float: right; min-height: 42px; margin: -4px 0 -4px 14px; padding: 6px 18px !important; font-size: 15px !important;
  background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 999px !important; box-shadow: none !important;
}
.woocommerce-message .button:hover, .woocommerce-info .button:hover { border-color: var(--red) !important; color: var(--red) !important; }
@media (max-width: 640px) {
  .woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { float: none; display: flex; width: 100%; justify-content: center; margin: 12px 0 0; }
}

/* ---------- Danh mục / cửa hàng ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.chip { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.woocommerce-result-count { color: var(--muted); font-size: 15px; margin: 10px 0 18px; float: left; }
.woocommerce-ordering { float: right; margin: 0 0 18px; }
.woocommerce-ordering select { min-height: 44px; padding: 8px 14px; font-size: 15px; width: auto; }
.shop-page ul.products { clear: both; }

/* ---------- Trang sản phẩm ---------- */
.product-page { padding-top: 20px; padding-bottom: 64px; }
.product-page > .woocommerce-breadcrumb, .product-page .woocommerce-breadcrumb { margin: 0 0 18px; }
.product-page div.product { position: relative; }
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.product-page div.product > .onsale { position: absolute; top: 14px; left: 14px; z-index: 3; }
.product-media { grid-column: 1; grid-row: 1; align-self: start; min-width: 0; position: sticky; top: var(--media-top, calc(var(--header-h) + 16px)); display: grid; gap: 20px; }
.admin-bar .product-media { top: var(--media-top, calc(var(--header-h) + 48px)); }
.product-page div.product .product-media .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.product-media .trust-rows { margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img, .woocommerce-product-gallery img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); }
.flex-control-thumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.flex-control-thumbs li { width: 72px; }
.flex-control-thumbs img { border-radius: 10px; cursor: pointer; opacity: .6; }
.flex-control-thumbs .flex-active { opacity: 1; outline: 2px solid var(--red); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 0; }
.woocommerce-product-gallery__trigger::after { content: "⤢"; font-size: 20px; color: var(--ink); }
.product-page div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; grid-column: 2; grid-row: 1; min-width: 0; }
.product_title { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.summary .price, .single_variation .price { display: block; margin: 8px 0 16px; color: var(--red) !important; font-size: 32px !important; font-weight: 800; line-height: 1.2; }
.summary .price del, .single_variation .price del { color: var(--muted); font-size: 20px; font-weight: 400; margin-right: 8px; }
.summary .price ins { text-decoration: none; }
.price-from { font-size: .55em; font-weight: 600; color: var(--muted); }
.woocommerce-product-details__short-description { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.woocommerce-product-details__short-description ul { padding-left: 1.2em; }
.stock { font-weight: 700; }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--red); }

/* Chọn gói (biến thể) — chuyển select thành nút bấm bằng JS */
table.variations { width: 100%; border: 0; margin: 0 0 10px; }
table.variations tr { display: block; margin-bottom: 14px; }
table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: left; }
table.variations th label { font-size: 17px; margin-bottom: 8px; }
.variation-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.variation-pills button { min-height: 50px; padding: 10px 18px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; text-align: left; }
.variation-pills button:hover { border-color: var(--red); }
.variation-pills button[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); box-shadow: inset 0 0 0 1px var(--red); }
.variation-pills button:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
table.variations select.mks-hidden-select { position: absolute; opacity: 0; pointer-events: none; height: 0; min-height: 0; padding: 0; border: 0; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.single_variation_wrap .woocommerce-variation-description { color: var(--muted); font-size: 16px; }
form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 0 18px; }
form.cart.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
/* Ô số lượng: [ − ] 1 [ + ] to, dễ bấm */
.woocommerce .quantity, form.cart div.quantity { display: inline-flex !important; align-items: stretch; float: none !important; margin: 0 !important; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; height: 54px; }
.woocommerce .quantity.hidden, .woocommerce .quantity:has(input[type=hidden]) { display: none !important; }
.quantity .qty { width: 56px !important; min-height: 0 !important; height: 100%; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 19px; font-weight: 700; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 50px; border: 0; background: var(--soft); color: var(--ink); font-size: 24px; font-weight: 700; line-height: 1; }
.qty-btn:hover { background: var(--red-soft); color: var(--red); }
.qty-label { display: block; width: 100%; font-weight: 600; color: var(--ink); margin-bottom: -4px; }
form.cart:not(.variations_form) { align-items: center; }
form.cart:not(.variations_form) .single_add_to_cart_button { flex: 1 1 200px; }
.woocommerce-variation-add-to-cart { align-items: center; }
.woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 200px; width: auto; }
.woocommerce table.cart .quantity { height: 46px; }
.woocommerce table.cart .qty-btn { width: 40px; }
.woocommerce table.cart .quantity .qty { width: 44px !important; }
.single_variation_wrap .woocommerce-variation-price { display: none; }
/* "Thêm vào giỏ hàng" = nút viền; nút đỏ "Mua ngay" do module Mua nhanh của mks-shop tự định dạng (.mks-qb-open) */
.woocommerce div.product form.cart .button.single_add_to_cart_button, form.cart .single_add_to_cart_button { flex: 1; width: 100%; min-height: 54px; font-size: 18px; border-radius: 16px; background: #fff !important; color: var(--red) !important; border: 2px solid var(--red-line) !important; }
form.cart .single_add_to_cart_button:hover { border-color: var(--red) !important; background: var(--red-soft) !important; }
form.cart .single_add_to_cart_button.disabled { opacity: .55; }
.woocommerce-variation-add-to-cart .single_add_to_cart_button { width: 100%; }
.trust-rows { list-style: none; margin: 6px 0 24px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust-rows li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; font-size: 16px; }
.trust-rows li + li { border-top: 1px solid var(--line); }
.trust-rows .ico { color: var(--red); margin-top: 1px; }
.trust-rows strong { color: var(--ink); }

.woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; list-style: none; margin: 0 0 -1px; padding: 0 !important; overflow-x: auto; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 14px 20px !important; color: var(--muted) !important; font-weight: 700; font-size: 17px; border-bottom: 3px solid transparent; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--red) !important; border-bottom-color: var(--red); }
.woocommerce-tabs .panel { padding: 28px 0 0; max-width: 860px; font-size: 18px; }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.related, .upsells { grid-column: 1 / -1; margin-top: 48px; }
.product-section { grid-column: 1 / -1; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); min-width: 0; }
/* Dưới trang sản phẩm: Giới thiệu + Đánh giá bên trái, "Sản phẩm nổi bật" bên phải dính khi cuộn */
.product-more { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 48px; align-items: start; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-more-main { min-width: 0; }
.product-more-main > .product-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.product-side { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.admin-bar .product-side { top: calc(var(--header-h) + 48px); }
.side-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.side-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 20px; line-height: 1.3; color: var(--ink); }
.side-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--red); }
.side-list { list-style: none; margin: 0 0 16px; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--ink); }
.side-item:hover .side-name { color: var(--red); }
.side-thumb { flex-shrink: 0; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.side-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.side-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-name { font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-price { color: var(--red); font-weight: 800; font-size: 17px; }
.side-price small { color: var(--muted); font-weight: 500; font-size: 14px; }
.product-section-title { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
.product-desc .entry-content { max-width: 860px; }
.woocommerce-product-gallery { overflow: hidden; }
.review-summary { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); max-width: 860px; }
.review-score { text-align: center; display: grid; justify-items: center; gap: 6px; }
.review-score strong { font-size: 54px; line-height: 1; color: var(--ink); }
.review-score > span { color: var(--muted); font-size: 15px; }
.review-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.review-bars li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); }
.review-bars .bar { height: 10px; border-radius: 5px; background: #e4e6ee; overflow: hidden; }
.review-bars .bar i { display: block; height: 100%; background: #f5a623; border-radius: 5px; }
.review-empty { color: var(--muted); }
.star-rating { color: #f5a623 !important; }
/* Chữ ẩn "Được xếp hạng…" trong sao: màu đậm cho đủ tương phản (công cụ chấm điểm vẫn đọc chữ này); sao vẫn màu cam */
.star-rating span { color: #6b4400 !important; }
.star-rating span::before { color: #f5a623 !important; }
#reviews { max-width: 860px; }
#reviews .woocommerce-Reviews-title:empty { display: none; }
#reviews ol.commentlist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
#reviews ol.commentlist li { margin: 0 !important; }
#reviews ol.commentlist > li.is-more { display: none; }
.reviews-more { width: 100%; margin: -12px 0 28px; }
#reviews .comment_container { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
#reviews .comment_container img.avatar { position: static !important; float: none !important; width: 48px !important; height: 48px !important; max-width: none; object-fit: cover; border-radius: 50% !important; border: 0 !important; padding: 0 !important; flex-shrink: 0; }
#reviews .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; flex: 1; min-width: 0; }
#reviews .comment-text .star-rating { float: none !important; margin-bottom: 4px; }
#reviews .comment-text .meta { font-size: 15px !important; color: var(--muted) !important; margin: 0 0 6px !important; }
#reviews .woocommerce-review__author { color: var(--ink); font-size: 17px; }
#reviews .woocommerce-review__verified { color: var(--ok); font-style: normal; font-weight: 600; }
#reviews .description p { margin: 0; font-size: 17px; }
#review_form_wrapper { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
#reply-title { font-size: 22px; font-weight: 800; color: var(--ink); display: block; margin-bottom: 10px; }
.comment-form-rating .stars a { color: #f5a623 !important; font-size: 26px; }
@media (max-width: 760px) {
  .review-summary { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
}
.related > h2, .upsells > h2 { font-size: 26px; }
.woocommerce span.onsale, .onsale { display: inline-block; background: var(--red) !important; border-radius: 999px !important; margin: 0 !important; top: 14px !important; left: 14px !important; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; min-height: 0; min-width: 0; line-height: 1.6; }

/* Thanh "Mua ngay" dính đáy (điện thoại) */
.buy-bar[hidden] { display: none !important; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
.buy-bar > div { min-width: 0; display: flex; flex-direction: column; }
.buy-bar-name { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar-price { font-weight: 800; color: var(--red); font-size: 18px; }
.buy-bar-price .price-from { font-size: 13px; }
.buy-bar .btn { flex-shrink: 0; }

/* ---------- Giỏ hàng, thanh toán, tài khoản ---------- */
.woocommerce .button.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce a.checkout-button { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.woocommerce .button.alt:hover, .woocommerce a.checkout-button:hover { background: var(--red-dark) !important; border-color: var(--red-dark) !important; }
/* WooCommerce tự tô nút xám, góc vuông 3px (.woocommerce button.button …) → đưa về nút đỏ bo tròn của theme.
   Cùng độ ưu tiên với woocommerce.css nhưng nạp sau nên thắng; các nút đã có kiểu riêng (giỏ hàng, thông báo…) vẫn giữ kiểu riêng. */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  min-height: 50px; padding: 12px 24px; border: 2px solid var(--red); border-radius: 999px;
  background: var(--red); color: #fff; font-size: 17px; font-weight: 700; line-height: 1.2;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.woocommerce .button:disabled, .woocommerce .button.disabled, .woocommerce button.button:disabled[disabled] { background: #fff !important; color: var(--muted) !important; border-color: var(--line) !important; opacity: 1; }
/* Thanh toán: khung nhập mã giảm giá, cùng kiểu thẻ với khung "Đơn hàng của bạn" */
.woocommerce form.checkout_coupon { margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); text-align: left; }
.woocommerce form.checkout_coupon .form-row { margin: 0; padding: 0; }
.woocommerce form.checkout_coupon .form-row-first { float: left; width: calc(100% - 168px); }
.woocommerce form.checkout_coupon .form-row-last { float: right; width: 156px; }
.woocommerce form.checkout_coupon .input-text { width: 100%; min-height: 50px; background: #fff; }
.woocommerce form.checkout_coupon .button { width: 100%; white-space: nowrap; }
.woocommerce form.checkout_coupon .coupon-error-notice { margin: 8px 0 0; font-size: 15px; }
@media (max-width: 640px) {
  .woocommerce form.checkout_coupon .form-row-first, .woocommerce form.checkout_coupon .form-row-last { float: none; width: 100%; }
  .woocommerce form.checkout_coupon .form-row-last { margin-top: 10px; }
}
.woocommerce table.cart td.actions { padding: 16px !important; }
.woocommerce table.cart td.actions .coupon { float: left; align-items: center; }
.woocommerce table.cart td.actions .coupon .input-text { min-height: 48px; margin: 0 !important; }
.woocommerce table.cart td.actions .button { min-height: 48px; padding: 8px 20px; font-size: 16px; font-weight: 700; white-space: nowrap; background: #fff; color: var(--red) !important; border: 2px solid var(--red); border-radius: 999px; }
.woocommerce table.cart td.actions > .button { float: right; }
.woocommerce table.cart .product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.woocommerce-cart-form__contents .product-price, .woocommerce-cart-form__contents .product-subtotal { font-weight: 700; }
.woocommerce table.shop_table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 17px; margin-bottom: 24px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 16px; border: 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table thead th { border-top: 0; background: var(--soft); font-size: 15px; color: var(--muted); }
.woocommerce table.shop_table img { width: 64px; border-radius: 10px; }
.woocommerce a.remove { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--red) !important; font-size: 22px; }
.woocommerce a.remove:hover { background: var(--red) !important; color: #fff !important; }
.woocommerce .cart .actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce .cart .actions .coupon .input-text { width: 220px; }
.cart-collaterals .cart_totals { max-width: 520px; margin-left: auto; }
.cart_totals h2 { font-size: 24px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 60px; font-size: 20px; }
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: auto; float: none; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup, form.checkout > .wc-block-components-notices { grid-column: 1 / -1; }
form.checkout .col2-set { grid-template-columns: 1fr; grid-column: 1; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.admin-bar form.checkout .col2-set, .admin-bar form.checkout #order_review { top: calc(var(--header-h) + 48px); }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
form.checkout #order_review { grid-column: 2; grid-row: 1; margin-top: 48px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); position: sticky; top: calc(var(--header-h) + 16px); }
form.checkout #order_review .shop_table { background: #fff; }
#payment { background: transparent !important; border-radius: 0; }
#payment ul.payment_methods { list-style: none; padding: 0 !important; margin: 0 0 16px; border: 0 !important; }
#payment ul.payment_methods li { padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 17px; }
#payment div.payment_box { background: var(--red-soft) !important; color: var(--text) !important; border-radius: 10px; font-size: 16px; }
#payment div.payment_box::before { display: none; }
#place_order { width: 100%; min-height: 62px; font-size: 20px; border-radius: 16px; float: none !important; }
.woocommerce-terms-and-conditions-wrapper { font-size: 15px; }
.woocommerce-order-overview { list-style: none; padding: 20px !important; margin: 0 0 28px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.woocommerce-order-overview li { border: 0 !important; margin: 0 !important; padding: 0 !important; font-size: 14px !important; color: var(--muted); text-transform: uppercase; }
.woocommerce-order-overview strong { display: block; color: var(--ink); font-size: 18px; text-transform: none; margin-top: 2px; }
.woocommerce-thankyou-order-received { font-size: 22px; font-weight: 800; color: var(--ok); }

.woocommerce-account .woocommerce { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper, .woocommerce-account .woocommerce > .woocommerce-message, .woocommerce-account .woocommerce > .woocommerce-error { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.woocommerce-MyAccount-content { min-width: 0; font-size: 17px; }
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; } /* clearfix của Woo thành ô lưới thừa */
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
.woocommerce-account:not(.logged-in) .woocommerce, .woocommerce-account .woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) { display: block; max-width: 1040px; margin: 0 auto; }
/* Trang Tài khoản của tôi: xem khối "Tài khoản của tôi" ở cuối file */

/* ---------- Chân trang ---------- */
.site-footer { background: #16181f; color: #b9bdca; padding: 56px 0 0; font-size: 16px; }
.site-footer a { color: #e6e8ef; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-links .footer-ctv { color: #fff; font-weight: 700; }
.footer-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .brand-text { color: #fff; }
.footer-tagline { color: #fff; font-weight: 700; font-size: 18px; margin: 16px 0 6px; }
.footer-intro { font-size: 15px; }
.footer-title { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-contact .ico { width: 20px; height: 20px; color: var(--red); }
.footer-contact a { font-weight: 700; font-size: 18px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { padding: 7px 14px; border: 1px solid #343846; border-radius: 999px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid #2a2d38; font-size: 14px; }

.bottom-bar { display: none; }

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1400px) {
  .topbar-label { display: none; }
  .header-search { display: none; }
  .search-toggle { display: inline-grid; margin-left: auto; }
}
@media (max-width: 1120px) {
  .topbar { display: none; }
  .header-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .carousel { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 36px; }
  .hub { order: 2; }
  .about-art { order: 2; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-contact { flex-direction: column; align-items: flex-start; }
  .product-top { grid-template-columns: minmax(0, 1fr); }
  /* Điện thoại/máy tính bảng: ảnh → phần mua → khối cam kết; không dính */
  .product-media { display: contents; }
  .product-page div.product .product-media .woocommerce-product-gallery { order: 1; max-width: 520px; }
  .product-page div.product .summary { grid-column: 1; grid-row: auto; order: 2; }
  .product-media .trust-rows { order: 3; }
  .product-more { grid-template-columns: minmax(0, 1fr); }
  .product-side { display: none; }
  form.checkout { grid-template-columns: minmax(0, 1fr); }
  form.checkout > * { min-width: 0; }
  form.checkout #order_review_heading, form.checkout #order_review, form.checkout .col2-set { grid-column: 1; grid-row: auto; margin-top: 0; position: static; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 17px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .admin-bar .site-header { top: 0; }
  .header-row { gap: 4px; }
  .brand { margin-right: auto; }
  .brand img { height: 36px; }
  .header-search, .header-phone, .header-account { display: none; }
  .search-toggle { margin-left: 0; }
  .section { padding: 44px 0; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .hero-sub { font-size: 17px; }
  .hero-search { padding-left: 14px; }
  .hero-search input { font-size: 17px; height: 46px; }
  .hero-search .btn { min-height: 48px; padding: 0 20px; }
  .hub-circle { width: min(320px, 84vw); }
  .hub-name { font-size: 16px; }
  .steps-strip { grid-template-columns: 1fr; margin-top: -16px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step { padding: 16px 18px; }
  .carousel { grid-auto-columns: 72%; gap: 14px; }
  .carousel-nav .icon-btn { display: none; }
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 16px; }
  .card-price strong { font-size: 18px; }
  .product-card .btn { min-height: 46px; padding: 10px 12px; font-size: 16px; }
  .cat-grid { gap: 10px; }
  .cat-tile { padding: 14px; }
  .cat-icon { width: 46px; height: 46px; }
  .cat-name { font-size: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .quick-contact { padding: 24px 20px; }
  .quick-contact-head { flex-direction: column; align-items: flex-start; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .about-circle { width: min(260px, 70vw); padding: 36px; }
  .about-circle strong { font-size: 24px; }
  .woocommerce-result-count, .woocommerce-ordering { float: none; }
  .woocommerce-ordering select { width: 100%; }
  .summary .price { font-size: 28px !important; }
  .woocommerce .col2-set { grid-template-columns: 1fr; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; text-align: right !important; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; color: var(--muted); text-align: left; }
  .woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
  .woocommerce .cart .actions .coupon .input-text { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-bar a, .bottom-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 64px; border: 0; background: none; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
  .bottom-bar .ico { width: 24px; height: 24px; }
  .bottom-bar .bb-zalo { color: var(--red); }
  .bb-cart { position: relative; display: block; }
  .bb-cart .cart-count { top: -6px; right: -12px; }
  .single-product .bottom-bar { display: none; }
  .single-product body, body.single-product { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 761px) { .buy-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Popup giỏ hàng (trượt từ phải) ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(20, 22, 32, .45); }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100vw); display: flex; flex-direction: column; background: #fff; transform: translateX(105%); transition: transform .3s cubic-bezier(.22, 1, .36, 1); box-shadow: -20px 0 50px rgba(0, 0, 0, .14); }
.cart-drawer.is-open { transform: none; }
.cd-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--line); }
.cd-title { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 800; color: var(--ink); }
.cd-title .ico { color: var(--red); }
.cart-drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mc-list { list-style: none; margin: 0; padding: 8px 18px; overflow-y: auto; flex: 1; }
.mc-item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 30px 14px 0; border-bottom: 1px solid var(--line); }
.mc-item.is-busy { opacity: .5; pointer-events: none; }
.mc-thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.mc-name { display: block; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.3; }
.mc-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.mc-qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; height: 42px; }
.mc-qty button { width: 40px; height: 100%; border: 0; background: var(--soft); font-size: 20px; font-weight: 700; color: var(--ink); }
.mc-qty button:hover { background: var(--red-soft); color: var(--red); }
.mc-qty button:disabled { opacity: .35; }
.mc-qty span { min-width: 38px; text-align: center; font-weight: 800; font-size: 17px; }
.mc-price { color: var(--red); font-size: 18px; }
.mc-remove { position: absolute; top: 10px; right: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 24px; line-height: 1; }
.mc-remove:hover { background: var(--red-soft); color: var(--red); }
.mc-foot { padding: 16px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--soft); }
.mc-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 4px; }
.mc-total strong { color: var(--red); font-size: 24px; }
.mc-empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 40px 24px; color: var(--muted); }
.mc-empty .ico { width: 64px; height: 64px; color: var(--red-line); }
.cd-help { margin: 0; padding: 10px 18px 14px; text-align: center; font-size: 15px; color: var(--muted); background: var(--soft); }
body.cart-open { overflow: hidden; }

/* ---------- Nút liên hệ nổi ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { display: inline-flex; align-items: center; gap: 8px; height: 60px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 12px 30px rgba(212, 32, 63, .4); }
.fab-btn em { font-style: normal; }
.fab-btn .ico { width: 26px; height: 26px; }
.fab-btn { position: relative; }
.fab-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: fab-pulse 2.4s infinite; pointer-events: none; }
.fab.is-open .fab-btn::before { animation: none; }
.fab-open, .fab-close { display: inline-flex; align-items: center; gap: 8px; }
.fab-close { display: none; }
.fab.is-open .fab-open { display: none; }
.fab.is-open .fab-close { display: inline-flex; }
.fab.is-open .fab-btn { padding: 0 17px; background: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 32, 63, .45); } 70% { box-shadow: 0 0 0 18px rgba(212, 32, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 32, 63, 0); } }
.fab-panel { width: 300px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); display: grid; gap: 8px; transform-origin: bottom right; animation: fab-in .22s ease-out; }
@keyframes fab-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.fab-title { margin: 0 0 6px; font-weight: 800; font-size: 18px; color: var(--ink); line-height: 1.3; }
.fab-title small { font-weight: 600; font-size: 14px; color: var(--muted); }
.fab-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); color: var(--ink); }
.fab-item:hover { border-color: var(--red); background: var(--red-soft); color: var(--ink); }
.fab-item > span { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.fab-item b { display: flex; flex-direction: column; font-size: 17px; line-height: 1.25; }
.fab-item small { font-weight: 600; font-size: 14px; color: var(--muted); }
.fab-call > span { background: var(--red); }
.fab-zalo > span { background: #0068ff; }
.fab-mess > span { background: linear-gradient(135deg, #00b2ff, #a033ff 60%, #ff5c87); }
.fab-tele > span { background: #29a9eb; }
@media (max-width: 760px) {
  .fab { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .fab-btn { height: 54px; padding: 0 16px; }
  .fab-btn em { display: none; }
  .fab-panel { width: min(300px, calc(100vw - 28px)); }
  .single-product .fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
  body:not(.single-product) .fab { display: none; } /* menu dưới đã có nút Zalo */
}

/* ---------- Trang Liên hệ ---------- */
.contact-hero { position: relative; overflow: hidden; padding: 48px 0 90px; background: linear-gradient(180deg, var(--red-soft), #fff); text-align: center; }
.contact-hero .wrap { position: relative; }
.contact-hero h1 { font-weight: 400; }
.contact-hero h1 b { font-weight: 800; color: var(--red); }
.contact-hero .lead { max-width: 640px; margin: 0 auto 16px; }
.contact-hours { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--red-line); font-weight: 700; color: var(--ink); margin: 0; }
.contact-hours .ico { color: var(--red); }
.contact-hero .rank-math-breadcrumb { margin-bottom: 14px; }
.contact-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -56px; }
.cc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, border-color .2s; }
.cc:hover { transform: translateY(-3px); border-color: var(--red); color: var(--ink); }
.cc-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 8px; font-weight: 800; }
.cc-ico .ico { width: 28px; height: 28px; }
.cc-call .cc-ico { background: var(--red); }
.cc-zalo .cc-ico { background: #0068ff; font-size: 16px; }
.cc-mess .cc-ico { background: linear-gradient(135deg, #00b2ff, #a033ff 60%, #ff5c87); }
.cc-tele .cc-ico { background: #29a9eb; }
.cc strong { font-size: 19px; }
.cc-val { font-size: 20px; font-weight: 800; color: var(--red); }
.cc small { color: var(--muted); font-size: 15px; }
.contact-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.contact-body .card { padding: 26px 28px; }
.contact-body .card:hover { transform: none; }
.contact-body h2 { font-size: 24px; }
.contact-info .entry-content { font-size: 17px; }
.contact-info .entry-content p { margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-info .entry-content ul { padding-left: 1.2em; }
.contact-faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-faq summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 17px; }
.contact-faq details p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .contact-cards { gap: 10px; margin-top: -60px; }
  .cc { padding: 18px 10px; }
  .cc-ico { width: 52px; height: 52px; }
  .cc-val { font-size: 17px; }
  .contact-body .card { padding: 20px; }
}
.fab-panel[hidden] { display: none !important; }
.admin-bar .cart-drawer, .admin-bar .drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .cart-drawer, .admin-bar .drawer { top: 46px; } }
.contact-info .entry-content ul { display: none; }

/* Nhãn giảm giá cạnh giá; ẩn kính lúp (bấm vào ảnh để phóng to) */
.sale-pct { display: inline-flex; align-items: center; margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line); font-size: 15px; font-weight: 800; line-height: 1.3; vertical-align: middle; white-space: nowrap; }
.product-page .woocommerce-product-gallery__trigger { display: none !important; }
.product-page .woocommerce-product-gallery__image a { cursor: zoom-in; }

/* Kiểm tra bảo hành */
.mks-wr { max-width: 720px; }
.mks-wr-form { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.mks-wr-form label { display: block; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.mks-wr-row { display: flex; gap: 10px; }
.mks-wr-row input { flex: 1; min-width: 0; height: 56px; font-size: 20px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mks-wr-row .btn { height: 56px; padding: 0 26px; font-size: 18px; }
.mks-wr-hint { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.mks-wr-result { margin-top: 18px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-size: 17px; }
.mks-wr-result.is-warn { border-color: #f3d29b; background: #fff8ec; }
.mks-wr-head { margin: 0 0 12px; }
.mks-wr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mks-wr-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.mks-wr-name { font-weight: 800; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mks-wr-meta { margin-top: 4px; color: var(--ink); }
.mks-wr-left { color: var(--muted); }
.mks-wr-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.mks-wr-badge.ok { background: #e7f6ec; color: #18794e; }
.mks-wr-badge.off { background: #f1f2f5; color: #6b7080; }
.mks-wr-badge.info { background: var(--red-soft); color: var(--red); }
.mks-wr-foot { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .mks-wr-row { flex-direction: column; } .mks-wr-row .btn { width: 100%; } }

/* Thương hiệu */
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
/* Nút "Xem thêm / Xem tất cả" dưới lưới: cách lưới một khoảng, không dính sát */
.brand-grid + .center { margin: 28px 0 0; }
.carousel + .center { margin: 10px 0 0; }
.brand-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.brand-tile:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.brand-tile.is-extra { display: none; }
.brand-grid.is-open .brand-tile.is-extra { display: flex; }
.brand-logo { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 4px; }
.brand-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-letter { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 28px; font-weight: 800; }
.brand-name { font-weight: 800; font-size: 16px; line-height: 1.3; }
.brand-tile small { color: var(--muted); font-size: 14px; }
.brand-strip { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin: -6px 0 20px; scrollbar-width: thin; }
.brand-strip-label { flex: none; font-weight: 700; color: var(--muted); font-size: 15px; margin-right: 2px; }
.brand-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand-chip:hover, .brand-chip.is-active { border-color: var(--red); color: var(--red); }
.brand-chip.is-active { background: var(--red-soft); }
.brand-chip-logo { width: 32px; height: 32px; display: grid; place-items: center; }
.brand-chip-logo img { max-width: 28px; max-height: 28px; width: auto; height: auto; }
.brand-chip-logo .brand-letter { width: 32px; height: 32px; border-radius: 50%; font-size: 15px; }
.brand-hero { display: flex; align-items: center; gap: 18px; }
.brand-hero .eyebrow { margin: 0 0 2px; }
.brand-hero h1 { margin: 0; }
.brand-hero-logo { width: 84px; height: 84px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.brand-hero-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
@media (max-width: 1100px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .brand-tile { padding: 14px 6px 12px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 14px; }
  .brand-tile small { font-size: 12px; }
  .brand-hero-logo { width: 64px; height: 64px; border-radius: 18px; }
}

/* ---------- Bộ lọc cửa hàng (kiểu danh sách, xuống dòng) ---------- */
.filters { display: grid; gap: 14px; margin: 0 0 22px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.filter-label { margin: 0; padding-top: 10px; font-weight: 800; color: var(--ink); font-size: 16px; }
.chips.chips-wrap { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0; }
.chips-wrap .chip { padding: 9px 16px; }
.brand-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.brand-box { position: relative; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; }
.brand-box:hover { border-color: var(--red); color: var(--red); }
.brand-box.is-active { border: 2px solid var(--red); padding: 5px 11px 5px 7px; background: var(--red-soft); color: var(--red); }
.brand-box.is-extra { display: none; }
.brand-boxes.is-open .brand-box.is-extra { display: flex; }
.brand-box-logo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.brand-box-logo img { max-width: 30px; max-height: 30px; width: auto; height: auto; }
.brand-box-logo .brand-letter { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.brand-box-name { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.brand-box-x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 13px; }
.brand-box-more.is-mobile-only { display: none; }
@media (max-width: 760px) { .brand-box-more.is-mobile-only { display: flex; } }
.brand-box-more { justify-content: center; color: var(--red); background: var(--soft); border-style: dashed; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; user-select: none; }
.fbtn::-webkit-details-marker { display: none; }
.fbtn:hover { border-color: var(--red); color: var(--red); }
.fbtn.is-active { border: 2px solid var(--red); padding: 0 15px; background: var(--red-soft); color: var(--red); }
.fbtn-caret { font-size: 12px; transition: transform .2s; }
.fdrop[open] .fbtn-caret { transform: rotate(180deg); }
.fbtn-check { width: 20px; height: 20px; border: 2px solid #b9bfce; border-radius: 6px; display: grid; place-items: center; background: #fff; }
.fbtn.is-active .fbtn-check { border-color: var(--red); background: var(--red); }
.fbtn.is-active .fbtn-check::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.fdrop { position: relative; }
.fdrop[open] > .fbtn { border-color: var(--red); color: var(--red); }
.fdrop-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(440px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(29, 33, 48, .16); }
.fdrop-title { margin: 0 0 10px; font-weight: 800; color: var(--ink); }
.fdrop-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fopt { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; font-size: 15px; }
.fopt:hover { border-color: var(--red); color: var(--red); }
.fopt.is-active { border: 2px solid var(--red); padding: 7px 13px; background: var(--red-soft); color: var(--red); }
.filter-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-picked-label { font-weight: 700; color: var(--muted); font-size: 15px; }
.picked { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red); font-weight: 700; font-size: 15px; }
.picked span { font-size: 18px; line-height: 1; }
.picked:hover { background: var(--red); color: #fff; }
.picked-clear { color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: underline; margin-left: 4px; }
.sort-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 0 0 18px; }
.sort-count { margin: 0; color: var(--muted); font-size: 16px; }
.sort-count strong { color: var(--ink); }
.sort-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sort-opts span { color: var(--muted); font-size: 15px; margin-right: 4px; }
.sort-opts a { padding: 7px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.sort-opts a:hover { color: var(--red); border-color: var(--line); }
.sort-opts a.is-active { color: var(--red); border-color: var(--red); background: var(--red-soft); font-weight: 800; }
.filter-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 17px; }
@media (max-width: 760px) {
  .filters { padding: 14px 12px; gap: 12px; }
  .filter-group { grid-template-columns: 1fr; gap: 8px; }
  .filter-label { padding-top: 0; }
  .chips-wrap .chip { padding: 7px 13px; font-size: 15px; }
  .brand-box { font-size: 14px; }
  .brand-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-box.is-mobile-extra { display: none; }
  .brand-boxes.is-open .brand-box.is-mobile-extra { display: flex; }
  .fdrop { position: static; }
  .filter-row { position: relative; }
  .fdrop-panel { left: 0; right: 0; width: auto; }
  .fdrop-opts { grid-template-columns: 1fr; }
}

/* ---------- Trang Cộng tác viên ---------- */
.aff-hero { position: relative; overflow: hidden; padding: 40px 0 92px; background: linear-gradient(180deg, var(--red-soft), #fff); }
.aff-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; }
.aff-hero h1 { font-weight: 400; }
.aff-hero h1 b { font-weight: 800; color: var(--red); }
.aff-hero .lead { max-width: 620px; margin: 0 0 22px; }
.aff-hero .lead strong { color: var(--ink); }
.aff-hero .rank-math-breadcrumb { margin-bottom: 14px; }
.aff-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.aff-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 20px 0 0; font-weight: 700; color: var(--ink); font-size: 16px; }
.aff-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.aff-ticks .ico { width: 20px; height: 20px; color: var(--ok); }
.aff-demo { display: grid; place-items: center; }
.aff-demo-phone { width: 100%; max-width: 330px; padding: 22px 20px 18px; border-radius: 34px; background: #111a3a; background-image: linear-gradient(160deg, #1b2a5c, #0b1128); color: #fff; box-shadow: 0 24px 60px rgba(17, 26, 58, .35); border: 8px solid #273566; }
.aff-demo-cap { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8d9ac7; }
.aff-demo-title { margin: 2px 0 14px; font-size: 21px; font-weight: 800; }
.aff-demo-phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aff-demo-phone li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.aff-demo-phone li b { flex: none; color: #ffb547; font-size: 14px; }
.aff-demo-foot { margin: 14px 0 0; padding: 10px; border-radius: 12px; background: #f7931e; color: #1b1206; font-weight: 800; text-align: center; font-size: 15px; }
.aff-steps { margin-top: -40px; }
.aff-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aff-perk { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.aff-perk-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.aff-perk-ico .ico { width: 26px; height: 26px; }
.aff-perk h3 { font-size: 19px; margin: 0 0 6px; }
.aff-perk p { margin: 0; color: var(--muted); font-size: 16px; }
.aff-join { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.aff-join-text h2 { font-size: clamp(26px, 3vw, 34px); }
.aff-brands-cap { margin: 22px 0 10px; color: var(--muted); }
.aff-brands-cap strong { color: var(--ink); }
.aff-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.aff-brand { aspect-ratio: 1; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.aff-brand img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.aff-brand .brand-letter { width: 100%; height: 100%; font-size: 18px; border-radius: 10px; }
.aff-help { margin: 22px 0 0; font-size: 16px; color: var(--muted); }
.aff-help a { font-weight: 700; }
.aff-join-form .mks-aff-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.aff-dash-link { margin: 14px 0 0; }
.aff-faq details { margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.aff-faq summary { padding: 16px 48px 16px 18px; position: relative; font-weight: 700; color: var(--ink); cursor: pointer; font-size: 17px; list-style: none; }
.aff-faq summary::-webkit-details-marker { display: none; }
.aff-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--red); font-weight: 400; }
.aff-faq details[open] summary::after { content: "–"; }
.aff-faq details > :not(summary) { margin: 0; padding: 0 18px 14px; color: var(--text); font-size: 16px; }
.aff-faq details ol, .aff-faq details ul { padding-left: 38px; }
.aff-cta-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; padding: 20px 22px; border-radius: var(--radius); background: var(--red-soft); }
.aff-cta-end p { margin: 0 auto 0 0; font-weight: 800; color: var(--ink); font-size: 18px; }
@media (max-width: 1000px) {
  .aff-hero-grid, .aff-join { grid-template-columns: 1fr; }
  .aff-demo { display: none; }
  .aff-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .aff-hero { padding: 28px 0 80px; }
  .aff-hero-cta .btn { flex: 1 1 100%; }
  .aff-perks { grid-template-columns: 1fr; }
  .aff-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aff-cta-end .btn { flex: 1 1 100%; }
}

/* ---------- Trang "Đặt hàng thành công" (woocommerce/checkout/thankyou.php) ---------- */
.ty { max-width: 880px; margin: 0 auto; display: grid; gap: 22px; }
.ty-status { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; }
.ty-status-ico { flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.ty-status-ico .ico { width: 32px; height: 32px; }
.ty-status.is-ok { border-color: #bfe5cf; background: #f1fbf5; }
.ty-status.is-ok .ty-status-ico { background: var(--ok); color: #fff; }
.ty-status.is-wait { border-color: var(--red-line); background: var(--red-soft); }
.ty-status.is-wait .ty-status-ico { background: var(--red); color: #fff; }
.ty-status.is-bad { border-color: var(--red-line); }
.ty-status.is-bad .ty-status-ico { background: var(--ink); color: #fff; }
.ty-title { font-size: clamp(24px, 3vw, 30px); margin: 4px 0 8px; }
.ty-lead { font-size: 19px; line-height: 1.6; margin: 0; color: var(--text); }
.ty-status .btn { margin-top: 16px; }

.ty-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ty-facts > div { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.ty-facts > div:last-child { border-right: 0; }
.ty-facts dt { font-size: 15px; color: var(--muted); }
.ty-facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ty-facts .is-total { background: var(--red-soft); }
.ty-facts .is-total dd { color: var(--red); font-size: 22px; font-weight: 800; }

.ty-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ty-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--soft); color: var(--muted); font-size: 16px; line-height: 1.45; }
.ty-steps strong { display: block; color: var(--ink); font-size: 18px; }
.ty-step-n { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 800; }
.ty-step-n .ico { width: 20px; height: 20px; }
.ty-steps .is-now { background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.ty-steps .is-now .ty-step-n { background: var(--red); border-color: var(--red); color: #fff; }
.ty-steps .is-done .ty-step-n { background: var(--ok); border-color: var(--ok); color: #fff; }

.ty-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ty .ty-card-title, .ty .ty-title { margin-top: 0; }
.ty-card-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 16px; }
.ty ins { text-decoration: none; }
.ty-card-title .ico { color: var(--red); }
.ty-pay { border: 2px solid var(--red); box-shadow: var(--shadow); }
.ty-pay img { margin-left: auto; margin-right: auto; }
/* Khung chuyển khoản của plugin SePay: bỏ viền xanh và tiêu đề trùng, chữ to hơn */
.ty .ty-pay .woocommerce-sepay-bank-details { border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; background: none !important; }
.ty .ty-pay .box-title { display: none; }
.ty .ty-pay .qr-title, .ty .ty-pay .manual-title { font-size: 17px; color: var(--ink); }
.ty .ty-pay .bank-info { border-color: var(--line) !important; border-radius: var(--radius-sm); }
.ty .ty-pay .bank-info-row, .ty .ty-pay .bank-info-row * { font-size: 17px !important; }
/* Nút chép của SePay chỉ là icon 15px → thành nút "Chép" to, cùng hàng với số */
.ty .ty-pay .bank-info-value { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ty .ty-pay a[id^="sepay_copy_"] {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px !important;
  border: 1.5px solid var(--red) !important; border-radius: 999px; background: #fff !important;
  color: var(--red) !important; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.ty .ty-pay a[id^="sepay_copy_"]::after { content: "Chép"; }
.ty .ty-pay a[id^="sepay_copy_"] svg { width: 18px; height: 18px; }
.ty .ty-pay a[id^="sepay_copy_"] svg path { fill: currentColor; }
.ty .ty-pay .note { font-size: 16px; border-radius: var(--radius-sm); }
.ty .ty-pay .sepay-pay-footer { font-size: 17px; font-weight: 700; color: var(--ink); }

.ty-list { list-style: none; margin: 0; padding: 0; }
.ty-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ty-item:first-child { padding-top: 0; }
.ty-item-img img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.ty-item-name { display: block; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ty-item-qty { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }
.ty .ty-item-meta { list-style: none; margin: 8px 0 0; padding: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ty-item-meta li { margin: 2px 0; overflow-wrap: anywhere; }
.ty-item-meta span { color: var(--muted); }
.ty-item-price { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ty-totals { margin: 12px 0 0; }
.ty-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 17px; }
.ty-totals dt { color: var(--muted); }
.ty-totals dd { margin: 0; text-align: right; font-weight: 600; }
.ty-totals .is-total { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 20px; }
.ty-totals .is-total dt { color: var(--ink); font-weight: 800; }
.ty-totals .is-total dd { color: var(--red); font-weight: 800; font-size: 24px; }
.ty-totals small, .ty-totals .includes_tax { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }

.ty-kv { margin: 0; display: grid; gap: 10px; }
.ty-kv > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; font-size: 18px; }
.ty-kv dt { color: var(--muted); }
.ty-kv dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ty-note { margin: 16px 0 0; font-size: 16px; color: var(--muted); }

.ty-extra { display: grid; gap: 22px; }
.ty-extra > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.ty-extra .order-again { display: none; }

.ty-help { padding: 22px 24px; border-radius: var(--radius); background: var(--soft); text-align: center; }
.ty-help p { font-size: 18px; margin: 0 0 14px; }
.ty-help .contact-actions { justify-content: center; }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 760px) {
  .ty { gap: 16px; }
  .ty-status { padding: 20px; gap: 14px; }
  .ty-status-ico { width: 48px; height: 48px; }
  .ty-status-ico .ico { width: 26px; height: 26px; }
  .ty-lead { font-size: 17px; }
  .ty-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ty-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .ty-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .ty-steps { grid-template-columns: 1fr; }
  .ty-card { padding: 18px; }
  .ty-item { grid-template-columns: 56px minmax(0, 1fr); }
  .ty-item-img img { width: 56px; height: 56px; }
  .ty-item-price { grid-column: 2; }
  .ty-kv > div { grid-template-columns: 1fr; gap: 0; }
  .ty-actions .btn { width: 100%; }
}

/* =====================================================================
   Tài khoản của tôi (mẫu woocommerce/myaccount/*)
   ===================================================================== */
.acc-nav { position: sticky; top: calc(var(--header-h) + 16px); }
.admin-bar .acc-nav { top: calc(var(--header-h) + 48px); }
.acc-nav-box { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc-nav-sum { display: none; }
.acc-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-nav-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.3; }
.acc-nav-list a .ico { flex: none; width: 22px; height: 22px; color: var(--muted); }
.acc-nav-list a:hover { background: var(--soft); color: var(--red); }
.acc-nav-list a:hover .ico { color: var(--red); }
.acc-nav-list .is-active a { background: var(--red); color: #fff; }
.acc-nav-list .is-active a .ico { color: #fff; }
.acc-nav-list .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.acc-nav-list .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); }

/* Trang tài khoản nằm trong .entry-content: bỏ thụt lề danh sách, khoảng cách tiêu đề kiểu bài viết */
.entry-content .acc h2, .entry-content .acc-auth h2, .entry-content .acc-auth-one h2, .entry-content .acc-view h2 { margin-top: 0; }
.entry-content .acc-card-title { font-size: 22px; }
.entry-content .acc-hello-title { font-size: 28px; }
.entry-content .acc-auth-title { font-size: 26px; }
.entry-content .acc ul, .entry-content .acc-nav ul { padding-left: 0; }
.entry-content .acc li + li, .entry-content .acc-nav li + li { margin-top: 0; }
.entry-content .acc .acc-tips { padding-left: 20px; }
.entry-content .acc-view .acc-timeline { padding-left: 20px; }
.entry-content details.acc-nav-box { margin: 0; padding: 8px; }
.entry-content details.acc-pass-box { margin: 0; padding: 0; border: 0; background: none; }
.acc { display: grid; gap: 20px; }
.acc a, .acc-nav a, .acc-auth a, .acc-auth-one a, .acc-view a.btn, .acc-auth-help a { text-decoration: none; }
.acc-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.acc-card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 22px; }
.acc-card-head .acc-card-title { margin: 0; }
.acc-card-title .ico { flex: none; color: var(--red); }
.acc-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; }
.acc-more .ico { width: 18px; height: 18px; }
.acc-lead, .acc-empty { margin: 0; color: var(--muted); }
.acc-hint { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.acc-help p { margin: 0 0 14px; }

/* Lời chào + nhắc thanh toán */
.acc-hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; border: 1px solid var(--red-line); border-radius: var(--radius); background: linear-gradient(135deg, var(--red-soft), #fff 70%); }
.acc-hello-title { margin: 0 0 4px; font-size: 28px; }
.acc-hello-sub { margin: 0; color: var(--muted); }
.acc-logout { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; }
.acc-logout .ico { width: 20px; height: 20px; }
.acc-alert { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 2px solid var(--red); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.acc-alert-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); }
.acc-alert-main { flex: 1 1 220px; display: grid; gap: 2px; }
.acc-alert-main strong { font-size: 19px; color: var(--ink); }
.acc-alert-main span { color: var(--muted); }

/* Ô các mục ở Tổng quan */
.acc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acc-tile { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 88px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.acc-tile:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--text); }
.acc-tile-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); }
.acc-tile-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.acc-tile-text strong { font-size: 18px; color: var(--ink); line-height: 1.3; }
.acc-tile-text small { font-size: 15px; line-height: 1.4; color: var(--muted); }
.acc-tile-go { flex: none; color: var(--muted); }

/* Đơn gần đây */
.acc-mini-orders { list-style: none; margin: 0; padding: 0; }
.acc-mini-orders li + li { border-top: 1px solid var(--line); }
.acc-mini-orders a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--text); }
.acc-mini-orders a:hover .acc-mini-main strong { color: var(--red); }
.acc-mini-main { display: grid; min-width: 0; }
.acc-mini-main strong { color: var(--ink); }
.acc-mini-name { overflow: hidden; font-size: 16px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.acc-mini-side { flex: none; display: grid; justify-items: end; gap: 4px; }
.acc-mini-total { font-weight: 700; color: var(--ink); }

/* Nhãn trạng thái đơn */
.acc-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.acc-badge.is-wait { background: #fff4e0; color: #8a5300; }
.acc-badge.is-run { background: #e8f0fe; color: #1f4fa0; }
.acc-badge.is-ok { background: #e7f6ee; color: var(--ok); }
.acc-badge.is-bad { background: var(--red-soft); color: var(--red-dark); }
.acc-badge.is-off { background: var(--soft); color: var(--muted); }

/* Danh sách đơn */
.acc-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.acc-order { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc-order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-order-no { font-size: 20px; font-weight: 800; color: var(--ink); }
.acc-order-items { margin: 8px 0 12px; }
.acc-order-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 16px; }
.acc-order-facts dt { font-size: 15px; color: var(--muted); }
.acc-order-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.acc-order-facts .acc-order-total { font-size: 19px; color: var(--red); }
.acc-order .acc-order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-order-actions .btn { min-height: 52px; padding: 10px 22px; font-size: 17px; }
.acc ins { text-decoration: none; }
.acc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.acc-pager-now { color: var(--muted); }
.acc-empty-card { display: grid; justify-items: center; gap: 10px; text-align: center; }
.acc-empty-card .acc-card-title { margin: 0; }
.acc-empty-card p { margin: 0; color: var(--muted); }
.acc-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--muted); }

/* Chi tiết đơn (dùng chung khung .ty với trang Đặt hàng thành công) */
.acc-view { max-width: none; }
.ty-status.is-off { background: var(--soft); }
.acc-timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--red-line); display: grid; gap: 16px; }
.acc-timeline li { position: relative; }
.acc-timeline li::before { content: ""; position: absolute; left: -29px; top: 5px; width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: var(--red); }
.acc-timeline time { font-size: 15px; color: var(--muted); }
.acc-timeline-text p { margin: 2px 0 0; }

/* Form */
.acc-form { display: grid; gap: 20px; }
.acc-form .form-row, .acc-auth .form-row, .acc-auth-one .form-row { margin: 0 0 16px; padding: 0; }
.acc-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.acc-pass { position: relative; display: block; }
.acc-pass .password-input { display: block; }
.acc-pass .show-password-input { display: none !important; } /* nút con mắt nhỏ của Woo — đã có nút Hiện/Ẩn to */
.acc-pass input { padding-right: 104px !important; }
.acc-pass-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--soft); color: var(--text); font-size: 16px; font-weight: 600; }
.acc-pass-toggle:hover { background: var(--red-soft); color: var(--red); }
.acc-pass-toggle .ico { width: 20px; height: 20px; }
.acc-pass-box > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 22px; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.acc-pass-box > summary::-webkit-details-marker { display: none; }
.acc-pass-box > summary .ico { color: var(--red); }
.acc-pass-box .acc-pass-caret { margin-left: auto; color: var(--muted); transition: transform .2s; }
.acc-pass-box[open] .acc-pass-caret { transform: rotate(180deg); }
.acc-pass-box[open] > summary { margin-bottom: 4px; }
.acc-pass-box .acc-hint { margin: 0 0 14px; }

/* Đăng nhập / đăng ký / quên mật khẩu */
.acc-auth { display: grid; gap: 24px; align-items: start; }
.acc-auth.has-register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc-auth-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.acc-auth-card.is-register { background: var(--soft); box-shadow: none; }
.woocommerce .acc-auth form.login, .woocommerce .acc-auth form.register { margin: 0; padding: 0; border: 0; border-radius: 0; } /* bỏ khung viền mặc định của Woo */
.acc-auth-one { max-width: 560px; margin: 0 auto; }
.acc-auth-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 26px; }
.acc-auth-title .ico { flex: none; color: var(--red); }
.acc-auth-sub { margin: 0 0 20px; color: var(--muted); }
.acc-auth-row { display: flex !important; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.acc-check { display: inline-flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 600 !important; cursor: pointer; }
.acc-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--red); }
.acc-auth-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.acc-auth-note { color: var(--muted); }
.acc-auth-help { margin: 20px 0 0; text-align: center; color: var(--muted); }
.acc-auth-help a { font-weight: 800; }
.acc-auth-back { margin: 18px 0 0; text-align: center; }
.acc-auth-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.acc-done-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.acc-tips { display: grid; gap: 8px; margin: 0; padding-left: 20px; }

/* Tải xuống */
.acc-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acc-file { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.acc-file-main { display: grid; }
.acc-file-main small { font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
  .woocommerce-account .woocommerce { gap: 16px; }
  .acc-nav { position: static; }
  .acc-nav.is-home { display: none; } /* Tổng quan đã có các ô to */
  .acc-nav-box, .entry-content details.acc-nav-box { padding: 0; }
  .acc-nav-sum { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 16px; font-size: 17px; cursor: pointer; list-style: none; }
  .acc-nav-sum::-webkit-details-marker { display: none; }
  .acc-nav-sum > .ico { flex: none; color: var(--red); }
  .acc-nav-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--red); white-space: nowrap; }
  .acc-nav-more .ico { width: 18px; height: 18px; transition: transform .2s; }
  .acc-nav-box[open] .acc-nav-more .ico { transform: rotate(180deg); }
  .acc-nav-list { padding: 0 8px 8px; }
  .acc-auth.has-register { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .acc-tiles { grid-template-columns: 1fr; gap: 10px; }
  .acc-tile { min-height: 76px; padding: 12px 14px; }
  .acc-card, .acc-auth-card { padding: 18px; }
  .acc-hello { padding: 18px; }
  .acc-hello-title, .entry-content .acc-hello-title { font-size: 24px; }
  .acc-logout { min-height: 44px; }
  .acc-order { padding: 16px; }
  .acc-order-actions .btn, .acc-alert .btn, .acc-form-actions .btn, .acc-pager .btn { flex: 1 1 100%; width: 100%; }
  .acc-mini-name { white-space: normal; }
}

/* ---------- Trang Bảng giá ---------- */
.price-hero .lead { max-width: 640px; margin: 10px auto 0; font-size: 19px; }
.price-page { padding-top: 26px; padding-bottom: 56px; }
.price-tools { padding: 4px 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.price-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto 12px; padding: 0 18px; min-height: 56px; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.price-search:focus-within { border-color: var(--red); }
.price-search svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--muted); }
.price-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); padding: 12px 0; }
.price-chips { flex-wrap: wrap; justify-content: center; overflow: visible; margin-bottom: 10px; }
.price-empty { text-align: center; font-size: 18px; padding: 28px 0; }
.price-group { padding-top: 30px; scroll-margin-top: calc(var(--header-h) + 8px); }
.price-group h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--red); }
.price-group h2 small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-list { display: grid; gap: 12px; }
.price-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.price-item:hover { border-color: var(--red-line); box-shadow: var(--shadow); }
.price-thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--soft); font-weight: 800; font-size: 26px; color: var(--red); }
.price-thumb img { width: 100%; height: 100%; object-fit: cover; }
.price-main h3 { font-size: 20px; margin: 2px 0 6px; }
.price-main h3 a { color: var(--ink); }
.price-main h3 a:hover { color: var(--red); }
.price-flash { display: inline-block; vertical-align: middle; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.price-packs { list-style: none; margin: 0; padding: 0; }
.price-packs a { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; color: var(--text); text-decoration: none; border-top: 1px dashed var(--line); }
.price-packs li:first-child a { border-top: 0; }
.price-packs a:hover .pk-name { color: var(--red); }
.pk-name { font-size: 18px; }
.pk-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #c9ccd6; transform: translateY(-5px); }
.pk-price { white-space: nowrap; text-align: right; }
.pk-price strong { font-size: 20px; font-weight: 800; color: var(--red); }
.pk-price del { color: var(--muted); font-size: 15px; }
.pk-price em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 2px 8px; margin-left: 4px; }
.price-packs .is-out .pk-name { color: var(--muted); }
.price-buy { min-height: 48px; padding: 0 26px; margin-top: 4px; }
.price-out { margin-top: 12px; color: var(--muted); }
.price-out summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 6px 0; }
.price-out p { margin: 6px 0 0; font-size: 16px; line-height: 1.9; }
.price-out a { color: var(--muted); }
.price-help { margin-top: 44px; padding: 28px; text-align: center; background: var(--red-soft); border-color: var(--red-line); }
.price-help p { max-width: 620px; margin: 0 auto 18px; }
.price-help .contact-actions { justify-content: center; }
.price-note { margin-top: 32px; }
@media (max-width: 600px) {
  /* Điện thoại: gọn để xem giá nhanh; bấm tên sản phẩm hoặc dòng giá để vào mua (bỏ nút "Mua") */
  .price-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .price-list { gap: 8px; }
  .price-item { grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 12px; }
  .price-thumb { width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
  .price-main h3 { font-size: 17px; line-height: 1.3; margin: 0 0 2px; }
  .price-buy { display: none; }
  .price-packs a { padding: 6px 0; }
  .pk-name { font-size: 16px; }
  .pk-price strong { font-size: 17px; }
  .pk-price del { font-size: 14px; }
  .price-group { padding-top: 22px; }
  .price-group h2 { margin-bottom: 10px; }
}
@media print {
  .site-header, .site-footer, .price-tools, .price-help, .price-buy, .price-thumb, .fab { display: none !important; }
  .price-item { grid-template-columns: 1fr; break-inside: avoid; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 8px 0; }
}

/* Gói tạm hết: nút gói mờ + gạch, có chữ "Tạm hết" */
.variation-pills button:disabled { opacity: .55; text-decoration: line-through; cursor: not-allowed; }
.variation-pills button:disabled .pill-out { text-decoration: none; display: inline-block; margin-left: 6px; font-size: .8em; font-weight: 700; }

/* Bảng giá: dòng bị lọc thì ẩn hẳn */
.price-item[hidden], .price-group[hidden], .price-out[hidden], .price-out li[hidden] { display: none !important; }
.price-out ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.price-out li a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 16px; }
.price-out li a:hover { border-color: var(--red); color: var(--red); }
.price-out summary { min-height: 44px; display: flex; align-items: center; }
/* Giỏ hàng trên điện thoại: bảng tổng không lặp nhãn */
@media (max-width: 760px) {
  .woocommerce .cart_totals table.shop_table_responsive tr td::before { display: none; }
  .woocommerce .cart_totals table.shop_table_responsive tr td { text-align: right; }
}
/* Trang sản phẩm: bỏ link "Xóa" chọn gói (bấm lại nút gói là bỏ chọn) */
.reset_variations { display: none !important; }
/* Breadcrumb dễ bấm hơn */
.rank-math-breadcrumb a, .woocommerce-breadcrumb a { display: inline-block; padding: 6px 2px; }
.footer-contact .ico { flex-shrink: 0; }
.footer-contact li > .ico + span { flex: 1 1 0; min-width: 0; }

/* ===== Sửa sau đợt kiểm tra 05/12 ===== */
/* Khối mã/câu lệnh trong bài viết: xuống dòng, không đẩy trang tràn ngang */
.entry-content pre, .entry-content code, pre { max-width: 100%; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
/* Bảng giá: "Xem 3 sản phẩm đang tạm hết hàng" có khoảng cách và mũi tên mở */
.price-out summary { gap: .35em; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.price-out summary::-webkit-details-marker { display: none; }
.price-out summary::before { content: "▸"; color: var(--red); transition: transform .2s; }
.price-out[open] summary::before { transform: rotate(90deg); }
/* Chọn gói: dòng báo ngay trên trang (thay hộp alert) */
.var-note { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); font-weight: 600; font-size: 16px; line-height: 1.45; }
/* Sản phẩm một gói: ô số lượng và nút Thêm vào giỏ thẳng hàng (clearfix của Woo thành ô flex thừa) */
form.cart::before, form.cart::after, .woocommerce-variation-add-to-cart::before, .woocommerce-variation-add-to-cart::after { display: none !important; }
/* Chữ nhỏ quá với khách lớn tuổi */
.header-phone span { font-size: 14px; }
.card-cat { font-size: 14px; }
.variation-pills button:disabled .pill-out { font-size: 14px; }
/* Logo thương hiệu: logo nhỏ phóng vừa ô, logo to không tràn */
.brand-logo { overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
/* Nút nổi "Liên hệ" không che link "Lên đầu trang" */
.footer-bottom { padding-right: 190px; }
@media (max-width: 760px) { .footer-bottom { padding-right: 0; padding-bottom: 150px; } }
/* Form đánh giá: ô tích to, chữ nằm cùng dòng */
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 22px; accent-color: var(--red); }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 500; }
/* Giỏ hàng trống: thân thiện, nút to */
.woocommerce-cart .cart-empty.woocommerce-info { padding: 28px 24px 28px 64px !important; font-size: 18px; font-weight: 600; }
.woocommerce-cart .return-to-shop .button { min-height: 54px; padding: 14px 28px; font-size: 18px; }
/* Giỏ hàng: ô mã giảm giá cùng kiểu với trang thanh toán (nút đỏ đặc), không bóp méo trên điện thoại */
.woocommerce table.cart td.actions .coupon { display: flex; gap: 10px; flex-wrap: nowrap; }
.woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 auto; width: auto !important; min-width: 0; padding: 10px 14px !important; background: #fff; }
.woocommerce table.cart td.actions .coupon .button { background: var(--red); color: #fff !important; border-color: var(--red); }
.woocommerce table.cart td.actions .coupon .button:hover { background: var(--red-dark); border-color: var(--red-dark); }
@media (max-width: 760px) {
  .woocommerce table.cart td.actions { display: flex !important; flex-direction: column; gap: 12px; }
  .woocommerce table.cart td.actions .coupon { float: none; width: 100%; }
  .woocommerce table.cart td.actions .coupon .button { flex: 0 0 auto; }
  .woocommerce table.cart td.actions > .button { float: none; width: 100%; height: auto; min-height: 48px; }
}

/* Hộp "tạm hết hàng" trên trang sản phẩm */
.product.outofstock .summary > .price, .product.outofstock .summary .mks-price-wrap { opacity: .55; }
.oos-box { margin: 18px 0; padding: 18px 20px; border: 2px solid var(--red); border-radius: 14px; background: var(--red-soft); font-size: 17px; }
.oos-box p { margin: 0 0 10px; }
.oos-title { font-size: 20px; font-weight: 700; color: var(--red-dark); }
.oos-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 6px; }
.oos-actions .btn { flex: 1 1 200px; justify-content: center; }
.oos-more { margin: 10px 0 0 !important; }
.oos-more a { font-weight: 600; }
/* Chưa có đánh giá: mks_review_summary đã có tiêu đề + câu mời, bỏ tiêu đề "Đánh giá" và câu trống thứ hai của Woo */
.no-reviews #reviews .woocommerce-Reviews-title, .no-reviews .woocommerce-noreviews { display: none; }

/* Sửa sau đợt kiểm tra điện thoại 05/12 */
.entry-content { overflow-wrap: anywhere; } /* link / chữ dài trong bài không làm trang rộng hơn màn hình */
.entry-content pre { overflow-x: auto; max-width: 100%; }
body.single-product { overflow-anchor: none; } /* Chrome Android: chọn gói làm hiện ghi chú, trang không bị kéo đi */
/* Ô tìm nằm trong khung viên thuốc: không vẽ thêm khung thứ hai bên trong */
.drawer-search input[type=search], .hero-search input[type=search], .price-search input[type=search] { border: 0; background: none; box-shadow: none; min-height: 0; padding: 0 6px; border-radius: 0; }
.site-footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-social a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
  .bottom-bar a, .bottom-bar button { padding: 0; font-size: 14px; white-space: nowrap; }
  .bb-cart { display: flex; }
  .steps-strip.wrap { width: auto; margin-left: 16px; margin-right: 16px; }
  form.cart .single_add_to_cart_button { white-space: nowrap; font-size: 16px; }
}
/* Số sao trên thẻ sản phẩm (chỉ hiện khi có đánh giá thật) */
.card-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text); text-decoration: none; }
.card-rating b { color: var(--ink); }
.card-rating span:last-child { color: var(--muted); }
.card-stars { position: relative; display: inline-block; color: #d9dce3; letter-spacing: 1px; font-size: 16px; line-height: 1; }
.card-stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--r, 0); overflow: hidden; white-space: nowrap; color: #f5a623; }
