/* Màu & font lấy theo nemvietnhat.com: xanh lá #28A54A, Montserrat */
:root {
  --brand: #28a54a;
  --brand-2: #1f8a3c;
  --brand-dark: #14532b;
  --brand-soft: #e9f6ed;
  --heading: #1e1e1e;
  --accent: #e8323c;
  --accent-soft: #fdecee;
  --gold: #f5a623;
  --ink: #222;
  --muted: #757575;
  --line: #ececec;
  --bg: #f3f4f6;
  --card: #fff;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: "Montserrat", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.container { width: min(1200px, 100% - 24px); margin-inline: auto; }
.muted { color: var(--muted); }
body.lock { overflow: hidden; }

/* ===== Header ===== */
.topbar { background: var(--brand); color: #fff; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.tb-stores { display: flex; align-items: center; gap: 10px; }
.tb-label { font-weight: 600; font-size: 13px; opacity: .95; }
.tb-sep { width: 1px; height: 16px; background: rgba(255,255,255,.6); }
.store-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 9px; border-radius: 999px; font-weight: 800; font-size: 13.5px; letter-spacing: .01em; transition: transform .15s, box-shadow .15s; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.store-btn.shopee { background: #ee4d2d; color: #fff; }
.store-btn.tiktok { background: #111; color: #fff; }
.tb-info { display: flex; gap: 18px; font-weight: 500; }
.header { background: #fff; color: var(--heading); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-in { display: flex; align-items: center; gap: 28px; padding: 10px 0 6px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.search { flex: 1; display: flex; background: #f4f6f5; border: 2px solid var(--brand); border-radius: 999px; padding: 3px; }
.search input { flex: 1; border: 0; background: transparent; padding: 8px 16px; font: inherit; outline: none; min-width: 0; }
.search button { background: var(--brand); color: #fff; border: 0; width: 44px; height: 38px; border-radius: 999px; display: grid; place-items: center; }
.cart-btn { position: relative; background: var(--brand); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.2); } }
.quick-links { display: flex; gap: 26px; padding: 4px 0 10px 248px; font-size: 14px; font-weight: 500; overflow-x: auto; white-space: nowrap; }
.quick-links a:hover { color: var(--brand); }

/* ===== Cards & sections ===== */
main { padding: 16px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.banner-grid > *, .policies > * { min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head.wrap { flex-wrap: wrap; }
.sec-head h2 { font-size: 17px; color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }

/* ===== Banner ===== */
.banner-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
/* Slider khung chung – tỉ lệ ~ 1536x520 như banner gốc */
.slider { position: relative; width: 100%; height: clamp(240px, 39cqi, 360px); height: max(240px, min(360px, calc((min(1200px, 100vw - 24px) * 2 / 3 - 8px) / 2.55))); border-radius: 10px; overflow: hidden; container-type: inline-size; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; pointer-events: none; overflow: hidden; }
.slide.active { opacity: 1; pointer-events: auto; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.dots button.active { background: #fff; width: 22px; border-radius: 5px; }

/* ---- Banner 1: chiến dịch sale đỏ – đen ---- */
.bn-sale { background: radial-gradient(ellipse 60% 80% at 68% 45%, #e3242b 0%, #8d0f14 38%, #2a0406 72%, #120203 100%); color: #fff; }
.bn-sale::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 46px); mask: linear-gradient(180deg, #000 0%, transparent 70%); }
.bn-sale-floor { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; background: repeating-linear-gradient(90deg, rgba(255,80,80,.25) 0 1px, transparent 1px 60px), repeating-linear-gradient(0deg, rgba(255,80,80,.25) 0 1px, transparent 1px 40px); transform: perspective(300px) rotateX(60deg); opacity: .5; }
.bn-sale-text { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); z-index: 3; width: 50%; }
.date-chip { display: inline-block; background: #fff; color: #c8102e; font-weight: 900; font-size: clamp(11px, 1.6cqw, 16px); padding: 3px 12px; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 4px 0 #7a0a0f; }
.date-chip small { font-weight: 700; color: #333; }
.txt-3d { font-weight: 900; font-style: italic; font-size: clamp(30px, 7.6cqw, 78px); line-height: .92; margin: 10px 0 12px; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 1px 0 #ddd, 0 2px 0 #c9c9c9, 0 3px 0 #b5b5b5, 0 4px 0 #a0a0a0, 0 5px 0 #7a0a0f, 0 6px 0 #7a0a0f, 0 9px 14px rgba(0,0,0,.6); }
.txt-3d span { color: #ffd23f; font-size: 1.12em; text-shadow: 0 1px 0 #f2b705, 0 2px 0 #d99a00, 0 3px 0 #b97f00, 0 4px 0 #7a0a0f, 0 5px 0 #7a0a0f, 0 9px 14px rgba(0,0,0,.6); }
.ribbons { display: flex; gap: 0; transform: skewX(-10deg); margin-bottom: 14px; }
.rb { padding: 4px 14px 6px; font-weight: 900; font-size: clamp(14px, 2.9cqw, 30px); line-height: 1; text-align: center; font-style: italic; }
.rb small { display: block; font-size: .4em; font-weight: 800; letter-spacing: .04em; margin-bottom: 2px; font-style: normal; }
.rb-white { background: #fff; color: #d0141c; box-shadow: inset 0 -3px 0 #ddd; }
.rb-red { background: linear-gradient(180deg, #ff3b3b, #c8102e); color: #fff; transform: scale(1.12); z-index: 1; box-shadow: 0 6px 16px rgba(0,0,0,.4); border: 2px solid #ffd23f; }
.btn-hunt { border: 3px solid #ffd23f; background: linear-gradient(180deg, #fff7d1, #ffd23f); color: #6b0a0e; font: inherit; font-weight: 900; font-size: clamp(12px, 2cqw, 20px); padding: 6px 10px 6px 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 5px 0 #8d5a00, 0 10px 20px rgba(0,0,0,.4); transition: transform .15s; }
.btn-hunt span { background: #c8102e; color: #fff; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; font-size: .85em; }
.btn-hunt:hover { transform: translateY(-2px); }
.bn-sale-img { position: absolute; right: 3%; bottom: 4%; height: 84%; width: auto; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.price-tag { position: absolute; z-index: 2; background: #fff; color: #c8102e; font-weight: 900; font-size: clamp(11px, 2cqw, 20px); padding: 3px 12px 3px 18px; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.45); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.price-tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #c8102e; transform: translateY(-50%); }
.price-tag.t1 { top: 9%; left: 47%; transform: rotate(14deg); }
.price-tag.t2 { top: 12%; right: 4%; transform: rotate(-10deg); }
.price-tag.t3 { bottom: 14%; left: 50%; transform: rotate(-12deg); background: #ffd23f; }
.gift-sticker { position: absolute; z-index: 3; right: 6%; bottom: 8%; background: #c8102e; color: #fff; border: 3px solid #fff; border-radius: 50%; width: clamp(54px, 9cqw, 92px); aspect-ratio: 1; display: grid; place-content: center; text-align: center; font-size: clamp(9px, 1.3cqw, 13px); font-weight: 700; line-height: 1.1; transform: rotate(-14deg); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.gift-sticker b { font-size: 1.4em; font-weight: 900; color: #ffd23f; }

/* ---- Banner 2: phòng xanh thương hiệu ---- */
.bn-green { background: linear-gradient(180deg, #31b956 0%, #23a047 62%, #1b8a3b 62%, #2aa64c 100%); color: #fff; }
.bn-green::after { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 3px; background: rgba(0,0,0,.08); }
.bn-green-arch { position: absolute; left: 6%; top: 10%; width: 26%; height: 70%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #45c768, #2cae50); box-shadow: inset 10px 0 30px rgba(0,0,0,.08); }
.bn-green-photo { position: absolute; left: 4%; top: 10%; width: 36%; height: 82%; border-radius: 999px 999px 18px 18px; overflow: hidden; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 20px 40px rgba(0,60,20,.35); z-index: 2; }
.bn-green-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.bn-green-text { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 54%; z-index: 3; text-align: right; }
.bn-green-text h2 { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-shadow: 0 4px 12px rgba(0,60,20,.3); }
.big0 { font-weight: 900; font-style: italic; font-size: clamp(56px, 13cqw, 140px); line-height: .8; color: #fff; }
.stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.stack b { white-space: nowrap; font-weight: 900; font-size: clamp(18px, 4.2cqw, 46px); line-height: 1; letter-spacing: -.01em; }
.stack em { font-style: normal; font-weight: 700; font-size: clamp(13px, 2.8cqw, 30px); color: #e6ff6b; }
.g-pills { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.g-pill { background: #fff; color: var(--brand-dark); border-radius: 14px; padding: 6px 14px 8px; text-align: center; box-shadow: 0 6px 0 rgba(0,70,25,.25); }
.g-pill small { display: block; font-size: clamp(9px, 1.3cqw, 13px); font-weight: 600; color: #555; }
.g-pill b { font-size: clamp(15px, 2.8cqw, 28px); font-weight: 900; color: var(--brand); line-height: 1; }
.plus { font-weight: 900; font-size: clamp(16px, 2.4cqw, 24px); }
.btn-green { background: #e6ff6b; color: var(--brand-dark); border: 0; font: inherit; font-weight: 800; font-size: clamp(12px, 1.7cqw, 17px); padding: 10px 22px; border-radius: 999px; box-shadow: 0 5px 0 #8fb81e; transition: transform .15s; }
.btn-green:hover { transform: translateY(-2px); }
.check { position: absolute; z-index: 3; width: clamp(26px, 4cqw, 42px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 0 5px rgba(255,255,255,.35); }
.check.c1 { left: 37%; top: 14%; }
.check.c2 { left: 2.5%; bottom: 12%; }

/* ---- Banner 3: lifestyle sáng, tiêu đề xanh dương ---- */
.bn-light { background: linear-gradient(100deg, #f7f8fa 0%, #eef1f4 45%, #e7ebef 100%); color: #2a6fd6; }
.bn-light-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 60%; }
.bn-light-photo img { width: 100%; height: 100%; object-fit: cover; mask: linear-gradient(90deg, transparent 0%, #000 30%); -webkit-mask: linear-gradient(90deg, transparent 0%, #000 30%); }
.bn-light-text { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 2; width: 48%; }
.bn-light-text h2 { font-weight: 500; font-size: clamp(18px, 3.4cqw, 36px); line-height: 1.15; color: #2a6fd6; }
.bn-light-text h2 b { font-weight: 800; font-size: 1.5em; color: #1f5fc4; }
.blue-pill { display: inline-block; margin: 12px 0 10px; background: linear-gradient(90deg, #2a7fe0, #4aa3f0); color: #fff; font-weight: 600; font-size: clamp(11px, 1.6cqw, 16px); padding: 6px 18px; border-radius: 999px; box-shadow: 0 6px 14px rgba(42,127,224,.3); }
.mini-usp { list-style: none; padding: 0; margin: 0 0 14px; color: #4a5568; font-size: clamp(10px, 1.3cqw, 13px); font-weight: 500; }
.mini-usp li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
.btn-blue { background: #1f5fc4; color: #fff; border: 0; font: inherit; font-weight: 800; font-size: clamp(11px, 1.4cqw, 14px); padding: 9px 22px; border-radius: 8px; letter-spacing: .03em; box-shadow: 0 6px 14px rgba(31,95,196,.35); transition: transform .15s; }
.btn-blue:hover { transform: translateY(-2px); }

/* ---- Side banners ---- */
.side-banners { display: grid; gap: 8px; }
.side-banner { border-radius: 10px; padding: 16px 18px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; overflow: hidden; transition: filter .2s, transform .2s; }
.side-banner:hover { filter: brightness(1.06); transform: translateY(-1px); }
.side-banner small { display: block; font-size: 12px; font-weight: 600; opacity: .9; }
.side-banner strong { display: block; font-size: 22px; font-weight: 900; font-style: italic; line-height: 1.05; margin: 2px 0 6px; }
.side-banner span { font-size: 12px; font-weight: 500; }
.sb-gift { background: linear-gradient(135deg, #31b956, #1b8a3b); }
.sb-gift strong { color: #e6ff6b; }
.sb-gift img { width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 3px solid #fff; transform: rotate(5deg); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.sb-voucher { background: radial-gradient(circle at 80% 50%, #e3242b, #7a0a0f 70%); }
.sb-voucher strong { color: #ffd23f; }
.sb-ticket { background: #fff; color: #c8102e !important; font-weight: 900 !important; font-size: 26px !important; font-style: italic; padding: 10px 14px; border-radius: 8px; transform: rotate(-8deg); box-shadow: 0 8px 18px rgba(0,0,0,.35); border-left: 4px dashed #c8102e; }

.btn { border: 0; border-radius: 4px; padding: 10px 22px; font-weight: 600; transition: filter .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-white { background: #fff; color: var(--brand); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Policies ===== */
.policies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--brand-2)); border-radius: 10px; padding: 6px; }
.policy { color: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; line-height: 1.3; }
.policy + .policy { border-left: 1px solid rgba(255,255,255,.25); }
.policy small { display: block; font-weight: 400; font-size: 11.5px; opacity: .85; }
.policy i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }

/* ===== Shop card ===== */
.shop-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.shop-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; border: 3px solid #e8f0fb; }
.shop-main h1 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.mall { background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.shop-main p { margin: 4px 0 0; }
.shop-stats { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.shop-stats li { text-align: center; }
.shop-stats b { display: block; color: var(--accent); font-size: 17px; }
.shop-stats span { color: var(--muted); font-size: 12px; }

/* ===== Vouchers ===== */
.vouchers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.voucher { display: flex; border-radius: 4px; overflow: hidden; border: 1px solid #f6c3c6; background: var(--accent-soft); position: relative; }
.voucher-left { background: var(--accent); color: #fff; width: 84px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 12px; padding: 8px; position: relative; }
.voucher-left::after { content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle at 5px 6px, var(--accent-soft) 4px, transparent 4.5px) 0 0 / 10px 12px; }
.voucher-right { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.voucher-right b { color: var(--accent); font-size: 15px; }
.voucher-right small { color: var(--muted); }
.voucher button { align-self: flex-start; background: var(--accent); color: #fff; border: 0; border-radius: 3px; padding: 4px 14px; font-size: 12px; font-weight: 600; }
.voucher button.saved { background: #fff; color: var(--accent); border: 1px solid var(--accent); }

/* ===== Flash sale ===== */
.flash-title { color: var(--accent) !important; font-style: italic; font-weight: 800; }
.countdown { display: flex; gap: 4px; align-items: center; font-weight: 700; }
.countdown span { background: #222; color: #fff; padding: 3px 7px; border-radius: 3px; min-width: 30px; text-align: center; }
.flash-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.flash-item { text-align: center; cursor: pointer; scroll-snap-align: start; }
.flash-item .thumb { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #f5f5f5; }
.flash-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.flash-item:hover img { transform: scale(1.05); }
.flash-item .fprice { color: var(--accent); font-size: 18px; font-weight: 700; margin: 6px 0 4px; }
.bar { height: 16px; border-radius: 8px; background: #fbd0d3; position: relative; overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; text-transform: uppercase; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff7a45, var(--accent)); border-radius: 8px; }
.bar em { position: relative; font-style: normal; }

/* ===== Tabs / sort ===== */
.tabs { display: flex; gap: 6px; }
.tab { border: 1px solid var(--line); background: #fff; padding: 7px 18px; border-radius: 3px; font-weight: 600; color: #555; }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.result-info { margin: -6px 0 12px; min-height: 1em; }

/* ===== Product grid ===== */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.p-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: var(--accent); }
.p-card .thumb { aspect-ratio: 1; background: #f5f5f5; position: relative; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-disc { position: absolute; top: 0; right: 0; background: #ffe97a; color: var(--accent); font-weight: 700; font-size: 12px; padding: 3px 6px 6px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); text-align: center; line-height: 1.1; }
.badge-mall { position: absolute; top: 8px; left: 0; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 0 2px 2px 0; }
.soldout-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.soldout-mask span { background: rgba(0,0,0,.7); color: #fff; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.p-body { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 18px; }
.tag { font-size: 10px; padding: 1px 5px; border-radius: 2px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; }
.tag.gift { border-color: #e47911; color: #e47911; background: #fff7ec; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.p-price { color: var(--accent); font-weight: 700; font-size: 16px; }
.p-price small { font-size: 11px; }
.p-old { color: #999; text-decoration: line-through; font-size: 11px; }
.p-meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.stars { color: var(--gold); }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }

/* ===== Gifts ===== */
.gift-note { margin: -8px 0 12px; }
.gift-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.gift { border: 1px dashed #f0b27a; border-radius: 4px; overflow: hidden; background: #fffaf3; }
.gift img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.gift div { padding: 8px; font-size: 12px; }
.gift b { display: block; color: #e47911; font-size: 11px; text-transform: uppercase; }
.gift s { color: #999; }

/* ===== Overlay / modal ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; color: #888; z-index: 2; }
.modal { background: #fff; border-radius: 6px; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; position: relative; }
.pd { display: grid; grid-template-columns: 420px 1fr; gap: 28px; padding: 24px; }
.pd-img { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #f5f5f5; position: sticky; top: 0; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; padding-right: 24px; }
.pd-sub { color: var(--muted); margin: 0 0 10px; }
.pd-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.pd-meta > span + span { border-left: 1px solid var(--line); padding-left: 14px; }
.price-box { background: #fafafa; padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 4px; }
.price-box .now { color: var(--accent); font-size: 30px; font-weight: 700; }
.price-box .old { color: #999; text-decoration: line-through; }
.price-box .off { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 2px; }
.pd-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; margin-top: 16px; }
.pd-row > label, .pd-row > span:first-child { color: var(--muted); padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #ddd; background: #fff; padding: 6px 14px; border-radius: 3px; position: relative; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { border-color: var(--accent); color: var(--accent); }
.chip.disabled { color: #bbb; background: #fafafa; border-color: #eee; cursor: not-allowed; text-decoration: line-through; }
.chip.disabled:hover { color: #bbb; border-color: #eee; }
.p-price .from { font-weight: 500; color: var(--muted); }
.chip.active::after { content: "✓"; position: absolute; right: 0; bottom: 0; background: var(--accent); color: #fff; font-size: 8px; width: 12px; height: 12px; display: grid; place-items: center; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.v-mini { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; padding: 3px 8px; margin: 0 6px 6px 0; border-radius: 2px; }
.gift-box { background: #fff7ec; border: 1px dashed #f0b27a; color: #a65a00; border-radius: 4px; padding: 8px 12px; }
.qty { display: inline-flex; border: 1px solid #ddd; border-radius: 3px; }
.qty button { width: 32px; height: 32px; border: 0; background: #fff; font-size: 16px; }
.qty input { width: 50px; text-align: center; border: 0; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font: inherit; }
.pd-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pd-actions .btn { padding: 12px 26px; }
.pd-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.pd-detail { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pd-detail h3 { background: #fafafa; padding: 8px 12px; font-size: 15px; margin-bottom: 10px; }
.pd-detail ul { padding-left: 20px; margin: 0; }
.pd-detail li { margin-bottom: 6px; }
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

/* ===== Drawer ===== */
#cart-overlay { justify-content: flex-end; padding: 0; }
.drawer { background: #fff; width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; position: relative; animation: slide .25s; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px; display: grid; gap: 10px; }
.c-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.c-item h4 { font-size: 13px; font-weight: 500; }
.c-item small { color: var(--muted); display: block; }
.c-item .p { color: var(--accent); font-weight: 700; }
.c-item .qty button { width: 26px; height: 26px; }
.c-item .qty input { width: 36px; }
.c-remove { background: none; border: 0; color: #999; font-size: 12px; align-self: start; }
.c-remove:hover { color: var(--accent); }
.c-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; }
.sum-row.total { font-size: 18px; font-weight: 700; }
.sum-row.total b { color: var(--accent); }
.drawer-foot select, .checkout input, .checkout textarea { font: inherit; padding: 9px 10px; border: 1px solid #ddd; border-radius: 3px; width: 100%; }
.checkout { display: grid; gap: 8px; }
.checkout .invalid { border-color: var(--accent); }
.form-msg { color: var(--accent); font-size: 13px; min-height: 1em; margin: 0; }
.success { text-align: center; padding: 40px 10px; }
.success .ok { width: 64px; height: 64px; border-radius: 50%; background: #2c9c72; color: #fff; font-size: 32px; display: grid; place-items: center; margin: 0 auto 12px; }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); background: rgba(0,0,0,.78); color: #fff; padding: 18px 26px; border-radius: 6px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== Footer ===== */
.footer { background: #10361d; color: #c4dccb; padding: 36px 0 18px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin-bottom: 8px; }
.footer p { margin: 4px 0; }
.footer a:hover { color: #fff; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 14px; border-radius: 8px; margin-bottom: 10px; }
.footer-logo img { height: 40px; width: auto; }
.shop-avatar img { width: 78%; height: auto; }
.shop-avatar { background: #fff !important; border-color: var(--brand-soft) !important; overflow: hidden; }
.copy { text-align: center; font-size: 12px; opacity: .7; margin-top: 24px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .vouchers { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .pd-img { position: static; max-width: 420px; }
  .quick-links { padding-left: 0; }
}
@media (max-width: 760px) {
  .header-in { gap: 10px; flex-wrap: wrap; }
  .logo img { height: 38px; }
  .tb-label { display: none; }
  .store-btn { font-size: 12px; padding: 3px 10px 3px 7px; }
  .tb-info span:first-child { display: none; }
  .policy + .policy { border-left: 0; }
  .bn-sale-text { width: 62%; }
  .bn-sale-img { height: 55%; right: -4%; }
  .price-tag.t1, .price-tag.t3 { display: none; }
  .bn-green-photo { width: 30%; left: 3%; top: 14%; height: 72%; }
  .check.c1 { left: 29%; }
  .bn-green-text { width: 64%; right: 4%; }
  .bn-green-text h2 { flex-direction: column; align-items: flex-end; gap: 2px; }
  .stack { align-items: flex-end; text-align: right; }
  .big0 { font-size: 48px; }
  .stack b { font-size: 18px; }
  .stack em { font-size: 12px; }
  .g-pills { gap: 5px; margin: 10px 0 12px; }
  .g-pill { padding: 4px 8px 5px; border-radius: 10px; }
  .g-pill b { font-size: 14px; }
  .plus { display: none; }
  .bn-light-text { width: 62%; }
  .bn-light-photo { width: 70%; }
  .side-banner { padding: 12px; }
  .side-banner strong { font-size: 17px; }
  .sb-gift img { width: 36%; }
  .sb-ticket { font-size: 16px !important; padding: 6px 8px; position: absolute; right: 8px; bottom: 10px; }
  .p-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .p-meta { white-space: normal; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .cart-btn { margin-left: auto; }
  .banner-grid { grid-template-columns: 1fr; }
  .side-banners { grid-template-columns: 1fr 1fr; }
  .slider { height: 220px; }
  .slide { padding: 0 20px; }
  .slide img { width: 120px; height: 120px; }
  .slide-text h2 { font-size: 20px; }
  .policies { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .vouchers { grid-template-columns: 1fr; }
  .shop-stats { margin-left: 0; gap: 18px; }
  .pd { padding: 16px; }
  .pd-detail { grid-template-columns: 1fr; }
  .pd-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-in { grid-template-columns: 1fr; }
  .topbar-in span:last-child { display: none; }
}
