/* ===== Giao diện theo template wolf-fan (Sapo) ===== */
:root {
  --main: #0a4732; --second: #34d399; --price: #e30019; --footer: #063a27; --sale: #fe5b02; --yellow: #facc15;
  --text: #1b1b1b; --dark: #212529; --muted: #6b7280; --line: #e5e7eb; --bg: #f2f4f7; --beige: #f7f5f0; --mint: #e8f6ef;
  --r: 16px; --shadow: 0 10px 30px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
body.page-white { background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 12px; }
.only-mobile { display: none !important; }
@media (max-width: 991px) { .only-mobile { display: inline-flex !important; } .only-desktop { display: none !important; } }
.muted { color: var(--muted); }

/* ---------- Topbar (banner ảnh) ---------- */
.topbar { display: block; background: var(--mint) center / cover no-repeat; height: 100px; }
.topbar[hidden] { display: none; }
.topbar.text { height: auto; padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 500; }
@media (max-width: 767px) { .topbar { height: 50px; } }

/* ---------- Header ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 28px; height: 95px; }
.logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--main); }
.logo img { max-height: 64px; width: auto; }
.logo .mark { width: 54px; height: 54px; border-radius: 50%; background: var(--main); color: var(--second); display: grid; place-items: center; }
.logo .txt b { display: block; font-size: 25px; font-weight: 700; line-height: 1.05; letter-spacing: -.3px; text-transform: uppercase; }
.logo .txt small { display: block; font-size: 10.5px; color: var(--text); margin-top: 3px; }
.search { flex: 1; max-width: 636px; position: relative; display: flex; align-items: center; height: 50px; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 0 4px 0 14px; }
.search:focus-within { border-color: var(--main); }
.search-ic { color: var(--muted); display: inline-flex; }
.search input { flex: 1; border: 0; outline: none; height: 100%; padding: 0 12px; font-size: 15px; min-width: 0; background: transparent; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { height: 39px; border: 0; border-radius: 6px; background: var(--main); color: #fff; font-size: 14px; font-weight: 500; padding: 0 24px; display: inline-flex; align-items: center; }
.search-pop { position: absolute; top: calc(100% + 8px); left: -2px; right: -2px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px; display: none; z-index: 60; border: 1px solid var(--line); }
.search-pop.open { display: block; }
.search-pop h6 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: #f3f4f6; font-size: 13px; transition: background .15s, color .15s; }
.chip:hover, .chip.on { background: var(--mint); color: var(--main); }
.search-item { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 8px; font-size: 14px; }
.search-item:hover { background: #f6f7f8; }
.search-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.search-item .p { color: var(--price); font-weight: 600; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.hotline { display: flex; align-items: center; gap: 10px; }
.hotline b { display: block; font-size: 19px; font-weight: 600; color: var(--main); line-height: 1.15; }
.hotline small { display: block; font-size: 13px; color: var(--muted); }
.act { position: relative; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; padding: 0; }
.act-cart { background: var(--mint); color: var(--main); border-radius: 8px; padding: 6px 12px; }
.act .badge { position: absolute; top: -8px; right: -8px; background: var(--second); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.icon-btn { background: none; border: 0; color: var(--main); padding: 4px; }

/* Nav */
.nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; align-items: center; position: relative; }
.nav-track { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.nav-track::-webkit-scrollbar { display: none; }
.nav-item { display: flex; align-items: center; }
.nav-item > a { padding: 14px 10px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; position: relative; transition: color .15s; }
.nav-item > a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--second); transform: scaleX(0); transition: transform .2s; }
.nav-item > a:hover, .nav-item > a.active, .nav-item.hover > a { color: var(--second); }
.nav-item > a.active::after, .nav-item.hover > a::after { transform: scaleX(1); }
.nav-arrows { display: flex; gap: 6px; padding-left: 8px; }
.nav-arrows button { background: none; border: 0; color: var(--text); padding: 4px; display: inline-flex; }
.dropdown { position: absolute; top: 100%; background: #fff; min-width: 240px; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 8px 0; z-index: 55; }
.dropdown a { display: block; padding: 9px 20px; font-size: 14px; }
.dropdown a:hover { color: var(--main); background: #f6f7f8; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 20px 40px rgba(16, 24, 40, .12); z-index: 55; border-radius: 0 0 var(--r) var(--r); }
.mega-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr .95fr 1.1fr; gap: 28px; padding: 22px 24px 18px; }
.mega h5 { margin: 0 0 14px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.mega-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; }
.mega-cats a:hover { color: var(--main); }
.mega-cats .sub { margin-left: auto; color: var(--muted); }
.mega-cats .grp { position: relative; }
.mega-cats .grp-pop { display: none; position: absolute; left: 100%; top: -8px; background: #fff; box-shadow: var(--shadow); border-radius: 12px; padding: 8px 16px; min-width: 230px; z-index: 3; border: 1px solid var(--line); }
.mega-cats .grp-pop a { padding: 7px 0; font-size: 14px; }
.mega-prod { display: flex; gap: 12px; margin-bottom: 10px; }
.mega-prod img { width: 78px; height: 78px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.mega-prod span { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-prod b { color: var(--price); font-size: 14px; }
.mega-prod s { color: #9ca3af; font-size: 12px; margin-left: 6px; }
.mega-prod:hover span { color: var(--main); }
.mega .more { font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.mega-banner { border-radius: 10px; overflow: hidden; display: block; align-self: start; }
.mega-banner img { width: 100%; height: auto; }
.mega-sup a { display: flex; gap: 12px; margin-bottom: 18px; }
.mega-sup b { display: block; font-size: 14px; font-weight: 600; }
.mega-sup small { color: var(--muted); font-size: 12.5px; }
.mega-sup a:hover b { color: var(--main); }

.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service { display: flex; gap: 14px; align-items: center; padding: 18px 16px; }
.service + .service { border-left: 1px solid var(--line); }
.service .ic { color: var(--second); }
.service b { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .2px; }
.service small { font-size: 12.5px; color: var(--muted); }
.mega .services { border-top: 1px solid var(--line); padding: 0 12px; }
@media (max-width: 991px) {
  .nav { display: none; }
  .header-main { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 12px; }
  .search { order: 5; flex-basis: 100%; max-width: none; height: 46px; padding-right: 0; }
  .search button { border-radius: 0 6px 6px 0; height: 46px; margin: -2px -2px -2px 0; padding: 0 14px; }
  .search button .lbl { display: none; }
  .logo .mark { width: 42px; height: 42px; } .logo .txt b { font-size: 20px; }
  .act-label { display: none; } .header-actions { gap: 16px; }
}
@media (min-width: 992px) { .search button svg { display: none; } }

/* ---------- Drawers ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(410px, 90vw); background: #fff; z-index: 100; transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 18px; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); }
.m-group summary { padding: 13px 0; font-weight: 500; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group a { display: block; padding: 11px 0 11px 14px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.m-link { display: block; padding: 13px 0; font-weight: 500; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- Buttons & common ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--main); background: var(--main); color: #fff; font-weight: 500; font-size: 15px; transition: filter .15s, transform .1s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn-outline { background: #fff; color: #1a1a1a; border-color: #cbd5e1; border-radius: 800px; height: 41px; }
.btn-outline:hover { border-color: var(--main); color: var(--main); filter: none; }
.btn-dark { background: #1b1b1b; border-color: #1b1b1b; border-radius: 800px; }
.btn-red { background: #dc2626; border-color: #dc2626; }
.btn-white { background: #fff; color: var(--main); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.price { color: var(--price); font-weight: 600; }
.compare { color: #6b7280; text-decoration: line-through; font-size: 13px; }
.stars { color: #f5b301; display: inline-flex; gap: 1px; }
.stars .off { color: #d1d5db; }
.breadcrumb { font-size: 14px; color: #9ca3af; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a:hover { color: var(--main); }
.breadcrumb > span:last-child { color: var(--main); font-weight: 500; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #eceef0 25%, #f6f7f8 50%, #eceef0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Khối section kiểu template */
.sec { margin-top: 40px; margin-bottom: 40px; }
.box { background: #fff; border-radius: var(--r); padding: 24px; }
.box.beige { background: var(--beige); }
.tag-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #eef2ef; color: var(--main); font-size: 13px; font-weight: 500; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.tag-pill.white { background: #fff; color: var(--text); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-title { margin: 16px 0 0; font-size: 35px; line-height: 1.15; font-weight: 600; color: var(--dark); }
.sec-title span { display: block; color: var(--main); }
.sec-line { width: 40px; height: 2px; background: var(--main); margin: 16px 0; }
.sec-desc { margin: 0; font-size: 16px; white-space: pre-line; }
@media (max-width: 767px) { .sec { margin-top: 24px; margin-bottom: 24px; } .box { padding: 16px; border-radius: 12px; } .sec-title { font-size: 26px; } .sec-head { margin-bottom: 20px; } }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n, 5) - 1) * var(--gap, 12px)) / var(--n, 5)); gap: var(--gap, 12px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.c-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.c-dots:empty { display: none; }
.c-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: #d1d5db; transition: width .25s, background .25s; }
.c-dots button.on { background: var(--main); }
.c-nav { display: flex; gap: 10px; }
.c-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--main); color: #fff; display: grid; place-items: center; transition: opacity .2s; }
.c-btn.prev { background: #5d8a78; }
.c-btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 1199px) { .track { --n: 4 !important; } }
@media (max-width: 991px) { .track { --n: 3 !important; } }
@media (max-width: 767px) { .track { --n: 2 !important; --gap: 10px !important; } }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1199px) { .grid { --cols: 4 !important; } }
@media (max-width: 991px) { .grid { --cols: 3 !important; } }
@media (max-width: 767px) { .grid { --cols: 2 !important; gap: 10px; } }
.card { background: #fff; border: 1px solid #eceef1; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s; min-width: 0; }
.card:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .1); }
.card .thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; display: block; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.card .thumb img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .thumb img.alt { opacity: 1; }
.badge-sale { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--sale); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 0 16px 16px 16px; line-height: 1.3; }
.card .info { padding: 10px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.card .name { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; margin-bottom: 8px; }
.card .name:hover { color: var(--main); }
.rate { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rate b { color: #198754; font-weight: 700; }
.rate .stars svg { width: 15px; height: 15px; }
.card .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 14px 0 16px; }
.card .price { font-size: 18px; font-weight: 600; }
.card .actions { display: flex; gap: 8px; margin-top: auto; }
.card .add { flex: 1; min-width: 0; height: 40px; border-radius: 8px; border: 1px solid var(--main); background: var(--main); color: #fff; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s; }
.card .add:hover { filter: brightness(1.18); }
.card .add[disabled] { cursor: not-allowed; }
.wish { width: 40px; height: 40px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; display: grid; place-items: center; color: #374151; transition: color .15s, border-color .15s; flex-shrink: 0; }
.wish:hover, .wish.on { color: var(--price); border-color: #fca5a5; }
@media (max-width: 767px) { .card .name { font-size: 14px; } .card .price { font-size: 16px; } .card .prices { margin: 10px 0 12px; } .card .add { font-size: 13px; gap: 4px; } .card .add svg { display: none; } }

/* ---------- Hero (Swiper fade 1s, ảnh zoom 5s, chữ hiện lần lượt — theo template) ---------- */
.hero { position: relative; overflow: hidden; background: #ddd; }
.hero-sw { width: 100%; }
.slide { position: relative; height: clamp(460px, 55.5vw, 800px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; transform: scale(1); transition: transform 5s linear; will-change: transform; }
.swiper-slide-active .hero-bg, .hero.single .hero-bg { transform: scale(1.05); }
.slide::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .08) 55%, transparent); }
.slide.img-only::before { display: none; }
.slide.img-only { cursor: pointer; }
.slide .container { position: relative; z-index: 2; width: 100%; }
.slide .tag { display: inline-block; background: #fff; color: var(--text); font-weight: 500; font-size: 14px; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.slide h2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.25; margin: 0 0 16px; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.slide h2 span { color: var(--yellow); display: block; }
.slide p { max-width: 520px; font-size: 17px; margin: 0 0 36px; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.slide .btn { height: 54px; padding: 0 48px; border-radius: 800px; font-size: 16px; font-weight: 600; transition: transform .3s, filter .3s, box-shadow .3s; }
.slide .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.slide .anim { opacity: 0; transform: translateY(30px); transition: opacity .6s cubic-bezier(.25, .46, .45, .94), transform .6s cubic-bezier(.25, .46, .45, .94); }
.swiper-slide-active .anim, .hero.single .anim { opacity: 1; transform: none; }
.swiper-slide-active .anim:nth-child(1) { transition-delay: .1s; } .swiper-slide-active .anim:nth-child(2) { transition-delay: .2s; }
.swiper-slide-active .anim:nth-child(3) { transition-delay: .3s; } .swiper-slide-active .anim:nth-child(4) { transition-delay: .4s; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 5; pointer-events: none; }
.hero-ctrl .container { display: flex; justify-content: space-between; align-items: center; }
.hero-ctrl button, .hero-dots { pointer-events: auto; }
/* chấm điều hướng: chấm đang chọn dài ra, thanh trắng chạy 5s (dừng khi rê chuột) */
.hero-dots { display: flex; position: static !important; width: auto !important; }
.hero-dots .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 6px 0 0 !important; border-radius: 10px; background: rgba(255, 255, 255, .4); opacity: 1; position: relative; overflow: hidden; transition: width .3s ease, background-color .3s ease; }
.hero-dots .swiper-pagination-bullet-active { width: 45px; background: rgba(255, 255, 255, .2); }
.hero-dots .swiper-pagination-bullet-active::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; border-radius: 10px; animation: bulletProgress 5s linear forwards; }
.hero:hover .hero-dots .swiper-pagination-bullet-active::after { animation-play-state: paused; }
@keyframes bulletProgress { to { width: 100%; } }
.h-arrows { display: flex; gap: 10px; }
.h-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); transition: transform .3s, background .3s; overflow: hidden; }
.h-arrows button:hover { transform: scale(1.05); background: rgba(255, 255, 255, .3); }
@media (max-width: 767px) {
  .slide { height: 600px; text-align: center; } .slide::before { background: rgba(0, 0, 0, .3); }
  .hero-bg { background-image: var(--bgm, var(--bg)); }
  .slide p { margin: 0 auto 36px; font-size: 15px; } .h-arrows { display: none; } .hero-ctrl { bottom: 16px; } .hero-ctrl .container { justify-content: center; }
}

/* ---------- Flash sale ---------- */
.flash { background: #fff; border-radius: var(--r); overflow: hidden; }
.flash-head { display: grid; grid-template-columns: 382px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.flash-tab { background: var(--main); color: #fff; padding: 26px 24px; border-radius: 0 110px 0 0; }
.flash-tab h2 { margin: 0; font-size: 40px; font-weight: 800; font-style: italic; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.flash-tab h2 em { color: var(--second); }
.flash-tab h2 svg { color: var(--yellow); }
.flash-tab p { margin: 6px 0 12px; font-size: 17px; font-weight: 500; text-transform: uppercase; }
.flash-tab .today { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .12); padding: 3px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.timer { text-align: center; }
.timer h6 { margin: 0 0 10px; font-size: 17px; font-weight: 600; text-transform: uppercase; }
.countdown { display: flex; gap: 10px; align-items: flex-start; justify-content: center; }
.countdown .u { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.countdown .u b { min-width: 75px; text-align: center; background: var(--main); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 28px; font-weight: 700; letter-spacing: 1.5px; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.countdown .u small { font-size: 16px; font-weight: 600; color: var(--main); text-transform: uppercase; }
.countdown .sep { font-size: 28px; font-weight: 700; padding: 8px 4px; }
.flash-head .c-nav { padding-right: 24px; }
.flash-body { padding: 16px 16px 24px; }
.btn-deal { display: flex; width: min(400px, 100%); margin: 20px auto 0; height: 56px; border-radius: 800px; font-weight: 700; text-transform: uppercase; font-size: 16px; }
.btn-deal svg:first-child { color: var(--yellow); }
@media (max-width: 991px) { .flash-head { grid-template-columns: 1fr; } .flash-tab { border-radius: var(--r) var(--r) 0 0; text-align: center; padding: 20px; } .flash-tab h2 { justify-content: center; font-size: 32px; } .timer { padding: 18px 0; } .flash-head .c-nav { display: none; } .countdown .u b { min-width: 62px; font-size: 22px; } }

/* ---------- Danh mục (coverflow) ---------- */
/* Swiper vòng lặp: thẻ giữa 1.05, hai bên 0.85 + mờ 70% (thông số đo từ template) */
.cat-swiper { padding: 24px 8px; margin: -8px -8px 0; }
.cat-swiper .swiper-slide { height: auto; transform: scale(.85); opacity: .7; transition: transform .4s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
.cat-swiper .swiper-slide-active { transform: scale(1.05); opacity: 1; z-index: 2; }
.cat-swiper .swiper-slide-active .cat-card { box-shadow: 0 15px 35px rgba(11, 81, 49, .08); }
.cat-swiper-wrap { position: relative; }
/* Nút mũi tên: tròn trắng 50px, hiện khi rê chuột vào khối (như template) */
.cat-nav { position: absolute; top: calc(50% - 25px - 13px); z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: #1b1b1b; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(28, 28, 28, .15); opacity: 0; transition: opacity .3s, background .2s, color .2s, transform .2s; }
.cat-nav.prev { left: -3px; } .cat-nav.next { right: -3px; }
.cat-swiper-wrap:hover .cat-nav, .cat-nav:focus-visible { opacity: 1; }
.cat-nav:hover { background: var(--main); color: #fff; }
.cat-nav:active { transform: scale(.94); }
@media (hover: none) { .cat-nav { opacity: 1; width: 40px; height: 40px; } }
.cat-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.cat-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #9ca3af; opacity: .5; transition: opacity .2s, background .2s; }
.cat-dots button.on { background: var(--main); opacity: 1; }
.cat-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; transition: box-shadow .4s; display: flex; flex-direction: column; -webkit-user-drag: none; }
.cat-card img { -webkit-user-drag: none; user-select: none; }
.cat-card .img { aspect-ratio: 1; overflow: hidden; }
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .img img { transform: scale(1.05); }
.cat-card .bd { padding: 16px 12px 18px; }
.cat-card b { display: block; font-size: 17px; font-weight: 600; text-transform: uppercase; color: var(--dark); }
.cat-card small { display: block; color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.cat-card .btn-outline { height: 40px; padding: 0 32px; font-size: 14px; }
@media (max-width: 767px) { .cat-card b { font-size: 14px; } .cat-card .btn-outline { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .cat-swiper .swiper-slide { transition: none; } }

/* ---------- Bộ sưu tập ---------- */
.collection { display: grid; grid-template-columns: 1fr 432px; background: var(--beige); border-radius: var(--r); overflow: hidden; }
.collection .left { padding: 24px; }
.col-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 48px; }
.col-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 260 / 218; padding: 30px 24px; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.col-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 30%, rgba(255, 255, 255, .2)); }
.col-card > * { position: relative; }
.col-card small { font-size: 13px; font-weight: 500; text-transform: uppercase; padding-bottom: 4px; border-bottom: 2px solid var(--main); align-self: flex-start; }
.col-card b { font-size: 21px; font-weight: 600; color: var(--main); line-height: 1.25; margin-top: 10px; }
.col-card .go { margin-top: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.col-card:hover .go { transform: translateX(4px); }
.collection .right { background: #e9dccb center / cover; min-height: 420px; }
@media (max-width: 1199px) { .collection { grid-template-columns: 1fr; } .collection .right { min-height: 300px; } }
@media (max-width: 767px) { .col-cards { grid-template-columns: 1fr; gap: 12px; margin: 20px 0 28px; } .col-card { aspect-ratio: 16 / 7; } }

.wide-banner { display: block; border-radius: var(--r); overflow: hidden; }
.wide-banner img { width: 100%; height: auto; }

/* ---------- Khối sản phẩm: banner trái ---------- */
.bl { display: grid; grid-template-columns: 405px minmax(0, 1fr); gap: 16px; }
.bl-left { display: flex; flex-direction: column; }
.bl-img { flex: 1; margin-top: 28px; border-radius: var(--r); background: #ddd center / cover; min-height: 360px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32px; }
.bl .grid { --cols: 3; align-content: start; }
@media (max-width: 1199px) { .bl { grid-template-columns: 1fr; } .bl-img { min-height: 260px; } .bl .grid { --cols: 4; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.split .left { background: #ddd center / cover; display: grid; place-items: center; padding: 60px 20px; }
.split .one { width: 320px; max-width: 100%; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, .15); }
.split .one .card { border: 0; box-shadow: none; animation: fadeUp .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.split .right { background: #f3f5f2; display: flex; align-items: center; padding: 60px clamp(24px, 8vw, 116px); }
.split .lbl { font-size: 14px; font-weight: 500; color: var(--main); letter-spacing: 2px; text-transform: uppercase; }
.split .sec-title { font-size: 38px; margin-top: 10px; }
.split .sec-line { margin: 26px 0; }
.split .btn { height: 56px; padding: 0 48px; border-radius: 800px; margin-top: 30px; }
.pager-num { display: flex; align-items: center; gap: 16px; margin-top: 110px; font-weight: 700; color: var(--main); }
.pager-num button { background: none; border: 0; color: var(--main); display: inline-flex; padding: 4px; }
.pager-num .tot { color: #9ca3af; font-weight: 500; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } .split .right { padding: 36px 20px; } .pager-num { margin-top: 28px; } .split .sec-title { font-size: 28px; } }

/* banner top */
.bt-top { display: grid; grid-template-columns: minmax(0, 1fr) 756px; margin: -24px -24px 24px; }
.bt-top .txt { padding: 24px; }
.bt-top .img { background: #ddd center / cover; min-height: 378px; border-radius: 0 var(--r) 0 0; }
@media (max-width: 1199px) { .bt-top { grid-template-columns: 1fr; } .bt-top .img { min-height: 240px; border-radius: 0; order: -1; } }
@media (max-width: 767px) { .bt-top { margin: -16px -16px 16px; } }

/* ---------- Video ---------- */
.v-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; }
.v-card .th { position: relative; aspect-ratio: 237 / 297; background: #ddd center / cover; display: grid; place-items: center; }
.v-card .play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--main); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .2s; }
.v-card:hover .play { transform: scale(1.12); }
.v-card .dur { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.v-card .bd { padding: 16px; }
.v-card h4 { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-card .ch { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.v-card .ch svg { color: #16a34a; }
.v-card .vw { font-size: 13px; color: var(--muted); margin-top: 6px; }
.v-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); z-index: 150; display: grid; place-items: center; padding: 16px; }
.v-modal .fr { width: min(960px, 100%); aspect-ratio: 16 / 9; position: relative; }
.v-modal iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.v-modal .x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; }

/* ---------- Tin tức ---------- */
.news-wrap { display: grid; grid-template-columns: 616px minmax(0, 1fr); gap: 16px; }
.news-feat { position: relative; border-radius: var(--r); overflow: hidden; min-height: 600px; color: #fff; }
.news-feat .sl { position: absolute; inset: 0; background: #555 center / cover; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.news-feat .sl.on { opacity: 1; pointer-events: auto; }
.news-feat .sl::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .75)); }
.news-feat .sl > * { position: relative; }
.news-feat h3 { margin: 14px 0 12px; font-size: 19px; font-weight: 600; }
.news-feat p { margin: 0 0 20px; font-size: 16px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 560px; }
.news-feat .row { display: flex; justify-content: space-between; align-items: center; }
.news-feat .btn-white { height: 40px; padding: 0 24px; border-radius: 800px; color: var(--text); }
.news-feat .nv { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.news-feat .nv button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff; background: transparent; color: #fff; display: grid; place-items: center; }
.date-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--text); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.n-card { border: 1px solid #eceef1; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; background: #fff; }
.n-card .im { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 282 / 188; }
.n-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.n-card:hover .im img { transform: scale(1.05); }
.n-card .date-pill { position: absolute; left: 8px; bottom: 8px; }
.n-card h4 { margin: 10px 0 8px; font-size: 16px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-card .ex { font-size: 14px; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-card .rd { color: var(--main); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.n-card:hover h4 { color: var(--main); }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199px) { .news-wrap { grid-template-columns: 1fr; } .news-feat { min-height: 420px; } }
@media (max-width: 991px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .news-grid, .news-list { grid-template-columns: 1fr; } }

/* ---------- Listing ---------- */
.cat-hero { display: grid; grid-template-columns: minmax(0, 1fr) 736px; gap: 60px; align-items: center; padding: 10px 0 30px; }
.cat-hero h1 { margin: 0 0 16px; font-size: 28px; font-weight: 600; }
.cat-hero p { margin: 0; font-size: 16px; line-height: 1.6; }
.cat-hero .bn { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 736 / 316; background: var(--mint); }
.cat-hero .bn a { position: absolute; inset: 0; background: center / cover; opacity: 0; transition: opacity .6s; }
.cat-hero .bn a.on { opacity: 1; }
.cat-hero .bn .dts { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(0, 0, 0, .25); padding: 6px 10px; border-radius: 999px; }
.cat-hero .bn .dts i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.cat-hero .bn .dts i.on { background: #fff; }
@media (max-width: 1199px) { .cat-hero { grid-template-columns: 1fr; gap: 20px; } }
.cc .track { --n: 6; --gap: 18px; padding: 2px 2px 12px; }
.cc-card { border: 1px solid #eceef1; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); background: #fff; display: flex; flex-direction: column; }
.cc-card.on { border-color: var(--main); }
.cc-card .im { aspect-ratio: 1; overflow: hidden; }
.cc-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cc-card:hover .im img { transform: scale(1.05); }
.cc-card .bd { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.cc-card b { font-size: 16px; font-weight: 600; min-height: 40px; line-height: 1.25; }
.cc-card small { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.cc-card span { font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; margin-top: auto; }
.filterbar { display: flex; gap: 16px; flex-wrap: wrap; border: 1px solid #eceef1; border-radius: 10px; padding: 8px; margin: 36px 0 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); background: #fff; }
.filterbar .lbl { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--main); color: #fff; font-weight: 500; border: 0; }
.fdrop { position: relative; }
.fdrop > button { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-weight: 500; }
.fdrop > button.has { border-color: var(--main); color: var(--main); }
.fdrop .pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; z-index: 20; border: 1px solid var(--line); }
.fdrop.open .pop { display: block; }
.fdrop label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.fdrop input { accent-color: var(--main); width: 16px; height: 16px; }
.sortbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 15px; }
.sorts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sorts button { border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; padding: 4px 8px; font-weight: 500; font-size: 15px; }
.sorts button.on { background: var(--main); color: #fff; border-color: var(--main); }
.sorts i { width: 4px; height: 4px; border-radius: 50%; background: #9ca3af; margin: 0 4px; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 28px 0; }
.pager button { min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 500; }
.pager button.on { background: var(--main); color: #fff; border-color: var(--main); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 531px minmax(0, 1fr); gap: 16px; padding-top: 18px; }
.gallery .main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f6f7f7; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.gallery .thumbs button { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #f6f7f7; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery .thumbs button.on { border-color: var(--main); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 16px; }
.share a { width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; color: #fff; }
.pd h1 { font-size: 28px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: #4b5563; }
.pd-meta i { width: 1px; height: 14px; background: #9ca3af; }
.pd-meta b { color: var(--main); font-weight: 600; }
.pd-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 18px; }
.pd-price .price { font-size: 34px; font-weight: 700; }
.pd-price .compare { font-size: 16px; }
.pd-price .off { background: #fff1e6; color: var(--sale); padding: 2px 10px; border-radius: 6px; font-size: 15px; font-weight: 600; }
.commits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.commit { display: flex; gap: 14px; align-items: center; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 10px; }
.commit .ic { color: var(--main); }
.commit b { display: block; color: var(--main); font-weight: 600; font-size: 15px; }
.commit small { font-size: 13px; color: #4b5563; }
.promo-box { background: #fef6f6; border-radius: 12px; padding: 16px 16px 12px; margin-bottom: 24px; }
.promo-box h4 { margin: 0 0 10px; color: #dc2626; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.promo-box ol { list-style: none; margin: 0; padding: 0; }
.promo-box li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 15px; }
.promo-box li i { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #dc2626; color: #fff; font-size: 12px; font-style: normal; display: grid; place-items: center; margin-top: 2px; }
.qty-row { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; margin-bottom: 24px; }
.qty { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; height: 40px; background: #fff; }
.qty button { width: 38px; border: 0; background: #fff; display: grid; place-items: center; }
.qty input { width: 72px; text-align: center; border: 0; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; outline: none; font-weight: 600; }
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.buy-row .btn { height: 65px; border-radius: 4px; font-size: 17px; font-weight: 600; text-transform: uppercase; flex-direction: column; gap: 0; line-height: 1.25; }
.buy-row .btn span { display: inline-flex; align-items: center; gap: 10px; }
.buy-row .btn small { font-size: 13px; font-weight: 400; text-transform: none; }
.pd-links { display: flex; gap: 26px; margin: 18px 0; font-size: 15px; flex-wrap: wrap; }
.pd-links a, .pd-links button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; }
.pd-links .on { color: var(--price); }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--sale); color: var(--sale); background: #fff7f2; border-radius: 6px; padding: 4px 6px 4px 10px; font-size: 13px; font-weight: 600; }
.vchip button { border: 0; background: var(--sale); color: #fff; border-radius: 4px; font-size: 11px; padding: 2px 8px; }
.pd-banner { display: block; margin: 40px 0; border-radius: 12px; overflow: hidden; }
.pd-banner img { width: 100%; }
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 421px; gap: 16px; align-items: start; }
.blk-h { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; margin: 0 0 16px; }
.blk-h .ic, .acc .ic { width: 40px; height: 40px; border-radius: 50%; background: #eef2ef; display: grid; place-items: center; color: var(--main); }
.desc-wrap { position: relative; max-height: 560px; overflow: hidden; }
.desc-wrap.open { max-height: none; }
.desc-wrap:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.desc-more { display: flex; justify-content: center; padding: 10px 0 20px; border-bottom: 1px solid var(--line); }
.desc-more .btn-outline { border-color: var(--main); color: var(--main); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 20px; font-weight: 500; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { margin-left: auto; transition: transform .2s; }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc .content { padding: 0 0 16px; }
.content { line-height: 1.7; overflow-wrap: anywhere; font-size: 16px; }
.content img { height: auto; border-radius: 8px; margin: 10px auto; }
.content h2 { font-size: 22px; font-weight: 500; margin: 24px 0 12px; }
.content h3 { font-size: 20px; font-weight: 500; }
.content blockquote { border-left: 4px solid var(--second); margin: 12px 0; padding: 8px 16px; background: #f6f7f8; }
.content table { border-collapse: collapse; width: 100%; }
.content td, .content th { border: 1px solid var(--line); padding: 8px; }
.content iframe { max-width: 100%; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs tr:nth-child(odd) td { background: #f6f7f8; }
.specs td:first-child { width: 40%; color: var(--muted); }
.reviews { padding: 28px 0; text-align: center; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; text-align: left; }
.review .reply { background: #f6f7f8; border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: 14px; }
.rv-form { text-align: left; max-width: 640px; margin: 20px auto 0; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 10px; }
.star-input input { display: none; }
.star-input label { font-size: 30px; color: #d1d5db; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5b301; }
.side-news h3 { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 500; margin: 0 0 16px; }
.side-news h3 a { font-size: 14px; color: var(--main); display: inline-flex; gap: 4px; align-items: center; }
.sn { display: flex; gap: 8px; border: 1px solid #eceef1; border-radius: 6px; padding: 8px; margin-bottom: 16px; }
.sn img { width: 160px; aspect-ratio: 160 / 107; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sn b { font-size: 15px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn small { font-size: 14px; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.sn:hover b { color: var(--main); }
.h-up { font-size: 24px; font-weight: 500; text-transform: uppercase; margin: 40px 0 16px; }
@media (max-width: 1199px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pd-body { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .pd { grid-template-columns: minmax(0, 1fr); } .commits { grid-template-columns: 1fr; } .pd h1 { font-size: 22px; } .pd-price .price { font-size: 28px; } .buy-row .btn { height: 56px; font-size: 15px; } .sn img { width: 120px; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.input, .field input, .field select, .field textarea { height: 46px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 14px; background: #fff; outline: none; width: 100%; font-size: 15px; }
.field textarea { height: auto; padding: 10px 14px; min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px rgba(10, 71, 50, .12); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--main); background: #f0fbf6; }
.radio-card input { accent-color: var(--main); margin-top: 4px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; padding-bottom: 20px; }
@media (max-width: 991px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cart-line .nm { font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; }
.cart-line .rm { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0; }
.cart-line .qty { height: 32px; }
.cart-line .qty button { width: 30px; }
.cart-line .qty input { width: 40px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; gap: 12px; }
.sum-row.total { font-size: 19px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.sum-row.total span:last-child { color: var(--price); }
.warn { background: #fff7ed; color: #9a3412; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.ok-msg { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.voucher-input { display: flex; gap: 8px; }
.voucher-input input { flex: 1; }
.voucher-input .btn { height: 46px; padding: 0 18px; }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.voucher { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--sale); background: #fff; border-radius: 10px; padding: 10px 12px; }
.voucher .code { background: var(--sale); color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.voucher .t { flex: 1; font-size: 14px; }
.voucher button { border: 1px solid var(--main); background: #fff; color: var(--main); border-radius: 6px; font-size: 12px; padding: 4px 10px; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 421px; gap: 24px; align-items: start; padding-bottom: 20px; }
.article h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
@media (max-width: 991px) { .article-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #fff; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.05fr 1fr 1.25fr; gap: 40px; padding: 48px 0 36px; }
.footer .logo { color: #fff; margin-bottom: 20px; }
.footer .logo .mark { background: #fff; color: var(--main); }
.footer .logo .txt small { color: #fff; }
.footer p { font-size: 15px; margin: 0 0 8px; line-height: 1.55; }
.footer h4 { margin: 0 0 24px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 35px; height: 3px; border-radius: 2px; background: var(--second); }
.footer-links a { display: block; padding: 6px 0; font-size: 15px; transition: color .15s, padding .15s; }
.footer-links a:hover { color: var(--second); padding-left: 4px; }
.f-contact div { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.f-contact .ic { opacity: .8; margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); display: grid; place-items: center; transition: background .15s; }
.socials a:hover { background: rgba(255, 255, 255, .15); }
.qr { background: #fff; color: var(--text); border-radius: 8px; padding: 14px; display: flex; gap: 14px; align-items: center; margin-bottom: 20px; font-size: 15px; }
.qr img { width: 72px; height: 72px; }
.footer .services { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .service { padding: 24px 0; }
.footer .service + .service { border-left: 0; }
.footer .service small { color: rgba(255, 255, 255, .75); }
.copyright { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.paybadges { display: flex; gap: 8px; }
.paybadges span { background: #fff; color: var(--main); border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
@media (max-width: 1199px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; } .services { grid-template-columns: 1fr 1fr; } .service + .service { border-left: 0; } }

/* ---------- Floating, popup, toast ---------- */
.floating { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 40; }
.floating a, .floating button, .floating-left a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.fl-top { background: var(--main); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(10px); }
.fl-top.show { opacity: 1; pointer-events: auto; transform: none; }
.fl-contact { background: #fff; color: var(--main); }
.floating-left { position: fixed; left: 20px; bottom: 20px; z-index: 40; }
.floating-left a { background: var(--main); color: #fff; }
.np { position: fixed; right: 30px; bottom: 30px; z-index: 120; width: min(650px, calc(100vw - 32px)); display: grid; grid-template-columns: 271px 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: npIn .4s cubic-bezier(.2, .9, .3, 1.1); }
.np .im { background: #eef2ef center / cover; min-height: 320px; }
.np .bd { padding: 32px 30px 24px; position: relative; }
.np .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); }
.np small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.np h3 { margin: 4px 0 6px; font-size: 32px; font-weight: 700; color: var(--main); text-transform: uppercase; letter-spacing: .5px; }
.np p { margin: 0 0 24px; font-size: 15px; }
.np .em { display: flex; align-items: center; gap: 10px; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 14px; height: 46px; margin-bottom: 16px; color: var(--muted); }
.np .em input { flex: 1; border: 0; outline: none; height: 100%; min-width: 0; }
.np .btn { width: 100%; height: 50px; border-radius: 6px; font-weight: 700; text-transform: uppercase; }
.np .note { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .np { grid-template-columns: 1fr; right: 16px; bottom: 16px; } .np .im { display: none; } .np h3 { font-size: 26px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   HIỆU ỨNG CHUYỂN ĐỘNG — thông số lấy từ CSS của template wolf-fan
   ===================================================================== */
:root { --bounce: cubic-bezier(.18, .89, .32, 1.28); --smooth: cubic-bezier(.25, .46, .45, .94); }

/* Menu xổ: trượt lên + nảy nhẹ 0.3s; menu Sản phẩm trượt lên; danh mục con trượt ngang */
.flyout { display: block; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); transition: opacity .3s var(--bounce), transform .3s var(--bounce), visibility .3s; }
.flyout.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dropdown { border-radius: 8px; border: 1px solid var(--line); padding: 10px 0; min-width: 230px; margin-top: -1px; box-shadow: 0 12px 30px rgba(0, 0, 0, .06); }
.dropdown a { transition: color .2s, background .2s, padding .2s; }
.dropdown a:hover { padding-left: 24px; }
.mega { border: 1px solid var(--line); border-top: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .06); overflow: visible; }
.nav-item > a svg { transition: transform .3s ease; }
.nav-item.hover > a svg { transform: rotate(180deg); }
.nav-item > a::after { transition: transform .3s; }
.mega-cats .grp-pop { display: block; opacity: 0; visibility: hidden; transform: translateX(10px); transition: opacity .3s var(--bounce), transform .3s var(--bounce), visibility .3s; }
.mega-cats .grp:hover .grp-pop { opacity: 1; visibility: visible; transform: translateX(0); }
.mega-cats .sub svg { transition: transform .2s ease; }
.mega-cats a:hover .sub svg { transform: translateX(3px); }
.mega-prod img { transition: transform .4s ease; }
.mega-prod:hover img { transform: scale(1.06); }
.mega-banner img { transition: transform .6s var(--smooth); }
.mega-banner:hover img { transform: scale(1.04); }
.search-pop.open { animation: fadeInDropdown .2s ease-in-out; }
@keyframes fadeInDropdown { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.search-item img { transition: transform .4s ease; }
.search-item:hover img { transform: scale(1.08); }
.chip { transition: all .2s ease; }
.act, .hotline { transition: color .2s; }
.act:hover { color: var(--main); }

/* Nút có mũi tên: mũi tên trượt sang phải */
.btn svg:last-child, .rd svg, .n-card .rd svg, .side-news h3 a svg { transition: transform .3s ease; }
.btn:hover svg:last-child, .n-card:hover .rd svg, .side-news h3 a:hover svg { transform: translateX(4px); }
.btn-deal:hover svg:last-child { transform: translateX(6px); }
.btn-deal { transition: all .3s ease; }
.btn-deal:hover { filter: brightness(1.15); box-shadow: 0 8px 20px rgba(10, 71, 50, .25); }

/* Icon mũi tên của slider: chạy ra phải rồi vào lại từ trái (animateIconInline) */
@keyframes iconInline { 0% { opacity: 1; transform: translateX(0); } 50% { opacity: 0; transform: translateX(100%); } 51% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes iconInlineRev { 0% { opacity: 1; transform: translateX(0); } 50% { opacity: 0; transform: translateX(-100%); } 51% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }
.sw-nav, .cat-nav, .c-btn, .h-arrows button, .split-ctrl button, .news-feat .nv button { overflow: hidden; }
.sw-nav.next:hover svg, .cat-nav.next:hover svg, .c-btn.next:hover svg, .h-next:hover svg, .sp-next:hover svg, .nf-next:hover svg { animation: iconInline .35s ease-in-out forwards; }
.sw-nav.prev:hover svg, .cat-nav.prev:hover svg, .c-btn.prev:hover svg, .h-prev:hover svg, .sp-prev:hover svg, .nf-prev:hover svg { animation: iconInlineRev .35s ease-in-out forwards; }
.c-btn { transition: all .3s ease; }
.c-btn:hover { transform: scale(1.05); }
.c-btn.swiper-button-disabled { opacity: .45; cursor: default; transform: none; }
.c-btn.swiper-button-lock { display: none; }

/* Slider sản phẩm (Flash sale, hàng sản phẩm, sản phẩm tương tự…) */
.fl-sw, .p-slider .swiper, .v-sw { padding: 2px; margin: -2px; }
.fl-sw .swiper-slide, .p-slider .swiper-slide, .v-sw .swiper-slide { height: auto; }
.fl-sw .card, .p-slider .card, .p-slider .cc-card { height: 100%; }
.p-slider { position: relative; }
.p-slider .swiper-pagination, .fl-dots { position: static !important; margin-top: 18px; display: flex; justify-content: center; gap: 0; }
.p-slider .swiper-pagination-lock, .fl-dots.swiper-pagination-lock { display: none; }
.swiper-pagination-bullet { width: 8px; height: 8px; background: #9ca3af; opacity: .5; transition: opacity .2s, background .2s, width .3s; }
.swiper-pagination-bullet-active { background: var(--main); opacity: 1; }
.sw-nav { position: absolute; top: calc(50% - 25px - 13px); z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: #1b1b1b; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(28, 28, 28, .15); opacity: 0; transition: opacity .3s, background .2s, color .2s; }
.sw-nav.prev { left: -14px; } .sw-nav.next { right: -14px; }
.p-slider:hover .sw-nav { opacity: 1; }
.sw-nav:hover { background: var(--main); color: #fff; }
.p-slider:hover .sw-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
.sw-nav.swiper-button-lock { display: none; }
@media (hover: none) { .sw-nav { opacity: 1; width: 38px; height: 38px; } .sw-nav.swiper-button-disabled { opacity: 0; } .sw-nav.prev { left: -4px; } .sw-nav.next { right: -4px; } }
.swiper { cursor: auto; }
.swiper-grab, .swiper-horizontal.swiper-pointer-events { touch-action: pan-y; }

/* Thẻ sản phẩm: bóng đổ, nút "Xem nhanh" trượt lên, nút mua nhấc lên */
.card { transition: box-shadow .3s ease, border-color .3s ease; }
.card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.thumb-wrap { position: relative; }
.card .thumb { background: linear-gradient(90deg, #f3f4f6 25%, #fafafa 50%, #f3f4f6 75%) 0 0 / 200% 100%; }
.card .thumb img { transition: opacity .5s ease-in-out, transform .4s ease; }
.card .thumb img.alt { transition: opacity .4s ease; }
.qa { position: absolute; left: 0; right: 0; bottom: 15px; z-index: 3; display: flex; justify-content: center; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .3s ease; }
.card:hover .qa, .card:focus-within .qa { opacity: 1; visibility: visible; transform: translateY(0); }
.qv { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: #fff; color: var(--text); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 10px rgba(0, 0, 0, .08); transition: all .3s ease; }
.qv:hover { background: var(--main); border-color: var(--main); color: #fff; }
.card .add { transition: transform .3s ease, box-shadow .3s ease, opacity .3s; }
.card .add:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(6, 58, 39, .2); opacity: .92; filter: none; }
.wish { transition: all .3s ease; }
.wish:hover { transform: translateY(-2px); }
.wish.on svg { fill: currentColor; animation: heartPop .4s var(--bounce); }
@keyframes heartPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@media (hover: none) { .qa { display: none; } }

/* Ảnh: hiện mờ dần khi tải xong */
img.fi { opacity: 0; transition: opacity .5s ease-in-out, transform .4s ease; }
img.fi.ld { opacity: 1; }
.cat-card .img, .cc-card .im, .n-card .im { background: linear-gradient(90deg, #f3f4f6 25%, #fafafa 50%, #f3f4f6 75%) 0 0 / 200% 100%; }

/* Lớp ảnh nền để zoom khi rê chuột */
.zbg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--smooth); }
.col-card { background: #fff; }
.col-card .zbg { z-index: 0; }
.col-card::before { z-index: 1; }
.col-card > *:not(.zbg) { position: relative; z-index: 2; }
.col-card:hover .zbg { transform: scale(1.08); }
.col-card .go svg { transition: transform .3s ease; }
.col-card:hover .go { transform: none; }
.col-card:hover .go svg { transform: translateX(4px); }
.collection .right { position: relative; overflow: hidden; background: #e9dccb; }
.collection:hover .right .zbg { transform: scale(1.04); }
.bl-img { position: relative; overflow: hidden; background: none; }
.bl-img .btn { position: relative; z-index: 1; }
.bl-img:hover .zbg { transform: scale(1.05); }
.bt-top .img { position: relative; overflow: hidden; background: none; }
.bt-top .img:hover .zbg { transform: scale(1.05); }
.cat-card .img img { transition: opacity .5s ease-in-out, transform .4s; }
.cat-card .btn-outline { transition: all .3s ease; }
.cat-card:hover .btn-outline { background: var(--main); color: #fff; border-color: var(--main); }
.cc-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.cc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.cc-card span svg { transition: transform .3s ease; }
.cc-card:hover span svg { transform: translateX(4px); }
.wide-banner img { transition: transform .6s var(--smooth), opacity .5s; }
.wide-banner:hover img { transform: scale(1.02); }

/* Sản phẩm yêu thích: chuyển mờ dần; thẻ nổi lên; chữ trượt vào lần lượt */
.split-sec { position: relative; }
.split-sw .swiper-slide { background: #f3f5f2; }
.split .one .card { animation: none; }
.split .one { transform: translateY(20px); opacity: 0; transition: all .8s var(--smooth); }
.swiper-slide-active .split .one { transform: translateY(0); opacity: 1; transition-delay: .2s; }
.split .right { transition: background-color .8s ease; }
.split .cw-wrap > * { opacity: 0; transform: translateX(-20px); transition: all .6s var(--smooth); }
.swiper-slide-active .split .cw-wrap > * { opacity: 1; transform: translateX(0); }
.swiper-slide-active .split .cw-wrap > :nth-child(1) { transition-delay: .1s; } .swiper-slide-active .split .cw-wrap > :nth-child(2) { transition-delay: .2s; }
.swiper-slide-active .split .cw-wrap > :nth-child(3) { transition-delay: .3s; } .swiper-slide-active .split .cw-wrap > :nth-child(4) { transition-delay: .4s; }
.swiper-slide-active .split .cw-wrap > :nth-child(5) { transition-delay: .5s; } .swiper-slide-active .split .cw-wrap > :nth-child(6) { transition-delay: .6s; }
.split .sec-title.l2 { margin-top: 0; color: var(--main); }
.split .sec-title:not(.l2) { margin-bottom: 0; }
.split .right .btn { transition: transform .3s, filter .3s; }
.split .right .btn:hover { transform: translateY(-2px); }
.split-ctrl { position: absolute; z-index: 5; left: calc(50% + clamp(24px, 8vw, 116px)); bottom: 70px; display: flex; align-items: center; gap: 16px; font-weight: 700; color: var(--main); }
.split-ctrl button { background: none; border: 0; color: var(--main); display: inline-flex; padding: 4px; }
.sp-frac { position: static !important; width: auto !important; font-size: 16px; }
.sp-frac .swiper-pagination-total { color: #9ca3af; font-weight: 500; }
@media (max-width: 991px) { .split-ctrl { left: 20px; bottom: 24px; } .split .right { padding-bottom: 80px; } }

/* Video: thẻ nhấc lên, ảnh zoom, nút play phóng to */
.v-sec .sec-head { align-items: flex-end; }
.v-ctrl { display: flex; gap: 10px; }
.v-card { width: 100%; height: 100%; transition: transform .3s ease, box-shadow .3s ease; }
.v-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
.v-card .th { overflow: hidden; background: #ddd; }
.v-card .th .zbg { transition: transform .6s var(--smooth); }
.v-card:hover .th .zbg { transform: scale(1.05); }
.v-card .play, .v-card .dur { position: relative; z-index: 1; }
.v-card .dur { position: absolute; }
.v-card .play { transition: all .3s ease; }
.v-card:hover .play { transform: scale(1.15); }

/* Tin tức: tin nổi bật chuyển mờ dần, ảnh zoom rất chậm; thẻ tin nhấc lên */
.news-feat .nf-sw { position: absolute; inset: 0; }
.news-feat .sl { position: relative; inset: auto; height: 100%; opacity: 1; pointer-events: auto; transition: none; overflow: hidden; background: #555; }
.news-feat .fimg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 10s ease; }
.news-feat:hover .fimg { transform: scale(1.05); }
.news-feat .sl::before { z-index: 1; }
.news-feat .sl > *:not(.fimg) { position: relative; z-index: 2; }
.news-feat .nv { position: absolute; right: 24px; bottom: 24px; z-index: 5; color: #fff; }
.nf-frac { position: static !important; width: auto !important; color: #fff; font-weight: 600; }
.news-feat .nv button { transition: background .3s, color .3s; }
.news-feat .nv button:hover { background: #fff; color: var(--text); }
.news-feat .btn-white { transition: transform .3s; }
.n-card { transition: transform .3s ease, box-shadow .3s ease; }
.n-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
.n-card .im img { transition: opacity .5s ease-in-out, transform .6s ease; }
.n-card:hover .im img { transform: scale(1.05); }
.sn img { transition: transform .4s ease; }
.sn { transition: box-shadow .3s, transform .3s; overflow: hidden; }
.sn:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .06); transform: translateY(-2px); }

/* Footer */
.socials a { transition: transform .3s ease, background .3s; }
.socials a:hover { transform: translateY(-3px); }
.footer-links a { transition: all .3s ease; }

/* Giỏ hàng trượt mượt; nền mờ */
.drawer { transition: transform .35s var(--smooth); box-shadow: -5px 0 15px rgba(0, 0, 0, .05); }
.drawer-mask { transition: opacity .3s ease, visibility .3s ease; backdrop-filter: blur(2px); }

/* Popup nhận mã: trượt lên mờ dần */
.np { animation: none; opacity: 0; transform: translateY(20px); transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1); }
.np.show { opacity: 1; transform: translateY(0); }
.np .x { transition: transform .2s; } .np .x:hover { transform: rotate(90deg); }
.np .btn { transition: all .3s; }
/* Video modal & xem nhanh */
.v-modal { opacity: 0; transition: opacity .3s ease; }
.v-modal.show { opacity: 1; }
.v-modal .fr { transform: scale(.94); transition: transform .4s var(--bounce); }
.v-modal.show .fr { transform: scale(1); }
.qvm { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(2px); }
.qvm.show { opacity: 1; }
.qv-box { background: #fff; border-radius: 16px; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; position: relative; transform: translateY(20px) scale(.97); transition: transform .4s var(--bounce); }
.qvm.show .qv-box { transform: none; }
.qv-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f3f4f6; display: grid; place-items: center; transition: transform .2s, background .2s; }
.qv-x:hover { transform: rotate(90deg); background: #e5e7eb; }
.qv-main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f6f7f7; }
.qv-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.qv-th { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.qv-th button { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; opacity: .7; transition: opacity .2s, border-color .2s; }
.qv-th button.on { border-color: var(--main); opacity: 1; }
.qv-th img { width: 100%; height: 100%; object-fit: cover; }
.qv-info h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; padding-right: 40px; }
.qv-act { display: flex; gap: 10px; flex-wrap: wrap; }
.qv-act .btn { height: 48px; flex: 1; }
.qv-act .btn-outline { border-radius: 8px; height: 48px; }
@media (max-width: 700px) { .qv-box { grid-template-columns: 1fr; } }
.gallery .main img, #mainImg { transition: opacity .18s ease; }
img.swap { opacity: 0 !important; }

/* Mã giảm giá */
.voucher, .vchip { transition: transform .2s ease, box-shadow .2s ease; }
.voucher:hover, .vchip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.commit { transition: border-color .3s, box-shadow .3s; }
.commit:hover { border-color: var(--second); box-shadow: 0 6px 16px rgba(10, 71, 50, .06); }

/* Nút liên hệ nổi: vòng sóng lan tỏa + bảng liên hệ bật ra (theo template) */
.cw { position: relative; width: 56px; height: 56px; }
.cw-btn { position: relative; width: 56px !important; height: 56px !important; border-radius: 50%; border: 0; background: var(--main) !important; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 15px rgba(0, 0, 0, .2); transition: transform .3s; }
.cw-btn:hover { transform: scale(1.05); }
.cw-btn .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--main); z-index: -1; animation: zoomzoom 3s linear .2s infinite; }
.cw-btn .ring.r2 { animation-delay: 1.5s; }
@keyframes zoomzoom { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.cw-icons, .cw-close { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s, transform .3s; }
.cw-icons > span { position: absolute; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s; }
.cw-icons > span.on { opacity: 1; transform: none; }
.cw-close { opacity: 0; transform: scale(.5) rotate(-90deg); }
.cw.open .cw-icons { opacity: 0; transform: scale(.5) rotate(90deg); }
.cw.open .cw-close { opacity: 1; transform: none; }
.cw.open .ring { animation: none; opacity: 0; }
.cw-panel { position: absolute; right: 0; bottom: 72px; width: 330px; max-width: calc(100vw - 40px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); transform-origin: bottom right; transform: scale(0); opacity: 0; transition: transform .3s var(--bounce), opacity .3s; }
.cw.open .cw-panel { transform: scale(1); opacity: 1; }
.cw-head { background: var(--main); color: #fff; padding: 18px 16px; display: flex; gap: 12px; align-items: center; }
.cw-head > div { flex: 1; }
.cw-head b { display: block; font-size: 16px; }
.cw-head small { font-size: 13px; opacity: .9; }
.cw-hic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; }
.cw-x { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; color: #fff; border: 0; opacity: .8; transition: transform .2s, opacity .2s; }
.cw-x:hover { opacity: 1; transform: scale(1.1); }
.cw-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #f6f8f7; }
.cw-body a { width: auto !important; height: auto !important; border-radius: 12px !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .03) !important; background: #fff; display: flex !important; align-items: center; gap: 12px; padding: 12px; color: var(--text); transition: transform .2s, box-shadow .2s; }
.cw-body a:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, .08) !important; }
.cw-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.cw-d { flex: 1; display: flex; flex-direction: column; }
.cw-d b { font-size: 15px; }
.cw-d small { font-size: 13px; }
.cw-foot { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 12px 16px; color: #374151; background: #f6f8f7; border-top: 1px solid #e5ece8; }
.floating { align-items: flex-end; }

/* Khối hiện dần khi cuộn tới (wolfFadeInUp) & chuyển trang mờ dần */
.sec.rv { opacity: 0; }
.sec.rv.in { animation: wolfFadeInUp .8s var(--smooth) forwards; }
@keyframes wolfFadeInUp { 0% { transform: translate3d(0, 30px, 0); opacity: 0; filter: blur(4px); } 100% { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); } }
#app.page-in { animation: pageIn .35s ease-out; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.fl-top { transition: opacity .3s, transform .3s, filter .2s; }
.fl-top:hover { filter: brightness(1.15); }

@media (prefers-reduced-motion: reduce) {
  .sec.rv { opacity: 1; } .hero-bg { transition: none; } .cw-btn .ring { display: none; }
}
.cw-head small b { display: inline; font-size: inherit; }

/* Logo: chỉ chữ / chỉ logo / logo + chữ */
.logo { gap: 10px; }
.logo .txt { display: flex; flex-direction: column; justify-content: center; }
.footer .logo img { max-height: 72px; }

/* Footer: link không bị xuống dòng (VD "Bán hàng doanh nghiệp") */
.footer-links a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199px) { .footer-links a { white-space: normal; } }

/* Nút chat góc trái (Zalo / Messenger) — bảng bật ra từ góc trái dưới */
.floating-left .cw { width: 56px; height: 56px; }
.cw.left .cw-panel { left: 0; right: auto; transform-origin: bottom left; }
.zl { color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: -.2px; line-height: 1; }
.zl.lg { font-size: 13px; }
.cw-btn { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 0; }

/* Chứng nhận BCT / DMCA & logo thanh toán ở chân trang */
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.certs a { display: inline-flex; transition: transform .3s ease, opacity .3s; }
.certs a:hover { transform: translateY(-2px); }
.certs img { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.cert-txt { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; font-size: 13px; font-weight: 600; }
.paybadges { flex-wrap: wrap; }
.paybadges .pay { background: #fff; border-radius: 6px; height: 34px; padding: 4px 8px; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s; }
.paybadges .pay:hover { transform: translateY(-2px); }
.paybadges .pay img { height: 24px; width: auto; max-width: 76px; object-fit: contain; }

/* ===== Tài khoản khách hàng ===== */
/* Menu "Tài khoản" ở đầu trang (rê chuột để xổ, như template) */
.hacc { position: relative; }
.hacc .act { padding: 8px 0; }
.acc-dd { position: absolute; top: 100%; right: -40px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .1); padding: 6px; z-index: 70; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .2s ease-in-out, transform .2s ease-in-out, visibility .2s; }
.hacc:hover .acc-dd, .hacc:focus-within .acc-dd { opacity: 1; visibility: visible; transform: none; }
.acc-dd a, .acc-dd button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; font-size: 15px; font-weight: 500; text-align: left; border-radius: 8px; position: relative; transition: background .2s, color .2s; }
.acc-dd a + a, .acc-dd a + button { border-top: 1px solid #f1f2f4; }
.acc-dd a:hover, .acc-dd button:hover { background: #f6f8f7; color: var(--main); }
.acc-dd a svg, .acc-dd button svg { color: #6b7280; transition: color .2s; }
.acc-dd a:hover svg { color: var(--main); }
.acc-dd .badge { position: static; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; border: 0; background: var(--price); color: #fff; font-size: 11px; font-weight: 700; margin: -14px 0 0 -8px; }
.acc-hi { padding: 10px 14px 8px; font-size: 13px; color: var(--muted); border-bottom: 1px solid #f1f2f4; }
.acc-hi b { color: var(--text); }
@media (max-width: 991px) { .acc-dd { display: none; } }

/* Đăng nhập / đăng ký: khung giữa trang */
.auth-box { max-width: 636px; margin: 30px auto 50px; border: 1px solid #e5e7eb; border-radius: 4px; padding: 24px 16px 28px; background: #fff; }
.auth-box h1 { text-align: center; font-size: 30px; font-weight: 600; margin: 0 0 16px; }
.auth-box .field label { font-size: 16px; }
.auth-box .field input { height: 38px; border-radius: 4px; border-color: #dee2e6; }
.req { color: var(--price); margin-left: 2px; }
.auth-links { display: flex; justify-content: space-between; margin: 4px 0 14px; }
.lnk { background: none; border: 0; padding: 0; color: var(--second); font-size: 16px; font-weight: 500; }
.lnk:hover { text-decoration: underline; }
.btn-auth { width: 100%; height: 50px; border-radius: 4px; background: var(--second); border-color: var(--second); color: #fff; font-size: 16px; font-weight: 600; text-transform: uppercase; }
.auth-note { text-align: center; color: #374151; margin: 18px auto 0; max-width: 460px; font-size: 16px; }
.auth-err { color: var(--price); font-size: 14px; min-height: 20px; margin-bottom: 6px; }
.login-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f6f8f7; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.login-hint a { color: var(--main); font-weight: 600; text-decoration: underline; }

/* Trang tài khoản */
.acc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.acc-side { border: 1px solid #eceef1; border-radius: 12px; overflow: hidden; background: #fff; position: sticky; top: 160px; }
.acc-user { display: flex; gap: 12px; align-items: center; padding: 18px; background: var(--main); color: #fff; }
.acc-user .av { width: 48px; height: 48px; border-radius: 50%; background: var(--second); color: var(--main); display: grid; place-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.acc-user b { display: block; font-size: 16px; }
.acc-user small { opacity: .85; font-size: 13px; word-break: break-all; }
.acc-side nav { padding: 8px; display: flex; flex-direction: column; }
.acc-side nav a, .acc-side nav button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; border: 0; background: none; font-size: 15px; font-weight: 500; text-align: left; transition: background .2s, color .2s; }
.acc-side nav a:hover, .acc-side nav button:hover { background: #f6f8f7; color: var(--main); }
.acc-side nav a.on { background: var(--mint); color: var(--main); font-weight: 600; }
.acc-side nav .cnt { margin-left: auto; background: var(--price); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }
.acc-side nav button { color: var(--price); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.acc-main h2 { margin: 0 0 18px; font-size: 24px; font-weight: 600; }
.acc-main h3 { font-size: 17px; font-weight: 600; margin: 18px 0 10px; }
.acc-form { max-width: 720px; }
.acc-form input:disabled { background: #f3f4f6; color: var(--muted); }
.ord-list { display: flex; flex-direction: column; gap: 14px; }
.ord { border: 1px solid #eceef1; border-radius: 12px; padding: 14px 16px; background: #fff; transition: box-shadow .3s, transform .3s, border-color .3s; }
.ord:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .06); transform: translateY(-2px); border-color: #d9e6df; }
.ord-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ord-h small { color: var(--muted); }
.ord-h .st { margin-left: auto; }
.ord-items { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.ord-items span { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ord-items img { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; }
.ord-f { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.ord-f .more { margin-left: auto; color: var(--main); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.st { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.st-new { background: #dbeafe; color: #1e40af; } .st-conf { background: #fef3c7; color: #92400e; } .st-ship { background: #ffedd5; color: #9a3412; } .st-done { background: #d1fae5; color: #065f46; } .st-cancel { background: #fee2e2; color: #991b1b; }
.ord-detail .ord-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 18px; }
.ord-detail h1 { font-size: 26px; font-weight: 600; margin: 0; }
.ord-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; position: relative; }
.ord-steps > div { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 14px; color: var(--muted); text-align: center; }
.ord-steps > div::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.ord-steps > div:first-child::before { display: none; }
.ord-steps > div.done::before { background: var(--second); }
.ord-steps i { width: 34px; height: 34px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center; font-style: normal; font-weight: 700; position: relative; z-index: 1; }
.ord-steps .done { color: var(--main); font-weight: 600; }
.ord-steps .done i { background: var(--main); color: #fff; }
@media (max-width: 900px) { .acc-layout { grid-template-columns: 1fr; } .acc-side { position: static; } .acc-main .grid { --cols: 2 !important; } }

/* ===== "Bạn đã xem" trang chủ: dạng gọn như template ===== */
.vw-box { padding: 16px; }
.vw-title { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: #1b1b1b; }
.vw-item { display: flex; align-items: center; gap: 8px; color: #1b1b1b; }
.vw-img { flex-shrink: 0; width: 70px; height: 70px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.vw-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.vw-item:hover .vw-img img { transform: scale(1.06); }
.vw-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vw-txt b { font-size: 15px; line-height: 19.5px; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.vw-item:hover .vw-txt b { color: var(--main); }
.vw-txt em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--price); }
@media (max-width: 767px) { .vw-txt b, .vw-txt em { font-size: 13px; line-height: 17px; } }

/* ===== Mã giảm giá (hộp chọn mã dạng vé như template) ===== */
.cp-open { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #1b1b1b; border-radius: 8px; background: #fff; font-size: 16px; font-weight: 500; margin: 4px 0 12px; transition: background .2s, color .2s, border-color .2s; }
.cp-open:hover { background: var(--main); border-color: var(--main); color: #fff; }
.cp-applied { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--main); background: var(--mint); color: var(--main); border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; }
.cp-applied > div { flex: 1; min-width: 0; }
.cp-applied b { display: block; font-size: 15px; }
.cp-applied small { display: block; color: #374151; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-applied .lnk { font-size: 14px; color: var(--main); }
.cp-rm { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; color: #6b7280; flex-shrink: 0; }
.cp-rm:hover { color: var(--price); }
.cp-box { background: #fff; border-radius: 16px; width: min(500px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.97); transition: transform .4s var(--bounce); }
.qvm.show .cp-box { transform: none; }
.cp-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; }
.cp-h h3 { margin: 0; font-size: 20px; font-weight: 600; }
.cp-h .qv-x { position: static; }
.cp-body { background: #f8f9fa; padding: 16px; overflow-y: auto; }
.cp-input { display: flex; gap: 8px; }
.cp-input input { flex: 1; min-width: 0; height: 42px; border: 1px solid #dee2e6; border-radius: 8px; padding: 0 12px; text-transform: uppercase; font: inherit; }
.cp-input input::placeholder { text-transform: none; }
.cp-input .btn { height: 42px; padding: 0 18px; border-radius: 8px; }
.cp-err { color: var(--price); font-size: 13px; min-height: 18px; margin: 6px 0 4px; }
.cp-card { position: relative; display: flex; background: #fff; border: 1px solid #dee2e6; border-radius: 8px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .075); transition: transform .25s, box-shadow .25s; }
.cp-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.cp-card::before, .cp-card::after { content: ""; position: absolute; left: 83px; width: 14px; height: 14px; border-radius: 50%; background: #f8f9fa; }
.cp-card::before { top: -7px; } .cp-card::after { bottom: -7px; }
.cp-l { width: 90px; flex-shrink: 0; background: var(--main); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; border-right: 2px dashed rgba(255, 255, 255, .5); }
.cp-l span { font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.cp-r { flex: 1; min-width: 0; padding: 8px 12px 8px 16px; display: flex; flex-direction: column; }
.cp-r b { font-size: 14px; font-weight: 700; }
.cp-r small { font-size: 12px; color: #6b7280; margin: 2px 0 4px; }
.cp-r code { align-self: flex-start; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--main); background: var(--mint); border-radius: 4px; padding: 1px 6px; }
.cp-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 11px; }
.cp-f button { border: 1px solid var(--main); color: var(--main); background: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 4px 14px; transition: background .2s, color .2s; }
.cp-f button:hover { background: var(--main); color: #fff; }
.cp-on { font-style: normal; font-weight: 700; color: #fff; background: var(--second); border-radius: 999px; padding: 4px 12px; }
.cp-need { font-style: normal; color: var(--sale); font-weight: 600; }
.cp-card.dis .cp-l { background: #9ca3af; }
.cp-note { background: #fff; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--main); }

/* ===== Yêu cầu xuất hóa đơn VAT ===== */
.vat { background: #f8f9fa; border-radius: 8px; padding: 14px 16px; margin: 14px 0 4px; }
.vat-t { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500; cursor: pointer; margin: 0; }
.vat-t input { margin-top: 3px; accent-color: var(--main); width: 16px; height: 16px; }
.vat-f { display: flex; flex-direction: column; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s ease, margin-top .25s ease; }
.vat-f.open { max-height: 420px; opacity: 1; margin-top: 12px; }
.vat-f input { width: 100%; height: 36px; border: 1px solid #dee2e6; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
.vat-f input:focus { outline: none; border-color: var(--main); }
.vat-mst { display: flex; }
.vat-mst input { border-radius: 6px 0 0 6px; }
.vat-mst button { flex-shrink: 0; border: 0; background: var(--main); color: #fff; padding: 0 18px; border-radius: 0 6px 6px 0; font-weight: 600; font-size: 14px; }
.vat-mst button:disabled { opacity: .7; }
.vat-msg { font-size: 12px; min-height: 0; }
.vat-msg.ok { color: var(--main); } .vat-msg.err { color: var(--price); }
.vat-req { color: var(--price); font-size: 12px; }
.inv-box { background: #f8f9fa; border-radius: 10px; padding: 12px; font-size: 14px; margin: 0 0 12px; line-height: 1.6; }

/* ===== Quà tặng dành cho bạn (trang sản phẩm, như template) ===== */
.gbox { margin-top: 16px; background: #fff; border: 1px solid #eaeaea; border-radius: 8px; padding: 16px; }
.gb-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gb-ic { width: 45px; height: 45px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.gb-ht { flex: 1; min-width: 0; }
.gb-t { font-size: 16px; font-weight: 600; text-transform: uppercase; color: #212529; }
.gb-h p { margin: 0; font-size: 13px; color: #6c757d; }
.gb-ok { display: inline-flex; align-items: center; gap: 4px; background: #d1e7dd; color: #198754; font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 999px; flex-shrink: 0; }
.gb-ms { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 8px; }
.gb-ms > div { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.gb-ms > div + div { border-left: 1px solid #e5e7eb; padding-left: 22px; }
.gb-n, .gb-ck { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.gb-n { border: 1px solid rgba(10, 71, 50, .5); background: rgba(10, 71, 50, .06); color: var(--main); }
.gb-ms > div:not(.on):not(.next) .gb-n { border-color: #d1d5db; background: #f9fafb; color: #9ca3af; }
.gb-ck { background: #d1e7dd; color: #198754; }
.gb-ms b { font-size: 16px; font-weight: 500; color: #6c757d; }
.gb-ms .on b, .gb-ms .next b { color: var(--main); }
.gb-bar { position: relative; height: 10px; border-radius: 999px; background: #e5e7eb; margin: 16px 0 12px; }
.gb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--main); transition: width .5s cubic-bezier(.4, 0, .2, 1); }
.gb-dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--main); color: #fff; border: 2px solid #fff; display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--main); }
.gb-dot svg { width: 13px; height: 13px; }
.gb-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #6c757d; padding: 0 4px; flex-wrap: wrap; }
.gb-sum b { color: var(--main); }
.gb-sum .gb-good { color: #198754; }
.gb-pv { display: flex; align-items: center; gap: 16px; margin-top: 10px; background: rgba(10, 71, 50, .06); border: 1px solid #eef3f0; border-radius: 8px; padding: 8px; }
.gb-img { width: 100px; height: 100px; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; padding: 4px; flex-shrink: 0; overflow: hidden; }
.gb-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; transition: transform .4s ease; }
.gb-img:hover img { transform: scale(1.06); }
.gb-info { flex: 1; min-width: 0; }
.gb-lv { display: inline-block; background: var(--main); color: #fff; font-size: 11px; font-weight: 500; text-transform: uppercase; border-radius: 4px; padding: 4px 8px; margin-bottom: 4px; }
.gb-nm { font-weight: 500; line-height: 1.5; margin-bottom: 4px; }
.gb-val { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #6c757d; }
.gb-val b { color: var(--main); font-size: 15px; }
.gb-st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 18px; border-left: 1px solid #dfe7e3; font-size: 14px; font-weight: 500; line-height: 1.3; flex-shrink: 0; }
.gb-st i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.gb-st.ok { color: #198754; } .gb-st.ok i { background: #d1e7dd; }
.gb-st.no { color: #6c757d; } .gb-st.no i { background: #e9ecef; }
.gb-st.out { color: var(--price); } .gb-st.out i { background: #fde2e4; }
.gb-f { border: 1px solid #dee2e6; border-radius: 8px; padding: 14px 16px; margin-top: 14px; font-size: 14px; font-weight: 500; color: #374151; }
@media (max-width: 767px) {
  .gb-h { flex-wrap: wrap; } .gb-ok { order: 3; }
  .gb-ms b { font-size: 14px; } .gb-ms > div + div { padding-left: 12px; }
  .gb-pv { flex-wrap: wrap; } .gb-img { width: 80px; height: 80px; }
  .gb-st { flex-direction: row; border-left: 0; border-top: 1px solid #dfe7e3; width: 100%; padding: 8px 0 0; justify-content: center; }
  .gb-st br { display: none; }
}

/* Dòng quà tặng trong giỏ hàng / thanh toán / đơn hàng */
.cart-line.is-gift { background: rgba(52, 211, 153, .1); border-radius: 10px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; margin-top: 6px; }
.cart-line.is-gift > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.gift-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--main); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; }
.gift-free { color: var(--main); font-weight: 600; white-space: nowrap; }
.gift-hint { display: flex; align-items: center; gap: 8px; background: rgba(10, 71, 50, .06); color: var(--main); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.gift-hint svg { flex-shrink: 0; }
@media (max-width: 767px) { .buy-row .btn { padding: 0 8px; } .buy-row .btn small { font-size: 11px; white-space: normal; text-align: center; line-height: 1.2; } }
@media (max-width: 767px) { .sw-nav.prev { left: -4px; } .sw-nav.next { right: -4px; } }

/* ===== Quà tặng kèm theo sản phẩm ===== */
.pgift { border: 1px dashed var(--main); background: rgba(52, 211, 153, .08); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.pgift-h { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--main); text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.pgift-i { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pgift-i + .pgift-i { border-top: 1px dashed #d6e5dd; }
.pgift-i img, .pgift-i .gift-ph { border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; object-fit: contain; flex-shrink: 0; }
.pgift-i b { font-weight: 500; font-size: 15px; display: block; }
.pgift-i a:hover b { color: var(--main); }
.pgift-i small { color: #6b7280; font-size: 13px; }
.pgift-i em { font-style: normal; color: var(--price); }
.gift-ph { width: 72px; height: 72px; display: grid; place-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; color: var(--main); }
.badge-gift { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: var(--main); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.cart-line .gift-ph { width: 76px; height: 76px; }
/* nội dung dựng sẵn cho công cụ tìm kiếm — bị thay ngay khi giao diện chạy */
.ssr { padding: 24px 12px 40px; line-height: 1.6; }
.ssr img { max-width: 320px; height: auto; border-radius: 12px; }
.ssr ul { padding-left: 20px; }

/* ===== Bổ sung 17/11/2026: menu tùy chỉnh, cửa hàng, tra cứu đơn, sửa lỗi mobile ===== */
/* Menu xổ "Sản phẩm": số cột tự co theo cột đang bật; ô cam kết không xuống dòng tiêu đề */
.mega-grid { grid-template-columns: repeat(var(--mcols, 5), minmax(0, 1fr)); }
.mega .services { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.mega .service { padding: 16px 14px; gap: 10px; }
.mega .service b { white-space: nowrap; font-size: 13px; letter-spacing: 0; }
.mega .service small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mega .service > div { min-width: 0; }
.dropdown a { display: flex; align-items: center; gap: 10px; }
.dd-ic { color: var(--main); display: grid; place-items: center; flex: none; }
.drawer-body details.m-group > a b { color: var(--main); }

/* Nút mũi tên Bộ sưu tập không bị bóp méo trên điện thoại */
.col-card .go { flex: none; align-self: flex-start; aspect-ratio: 1; }

/* Nút lên đầu trang: tách khỏi vòng sóng của nút liên hệ */
.fl-top { margin-bottom: 24px; }

/* Chân trang điện thoại: cột liên kết thu gọn, mỗi cam kết 1 dòng (như template) */
.f-acc h4 svg { display: none; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .footer-grid > div { padding: 4px 0; }
  .footer-grid > :first-child { padding-bottom: 20px; }
  .f-acc h4 { cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 16px 0 14px; }
  .f-acc h4 svg { display: block; transition: transform .25s; }
  .f-acc.open h4 svg { transform: rotate(180deg); }
  .f-acc .footer-links { display: none; padding: 6px 0 10px; }
  .f-acc.open .footer-links { display: block; }
  .f-contact, .footer-grid > :last-child { margin-top: 18px; }
  .footer .services { grid-template-columns: 1fr; }
  .footer .service { padding: 16px 0; }
  .footer .service b { font-size: 15px; }
  .copyright { flex-direction: column; text-align: center; justify-content: center; padding-bottom: 90px; }
  .paybadges { flex-wrap: wrap; justify-content: center; }
}

/* Trang Hệ thống cửa hàng */
.st-h1 { text-align: center; margin: 10px 0 24px; }
.st-intro { max-width: 900px; margin: 0 auto 20px; }
.st-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 20px; align-items: center; }
.st-tools select { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; background: #fff; }
.st-tools .btn { justify-self: start; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 48px; }
.st-h2 { font-size: 20px; color: var(--main); margin: 0 0 14px; }
.st-h2 small { font-size: 14px; color: var(--muted); font-weight: 400; }
.st-list { display: flex; flex-direction: column; gap: 14px; max-height: 620px; overflow: auto; padding-right: 4px; }
.st-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.st-item:hover, .st-item.on { border-color: var(--main); box-shadow: 0 6px 18px rgba(10, 71, 50, .08); }
.st-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--mint, #e8f5ee); color: var(--main); display: grid; place-items: center; flex: none; }
.st-item b { font-size: 16px; display: block; margin-bottom: 4px; }
.st-item p { margin: 2px 0; font-size: 14.5px; line-height: 1.5; }
.st-item p span { color: var(--main); font-weight: 600; }
.st-dist { color: var(--main); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.st-dir { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--main); }
.st-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 4.2; background: #eef1ef; }
.st-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 991px) { .st-tools, .st-grid { grid-template-columns: 1fr; gap: 14px; } .st-list { max-height: none; } .st-map { aspect-ratio: 4 / 3.4; } }

/* Tra cứu đơn hàng + mã vận đơn */
.track-page { max-width: 760px; margin: 10px auto 48px; }
.track-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; margin: 18px 0 22px; }
.track-f input { height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; min-width: 0; }
@media (max-width: 575px) { .track-f { grid-template-columns: 1fr; } }
.trk { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--mint, #e8f5ee); margin: 14px 0; }
.trk > div { flex: 1; min-width: 140px; }
.trk small { display: block; color: var(--muted); font-size: 13px; }
.trk b { font-size: 17px; letter-spacing: .5px; color: var(--main); }
.trk-ic { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--main); display: grid; place-items: center; }
.trk-log { list-style: none; margin: 8px 0 16px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.trk-log li { position: relative; padding: 4px 0 10px 8px; }
.trk-log li::before { content: ''; position: absolute; left: -25px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.trk-log li.now::before { background: var(--main); box-shadow: 0 0 0 4px rgba(10, 71, 50, .15); }
.trk-log b { display: block; font-size: 14.5px; }
.trk-log small { color: var(--muted); }

/* ===== Bổ sung đợt 4 (17/11/2026) ===== */
/* Tra cứu đơn: tiêu đề, trạng thái, các bước, lịch sử không chồng nhau */
.trk-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.trk-top h2 { margin: 0; font-size: 24px; line-height: 1.3; word-break: break-word; }
.trk-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.track-page .ord-steps { margin: 6px 0 22px; }
.track-page .ord-steps span { font-size: 13.5px; line-height: 1.3; padding: 0 4px; }
.track-page .trk-log { margin: 14px 0 20px 8px; }
.track-page h3 { margin: 18px 0 8px; }
@media (max-width: 575px) { .trk-top h2 { font-size: 20px; } .track-page .ord-steps span { font-size: 12px; } .trk .btn { flex: 1; justify-content: center; } }

/* Ô "Tra cứu đơn hàng" trong giỏ hàng */
.trk-link { display: flex; align-items: center; gap: 12px; margin: 14px 18px 18px; padding: 12px 14px; border: 1px dashed var(--main); border-radius: 10px; color: var(--main); background: var(--mint, #e8f5ee); }
.trk-link span { flex: 1; display: flex; flex-direction: column; }
.trk-link b { font-size: 14.5px; }
.trk-link small { color: var(--muted); font-size: 12.5px; }
.trk-link:hover { background: #fff; }
.cart-layout .trk-link { margin: 12px 0 0; }

/* Ghi chú đồng ý dưới ô đăng ký email */
.consent { font-size: 12px; line-height: 1.5; margin: 8px 0 0; opacity: .8; }
.consent a { text-decoration: underline; }
.footer .consent { color: rgba(255, 255, 255, .8); }
.np .consent { color: var(--muted); margin-top: 10px; }

/* Nút lên đầu trang: sát nút liên hệ nhưng không chạm vòng sóng (vòng lan ~17px) */
.fl-top { margin-bottom: 10px; }

/* Trang sản phẩm trên điện thoại: 2 nút xếp 2 hàng rộng hết, hàng Yêu thích / Tư vấn / CH gần nhất gọn 1 dòng (như template) */
.only-m { display: none; }
@media (max-width: 767px) {
  .buy-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .buy-row .btn { height: auto; min-height: 56px; padding: 10px 14px; border-radius: 8px; font-size: 16px; }
  .buy-row .btn span { white-space: nowrap; }
  .buy-row .btn small { font-size: 12.5px; white-space: nowrap; }
  .pd-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; font-size: 14.5px; }
  .pd-links a, .pd-links button { white-space: nowrap; }
  .hide-m { display: none; }
  .only-m { display: inline; }
}

/* Thẻ Bộ sưu tập: tự cao theo nội dung (tiêu đề 2 dòng không đẩy nút mũi tên ra ngoài thẻ) */
.col-card { min-height: min-content; }
.col-card b { margin-bottom: 16px; }
@media (max-width: 767px) { .col-card { aspect-ratio: auto; min-height: 168px; padding: 22px 20px; } .col-card b { font-size: 20px; } }
@media (max-width: 1199px) { .col-card { aspect-ratio: auto; min-height: 190px; } }
@media (max-width: 767px) { .col-card { min-height: 168px; } }
/* Ghi chú đồng ý email: chữ nhỏ, nghiêng, link không in đậm (thắng quy tắc .footer p 15px) */
.footer p.consent, .np p.consent, p.consent { font-size: 10.5px; line-height: 1.45; font-style: italic; font-weight: 400; margin: 6px 0 0; }
.consent a { font-weight: 400; text-decoration: underline; }

/* Bảng liên hệ nổi trên điện thoại: gọn, không chui dưới thanh tiêu đề, không che hết nội dung */
@media (max-width: 767px) {
  .cw-panel { width: 290px; max-width: calc(100vw - 32px); bottom: 66px; border-radius: 16px; max-height: calc(100dvh - 250px); display: flex; flex-direction: column; }
  .cw-head { padding: 12px 14px; gap: 10px; flex: none; }
  .cw-hic { width: 36px; height: 36px; }
  .cw-hic svg { width: 20px; height: 20px; }
  .cw-head b { font-size: 14.5px; }
  .cw-head small { font-size: 12px; }
  .cw-body { padding: 8px; gap: 6px; overflow: auto; flex: 1; min-height: 0; }
  .cw-body a { padding: 8px 10px; gap: 10px; border-radius: 10px !important; }
  .cw-ic { width: 34px; height: 34px; }
  .cw-ic svg { width: 18px; height: 18px; }
  .cw-ic .zl { font-size: 10px; }
  .cw-d b { font-size: 13.5px; }
  .cw-d small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
  .cw-foot { padding: 8px 12px; font-size: 11.5px; flex: none; }
  .cw, .cw-btn { width: 50px !important; height: 50px !important; }
}

/* Menu điện thoại: mục "Sản phẩm" chứa các nhóm danh mục lồng bên trong */
.m-prod .m-sub summary { padding: 11px 0 11px 14px; font-size: 14.5px; font-weight: 500; border-bottom: 1px dashed var(--line); }
.m-prod .m-sub a { padding-left: 28px; font-size: 13.5px; }
.m-prod .m-sub[open] > summary { color: var(--main); }
.m-group[open] > summary svg, .m-sub[open] > summary svg { transform: rotate(180deg); }
.m-group summary svg { transition: transform .2s; }
/* Menu điện thoại: mục con đồng bộ kiểu chữ, không hiện icon (icon chỉ dùng ở menu xổ máy tính) */
.drawer-body .dd-ic { display: none; }

/* Dòng Số lượng: luôn 1 dòng trên điện thoại (nhãn – ô số lượng – tồn kho) */
.qty-row { flex-wrap: nowrap; white-space: nowrap; }
.qty-row .qty { flex: none; }
@media (max-width: 767px) {
  .qty-row { gap: 10px; font-size: 15px; margin-bottom: 18px; }
  .qty-row .qty { height: 40px; }
  .qty-row .qty button { width: 38px; }
  .qty-row .qty input { width: 52px; }
  .qty-row > :last-child:not(.qty) { margin-left: auto; font-size: 13px !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@media (max-width: 400px) { .qty-row { gap: 8px; font-size: 14px; } .qty-row .qty button { width: 32px; } .qty-row .qty input { width: 40px; } .qty-row > :last-child:not(.qty) { font-size: 12.5px !important; } }

/* Hàng Yêu thích · Tư vấn · Cửa hàng gần nhất: 3 mục chia đều (trái – giữa – phải) */
.pd-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-links > * { white-space: nowrap; }
.pd-links > :nth-child(2) { justify-self: center; }
.pd-links > :nth-child(3) { justify-self: end; }
.pd-links { display: flex; justify-content: space-between; flex-wrap: nowrap; }
.pd-links > :nth-child(2), .pd-links > :nth-child(3) { justify-self: auto; }
@media (max-width: 400px) { .pd-links { font-size: 13.5px; } .pd-links svg { width: 18px; height: 18px; } .pd-links a, .pd-links button { gap: 5px; } }

/* ===== Trang sản phẩm theo template (đo trực tiếp wolf-fan, 17/11/2026) ===== */
/* Hàng Yêu thích · Tư vấn · Cửa hàng gần nhất: canh trái, cách nhau 24px, chữ 14px, rê chuột đổi màu nhấn */
.pd-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 24px; margin: 16px 0 18px; font-size: 14px; }
.pd-links a, .pd-links button { gap: 8px; color: #1b1b1b; transition: color .15s ease-in-out; }
.pd-links a:hover, .pd-links button:hover { color: var(--second); }
.pd-links .on { color: var(--price); }
@media (max-width: 400px) { .pd-links { gap: 18px; font-size: 13.5px; } }

/* 2 nút mua: cao 65px, bo 6px, chữ 16px; rê chuột → nền trắng, viền + chữ theo màu nút */
.buy-row .btn { height: 65px; border-radius: 6px; border: 1px solid; font-size: 16px; font-weight: 500; filter: none; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out; }
.buy-row #addCart { background: var(--main); border-color: var(--main); color: #fff; }
.buy-row #buyNow { background: #d8252b; border-color: #d8252b; color: #fff; }
.buy-row .btn small { font-size: 12px; font-weight: 400; margin-top: 4px; }
@media (hover: hover) {
  .buy-row #addCart:not([disabled]):hover { background: #fff; color: var(--main); filter: none; transform: none; }
  .buy-row #buyNow:not([disabled]):hover { background: #fff; color: #d8252b; filter: none; transform: none; }
}
@media (max-width: 767px) { .buy-row .btn { height: auto; min-height: 58px; } }
@media (max-width: 400px) { .pd-links { flex-wrap: nowrap; gap: 14px; font-size: 13px; } .pd-links svg { width: 18px; height: 18px; } .pd-links a, .pd-links button { gap: 5px; white-space: nowrap; } }
