/* Web shop. --accent = màu thương hiệu (Cài đặt → Doanh nghiệp), layout.ejs đặt lại khi có. */
:root {
  --accent: #2F5D3A;
  --accent-dark: color-mix(in srgb, var(--accent) 72%, #000); --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff); --accent-mid: color-mix(in srgb, var(--accent) 75%, #fff);
  --gold: #B45309; --gold-soft: #FDF3E1;
  --ink: #1C2A1F; --text: #3A463C; --muted: #56625A; --line: #E2E0D6; --bg: #F7F5EF; --card: #FFFFFF;
  --ok: #166534; --ok-bg: #EEF7EE;
  --radius: 14px; --wrap: 1240px;
  --serif: 'Noto Serif', Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button, [role="button"], label[for] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0F1A11; color: #fff; }

/* ───────── Header ───────── */
.topbar { background: var(--accent-dark); color: #DCE7D8; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; min-height: 38px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar nav { margin-left: auto; display: flex; gap: 22px; }
.topbar a { color: #EEF4EC; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.hdr { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.hdr-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 16px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.logo-mark .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-family: var(--serif); font-size: 23px; font-weight: 700; }
.logo-text small { font-size: 12.5px; color: var(--muted); }

.search { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.search-box { display: flex; align-items: center; height: 48px; border: 2px solid var(--accent); border-radius: 12px; padding: 0 4px 0 14px; gap: 10px; background: #fff; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input { flex: 1; border: 0; outline: none; font-size: 15px; min-width: 0; color: var(--ink); background: transparent; }
.search-box .btn { height: 38px; padding: 0 18px; }
.search-hot { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.search-hot a { color: var(--muted); }
.search-hot a:hover { color: var(--accent); text-decoration: underline; }

.hdr-actions { display: flex; align-items: center; gap: 6px; }
.hdr-act { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; color: var(--ink); min-height: 48px; position: relative; }
.hdr-act:hover { background: var(--bg); color: var(--ink); }
.hdr-act small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.hdr-act b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hdr-act .ico { width: 26px; height: 26px; }
.hdr-badge { position: absolute; top: 0; left: 20px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

.hdr-nav { border-top: 1px solid var(--line); position: relative; }
.hdr-nav > .wrap { display: flex; align-items: center; gap: 4px; height: 52px; }
.cat-btn { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; margin-right: 12px; background: var(--accent); color: #fff; border: 0; font-weight: 600; font-size: 15px; min-width: 240px; transition: background-color .15s; }
.cat-btn:hover { background: var(--accent-dark); }
.cat-btn .chev { margin-left: auto; transition: transform .15s; }
.cat-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-link { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px; color: var(--text); font-weight: 500; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav-link.on { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 2px 8px; border-radius: 10px; }
.nav-ely { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.nav-ely:hover { color: #fff; background: #0F1A11; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28,42,31,.14); }
.mega .wrap { display: grid; grid-template-columns: 240px 1fr 300px; gap: 28px; padding-bottom: 24px; }
.mega-cats { border-right: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; }
.mega-cats a { display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 0; color: var(--ink); font-weight: 500; }
.mega-cats a:hover, .mega-cats a.on { color: var(--accent); font-weight: 600; }
.mega-cats a span { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; }
.mega-main { padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.mega-main h3 { margin: 0; font-size: 17px; }
.mega-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.mini:hover { color: var(--accent); }
.mini .art { aspect-ratio: 1; border-radius: 10px; }
.mini b { font-size: 14px; color: var(--gold); }
.mega-promo { margin-top: 20px; border-radius: var(--radius); background: var(--accent-soft); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mega-promo strong { font-family: var(--serif); font-size: 18px; }

/* ───────── Hình minh hoạ thay ảnh thật ───────── */
.art { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.art svg { width: 62%; height: 62%; }
.art-1 { background: #E7EFE3; } .art-2 { background: #EEF0E2; } .art-3 { background: #F4ECDD; } .art-4 { background: #E3ECE6; } .art-5 { background: #F3E5DF; }

/* ───────── Thẻ, lưới sản phẩm ───────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-head h2 { margin: 0; font-size: 26px; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.grid-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.prod:hover { border-color: #C9D3C3; box-shadow: 0 6px 18px rgba(28,42,31,.08); }
.prod .art { aspect-ratio: 1; }
.tag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #fff; color: var(--gold); border: 1px solid #F1D9B5; }
.tag-new { color: var(--ok); border-color: #CDE5CD; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-name { color: var(--ink); font-weight: 600; }
.prod-name:hover { color: var(--accent); }
.prod-meta { font-size: 13px; color: var(--muted); }
.prod-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.prod-row b { font-size: 18px; color: var(--gold); }
.prod-row span { font-size: 13px; color: var(--muted); }
.prod .btn { margin-top: 10px; height: 42px; }

.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); background: #fff; transition: border-color .15s, background-color .15s; }
button.chip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Chọn quy cách: radio thật, nhìn như ô bấm */
.opts { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.opts legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; flex-direction: column; min-width: 112px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background-color .15s; }
.opt span b { font-size: 15px; }
.opt span small { font-size: 13px; color: var(--muted); }
.opt:hover span { border-color: var(--accent-mid); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.facts div { padding: 18px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts div:last-child { border-right: 0; }
.facts small { font-size: 13px; color: var(--muted); }
.facts b { font-size: 16px; }

/* ───────── Footer ───────── */
.ft { margin-top: 72px; background: #fff; border-top: 1px solid var(--line); }
.ft-promise { background: var(--accent-soft); }
.ft-promise .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.promise { display: flex; align-items: center; gap: 14px; }
.promise .ico { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.5; }
.promise b { display: block; font-size: 15px; }
.promise span { font-size: 13px; color: var(--muted); }

.ft-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 44px; padding-bottom: 40px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.ft-col h4 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.ft-col a { color: var(--text); }
.ft-col a:hover { color: var(--accent); text-decoration: underline; }
.ft-col a.btn-primary { color: #fff; text-decoration: none; }
.ft-about p { margin: 4px 0 6px; color: var(--muted); }
.ft-line { display: flex; gap: 10px; align-items: flex-start; }
.ft-line .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.ft-hotline { font-size: 21px; font-weight: 700; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zalo-box { border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.zalo-box b { color: var(--ink); }
.zalo-box .btn { height: 40px; align-self: flex-start; }

.ft-bottom { background: var(--accent-dark); color: #DCE7D8; font-size: 13px; }
.ft-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 18px; padding-bottom: 18px; padding-right: 160px; }
.ft-legal { display: flex; flex-direction: column; gap: 2px; }
.bct-logo { margin-left: auto; display: block; line-height: 0; }
.bct-logo img { height: 49px; width: auto; }
.bct { margin-left: auto; height: 48px; width: 130px; border: 1px dashed #9FB59A; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; line-height: 1.3; }

.ely-fab { position: fixed; right: 28px; bottom: 28px; z-index: 60; height: 56px; padding: 0 22px 0 18px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 600; box-shadow: 0 8px 24px rgba(28,42,31,.25); }
.ely-fab:hover { color: #fff; background: #0F1A11; }

/* ───────── Ảnh sản phẩm thật ───────── */
.thumb { display: block; position: relative; aspect-ratio: 1; background: #EEF0F3; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: auto; }
.prod .thumb img { transition: transform .25s; }
.prod:hover .thumb img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .prod:hover .thumb img { transform: none; } }
.hdr-act[hidden], .hdr-badge[hidden] { display: none; }
.shop-main { min-height: 50vh; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.prose { line-height: 1.7; color: var(--text); white-space: pre-line; }
.sr:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 14px; background: #fff; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
