/* ==========================================================================
   Quỹ phát triển khoa học và công nghệ thành phố Hồ Chí Minh — layout kiểu cửa hàng Sản phẩm (tham chiếu Minh Thắng)
   ========================================================================== */
body.nsb-store {
  /* Lấy màu từ Cài đặt màu trong admin (:root --theme-color, ...) */
  --nsb-red: var(--theme-color, #3480e5);
  --nsb-red-dark: color-mix(in srgb, var(--theme-color, #3480e5) 78%, #000);
  --nsb-ink: var(--text-color, #53627a);
  --nsb-muted: color-mix(in srgb, var(--text-color, #53627a) 72%, #fff);
  --nsb-line: #e5e7eb;
  --nsb-page: var(--background, #eff5fc);
  --nsb-surface: #ffffff;
  --nsb-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --nsb-radius: 12px;
  --nsb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nsb-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  margin: 0;
  background: var(--nsb-page);
  color: var(--nsb-ink);
  font-family: var(--nsb-font);
  font-size: 15px;
  line-height: 1.6;
}

body.nsb-store a,
body.nsb-store button,
body.nsb-store input,
body.nsb-store textarea {
  font-family: inherit;
}

body.nsb-store a {
  text-decoration: none;
}

/* Link thường kế thừa màu nền; nút giữ màu riêng, không bị inherit. */
body.nsb-store a:not(.nsb-btn):not(.tp_btn) {
  color: inherit;
}

body.nsb-store a:not(.nsb-btn):not(.tp_btn):hover {
  color: var(--nsb-red);
  text-decoration: none;
}

body.nsb-store h1,
body.nsb-store h2,
body.nsb-store h3,
body.nsb-store h4,
body.nsb-store h5,
body.nsb-store h6 {
  margin: 0;
  color: var(--nsb-ink);
  line-height: 1.3;
  text-transform: none;
  font-family: inherit;
  font-weight: 600;
}

/* Tiêu đề trên nền xanh (hộp thông tin liên hệ) phải chữ trắng. */
body.nsb-store .tp_contact_box>h4 {
  color: #fff;
}

body.nsb-store b,
body.nsb-store strong {
  font-weight: 600;
}

body.nsb-store p {
  margin: 0;
}

body.nsb-store :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-color, #3480e5) 45%, transparent);
  outline-offset: 2px;
}

.nsb-shell {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.nsb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nsb-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.nsb-btn--primary {
  background: var(--nsb-red);
  color: #fff;
}

.nsb-btn--primary:hover {
  background: var(--nsb-red-dark);
  color: #fff;
}

.nsb-btn--ghost {
  background: #fff;
  border-color: var(--nsb-line);
  color: var(--nsb-ink);
}

.nsb-btn--ghost:hover {
  border-color: var(--nsb-red);
  color: var(--nsb-red);
}

.nsb-btn--outline {
  background: #fff;
  border-color: var(--nsb-red);
  color: var(--nsb-red);
}

.nsb-btn--outline:hover {
  background: color-mix(in srgb, var(--nsb-red) 8%, #fff);
  color: var(--nsb-red);
}

.nsb-btn--accent {
  background: #f97316;
  color: #fff;
}

.nsb-btn--accent:hover {
  background: #ea580c;
  color: #fff;
}

.nsb-btn--light {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.nsb-btn--light:hover {
  background: #fff;
  color: var(--nsb-red);
}

/* Nút nền đậm = chữ trắng; nút nền sáng = chữ đậm. Áp dụng cả <a> lẫn <button>. */
body.nsb-store a.nsb-btn,
body.nsb-store button.nsb-btn {
  text-decoration: none;
}

body.nsb-store .nsb-btn--primary,
body.nsb-store a.nsb-btn--primary,
body.nsb-store button.nsb-btn--primary,
body.nsb-store .nsb-btn--primary:hover,
body.nsb-store a.nsb-btn--primary:hover,
body.nsb-store button.nsb-btn--primary:hover {
  color: #fff;
}

body.nsb-store .nsb-btn--accent,
body.nsb-store a.nsb-btn--accent,
body.nsb-store .nsb-btn--accent:hover,
body.nsb-store a.nsb-btn--accent:hover {
  color: #fff;
}

body.nsb-store .nsb-btn--ghost,
body.nsb-store a.nsb-btn--ghost {
  color: var(--nsb-ink);
}

body.nsb-store .nsb-btn--ghost:hover,
body.nsb-store a.nsb-btn--ghost:hover {
  color: var(--nsb-red);
}

body.nsb-store .nsb-btn--outline,
body.nsb-store a.nsb-btn--outline,
body.nsb-store .nsb-btn--outline:hover,
body.nsb-store a.nsb-btn--outline:hover {
  color: var(--nsb-red);
}

body.nsb-store .nsb-btn--light,
body.nsb-store a.nsb-btn--light {
  color: #fff;
}

body.nsb-store .nsb-btn--light:hover,
body.nsb-store a.nsb-btn--light:hover {
  color: var(--nsb-red);
}

/* Nút theme cũ (.tp_btn) trên nền màu chính: chữ trắng, không lấy Màu Chữ admin. */
body.nsb-store a.tp_btn,
body.nsb-store button.tp_btn,
body.nsb-store .tp_btn,
body.nsb-store .tp_btn span,
body.nsb-store .tp_btn i,
body.nsb-store a.tp_btn:hover,
body.nsb-store .tp_btn:hover,
body.nsb-store a.tp_btn:hover span,
body.nsb-store a.tp_btn:hover i {
  color: #fff;
}

.nsb-btn--lg {
  min-height: 48px;
  padding-inline: 1.4rem;
  font-size: 1rem;
}

/* Utility bar */
.nsb-util {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.82rem;
}

.nsb-util__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.nsb-util__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nsb-util__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e5e7eb;
}

.nsb-util__links a:hover {
  color: #fff;
}

.nsb-util__links .material-symbols-outlined {
  font-size: 16px;
}

/* Header */
.nsb-header {
  background: var(--nsb-surface);
  border-bottom: 1px solid var(--nsb-line);
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.nsb-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.nsb-header__top-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

@media (min-width: 992px) {
  .nsb-top-actions {
    display: none !important;
  }

  .nsb-mobile-toggle {
    display: none !important;
  }
}

.nsb-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nsb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 280px;
}

.nsb-brand:hover {
  color: inherit;
  text-decoration: none;
}

.nsb-brand img {
  max-height: 48px;
  width: auto;
}

.nsb-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--nsb-red), var(--nsb-red-dark));
  color: #fff;
  font-family: var(--nsb-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.nsb-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nsb-brand__text strong {
  font-family: var(--nsb-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.nsb-brand__text small {
  color: var(--nsb-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.nsb-search {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--nsb-red);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
}

.nsb-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.75rem 1rem;
  background: transparent;
}

.nsb-search .nsb-btn {
  border-radius: 0;
  min-width: 52px;
}

.nsb-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nsb-icon-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nsb-ink);
}

.nsb-icon-link:hover {
  background: #fef2f2;
  color: var(--nsb-red);
  text-decoration: none;
}

.nsb-icon-link .material-symbols-outlined {
  font-size: 24px;
}

.nsb-icon-link em {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--nsb-red);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.nsb-account-wrap {
  position: relative;
  z-index: 1005;
}

.nsb-account-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1010;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
}

.nsb-account-wrap:hover .nsb-account-dropdown {
  display: block;
}

.nsb-account-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--nsb-ink);
  white-space: nowrap;
}

.nsb-account-dropdown a:hover {
  background: #f5f5f5;
  color: var(--nsb-red);
  text-decoration: none;
}

/* Mega menu (Fahasa-style) */
.nsb-mega {
  position: static;
  align-self: stretch;
  display: flex;
  align-items: center;
  z-index: 50;
}

.nsb-mega__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nsb-ink);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

.nsb-mega__trigger .material-symbols-outlined {
  font-size: 26px;
  color: var(--nsb-red);
}

.nsb-mega:hover .nsb-mega__trigger,
.nsb-mega.is-open .nsb-mega__trigger,
.nsb-mega:focus-within .nsb-mega__trigger {
  background: #f3f4f6;
  color: var(--nsb-red);
}

body.cm-home .nsb-mega a,
body.cm-home .nsb-mega a:hover,
body.cm-home .nsb-mega a:focus,
body.nsb-store .nsb-mega a,
body.nsb-store .nsb-mega a:hover,
body.nsb-store .nsb-mega a:focus {
  text-decoration: none;
}

.nsb-mega__dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  width: 100%;
  min-height: 440px;
  max-height: min(72vh, 640px);
  background: #fff;
  border: 1px solid var(--nsb-line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.nsb-mega__desktop {
  display: flex;
  width: 100%;
  min-height: inherit;
}

.nsb-mega__mobile {
  display: none;
  width: 100%;
  flex-direction: column;
  min-height: 0;
}

.nsb-mega.is-open .nsb-mega__dropdown,
.nsb-mega:focus-within .nsb-mega__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nsb-mega__aside {
  width: 250px;
  flex: 0 0 250px;
  border-right: 1px solid #eee;
  overflow: auto;
  background: #fff;
}

.nsb-mega__aside-title {
  margin: 0;
  padding: 16px 16px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nsb-mega__l1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 500;
}

.nsb-mega__l1 .material-symbols-outlined {
  font-size: 18px;
  color: #d1d5db;
}

.nsb-mega__l1:hover,
.nsb-mega__l1.is-active {
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.nsb-mega__l1.is-active .material-symbols-outlined {
  color: var(--nsb-red);
}

.nsb-mega__panels {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 18px 22px 22px;
  background: #fff;
}

.nsb-mega__panel {
  display: none;
}

.nsb-mega__panel.is-active {
  display: block;
}

.nsb-mega__panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.nsb-mega__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--nsb-red);
}

.nsb-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 28px;
}

.nsb-mega__col {
  min-width: 0;
  padding-bottom: 12px;
}

.nsb-mega__l2 {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nsb-mega__l2:hover {
  color: var(--nsb-red);
  text-decoration: none;
}

.nsb-mega__l3 {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.nsb-mega__l3 a {
  display: block;
  padding: 3px 0;
  color: #4b5563;
  font-size: 0.86rem;
}

.nsb-mega__l3 a:hover {
  color: var(--nsb-red);
  text-decoration: none;
}

body.nsb-store .nsb-mega__all,
.nsb-mega__all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  margin-top: 4px !important;
  color: #10b981 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

body.nsb-store .nsb-mega__all .material-symbols-outlined,
.nsb-mega__all .material-symbols-outlined {
  font-size: 14px !important;
  color: #10b981 !important;
  transition: transform 0.15s ease !important;
}

body.nsb-store .nsb-mega__all:hover,
.nsb-mega__all:hover {
  color: #059669 !important;
  text-decoration: none !important;
}

body.nsb-store .nsb-mega__all:hover .material-symbols-outlined,
.nsb-mega__all:hover .material-symbols-outlined {
  color: #059669 !important;
  transform: translateX(3px) !important;
}

body.nsb-store .nsb-mega__acc-all,
.nsb-mega__acc-all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 10px !important;
  color: #10b981 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

body.nsb-store .nsb-mega__acc-all .material-symbols-outlined,
.nsb-mega__acc-all .material-symbols-outlined {
  font-size: 16px !important;
  color: #10b981 !important;
}

.nsb-mega__empty {
  color: var(--nsb-muted);
  font-size: 0.9rem;
  padding: 8px 16px 16px;
}

body.nsb-store.nsb-mega-open #noi-dung {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* Nav */
.nsb-nav {
  background: var(--nsb-red);
  color: #fff;
}

.nsb-nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
}

.nsb-nav__cats {
  position: relative;
}

.nsb-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.nsb-nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 280px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  color: var(--nsb-ink);
  border: 1px solid var(--nsb-line);
  box-shadow: var(--nsb-shadow);
  animation: nsb-fade-up 0.22s ease;
}

.nsb-nav__panel a {
  display: block;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.nsb-nav__panel a:hover {
  background: #fef2f2;
  color: var(--nsb-red);
  text-decoration: none;
}

.nsb-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.nsb-nav__links a {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.92;
}

.nsb-nav__links a:hover,
.nsb-nav__links a.is-active {
  opacity: 1;
  text-decoration: none;
  color: #fff;
}

/* Hero */
.nsb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--nsb-red-dark) 94%, transparent), color-mix(in srgb, var(--nsb-red) 78%, transparent)),
    var(--nsb-hero-image, linear-gradient(135deg, var(--nsb-red-dark), var(--nsb-red) 55%, var(--secondary-color, #585c66)));
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: clamp(320px, 52vh, 480px);
  display: flex;
  align-items: center;
}

.nsb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.18), transparent 45%);
  z-index: -1;
}

.nsb-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
}

.nsb-hero__brand {
  font-family: var(--nsb-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  animation: nsb-fade-up 0.55s ease both;
}

.nsb-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  max-width: 14ch;
  margin-bottom: 12px;
  animation: nsb-fade-up 0.55s ease 0.08s both;
}

.nsb-hero__lead {
  max-width: 38ch;
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 22px;
  animation: nsb-fade-up 0.55s ease 0.16s both;
}

.nsb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: nsb-fade-up 0.55s ease 0.24s both;
}

.nsb-hero__visual {
  display: grid;
  place-items: center;
}

.nsb-hero__stack {
  position: relative;
  width: min(280px, 70%);
  aspect-ratio: 3 / 4;
}

.nsb-hero__stack span {
  position: absolute;
  inset: 0;
  border-radius: 8px 14px 14px 8px;
  background: linear-gradient(160deg, #fff 0%, #fee2e2 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform-origin: left center;
  animation: nsb-book-float 4.5s ease-in-out infinite;
}

.nsb-hero__stack span:nth-child(1) {
  transform: rotate(-8deg) translateX(-18px);
  animation-delay: 0s;
}

.nsb-hero__stack span:nth-child(2) {
  transform: rotate(2deg);
  background: linear-gradient(160deg, #fff 0%, #fecaca 100%);
  animation-delay: 0.2s;
}

.nsb-hero__stack span:nth-child(3) {
  transform: rotate(10deg) translateX(18px);
  background: linear-gradient(160deg, #fff7ed 0%, #fdba74 100%);
  animation-delay: 0.4s;
}

/* Sections */
.nsb-section {
  padding: 28px 0 8px;
}

body.nsb-store .nsb-recent-section {
  padding: 20px 0 36px;
}

body.nsb-store .nsb-recent-section .nsb-section__head {
  margin-bottom: 14px;
}

/* Đã xem gần đây: card giống trang chủ, ~3 thẻ / hàng trên desktop */
body.nsb-store .nsb-recent-rail {
  margin-top: 4px;
}

body.nsb-store .nsb-recent-rail .nsb-rail__track {
  grid-auto-columns: calc((100% - 28px) / 3);
  gap: 14px;
  padding: 6px 4px 14px;
}

body.nsb-store .nsb-recent-rail .nsb-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.nsb-store .nsb-recent-rail .nsb-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.nsb-store .nsb-recent-rail .nsb-card__media {
  max-height: none;
  aspect-ratio: 4 / 5;
  background: #ffffff;
}

body.nsb-store .nsb-recent-rail .nsb-card__body {
  padding: 14px;
  gap: 8px;
}

body.nsb-store .nsb-recent-rail .nsb-card__title {
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.7em;
}

body.nsb-store .nsb-recent-rail .nsb-card__author {
  font-size: 0.82rem;
  color: #94a3b8;
}

body.nsb-store .nsb-recent-rail .nsb-card__price strong {
  font-size: 1.05rem;
  color: #2563eb;
}

body.nsb-store .nsb-recent-rail .nsb-card__actions {
  margin-top: 4px;
  gap: 8px;
}

body.nsb-store .nsb-recent-rail .nsb-card__actions .nsb-btn {
  flex: 1;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 600;
}

@media (max-width: 900px) {
  body.nsb-store .nsb-recent-rail .nsb-rail__track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

@media (max-width: 560px) {
  body.nsb-store .nsb-recent-rail .nsb-rail__track {
    grid-auto-columns: minmax(72%, 1fr);
  }
}

.nsb-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nsb-red);
}

.nsb-section__head h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

.nsb-section__more {
  color: var(--nsb-red);
  font-weight: 600;
  white-space: nowrap;
}

.nsb-cats-strip {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.nsb-cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  background: var(--nsb-surface);
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
  box-shadow: var(--nsb-shadow);
  padding: 14px;
}

.nsb-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nsb-cat:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--nsb-red);
}

.nsb-cat .material-symbols-outlined {
  font-size: 28px;
  color: var(--nsb-red);
}

.nsb-cat em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product cards */
.nsb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.nsb-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nsb-card {
  background: var(--nsb-surface);
  border: 1px solid var(--nsb-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nsb-shadow);
}

.nsb-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 210px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nsb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nsb-card:hover .nsb-card__media img {
  transform: scale(1.04);
}

.nsb-card__media .material-symbols-outlined {
  font-size: 42px;
  color: #9ca3af;
}

.nsb-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--nsb-red);
  color: #fff;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.nsb-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nsb-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.nsb-card__title a:hover {
  color: var(--nsb-red);
  text-decoration: none;
}

.nsb-card__author {
  color: var(--nsb-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsb-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  width: 100%;
}

.nsb-card__price strong {
  color: var(--nsb-red);
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nsb-card__price s {
  color: #9ca3af;
  font-size: 0.82rem;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

.nsb-card__price.is-free strong {
  color: #047857;
}

.nsb-card--catalog {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.nsb-card--catalog:hover {
  transform: none;
  box-shadow: none;
}

.nsb-card--catalog .nsb-card__media {
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  background: #fff;
}

.nsb-card--catalog .nsb-card__body {
  padding: 10px 0 0;
}

.nsb-card--catalog .nsb-card__off {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--nsb-red);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
}

.nsb-card--catalog .nsb-card__old,
.nsb-card--catalog .nsb-card__price+.nsb-card__old {
  display: block;
  color: #9ca3af;
  font-size: 0.82rem;
}

/* Catalog / category page */
body.nsb-store .nsb-catalog {
  padding: 1rem 0 2.5rem;
}

body.nsb-store .nsb-catalog__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

body.nsb-store .nsb-catalog__side {
  background: #fff;
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
  padding: 1.1rem 1.15rem 1.4rem;
}

body.nsb-store .nsb-catalog__side h2 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

body.nsb-store .nsb-catnav__all {
  display: block;
  margin: 0 0 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

body.nsb-store .nsb-catnav__l1 {
  display: block;
  margin: 0.95rem 0 0.4rem;
  color: var(--nsb-ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

body.nsb-store .nsb-catnav__group ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem 14px;
}

body.nsb-store .nsb-catnav__group ul a {
  display: block;
  padding: 0.22rem 0;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 400;
}

body.nsb-store .nsb-catnav__l3 {
  padding-left: 12px !important;
}

body.nsb-store .nsb-catnav a.is-active,
body.nsb-store .nsb-catnav a:hover {
  color: var(--nsb-red);
}

body.nsb-store .nsb-catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

body.nsb-store .nsb-catalog__head h1 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Toolbar Sắp xếp theo mẫu */
body.nsb-store .nsb-sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

body.nsb-store .nsb-sort-bar__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2937;
  flex-shrink: 0;
}

body.nsb-store .nsb-sort-bar__icon {
  color: var(--theme-color, #10b981);
  flex-shrink: 0;
}

body.nsb-store .nsb-sort-bar__options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

body.nsb-store .nsb-sort-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  margin: 0;
  user-select: none;
  font-size: 0.92rem;
  color: #4b5563;
  transition: color 0.15s ease;
}

body.nsb-store .nsb-sort-item:hover {
  color: var(--theme-color, #10b981);
}

body.nsb-store .nsb-sort-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  outline: none;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
  flex-shrink: 0;
}

body.nsb-store .nsb-sort-item input[type="radio"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--theme-color, #10b981);
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
}

body.nsb-store .nsb-sort-item input[type="radio"]:checked {
  border-color: var(--theme-color, #10b981);
}

body.nsb-store .nsb-sort-item input[type="radio"]:checked::before {
  transform: scale(1);
}

body.nsb-store .nsb-sort-item.is-active,
body.nsb-store .nsb-sort-item:has(input:checked) {
  color: #111827;
  font-weight: 600;
}

@media (max-width: 768px) {
  body.nsb-store .nsb-sort-bar {
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
  }
  body.nsb-store .nsb-sort-bar__options {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem 1.15rem;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.nsb-store .nsb-sort-bar__options::-webkit-scrollbar {
    display: none;
  }
  body.nsb-store .nsb-sort-item {
    flex-shrink: 0;
    font-size: 0.85rem;
  }
}

body.nsb-store .nsb-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

body.nsb-store .nsb-catalog__grid .nsb-empty {
  grid-column: 1 / -1;
}

body.nsb-store .nsb-catalog__more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 1100px) {
  body.nsb-store .nsb-catalog__layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body.nsb-store .nsb-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.nsb-store .nsb-catalog__layout {
    grid-template-columns: 1fr;
  }

  body.nsb-store .nsb-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nsb-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6px;
  margin-top: 6px;
}

.nsb-card__actions .nsb-btn {
  border-radius: 8px;
  padding: 0.45rem 0.4rem;
  font-size: 0.78rem;
}

body.nsb-store .nsb-card__actions .nsb-btn--ghost {
  background: #ffffff;
  color: #0f172a !important;
  border-color: #cbd5e1;
}

body.nsb-store .nsb-card__actions .nsb-btn--ghost:hover {
  color: #1d4ed8 !important;
  border-color: #1d4ed8;
}

.nsb-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--nsb-muted);
  background: var(--nsb-surface);
  border-radius: var(--nsb-radius);
}

/* Horizontal rail */
.nsb-rail {
  position: relative;
}

.nsb-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.nsb-rail__track::-webkit-scrollbar,
.nsb-category-tabs::-webkit-scrollbar,
[data-nsb-track]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nsb-rail__track>.nsb-card {
  scroll-snap-align: start;
}

.nsb-rail__btn {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--nsb-line);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nsb-rail__btn--prev {
  left: -14px;
}

.nsb-rail__btn--next {
  right: -14px;
}

.nsb-rail__btn:hover {
  color: #ffffff;
  background: var(--theme-color, #10b981);
  border-color: var(--theme-color, #10b981);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Features */
.nsb-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nsb-feature {
  background: var(--nsb-surface);
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
  padding: 20px;
}

.nsb-feature .material-symbols-outlined {
  color: var(--nsb-red);
  font-size: 30px;
  margin-bottom: 8px;
}

.nsb-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.nsb-feature p {
  color: var(--nsb-muted);
  font-size: 0.92rem;
}

/* Footer */
.nsb-footer {
  margin-top: 40px;
  background: #111827;
  color: #d1d5db;
  padding: 40px 0 20px;
}

.nsb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.nsb-footer h3,
.nsb-footer h4 {
  color: #fff;
  margin-bottom: 12px;
}

.nsb-footer h3 {
  font-family: var(--nsb-display);
  font-size: 1.35rem;
}

.nsb-footer a,
.nsb-footer p {
  display: block;
  margin-bottom: 8px;
  color: #d1d5db;
}

body.nsb-store .nsb-footer h3,
body.nsb-store .nsb-footer h4 {
  color: #f8fafc !important;
}

body.nsb-store .nsb-footer a,
body.nsb-store .nsb-footer p {
  color: #e5e7eb !important;
}

body.nsb-store .nsb-footer a:hover,
.nsb-footer a:hover {
  color: #fff !important;
}

body.nsb-store .nsb-flash__title,
body.nsb-store .nsb-flash__title strong,
body.nsb-store .nsb-flash__timer,
body.nsb-store .nsb-flash .nsb-section__more,
body.nsb-store .nsb-flash .nsb-section__more:hover {
  color: #fff;
}

.nsb-footer__meta {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
}

.nsb-footer__meta .material-symbols-outlined {
  font-size: 18px;
  margin-top: 2px;
}

.nsb-footer__bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #374151;
  font-size: 0.85rem;
  color: #9ca3af;
}

@keyframes nsb-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nsb-book-float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 1100px) {

  .nsb-grid,
  .nsb-grid--5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nsb-cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nsb-rail__track {
    grid-auto-columns: calc((100% - 42px) / 4);
  }
}

@media (max-width: 1100px) {
  .nsb-mega__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nsb-util {
    display: none;
  }

  .nsb-header {
    border-bottom: 0;
  }

  .nsb-header .nsb-shell {
    width: 100%;
  }

  .nsb-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .nsb-header__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 8px;
    background: #ffffff;
    gap: 8px;
    width: 100%;
  }

  .nsb-brand {
    justify-content: flex-start;
    padding: 0;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }

  .nsb-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
  }

  .nsb-brand__text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--nsb-green-dark, #064e3b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nsb-brand__text small {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nsb-brand img {
    max-height: 42px;
    width: auto;
    flex-shrink: 0;
  }

  /* Right top quick actions: Hotline + Account */
  .nsb-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .nsb-top-hotline {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    color: #0f172a;
  }

  .nsb-top-hotline__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .nsb-top-hotline__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .nsb-top-hotline__text small {
    font-size: 0.72rem;
    color: #475569;
    font-weight: 500;
  }

  .nsb-top-hotline__text strong {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.3px;
  }

  .nsb-top-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #0f172a;
    text-decoration: none !important;
    transition: background 0.2s;
  }

  .nsb-top-icon-btn:hover {
    background: #f1f5f9;
  }

  .nsb-top-icon-btn .material-symbols-outlined {
    font-size: 28px;
    color: #0f172a;
  }

  /* Ẩn icon user ở thanh tìm kiếm phía dưới trên mobile (vì đã có trên hàng 1) */
  .nsb-header__bar .nsb-account-wrap {
    display: none !important;
  }

  @media (max-width: 480px) {
    .nsb-brand__text strong {
      font-size: 0.85rem;
    }
    .nsb-brand__text small {
      font-size: 0.6rem;
      display: block;
    }
    .nsb-top-hotline__text small {
      font-size: 0.68rem;
      color: #475569;
      font-weight: 500;
    }
    .nsb-top-hotline__text strong {
      font-size: 0.95rem !important;
    }
    .nsb-top-hotline__img {
      width: 24px;
      height: 24px;
    }
  }

  @media (max-width: 380px) {
    .nsb-top-hotline__text {
      display: flex;
    }
  }

  .nsb-header__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nsb-red);
    padding: 8px 12px;
  }

  .nsb-mega {
    flex: 0 0 auto;
  }

  .nsb-mega__trigger {
    height: 40px;
    padding: 0 4px;
    color: #fff;
  }

  .nsb-mega__trigger .material-symbols-outlined {
    color: #fff;
    font-size: 28px;
  }

  .nsb-mega:hover .nsb-mega__trigger,
  .nsb-mega.is-open .nsb-mega__trigger,
  .nsb-mega:focus-within .nsb-mega__trigger {
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
  }

  .nsb-mega__trigger-text {
    display: none;
  }

  .nsb-mega__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 0;
    max-height: 78vh;
    flex-direction: column;
    border-radius: 0;
  }

  .nsb-mega__aside {
    width: 100%;
    flex: 0 0 auto;
    max-height: 38vh;
    border-right: 0;
    border-bottom: 1px solid #eee;
  }

  .nsb-mega__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsb-search {
    flex: 1;
    min-width: 0;
    max-width: none;
    border: 0;
    border-radius: 999px;
    background: #fff;
  }

  .nsb-search input {
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
  }

  .nsb-search .nsb-btn {
    display: none;
  }

  .nsb-header__bar .nsb-icon-link span:not(.material-symbols-outlined) {
    display: none;
  }

  .nsb-header__actions {
    gap: 2px;
  }

  .nsb-icon-link--wish {
    display: none;
  }

  .nsb-header__bar .nsb-icon-link {
    color: #fff;
    padding: 4px;
  }

  .nsb-header__bar .nsb-icon-link:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
  }

  .nsb-header__bar .nsb-icon-link em {
    background: #22c55e;
    top: 0;
    right: 0;
  }

  .nsb-section__head {
    background: transparent;
    color: inherit;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 2px solid var(--nsb-red);
    border-radius: 0;
    align-items: center;
  }

  .nsb-section__head h2 {
    color: var(--nsb-ink);
    font-size: 1.05rem;
  }

  .nsb-section__more {
    color: var(--nsb-red);
    font-size: 0.88rem;
  }

  .nsb-hero__inner {
    grid-template-columns: 1fr;
  }

  .nsb-hero__visual {
    display: none;
  }

  .nsb-footer__grid,
  .nsb-features {
    grid-template-columns: 1fr 1fr;
  }

  .nsb-util__note {
    display: none;
  }

  .nsb-stage {
    padding: 0;
  }

  .nsb-stage__top,
  .nsb-stage__hero,
  .nsb-stage__side,
  .nsb-stage__quad-item {
    border-radius: 0;
  }
}

@media (max-width: 640px) {

  .nsb-grid,
  .nsb-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsb-nav__links {
    display: none;
  }

  .nsb-icon-link span:not(.material-symbols-outlined) {
    display: none;
  }

  .nsb-footer__grid {
    grid-template-columns: 1fr;
  }

  .nsb-rail__btn {
    display: none;
  }
}

/* Fahasa-style banner stage */
.nsb-masthead {
  display: block;
  width: 100%;
  line-height: 0;
  background: #fff;
}

.nsb-masthead a {
  display: block;
}

.nsb-masthead img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
  object-fit: unset;
}

.nsb-stage {
  padding: 16px 0 8px;
}

.nsb-stage__main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.nsb-stage__main.is-hero-only,
.nsb-stage__main.is-side-only {
  grid-template-columns: 1fr;
}

.nsb-stage__hero {
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--nsb-shadow);
  aspect-ratio: auto;
  height: auto;
  width: 100%;
}

.nsb-stage__hero .swiper,
.nsb-stage__hero .nsb-hero-swiper {
  height: auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.nsb-hero-swiper .swiper-pagination {
  bottom: 12px !important;
  z-index: 10;
}

.nsb-hero-slide {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.nsb-hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
}

.nsb-stage__hero .nsb-hero {
  min-height: 100%;
  height: 100%;
}

.nsb-hero--fallback {
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
}

.nsb-hero-swiper .swiper-button-prev,
.nsb-hero-swiper .swiper-button-next {
  color: #fff;
}

.nsb-hero-swiper .swiper-pagination-bullet-active {
  background: var(--nsb-red);
}

.nsb-stage__sides {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.nsb-stage__side {
  display: block;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--nsb-shadow);
}

.nsb-stage__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsb-stage__quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.nsb-stage__quad-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--nsb-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsb-stage__quad-item:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.nsb-stage__quad-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.nsb-stage__ph {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--nsb-muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, #fff, #f3f6fb);
  border: 1px dashed var(--nsb-line);
  min-height: 88px;
}

.nsb-stage__ph--hero {
  border: 0;
  box-shadow: none;
  min-height: 0;
}

/* Promo multi-column banners */
.nsb-promo__grid {
  display: grid;
  grid-template-columns: repeat(var(--nsb-promo-cols, 4), minmax(0, 1fr));
  gap: 12px;
}

.nsb-promo__item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nsb-line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsb-promo__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--nsb-shadow);
  text-decoration: none;
}

.nsb-promo__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Flash sale */
.nsb-flash {
  background: linear-gradient(135deg, var(--nsb-red-dark), var(--nsb-red) 55%, var(--secondary-color, #585c66));
  border-radius: 14px;
  padding: 16px;
  color: #fff;
}

.nsb-flash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nsb-flash__title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nsb-flash__title strong {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nsb-flash__timer {
  display: inline-flex;
  gap: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
}

.nsb-flash .nsb-section__more {
  color: #fff;
}

.nsb-flash .nsb-rail__btn {
  background: #fff;
}

/* Mid banner */
.nsb-mid-banner {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--nsb-shadow);
}

.nsb-mid-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 5;
  object-fit: cover;
}

@media (max-width: 900px) {
  .nsb-stage__main {
    grid-template-columns: 1fr;
  }

  .nsb-stage__sides {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .nsb-stage__side {
    aspect-ratio: 16 / 9;
  }

  .nsb-stage__quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsb-promo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .nsb-stage__sides,
  .nsb-stage__quad {
    grid-template-columns: 1fr;
  }
}

/* Mobile: header kiểu Minh Thắng + chỉ 1 banner ngang */
@media (max-width: 900px) {
  body.nsb-store .nsb-util {
    display: none;
  }

  body.nsb-store .nsb-masthead {
    display: none;
  }

  body.nsb-store .nsb-header {
    background: #fff;
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 200;
  }

  body.nsb-store .nsb-header .nsb-shell {
    width: 100%;
    max-width: none;
  }

  body.nsb-store .nsb-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    position: relative;
    overflow: visible;
  }

  body.nsb-store .nsb-brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    max-width: none;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  body.nsb-store .nsb-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
  }

  body.nsb-store .nsb-brand__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.nsb-store .nsb-brand__text small {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.nsb-store .nsb-brand img {
    max-height: 42px;
    max-width: min(220px, 70vw);
    width: auto;
    height: auto;
  }

  body.nsb-store .nsb-header__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--nsb-red);
    padding: 8px 10px;
    position: static;
    overflow: visible;
  }

  body.nsb-store .nsb-mega {
    position: static;
    flex: 0 0 auto;
    z-index: auto;
  }

  body.nsb-store .nsb-mega:focus-within .nsb-mega__dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.nsb-store .nsb-mega.is-open .nsb-mega__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nsb-store .nsb-mega__dropdown {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    z-index: 400;
    box-shadow: none;
    background: #f3f4f6;
  }

  body.nsb-store .nsb-mega__desktop {
    display: none;
  }

  body.nsb-store .nsb-mega__mobile {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    background: #f3f4f6;
  }

  body.nsb-store .nsb-mega__mobile-head {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nsb-red);
    color: #fff;
    padding: 12px 10px;
    flex: 0 0 auto;
  }

  body.nsb-store .nsb-mega__mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
  }

  body.nsb-store .nsb-mega__mobile-back .material-symbols-outlined {
    font-size: 24px;
    color: #fff;
  }

  body.nsb-store .nsb-mega__mobile-title {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    padding-right: 40px;
  }

  body.nsb-store .nsb-mega__accord {
    flex: 1;
    overflow: auto;
    padding: 10px 0 24px;
  }

  body.nsb-store .nsb-mega__acc-item {
    margin: 0 0 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  }

  body.nsb-store .nsb-mega__acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: #fff;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
  }

  body.nsb-store .nsb-mega__acc-item.is-open .nsb-mega__acc-toggle {
    color: var(--nsb-red);
  }

  body.nsb-store .nsb-mega__acc-icon {
    font-size: 22px;
    color: #6b7280;
    transition: transform 0.2s ease;
  }

  body.nsb-store .nsb-mega__acc-item.is-open .nsb-mega__acc-icon {
    color: var(--nsb-red);
    transform: rotate(180deg);
  }

  body.nsb-store .nsb-mega__acc-body {
    display: none;
    padding: 0 0 8px;
    border-top: 1px solid #f3f4f6;
  }

  body.nsb-store .nsb-mega__acc-item.is-open .nsb-mega__acc-body {
    display: block;
  }

  body.nsb-store .nsb-mega__acc-link,
  body.nsb-store .nsb-mega__acc-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
  }

  body.nsb-store .nsb-mega__acc-sublink {
    padding-left: 28px;
    font-size: 0.88rem;
    color: #4b5563;
  }

  body.nsb-store .nsb-mega__acc-link .material-symbols-outlined,
  body.nsb-store .nsb-mega__acc-sublink .material-symbols-outlined {
    font-size: 20px;
    color: #9ca3af;
  }

  body.nsb-store .nsb-mega__acc-all {
    display: block;
    padding: 10px 16px 12px;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
  }

  body.nsb-store.nsb-mega-open {
    overflow: hidden;
  }

  body.nsb-store.nsb-mega-open::before {
    display: none;
  }

  body.nsb-store .nsb-mega__trigger {
    height: 40px;
    min-width: 40px;
    padding: 0 4px;
    color: #fff;
    background: transparent;
  }

  body.nsb-store .nsb-mega__trigger-text {
    display: none;
  }

  body.nsb-store .nsb-mega__trigger .material-symbols-outlined {
    color: #fff;
    font-size: 28px;
  }

  body.nsb-store .nsb-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
  }

  body.nsb-store .nsb-search input {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }

  body.nsb-store .nsb-search .nsb-btn {
    display: none;
  }

  body.nsb-store .nsb-header__actions {
    flex: 0 0 auto;
    gap: 0;
  }

  body.nsb-store .nsb-icon-link--wish,
  body.nsb-store .nsb-header__bar .nsb-icon-link span:not(.material-symbols-outlined) {
    display: none;
  }

  body.nsb-store .nsb-header__bar .nsb-icon-link {
    color: #fff;
    padding: 4px;
  }

  body.nsb-store .nsb-header__bar .nsb-icon-link .material-symbols-outlined {
    font-size: 26px;
    color: #fff;
  }

  body.nsb-store .nsb-header__bar .nsb-icon-link em {
    background: #22c55e;
  }

  body.nsb-store .nsb-stage {
    padding: 0;
  }

  body.nsb-store .nsb-stage .nsb-shell {
    width: 100%;
  }

  body.nsb-store .nsb-stage__sides,
  body.nsb-store .nsb-stage__quad {
    display: none;
  }

  body.nsb-store .nsb-stage__main,
  body.nsb-store .nsb-stage__main.is-hero-only,
  body.nsb-store .nsb-stage__main.is-side-only {
    display: block;
    grid-template-columns: none;
  }

  body.nsb-store .nsb-stage__hero {
    aspect-ratio: auto;
    height: auto;
    width: 100%;
    border-radius: 12px;
    box-shadow: none;
  }

  body.nsb-store .nsb-hero-slide {
    height: auto;
    width: 100%;
  }

  body.nsb-store .nsb-hero-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
  }

  body.nsb-store .nsb-hero-swiper .swiper-button-prev,
  body.nsb-store .nsb-hero-swiper .swiper-button-next {
    display: none;
  }

  body.nsb-store .nsb-pdp__hero {
    grid-template-columns: 1fr;
  }

  body.nsb-store .nsb-pdp__gallery {
    flex-direction: column;
  }

  body.nsb-store .nsb-pdp__thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.nsb-store .nsb-pdp__callback--gallery {
    display: none !important;
  }

  body.nsb-store .nsb-pdp__callback--info {
    display: grid !important;
  }

  body.nsb-store .nsb-pdp__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.nsb-store .nsb-pdp__newsletter-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Product detail page (Minh Thắng style)
   ========================================================================== */
body.nsb-store .nsb-pdp {
  padding: 1rem 0 0;
}

body.nsb-store .nsb-pdp__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--nsb-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.nsb-store .nsb-pdp__crumb a:hover {
  color: var(--nsb-red);
}

body.nsb-store .nsb-pdp__crumb [aria-current="page"] {
  color: var(--nsb-ink);
  font-weight: 600;
}

body.nsb-store .nsb-pdp__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem;
  background: var(--nsb-surface);
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
  box-shadow: var(--nsb-shadow);
}

body.nsb-store .nsb-pdp__gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}

body.nsb-store .nsb-pdp__thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.6rem;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 0 auto;
  width: 100%;
  padding: 0.2rem 0.15rem 0.45rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.4) transparent;
}

body.nsb-store .nsb-pdp__thumbs::-webkit-scrollbar {
  height: 5px;
}

body.nsb-store .nsb-pdp__thumbs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

body.nsb-store .nsb-pdp__thumbs::-webkit-scrollbar-thumb {
  background: var(--nsb-green, #10b981);
  border-radius: 4px;
}

body.nsb-store .nsb-pdp__thumb {
  border: 2px solid var(--nsb-line, #e2e8f0);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
  transition: all 0.2s ease;
}

body.nsb-store .nsb-pdp__thumb:hover {
  border-color: var(--nsb-green, #10b981);
}

body.nsb-store .nsb-pdp__thumb.is-active {
  border-color: var(--nsb-green, #10b981);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

body.nsb-store .nsb-pdp__thumb img {
  display: block;
  width: 88px;
  height: 66px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.nsb-store .nsb-pdp__main {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

body.nsb-store .nsb-pdp__callback--gallery {
  margin-top: 0.15rem;
}

/* Desktop: chỉ hiện ô gọi lại dưới gallery; Mobile: chỉ hiện ô trong cột thông tin */
body.nsb-store .nsb-pdp__callback--info {
  display: none !important;
}

body.nsb-store .nsb-pdp__figure {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--nsb-line);
}

body.nsb-store .nsb-pdp__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 360px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

body.nsb-store .nsb-pdp__zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

body.nsb-store .nsb-pdp__zoom:hover .nsb-pdp__zoom-hint,
body.nsb-store .nsb-pdp__zoom:focus-visible .nsb-pdp__zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

body.nsb-store .nsb-pdp__figure img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

body.nsb-store .nsb-pdp__preview {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nsb-red);
}

body.nsb-store .nsb-pdp__video,
body.nsb-store .nsb-pdp__audio {
  width: 100%;
  border-radius: 10px;
}

body.nsb-store .nsb-pdp__buy {
  margin-top: 1.25rem;
}

body.nsb-store .nsb-pdp__variants {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.nsb-store .nsb-pdp__variant {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  cursor: pointer;
}

body.nsb-store .nsb-pdp__variant strong {
  margin-left: auto;
  font-weight: 600;
}

body.nsb-store .nsb-pdp__variant strong s {
  color: var(--nsb-muted);
  font-weight: 500;
  margin-right: 0.35rem;
}

body.nsb-store .nsb-pdp__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

body.nsb-store .nsb-pdp__actions .nsb-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
}

body.nsb-store .nsb-pdp__buy-now {
  font-weight: 700;
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

body.nsb-store .nsb-pdp__buy-now:hover {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

body.nsb-store .nsb-pdp__contact-ctas {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}

body.nsb-store .nsb-pdp__contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

body.nsb-store .nsb-pdp__contact-row--pair {
  grid-template-columns: 1fr 1fr;
}

body.nsb-store .nsb-pdp__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
}

body.nsb-store .nsb-pdp__cta:hover {
  color: #fff !important;
  filter: brightness(1.05);
  text-decoration: none;
}

body.nsb-store .nsb-pdp__cta--fb {
  background: #1877f2;
}

body.nsb-store .nsb-pdp__cta--zalo {
  background: #00abff;
}

body.nsb-store .nsb-pdp__cta--si {
  background: #f59e0b;
}

body.nsb-store .nsb-pdp__cta--le {
  background: #dc2626;
}

body.nsb-store .nsb-pdp__cta--quick {
  background: #15803d;
  width: 100%;
  min-height: 56px;
}

body.nsb-store .nsb-pdp__cta--quick strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

body.nsb-store .nsb-pdp__cta--quick small {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

body.nsb-store .nsb-pdp__callback {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: #15803d;
  color: #fff;
  display: grid;
  gap: 0.65rem;
}

body.nsb-store .nsb-pdp__callback-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

body.nsb-store .nsb-pdp__callback-copy .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

body.nsb-store .nsb-pdp__callback-copy p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

body.nsb-store .nsb-pdp__callback-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

body.nsb-store .nsb-pdp__callback-row input {
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  color: #111827;
}

body.nsb-store .nsb-pdp__callback-row .nsb-btn {
  background: #fff;
  color: #15803d !important;
  border-radius: 8px;
  min-width: 72px;
  font-weight: 700;
}

body.nsb-store .nsb-pdp__callback-row .nsb-btn:hover {
  background: #ecfdf5;
  color: #166534 !important;
}

@media (max-width: 640px) {
  body.nsb-store .nsb-pdp__contact-row:not(.nsb-pdp__contact-row--pair) {
    grid-template-columns: 1fr;
  }

  body.nsb-store .nsb-pdp__contact-row--pair {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  body.nsb-store .nsb-pdp__contact-row--pair .nsb-pdp__cta {
    font-size: 0.82rem;
    padding: 0.55rem 0.45rem;
  }
}

body.nsb-store .nsb-pdp__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

body.nsb-store .nsb-pdp__share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #c5c9d1;
  color: #6b7280;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

body.nsb-store .nsb-pdp__share-btn:hover {
  text-decoration: none;
  color: #fff;
}

body.nsb-store .nsb-pdp__share-btn--facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

body.nsb-store .nsb-pdp__share-btn--twitter:hover {
  background: #1d9bf0;
  border-color: #1d9bf0;
}

body.nsb-store .nsb-pdp__share-btn--email:hover {
  background: #6b7280;
  border-color: #6b7280;
}

body.nsb-store .nsb-pdp__share-btn--pinterest:hover {
  background: #e60023;
  border-color: #e60023;
}

body.nsb-store .nsb-pdp__share-btn--linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

body.nsb-store .nsb-pdp__title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

body.nsb-store .nsb-pdp__author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.8rem;
  border-left: 3px solid var(--nsb-red);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.06), transparent 72%);
  font-size: 0.95rem;
  line-height: 1.4;
}

body.nsb-store .nsb-pdp__author-label {
  color: var(--nsb-muted);
  font-weight: 500;
}

body.nsb-store .nsb-pdp__author-label::after {
  content: ":";
}

body.nsb-store .nsb-pdp__author-name {
  color: var(--nsb-ink);
  font-weight: 700;
  text-decoration: none;
}

body.nsb-store a.nsb-pdp__author-name:hover {
  color: var(--nsb-red);
  text-decoration: underline;
}

body.nsb-store .nsb-pdp__meta-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

body.nsb-store .nsb-pdp__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.nsb-store .nsb-pdp__meta-label {
  color: var(--nsb-muted);
  font-weight: 500;
}

body.nsb-store .nsb-pdp__meta-label::after {
  content: ":";
}

body.nsb-store .nsb-pdp__meta-value {
  color: var(--nsb-ink);
  font-weight: 600;
}

body.nsb-store .nsb-pdp__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.25rem;
}

body.nsb-store .nsb-pdp__meta-grid dt {
  font-size: 0.82rem;
  color: var(--nsb-muted);
  margin-bottom: 0.15rem;
}

body.nsb-store .nsb-pdp__meta-grid dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

body.nsb-store .nsb-pdp__meta-grid a {
  color: #2563eb;
}

body.nsb-store .nsb-pdp__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: -0.35rem 0 1rem;
}

body.nsb-store .nsb-pdp__tags-label {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--nsb-muted);
  font-weight: 600;
  line-height: 1.6;
}

/* Các thẻ tham gia cùng hàng với nhãn Tags: — hết chỗ thì xuống dòng */
body.nsb-store .nsb-pdp__tags-list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.nsb-store .nsb-pdp__tags-list li {
  flex: 0 1 auto;
  max-width: 100%;
}

body.nsb-store .nsb-pdp__tags-list a {
  display: inline-block;
  max-width: 100%;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nsb-store .nsb-pdp__tags-list a:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

body.nsb-store .nsb-pdp__price-row {
  margin-bottom: 1rem;
}

body.nsb-store .nsb-pdp__trust {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: #4b5563;
}

body.nsb-store .nsb-pdp__trust li {
  position: relative;
  padding-left: 0.95rem;
}

body.nsb-store .nsb-pdp__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #16a34a;
}

body.nsb-store .nsb-pdp__qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

body.nsb-store .nsb-pdp__in-cart {
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
}

body.nsb-store .nsb-pdp__in-cart.is-empty {
  display: none;
}

body.nsb-store .nsb-pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

body.nsb-store .nsb-pdp__price strong {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--nsb-red);
}

body.nsb-store .nsb-pdp__price s {
  color: var(--nsb-muted);
  font-size: 1rem;
}

body.nsb-store .nsb-pdp__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--nsb-red);
  color: #fff;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
}

body.nsb-store .nsb-pdp__promo {
  border: 1px solid var(--nsb-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  background: #fafafa;
}

body.nsb-store .nsb-pdp__promo h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

body.nsb-store .nsb-pdp__promo ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #374151;
}

body.nsb-store .nsb-pdp__qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

body.nsb-store .nsb-pdp__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  overflow: hidden;
}

body.nsb-store .nsb-pdp__stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

body.nsb-store .nsb-pdp__stepper output {
  min-width: 42px;
  text-align: center;
  font-weight: 600;
}

body.nsb-store .nsb-pdp__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body.nsb-store .nsb-pdp__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
  color: #2563eb;
  cursor: pointer;
}

body.nsb-store .nsb-pdp__wish.is-wishlisted .material-symbols-outlined,
body.nsb-store .is-wishlisted .material-symbols-outlined {
  color: var(--nsb-red);
  font-variation-settings: 'FILL' 1;
}

body.nsb-store .nsb-card__wish.is-wishlisted .material-symbols-outlined {
  color: var(--nsb-red);
  font-variation-settings: 'FILL' 1;
}

body.nsb-store .nsb-pdp__related,
body.nsb-store .nsb-pdp__tabs {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--nsb-surface);
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
}

body.nsb-store .nsb-pdp__related h2,
body.nsb-store .nsb-pdp__previews h3 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

body.nsb-store .nsb-pdp__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: -1.5rem -1.5rem 1.25rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--nsb-line);
}

body.nsb-store .nsb-pdp__tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nsb-muted);
  cursor: pointer;
}

body.nsb-store .nsb-pdp__tab.is-active {
  color: var(--nsb-red);
}

body.nsb-store .nsb-pdp__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--nsb-red);
}

body.nsb-store .nsb-pdp__tabpanel[hidden] {
  display: none;
}

body.nsb-store .nsb-pdp__previews {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
}

body.nsb-store .nsb-pdp__related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

body.nsb-store .nsb-pdp__related-grid .nsb-card__actions {
  display: none;
}

body.nsb-store .nsb-pdp__specs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

body.nsb-store .nsb-pdp__specs>div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  padding: 0.2rem 0;
  border-bottom: 0;
}

body.nsb-store .nsb-pdp__specs span {
  color: var(--nsb-muted);
  font-weight: 500;
}

body.nsb-store .nsb-pdp__specs span::after {
  content: ":";
}

body.nsb-store .nsb-pdp__specs strong {
  font-weight: 600;
}

body.nsb-store .nsb-pdp__desc-body {
  max-height: 220px;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.75;
}

body.nsb-store .nsb-pdp__desc.is-expanded .nsb-pdp__desc-body {
  max-height: none;
}

body.nsb-store .nsb-pdp__desc-body img,
body.nsb-store .nsb-pdp__desc-body figure.image img,
body.nsb-store .ck-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1rem auto;
}

body.nsb-store .nsb-pdp__desc-body figure.image {
  margin: 1.25rem 0;
  text-align: center;
}

body.nsb-store .nsb-pdp__desc-body figure.image figcaption {
  font-size: 0.85rem;
  color: var(--nsb-muted);
  text-align: center;
  margin-top: 0.4rem;
  font-style: italic;
}

body.nsb-store .nsb-pdp__desc-toggle {
  display: block;
  margin: 1rem auto 0;
  padding: 0.45rem 1.25rem;
  border: 1px solid var(--nsb-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

body.nsb-store .nsb-pdp__preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

body.nsb-store .nsb-pdp__preview-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.nsb-store .nsb-pdp__preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--nsb-red) 35%, var(--nsb-line));
}

body.nsb-store .nsb-pdp__preview-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

body.nsb-store .nsb-pdp__preview-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.nsb-store .nsb-pdp__preview-item:hover .nsb-pdp__preview-overlay {
  opacity: 1;
}

body.nsb-store .nsb-pdp__preview-grid video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--nsb-line);
}

/* Product image lightbox */
body.nsb-lightbox-open {
  overflow: hidden;
}

.nsb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  padding: 1rem;
}

.nsb-lightbox.is-open,
.nsb-lightbox:not([hidden]) {
  display: grid;
}

.nsb-lightbox[hidden] {
  display: none !important;
}

.nsb-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  animation: nsbLbFadeIn 0.25s ease;
}

.nsb-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  animation: nsbLbSlideUp 0.28s ease;
}

.nsb-lightbox__stage {
  margin: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 3rem;
}

.nsb-lightbox__img {
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
  transition: transform 0.25s ease;
  background: #fff;
}

.nsb-lightbox__img.is-loading {
  opacity: 0.35;
}

.nsb-lightbox__img.is-zoomed {
  cursor: zoom-out;
  transform: scale(1.65);
}

.nsb-lightbox__close,
.nsb-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--nsb-ink, #0f172a);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nsb-lightbox__close:hover,
.nsb-lightbox__nav:hover:not(:disabled) {
  transform: scale(1.06);
  background: #fff;
}

.nsb-lightbox__close {
  top: 0.5rem;
  right: 0.5rem;
}

.nsb-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.nsb-lightbox__nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
}

.nsb-lightbox__nav--prev {
  left: 0;
}

.nsb-lightbox__nav--next {
  right: 0;
}

.nsb-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.nsb-lightbox__counter {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nsb-ink, #0f172a);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.nsb-lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  overflow-x: auto;
  padding: 0.25rem 0.5rem 0.5rem;
  scrollbar-width: thin;
}

.nsb-lightbox__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nsb-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsb-lightbox__thumb.is-active {
  opacity: 1;
  border-color: #fff;
  transform: translateY(-2px);
}

@keyframes nsbLbFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes nsbLbSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .nsb-lightbox__stage {
    padding: 0 2.5rem;
  }

  .nsb-lightbox__nav {
    width: 38px;
    height: 38px;
  }

  .nsb-lightbox__img.is-zoomed {
    transform: scale(1.25);
  }
}

body.nsb-store .nsb-pdp__panel {
  border-top: 1px solid var(--nsb-line);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

body.nsb-store .nsb-pdp__panel summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.35rem 0;
}

body.nsb-store .nsb-pdp__panel-body {
  padding: 1rem 0 0.5rem;
}

body.nsb-store .nsb-pdp__comment-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

body.nsb-store .nsb-pdp__comment-form textarea {
  width: 100%;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  resize: vertical;
}

body.nsb-store .nsb-pdp__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

body.nsb-store .nsb-pdp__filter select {
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
}

body.nsb-store .nsb-pdp__newsletter {
  margin-top: 2rem;
  background: #e5e7eb;
}

body.nsb-store .nsb-pdp__newsletter--site {
  margin-top: 50px;
}

body.nsb-store .nsb-pdp__newsletter--site+.nsb-footer {
  margin-top: 0;
}

body.nsb-store .nsb-pdp__newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

body.nsb-store .nsb-pdp__newsletter-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

body.nsb-store .nsb-pdp__newsletter-form {
  display: flex;
  flex: 1 1 420px;
  max-width: 520px;
  gap: 0.5rem;
}

body.nsb-store .nsb-pdp__newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  height: 44px;
  max-height: 44px;
}

body.nsb-store .nsb-pdp__newsletter-form .nsb-btn {
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}

body.nsb-store .nsb-pdp__newsletter-btn-icon {
  display: none;
  font-size: 20px;
  line-height: 1;
}

/* ==========================================================================
   Checkout / cart (Minh Thắng style)
   ========================================================================== */
body.nsb-store .nsb-checkout {
  padding: 1.25rem 0 2.5rem;
}

body.nsb-store .nsb-checkout__title {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

body.nsb-store .nsb-checkout__title span {
  font-weight: 500;
  color: var(--nsb-muted);
}

body.nsb-store .nsb-checkout__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
}

body.nsb-store .nsb-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

body.nsb-store .nsb-checkout__cart,
body.nsb-store .nsb-checkout__side {
  background: #fff;
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
  box-shadow: var(--nsb-shadow);
}

body.nsb-store .nsb-checkout__cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--nsb-line);
  color: var(--nsb-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

body.nsb-store .nsb-checkout__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #f3f4f6;
}

body.nsb-store .nsb-checkout__product {
  display: grid;
  grid-template-columns: 24px 72px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

body.nsb-store .nsb-checkout__product em {
  font-style: normal;
  color: var(--nsb-muted);
  font-weight: 600;
}

body.nsb-store .nsb-checkout__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 96px;
  background: #f9fafb;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  overflow: hidden;
}

body.nsb-store .nsb-checkout__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.nsb-store .nsb-checkout__info a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.35;
}

body.nsb-store .nsb-checkout__unit {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

body.nsb-store .nsb-checkout__unit strong {
  color: var(--nsb-red);
}

body.nsb-store .nsb-checkout__unit s {
  color: var(--nsb-muted);
  font-size: 0.88rem;
}

body.nsb-store .nsb-checkout__qty {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  overflow: hidden;
}

body.nsb-store .nsb-checkout__qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  cursor: pointer;
}

body.nsb-store .nsb-checkout__qty output {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}

body.nsb-store .nsb-checkout__line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

body.nsb-store .nsb-checkout__line strong {
  color: var(--nsb-red);
  font-weight: 600;
}

body.nsb-store .nsb-checkout__line button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

body.nsb-store .nsb-checkout__line button:hover {
  color: var(--nsb-red);
}

body.nsb-store .nsb-checkout__coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
}

body.nsb-store .nsb-checkout__coupon form {
  display: flex;
  flex: 1 1 280px;
  gap: 0.5rem;
}

body.nsb-store .nsb-checkout__coupon input {
  flex: 1 1 auto;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}

body.nsb-store .nsb-checkout__side {
  padding: 1.15rem 1.2rem 1.35rem;
}

body.nsb-store .nsb-checkout__side h2 {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1rem;
  color: #2563eb;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

body.nsb-store .nsb-checkout__side label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}

body.nsb-store .nsb-checkout__side label small {
  font-weight: 400;
  color: #6b7280;
}

body.nsb-store .nsb-checkout__side input,
body.nsb-store .nsb-checkout__side textarea {
  width: 100%;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-weight: 400;
  background: #fff;
}

body.nsb-store .nsb-checkout__hint {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.35rem 0 0.85rem;
  color: var(--nsb-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

body.nsb-store .nsb-checkout__check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
}

body.nsb-store .nsb-checkout__check input {
  width: auto;
}

body.nsb-store .nsb-checkout__vat {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.nsb-store .nsb-checkout__pay {
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0 0.85rem;
}

body.nsb-store .nsb-checkout__pay>p {
  font-size: 0.88rem;
  font-weight: 600;
}

body.nsb-store .nsb-checkout__gateway {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  font-weight: 500 !important;
}

body.nsb-store .nsb-checkout__gateway input {
  width: auto;
}

body.nsb-store .nsb-checkout__cod-note {
  display: block;
  margin: -0.2rem 0 0.4rem;
  color: var(--nsb-muted);
  font-size: 0.82rem;
}

body.nsb-store .nsb-checkout__sum {
  margin: 1rem 0 0.85rem;
}

body.nsb-store .nsb-checkout__sum>div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

body.nsb-store .nsb-checkout__sum .is-total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--nsb-line);
}

body.nsb-store .nsb-checkout__sum .is-total dt {
  font-weight: 600;
}

body.nsb-store .nsb-checkout__sum .is-total dd {
  color: var(--nsb-red);
  font-size: 1.25rem;
  font-weight: 600;
}

body.nsb-store .nsb-checkout__submit {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  text-transform: none;
  font-size: 1rem;
}

body.nsb-store .nsb-checkout__note {
  margin-top: 0.65rem;
  text-align: center;
  color: var(--nsb-red);
  font-size: 0.8rem;
}

body.nsb-store .nsb-checkout__result {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--nsb-line);
  border-radius: var(--nsb-radius);
  box-shadow: var(--nsb-shadow);
}

body.nsb-store .nsb-checkout__result h1 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

body.nsb-store .nsb-checkout__result>p {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

body.nsb-store .nsb-checkout__success-msg {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  color: #065f46;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

body.nsb-store .nsb-checkout__result dl {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

body.nsb-store .nsb-checkout__result dl>div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--nsb-line);
}

body.nsb-store .nsb-checkout__result dt {
  color: var(--nsb-muted);
  font-size: 0.88rem;
}

body.nsb-store .nsb-checkout__result dd.is-total {
  color: var(--nsb-red);
  font-size: 1.15rem;
  font-weight: 600;
}

body.nsb-store .nsb-checkout__next {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: #374151;
}

body.nsb-store .nsb-checkout__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 900px) {

  body.nsb-store .nsb-checkout__grid,
  body.nsb-store .nsb-checkout__cart-head,
  body.nsb-store .nsb-checkout__row {
    grid-template-columns: 1fr;
  }

  body.nsb-store .nsb-checkout__cart-head {
    display: none;
  }

  body.nsb-store .nsb-checkout__qty,
  body.nsb-store .nsb-checkout__line {
    justify-self: start;
  }
}

/* ==========================================================================
   PDP mobile polish (Aug 2026)
   ========================================================================== */
body.nsb-store .nsb-pdp {
  overflow-x: clip;
}

body.nsb-store .nsb-pdp__sticky {
  display: none;
}

body.nsb-store .nsb-pdp__add-cart {
  width: 100%;
  min-height: 48px;
  font-weight: 700;
}

body.nsb-store .nsb-pdp__buy {
  margin-top: 0.85rem;
}

body.nsb-store .nsb-pdp__desc-body img,
body.nsb-store .nsb-pdp__desc-body table,
body.nsb-store .nsb-pdp__desc-body iframe,
body.nsb-store .nsb-pdp__desc-body video {
  max-width: 100% !important;
  height: auto !important;
}

body.nsb-store .nsb-pdp__desc-body table {
  display: block;
  overflow-x: auto;
}

@media (max-width: 900px) {
  body.nsb-store .nsb-pdp {
    padding: 0.65rem 0 5.5rem;
  }

  body.nsb-store .nsb-pdp>.nsb-shell {
    width: min(100% - 1rem, 1200px);
    padding-inline: 0;
  }

  body.nsb-store .nsb-pdp__crumb {
    margin: 0 0 0.75rem;
    padding: 0 0.15rem;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    row-gap: 0.2rem;
  }

  body.nsb-store .nsb-pdp__crumb [aria-current="page"] {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.nsb-store .nsb-pdp__hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  body.nsb-store .nsb-pdp__gallery {
    flex-direction: column;
    gap: 0.65rem;
  }

  body.nsb-store .nsb-pdp__thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    max-height: none;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
  }

  body.nsb-store .nsb-pdp__thumb {
    flex: 0 0 auto;
  }

  body.nsb-store .nsb-pdp__thumb img {
    width: 76px;
    height: 57px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  body.nsb-store .nsb-pdp__main {
    width: 100%;
  }

  body.nsb-store .nsb-pdp__callback--gallery {
    display: none !important;
  }

  body.nsb-store .nsb-pdp__callback--info {
    display: grid !important;
  }

  body.nsb-store .nsb-pdp__figure {
    min-height: 0;
    aspect-ratio: 1 / 1.15;
    background: #fff;
  }

  body.nsb-store .nsb-pdp__zoom {
    min-height: 0;
  }

  body.nsb-store .nsb-pdp__figure img,
  body.nsb-store .nsb-pdp__zoom img {
    max-height: min(62vw, 360px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  body.nsb-store .nsb-pdp__zoom-hint {
    opacity: 1;
    transform: none;
    width: 34px;
    height: 34px;
  }

  body.nsb-store .nsb-pdp__info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }

  body.nsb-store .nsb-pdp__title {
    order: 1;
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    line-height: 1.35;
  }

  body.nsb-store .nsb-pdp__author {
    order: 2;
    margin-bottom: 0.75rem;
  }

  body.nsb-store .nsb-pdp__tags {
    order: 3;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__price-row {
    order: 4;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__contact-ctas {
    order: 5;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__qty {
    order: 6;
    margin-bottom: 0.75rem;
  }

  body.nsb-store .nsb-pdp__buy {
    order: 7;
    margin-bottom: 0.75rem;
  }

  body.nsb-store .nsb-pdp__callback {
    order: 8;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__promo {
    order: 9;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__meta-list {
    order: 10;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__extras {
    order: 11;
    margin-bottom: 0.75rem;
  }

  body.nsb-store .nsb-pdp__share {
    order: 12;
  }

  /* Mobile: Tags cố định, danh Sản phẩm thẻ trượt ngang */
  body.nsb-store .nsb-pdp__tags {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
  }

  body.nsb-store .nsb-pdp__tags-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  body.nsb-store .nsb-pdp__tags-list::-webkit-scrollbar {
    display: none;
  }

  body.nsb-store .nsb-pdp__tags-list li {
    flex: 0 0 auto;
  }

  body.nsb-store .nsb-pdp__price strong {
    font-size: 1.45rem;
  }

  body.nsb-store .nsb-pdp__meta-list {
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__contact-row:not(.nsb-pdp__contact-row--pair) {
    grid-template-columns: 1fr;
  }

  body.nsb-store .nsb-pdp__contact-row--pair {
    grid-template-columns: 1fr 1fr;
  }

  body.nsb-store .nsb-pdp__cta {
    min-height: 44px;
    font-size: 0.92rem;
  }

  body.nsb-store .nsb-pdp__cta--quick {
    min-height: 52px;
  }

  body.nsb-store .nsb-pdp__cta--quick small {
    font-size: 0.72rem;
    line-height: 1.3;
    padding: 0 0.25rem;
  }

  body.nsb-store .nsb-pdp__promo {
    padding: 0.85rem 0.9rem;
  }

  body.nsb-store .nsb-pdp__callback-row {
    grid-template-columns: 1fr;
  }

  body.nsb-store .nsb-pdp__callback-row .nsb-btn {
    width: 100%;
    min-height: 44px;
  }

  body.nsb-store .nsb-pdp__related,
  body.nsb-store .nsb-pdp__tabs {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
  }

  body.nsb-store .nsb-pdp__related h2 {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  body.nsb-store .nsb-pdp__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  body.nsb-store .nsb-pdp__tablist {
    margin: -1rem -1rem 1rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.nsb-store .nsb-pdp__tablist::-webkit-scrollbar {
    display: none;
  }

  body.nsb-store .nsb-pdp__tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.85rem 0;
    font-size: 0.88rem;
  }

  body.nsb-store .nsb-pdp__specs>div {
    padding: 0.15rem 0;
  }

  body.nsb-store .nsb-pdp__preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.nsb-store .nsb-pdp__newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  body.nsb-store .nsb-pdp__newsletter-form {
    max-width: none;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  body.nsb-store .nsb-pdp__newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    max-height: 44px;
    border-radius: 10px;
    background: transparent;
    padding: 0.55rem 0.85rem;
  }

  body.nsb-store .nsb-pdp__newsletter-form .nsb-btn {
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 0.95rem;
    border-radius: 10px;
  }

  body.nsb-store .nsb-pdp__newsletter-btn-text {
    display: none;
  }

  body.nsb-store .nsb-pdp__newsletter-btn-icon {
    display: inline-flex;
  }

  body.nsb-store .nsb-pdp__sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 240;
    padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--nsb-line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
  }

  body.nsb-store .nsb-pdp__sticky-price {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
  }

  body.nsb-store .nsb-pdp__sticky-price span {
    font-size: 0.75rem;
    color: var(--nsb-muted);
  }

  body.nsb-store .nsb-pdp__sticky-price strong {
    font-size: 1.05rem;
    color: var(--nsb-red);
    white-space: nowrap;
  }

  body.nsb-store .nsb-pdp__sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
  }

  body.nsb-store .nsb-pdp__sticky-cart,
  body.nsb-store .nsb-pdp__sticky-buy {
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 0.95rem;
    font-weight: 700;
    font-size: 0.9rem;
  }

  body.nsb-store .nsb-pdp__sticky-cart {
    background: #fff;
    color: var(--nsb-red);
    border: 1px solid var(--nsb-red);
  }

  body.nsb-store .nsb-pdp__sticky-buy {
    background: #15803d;
    color: #fff;
  }
}

@media (max-width: 640px) {
  body.nsb-store .nsb-pdp__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.nsb-store .nsb-pdp__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body.nsb-store .nsb-pdp__hero {
    padding: 0.7rem;
  }

  body.nsb-store .nsb-pdp__cta--quick strong {
    font-size: 0.95rem;
  }
}

/* Mini-cart drawer */
body.nsb-minicart-open {
  overflow: hidden;
}

.nsb-minicart[hidden] {
  display: none !important;
}

.nsb-minicart {
  position: fixed;
  inset: 0;
  z-index: 10060;
}

.nsb-minicart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.nsb-minicart__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  animation: nsbMiniSlide 0.22s ease;
}

@keyframes nsbMiniSlide {
  from {
    transform: translateX(16px);
    opacity: 0.6;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.nsb-minicart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e5e7eb;
}

.nsb-minicart__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.nsb-minicart__close {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nsb-minicart__body {
  padding: 1.1rem;
  flex: 1 1 auto;
  overflow: auto;
}

.nsb-minicart__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.nsb-minicart__thumb {
  width: 72px;
  height: 92px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.nsb-minicart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsb-minicart__meta {
  display: grid;
  gap: 0.35rem;
}

.nsb-minicart__meta strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.nsb-minicart__meta span,
.nsb-minicart__count {
  font-size: 0.88rem;
  color: #4b5563;
}

.nsb-minicart__count {
  margin: 1rem 0 0;
}

.nsb-minicart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
}

.nsb-minicart__actions .nsb-btn {
  min-height: 44px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Mobile home redesign — dưới menu: 1 hàng + vuốt ngang
   ========================================================================== */
@media (max-width: 900px) {
  body.nsb-store .nsb-shell {
    width: min(1240px, calc(100% - 20px));
  }

  body.nsb-store #noi-dung {
    padding-bottom: 0.5rem;
  }

  body.nsb-store .nsb-section {
    padding: 18px 0 4px;
  }

  body.nsb-store .nsb-cats-strip {
    margin-top: 8px;
  }

  /* Danh mục: 1 hàng vuốt */
  body.nsb-store .nsb-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    margin-inline: -10px;
    padding: 12px 10px;
    border-radius: 14px;
  }

  body.nsb-store .nsb-cats::-webkit-scrollbar {
    display: none;
  }

  body.nsb-store .nsb-cat {
    flex: 0 0 104px;
    width: 104px;
    scroll-snap-align: start;
    padding: 12px 8px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
  }

  body.nsb-store .nsb-cat .material-symbols-outlined {
    font-size: 26px;
  }

  body.nsb-store .nsb-cat em {
    font-size: 0.72rem;
    -webkit-line-clamp: 3;
    min-height: 2.8em;
  }

  /* sản phẩm : rail gọn, peek card tiếp theo để gợi ý vuốt */
  body.nsb-store .nsb-rail {
    margin-inline: -10px;
  }

  body.nsb-store .nsb-rail__btn {
    display: none;
  }

  body.nsb-store .nsb-rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(146px, 44vw);
    grid-template-columns: none;
    gap: 10px;
    padding: 2px 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  body.nsb-store .nsb-rail__track::-webkit-scrollbar {
    display: none;
  }

  body.nsb-store .nsb-rail__track>.nsb-card {
    scroll-snap-align: start;
    min-width: 0;
  }

  body.nsb-store .nsb-rail .nsb-card__media {
    max-height: 168px;
    aspect-ratio: 3 / 4;
  }

  body.nsb-store .nsb-rail .nsb-card__body {
    padding: 10px;
    gap: 4px;
  }

  body.nsb-store .nsb-rail .nsb-card__title {
    font-size: 0.84rem;
    min-height: 2.4em;
  }

  body.nsb-store .nsb-rail .nsb-card__author {
    font-size: 0.74rem;
  }

  body.nsb-store .nsb-rail .nsb-card__price strong {
    font-size: 0.92rem;
  }

  body.nsb-store .nsb-rail .nsb-card__actions {
    display: none;
  }

  /* Promo banners: vuốt ngang */
  body.nsb-store .nsb-promo__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -10px;
    padding-inline: 10px;
  }

  body.nsb-store .nsb-promo__grid::-webkit-scrollbar {
    display: none;
  }

  body.nsb-store .nsb-promo__item {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  /* Vì sao chọn: 1 hàng vuốt */
  body.nsb-store .nsb-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -10px;
    padding-inline: 10px 10px 4px;
  }

  body.nsb-store .nsb-features::-webkit-scrollbar {
    display: none;
  }

  body.nsb-store .nsb-feature {
    flex: 0 0 78%;
    scroll-snap-align: start;
    padding: 16px;
  }

  body.nsb-store .nsb-feature h3 {
    font-size: 0.98rem;
  }

  body.nsb-store .nsb-feature p {
    font-size: 0.86rem;
  }

  /* Flash sale gọn hơn */
  body.nsb-store .nsb-flash {
    border-radius: 12px;
    padding: 12px 10px 8px;
  }

  body.nsb-store .nsb-flash__title strong {
    font-size: 1.05rem;
  }

  body.nsb-store .nsb-flash__timer {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  body.nsb-store .nsb-flash .nsb-rail {
    margin-inline: -4px;
  }

  body.nsb-store .nsb-flash .nsb-rail__track {
    padding-inline: 4px;
  }

  body.nsb-store .nsb-mid-banner {
    border-radius: 10px;
  }

  body.nsb-store .nsb-mid-banner img {
    aspect-ratio: 16 / 6;
  }

  /* Newsletter: form ngang, không còn vòng tròn khổng lồ */
  body.nsb-store .nsb-pdp__newsletter {
    margin-top: 1.25rem;
    background: linear-gradient(180deg, #e8eef7 0%, #e5e7eb 100%);
  }

  body.nsb-store .nsb-pdp__newsletter--site {
    margin-top: 28px;
  }

  body.nsb-store .nsb-pdp__newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 1rem 0 1.15rem;
  }

  body.nsb-store .nsb-pdp__newsletter-copy {
    font-size: 0.95rem;
  }

  body.nsb-store .nsb-pdp__newsletter-copy .material-symbols-outlined {
    color: var(--nsb-red);
  }

  body.nsb-store .nsb-pdp__newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  body.nsb-store .nsb-pdp__newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 42px !important;
    max-height: 42px !important;
    min-height: 42px !important;
    aspect-ratio: auto !important;
    border-radius: 10px !important;
    background: transparent;
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
  }

  body.nsb-store .nsb-pdp__newsletter-form .nsb-btn {
    width: auto !important;
    min-width: 44px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 10px !important;
    transform: none;
  }

  body.nsb-store .nsb-pdp__newsletter-btn-text {
    display: none;
  }

  body.nsb-store .nsb-pdp__newsletter-btn-icon {
    display: inline-flex;
  }

  /* Footer gọn trên mobile */
  body.nsb-store .nsb-footer {
    margin-top: 24px;
    padding: 28px 0 18px;
  }

  body.nsb-store .nsb-footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.nsb-store .nsb-footer__grid>div:nth-child(n + 2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }

  body.nsb-store .nsb-footer__grid>div:nth-child(n + 2) h4 {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  body.nsb-store .nsb-rail__track {
    grid-auto-columns: minmax(138px, 46vw);
  }

  body.nsb-store .nsb-cat {
    flex-basis: 96px;
    width: 96px;
  }

  body.nsb-store .nsb-promo__item {
    flex-basis: 86%;
  }

  body.nsb-store .nsb-feature {
    flex-basis: 84%;
  }
}

/* ==========================================================================
   Auth pages — form gọn, vừa 1 màn hình
   ========================================================================== */
body.nsb-store.nsb-auth-page {
  min-height: 100dvh;
}

body.nsb-store.nsb-auth-page .tp_top_icon {
  display: none !important;
}

body.nsb-store.nsb-auth-page #main {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 148px);
}

body.nsb-store.nsb-auth-page #main>section,
body.nsb-store.nsb-auth-page .tp_main_wrapper,
body.nsb-store.nsb-auth-page .tp_login_section {
  width: 100%;
  min-height: 0;
}

body.nsb-store.nsb-auth-page .tp_login_section {
  padding: 20px 16px 28px;
  align-items: center;
}

body.nsb-store.nsb-auth-page .tp_login_section:after {
  opacity: 0.35;
  animation: none;
  background-size: contain;
}

body.nsb-store.nsb-auth-page .tp_login_flex {
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

body.nsb-store.nsb-auth-page .tp_login_main {
  max-width: 460px;
  padding: 22px 24px 20px;
  border-width: 1px;
  background: #fff;
}

body.nsb-store.nsb-auth-page .tp_login_auth h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.25;
}

body.nsb-store.nsb-auth-page .tp_login_auth h5 {
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

body.nsb-store.nsb-auth-page .tp_input_main p,
body.nsb-store.nsb-auth-page .tp_input_main>label:not(.error) {
  font-size: 0.82rem;
  margin-bottom: 4px;
}

body.nsb-store.nsb-auth-page .tp_input {
  margin-bottom: 12px;
}

body.nsb-store.nsb-auth-page .tp_input input {
  height: 44px;
  font-size: 0.95rem;
  padding: 0 42px 0 14px;
}

body.nsb-store.nsb-auth-page .tp_input img {
  right: 12px;
  width: 18px;
  height: 18px;
}

body.nsb-store.nsb-auth-page .tp_check_section {
  margin-top: 2px;
}

body.nsb-store.nsb-auth-page .tp_check_section ul li {
  font-size: 0.85rem;
}

body.nsb-store.nsb-auth-page .tp_login_btn {
  margin: 14px 0 0;
}

body.nsb-store.nsb-auth-page .tp_login_btn>.tp_btn,
body.nsb-store.nsb-auth-page .tp_login_btn .tp_btn[type="submit"] {
  height: 44px;
  margin: 0;
  font-size: 0.95rem;
  box-shadow: none;
}

body.nsb-store.nsb-auth-page .tp_login_btn>p {
  margin: 12px 0 0;
  font-size: 0.88rem;
  text-align: center;
}

body.nsb-store.nsb-auth-page .tp_socialbtn_wrapper:empty,
body.nsb-store.nsb-auth-page .tp_socialbtn_wrapper:not(:has(a)) {
  display: none;
}

body.nsb-store.nsb-auth-page .nsb-auth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

body.nsb-store.nsb-auth-page label.error {
  top: -8px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 900px) {
  body.nsb-store.nsb-auth-page #main {
    min-height: calc(100dvh - 118px);
    align-items: flex-start;
  }

  body.nsb-store.nsb-auth-page .tp_login_section {
    padding: 12px 10px 20px;
  }

  body.nsb-store.nsb-auth-page .tp_login_section:after {
    display: none;
  }

  body.nsb-store.nsb-auth-page .tp_login_main {
    max-width: none;
    padding: 16px 14px 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  body.nsb-store.nsb-auth-page .tp_login_auth h1 {
    font-size: 1.2rem;
  }

  body.nsb-store.nsb-auth-page .tp_login_auth h5 {
    display: none;
  }

  body.nsb-store.nsb-auth-page .nsb-auth-field p,
  body.nsb-store.nsb-auth-page .tp_input_main p {
    display: none;
  }

  body.nsb-store.nsb-auth-page .nsb-auth-fields {
    grid-template-columns: 1fr;
  }

  body.nsb-store.nsb-auth-page .tp_check_section ul li {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* 4 Category Cards Grid Section */
.nsb-cat-cards-section {
  padding-top: 14px;
  padding-bottom: 24px;
}

.nsb-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nsb-cat-card {
  position: relative;
  border-radius: 18px;
  padding: 22px 20px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 270px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nsb-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

/* Card Themes Gradients */
.nsb-cat-card.card-beige {
  background: linear-gradient(145deg, #fcf8f2 0%, #f3e9d8 100%);
  border: 1px solid #ebdcc5;
}

.nsb-cat-card.card-purple {
  background: linear-gradient(145deg, #f8f4fc 0%, #eae0f5 100%);
  border: 1px solid #e1d3f0;
}

.nsb-cat-card.card-pink {
  background: linear-gradient(145deg, #fdf4f8 0%, #f7e1ee 100%);
  border: 1px solid #f0d1e5;
}

.nsb-cat-card.card-mint {
  background: linear-gradient(145deg, #f2fdf6 0%, #dcfce7 100%);
  border: 1px solid #c9f2d6;
}

.nsb-cat-card__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nsb-cat-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
  line-height: 1.3;
}

.nsb-cat-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.nsb-cat-card__list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsb-cat-card__list li a {
  color: #4b5563;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.nsb-cat-card__list li a:hover {
  color: var(--theme-color, #10b981);
  text-decoration: underline !important;
}

.nsb-cat-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.55;
}

.nsb-cat-card__action {
  margin-top: 4px;
  padding-top: 0;
  position: relative;
  z-index: 3;
}

.nsb-cat-card__btn {
  display: inline-block;
  background: var(--theme-color, #10b981);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--theme-color, #10b981) 30%, transparent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nsb-cat-card__btn:hover {
  background: color-mix(in srgb, var(--theme-color, #10b981) 85%, #000);
  color: #ffffff !important;
  transform: scale(1.04);
}

.nsb-cat-card__btn:hover {
  background: #059669;
  color: #ffffff !important;
  transform: scale(1.05);
}

.nsb-cat-card__img-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 175px;
  height: 175px;
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 18px 0;
  overflow: hidden;
}

.nsb-cat-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  display: block;
}

@media (max-width: 1100px) {
  .nsb-cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .nsb-cat-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Flash Sale Red Theme matching screenshot */
.nsb-flash {
  background: #ff4747;
  border-radius: 20px;
  padding: 24px 24px 26px 24px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 71, 71, 0.2);
}

.nsb-flash__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.nsb-flash__main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.25;
}

.nsb-flash__sub-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 4px 0 0 0;
}

.nsb-flash__timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nsb-flash__timer-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.nsb-flash__timer {
  display: inline-flex;
  gap: 4px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 4px 10px;
}

.nsb-flash .nsb-rail__btn {
  background: #ffffff !important;
  color: #374151 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
}

.nsb-flash .nsb-rail__btn:hover {
  background: #ffffff !important;
  color: #111827 !important;
  transform: scale(1.08);
}

/* Product Cards inside Flash Sale */
.nsb-flash .nsb-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsb-flash .nsb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nsb-flash .nsb-card__badge {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.nsb-flash .nsb-card__title a {
  color: #1f2937;
  font-weight: 600;
}

.nsb-flash .nsb-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.nsb-flash .nsb-card__price strong {
  color: #10b981;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.nsb-flash .nsb-card__price s {
  color: #9ca3af;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

/* Red Sold Bar at bottom of Card */
.nsb-card__sold-bar {
  background: #ff4747;
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nsb-card__sold-bar.is-out {
  background: #ef4444;
  opacity: 0.85;
}

/* Featured Brands Section matching sample screenshot */
.nsb-brands-section {
  padding-top: 24px;
  padding-bottom: 28px;
}

.nsb-brands-grid-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: stretch;
}

.nsb-brands-banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.nsb-brands-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nsb-brands-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsb-brands-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.nsb-brand-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nsb-brand-item:hover {
  transform: translateY(-3px);
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.nsb-brand-item img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.nsb-brand-item span {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

@media (max-width: 992px) {
  .nsb-brands-grid-wrap {
    grid-template-columns: 1fr;
  }
  .nsb-brands-banner {
    max-height: 280px;
  }
}

@media (max-width: 600px) {
  .nsb-brands-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tabbed Bestsellers Section matching sample screenshot */
.nsb-bestsellers-tabbed-section {
  padding-top: 24px;
  padding-bottom: 28px;
}

.nsb-bestseller-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.nsb-bestseller-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.nsb-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.nsb-tab-btn {
  background: #f3f4f6;
  color: #4b5563;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nsb-tab-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.nsb-tab-btn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.nsb-bestsellers-grid-wrap {
  width: 100%;
}

.nsb-bestseller-poster {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  height: 100%;
  min-height: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsb-bestseller-poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nsb-bestseller-poster a {
  display: block;
  width: 100%;
  height: 100%;
}

.nsb-bestseller-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.nsb-bestseller-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .nsb-bestseller-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .nsb-bestseller-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nsb-bestseller-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Dual Mid Banners 2 Columns matching sample screenshot */
.nsb-mid-banners-section {
  padding-top: 16px;
  padding-bottom: 24px;
}

.nsb-dual-banners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}

.nsb-mid-banner-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nsb-mid-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nsb-mid-banner-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .nsb-dual-banners-grid {
    grid-template-columns: 1fr;
  }
}

/* News & Articles Section matching sample screenshot */
.nsb-news-events-section {
  padding-top: 24px;
  padding-bottom: 32px;
}

.nsb-news-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.nsb-news-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.nsb-news-box__head {
  text-align: center;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.nsb-news-box__head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: #e5e7eb;
}

.nsb-news-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
}

.nsb-news-cards-grid {
  display: grid;
  gap: 16px;
}

.nsb-news-cards-grid.grid-col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.nsb-news-cards-grid.grid-col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.nsb-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nsb-news-card__media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
}

.nsb-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nsb-news-card:hover .nsb-news-card__media img {
  transform: scale(1.06);
}

.nsb-news-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.nsb-news-card__title a {
  color: #111827;
  text-decoration: none !important;
}

.nsb-news-card__title a:hover {
  color: #10b981;
}

.nsb-news-card__date {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.nsb-news-card__excerpt {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 992px) {
  .nsb-news-dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nsb-news-box {
    padding: 14px 12px;
  }

  .nsb-news-cards-grid.grid-col-3,
  .nsb-news-cards-grid.grid-col-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nsb-news-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: auto;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
  }

  .nsb-news-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .nsb-news-card__media {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 82px;
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 8px;
    aspect-ratio: auto;
  }

  .nsb-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .nsb-news-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nsb-news-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nsb-news-card__date {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
  }

  .nsb-news-card__excerpt {
    display: none;
  }
}

/* Clean Floating Star (No Orange Background) */
.nsb-news-card__media {
  position: relative;
}

.nsb-featured-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 1.25rem;
  z-index: 2;
  line-height: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   Shopee-Style PDP Purchase Box & Variants Layout
   ========================================================================== */
.nsb-pdp__buy-box {
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nsb-pdp__vblock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nsb-pdp__vlabel,
.nsb-pdp__qlabel {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.nsb-pdp__vpills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nsb-pdp__vpill {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.nsb-pdp__vpill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nsb-pdp__vpill-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nsb-pdp__vpill-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
}

.nsb-pdp__vpill-price {
  font-size: 0.88rem;
}

.nsb-pdp__vpill-price strong {
  color: var(--nsb-red, #dc2626);
  font-weight: 700;
}

.nsb-pdp__vpill-price s {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-left: 4px;
}

.nsb-pdp__vpill input:checked + .nsb-pdp__vpill-box {
  border-color: var(--nsb-red, #dc2626);
  background: #fef2f2;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.nsb-pdp__vpill input:checked + .nsb-pdp__vpill-box .nsb-pdp__vpill-name {
  color: var(--nsb-red, #dc2626);
}

.nsb-pdp__vpill:hover .nsb-pdp__vpill-box {
  border-color: var(--nsb-red, #dc2626);
}

.nsb-pdp__qblock {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nsb-pdp__qwrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nsb-pdp__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.nsb-pdp__stepper button {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nsb-pdp__stepper button:hover {
  background: #e2e8f0;
}

.nsb-pdp__stepper output {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.nsb-pdp__in-cart {
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.nsb-pdp__in-cart.is-empty {
  display: none;
}

.nsb-pdp__ablock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.nsb-pdp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nsb-pdp__btn--cart {
  background: #ffffff;
  color: var(--theme-color, #10b981);
  border: 2px solid var(--theme-color, #10b981);
}

.nsb-pdp__btn--cart:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.nsb-pdp__btn--buy {
  background: var(--nsb-red, #dc2626);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.nsb-pdp__btn--buy:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

@media (max-width: 576px) {
  .nsb-pdp__ablock {
    grid-template-columns: 1fr;
  }
}

/* PDP Header Row: Title on Left, Wishlist & Share on Top-Right Corner */
.nsb-pdp__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.nsb-pdp__header-row .nsb-pdp__title {
  flex: 1;
  margin-bottom: 0;
}

.nsb-pdp__top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .nsb-pdp__header-row {
    flex-direction: column;
    gap: 10px;
  }
  .nsb-pdp__top-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 0;
  }
}

.nsb-pdp__wish-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nsb-pdp__wish-btn:hover {
  background: #f1f5f9;
  color: var(--nsb-red, #dc2626);
  border-color: var(--nsb-red, #dc2626);
}

.nsb-pdp__wish-btn .material-symbols-outlined {
  font-size: 18px;
  color: #64748b;
  transition: color 0.2s ease;
}

.nsb-pdp__wish-btn:hover .material-symbols-outlined,
.nsb-pdp__wish-btn.is-wishlisted .material-symbols-outlined {
  color: var(--nsb-red, #dc2626);
  font-variation-settings: 'FILL' 1;
}

.nsb-pdp__share-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nsb-pdp__share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.nsb-pdp__share-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nsb-pdp__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nsb-pdp__share-btn:hover {
  background: var(--nsb-primary, #059669);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Article & Blog responsive video embed fix */
.nsb-article-body iframe,
.nsb-article-body video,
.nsb-article-body embed,
.nsb-article-body object,
.tp_recent_blog iframe,
.tp_recent_blog video,
.tp_recent_blog embed {
  max-width: 100% !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 12px;
  margin: 16px 0;
}

.nsb-article-body figure,
.nsb-article-body .wp-block-embed,
.nsb-article-body .embed-responsive {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
}

/* ==========================================================================
   Horizontal Main Navigation Bar & Mega Dropdowns (WolfFood / Shopee Style)
   ========================================================================== */
.nsb-header__bar.nsb-header__bar--no-mega {
  grid-template-columns: 1fr auto !important;
}

.nsb-main-nav {
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--nsb-line, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 990;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.nsb-main-nav.is-sticky {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top-color: transparent;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.nsb-main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Sticky Brand Logo (Hidden in normal mode, visible in sticky) */
.nsb-sticky-brand {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 24px;
  flex-shrink: 0;
}

.nsb-main-nav.is-sticky .nsb-sticky-brand {
  display: flex;
}

.nsb-sticky-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nsb-sticky-brand__mark {
  font-weight: 700;
  font-size: 1rem;
  color: var(--nsb-primary, #059669);
  white-space: nowrap;
}

/* Sticky Action Icons (Hidden in normal mode, visible in sticky) */
.nsb-sticky-actions {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

.nsb-main-nav.is-sticky .nsb-sticky-actions {
  display: flex;
}

.nsb-sticky-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.nsb-sticky-icon-btn:hover {
  background: #f1f5f9;
  color: var(--nsb-primary, #059669);
  border-color: var(--nsb-primary, #059669);
}

.nsb-sticky-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.nsb-sticky-cart-btn em {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--nsb-red, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  display: grid;
  place-items: center;
}

/* Sticky Search Form Wrap */
.nsb-sticky-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nsb-sticky-search-form {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  background: #fff;
  border: 1px solid var(--nsb-primary, #059669);
  border-radius: 20px;
  padding: 2px 6px 2px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.nsb-sticky-search-wrap.is-open .nsb-sticky-search-form {
  display: flex;
  align-items: center;
}

.nsb-sticky-search-form input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 13px;
  background: transparent;
}

.nsb-sticky-search-form button {
  border: 0;
  background: var(--nsb-primary, #059669);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nsb-sticky-search-form button .material-symbols-outlined {
  font-size: 16px;
}

.nsb-main-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nsb-main-nav__item {
  position: relative;
}

.nsb-main-nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nsb-main-nav__item > a .nav-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
  color: #64748b;
}

.nsb-main-nav__item:hover > a,
.nsb-main-nav__item.is-active > a {
  color: var(--nsb-primary, #059669);
}

.nsb-main-nav__item:hover > a .nav-icon {
  transform: rotate(180deg);
  color: var(--nsb-primary, #059669);
}

/* Mega Menu Dropdown for Products (Hình 3) */
.nsb-main-nav__item--has-mega {
  position: static;
}

.nsb-mega-menu-drop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--nsb-primary, #059669);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  padding: 24px 0 32px;
}

.nsb-main-nav__item--has-mega:hover .nsb-mega-menu-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nsb-mega-menu-drop__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nsb-mega-menu-drop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 36px;
}

.nsb-mega-col__title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nsb-mega-col__title:hover {
  color: var(--nsb-primary, #059669);
  border-bottom-color: var(--nsb-primary, #059669);
}

.nsb-mega-col__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nsb-mega-col__sub a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.nsb-mega-col__sub a:hover {
  color: var(--nsb-primary, #059669);
  padding-left: 4px;
}

/* Simple Dropdown for News (Hình 4) */
.nsb-simple-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  width: max-content;
  max-width: 380px;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border-top: 2px solid var(--nsb-primary, #059669);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nsb-main-nav__item--has-drop:hover .nsb-simple-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nsb-simple-drop a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nsb-simple-drop a:hover {
  background-color: #f8fafc;
  color: var(--nsb-primary, #059669);
  padding-left: 24px;
}

@media (max-width: 991px) {
  .nsb-main-nav__list {
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   New Footer WolfFood Clone Style
   ========================================================================== */
.nsb-footer-wf {
  background-color: #1e242b;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

.nsb-footer-wf a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nsb-footer-wf a:hover {
  color: #f97316;
}

/* Top Commitments Bar */
.nsb-footer-wf__commitments {
  background-color: #242c34;
  border-bottom: 1px solid #2e3742;
  padding: 18px 0;
}

.nsb-footer-wf__commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.nsb-footer-wf__commit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.nsb-footer-wf__commit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nsb-footer-wf__commit-icon .material-symbols-outlined {
  font-size: 26px;
  color: #f97316;
}

.nsb-footer-wf__commit-text strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

/* Main Footer Section */
.nsb-footer-wf__main {
  padding: 48px 0 40px;
}

.nsb-footer-wf__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.nsb-footer-wf__col {
  min-width: 0;
}

.nsb-footer-wf__brand {
  margin-bottom: 30px;
}

.nsb-footer-wf__brand-name {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.nsb-footer-wf__logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 0;
}

.nsb-footer-wf__address-block {
  margin-top: 0;
}

.nsb-footer-wf__info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 14px;
}

.nsb-footer-wf__info-icon {
  font-size: 20px;
  color: #f97316;
  flex-shrink: 0;
  margin-top: 2px;
}

.nsb-footer-wf__hours {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.nsb-footer-wf__hours p {
  margin: 0;
}

/* Titles */
.nsb-footer-wf__title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 30px;
  position: relative;
}

/* Contact Block */
.nsb-footer-wf__contact-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nsb-footer-wf__phone-icon {
  font-size: 28px;
  color: #f97316;
  flex-shrink: 0;
}

.nsb-footer-wf__phone-num {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff !important;
  display: block;
  line-height: 1.2;
}

.nsb-footer-wf__subtext {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.nsb-footer-wf__contact-email {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.nsb-footer-wf__email-icon {
  font-size: 20px;
  color: #f97316;
  flex-shrink: 0;
}

/* Social Icons */
.nsb-footer-wf__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nsb-footer-wf__socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.2s ease;
}

.nsb-footer-wf__socials a:hover {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Links Column */
.nsb-footer-wf__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nsb-footer-wf__links li a {
  display: inline-block;
  font-size: 14px;
}

.nsb-footer-wf__links li a:hover {
  padding-left: 4px;
}

/* Copyright Bar */
.nsb-footer-wf__copyright {
  background-color: #161b20;
  border-top: 1px solid #232a32;
  padding: 16px 0;
  font-size: 13px;
  color: #64748b;
}

.nsb-footer-wf__copyright strong {
  color: #cbd5e1;
}

@media (max-width: 991px) {
  .nsb-footer-wf__commitments-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .nsb-footer-wf__commit-item {
    justify-content: center;
  }
  .nsb-footer-wf__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 575px) {
  .nsb-footer-wf__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Mobile Offcanvas Drawer (VnExpress Style Slide Panel)
   ========================================================================== */
.nsb-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nsb-mobile-toggle .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.nsb-mobile-toggle:hover,
.nsb-mobile-toggle:focus {
  background: rgba(0, 0, 0, 0.12);
}

/* Offcanvas Drawer Backdrop & Container */
.nsb-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.nsb-drawer-open {
  overflow: hidden !important;
}

body.nsb-drawer-open .nsb-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

.nsb-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.18);
}

body.nsb-drawer-open .nsb-drawer {
  transform: translateX(0);
}

.nsb-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.nsb-drawer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nsb-drawer__brand img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.nsb-drawer__brand-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nsb-theme-primary, var(--theme-color, #059669)) !important;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nsb-drawer__close {
  background: transparent !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nsb-drawer__close:hover {
  color: #0f172a !important;
  transform: rotate(90deg);
}

.nsb-drawer__close .material-symbols-outlined {
  font-size: 26px !important;
  font-weight: 400 !important;
  color: inherit !important;
}

/* 2. Member / Account Gradient Banner (Admin Primary Color) */
.nsb-drawer__member-box {
  background: var(--nsb-theme-primary, var(--theme-color, #059669));
  background: linear-gradient(135deg, var(--nsb-theme-primary, var(--theme-color, #059669)) 0%, color-mix(in srgb, var(--nsb-theme-primary, var(--theme-color, #059669)) 75%, black) 100%);
  padding: 14px 16px;
  color: #ffffff !important;
}

.nsb-drawer__member-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #ffffff !important;
  margin-bottom: 12px;
  font-weight: 500;
}

.nsb-drawer__member-welcome {
  font-size: 0.92rem;
  color: #ffffff !important;
  margin-bottom: 10px;
  font-weight: 500;
}

.nsb-drawer__member-welcome strong {
  color: #ffffff !important;
}

.nsb-drawer__member-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nsb-drawer__pill-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 7px 20px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.nsb-drawer__pill-btn--white {
  background: #ffffff !important;
  color: var(--nsb-theme-primary, var(--theme-color, #059669)) !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12) !important;
}

.nsb-drawer__pill-btn--white:hover,
.nsb-drawer__pill-btn--white:focus {
  background: #f8fafc !important;
  color: var(--nsb-theme-primary, var(--theme-color, #059669)) !important;
}

.nsb-drawer__pill-btn--trans {
  background: rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.nsb-drawer__pill-btn--trans:hover,
.nsb-drawer__pill-btn--trans:focus {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}

/* 3. Drawer Body Navigation (Lv1 -> Lv2 -> Lv3 -> Lv4) */
.nsb-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.nsb-drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Level 1 (Trang chủ, Sản phẩm, Tin tức, Giới thiệu, Liên hệ) */
.nsb-drawer-nav__item {
  border-bottom: 1px solid #f1f5f9;
}

.nsb-drawer-nav__link,
.nsb-drawer-nav__link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.15s, background 0.15s;
}

.nsb-drawer-nav__link {
  flex: 1;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.nsb-drawer-nav__link-row > .nsb-drawer-nav__link {
  padding: 0;
}

.nsb-drawer-nav__link:hover,
.nsb-drawer-nav__link-row:hover {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

.nsb-drawer-nav__item.is-active > .nsb-drawer-nav__link,
.nsb-drawer-nav__item.is-active > .nsb-drawer-nav__link-row > .nsb-drawer-nav__link {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

.nsb-drawer-nav__toggle {
  background: transparent;
  border: none;
  padding: 4px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.25s ease, color 0.2s;
}

.nsb-drawer-nav__toggle .material-symbols-outlined {
  font-size: 22px;
  transition: transform 0.25s ease;
}

.nsb-drawer-nav__toggle.is-open .material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

/* Level 2: Sub-list (inside Sản phẩm / Tin tức) */
.nsb-drawer-lv2 {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px 0;
  background: #f8fafc;
  display: none;
  border-top: 1px solid #f1f5f9;
}

.nsb-drawer-lv2.is-open {
  display: block;
}

.nsb-drawer-lv2__item {
  border-bottom: 1px solid #edf2f7;
}

.nsb-drawer-lv2__item:last-child {
  border-bottom: none;
}

.nsb-drawer-lv2__row,
.nsb-drawer-lv2__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 11px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nsb-drawer-lv2__row {
  padding: 11px 18px 11px 28px;
}

.nsb-drawer-lv2__row > .nsb-drawer-lv2__link {
  padding: 0;
  flex: 1;
}

.nsb-drawer-lv2__item--all .nsb-drawer-lv2__link {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
  font-weight: 700;
}

.nsb-drawer-lv2__link:hover,
.nsb-drawer-lv2__row:hover {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

.nsb-drawer-sub__toggle {
  background: transparent;
  border: none;
  padding: 2px 4px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.25s ease, color 0.2s;
}

.nsb-drawer-sub__toggle .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.25s ease;
}

.nsb-drawer-sub__toggle.is-open .material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

/* Level 3: Deep Categories */
.nsb-drawer-lv3 {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px 0;
  background: #f1f5f9;
  display: none;
  border-left: 2.5px solid #cbd5e1;
  margin-left: 28px;
}

.nsb-drawer-lv3.is-open {
  display: block;
}

.nsb-drawer-lv3__item {
  border-bottom: 1px solid #e2e8f0;
}

.nsb-drawer-lv3__item:last-child {
  border-bottom: none;
}

.nsb-drawer-lv3__row,
.nsb-drawer-lv3__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px 9px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
}

.nsb-drawer-lv3__row {
  padding: 9px 16px 9px 16px;
}

.nsb-drawer-lv3__row > .nsb-drawer-lv3__link {
  padding: 0;
  flex: 1;
}

.nsb-drawer-lv3__link:hover {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

/* Level 4: Deep Child Categories */
.nsb-drawer-lv4 {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px 0;
  background: #e2e8f0;
  display: none;
  border-left: 2px solid #94a3b8;
  margin-left: 16px;
}

.nsb-drawer-lv4.is-open {
  display: block;
}

.nsb-drawer-lv4__item {
  border-bottom: 1px solid #cbd5e1;
}

.nsb-drawer-lv4__item:last-child {
  border-bottom: none;
}

.nsb-drawer-lv4__link {
  display: block;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  color: #475569;
  text-decoration: none;
}

.nsb-drawer-lv4__link:hover {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

/* Drawer Footer */
.nsb-drawer__foot {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.nsb-drawer__call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

/* Media Query Rules for Mobile (< 992px) */
@media (max-width: 991px) {
  .nsb-mobile-toggle {
    display: flex;
  }

  /* HIDE Horizontal Scroll Menu Bar on Mobile */
  .nsb-main-nav {
    display: none !important;
  }
}

/* ==========================================================
   News & Blog List (Long Châu Style: 2-column horizontal layout)
   ========================================================== */
.nsb-news-header-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid #eef2f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nsb-news-header-box__title {
  font-size: 1.45rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.nsb-news-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
}

.nsb-news-subhead .material-symbols-outlined {
  font-size: 24px;
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

.nsb-news-subhead__text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.nsb-news-list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 4px 18px;
}

.nsb-news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
}

.nsb-news-item:last-child {
  border-bottom: none;
}

.nsb-news-item__thumb {
  flex-shrink: 0;
  width: 145px;
  height: 98px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}

.nsb-news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nsb-news-item:hover .nsb-news-item__thumb img {
  transform: scale(1.05);
}

.nsb-news-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nsb-news-item__cat {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  text-decoration: none;
}

.nsb-news-item__cat:hover {
  text-decoration: underline;
}

.nsb-news-item__title {
  margin: 0 0 6px 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.nsb-news-item__title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.nsb-news-item__title a:hover {
  color: var(--nsb-theme-primary, var(--theme-color, #059669));
}

.nsb-news-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.nsb-news-item__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nsb-news-item__date .material-symbols-outlined {
  font-size: 14px;
}

@media (max-width: 575px) {
  .nsb-news-header-box__title {
    font-size: 1.25rem;
  }
  .nsb-news-subhead__text {
    font-size: 1.05rem;
  }
  .nsb-news-list {
    padding: 0 12px;
  }
  .nsb-news-item__thumb {
    width: 115px;
    height: 80px;
    border-radius: 10px;
  }
  .nsb-news-item__title {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .nsb-news-item {
    gap: 12px;
    padding: 12px 0;
  }
}
}

/* Category Cards Equal Height & Alignment */
.nsb-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.nsb-cat-card {
  position: relative;
  border-radius: 18px;
  padding: 26px 20px 24px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nsb-cat-card__body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.nsb-store .nsb-cat-card__title,
.nsb-cat-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
  line-height: 2.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsb-cat-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  flex: 1 1 auto;
}

.nsb-cat-card__list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsb-cat-card__list li a {
  color: #4b5563;
  font-weight: 400;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.nsb-cat-card__list li a:hover {
  color: var(--theme-color, #10b981);
  text-decoration: none !important;
  font-weight: 400;
}

.nsb-cat-card__action {
  margin-top: auto;
  padding-top: 4px;
  position: relative;
  z-index: 3;
}

/* ===== Sản phẩm nổi bật: card ảnh + tên (+ giá nếu là sản phẩm) ===== */
.nsb-featured-categories-section .nsb-section__head {
  border-bottom: 2px solid #059669;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.nsb-featured-categories-section .nsb-section__more {
  color: #059669;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nsb-featured-categories-section .nsb-section__more:hover {
  color: #047857;
  opacity: 0.85;
}

.nsb-feat-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 100%;
}

.nsb-feat-item {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 118px;
}

.nsb-feat-item:hover {
  transform: translateY(-3px);
  border-color: #a7f3d0;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
}

.nsb-feat-item__media {
  position: relative;
  display: block;
  background: #f8fafc;
  overflow: hidden;
  text-decoration: none !important;
}

.nsb-feat-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nsb-feat-item:hover .nsb-feat-item__media img {
  transform: scale(1.04);
}

.nsb-feat-item__cart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.nsb-feat-item:hover .nsb-feat-item__cart {
  opacity: 1;
  transform: translateY(0);
}

.nsb-feat-item__cart:hover {
  background: #047857;
}

.nsb-feat-item__cart .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.nsb-feat-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px 12px 12px;
  min-width: 0;
}

.nsb-feat-item__stars {
  display: flex;
  gap: 1px;
  color: #f59e0b;
  line-height: 1;
}

.nsb-feat-item__stars .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.nsb-feat-item__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 8px;
}

.nsb-feat-item__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.nsb-feat-item__name a {
  color: inherit;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsb-feat-item__name a:hover {
  color: #059669;
}

.nsb-feat-item__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.nsb-feat-item__price strong {
  color: #dc2626;
  font-size: 0.98rem;
  font-weight: 600;
}

.nsb-feat-item__price s {
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 500;
}

.nsb-feat-item__cta {
  margin-top: 2px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nsb-feat-item__cta:hover {
  border-color: #059669;
  color: #047857;
  background: #ecfdf5;
}

.nsb-feat-item.is-category .nsb-feat-item__body {
  justify-content: center;
}

@media (max-width: 992px) {
  .nsb-feat-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 600px) {
  .nsb-feat-items-grid {
    grid-template-columns: 1fr;
  }

  .nsb-feat-item {
    min-height: 108px;
  }

  .nsb-feat-item__cart {
    opacity: 1;
    transform: none;
  }
}
