:root {
  --red: #ee3d2f;
  --red-dark: #c82d22;
  --orange: #ff8a1f;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e6e8ec;
  --soft: #f5f7fa;
  --surface: #ffffff;
  --green: #0f8f65;
  --teal: #0c7d8a;
  --shadow: 0 12px 32px rgba(20, 28, 38, 0.12);
  --radius: 8px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f5f7;
  color: var(--ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: #252b34;
  color: #fff;
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
}

.topbar__links {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

.topbar__links a {
  color: rgba(255, 255, 255, 0.88);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(31, 41, 51, 0.06);
}

.header-main {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 42px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.brand__text {
  display: grid;
}

.brand__text strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand__text small {
  color: var(--muted);
  font-size: 12px;
}

.header-search {
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  padding: 0 14px;
  outline: 0;
}

.header-search button {
  height: 44px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.cart-toggle {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cart-toggle span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--orange);
  color: #151515;
  font-size: 12px;
}

.category-menu {
  border-top: 1px solid var(--line);
  background: #fff;
}

.category-menu__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-menu button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #3d4753;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.category-menu button:hover,
.category-menu button.is-active {
  background: #fff0ee;
  color: var(--red);
}

.hero {
  padding: 22px 0 16px;
  background: linear-gradient(180deg, #fff7f5 0%, #f3f5f7 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.hero__banner {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.96) 0%, rgba(31, 41, 51, 0.82) 43%, rgba(238, 61, 47, 0.28) 100%),
    url("assets/img/hero-vfan.jpg") center right / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero__content {
  width: min(620px, 100%);
  padding: 30px 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffd7c2;
}

.hero h1,
.hero h2,
.section-head h2,
.brand-story h2,
.support-box h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
}

.hero h2 {
  margin-top: 12px;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.2;
  color: #fff4ee;
}

.hero p {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.button--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.button--primary:hover {
  background: var(--red-dark);
}

.button--light {
  background: #fff;
  color: var(--red);
}

.button--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button--zalo {
  background: #eaf8fa;
  border-color: rgba(12, 125, 138, 0.22);
  color: var(--teal);
}

.button--buy-now {
  background: #fff4e6;
  border-color: #f97316;
  color: #9a3412;
}

.button--buy-now:hover {
  background: #ffedd5;
  border-color: #ea580c;
  color: #7c2d12;
}

.button--full {
  width: 100%;
}

.button--ghost-danger {
  background: #fff;
  border-color: #ffd3ca;
  color: var(--red);
}

.promo-stack {
  display: grid;
  gap: 14px;
}

.promo-card {
  display: grid;
  align-content: center;
  min-height: 120px;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promo-card span {
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.promo-card strong {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.promo-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
}

.promo-card--orange {
  background: linear-gradient(135deg, #ff7a1a 0%, #e94b26 100%);
}

.promo-card--dark {
  background: linear-gradient(135deg, #2b3340 0%, #111827 100%);
}

.promo-card--red {
  background: linear-gradient(135deg, #e7342a 0%, #a91f18 100%);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trust-strip article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.trust-strip span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eaf8ef;
  color: var(--green);
  font-weight: 900;
}

.trust-strip strong {
  font-size: 14px;
  line-height: 1.25;
}

.trust-strip small {
  color: var(--muted);
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  color: #16202b;
}

.section-link {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.category-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.04);
}

.category-card:hover,
.category-card.is-active {
  border-color: rgba(238, 61, 47, 0.45);
  box-shadow: 0 10px 24px rgba(238, 61, 47, 0.12);
  transform: translateY(-1px);
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #fff1ec;
  color: var(--red);
  font-size: 22px;
}

.category-card strong {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: #17202b;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.featured-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.featured-card:hover {
  border-color: rgba(238, 61, 47, 0.38);
  box-shadow: var(--shadow);
}

.featured-card__image {
  aspect-ratio: 1;
  border: 0;
  border-radius: 7px;
  background: var(--soft);
  overflow: hidden;
  padding: 0;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-card h3 {
  display: -webkit-box;
  margin: 2px 0 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-card .model-pill {
  width: max-content;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deal-grid article {
  min-height: 170px;
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.deal-grid span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.deal-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.deal-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.catalog-section {
  background: #fff;
  border-block: 1px solid var(--line);
}

.section-head--catalog {
  align-items: center;
}

.result-summary {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 120px;
}

.result-summary strong {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

.result-summary span {
  color: var(--muted);
  font-size: 13px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 132px;
}

.filter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.filter-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-card__head strong {
  font-size: 18px;
}

.filter-card__head button,
.active-filter-row button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span,
.filter-group legend {
  color: #384454;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.filter-group select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: rgba(238, 61, 47, 0.65);
  box-shadow: 0 0 0 3px rgba(238, 61, 47, 0.1);
}

.filter-group {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5564;
  font-size: 13px;
}

.filter-group input {
  accent-color: var(--red);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #4a5564;
  font-size: 12px;
  font-weight: 800;
}

.tech-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.catalog-main {
  min-width: 0;
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 10px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff1ee;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.load-message {
  margin-bottom: 12px;
  border: 1px solid #ffd9cc;
  border-radius: var(--radius);
  padding: 12px;
  background: #fff6f2;
  color: #8b2d18;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
  border-color: rgba(238, 61, 47, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f7f8fa;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.corner-label {
  position: absolute;
  z-index: 2;
  top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 5px;
  padding: 0 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.corner-label--left {
  left: 8px;
  background: var(--red);
}

.corner-label--right {
  right: 8px;
  background: var(--orange);
  color: #221207;
}

.product-card__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 41px;
  margin: 0;
  overflow: hidden;
  color: #202936;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef2f6;
  color: #263241;
  font-size: 12px;
  font-weight: 900;
}

.stock-line {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.price {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.price small {
  font-size: 12px;
  font-weight: 800;
}

.price-on-request {
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.product-actions .button {
  min-height: 36px;
  padding-inline: 8px;
  font-size: 12px;
  white-space: normal;
}

.quick-view {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 30px;
  background: #f8fafc;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 18px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
}

.checkout-modal.is-open {
  display: grid;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
}

.checkout-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.34);
}

.checkout-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: #fff;
}

.checkout-modal__header h2 {
  margin: 3px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.checkout-modal__header p {
  max-width: 660px;
  margin: 7px 0 0;
  color: var(--muted);
}

.checkout-modal__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 20px 0;
}

.checkout-steps span {
  min-height: 36px;
  border: 1px solid #ffd9cc;
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff7f5;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.checkout-layout {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  margin-top: 16px;
}

.checkout-modal .checkout-layout {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-top: 0;
  padding: 16px 20px 20px;
}

.cart-main-card,
.cart-summary-box,
.checkout-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.cart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-card-head strong {
  display: block;
  font-size: 18px;
}

.cart-card-head span {
  color: var(--muted);
  font-size: 13px;
}

.cart-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cart-table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-table td:first-child,
.cart-table th:first-child,
.cart-table td:last-child,
.cart-table th:last-child {
  text-align: center;
}

.cart-product-cell {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 280px;
}

.cart-product-cell img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: contain;
  background: #f8fafc;
}

.cart-product-cell strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.cart-product-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.cart-product-cell em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 6px;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff1ec;
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.qty-control input {
  width: 44px;
  height: 30px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font-weight: 800;
  outline: 0;
}

.qty-control--table {
  width: max-content;
}

.line-total {
  color: var(--red);
  white-space: nowrap;
}

.remove-item--icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff1ee;
  font-size: 18px;
}

.cart-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 18px;
  text-align: center;
}

.cart-empty-state[hidden] {
  display: none;
}

.cart-empty-state strong {
  font-size: 20px;
}

.cart-empty-state p {
  margin: 0 0 8px;
  color: var(--muted);
}

.cart-mobile-list {
  display: none;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.cart-item-card > img {
  width: 92px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: contain;
  background: #f8fafc;
}

.cart-item-card__head,
.cart-item-card__price {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cart-item-card__head span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f6;
  color: #263241;
  font-size: 12px;
  font-weight: 900;
}

.cart-item-card__head button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}

.cart-item-card h3 {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.35;
}

.cart-item-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-card__price {
  margin-bottom: 8px;
}

.cart-item-card__price span {
  color: var(--muted);
}

.cart-item-card__price strong {
  color: var(--red);
}

.cart-summary-box {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cart-summary-box h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
  text-align: right;
}

.summary-row--total {
  border-bottom: 0;
  padding: 4px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.summary-row--total strong {
  color: var(--red);
  font-size: 24px;
}

.cart-summary-box p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.checkout-form-grid--order {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: 0;
}

.checkout-modal .checkout-form-grid--order {
  grid-template-columns: 1fr;
  gap: 12px;
}

.checkout-modal .checkout-panel {
  box-shadow: none;
}

.checkout-modal .checkout-cart-panel {
  align-self: start;
}

.checkout-modal .cart-table-wrap {
  display: none;
}

.checkout-modal .cart-mobile-list:not([hidden]) {
  display: grid;
}

.checkout-modal .cart-item-card {
  grid-template-columns: 72px 1fr;
  padding: 12px 14px;
}

.checkout-modal .cart-item-card > img {
  width: 72px;
  height: 72px;
}

.checkout-modal .cart-item-card h3 {
  margin-top: 6px;
}

.checkout-panel {
  padding: 16px;
}

.checkout-panel--customer {
  display: grid;
  gap: 18px;
  align-content: start;
}

.checkout-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.checkout-panel__head span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.checkout-panel__head h3 {
  margin: 0;
  font-size: 18px;
}

.checkout-panel__head--sub {
  margin-top: 18px;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-fields--single {
  grid-template-columns: 1fr;
}

.checkout-field {
  display: grid;
  gap: 6px;
}

.checkout-field--wide {
  grid-column: 1 / -1;
}

.checkout-field span {
  color: #384454;
  font-size: 13px;
  font-weight: 800;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: 0;
  background: #fff;
}

.checkout-field input,
.checkout-field select {
  height: 42px;
}

.checkout-field textarea {
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
  border-color: rgba(238, 61, 47, 0.65);
  box-shadow: 0 0 0 3px rgba(238, 61, 47, 0.1);
}

.checkout-field input.is-invalid,
.checkout-field textarea.is-invalid,
.checkout-field select.is-invalid {
  border-color: var(--red);
  background: #fff7f5;
}

.field-error {
  min-height: 17px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.payment-options,
.shipping-options,
.invoice-type-options {
  display: grid;
  gap: 9px;
}

.invoice-type-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.option-card:has(input:checked) {
  border-color: rgba(238, 61, 47, 0.5);
  background: #fff5f2;
  color: var(--red);
}

.option-card input,
.delivery-toggle input {
  accent-color: var(--red);
}

.checkout-note {
  margin: 12px 0 0;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f0fbfc;
  color: #0b6470;
  font-size: 13px;
  font-weight: 800;
}

.invoice-panel {
  display: grid;
  gap: 12px;
}

.checkout-panel--invoice {
  grid-column: 1 / -1;
}

details.checkout-panel--invoice {
  display: block;
}

.checkout-panel--invoice summary {
  cursor: pointer;
  color: #263241;
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

.checkout-panel--invoice summary::-webkit-details-marker {
  display: none;
}

.checkout-panel--invoice summary::after {
  content: "+";
  float: right;
  color: var(--red);
  font-weight: 900;
}

.checkout-panel--invoice[open] summary::after {
  content: "−";
}

.checkout-panel--invoice > :not(summary) {
  margin-top: 12px;
}

.invoice-panel .checkout-panel__head {
  margin-bottom: 0;
}

.invoice-fields[hidden] {
  display: none;
}

.checkout-cart-panel {
  overflow: hidden;
}

.checkout-cart-panel .cart-table-wrap {
  display: block;
}

.checkout-cart-panel .cart-mobile-list:not([hidden]) {
  display: none;
}

.checkout-modal .checkout-cart-panel .cart-table-wrap {
  display: none;
}

.checkout-modal .checkout-cart-panel .cart-mobile-list:not([hidden]) {
  display: grid;
}

.checkout-cart-panel .cart-summary-box {
  position: static;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.checkout-summary .button--zalo {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.checkout-required-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-submit-panel {
  position: sticky;
  bottom: 16px;
  z-index: 25;
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(238, 61, 47, 0.18);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff8f7;
  box-shadow: 0 18px 44px rgba(238, 61, 47, 0.18);
}

.checkout-submit-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.checkout-page-section {
  background: #fff;
  border-block: 1px solid var(--line);
}

.checkout-page .checkout-form-grid--order {
  padding-bottom: 12px;
}

.checkout-header-main {
  grid-template-columns: 260px minmax(240px, 1fr) auto;
}

.checkout-header-title {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.checkout-header-title strong {
  font-size: 18px;
}

.checkout-header-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.order-confirm-modal.is-open {
  display: block;
}

.order-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.order-confirm-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 32px));
  margin: 16px auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  padding: 18px;
  overflow: auto;
}

.order-confirm-modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.order-confirm-modal__head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.order-confirm-modal__head button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2933;
  font-size: 22px;
  font-weight: 900;
}

.order-confirm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.order-confirm-cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fafc;
}

.order-confirm-cards span,
.order-confirm-cards small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-confirm-cards strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 17px;
}

#orderConfirmText {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: #263241;
  resize: vertical;
}

.order-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delivery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #344054;
  font-weight: 900;
}

.delivery-fields[hidden] {
  display: none;
}

.brand-story {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  align-items: start;
}

.brand-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.brand-points article,
.support-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.brand-points strong {
  font-size: 17px;
}

.brand-points p,
.support-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.support-box {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: center;
  margin-bottom: 36px;
}

.support-form {
  display: grid;
  gap: 10px;
}

.vat-invoice-notice {
  border: 1px solid #ffd9cc;
  border-radius: var(--radius);
  background: #fff7ed;
  color: #9a3412;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.support-form input,
.support-form select,
.support-form textarea {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

.support-form textarea {
  height: auto;
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

.support-form p {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.footer {
  background: #1f2933;
  color: #d8dee8;
  padding: 34px 0 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer__brand .brand__mark {
  background: #fff;
  color: var(--red);
}

.footer__brand .brand__text small,
.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.72);
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.footer a {
  display: block;
  margin: 7px 0;
}

.footer ul {
  margin: 0;
  padding-left: 18px;
}

.footer__bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.product-modal {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: visible;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.product-modal::backdrop {
  background: rgba(17, 24, 39, 0.55);
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  box-shadow: var(--shadow);
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
  gap: 20px;
  max-height: inherit;
  overflow: auto;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
}

.modal-gallery {
  display: grid;
  gap: 10px;
  align-content: start;
}

.modal-main-image {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: hidden;
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.modal-thumbs button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  padding: 0;
}

.modal-thumbs button.is-active {
  border-color: var(--red);
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info {
  display: grid;
  align-content: start;
  gap: 12px;
}

.modal-info h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.22;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-price {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.spec-list,
.policy-list {
  margin: 0;
  padding-left: 20px;
}

.spec-list li,
.policy-list li {
  margin: 6px 0;
}

.variant-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.variant-row strong {
  display: block;
  font-size: 13px;
}

.variant-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.variant-row button {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.variant-row__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.variant-row__actions > span {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.variant-row__actions button {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.15;
}

.variant-row__actions button[data-buy-now] {
  background: #f97316;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  width: min(430px, 100vw);
  background: #fff;
  transform: translateX(105%);
  transition: transform 0.2s ease;
  box-shadow: -16px 0 42px rgba(15, 23, 42, 0.22);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head strong {
  display: block;
  font-size: 19px;
}

.cart-drawer__head span {
  color: var(--muted);
  font-size: 13px;
}

.cart-drawer__head button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
}

.cart-items {
  overflow: auto;
  padding: 12px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
}

.cart-item h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f8fafc;
  font-weight: 900;
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.cart-total strong {
  color: var(--red);
  font-size: 22px;
}

#orderText {
  width: calc(100% - 36px);
  min-height: 116px;
  margin: 0 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: #344054;
  resize: none;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 18px 18px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.42);
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(238, 61, 47, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: #263241;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.toast button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

/* --- Chat hỗ trợ khách hàng --- */

@media (max-width: 1080px) {
  .header-main {
    grid-template-columns: 220px 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .header-action {
    flex: 1;
  }

  .hero__grid,
  .catalog-layout,
  .cart-layout,
  .checkout-layout,
  .brand-story,
  .support-box {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .category-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-summary-box {
    position: static;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .topbar__inner {
    display: block;
    justify-content: center;
    padding: 5px 0;
    text-align: center;
  }

  .topbar__inner > span {
    display: block;
    min-width: 0;
    font-size: 0;
    overflow-wrap: anywhere;
  }

  .topbar__inner > span::after {
    content: "VFAN Official Store | Giao hàng toàn quốc";
    font-size: 12px;
    line-height: 1.35;
  }

  .topbar__links {
    display: none;
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .checkout-header-main {
    grid-template-columns: 1fr;
  }

  .checkout-header-title {
    display: none;
  }

  .brand__mark {
    width: 62px;
    height: 38px;
  }

  .header-search {
    grid-template-columns: 1fr 64px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .header-action {
    min-height: 36px;
    padding: 0 6px;
    font-size: 12px;
    min-width: 0;
  }

  .cart-toggle {
    grid-column: 1 / -1;
  }

  .checkout-modal {
    padding: 8px;
  }

  .checkout-modal__panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .checkout-modal__header {
    padding: 14px;
  }

  .checkout-modal__header p {
    font-size: 13px;
  }

  .checkout-steps {
    grid-template-columns: 1fr;
    padding: 10px 14px 0;
  }

  .checkout-steps span {
    min-height: 32px;
    font-size: 12px;
  }

  .checkout-modal .checkout-layout {
    grid-template-columns: 1fr;
    padding: 12px 14px 16px;
  }

  .category-menu__inner {
    width: 100%;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero__banner {
    min-height: 340px;
    background:
      linear-gradient(180deg, rgba(31, 41, 51, 0.96) 0%, rgba(31, 41, 51, 0.76) 58%, rgba(238, 61, 47, 0.2) 100%),
      url("assets/img/hero-vfan.jpg") center bottom / cover no-repeat;
  }

  .hero__content {
    padding: 22px;
  }

  .promo-stack {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .cart-benefits {
    grid-template-columns: 1fr;
  }

  .cart-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-card-actions {
    justify-content: stretch;
  }

  .cart-card-actions .button {
    flex: 1;
    min-width: 150px;
  }

  .cart-table-wrap {
    display: none;
  }

  .checkout-cart-panel .cart-table-wrap {
    display: none;
  }

  .cart-mobile-list {
    display: grid;
  }

  .checkout-cart-panel .cart-mobile-list:not([hidden]) {
    display: grid;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .cart-summary-box {
    padding: 14px;
  }

  .section {
    padding: 24px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .category-cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-card {
    flex: 0 0 140px;
  }

  .featured-grid,
  .deal-grid,
  .brand-points,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 94px 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card__body {
    padding: 9px;
  }

  .product-card h3 {
    font-size: 12px;
    min-height: 36px;
  }

  .model-row {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .stock-line {
    white-space: normal;
  }

  .price {
    font-size: 16px;
  }

  .badge-list {
    max-height: 50px;
    overflow: hidden;
  }

  .product-actions .button {
    width: 100%;
    min-height: 44px;
  }

  .filter-card {
    padding: 12px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .modal-thumbs {
    grid-template-columns: repeat(5, 1fr);
  }

  .variant-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-actions {
    grid-template-columns: 1fr;
  }

  .order-confirm-modal__panel {
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .order-confirm-cards {
    grid-template-columns: 1fr;
  }

  .order-confirm-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

}

@media (max-width: 380px) {
  .header-action,
  .product-actions .button,
  .tech-chip {
    font-size: 11px;
  }

  .product-card__body {
    gap: 6px;
  }
}

@media (max-width: 340px) {
  .product-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Nâng cấp trải nghiệm TMĐT hiện đại
   ============================================ */

/* --- Gợi ý tìm kiếm trực tiếp --- */
.header-search-wrap {
  position: relative;
  min-width: 0;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: #fff4f3;
}

.search-suggest__item img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f8fafc;
}

.search-suggest__info {
  min-width: 0;
}

.search-suggest__info strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-suggest__info small {
  color: var(--muted);
  font-size: 12px;
}

.search-suggest__price {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.search-suggest__all {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 12px;
  background: #fafbfc;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.search-suggest__all:hover,
.search-suggest__all.is-active {
  background: #fff4f3;
}

/* --- Nút yêu thích --- */
.wish-toggle {
  gap: 7px;
}

.wish-toggle svg {
  color: var(--red);
}

.count-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.wish-btn {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 40px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #98a2b3;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
  transition: color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.wish-btn:hover {
  color: var(--red);
  border-color: rgba(238, 61, 47, 0.4);
  transform: scale(1.08);
}

.wish-btn.is-active {
  color: var(--red);
  border-color: rgba(238, 61, 47, 0.4);
}

.wish-btn.is-active svg {
  fill: var(--red);
}

.modal-wish.is-active svg {
  fill: var(--red);
  color: var(--red);
}

.modal-wish svg {
  margin-right: 6px;
}

.wish-drawer {
  grid-template-rows: auto 1fr;
}

.wish-item h3 {
  font-size: 13px;
}

.wish-item .quick-view {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

/* --- Badge giỏ hàng nhún khi cập nhật --- */
@keyframes badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.is-bumped {
  animation: badge-bump 0.35s ease;
}

/* --- Thanh freeship trong giỏ --- */
.cart-freeship {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff8f0;
}

.cart-freeship p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #8a4b08;
}

.cart-freeship.is-reached p {
  color: var(--green);
}

.cart-freeship__track {
  height: 8px;
  border-radius: 999px;
  background: #f0e2d0;
  overflow: hidden;
}

.cart-freeship__track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: width 0.3s ease;
}

.cart-freeship.is-reached .cart-freeship__track span {
  background: var(--green);
}

/* --- Nút xem thêm --- */
.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.load-more-row .button {
  min-width: 240px;
}

/* --- Skeleton loading --- */
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f4 25%, #f8fafc 50%, #eef1f4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton--image {
  aspect-ratio: 1;
  border-radius: 0;
}

.skeleton--line {
  height: 14px;
}

.skeleton--button {
  height: 38px;
}

/* --- Thẻ sản phẩm mini (đã xem, liên quan) --- */
.recent-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.mini-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mini-card:hover {
  border-color: rgba(238, 61, 47, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mini-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  border: 0;
  padding: 0;
  background: #f7f8fa;
  overflow: hidden;
}

.mini-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.mini-card__body {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 11px;
}

.mini-card__body .model-pill {
  justify-self: start;
}

.mini-card h3 {
  display: -webkit-box;
  margin: 0;
  min-height: 38px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card h3 .quick-view {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

.mini-card .price {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.button--small {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}

/* --- Sản phẩm tương tự trong modal --- */
.modal-related {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.modal-related h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.modal-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* --- Nút lên đầu trang --- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 112px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.back-to-top:hover {
  color: var(--red);
  border-color: rgba(238, 61, 47, 0.4);
}

/* --- Nút dạng link trong section head --- */
.section-link--button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* --- Thanh điều hướng mobile --- */
.mobile-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 65;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav a,
.mobile-nav button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 8px 4px 7px;
  color: #4b5565;
  font-size: 11px;
  font-weight: 700;
}

.mobile-nav svg {
  width: 21px;
  height: 21px;
}

.mobile-nav a:active,
.mobile-nav button:active {
  color: var(--red);
}

.mobile-nav__badge {
  position: absolute;
  top: 3px;
  right: calc(50% - 22px);
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 720px) {
  .mobile-nav {
    display: grid;
  }

  body {
    padding-bottom: 62px;
  }

  .toast-stack {
    bottom: 140px;
  }

  .back-to-top {
    bottom: 170px;
    right: 10px;
  }

  .recent-row {
    grid-auto-columns: minmax(168px, 62vw);
  }

  .modal-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wish-toggle {
    display: none;
  }
}

/* hidden attribute luon thang display cua class */
[hidden] {
  display: none !important;
}
