/* ==========================================================================
   Nhà sách EduBooks — layout kiểu cửa hàng sách (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 {
  color: inherit;
  text-decoration: none;
}

body.nsb-store a: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;
}

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);
}

.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: sticky;
  top: 0;
  z-index: 80;
  overflow: visible;
}

.nsb-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.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;
}

.nsb-account-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  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;
}

.nsb-mega__all {
  display: inline-block;
  margin-top: 2px;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 600;
}

.nsb-mega__all:hover {
  color: var(--nsb-red);
  text-decoration: none;
}

.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;
}

.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: #f3f4f6;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nsb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.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;
  gap: 8px;
  margin-top: auto;
}

.nsb-card__price strong {
  color: var(--nsb-red);
  font-size: 1rem;
}

.nsb-card__price s {
  color: #9ca3af;
  font-size: 0.82rem;
}

.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;
}

body.nsb-store .nsb-catalog__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--nsb-muted);
}

body.nsb-store .nsb-catalog__sort select {
  border: 1px solid var(--nsb-line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  background: #fff;
}

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;
}

.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: thin;
}

.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: #fff;
  box-shadow: var(--nsb-shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nsb-rail__btn--prev {
  left: -8px;
}

.nsb-rail__btn--next {
  right: -8px;
}

.nsb-rail__btn:hover {
  color: var(--nsb-red);
}

/* 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;
}

.nsb-footer a: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-brand {
    justify-content: center;
    padding: 10px 16px 8px;
  }

  .nsb-brand__text {
    display: none;
  }

  .nsb-brand img {
    max-height: 44px;
  }

  .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: #4b5563;
    color: #fff;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    align-items: center;
  }

  .nsb-section__head h2 {
    color: #fff;
    font-size: 1rem;
  }

  .nsb-section__more {
    color: #fff;
  }

  .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-cats {
    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,
  .nsb-features {
    grid-template-columns: 1fr;
  }

  .nsb-rail__btn {
    display: none;
  }

  .nsb-rail__track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

/* 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: 16 / 9;
}

.nsb-stage__hero .swiper,
.nsb-stage__hero .nsb-hero-swiper {
  height: 100%;
}

.nsb-hero-slide {
  display: block;
  width: 100%;
  height: 100%;
  background: #111827;
}

.nsb-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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,
  .nsb-promo__grid {
    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: center;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 10px 16px 8px;
    gap: 0;
  }

  body.nsb-store .nsb-brand__text {
    display: none;
  }

  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;
    border-radius: 0;
    box-shadow: none;
  }

  body.nsb-store .nsb-hero-slide {
    height: auto;
  }

  body.nsb-store .nsb-hero-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: unset;
  }

  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;
    order: 2;
    max-height: none;
    overflow-x: auto;
  }

  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;
  gap: 1rem;
  align-items: flex-start;
}

body.nsb-store .nsb-pdp__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
  flex: 0 0 72px;
}

body.nsb-store .nsb-pdp__thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

body.nsb-store .nsb-pdp__thumb.is-active {
  border-color: var(--nsb-red);
}

body.nsb-store .nsb-pdp__thumb img {
  display: block;
  width: 64px;
  height: 84px;
  object-fit: cover;
}

body.nsb-store .nsb-pdp__main {
  flex: 1 1 auto;
  min-width: 0;
}

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 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__title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

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__price-row {
  margin-bottom: 1rem;
}

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;
  align-items: center;
  gap: 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: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

body.nsb-store .nsb-pdp__specs > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--nsb-line);
}

body.nsb-store .nsb-pdp__specs span {
  color: var(--nsb-muted);
}

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-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-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;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

body.nsb-store .nsb-pdp__newsletter-form .nsb-btn {
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   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 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: uppercase;
}

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 {
  margin-bottom: 1.25rem;
  color: #374151;
}

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;
  }
}
