/* DPSH Pharma — duocsh.com */
:root {
  --pri: #1d4f8f;        /* xanh navy logo */
  --pri-d: #132f5c;
  --pri-l: #eaf2fc;
  --gold: #3d9be0;       /* xanh kim cương */
  --gold-d: #2273b8;
  --gold-l: #e6f3fd;
  --ink: #16233a;
  --mute: #5a6880;
  --line: #e1e8f1;
  --bg: #f4f7fb;
  --white: #fff;
  --red: #c2410c;
  --r: 12px;
  --sh: 0 1px 2px rgba(16, 33, 64, .06), 0 6px 20px rgba(16, 33, 64, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .62em 1.15em; border-radius: 10px; border: 1.5px solid transparent; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s; line-height: 1.2; }
.btn-lg { padding: .85em 1.5em; font-size: 1rem; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pri); color: #fff; }
.btn-primary:hover { background: var(--pri-d); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #5cb6f2, var(--gold-d)); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost-dark { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--pri); color: var(--pri); }

/* topbar + header */
.topbar { background: var(--pri-d); color: #c9d9ef; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar a { color: #fff; }
.topbar-r { display: flex; gap: 18px; white-space: nowrap; }
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand img { width: 44px; height: auto; }
.brand b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--pri); letter-spacing: .01em; }
.brand small { display: block; font-size: .75rem; color: var(--gold-d); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.brand-light b { color: #fff; }
.search { flex: 1; display: flex; max-width: 560px; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.search:focus-within { border-color: var(--pri); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7em 1em; outline: 0; }
.search button { border: 0; background: var(--pri); color: #fff; padding: 0 16px; cursor: pointer; }
.hot { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hot > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); }
.hot small { display: block; font-size: .72rem; color: var(--mute); }
.hot b { display: block; color: var(--pri); font-size: 1.02rem; }
.orderbtn { position: relative; display: flex; align-items: center; gap: 8px; padding: .62em 1em; border-radius: 10px; background: var(--pri); color: #fff; font-weight: 600; }
.orderbtn:hover { background: var(--pri-d); color: #fff; }
.badge { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: #fff; font: 700 .72rem/21px inherit; text-align: center; font-style: normal; transform: scale(0); transition: .2s; }
.badge.show { transform: scale(1); }
.burger { display: none; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--pri); }
.burger .ic { width: 26px; height: 26px; }
.nav { border-top: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 12px 14px; color: var(--ink); font-weight: 500; font-size: .94rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--pri); }
.nav a.on { color: var(--pri); border-bottom-color: var(--gold); font-weight: 600; }
.nav .nav-cta { margin-left: auto; color: var(--gold-d); font-weight: 600; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2f6fbf 0, transparent 60%), linear-gradient(135deg, var(--pri-d), var(--pri)); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .82rem; font-weight: 500; color: #cfe8ff; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: #8fd3ff; }
.hero p { color: #d3e0f2; font-size: 1.06rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; }
.hero-stats b { display: block; font-size: 1.5rem; color: #8fd3ff; }
.hero-stats span { font-size: .85rem; color: #b6c9e4; }
.hero-media { position: relative; }
.hero-media > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.hero-card { position: absolute; left: -28px; bottom: -26px; width: 290px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.hc-head { font-weight: 700; font-size: .88rem; color: var(--pri); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.hc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .82rem; }
.hc-row img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: var(--bg); }
.hc-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-card .btn { margin-top: 8px; width: 100%; }

/* perks */
.perks { background: #fff; border-bottom: 1px solid var(--line); }
.perks-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--pri-l); color: var(--pri); }
.perk b { display: block; font-size: .96rem; }
.perk span { font-size: .84rem; color: var(--mute); line-height: 1.45; display: block; }

/* sections */
.sec { padding: 56px 0; }
.sec-tight { padding: 32px 0 56px; }
.sec-alt { background: var(--bg); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; position: relative; padding-left: 14px; }
.sec-head h2::before { content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: var(--gold); }
.sec-head a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center h2 { padding: 0; }
.sec-head.center h2::before { display: none; }
.sec-head.center p { color: var(--mute); margin: 6px 0 0; }

/* categories */
.cats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.cat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 16px; color: var(--ink); border: 1px solid var(--line); background: #fff; transition: .2s; min-height: 240px; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--sh); color: var(--ink); }
.cat h3 { font-size: 1.2rem; }
.cat p { color: var(--mute); font-size: .9rem; margin: 0 0 12px; }
.cat-n { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--pri); }
.cat-0 { background: linear-gradient(160deg, #fff 40%, var(--pri-l)); }
.cat-1 { background: linear-gradient(160deg, #fff 40%, var(--gold-l)); }
.cat-imgs { display: flex; gap: 10px; }
.cat-imgs img { width: 30%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.cat-cta { background: linear-gradient(150deg, var(--pri), var(--pri-d)); color: #fff; border: 0; }
.cat-cta:hover { color: #fff; }
.cat-cta p { color: #c9d9ef; }
.cat-cta .cat-n { color: #8fd3ff; }

/* product grid + card */
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: .2s; }
.pcard:hover { box-shadow: var(--sh); border-color: #cbd8e8; }
.pcard-img { display: block; aspect-ratio: 1; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: .3s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; color: #b3c2d6; }
.noimg .ic { width: 42%; height: 42%; }
.pcard-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; font-size: .74rem; }
.sku { color: var(--mute); font-weight: 500; }
.chip { padding: 2px 8px; border-radius: 20px; background: var(--gold-l); color: var(--gold-d); font-weight: 600; font-size: .72rem; }
.chip-soft { background: var(--pri-l); color: var(--pri); }
.pcard-name { font-size: .92rem; font-weight: 600; margin: 0; line-height: 1.35; min-height: 2.7em; }
.pcard-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a:hover { color: var(--pri); }
.pcard-price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.pcard-price small { font-size: .74rem; color: var(--mute); }
.pcard-price b { font-size: 1.12rem; color: var(--red); }
.pcard-buy { display: flex; gap: 6px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; flex: none; }
.qty button { width: 28px; border: 0; background: var(--bg); cursor: pointer; font-size: 1rem; color: var(--pri); }
.qty button:hover { background: var(--pri-l); }
.qty input { width: 38px; border: 0; text-align: center; padding: 6px 0; outline: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg button { width: 42px; font-size: 1.2rem; }
.qty-lg input { width: 56px; padding: 10px 0; }
.btn-add { flex: 1; padding: .5em .6em; background: var(--pri); color: #fff; font-size: .86rem; }
.btn-add:hover { background: var(--pri-d); color: #fff; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px 20px; }
.steps .ic { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--pri-l); color: var(--pri); margin-bottom: 12px; }
.step-n { position: absolute; top: 18px; right: 18px; font-size: 2rem; font-weight: 700; color: var(--gold-l); -webkit-text-stroke: 1px var(--gold); line-height: 1; }
.steps b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--mute); font-size: .9rem; }

/* band */
.band { background: linear-gradient(120deg, var(--pri-d), var(--pri)); color: #fff; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 44px; padding-bottom: 44px; }
.band h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.band p { margin: 0; color: #c9d9ef; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* page head */
.phead { background: linear-gradient(120deg, var(--pri-d), var(--pri)); color: #fff; padding: 28px 0 30px; }
.phead h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 4px; }
.phead p { margin: 0; color: #c9d9ef; max-width: 760px; }
.phead-sm { padding: 14px 0; }
.crumbs { font-size: .84rem; color: #a9bfdf; }
.crumbs a { color: #fff; }

/* shop */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.filters h3 { font-size: 1rem; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; font-size: .92rem; }
.fopt input { accent-color: var(--pri); }
.fopt i { margin-left: auto; font-style: normal; font-size: .78rem; background: var(--bg); padding: 0 8px; border-radius: 10px; color: var(--mute); }
.fnote { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--gold-l); font-size: .84rem; }
.fnote .ic { color: var(--gold-d); margin-top: 3px; }
.fnote p { margin: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tsearch { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.tsearch:focus-within { border-color: var(--pri); }
.tsearch .ic { color: var(--mute); }
.tsearch input { flex: 1; border: 0; outline: 0; padding: .62em 0; min-width: 0; }
.toolbar select { border: 1.5px solid var(--line); border-radius: 10px; padding: .6em .8em; background: #fff; }
.views { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.views button { border: 0; background: #fff; padding: 8px 11px; cursor: pointer; color: var(--mute); }
.views button.on { background: var(--pri); color: #fff; }
.count { color: var(--mute); font-size: .86rem; margin: 0 0 12px; }
.pgrid-shop { grid-template-columns: repeat(4, 1fr); }
.empty { padding: 30px; text-align: center; background: var(--bg); border-radius: var(--r); }
/* list (bảng giá) view */
.pgrid.as-list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.as-list .pcard { flex-direction: row; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.as-list .pcard:last-child { border-bottom: 0; }
.as-list .pcard:hover { box-shadow: none; background: #fafcff; }
.as-list .pcard-img { width: 64px; height: 64px; padding: 6px; border: 0; flex: none; }
.as-list .pcard-body { flex-direction: row; align-items: center; gap: 16px; padding: 8px 14px 8px 4px; }
.as-list .pcard-meta { order: 2; width: 200px; flex: none; flex-wrap: nowrap; justify-content: flex-start; }
.as-list .pcard-name { order: 1; flex: 1; min-height: 0; }
.as-list .pcard-price { order: 3; margin: 0; width: 120px; justify-content: flex-end; flex: none; }
.as-list .pcard-price small { display: none; }
.as-list .pcard-buy { order: 4; flex: none; }
.as-list .btn-add { flex: none; }

/* order page */
.order { display: grid; grid-template-columns: 1fr 370px; gap: 26px; align-items: start; }
.quickadd { background: var(--pri-l); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.quickadd label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 8px; }
.qa-row { display: flex; gap: 8px; }
.qa-row input { border: 1.5px solid var(--line); border-radius: 10px; padding: .6em .9em; background: #fff; outline: 0; }
.qa-row input:focus { border-color: var(--pri); }
#qa { flex: 1; min-width: 0; }
#qa-n { width: 76px; }
.otable-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.otable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.otable th { background: var(--bg); text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); padding: 10px 14px; }
.otable td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.otable .r { text-align: right; white-space: nowrap; }
.otable .c { text-align: center; }
.otable .sub { font-weight: 700; color: var(--red); }
.oprod { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.oprod img, .oimg { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); flex: none; background: var(--bg); }
.oprod b { display: block; font-weight: 600; line-height: 1.3; }
.oprod small { color: var(--mute); }
.odel { border: 0; background: none; color: var(--mute); cursor: pointer; font-size: 1rem; padding: 6px; }
.odel:hover { color: var(--red); }
.oempty { text-align: center; padding: 44px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); color: var(--mute); }
.oempty .ic { width: 44px; height: 44px; color: #b3c2d6; }
.card-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--sh); }
.order-side { position: sticky; top: 140px; }
.card-box h3 { font-size: 1.12rem; }
.card-box label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 11px; }
.card-box input, .card-box select, .card-box textarea { display: block; width: 100%; margin-top: 5px; border: 1.5px solid var(--line); border-radius: 9px; padding: .6em .8em; font-weight: 400; background: #fff; outline: 0; }
.card-box input:focus, .card-box select:focus, .card-box textarea:focus { border-color: var(--pri); }
.card-box .invalid { border-color: var(--red); background: #fff7f3; }
.osum { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.osum.total b { font-size: 1.3rem; color: var(--red); }
.hint { font-size: .78rem; color: var(--mute); margin: 6px 0 12px; }
.o-alt { display: flex; gap: 8px; margin-top: 10px; }
.o-alt .btn { flex: 1; }
.print-only { display: none; }

/* prose / about / contact */
.prose-grid { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }
.toc { position: sticky; top: 140px; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.toc a { padding: 7px 14px; color: var(--mute); font-size: .9rem; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--pri); border-left-color: var(--gold); }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; color: var(--pri); scroll-margin-top: 140px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose .lead { font-size: 1.12rem; font-weight: 500; }
.note { padding: 12px 16px; background: var(--gold-l); border-radius: 10px; font-size: .9rem; }
.checks { list-style: none; padding: 0 !important; }
.checks li { display: flex; gap: 10px; }
.checks .ic { color: var(--pri); margin-top: 4px; }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-side img { border-radius: 16px; margin-bottom: 18px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fl { list-style: none; padding: 0; margin: 0; }
.fl li { display: flex; gap: 10px; padding: 5px 0; }
.fl .ic { margin-top: 4px; color: var(--gold); }
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.cinfo { display: grid; gap: 12px; margin-bottom: 18px; }
.cbox { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.cbox > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--pri-l); color: var(--pri); }
.cbox small { display: block; color: var(--mute); font-size: .8rem; }
.cbox b { font-weight: 600; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; display: block; }
#dang-ky { scroll-margin-top: 150px; }

/* product detail */
.pd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.pd-img { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; aspect-ratio: 1; }
.pd-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 10px 0 14px; }
.pd-info .pcard-meta { justify-content: flex-start; font-size: .84rem; }
.pd-price { background: var(--gold-l); border-radius: 12px; padding: 14px 18px; display: flex; align-items: baseline; gap: 10px; }
.pd-price small { color: var(--mute); }
.pd-price b { font-size: 1.9rem; color: var(--red); }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pd-points { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); }
.pd-points li { display: flex; gap: 10px; padding: 5px 0; }
.pd-points .ic { color: var(--pri); margin-top: 3px; }
.pd-note { font-size: .82rem; color: var(--mute); background: var(--bg); padding: 12px 14px; border-radius: 10px; }

/* footer */
.footer { background: #0e2140; color: #a7b8d2; font-size: .9rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 30px; padding-top: 48px; padding-bottom: 32px; }
.footer h4 { color: #fff; font-size: .98rem; margin-bottom: 12px; }
.footer a { color: #d6e2f3; }
.footer a:hover { color: var(--gold); }
.footer p { margin: 12px 0 0; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 80px; font-size: .78rem; color: #7f92b0; }
.footer-note p { margin: 0 0 6px; }
.footer-note .credit a { color: #fff; font-weight: 700; }
.footer-note .credit a:hover { text-decoration: underline; }

/* floating + toast */
.fab { position: fixed; right: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.fab a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); color: #fff; font-weight: 700; font-size: .78rem; }
.fab-zalo { background: #0068ff; }
.fab-call { background: var(--red); animation: ring 2s infinite; }
.fab-call .ic { width: 24px; height: 24px; }
.fab a:hover { color: #fff; filter: brightness(1.1); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, .5); } 50% { box-shadow: 0 0 0 12px rgba(194, 65, 12, 0); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; z-index: 70; transition: .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #8fd3ff; font-weight: 600; margin-left: 4px; }

/* responsive */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .pgrid-shop { grid-template-columns: repeat(3, 1fr); }
  .hot { display: none; }
}
@media (max-width: 900px) {
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .header-in { flex-wrap: wrap; gap: 10px 14px; }
  .burger { display: block; }
  .brand { flex: 1; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .orderbtn span { display: none; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav .wrap { flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav a { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .nav a.on { border-bottom-color: var(--line); }
  .nav .nav-cta { margin: 0; }
  .hero-in, .about, .contact, .pd, .order, .shop, .prose-grid { grid-template-columns: 1fr; }
  .hero-in { padding-top: 36px; padding-bottom: 48px; gap: 30px; }
  .hero-card { left: 12px; bottom: -20px; width: 250px; }
  .perks-in { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .filters, .order-side, .toc { position: static; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pgrid, .pgrid-shop { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .brand b { font-size: .95rem; }
  .brand small { font-size: .66rem; }
  .pgrid, .pgrid-shop { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px; }
  .pcard-buy { flex-direction: column; }
  .pcard-buy .qty { width: 100%; }
  .pcard-buy .qty input { flex: 1; }
  .qty button { width: 34px; }
  .hero-stats { gap: 22px; }
  .hero-card { display: none; }
  .perks-in, .steps, .footer-grid { grid-template-columns: 1fr; }
  .sec { padding: 40px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sec-head.center { align-items: center; }
  .toolbar { flex-wrap: wrap; }
  .tsearch { flex-basis: 100%; }
  .toolbar select { flex: 1; }
  .as-list .pcard-body { flex-wrap: wrap; gap: 6px 10px; }
  .as-list .pcard-name { flex-basis: 100%; }
  .as-list .pcard-meta { width: auto; order: 2; }
  .as-list .pcard-price { width: auto; margin-left: auto; }
  .as-list .pcard-buy { flex-direction: row; flex-basis: 100%; }
  .as-list .pcard-buy .qty { width: auto; }
  .as-list .btn-add { flex: 1; }
  .otable thead { display: none; }
  .otable, .otable tbody, .otable tr, .otable td { display: block; width: 100%; }
  .otable tr { position: relative; padding: 12px; border-top: 1px solid var(--line); }
  .otable td { border: 0; padding: 4px 0; text-align: left !important; }
  .otable td[data-label]::before { content: attr(data-label) ': '; color: var(--mute); font-weight: 400; }
  .otable td:last-child { position: absolute; top: 8px; right: 6px; width: auto; }
  .oprod { padding-right: 30px; }
  .pd-buy .btn { flex: 1; }
  .pd-img { padding: 16px; }
}
@media print {
  body > *:not(main), main > *:not(#print-area) { display: none !important; }
  .print-only { display: block !important; }
  .print-only pre { font: 13px/1.6 'Be Vietnam Pro', sans-serif; white-space: pre-wrap; }
}

/* ===== v2: DPSH brand, 1.000+ product catalog ===== */
.brand img { width: 48px; height: auto; }
.brand b { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--pri-d); letter-spacing: .04em; }
.brand small { color: var(--gold-d); letter-spacing: .06em; margin-top: 3px; }
.brand-light b { color: #fff; }
.brand-light img { background: #fff; border-radius: 12px; padding: 4px; }
/* placeholder tile for products without photo */
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; text-align: center; padding: 8px; }
.ph .ic { width: 30%; height: 30%; opacity: .55; }
.ph b { font-size: .95rem; letter-spacing: .02em; word-break: break-word; line-height: 1.15; }
.ph-0 { background: #eaf2fc; color: #1d4f8f; }
.ph-1 { background: #e6f6f3; color: #11735f; }
.ph-2 { background: #eef0fb; color: #4a4fa3; }
.ph-3 { background: #e8f4fb; color: #1f6f9f; }
.chip-hsd { background: #fff3e6; color: #b45309; }
.pcard-meta:empty { display: none; }
.pcard-meta { justify-content: flex-start; }
/* hero */
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 14px; max-width: 560px; margin: 24px 0 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.hero-search > .ic { color: var(--mute); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .6em 0; color: var(--ink); background: transparent; }
.hero-board { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); }
.hb-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--pri-l); margin-bottom: 4px; }
.hb-head span { font-weight: 700; color: var(--pri); display: flex; gap: 6px; align-items: center; }
.hb-head small { color: var(--mute); font-size: .78rem; }
.hb-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: .9rem; }
.hb-row:hover { color: var(--pri); }
.hb-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-row i { font-style: normal; font-size: .72rem; color: #b45309; background: #fff3e6; border-radius: 10px; padding: 1px 7px; margin-left: 8px; }
.hb-row b { color: var(--red); white-space: nowrap; }
.hb-more { display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 12px; font-weight: 600; }
.hero-media .hero-card { left: auto; right: -18px; bottom: -40px; }
/* group tiles + A–Z */
.gtiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gtile { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: .2s; }
.gtile:hover { border-color: var(--gold); box-shadow: var(--sh); transform: translateY(-2px); color: var(--ink); }
.gtile .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--pri-l); color: var(--pri); margin-bottom: 6px; }
.gtile b { font-size: .95rem; line-height: 1.3; }
.gtile span { font-size: .82rem; color: var(--mute); }
.gtile-all { background: linear-gradient(150deg, var(--pri), var(--pri-d)); color: #fff; border: 0; }
.gtile-all:hover { color: #fff; }
.gtile-all .ic { background: rgba(255, 255, 255, .15); color: #fff; }
.gtile-all span { color: #c9d9ef; }
.az-title { font-size: 1rem; margin: 26px 0 10px; color: var(--mute); font-weight: 600; }
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a, .az button { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; font-size: .9rem; }
.az a:hover, .az button:hover { border-color: var(--pri); color: var(--pri); }
.az .on { background: var(--pri); border-color: var(--pri); color: #fff; }
.az-sm { margin: 4px 0 10px; gap: 4px; }
.az-sm button { min-width: 30px; height: 30px; padding: 0 7px; font-size: .8rem; border-radius: 7px; }
.fopt-chk { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.more { text-align: center; margin-top: 18px; }
.nolist { columns: 2; font-size: .9rem; }
/* list view tweaks for v2 card */
.as-list .pcard-name { order: 1; }
.as-list .pcard-meta { order: 2; width: 140px; }
.as-list .ph b { display: none; }
.as-list .ph .ic { width: 55%; height: 55%; }
.pgrid.as-list .pcard-img { width: 56px; height: 56px; }
.oimg.ph { padding: 0; width: 48px; height: 48px; flex: none; }
.oimg.ph .ic { width: 55%; height: 55%; }
.oprod small { display: block; color: #b45309; }
/* about logo */
.about-logo { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; margin-bottom: 18px; }
.about-logo img { width: 200px; margin: 0 auto 12px; }
.about-logo span { color: var(--mute); font-weight: 600; font-size: .9rem; }
@media (max-width: 1100px) { .gtiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .hero-media .hero-card { right: 12px; } .hero-board { margin-bottom: 30px; } }
@media (max-width: 640px) {
  .gtiles { grid-template-columns: 1fr 1fr; }
  .brand b { font-size: 1.4rem; }
  .brand img { width: 40px; }
  .hero-search { margin: 18px 0 22px; }
  .hero-search .btn { padding: .6em .9em; }
  .as-list .pcard-meta { width: auto; }
  .nolist { columns: 1; }
}
/* v2 mobile fixes */
.hero-in > *, .order > *, .shop > *, .contact > *, .about > *, .pd > *, .prose-grid > * { min-width: 0; }
.hero-stats { flex-wrap: wrap; row-gap: 10px; }
@media (max-width: 900px) {
  .filters { padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
  .filters h3, .filters .fnote { display: none; }
  .fopt { padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; font-size: .84rem; gap: 6px; }
  .fopt:has(input:checked) { border-color: var(--pri); background: var(--pri-l); color: var(--pri); font-weight: 600; }
  .fopt input { display: none; }
  .fopt i { margin-left: 2px; }
  .fopt-chk { margin-top: 0; padding-top: 5px; border-top: 1px solid var(--line); }
  .hero h1 { font-size: 1.75rem; }
  .qa-row { flex-wrap: wrap; }
  #qa { flex-basis: 100%; }
  #qa-n { flex: 1; }
}
.toast { opacity: 0; visibility: hidden; }
.toast.show { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .az-sm { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .az-sm button { flex: none; }
}
@media (max-width: 640px) { .pd-img { aspect-ratio: auto; height: 240px; } }
/* header wordmark without sub-line */
.header .brand b { font-size: 1.85rem; }
@media (max-width: 640px) { .header .brand b { font-size: 1.55rem; } }
.shop-full { grid-template-columns: 1fr; }

/* ===== v3: shared with WordPress theme ===== */
.done-box { text-align: center; }
.done-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #e3f6ec; color: #16865a; font-size: 1.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.done-box p { color: var(--mute); }
.btn.is-busy { opacity: .65; pointer-events: none; }
.btn.is-busy::after { content: ''; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* product description (WordPress editor content) */
.pd-desc { margin-top: 28px; }
.pd-desc h2 { font-size: 1.25rem; color: var(--pri); }
.pd-desc img { border-radius: 10px; }
.pd-desc table { border-collapse: collapse; width: 100%; }
.pd-desc td, .pd-desc th { border: 1px solid var(--line); padding: 8px 10px; }
.pd-spec { font-size: .92rem; color: var(--mute); margin: -6px 0 14px; }
.pd-spec b { color: var(--ink); }
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.pd-gallery img { aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; }
/* WordPress admin bar */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
