:root {
  --ink: #0b2d55;
  --ink-soft: #1f4b7a;
  --blue: #1677d2;
  --blue-deep: #0c5fb0;
  --blue-soft: #e8f2fc;
  --line: #d7e4f2;
  --bg: #f7fbff;
  --white: #ffffff;
  --muted: #5a7190;
  --price: #0a4f9c;
  --shadow: 0 10px 30px rgba(11, 45, 85, 0.08);
  --radius: 14px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #dcebff 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #eef6ff 0%, transparent 50%),
    var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.wrap { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }

.topbar {
  background: linear-gradient(90deg, #0b3f7a, #1468bf);
  color: #edf5ff;
  font-size: 0.92rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
}
.topbar p { margin: 0; opacity: 0.92; }
.topbar-links { display: flex; gap: 1.1rem; }
.topbar-links a { opacity: 0.95; }
.topbar-links a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 0;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.brand-logo-footer {
  height: 48px;
  max-width: 240px;
  filter: none;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1a86ea, #0b4f9c);
  color: white; font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(22, 119, 210, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.45rem; letter-spacing: -0.03em;
}
.brand-text small { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.brand-strip {
  margin: 2rem auto 0;
}
.brand-strip img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.search {
  display: flex; align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.search input {
  flex: 1; border: 0; outline: 0;
  padding: 0.78rem 1.1rem;
  background: transparent;
  min-width: 0;
}
.search button {
  border: 0; cursor: pointer;
  background: var(--blue);
  color: white;
  padding: 0 1.25rem;
  font-weight: 600;
}
.search button:hover { background: var(--blue-deep); }

.hotline-pill {
  display: flex; flex-direction: column;
  background: var(--blue-soft);
  border: 1px solid #cfe2f8;
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  min-width: 150px;
}
.hotline-pill span { font-size: 0.75rem; color: var(--muted); }
.hotline-pill strong { color: var(--blue-deep); font-size: 1rem; }

.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.cat-nav-inner {
  display: flex; gap: 0.35rem;
  overflow-x: auto;
  padding: 0.55rem 0;
  scrollbar-width: thin;
}
.cat-chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.hero {
  position: relative;
  min-height: min(68vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 31, 60, 0.28) 45%,
    rgba(7, 31, 60, 0.62) 100%
  );
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  filter: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 1.75rem;
  padding: 0;
  max-width: none;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: riseIn 0.9s ease both;
}
.hero-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  max-width: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero-sub {
  margin: 0.65rem 0 1.15rem;
  max-width: 42ch;
  color: rgba(237, 245, 255, 0.92);
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn-primary {
  background: #1a86ea;
  color: white;
  box-shadow: 0 10px 24px rgba(26, 134, 234, 0.35);
}
.btn-primary:hover { background: #0d6fce; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
}
.trust-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.15rem;
  animation: riseIn 0.7s ease both;
}
.trust-item:nth-child(2) { animation-delay: 0.06s; }
.trust-item:nth-child(3) { animation-delay: 0.12s; }
.trust-item:nth-child(4) { animation-delay: 0.18s; }
.trust-item strong { font-family: var(--font-display); color: var(--ink); }
.trust-item span { color: var(--muted); font-size: 0.92rem; }

.shop {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.4rem;
  margin: 2.2rem auto 3rem;
  align-items: start;
}
.sidebar {
  position: sticky; top: 92px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.sidebar h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.side-link {
  display: flex; justify-content: space-between; gap: 0.5rem;
  width: 100%;
  border: 0; background: transparent;
  text-align: left;
  padding: 0.62rem 0.55rem;
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
}
.side-link:hover, .side-link.active {
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.side-link span { color: var(--muted); font-size: 0.85rem; }

.section-head {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.section-head-tight { margin-top: 2.2rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0.25rem 0 0; color: var(--muted); }
.toolbar label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.85rem; color: var(--muted);
}
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  background: white;
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex; flex-direction: column;
  animation: riseIn 0.55s ease both;
  color: inherit;
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #b9d5f3;
  box-shadow: 0 16px 34px rgba(11, 45, 85, 0.12);
}
.product-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f4f8fd, #eef4fb);
  display: grid; place-items: center;
  padding: 1rem;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 0.85rem 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-cat { font-size: 0.78rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}
.product-price {
  margin-top: auto;
  color: var(--price);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.pager {
  display: flex; justify-content: center; gap: 0.45rem;
  margin-top: 1.4rem; flex-wrap: wrap;
}
.pager button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  min-width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink-soft);
}
.pager button.active, .pager button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.cta-band {
  background: linear-gradient(120deg, #0b3f7a, #1677d2 60%, #3b9aef);
  color: white;
  margin-top: 1rem;
}
.cta-inner {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: center;
  padding: 2.2rem 0;
}
.cta-inner h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.cta-inner p { margin: 0; opacity: 0.92; max-width: 48ch; }
.cta-band .btn-primary {
  background: white; color: var(--blue-deep);
  box-shadow: none;
}

.site-footer {
  background:
    linear-gradient(180deg, #f3f8ff 0%, #eaf3fc 100%);
  color: var(--ink-soft);
  padding: 2.4rem 0 1.2rem;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.site-footer > .wrap > .footer-grid > div > p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}
.footer-brand .brand-text strong { color: var(--ink); }
.footer-brand .brand-text small { color: var(--muted); }
.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0 0.2rem;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 860px;
  width: calc(100% - 2rem);
}
.modal::backdrop { background: rgba(7, 31, 60, 0.55); backdrop-filter: blur(3px); }
.modal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.modal-close {
  position: absolute; top: 0.6rem; right: 0.7rem;
  border: 0; background: rgba(255,255,255,0.9);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 2;
}
.modal-media {
  background: linear-gradient(180deg, #f4f8fd, #e8f0f9);
  min-height: 320px;
  display: grid; place-items: center;
  padding: 1.4rem;
}
.modal-media img { max-height: 340px; object-fit: contain; }
.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.modal-vendor { margin: 0; color: var(--blue); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.modal-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.modal-price { margin: 0; color: var(--price); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.modal-summary { margin: 0 0 0.6rem; color: var(--muted); }

/* Product detail page */
.pdp { padding: 1.4rem 0 3rem; }
.pdp-loading, .pdp-error {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.breadcrumb a:hover { color: var(--blue-deep); text-decoration: underline; }
.pdp-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: start;
}
.gallery {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.gallery-main {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f7fbff, #eef5fc);
  border-radius: 14px;
  display: grid; place-items: center;
  padding: 1rem;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.gallery-thumbs button {
  border: 1px solid var(--line);
  background: #f7fbff;
  border-radius: 10px;
  padding: 0.35rem;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 210, 0.18);
}
.gallery-thumbs img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.pdp-buybox {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.pdp-vendor {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pdp-buybox h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.pdp-price {
  margin: 0.85rem 0 0.55rem;
  color: var(--price);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}
.pdp-summary { margin: 0 0 1rem; color: var(--muted); }
.pdp-meta {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pdp-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 0.95rem;
}
.pdp-meta strong { color: var(--ink-soft); font-weight: 600; }
.pdp-actions { display: grid; gap: 0.55rem; }
.btn-soft {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border: 1px solid #c5daf3;
}
.btn-soft:hover { background: #dcebff; }
.pdp-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.pdp-specs, .pdp-related { margin-top: 2rem; }
.spec-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.8rem;
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  line-height: 1.65;
}
.spec-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.7rem 0 1rem;
}
.spec-body h1, .spec-body h2, .spec-body h3, .spec-body h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.spec-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.spec-body table td, .spec-body table th {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
}
.spec-body ul { padding-left: 1.2rem; }
.spec-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
}
.spec-gallery figure {
  margin: 0;
  background: #f4f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
}
.spec-gallery img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin: 0;
}
.spec-gallery figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.spec-body img.is-broken { display: none; }


@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }
  .sidebar h3 { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-card { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo {
    height: 46px;
    max-width: min(260px, 70vw);
  }
  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 auto 1.25rem;
  }
  .pdp-top { grid-template-columns: 1fr; }
  .pdp-buybox { position: static; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero { min-height: 56vh; }
  .hero::after { height: 55%; }
}

/* Facebook / Zalo chat */
.nova-chat-stack {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.nova-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem 0.72rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a86ea, #0b4f9c);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 12px 28px rgba(11, 79, 156, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nova-chat-fab-zalo {
  background: linear-gradient(135deg, #0190f3, #0068ff);
  box-shadow: 0 12px 28px rgba(0, 104, 255, 0.32);
}
.nova-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(11, 79, 156, 0.42);
}
.nova-chat-fab-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.nova-chat-fab-txt { font-size: 0.95rem; letter-spacing: -0.01em; }
@media (max-width: 560px) {
  .nova-chat-fab-txt { display: none; }
  .nova-chat-fab { padding: 0.7rem; }
}
