/* =========================================================
   GRITON – Brand theme (đen – cam #D65507, font Chakra Petch)
   ========================================================= */
:root {
  --orange: #d65507;
  --orange-hi: #f06a12;
  --black: #0b0b0b;
  --dark: #141414;
  --dark-2: #1d1d1d;
  --line: #2a2a2a;
  --gray: #8d8d8d;
  --light: #f4f3f1;
  --white: #fff;
  --cut: 12px;                         /* góc vát giống logo */
  --font-head: "Chakra Petch", "Arial Narrow", sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --header-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { font-family: var(--font-body); background: var(--light); color: var(--black); line-height: 1.6; overflow-x: hidden; }
body.theme-dark { background: var(--black); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
main { padding-top: var(--header-h); min-height: 60vh; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
em { font-style: normal; color: var(--orange); }

.cut { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); }

/* ----- Buttons ----- */
.btn { --c: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-hi); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--orange); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--dark-2); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ----- Header ----- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(11,11,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.07); }
.header.is-scrolled { background: rgba(11,11,11,.98); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 30px; }
.nav a { color: #cfcfcf; font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: .25s; }
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 6px; color: var(--white); }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); }
.icon-btn:hover { color: var(--orange); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; background: var(--orange); color: var(--white); font-size: .7rem; font-weight: 700; display: grid; place-items: center; border-radius: 10px; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.45); } }
.burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; padding: 9px; }
.burger span { height: 2px; background: var(--white); transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- Hero ----- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); padding: 60px 0 90px; background: radial-gradient(circle at 75% 45%, #2b1505 0%, var(--black) 58%); color: var(--white); display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 90px, rgba(214,85,7,.05) 90px 92px); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tag { display: inline-block; padding: 6px 14px; border: 1px solid var(--orange); color: var(--orange); font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .92; margin-bottom: 24px; }
.hero h1 em { -webkit-text-stroke: 2px var(--orange); color: transparent; }
.hero p { color: #b9b9b9; max-width: 480px; font-size: 1.05rem; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { list-style: none; display: flex; gap: 40px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--orange); line-height: 1.1; }
.hero__stats span { color: var(--gray); font-size: .85rem; }
.hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero__mark { width: 78%; filter: drop-shadow(0 0 60px rgba(214,85,7,.55)); animation: glow 3.5s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 100px rgba(214,85,7,.85)); transform: scale(1.03); } }
.hero__ring { position: absolute; inset: 4%; border: 1px dashed rgba(214,85,7,.35); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__badge { position: absolute; top: 6%; right: 2%; width: 108px; height: 108px; background: var(--white); color: var(--black); display: grid; place-content: center; text-align: center; font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; transform: rotate(10deg); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.hero__badge small { font-family: var(--font-body); font-size: .68rem; font-weight: 600; margin-top: 4px; }

/* ----- Marquee ----- */
.marquee { background: var(--orange); color: var(--white); overflow: hidden; padding: 13px 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: scroll 28s linear infinite; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: 2px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----- Sections ----- */
.section { padding: 90px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section__head { margin-bottom: 44px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.link-more { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); }
.link-more:hover { color: var(--orange-hi); }

/* ----- Page banner ----- */
.page-banner { background: var(--black); color: var(--white); padding: 50px 0 40px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 26px solid rgba(214,85,7,.15); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.page-banner h1 { font-size: clamp(2rem, 5vw, 3rem); }
.breadcrumb { font-size: .88rem; color: var(--gray); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

/* ----- Categories ----- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { position: relative; padding: 30px 24px; background: var(--white); overflow: hidden; transition: .3s; }
.cat::before { content: ""; position: absolute; inset: 0; background: var(--black); transform: translateY(101%); transition: .35s; }
.cat > * { position: relative; }
.cat:hover { color: var(--white); }
.cat:hover::before { transform: none; }
.cat__no { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--orange); line-height: 1; }
.cat h3 { font-size: 1.45rem; margin: 14px 0 6px; }
.cat p { font-size: .9rem; color: var(--gray); }
.cat__arrow { position: absolute; top: 28px; right: 24px; font-size: 1.4rem; color: var(--orange); transition: .3s; }
.cat:hover .cat__arrow { transform: translateX(6px); }

/* ----- Product card ----- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--white); color: var(--black); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; position: relative; }
.section--dark .card { background: var(--dark); color: var(--white); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(214,85,7,.18); }
.card__img { position: relative; aspect-ratio: 1; overflow: hidden; background: #161616; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; background: var(--orange); color: var(--white); font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1.5px; }
.card__name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.25; text-transform: none; }
.card__name a:hover { color: var(--orange); }
.card__short { font-size: .85rem; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price b { color: var(--orange); font-size: 1.12rem; font-weight: 700; }
.price s { color: var(--gray); font-size: .82rem; margin-left: 6px; }
.card__sold { font-size: .75rem; color: var(--gray); }
.card__btn { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--black); color: var(--white); transition: .2s; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.section--dark .card__btn { background: var(--white); color: var(--black); }
.card__btn:hover, .section--dark .card__btn:hover { background: var(--orange); color: var(--white); }
.card__link { position: absolute; inset: 0; z-index: 0; }
.card__btn, .card__name a { position: relative; z-index: 1; }

/* ----- Shop toolbar ----- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; border: 1px solid #d5d5d5; font-weight: 600; font-size: .9rem; background: var(--white); transition: .2s; }
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: var(--white); }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.input { padding: 11px 14px; border: 1px solid #d5d5d5; background: var(--white); min-width: 0; outline: none; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(214,85,7,.15); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); grid-column: 1 / -1; }

/* ----- Product detail ----- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 40px 0 70px; }
.pd__main { aspect-ratio: 1; background: #161616; overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd__thumbs button { width: 74px; height: 74px; border: 2px solid transparent; overflow: hidden; background: #161616; }
.pd__thumbs button.is-active { border-color: var(--orange); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: none; margin: 6px 0 12px; }
.pd__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--gray); margin-bottom: 16px; }
.pd__meta .stars { color: var(--orange); }
.pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 16px 20px; background: var(--white); margin-bottom: 18px; }
.pd__price b { font-size: 2rem; color: var(--orange); font-family: var(--font-head); }
.pd__price s { color: var(--gray); }
.pd__price .save { background: var(--orange); color: var(--white); font-size: .8rem; font-weight: 700; padding: 2px 8px; }
.pd__short { color: #444; margin-bottom: 20px; }
.opt { margin-bottom: 18px; }
.opt__label { font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.opt__label span { color: var(--orange); }
.opt__values { display: flex; gap: 8px; flex-wrap: wrap; }
.opt__values button { min-width: 52px; padding: 9px 16px; border: 1px solid #ccc; background: var(--white); font-weight: 600; transition: .15s; }
.opt__values button:hover { border-color: var(--orange); }
.opt__values button.is-active { border-color: var(--orange); background: var(--orange); color: var(--white); }
.opt--error .opt__values button { border-color: #e53935; }
.qty { display: inline-flex; align-items: center; border: 1px solid #ccc; background: var(--white); }
.qty button { width: 40px; height: 44px; font-size: 1.2rem; }
.qty button:hover { color: var(--orange); }
.qty input { width: 50px; height: 44px; text-align: center; border: 0; border-inline: 1px solid #ccc; outline: none; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.pd__actions .btn { flex: 1; min-width: 160px; }
.perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid #ddd; font-size: .9rem; }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks svg { color: var(--orange); flex-shrink: 0; }
.tabs { padding-bottom: 80px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid #ddd; overflow-x: auto; }
.tabs__nav button { padding: 14px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs__nav button.is-active { color: var(--black); border-color: var(--orange); }
.tabs__panel { display: none; background: var(--white); padding: 30px; max-width: 900px; }
.tabs__panel.is-active { display: block; }
.tabs__panel p { margin-bottom: 12px; }
.tabs__panel h4 { font-size: 1.15rem; color: var(--black); margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--orange); }
.tabs__panel h4:first-child { margin-top: 0; }
.tabs__panel ul { margin: 0 0 14px 20px; }
.tabs__panel li { margin-bottom: 6px; }
.tabs__panel li::marker { color: var(--orange); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
.spec-table th { width: 35%; background: #fafafa; font-weight: 600; }

/* ----- Cart / checkout ----- */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 40px 0 80px; align-items: start; }
.box { background: var(--white); padding: 26px; }
.box h2 { font-size: 1.4rem; margin-bottom: 18px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #eee; }
.cart-line:last-child { border-bottom: 0; }
.cart-line__img { width: 76px; height: 76px; background: #161616; overflow: hidden; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 600; line-height: 1.3; }
.cart-line__name a:hover { color: var(--orange); }
.cart-line__opt { font-size: .82rem; color: var(--gray); }
.cart-line__price { color: var(--orange); font-weight: 700; margin-top: 4px; }
.cart-line__right { display: grid; justify-items: end; gap: 8px; }
.cart-line .qty button { width: 32px; height: 34px; }
.cart-line .qty input { width: 40px; height: 34px; }
.remove { font-size: .8rem; color: var(--gray); text-decoration: underline; }
.remove:hover { color: #e53935; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 2px solid var(--black); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; }
.summary-row.total b { color: var(--orange); font-size: 1.4rem; }
.ship-hint { font-size: .85rem; background: #fff3ea; color: #8a3a06; padding: 10px 12px; margin: 10px 0; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field .input, .field textarea { width: 100%; font-weight: 400; }
.field textarea { padding: 11px 14px; border: 1px solid #d5d5d5; resize: vertical; outline: none; }
.field textarea:focus { border-color: var(--orange); }
.field .err { display: none; color: #e53935; font-weight: 400; font-size: .8rem; }
.field.invalid .input { border-color: #e53935; }
.field.invalid .err { display: block; }
.pay { display: grid; gap: 10px; }
.pay label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #ddd; cursor: pointer; font-weight: 400; }
.pay label:has(input:checked) { border-color: var(--orange); background: #fff7f1; }
.pay input { accent-color: var(--orange); margin-top: 4px; }
.pay small { display: block; color: var(--gray); }
.form-note { font-size: .8rem; color: var(--gray); }
.success { text-align: center; padding: 70px 20px 100px; max-width: 620px; margin: 0 auto; }
.success__icon { width: 90px; height: 90px; margin: 0 auto 20px; background: var(--orange); color: var(--white); display: grid; place-items: center; font-size: 2.6rem; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.success h1 { font-size: 2.2rem; margin-bottom: 12px; }
.success p { color: #555; margin-bottom: 10px; }
.success .code { font-family: var(--font-head); font-size: 1.4rem; color: var(--orange); }
.bank-box { background: var(--white); padding: 18px; margin: 20px 0; text-align: left; border-left: 4px solid var(--orange); }

/* ----- About / features ----- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__text p { color: #555; margin: 20px 0 30px; font-size: 1.03rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { background: var(--white); padding: 26px; border-left: 4px solid var(--orange); }
.feature svg { color: var(--orange); }
.feature h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.feature p { color: #666; font-size: .9rem; }

/* ----- Reviews ----- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--white); padding: 28px; }
.stars { color: var(--orange); letter-spacing: 2px; }
.review blockquote { color: #333; margin: 12px 0 20px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review small { display: block; color: var(--gray); }
.avatar { width: 44px; height: 44px; background: var(--black); color: var(--orange); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info p { color: #aaa; margin: 18px 0 26px; }
.contact__list { list-style: none; display: grid; gap: 14px; margin-bottom: 26px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list .ic { width: 44px; height: 44px; background: var(--dark-2); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.contact__list a:hover { color: var(--orange); }
.section--dark .box { background: var(--dark); color: var(--white); border-top: 4px solid var(--orange); }
.section--dark .input, .section--dark .field textarea { background: var(--black); border-color: var(--line); color: var(--white); }
.form__msg { min-height: 1.4em; font-size: .9rem; color: var(--orange); }

/* ----- Socials ----- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; background: var(--dark-2); color: var(--white); transition: .2s; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.socials a:hover { background: var(--orange); }
.socials svg { width: 20px; height: 20px; }

/* ----- Policy page ----- */
.policy { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 50px 0 90px; align-items: start; }
.policy nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; }
.policy nav a { padding: 10px 14px; background: var(--white); font-weight: 600; border-left: 3px solid transparent; }
.policy nav a:hover { border-color: var(--orange); color: var(--orange); }
.policy article { display: grid; gap: 24px; }
.policy section { background: var(--white); padding: 30px; }
.policy h2 { font-size: 1.6rem; margin-bottom: 14px; }
.policy p, .policy li { color: #444; margin-bottom: 8px; }
.policy ul { margin-left: 20px; }

/* ----- Footer ----- */
.footer { background: #050505; color: #a9a9a9; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer .logo img { height: 24px; }
.footer p { margin: 16px 0 20px; font-size: .92rem; }
.footer h4 { color: var(--white); font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 16px; }
.footer__col a { display: block; padding: 4px 0; font-size: .92rem; }
.footer__col a:hover { color: var(--orange); }
.footer__contact li { list-style: none; font-size: .92rem; padding: 4px 0; }
.footer__contact a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid #1a1a1a; padding: 20px 16px; text-align: center; font-size: .85rem; }

/* ----- Floating contact ----- */
.float { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 40; }
.float a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.float .f-zalo { background: #0068ff; font-weight: 700; font-size: .8rem; animation: pulse 2s infinite; }
.float .f-phone { background: var(--orange); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,104,255,.5); } 50% { box-shadow: 0 0 0 12px rgba(0,104,255,0); } }

/* ----- Toast ----- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140px); background: var(--black); color: var(--white); padding: 12px 20px; font-weight: 500; border-left: 4px solid var(--orange); box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: .35s; z-index: 120; display: flex; gap: 14px; align-items: center; width: max-content; max-width: calc(100% - 32px); }
.toast a { color: var(--orange); font-weight: 700; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); }

/* ----- Reveal ----- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--black); padding: 8px 16px 18px; transform: translateY(-130%); transition: .35s; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #1f1f1f; }
  .burger { display: flex; }
  .hero__inner, .about, .contact, .pd, .checkout { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; width: 100%; margin: 0 auto; order: -1; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .policy { grid-template-columns: 1fr; }
  .policy nav { position: static; grid-template-columns: 1fr 1fr; }
  .pd { gap: 28px; padding-top: 24px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 30px; }
  .hero__visual { max-width: 260px; }
  .hero__badge { width: 84px; height: 84px; font-size: 1.5rem; }
  .hero__stats { gap: 22px; }
  .hero__stats strong { font-size: 1.6rem; }
  .cats, .features, .form-row, .perks { grid-template-columns: 1fr; }
  .grid-products { gap: 12px; }
  .card__body { padding: 12px; }
  .card__name { font-size: .98rem; }
  .card__short, .card__sold, .price s { display: none; }
  .card__btn { width: 36px; height: 36px; }
  .footer__inner { grid-template-columns: 1fr; }
  .box, .tabs__panel, .policy section { padding: 20px; }
  .toolbar__right, .toolbar__right .input { width: 100%; }
  .float a { width: 48px; height: 48px; }
  .pd__actions .btn { flex-basis: 100%; }
}

/* ===== Banner slider (quản lý trong /admin) ===== */
.banner { position: relative; background: var(--black); overflow: hidden; aspect-ratio: 16 / 7; max-height: calc(100vh - var(--header-h)); min-height: 320px; }
.banner__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.banner__slide.is-active { opacity: 1; pointer-events: auto; }
.banner__slide img { width: 100%; height: 100%; object-fit: cover; }
.banner__slide:has(.banner__text)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 55%, transparent 100%); }
.banner__text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; color: var(--white); }
.banner__text h2 { font-size: clamp(2rem, 6vw, 4.6rem); max-width: 720px; }
.banner__text p { max-width: 520px; color: #ddd; font-size: 1.05rem; }
.banner__link { position: absolute; inset: 0; }
.banner__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.banner__dots button { width: 28px; height: 4px; background: rgba(255,255,255,.4); }
.banner__dots button.is-active { background: var(--orange); }
@media (max-width: 700px) { .banner { aspect-ratio: 4 / 5; max-height: 80vh; } }

/* ===== Tồn kho ===== */
.badge--out { background: #555; }
.stock { color: #1d8a3a; font-weight: 600; }
.stock--out { color: #e53935; }

/* ===== Bài viết ===== */
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--white); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #161616; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.25rem; text-transform: none; line-height: 1.25; }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { color: #555; font-size: .92rem; flex: 1; }
.article { max-width: 820px; margin: 0 auto; padding: 40px 0 90px; }
.article__cover { margin-bottom: 28px; }
.article__cover img { width: 100%; }
.article__meta { color: var(--gray); font-size: .9rem; margin-bottom: 20px; }
.article__content { background: var(--white); padding: 36px; font-size: 1.05rem; line-height: 1.8; }
.article__content h2, .article__content h3 { text-transform: none; margin: 28px 0 12px; line-height: 1.25; }
.article__content h2 { font-size: 1.6rem; }
.article__content h3 { font-size: 1.3rem; }
.article__content p { margin-bottom: 14px; }
.article__content ul, .article__content ol { margin: 0 0 16px 22px; }
.article__content li::marker { color: var(--orange); }
.article__content img { margin: 16px auto; height: auto; }
.article__content a { color: var(--orange); text-decoration: underline; }
.article__content blockquote { border-left: 4px solid var(--orange); padding: 6px 18px; color: #444; margin: 16px 0; background: #faf7f4; }
.article__content .ql-align-center { text-align: center; }
.article__content .ql-align-right { text-align: right; }
@media (max-width: 900px) { .grid-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-posts { grid-template-columns: 1fr; } .article__content { padding: 20px; } }
/* ===== Tin tức nổi bật trang chủ ===== */
.news { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: auto; gap: 20px; }
.news .post-card--lead { grid-row: span 3; }
.news .post-card--lead .post-card__img { aspect-ratio: 16 / 10; }
.news .post-card--lead h3 { font-size: 1.6rem; }
.news .post-card:not(.post-card--lead) { flex-direction: row; }
.news .post-card:not(.post-card--lead) .post-card__img { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
.news .post-card:not(.post-card--lead) .post-card__body { padding: 14px 16px; }
.news .post-card:not(.post-card--lead) p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news__empty { grid-column: 1 / -1; background: var(--white); padding: 40px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.news__empty b { font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; }
.news__empty p { color: #555; max-width: 520px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } .news .post-card--lead { grid-row: auto; } }
@media (max-width: 560px) { .news .post-card:not(.post-card--lead) .post-card__img { width: 34%; } .news .post-card:not(.post-card--lead) h3 { font-size: 1.05rem; } }

/* ===== Thanh toán chuyển khoản ===== */
.bank-pay { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; background: var(--white); padding: 20px; margin: 22px 0; text-align: left; border-top: 4px solid var(--orange); }
.bank-pay img { width: 200px; height: 200px; object-fit: contain; border: 1px solid #eee; }
.bank-pay dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .95rem; }
.bank-pay dt { color: var(--gray); }
.bank-pay dd { font-weight: 600; word-break: break-word; }
.bank-pay .copy { margin-left: 6px; font-size: .78rem; color: var(--orange); text-decoration: underline; font-weight: 500; }
.bank-pay .note { grid-column: 1 / -1; font-size: .85rem; background: #fff4ec; color: #8a3a06; padding: 10px 12px; }
.pay-hint { display: none; font-size: .85rem; color: #555; padding: 4px 2px 0 30px; }
.pay label:has(input[value=BANK]:checked) + .pay-hint { display: block; }
@media (max-width: 560px) { .bank-pay { grid-template-columns: 1fr; justify-items: center; } .bank-pay dl { width: 100%; } }