/* Polome – giao diện cửa hàng. Màu chính đổi trong Admin › Cài đặt (biến --primary) */
:root {
  --primary: #E8552B; --primary-d: color-mix(in srgb, var(--primary) 82%, #000); --primary-l: color-mix(in srgb, var(--primary) 12%, #fff);
  --ink: #2A1E17; --ink-2: #5B4A40; --muted: #8A7A70; --line: #EFE4DA; --bg: #FFF9F3; --card: #fff;
  --green: #2F7D4F; --yellow: #F6B93B; --red: #D93A3A;
  --r: 14px; --r-sm: 10px; --shadow: 0 2px 10px rgba(42, 30, 23, .06); --shadow-h: 0 10px 28px rgba(42, 30, 23, .12);
  --font: 'Be Vietnam Pro', system-ui, sans-serif; --display: 'Lora', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
label input, label select, label textarea { margin-top: 5px; font-weight: 400; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; } .narrow-wide { max-width: 1100px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; justify-content: center; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--primary-d); color: #fff; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--primary-l); color: var(--primary-d); }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 20%, #fff); color: var(--primary-d); }
.btn-sm { padding: 8px 14px; font-size: 13px; } .btn-lg { padding: 14px 26px; font-size: 16px; } .btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Header */
.topbar { background: var(--ink); color: #FBE9DA; font-size: 13px; text-align: center; padding: 7px 0; }
.hdr { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { max-height: 48px; width: auto; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; font-size: 24px; }
.logo b { display: block; font: 700 22px/1.1 var(--display); color: var(--primary); }
.logo small { display: block; font-size: 11px; color: var(--muted); }
.logo.light b { color: #fff; } .logo.light small { color: #CDBBAF; }
.search { flex: 1; position: relative; display: flex; max-width: 560px; }
.search input { border-radius: 999px; padding-right: 52px; background: var(--bg); border-color: transparent; }
.search input:focus { background: #fff; border-color: var(--primary); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-h); overflow: hidden; z-index: 60; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 14px; }
.suggest a:hover { background: var(--bg); }
.suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.suggest b { color: var(--primary); margin-left: auto; font-size: 13px; white-space: nowrap; }
.hdr-hot { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; color: var(--muted); }
.hdr-hot b { color: var(--ink); font-size: 15px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 0; background: var(--bg); cursor: pointer; flex-shrink: 0; }
.cart-count { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font: 700 11px/19px var(--font); text-align: center; font-style: normal; }
.menu-btn { display: none; }
.nav { border-top: 1px solid var(--line); }
.nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-in a { padding: 11px 13px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); border-bottom: 2.5px solid transparent; }
.nav-in a.on, .nav-in a:hover { color: var(--primary); border-color: var(--primary); }
.nav-in a.hot { color: var(--red); }
.nav-mask { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 18px; }
.slider { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 2.2 / 1; background: #FFE3C2; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: radial-gradient(circle at 80% 50%, #fff8 0, transparent 60%), var(--bg); background-color: var(--bg); opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide { background: radial-gradient(circle at 78% 50%, rgba(255,255,255,.65) 0, transparent 55%), var(--bg, #FFE3C2); }
.slide.on { opacity: 1; pointer-events: auto; }
.slide-txt { padding: 0 0 0 48px; }
.slide-txt h2 { font-size: clamp(24px, 3.4vw, 42px); margin: 8px 0; color: var(--ink); }
.slide-txt p { color: var(--ink-2); font-size: 16px; margin: 0 0 18px; max-width: 420px; }
.slide img { height: 88%; width: auto; max-width: 100%; object-fit: contain; justify-self: center; border-radius: 18px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
.slide img.full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: none; }
.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 99px; background: #fff; color: var(--primary-d); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.dots { position: absolute; bottom: 14px; left: 48px; display: flex; gap: 6px; }
.dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: rgba(42,30,23,.25); cursor: pointer; padding: 0; transition: width .2s; }
.dots button.on { width: 26px; background: var(--primary); }
.hero-side { display: grid; gap: 16px; }
.side-card { display: flex; align-items: center; gap: 10px; padding: 18px; border-radius: 20px; background: var(--bg, #FFF1D6); overflow: hidden; }
.side-card b { display: block; font: 700 18px/1.25 var(--display); }
.side-card span { display: block; font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.side-card em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--primary-d); }
.side-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; flex-shrink: 0; margin-left: auto; }

/* Danh mục */
.cats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-top: 22px; }
.cat-chip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.cat-chip:first-child { background: var(--primary); color: #fff; } .cat-chip:first-child small { color: #FFE2D6; }
.cat-ico { width: 54px; height: 54px; display: grid; place-items: center; font-size: 30px; border-radius: 50%; background: var(--bg); overflow: hidden; }
.cat-chip:first-child .cat-ico { background: rgba(255,255,255,.2); }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip b { font-size: 13.5px; line-height: 1.3; } .cat-chip small { font-size: 12px; color: var(--muted); }

/* Spotlight sản phẩm chủ lực (miến) */
.spotlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; margin-top: 34px; padding: 28px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); border: 2px solid var(--primary-l); }
.spot-img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.spot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spot-img:hover img { transform: scale(1.04); }
.spot-txt h2 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 6px; }
.spot-txt .eyebrow { background: var(--primary-l); }
.ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }

/* Khối sản phẩm */
.block { margin-top: 36px; }
.block-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-hd h2 { margin: 0; }
.block-hd > a { color: var(--primary); font-weight: 600; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grid.g5 { grid-template-columns: repeat(5, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.tag-off { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-off.big { font-size: 16px; padding: 6px 12px; top: 14px; left: 14px; }
.tag-hot { position: absolute; bottom: 8px; left: 8px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-hot.alt { background: var(--green); color: #fff; }
.sold-out { position: absolute; inset: 0; background: rgba(255,255,255,.65); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-name { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card-meta { font-size: 12.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.price b { color: var(--primary); font-size: 17px; } .price s { color: var(--muted); font-size: 13px; }
.price.big b { font-size: 28px; } .price.big s { font-size: 16px; }
.card .btn { margin-top: 6px; }

/* Flash sale */
.flash { margin-top: 40px; padding: 26px 0 20px; background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, #F6B93B) 100%); }
.flash .block-hd h2 { color: #fff; }
.countdown { color: #fff; font-size: 14px; }
.countdown b { display: inline-block; min-width: 32px; padding: 4px 6px; margin: 0 2px; background: var(--ink); border-radius: 6px; text-align: center; }

/* Trust + footer */
.trust { margin-top: 48px; background: #fff; border-top: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 16px; }
.trust-in div { display: flex; flex-direction: column; } .trust-in span { font-size: 13px; color: var(--muted); }
.ftr { background: var(--ink); color: #E9DCD2; padding: 36px 0 90px; font-size: 14px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.ftr h4 { color: #fff; margin: 4px 0 12px; font-size: 15px; }
.ftr-in > div > a { display: block; padding: 4px 0; color: #CDBBAF; } .ftr a:hover { color: #fff; }
.ftr p { color: #CDBBAF; line-height: 1.8; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 13px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; font-size: 13px; color: #9C8A7E; }
.bnav { display: none; }
.float-zalo { position: fixed; right: 18px; bottom: 24px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #0068FF; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px rgba(0,104,255,.4); }
.float-zalo:hover { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; z-index: 100; font-size: 14px; box-shadow: var(--shadow-h); }

/* Danh sách */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 8px; } .crumbs a:hover { color: var(--primary); }
.list-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.list-hd h1 { margin: 0 0 4px; } .list-hd p { margin: 0; }
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.filters { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 130px; }
.filters h3 { font-size: 15px; margin: 6px 0 8px; } .filters h3:not(:first-child) { margin-top: 18px; }
.filters a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.filters a.on { background: var(--primary-l); color: var(--primary-d); font-weight: 700; }
.filters small { color: var(--muted); }
.price-form { display: flex; gap: 6px; margin: 8px 0; } .price-form input { padding: 7px 8px; font-size: 13px; }
.sortbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff; padding: 10px 12px; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px; font-size: 14px; }
.sortbar span { color: var(--muted); margin-right: 4px; }
.sortbar a { padding: 6px 12px; border-radius: 99px; background: var(--bg); }
.sortbar a.on { background: var(--primary); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.pager a.on { background: var(--primary); color: #fff; }
.empty { background: #fff; padding: 40px 20px; text-align: center; border-radius: var(--r); color: var(--muted); }

/* Chi tiết */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.g-main { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.g-thumbs button { flex: 0 0 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.g-thumbs button.on { border-color: var(--primary); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 24px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; padding: 14px 18px; background: var(--primary-l); border-radius: var(--r); }
.pd-price b { font-size: 30px; color: var(--primary); } .pd-price s { color: var(--muted); font-size: 17px; }
.field { margin: 16px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field > label { width: 100%; margin: 0; }
.variants { display: flex; gap: 8px; flex-wrap: wrap; }
.variants button { padding: 9px 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-size: 14px; text-align: left; }
.variants button.on { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); font-weight: 600; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 38px; border: 0; background: var(--bg); cursor: pointer; font-size: 18px; }
.qty input { width: 54px; border: 0; text-align: center; border-radius: 0; padding: 8px 4px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-btns .btn { flex: 1; }
.pd-perks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0; font-size: 13px; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: 110px 1fr; gap: 6px; font-size: 14px; } .specs dt { color: var(--muted); } .specs dd { margin: 0; }
.pd-tabs { display: grid; gap: 16px; margin-top: 20px; }
.pd-tabs section { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.rich { line-height: 1.75; color: var(--ink-2); } .rich img { border-radius: 12px; margin: 10px 0; height: auto; } .rich h2 { color: var(--ink); margin-top: 1em; }
.rich table { border-collapse: collapse; width: 100%; } .rich td, .rich th { border: 1px solid var(--line); padding: 8px; }
.sticky-buy { display: none; }

/* Giỏ / thanh toán */
.page-h { margin: 22px 0 16px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.box { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.box h2 { font-size: 19px; }
.summary { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); position: sticky; top: 130px; }
.cline { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: #fff; padding: 14px; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 10px; }
.cline img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.cline-name { font-weight: 600; font-size: 14px; } .cline-var { font-size: 13px; color: var(--muted); }
.cline-price { color: var(--primary); font-weight: 700; margin: 4px 0; }
.cline-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cline-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.cline-del:hover { color: var(--red); }
.coupon { display: flex; gap: 8px; } .coupon input { padding: 9px 12px; text-transform: uppercase; }
.cp-msg { font-size: 13px; min-height: 1em; margin: 6px 0; }
.sum-rows { border-top: 1px dashed var(--line); padding-top: 10px; margin: 10px 0 14px; }
.sum-rows > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.sum-rows .total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; } .sum-rows .total span:last-child { color: var(--primary); }
.ship-hint { font-size: 13px; background: #FFF4D9; padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; }
.link-muted { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.mini-lines { display: grid; gap: 10px; margin-bottom: 14px; max-height: 300px; overflow: auto; }
.mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-line img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .form-grid .full { grid-column: 1 / -1; }
.pay-opt { display: block; padding: 14px; border: 2px solid var(--primary); border-radius: var(--r); background: var(--primary-l); font-size: 15px; color: var(--ink); }
.pay-opt input { width: auto; margin-right: 6px; } .pay-opt small { display: block; color: var(--muted); font-weight: 400; margin: 2px 0 0 24px; }
.form-err, .alert { background: #FDECEC; color: var(--red); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.ok-msg { background: #E7F5EC; color: var(--green); padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* Đơn hàng */
.success { text-align: center; padding: 30px 10px 10px; }
.success-ico { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 38px; display: grid; place-items: center; }
.order-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .order-hd h2 { margin: 0; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: #eee; white-space: nowrap; }
.st-pending { background: #FFF4D9; color: #9A6700; } .st-confirmed { background: #E5F0FF; color: #1D5BBF; } .st-shipping { background: #F0E8FF; color: #6B3FC2; }
.st-done { background: #E7F5EC; color: var(--green); } .st-cancelled { background: #F3F0EE; color: #8A7A70; }
.timeline { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.timeline li { position: relative; text-align: center; font-size: 13px; padding-top: 38px; color: var(--muted); }
.timeline li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ink); } .timeline li.done::before, .timeline li.done::after { background: var(--green); color: #fff; }
.timeline small { display: block; }
.lines, .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines td, .table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines img { border-radius: 8px; object-fit: cover; }
.track-form { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; } .track-form input { flex: 1; min-width: 200px; }
.auth { max-width: 440px; padding-top: 30px; } .auth h1 { margin-bottom: 4px; }
.page-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 22px; margin-top: 22px; align-items: start; }

/* Mobile */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; } .hero-side { grid-template-columns: 1fr 1fr; }
  .grid.g5, .grid.g4 { grid-template-columns: repeat(3, 1fr); }
  .hdr-hot { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14px; padding-bottom: 64px; }
  h1 { font-size: 23px; }
  .topbar { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 10px; }
  .hdr-in { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .menu-btn { display: grid; }
  .logo { flex: 1; } .logo small { display: none; } .logo b { font-size: 20px; } .logo-mark { width: 38px; height: 38px; font-size: 20px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px; background: #fff; z-index: 70; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; border: 0; padding-top: 16px; }
  .nav-in { flex-direction: column; padding: 0; }
  .nav-in a { border: 0; border-left: 3px solid transparent; padding: 13px 18px; }
  body.nav-open .nav { transform: none; } body.nav-open .nav-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 65; }
  .slider { aspect-ratio: 1.5 / 1; border-radius: 16px; }
  .slide { grid-template-columns: 1fr 44%; align-items: center; }
  .slide-txt { padding: 0 0 18px 16px; } .slide-txt h2 { font-size: 20px; margin: 6px 0 10px; } .slide-txt p { display: none; } .slide-txt .btn { padding: 8px 14px; font-size: 13px; }
  .slide img { height: auto; width: 92%; max-height: 82%; }
  .dots { left: 20px; }
  .hero-side { display: none; }
  .cats-strip { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; } .cat-chip { padding: 12px 6px; }
  .spotlight { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .grid, .grid.g5, .grid.g4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scroller { grid-auto-columns: 46%; }
  .card-body { padding: 9px 10px 11px; } .price b { font-size: 15px; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .ftr-in { grid-template-columns: 1fr; gap: 18px; }
  .bnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 62px; background: #fff; border-top: 1px solid var(--line); z-index: 45; }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 19px; position: relative; }
  .bnav span { font-size: 10.5px; color: var(--ink-2); margin-top: 1px; } .bnav a.on span { color: var(--primary); font-weight: 700; }
  .bnav .cart-count { top: -26px; right: auto; left: 52%; }
  .float-zalo { bottom: 76px; right: 12px; width: 48px; height: 48px; }
  .list-layout, .page-wrap { grid-template-columns: 1fr; }
  .filters { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .filters h3 { width: 100%; margin: 4px 0 0 !important; } .filters a { background: var(--bg); padding: 5px 10px; font-size: 13px; } .price-form { width: 100%; }
  .sortbar { flex-wrap: nowrap; overflow-x: auto; } .sortbar a { white-space: nowrap; }
  .pd { grid-template-columns: 1fr; padding: 14px; gap: 18px; } .pd-info h1 { font-size: 19px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 62px; background: #fff; padding: 10px 14px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 14px rgba(0,0,0,.08); z-index: 44; }
  .sticky-buy b { color: var(--primary); font-size: 18px; }
  .cart-layout { grid-template-columns: 1fr; } .summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 64px 1fr; } .cline img { width: 64px; height: 64px; } .cline-r { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .timeline li { font-size: 11px; }
}
.copy.legal { display: flex; justify-content: space-between; gap: 16px; align-items: center; line-height: 1.7; }
.bct { flex-shrink: 0; padding: 8px 12px; border: 1.5px solid #2B6CB0; border-radius: 8px; background: #fff; color: #2B6CB0 !important; font-weight: 700; font-size: 12px; text-align: center; line-height: 1.3; }
.agree { font-size: 12.5px; color: var(--muted); }
.seller-box { background: var(--bg); border-radius: 12px; padding: 4px 18px; margin-top: 18px; font-size: 14px; }
.rich em { color: var(--muted); }
.tpcn-note { background: #FFF6E0; border: 1px solid #F3D48A; color: #7A5300; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 12px 0; }
.spec-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-tbl th { width: 30%; text-align: left; font-weight: 600; color: var(--ink-2); background: var(--bg); vertical-align: top; }
.spec-tbl th, .spec-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.doc-link { display: block; padding: 3px 0; color: var(--primary-d); font-weight: 500; }
.doc-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .spec-tbl th { width: 38%; padding: 9px 10px; } .spec-tbl td { padding: 9px 10px; } }

/* Lối vào "Đo chỉ số cho bé" trên trang chủ (theo modules/do-chi-so) */
.dcs-teaser{display:flex;align-items:center;gap:14px;padding:16px;border-radius:20px;background:#FFE9D9;color:inherit;text-decoration:none}
.dcs-teaser b{display:block;font:700 18px/1.25 Lora,Georgia,serif}
.dcs-teaser span{display:block;font-size:14px;color:#5B4A40}
.dcs-teaser em{margin-left:auto;flex:none;padding:10px 16px;border-radius:999px;background:#BE4623;color:#fff;font-style:normal;font-weight:700;font-size:14px}

/* Menu do quản trị sửa (gói 12): mục có menu con */
.nav-has-drop { position: relative; display: inline-flex; }
.nav-drop { display: none; position: absolute; top: 100%; left: 0; z-index: 40; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 14px; gap: 18px; min-width: 220px; }
.nav-has-drop:hover .nav-drop, .nav-has-drop:focus-within .nav-drop { display: flex; }
.nav-col { display: flex; flex-direction: column; gap: 2px; } .nav-col b { font-size: 12px; color: #8A7A70; margin-bottom: 4px; }
.nav-col a { padding: 4px 0 !important; border: 0 !important; white-space: nowrap; }
@media (max-width: 760px) { .nav-has-drop { display: block; } .nav-drop { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; } }

/* Banner miến ở trang Giới thiệu */
.about-banner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 10px; margin: 6px 0 22px; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 75% 45%, #E6F2DA 0, #B9D79F 70%); text-decoration: none !important; color: var(--ink) !important; }
.about-banner .ab-txt { padding: 26px 0 26px 30px; }
.about-banner .ab-tag { display: inline-block; background: #fff; color: var(--primary-d); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.about-banner h2 { font: 700 clamp(22px, 3vw, 34px)/1.2 var(--display); margin: 10px 0 8px; color: #2B3A1F; }
.about-banner p { margin: 0 0 16px; color: #3F4F33; }
.about-banner .ab-tag { background: #D7261E; color: #fff; }
.about-banner .ab-deals { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.about-banner .ab-deals li { background: rgba(255,255,255,.75); border-left: 4px solid #F4B400; padding: 6px 12px; border-radius: 8px; font-size: 14px; color: #2B3A1F; }
.about-banner .ab-deals b { color: #C0201A; }
.ctkm-row { background: #FFF6E0; border: 1px dashed #F4B400; border-radius: 8px; padding: 6px 10px; font-size: 13px; color: #8A4B00; display: block !important; }
.about-banner .ab-btn { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 99px; }
.about-banner img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; object-position: center 60%; display: block; margin: 0 !important; border-radius: 0 !important; }
@media (max-width: 640px) { .about-banner { grid-template-columns: 1fr; } .about-banner .ab-txt { padding: 20px 20px 0; } .about-banner img { max-height: 240px; } }
