/* Chuongchodep.com — giao diện mới
   Bảng màu: xanh than (mực in bản vẽ), xám inox, vàng cảnh báo xưởng cơ khí */
:root {
  /* Bảng màu thú cưng: hồng chủ đạo (thân thiện, đáng yêu) + mận đậm (chữ, chân trang, tạo sự tin cậy) + hồng phấn rất nhạt làm nền */
  --ink: #2b1b24;
  --ink-2: #4a3340;
  --brand: #d6336c;
  --brand-deep: #7a1d45;
  --mint: #fff0f5;
  --mint-2: #ffe1ec;
  --steel-50: #fcf8fa;
  --steel-100: #f6edf1;
  --steel-200: #eddde4;
  --steel-400: #b39ba7;
  --steel-600: #73606a;
  --signal: #e64980;
  --signal-deep: #c2255c;
  --signal-ink: #fff;
  --star: #f5a524;
  --call: #1f8a4c;
  --zalo: #0068ff;
  --sale: #e03131;
  --white: #fff;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow: 0 1px 2px rgba(122, 29, 69, .05), 0 8px 24px rgba(122, 29, 69, .07);
  --shadow-h: 0 2px 4px rgba(122, 29, 69, .06), 0 16px 34px rgba(214, 51, 108, .16);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 1.875rem;
  --step-4: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #f783ac; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--signal); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; }
.ic { width: 20px; height: 20px; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid transparent; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; background: var(--steel-100); color: var(--ink); }
.btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--signal-ink); }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--white); }
.btn-call { background: var(--call); color: var(--white); }
.btn-call:hover { color: var(--white); filter: brightness(1.08); }
.btn-zalo { background: var(--zalo); color: var(--white); }
.btn-zalo:hover { color: var(--white); filter: brightness(1.08); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Đầu trang ---------- */
.topbar { background: var(--brand-deep); color: #f3d9e4; font-size: var(--step--1); }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 18px; }
.topbar a { color: #f3d9e4; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.site-header { background: var(--white); border-bottom: 1px solid var(--steel-200); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 52px; height: 52px; border-radius: 12px; }
.logo-text strong { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; color: var(--brand-deep); letter-spacing: -.01em; }
.logo-text small { display: block; font-size: .75rem; color: var(--steel-600); font-weight: 500; }
.logo-footer { margin-bottom: 14px; }
.logo-footer img { background: var(--white); padding: 4px; }
.logo-footer .logo-text strong { color: var(--white); }
.logo-footer .logo-text small { color: #e8c4d4; }
.search { flex: 1; display: flex; max-width: 560px; border: 2px solid var(--steel-200); border-radius: var(--radius-s); overflow: hidden; background: var(--steel-50); }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; background: transparent; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--brand); color: var(--white); padding: 0 16px; cursor: pointer; }
.header-call { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 10px; border-radius: var(--radius-s); background: var(--steel-50); }
.header-call .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--call); color: var(--white); }
.header-call small { display: block; font-size: .75rem; color: var(--steel-600); }
.header-call strong { font-size: 1.125rem; letter-spacing: .01em; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--steel-100); }
.icon-btn .ic { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sale); color: var(--white); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.menu-toggle { display: none; }

.main-nav { background: var(--white); border-top: 1px solid var(--steel-100); }
/* header gọn khi cuộn xuống */
.site-header { transition: box-shadow .2s; }
.site-header.is-compact { box-shadow: 0 6px 18px rgba(122,29,69,.08); }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-compact .logo img { width: 42px; height: 42px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 13px 16px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.nav-list > li:first-child > a { padding-left: 0; }
.nav-list > li > a:hover, .nav-list > li:focus-within > a { color: var(--brand); }
.nav-list > li:nth-last-child(-n+2) { margin-left: auto; }
.nav-list > li:last-child { margin-left: 0; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.sub { position: absolute; left: 0; top: 100%; min-width: 260px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius-m); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(4px); transition: .15s; z-index: 50; }
.has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: none; }
.sub a { display: block; padding: 9px 14px; border-radius: var(--radius-s); text-decoration: none; }
.sub a:hover { background: var(--mint); color: var(--brand); }

.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(20, 33, 61, .5); }
.drawer-panel { width: min(340px, 88vw); height: 100%; overflow-y: auto; background: var(--white); padding: 12px 16px 40px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-label { margin: 18px 0 4px; font-size: var(--step--1); color: var(--steel-600); font-weight: 600; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--steel-100); }
.drawer-list ul { list-style: none; padding-left: 14px; margin: 0; }
.drawer-list ul a { font-weight: 400; }

/* ---------- Trang chủ: hero + bộ chọn cân nặng ---------- */
.hero { background: radial-gradient(ellipse 70% 90% at 85% 40%, #ffd6e5 0%, transparent 70%), var(--mint); border-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 40px; padding-bottom: 44px; align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 14px; text-wrap: balance; }
.hero-lead { color: var(--steel-600); max-width: 56ch; }
.picker { margin-top: 26px; }
.picker-q { font-size: var(--step-2); margin-bottom: 4px; }
.picker-hint { color: var(--steel-600); font-size: var(--step--1); margin-bottom: 14px; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Bảng tên inox: vân xước + 4 đinh tán ở góc — điểm nhấn duy nhất của giao diện */
.plate {
  position: relative; display: block; height: 100%; padding: 16px 18px 14px; text-decoration: none; border-radius: 4px;
  border: 1px solid #e3cdd8;
  background:
    radial-gradient(circle at 9px 9px, #c4a3b3 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) 9px, #c4a3b3 2.5px, transparent 3px),
    radial-gradient(circle at 9px calc(100% - 9px), #c4a3b3 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #c4a3b3 2.5px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 3px, rgba(122,29,69,.03) 3px 4px),
    linear-gradient(180deg, #ffffff, #f7e9ef);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(20,33,61,.08);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.plate strong { display: block; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.01em; }
.plate span { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--steel-600); }
.plate:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(214,51,108,.18); color: var(--ink); }
.plate:hover strong { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-h); }
.hero-media figcaption { position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 10px 14px; background: rgba(255,255,255,.94); color: var(--ink); font-size: var(--step--1); font-weight: 600; border-radius: var(--radius-s); width: fit-content; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.hero-media figcaption .ic { color: var(--brand); }

.usp { background: var(--white); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--steel-200); }
.usp-item { display: flex; gap: 12px; align-items: flex-start; }
.usp-item .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--mint); color: var(--brand); }
.usp-item strong { display: block; }
.usp-item span { font-size: var(--step--1); color: var(--steel-600); }

.section { padding: 40px 0; }
.section-alt { background: var(--mint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: var(--step-2); }
.section-head h2 a { text-decoration: none; }
.link-more { font-weight: 600; font-size: var(--step--1); white-space: nowrap; color: var(--brand); text-decoration: none; padding: 6px 14px; border: 1.5px solid var(--steel-200); border-radius: 999px; }
.link-more:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Ô danh mục ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { display: block; text-decoration: none; text-align: center; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow); background: var(--mint); transition: transform .2s, box-shadow .2s; }
.tile span { display: block; margin-top: 10px; }
.tile strong { display: block; font-size: .9375rem; line-height: 1.35; }
.tile small { color: var(--steel-600); }
.tile:hover img { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.tile:hover strong { color: var(--brand); }
.drawer-call { margin-top: 20px; }

/* ---------- Thẻ sản phẩm ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius-m); overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s; }
.pcard:hover { border-color: transparent; box-shadow: var(--shadow-h); transform: translateY(-2px); }
.pcard-img { position: relative; display: block; background: var(--steel-100); }
.pcard-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-img { overflow: hidden; }
.badge-sale { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--sale); color: var(--white); font-size: .8125rem; font-weight: 700; }
.pcard-img .badge-sale { position: absolute; top: 10px; left: 10px; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 14px 14px; }
.weight-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--mint); color: var(--brand); font-size: .75rem; font-weight: 700; }
.weight-tag .ic { width: 13px; height: 13px; }
.pcard-title { font-size: .9375rem; font-weight: 600; line-height: 1.4; margin: 0; }
.pcard-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a:hover { text-decoration: underline; }
.stars-sm { display: inline-flex; align-items: center; gap: 3px; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.stars-sm .ic { width: 15px; height: 15px; color: var(--star); }
.stars-sm small { color: var(--steel-600); font-weight: 400; }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price strong { display: block; font-size: 1.125rem; font-weight: 800; }
.price del { font-size: .8125rem; color: var(--steel-600); }
.btn-add { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--signal); color: var(--signal-ink); cursor: pointer; }
.btn-add:hover { background: var(--signal-deep); color: var(--signal-ink); }

/* ---------- Làm theo yêu cầu ---------- */
.custom-band { background: var(--brand-deep); color: var(--white); padding: 56px 0; position: relative; overflow: hidden; }
.custom-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 2px, transparent 2.5px); background-size: 26px 26px; pointer-events: none; }
.custom-band .container { position: relative; }
.custom-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.custom-band h2 { color: var(--white); }
.custom-band p { color: #f3d9e4; max-width: 58ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .ic { color: #ffa8c5; }
.card-form { display: grid; gap: 12px; padding: 22px; background: var(--white); color: var(--ink); border-radius: var(--radius-m); box-shadow: var(--shadow); border: 1px solid var(--steel-200); }
.card-form h2, .card-form h3 { margin: 0 0 4px; font-size: var(--step-1); }
.card-form label, .stack-form label { display: grid; gap: 4px; font-size: var(--step--1); font-weight: 600; }
input:not([type=radio]):not([type=checkbox]):not([type=hidden]), textarea, select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--steel-200); border-radius: var(--radius-s); background: var(--white); font-weight: 400; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(214, 51, 108, .2); }
.field-error { border-color: var(--sale) !important; }
.form-msg { margin: 0; font-size: var(--step--1); min-height: 1em; }
.form-msg.is-error { color: var(--sale); }
.form-msg.is-ok { color: var(--call); font-weight: 600; }
.stack-form { display: grid; gap: 12px; margin-top: 12px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { margin: 0; padding: 18px; border: 1px solid var(--steel-200); border-radius: var(--radius-m); }
.review-card blockquote { margin: 8px 0 12px; }
.review-card figcaption { font-size: var(--step--1); color: var(--steel-600); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .ic { width: 17px; height: 17px; }

.blog-home { display: grid; grid-template-columns: 1fr 320px; gap: 36px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post-grid-3 { grid-template-columns: repeat(3, 1fr); }
.post-grid-4 { grid-template-columns: repeat(4, 1fr); }
.post-card { background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.post-card-img img { width: 100%; aspect-ratio: 37 / 25; object-fit: cover; background: var(--steel-100); }
.post-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { font-size: var(--step--1); color: var(--steel-600); margin-bottom: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--steel-600); margin-top: auto; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .ic { width: 15px; height: 15px; }
.popular h2 { font-size: var(--step-1); padding-bottom: 8px; }
.popular ol { margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.popular li { counter-increment: pop; display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; border-bottom: 1px solid var(--steel-200); }
.popular li::before { content: counter(pop); grid-row: span 2; font-size: 1.5rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.popular a { font-weight: 600; text-decoration: none; line-height: 1.4; }
.popular a:hover { text-decoration: underline; }
.popular small { color: var(--steel-600); }

/* ---------- Danh mục ---------- */
.breadcrumb { padding: 14px 0 6px; font-size: var(--step--1); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--steel-400); }
.breadcrumb a { color: var(--steel-600); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-head { padding: 6px 0 14px; }
.page-head h1 { font-size: var(--step-3); margin: 0; }
.page-head h1 small { font-size: .55em; color: var(--steel-600); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--steel-200); border-radius: 999px; text-decoration: none; font-size: var(--step--1); font-weight: 600; background: var(--white); white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--white); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--mint); border-radius: var(--radius-m); margin-bottom: 10px; scroll-margin-top: 140px; }
.filter-weight { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolbar-label, .sort label { font-size: var(--step--1); font-weight: 700; margin-right: 4px; }
.sort { display: flex; align-items: center; gap: 6px; }
.sort select { width: auto; padding: 7px 10px; }
.result-count { font-size: var(--step--1); color: var(--steel-600); }
.empty { padding: 32px 20px; text-align: center; background: var(--mint); border-radius: var(--radius-m); }
.empty .btn { margin: 4px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--steel-200); border-radius: var(--radius-s); text-decoration: none; font-weight: 600; }
.pagination [aria-current] { background: var(--brand); color: var(--white); border-color: var(--brand); }
.pagination .gap { border: 0; }
.cat-desc { margin: 30px 0 10px; padding: 24px; border: 1px solid var(--steel-200); border-radius: var(--radius-m); position: relative; }
.cat-desc.is-collapsed { max-height: 360px; overflow: hidden; }
.cat-desc.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.expand-btn { display: block; margin: -10px auto 30px; position: relative; z-index: 1; }

/* ---------- Trang sản phẩm ---------- */
.product-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; margin-bottom: 36px; }
.gallery { position: sticky; top: 96px; align-self: start; }
.gallery-main { position: relative; background: var(--steel-100); border-radius: var(--radius-m); overflow: hidden; }
.gallery-slide { display: none; }
.gallery-slide.is-active { display: block; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--steel-50); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; background: none; }
.thumb.is-active { border-color: var(--brand); }
.thumb img { width: 76px; height: 57px; object-fit: cover; }
.buybox h1 { font-size: var(--step-3); }
.buybox-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: var(--step--1); color: var(--steel-600); margin-bottom: 14px; }
.stock-in { color: var(--call); font-weight: 600; }
.stock-out { color: var(--signal-deep); font-weight: 600; }
.buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--mint); border-radius: var(--radius-m); margin-bottom: 16px; }
.buy-price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-deep); }
.buy-price del { color: var(--steel-600); }
.spec-list { margin: 0 0 16px; border: 1px solid var(--steel-200); border-radius: var(--radius-m); }
.spec-list div { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 9px 14px; }
.spec-list div + div { border-top: 1px solid var(--steel-200); }
.spec-list dt { color: var(--steel-600); font-size: var(--step--1); }
.spec-list dd { margin: 0; font-weight: 700; }
.product-main { min-width: 0; }
.short-desc { margin-bottom: 32px; padding: 18px 20px 6px; background: var(--steel-50); border: 1px solid var(--steel-200); border-radius: var(--radius-m); }
.short-desc .block-title { font-size: var(--step-1); }
.short-desc table { margin-bottom: 12px; }
.buy-form { display: grid; gap: 12px; margin-bottom: 14px; }
.opt { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opt legend { font-weight: 700; font-size: var(--step--1); margin-bottom: 6px; }
.opt-pill input { position: absolute; opacity: 0; }
.opt-pill span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--steel-200); border-radius: var(--radius-s); cursor: pointer; font-weight: 600; font-size: var(--step--1); }
.opt-pill input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--white); }
.opt-pill input:focus-visible + span { outline: 3px solid var(--signal); }
.buy-row { display: flex; gap: 10px; }
.qty { display: flex; border: 1.5px solid var(--steel-200); border-radius: var(--radius-s); overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--steel-50); cursor: pointer; display: grid; place-items: center; }
.qty input { width: 48px !important; border: 0 !important; text-align: center; padding: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.quick-contact .btn { font-weight: 600; font-size: .9375rem; }
.quick-contact strong { font-weight: 800; }
.assure { list-style: none; margin: 0 0 14px; padding: 12px 14px; border: 1px dashed var(--steel-400); border-radius: var(--radius-m); display: grid; gap: 6px; font-size: var(--step--1); }
.assure li { display: flex; gap: 10px; align-items: center; }
.quote-box summary, .review-form-wrap summary { cursor: pointer; font-weight: 700; list-style: none; }
.quote-box summary { padding: 12px 14px; border-radius: var(--radius-m); background: var(--mint); color: var(--brand-deep); }
.quote-box summary::-webkit-details-marker, .review-form-wrap summary::-webkit-details-marker { display: none; }
.quote-box summary::before { content: "+"; display: inline-block; width: 20px; font-weight: 800; }
.quote-box[open] summary::before { content: "−"; }
.product-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; }
.product-body .reviews { margin-top: 36px; }
.product-aside { position: sticky; top: 96px; }
.mini-buy { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--steel-200); border-radius: var(--radius-m); background: var(--white); box-shadow: 0 8px 24px rgba(122,29,69,.07); }
.mini-buy-head { display: flex; gap: 12px; align-items: center; }
.mini-buy-head img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-s); background: var(--steel-50); flex: none; }
.mini-buy-head strong { display: block; font-size: .9375rem; line-height: 1.35; }
.mini-buy-head small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--steel-600); }
.mini-buy-price { margin: 4px 0 2px; font-size: 1.5rem; font-weight: 800; color: var(--brand-deep); letter-spacing: -.02em; }
.mini-buy-price del { font-size: .875rem; font-weight: 400; color: var(--steel-600); }
.mini-buy .btn { justify-content: center; }
.mini-assure { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--steel-600); }
.mini-assure li { display: flex; gap: 6px; align-items: center; }
.mini-assure .ic { width: 16px; height: 16px; color: var(--brand); }
.block-title { font-size: var(--step-2); padding-bottom: 10px; border-bottom: 1px solid var(--steel-200); margin: 0 0 16px; }
.rating-summary { display: flex; align-items: center; gap: 10px; }
.rating-summary strong { font-size: 2rem; }
.review { padding: 14px 0; border-bottom: 1px solid var(--steel-200); }
.review header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.review time { font-size: .8125rem; color: var(--steel-600); }
.review p { margin: 0; }
.review-reply { margin-top: 8px !important; padding: 10px 12px; background: var(--mint); border-left: 3px solid var(--signal); font-size: var(--step--1); }
.review-form-wrap { margin-top: 16px; }
.rate-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-input legend { font-size: var(--step--1); font-weight: 600; margin-bottom: 4px; }
.rate-input input { position: absolute; opacity: 0; }
.rate-input label { cursor: pointer; color: var(--steel-200); }
.rate-input label .ic { width: 28px; height: 28px; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--star); }
.sticky-buy { display: none; }

/* ---------- Nội dung bài viết ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 75ch; overflow-wrap: break-word; }
.prose td:first-child { min-width: 92px; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 .6em; scroll-margin-top: 140px; }
.prose h3 { font-size: var(--step-1); margin: 1.4em 0 .5em; scroll-margin-top: 140px; }
.prose img { border-radius: var(--radius-s); margin: 1.2em auto; height: auto; }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--signal); background: var(--mint); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { text-align: center; font-size: var(--step--1); color: var(--steel-600); }
.prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose td, .prose th { border: 1px solid var(--steel-200); padding: 8px 10px; vertical-align: top; }
.prose tr:nth-child(odd) td { background: var(--steel-50); }
.note-box { margin: 1.4em 0; border: 1.5px solid var(--brand); border-radius: var(--radius-m); overflow: hidden; }
.note-box-title { padding: 8px 16px; background: var(--brand); color: var(--white); font-weight: 700; }
.note-box-body { padding: 4px 16px; }
.content-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.content-gallery a { flex: 0 0 75%; scroll-snap-align: start; }
.content-gallery img { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.btn-cta { margin: .4em 0; text-decoration: none !important; color: #fff !important; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.article-head h1 { font-size: var(--step-4); max-width: 24ch; }
.article-cat { display: inline-block; margin-bottom: 8px; font-weight: 700; font-size: var(--step--1); color: var(--steel-600); }
.article-head .meta { margin-bottom: 22px; }
.toc { margin: 0 0 26px; padding: 16px 20px; background: var(--mint); border-radius: var(--radius-m); max-width: 75ch; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc .lv3 { margin-left: 16px; list-style: circle; font-size: .9375rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 34px 0; padding: 20px 22px; background: var(--brand-deep); color: var(--white); border-radius: var(--radius-m); max-width: 75ch; }
.article-cta > div { flex: 1 1 260px; }
.article-cta p { margin: 4px 0 0; color: #f3d9e4; font-size: var(--step--1); }
.article-side { position: sticky; top: 140px; }
.side-box { border: 1px solid var(--steel-200); border-radius: var(--radius-m); padding: 16px; }
.side-box h2 { font-size: var(--step-1); }
.mini-products { list-style: none; margin: 0; padding: 0; }
.mini-products a { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--steel-100); text-decoration: none; font-size: var(--step--1); line-height: 1.4; }
.mini-products img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; }
.mini-products strong { display: block; margin-top: 2px; }

/* ---------- Giỏ hàng ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; margin-bottom: 40px; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--steel-200); align-items: center; }
.cart-row img { width: 88px; height: 66px; object-fit: cover; border-radius: var(--radius-s); background: var(--steel-100); }
.cart-row a { font-weight: 600; text-decoration: none; line-height: 1.4; }
.cart-row small { display: block; color: var(--steel-600); }
.cart-row .qty { margin-top: 6px; width: fit-content; }
.cart-row .qty button { height: 34px; width: 34px; }
.cart-line-total { text-align: right; font-weight: 700; }
.cart-remove { display: block; margin: 6px 0 0 auto; border: 0; background: none; color: var(--steel-600); cursor: pointer; padding: 4px; }
.cart-total { display: flex; justify-content: space-between; font-size: var(--step-1); padding: 14px 0; }
.cart-total strong { font-size: var(--step-2); }
.cart-note, .pay-note { font-size: var(--step--1); color: var(--steel-600); }
.pay-note { display: flex; gap: 8px; margin: 0; }
.thanks { text-align: center; padding: 50px 16px; }
.thanks-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--call); color: var(--white); margin-bottom: 14px; }
.thanks-icon .ic { width: 38px; height: 38px; }
.order-table { margin: 20px auto; border-collapse: collapse; text-align: left; min-width: min(480px, 100%); }
.order-table td, .order-table th { padding: 8px 10px; border-bottom: 1px solid var(--steel-200); }
.order-table td:last-child, .order-table th:last-child { text-align: right; white-space: nowrap; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.contact-card p { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-card strong { display: block; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius-m); }
.search-lg { max-width: 620px; margin-top: 12px; }
.notfound-box { text-align: center; padding: 50px 0 10px; max-width: 640px; margin: 0 auto; }
.notfound-box .search { margin: 18px auto; }

/* ---------- Chân trang ---------- */
.site-footer { margin-top: 48px; background: var(--brand-deep); color: #f3d9e4; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 44px; padding-bottom: 30px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-about p { display: flex; gap: 10px; margin-bottom: 8px; }
.footer-about .ic { width: 18px; height: 18px; margin-top: 3px; color: #ffa8c5; }
.footer-title { color: var(--white); font-size: var(--step-0); margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-note { font-size: var(--step--1); }
.callback-form { display: grid; gap: 8px; }
.callback-form .form-msg { color: #f3d9e4; }
.callback-form .form-msg.is-ok { color: #ffc2d6; }
.fanpage { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: .8125rem; color: #e8c4d4; }

/* ---------- Nút liên hệ nổi ---------- */
.contact-dock { position: fixed; right: 16px; bottom: 20px; z-index: 60; display: grid; gap: 10px; }
.contact-dock a { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px 0 13px; border-radius: 25px; color: var(--white); text-decoration: none; font-weight: 700; box-shadow: 0 4px 14px rgba(20,33,61,.25); }
.contact-dock .ic { width: 24px; height: 24px; }
.dock-call { background: var(--call); }
.dock-zalo { background: var(--zalo); }
.dock-mess { background: var(--brand); }
@media (min-width: 900px) {
  .contact-dock a span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .2s; }
  .contact-dock a:hover span, .contact-dock a:focus-visible span { max-width: 120px; }
  .contact-dock a { padding: 0 13px; }
}

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 30, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 4px; }
.lightbox-close { position: absolute; top: 14px; right: 14px; color: var(--white); background: rgba(255,255,255,.12); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 95; padding: 12px 18px; border-radius: var(--radius-m); background: var(--brand-deep); color: var(--white); font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: #ffc2d6; }

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .header-call small { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-body, .article-layout { grid-template-columns: 1fr; }
  .product-aside { display: none; }
  .article-side { position: static; }
  .post-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 860px) {
  .topbar-links, .topbar-info span:last-child { display: none; }
  .header-inner { flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  .menu-toggle { display: inline-grid; }
  .logo { margin-right: auto; }
  .logo img { width: 40px; height: 40px; border-radius: 10px; }
  .logo-text strong { font-size: 1.0625rem; }
  .logo-text small { font-size: .6875rem; }
  .search { order: 5; flex: 1 1 100%; max-width: none; }
  .header-call { padding: 0; background: none; }
  .header-call span { display: none; }
  .header-call .ic { width: 40px; height: 40px; padding: 9px; }
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; padding-bottom: 28px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-lead { display: none; }
  .plates { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .plate { padding: 12px 14px; }
  .plate strong { font-size: 1.125rem; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .tile strong { font-size: .8125rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px; }
  .pcard-title { font-size: .875rem; }
  .price strong { font-size: 1rem; }
  .btn-add { width: 38px; height: 38px; }
  .custom-grid, .blog-home, .contact-grid, .cart-layout, .product-top { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; }
  .review-grid, .post-grid, .post-grid-3 { grid-template-columns: 1fr; }
  .post-grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 28px 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filter-weight { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .filter-weight .toolbar-label { white-space: nowrap; }
  .spec-list div { grid-template-columns: 130px 1fr; }
  .buy-price strong { font-size: 1.625rem; }
  .quick-contact { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--white); border-top: 1px solid var(--steel-200); box-shadow: 0 -4px 14px rgba(20,33,61,.08); transform: translateY(110%); transition: transform .2s; }
  .sticky-buy.is-shown { transform: none; }
  .sticky-buy small { display: block; font-size: .75rem; color: var(--steel-600); }
  .sticky-buy strong { font-size: 1.0625rem; }
  /* điện thoại: thanh liên hệ nằm ngang ở đáy màn hình */
  body { padding-bottom: 58px; }
  .contact-dock { left: 0; right: 0; bottom: 0; grid-template-columns: 1fr 1fr 1fr; gap: 0; background: var(--white); border-top: 1px solid var(--steel-200); }
  .contact-dock a { height: 58px; border-radius: 0; justify-content: center; box-shadow: none; padding: 0 6px; font-size: .9375rem; }
  /* trang sản phẩm: khi thanh mua hiện thì thay luôn thanh liên hệ */
  .sticky-buy { bottom: 0; gap: 8px; padding: 8px 12px; min-height: 58px; }
  .sticky-buy .sb-price { flex: 1; min-width: 0; }
  .sticky-buy .sb-price small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); }
  .sb-icon .ic { width: 20px; height: 20px; }
  .sb-call { background: var(--call); }
  .sb-zalo { background: var(--zalo); }
  .contact-dock { transition: transform .2s; }
  .buy-bar-on .contact-dock { transform: translateY(110%); }
  .footer-bottom { padding-bottom: 20px; }
  .site-header.is-compact .search { display: none; }
  .site-header.is-compact .logo img { width: 36px; height: 36px; }
  .buybox h1 { font-size: 1.375rem; line-height: 1.3; }
  .breadcrumb { font-size: .8125rem; }
  .product-page .breadcrumb li:last-child { display: none; }
  .product-page .breadcrumb li:nth-last-child(2)::after { content: none; }
  .product-page .breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .toast { bottom: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-head h1 { font-size: var(--step-3); }
  .prose { font-size: 1rem; }
}
@media (max-width: 380px) {
  .plates { grid-template-columns: 1fr; }
}
