/* ============================================================
   M&M Nail Supply — public storefront design system
   Primary #E91E63 · Secondary #3F51B5 · Neutrals #F7F7F7 #FFF #333
   ============================================================ */

:root {
  --ns-primary: #e91e63;
  --ns-primary-dark: #c2185b;
  --ns-secondary: #3f51b5;
  --ns-secondary-dark: #303f9f;
  --ns-bg: #f7f7f7;
  --ns-surface: #ffffff;
  --ns-ink: #333333;
  --ns-ink-soft: #4a4a4a;
  --ns-muted: #6b6b6b;
  --ns-line: #e8e8e8;
  --ns-line-strong: #d0d0d0;
  --ns-shadow: 0 18px 50px rgba(51, 51, 51, 0.08);
  --ns-shadow-hover: 0 22px 60px rgba(51, 51, 51, 0.12);
  --ns-radius: 20px;
  --ns-radius-sm: 14px;
  --ns-radius-pill: 999px;
  --ns-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ns-header-h: 72px;
  --ns-max: 1320px;
  /* Hero bottom fade: matches .ns-body neutral so slides don’t end in a hard line */
  --ns-hero-blend-bottom: var(--ns-bg);
}

html {
  font-size: 16px;
  /* Full-bleed sections use 100vw; vw includes scrollbar gutter and can cause horizontal scroll. */
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.ns-body {
  font-family: var(--ns-font);
  color: var(--ns-ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--ns-bg) 38%, var(--ns-bg) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--ns-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--ns-secondary-dark);
}

.ns-main {
  min-width: 0;
}

/* Reserve space for fixed header (height set in JS: --ns-site-header-h). */
body.ns-site-header-offset {
  padding-top: var(--ns-site-header-h, 72px);
}

/* ----- Header (fixed: reliable hide/show; sticky + transform breaks in several browsers) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ns-line);
  transform: translateY(0);
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.28s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--ns-shadow);
  background: rgba(255, 255, 255, 0.98);
}

.site-header.is-header-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition-duration: 0.01ms;
  }
}

.ns-header-bar {
  min-height: var(--ns-header-h);
  display: flex;
  align-items: center;
}

.ns-header-bar__inner {
  display: grid;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.75rem;
  width: 100%;
  max-width: var(--ns-max);
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "menu logo actions"
    "search search search";
}

.ns-header-cell--menu {
  grid-area: menu;
}

.ns-header-cell--logo {
  grid-area: logo;
  justify-self: center;
}

.ns-header-cell--search {
  grid-area: search;
}

.ns-header-cell--actions {
  grid-area: actions;
  justify-self: end;
}

@media (min-width: 992px) {
  .ns-header-bar__inner {
    grid-template-columns: minmax(220px, auto) minmax(280px, 1fr) auto;
    grid-template-areas: "logo search actions";
    gap: 1.25rem 1.75rem;
  }

  .ns-header-cell--logo {
    justify-self: start;
  }
}

.ns-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ns-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: normal;
  text-decoration: none;
  max-width: min(100%, 22rem);
}

.ns-logo:hover {
  color: var(--ns-ink);
}

.ns-logo__img {
  height: 56px;
  width: auto;
  max-width: min(260px, 46vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

.ns-logo__img--footer {
  height: 48px;
  max-width: 220px;
  width: auto;
}

.ns-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
  min-width: 0;
}

.ns-logo__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ns-logo__tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ns-muted);
  letter-spacing: 0.01em;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .ns-logo__text {
    display: none;
  }
}

.ns-header-search {
  display: flex;
  align-items: stretch;
  background: var(--ns-surface);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius-pill);
  box-shadow: 0 4px 18px rgba(51, 51, 51, 0.04);
  overflow: hidden;
  min-height: 48px;
}

.ns-header-search__icon {
  width: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%236b6b6b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") center / 18px no-repeat;
  flex-shrink: 0;
}

.ns-header-search__input {
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.5rem 0.65rem 0;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: var(--ns-ink);
}

.ns-header-search__input:disabled {
  background: #fafafa;
  color: var(--ns-muted);
}

.ns-header-search__submit {
  border: 0;
  background: linear-gradient(135deg, var(--ns-primary), #f06292);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding-inline: 1.25rem;
  display: none;
}

@media (min-width: 768px) {
  .ns-header-search__submit {
    display: inline-block;
  }
}

.ns-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ns-icon-btn {
  border: 1px solid var(--ns-line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ns-icon-hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ns-ink);
  box-shadow: 0 6px 0 var(--ns-ink), 0 -6px 0 var(--ns-ink);
}

.ns-pill-btn {
  border: 1px solid var(--ns-line);
  background: #fff;
  border-radius: var(--ns-radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  color: var(--ns-ink);
  max-width: 160px;
}

.ns-pill-btn__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-ghost-btn {
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ns-ink-soft);
  padding: 0.35rem 0.5rem;
}

.ns-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ns-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ns-ink);
}

.ns-icon-pill--quiet {
  border-color: transparent;
}

.ns-ico {
  width: 22px;
  height: 22px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.ns-ico--user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z'/%3E%3C/svg%3E");
}

.ns-ico--receipt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M1.92.506a.5.5 0 0 1 .434.14L3 1.293l.646-.647a.5.5 0 0 1 .708 0L5 1.293l.646-.647a.5.5 0 0 1 .708 0L7 1.293l.646-.647a.5.5 0 0 1 .708 0L9 1.293l.646-.647a.5.5 0 0 1 .708 0l.646.647.793-.793a.5.5 0 0 1 .854.353V13a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V1.146A.5.5 0 0 1 1.92.506M4 15h4v-5H4zm0-6h4V1H4z'/%3E%3C/svg%3E");
}

.ns-ico--cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5M5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4m7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2m7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2'/%3E%3C/svg%3E");
}

.ns-cart-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--ns-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ns-ink);
}

.ns-cart-btn:hover {
  border-color: rgba(233, 30, 99, 0.45);
}

.ns-pdp-reviews {
  max-width: 40rem;
}

.ns-cart-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--ns-radius-pill);
  background: var(--ns-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-text-link {
  font-weight: 700;
  color: var(--ns-secondary);
}

/* ----- Categories mega menu (desktop) ----- */
.ns-categories-mega-wrap .dropdown-menu {
  width: min(1180px, calc(100vw - 2rem));
  max-width: none;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 0.65rem !important;
  border: 1px solid rgba(63, 81, 181, 0.12);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 55%, #fff5fa 100%);
}

.ns-mega-trigger {
  border: 1px solid var(--ns-line);
  background: #fff;
  border-radius: var(--ns-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1rem 0.5rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ns-ink);
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.06);
}

.ns-mega-trigger:hover,
.ns-mega-trigger:focus {
  border-color: rgba(233, 30, 99, 0.45);
  color: var(--ns-ink);
}

.ns-mega-trigger::after {
  margin-left: 0.15rem;
}

.ns-mega-trigger__grid {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.ns-mega-modern__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
}

@media (max-width: 1199.98px) {
  .ns-mega-modern__inner {
    grid-template-columns: 1fr;
  }

  .ns-mega-modern__visual {
    display: none;
  }
}

.ns-mega-modern__visual {
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(63, 81, 181, 0.12), rgba(233, 30, 99, 0.08));
  border-right: 1px solid rgba(63, 81, 181, 0.1);
  text-align: center;
}

.ns-mega-modern__lottie {
  width: 100%;
  max-width: 180px;
  height: 140px;
  margin: 0 auto 0.75rem;
}

.ns-mega-modern__tag {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ns-secondary);
  margin-bottom: 0.35rem;
}

.ns-mega-modern__tagline {
  font-size: 0.8rem;
  color: var(--ns-muted);
  line-height: 1.45;
  margin: 0;
}

.ns-mega-modern__cols {
  padding: 0.5rem 0 0;
}

.ns-mega-col {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1.35rem;
}

.ns-mega-col:last-child {
  border-right: 0;
}

@media (max-width: 991.98px) {
  .ns-mega-col {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.ns-mega-root {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.35rem 0 0.85rem;
  color: var(--ns-ink);
  border-radius: 12px;
  transition: background 0.15s ease;
}

.ns-mega-root:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ns-ink);
}

.ns-mega-root__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ns-mega-root__name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.ns-mega-root__desc {
  font-size: 0.78rem;
  color: var(--ns-muted);
  line-height: 1.35;
}

.ns-cat-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(63, 81, 181, 0.18));
  border: 1px solid rgba(63, 81, 181, 0.15);
  position: relative;
  overflow: hidden;
}

.ns-cat-ic::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 55%),
    linear-gradient(145deg, var(--ns-primary), var(--ns-secondary));
  opacity: 0.35;
}

.ns-cat-ic--gel-polish {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.ns-cat-ic--acrylic {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

.ns-cat-ic--tools {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.ns-cat-ic--dip-powder {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.ns-cat-ic--nail-art {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
}

.ns-cat-ic--sanitation {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.ns-mega-sub {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0.15rem;
}

.ns-mega-sub > li {
  margin-bottom: 0.35rem;
}

.ns-mega-sub__link {
  display: block;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ns-ink-soft);
}

.ns-mega-sub__link:hover {
  background: rgba(63, 81, 181, 0.08);
  color: var(--ns-secondary);
}

.ns-mega-sub--nested {
  margin-top: 0.25rem;
  margin-left: 0.5rem;
  border-left: 2px solid rgba(233, 30, 99, 0.25);
  padding-left: 0.5rem;
}

.ns-mega-sub--nested a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ns-muted);
}

.ns-mega-sub--nested a:hover {
  color: var(--ns-primary);
}

.ns-mega-modern__footer {
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.65);
}

.ns-mega-modern__all {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ns-secondary);
}

.ns-offcanvas-nav .ns-offcanvas-title {
  font-weight: 800;
}

.ns-mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  min-height: 44px;
  font-weight: 600;
  color: var(--ns-ink);
  box-sizing: border-box;
}

/* ----- Buttons (global + legacy) ----- */
.ns-btn-primary {
  background: linear-gradient(135deg, var(--ns-primary), #ec407a);
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--ns-radius-pill);
  padding: 0.55rem 1.25rem;
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.28);
}

.ns-btn-primary:hover {
  filter: brightness(1.04);
  color: #fff !important;
}

.ns-btn-outline {
  border: 1px solid var(--ns-line-strong);
  background: #fff;
  color: var(--ns-ink);
  font-weight: 600;
  border-radius: var(--ns-radius-pill);
}

.ns-btn-outline:hover {
  border-color: var(--ns-secondary);
  color: var(--ns-secondary);
}

.ns-btn-ghost {
  border: 1px dashed var(--ns-line-strong);
  background: #fff;
  color: var(--ns-ink-soft);
  font-weight: 600;
  border-radius: var(--ns-radius-pill);
}

.ns-hero-carousel .ns-btn-on-dark {
  padding-inline: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ns-btn-on-dark {
  background: #fff;
  color: var(--ns-primary) !important;
  font-weight: 800;
  border-radius: var(--ns-radius-pill);
  padding-inline: 1.5rem;
}

.ns-btn-on-dark:hover {
  filter: brightness(1.05);
  color: var(--ns-primary-dark) !important;
}

.btn-accent {
  background: linear-gradient(135deg, var(--ns-primary), #ec407a);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: var(--ns-radius-pill);
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.28);
}

.btn-accent:hover {
  filter: brightness(1.04);
  color: #fff;
}

.link-accent {
  color: var(--ns-secondary);
  font-weight: 700;
}

/* ----- Hero carousel ----- */
/* Prefer dvw where supported: dynamic viewport avoids classic 100vw + scrollbar gutter overflow. */
.ns-full-bleed {
  width: 100dvw;
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
}

@supports not (width: 100dvw) {
  .ns-full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.ns-carousel .carousel-control-prev,
.ns-carousel .carousel-control-next {
  width: 48px;
  opacity: 1;
}

.ns-carousel__control .carousel-control-prev-icon,
.ns-carousel__control .carousel-control-next-icon {
  filter: invert(1);
  opacity: 0.85;
}

.ns-carousel__indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
}

.ns-carousel__indicators .active {
  background-color: #fff;
}

.ns-hero-carousel {
  position: relative;
  z-index: 0;
  border: 0;
  outline: none;
}

/* Keep hero at auto/0 so absolute rail does not stack over the next main section (Popular, etc.) */
.ns-hero-carousel--with-rail {
  z-index: 0;
  isolation: isolate;
  overflow: visible;
  /* Room for the rail, aligned with the hero; tighter now that the rail sits higher */
  padding-bottom: clamp(3.25rem, 8.5vw, 5.25rem);
}

/* Following storefront sections sit above the hero layer so the rail can’t cover “Popular” on small viewports */
main > .ns-hero-carousel--with-rail ~ .ns-home-section {
  position: relative;
  z-index: 1;
}

main > .ns-hero-carousel--with-rail + .ns-home-section {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
}

/* “Popular right now” — extra top margin so it clears the hero / category rail (any sibling order). */
@media (min-width: 1200px) {
  main > .ns-hero-carousel--with-rail ~ #home-best-sellers {
    margin-top: clamp(3.25rem, 5.5vw, 5.5rem);
  }
}

@media (max-width: 1199.98px) {
  main > .ns-hero-carousel--with-rail ~ #home-best-sellers {
    margin-top: clamp(3.5rem, 9vw, 5.5rem);
  }
}

@media (max-width: 767.98px) {
  main > .ns-hero-carousel--with-rail ~ #home-best-sellers {
    margin-top: clamp(4.25rem, 12vw, 7.5rem);
  }
}

@media (max-width: 575.98px) {
  main > .ns-hero-carousel--with-rail ~ #home-best-sellers {
    margin-top: clamp(4.75rem, 16vw, 9.5rem);
  }
}

.ns-hero-carousel .carousel {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  border: 0;
}

.ns-hero-carousel .carousel-inner {
  background: transparent;
  border: 0;
}

.ns-hero-carousel--premium .carousel-item {
  transition: opacity 0.65s ease-in-out;
  background: transparent;
  border: 0;
}

.ns-hero-slide {
  position: relative;
  min-height: min(78vh, 620px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 0;
  box-shadow: none;
}

.ns-hero-slide__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.ns-hero-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(8, 12, 22, 0.88) 0%,
    rgba(8, 12, 22, 0.55) 42%,
    rgba(8, 12, 22, 0.2) 72%,
    rgba(63, 81, 181, 0.18) 100%
  );
}

/* Bottom vignette + soft exit into page background (no hard “border” seam) */
.ns-hero-slide__floor {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--ns-hero-blend-bottom) 0%,
    var(--ns-hero-blend-bottom) 4%,
    rgba(200, 205, 218, 0.42) 11%,
    rgba(8, 12, 22, 0.52) 22%,
    rgba(8, 12, 22, 0.26) 38%,
    rgba(8, 12, 22, 0.09) 54%,
    rgba(8, 12, 22, 0.02) 70%,
    transparent 88%
  );
}

.ns-hero-slide--motion-only .ns-hero-slide__motion-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, #121826 0%, #232b3f 50%, #151c2b 100%);
}

.ns-hero-slide--motion-only .ns-hero-slide__floor {
  background: linear-gradient(
    to top,
    var(--ns-hero-blend-bottom) 0%,
    var(--ns-hero-blend-bottom) 5%,
    rgba(160, 170, 195, 0.38) 12%,
    rgba(18, 24, 38, 0.52) 26%,
    rgba(18, 24, 38, 0.16) 52%,
    rgba(18, 24, 38, 0.03) 74%,
    transparent 90%
  );
}

.ns-hero-productivity-portal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(64vw, 760px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  pointer-events: none;
}

.ns-hero-productivity-portal[hidden] {
  display: none !important;
}

.ns-hero-lottie--portal {
  width: 100%;
  min-width: 280px;
  height: min(70vh, 540px);
  min-height: 280px;
  max-width: 100%;
}

.ns-hero-carousel .carousel-control-prev,
.ns-hero-carousel .carousel-control-next {
  z-index: 6;
}

.ns-hero-carousel .carousel-indicators {
  z-index: 6;
}

@media (max-width: 991.98px) {
  .ns-hero-productivity-portal {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(40vh, 280px);
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }

  .ns-hero-lottie--portal {
    height: 100%;
    min-height: 180px;
  }
}

.ns-hero-slide--motion-only .ns-hero-slide__shade--motion {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(8, 12, 22, 0.92) 0%,
    rgba(8, 12, 22, 0.65) 32%,
    rgba(8, 12, 22, 0.22) 55%,
    rgba(8, 12, 22, 0) 78%
  );
}

.ns-hero-slide__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 80% at 85% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
  mix-blend-mode: screen;
  animation: ns-hero-veil-pulse 10s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 78%);
}

@keyframes ns-hero-veil-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

.ns-hero-slide__content {
  position: relative;
  z-index: 4;
}

.ns-hero-row {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .ns-hero-row {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.ns-eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.ns-display {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.ns-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  max-width: 36rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.ns-home-anchor {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 991.98px) {
  .ns-home-anchor {
    scroll-margin-top: 4.5rem;
  }

  .ns-hero-slide {
    min-height: min(68vh, 520px);
  }

  .ns-display {
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  }
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.82) !important;
}

.ns-hero-lottie {
  max-width: 360px;
  margin-left: auto;
  min-height: 220px;
}

/* Hero: category spotlight rail (aligned with slide content, centered, higher on the hero) */
.ns-hero-category-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  /* Was ~35%: sat too low; nudge up so cards sit in the lower third with the same width as the hero. */
  transform: translateY(calc(6% + 0.15rem));
  pointer-events: none;
}

/* Large desktop: sit further below the slide CTA */
@media (min-width: 1200px) {
  .ns-hero-category-rail {
    transform: translateY(calc(22% + 1.35rem));
  }

  .ns-hero-carousel--with-rail {
    padding-bottom: clamp(4.75rem, 11vw, 7.5rem);
  }
}

/* Prev/next + scroll: frame keeps side padding so the first card is not flush/clipped at the gutter */
.ns-hero-category-rail__frame {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: visible;
}

/* Wider than default container-xxl: room for 4-up without horizontal scroll on desktop */
.ns-hero-category-rail__wrap {
  max-width: min(1760px, calc(100% - 1.5rem));
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 2vw, 1.75rem);
  box-sizing: border-box;
}

/* 1–4 spotlights: grid fills the rail; no horizontal scroll. 5+ use flex + scroll + arrows. */
.ns-hero-rail--fit .ns-hero-category-rail__scroller {
  overflow-x: hidden;
  overflow-y: visible;
  scroll-snap-type: none;
  scrollbar-gutter: auto;
}

.ns-hero-rail--fit .ns-hero-category-rail__track {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0.25rem;
  align-items: stretch;
}

.ns-hero-rail--fit1 .ns-hero-category-rail__track {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin-inline: auto;
  padding-inline: 0.35rem;
}

.ns-hero-rail--fit2 .ns-hero-category-rail__track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
  .ns-hero-rail--fit3 .ns-hero-category-rail__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ns-hero-rail--fit4 .ns-hero-category-rail__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Below desktop: never multi-row grid for fit — it stacks 4 tall cards and covers the hero + page.
   Use one horizontal row + swipe (same as 5+), shorter cards, so the rail stays one band high. */
@media (max-width: 1199.98px) {
  .ns-hero-rail--fit .ns-hero-category-rail__scroller {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.35rem;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  .ns-hero-rail--fit .ns-hero-category-rail__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    min-width: min-content;
    max-width: none;
    margin-inline: auto;
    padding-inline: 0.35rem;
    align-items: stretch;
  }

  .ns-hero-rail--fit .ns-hero-catcard {
    flex: 0 0 min(260px, 82vw);
    min-width: 0;
    width: auto;
    max-width: none;
    min-height: 14rem;
    scroll-snap-align: start;
  }

  .ns-hero-rail--fit1 .ns-hero-category-rail__track {
    max-width: none;
    margin-inline: auto;
  }
}

.ns-hero-rail--many .ns-hero-category-rail__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  min-width: min-content;
  margin-inline: auto;
  padding-inline: 0.4rem;
  justify-content: center;
}

.ns-hero-rail__arrow {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.55);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition:
    background 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

@media (min-width: 768px) {
  .ns-hero-rail--overflow .ns-hero-rail__arrow {
    display: flex;
  }
}

.ns-hero-rail__arrow:hover:not(:disabled) {
  background: rgba(12, 18, 32, 0.72);
  transform: scale(1.04);
}

.ns-hero-rail__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.ns-hero-rail__arrow-icon {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  position: relative;
  top: -0.04em;
}

.ns-hero-category-rail__scroller {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  justify-content: safe center;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.2rem 0.35rem 0.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.35rem;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  /* No edge mask — first/last cards stay fully opaque and clear */
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-gutter: stable;
}

@media (min-width: 768px) {
  .ns-hero-category-rail__scroller {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(0, 0, 0, 0.12);
  }

  .ns-hero-category-rail__scroller::-webkit-scrollbar {
    height: 5px;
  }

  .ns-hero-category-rail__scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
  }

  .ns-hero-category-rail__scroller::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
  }
}

.ns-hero-category-rail__track {
  gap: 1.2rem;
  padding-bottom: 0.55rem; /* room for card drop shadow below */
  align-items: stretch;
}

/* Tablet and down: sit cards lower so they clear headline / controls; phones need a bit more */
@media (max-width: 1199.98px) {
  .ns-hero-category-rail {
    transform: translateY(calc(16% + 0.4rem));
  }

  .ns-hero-carousel--with-rail {
    /* Extra in-flow room so the rail + card shadows don’t crowd the next section */
    padding-bottom: clamp(5.5rem, 18vw, 8.5rem);
  }
}

@media (max-width: 767.98px) {
  .ns-hero-category-rail {
    transform: translateY(calc(24% + 0.65rem));
  }

  .ns-hero-carousel--with-rail {
    padding-bottom: clamp(6.5rem, 24vw, 10rem);
  }
}

@media (max-width: 575.98px) {
  .ns-hero-category-rail {
    transform: translateY(calc(30% + 0.5rem));
  }

  .ns-hero-carousel--with-rail {
    padding-bottom: clamp(7rem, 30vw, 11rem);
  }
}

.ns-hero-catcard {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  border-radius: var(--ns-radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Bottom-weighted float — diffuse under the card, muted so dark slides don’t glow */
  box-shadow:
    0 16px 32px -12px rgba(6, 10, 22, 0.2),
    0 7px 14px -6px rgba(6, 10, 22, 0.12),
    0 2px 5px -1px rgba(6, 10, 22, 0.07);
  overflow: visible;
  min-height: 17.5rem;
}

/* Scroll row (5+ categories): fixed card width + snap */
.ns-hero-rail--many .ns-hero-catcard {
  flex: 0 0 min(300px, 90vw);
  scroll-snap-align: start;
}

/* Grid row (1–4): equal columns, no snap */
.ns-hero-rail--fit .ns-hero-catcard {
  min-width: 0;
  width: 100%;
  max-width: none;
  scroll-snap-align: none;
}

/* Stack panels; solid backgrounds keep rounded corners with overflow hidden */
.ns-hero-catcard__head,
.ns-hero-catcard__products,
.ns-hero-catcard__foot {
  position: relative;
  z-index: 1;
  background: #fff;
}

.ns-hero-catcard__head {
  padding: 1rem 1.15rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--ns-radius) var(--ns-radius) 0 0;
  overflow: hidden;
}

.ns-hero-catcard__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.ns-hero-catcard__title a {
  color: #121826;
  text-decoration: none;
}

.ns-hero-catcard__title a:hover {
  color: var(--ns-primary);
}

.ns-hero-catcard__sub {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(18, 24, 38, 0.55);
}

.ns-hero-catcard__products {
  flex: 1 1 auto;
  padding: 0.65rem 0.85rem 0.5rem;
  overflow: hidden;
}

.ns-hero-catcard__product + .ns-hero-catcard__product {
  margin-top: 0.5rem;
}

.ns-hero-mini-p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0.3rem;
  border-radius: calc(var(--ns-radius) - 4px);
  transition: background 0.15s ease;
}

.ns-hero-mini-p:hover {
  background: rgba(63, 81, 181, 0.06);
}

.ns-hero-mini-p__img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f5;
}

.ns-hero-mini-p__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-hero-mini-p__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ns-hero-mini-p__name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ns-hero-mini-p__price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ns-primary);
}

.ns-hero-catcard__foot {
  margin-top: auto;
  padding: 0.65rem 1.1rem 0.95rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  border-radius: 0 0 var(--ns-radius) var(--ns-radius);
  overflow: hidden;
}

.ns-hero-catcard__more {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ns-primary);
  text-decoration: none;
}

.ns-hero-catcard__more:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .ns-hero-rail--many .ns-hero-catcard {
    flex: 0 0 min(300px, 30vw);
    min-height: 19rem;
  }
}

/* Taller fit cards only when grid layout is active (desktop), not horizontal row <1200px */
@media (min-width: 1200px) {
  .ns-hero-rail--fit .ns-hero-catcard {
    min-height: 19rem;
  }
}

@media (min-width: 1400px) {
  .ns-hero-rail--many .ns-hero-catcard {
    flex: 0 0 min(320px, 24vw);
    min-height: 20rem;
  }

  .ns-hero-rail--fit .ns-hero-catcard {
    min-height: 20rem;
  }
}

/* ----- Home sections ----- */
.ns-home-section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.ns-home-section--tint {
  background: linear-gradient(180deg, rgba(247, 247, 247, 0.4), rgba(63, 81, 181, 0.04));
}

.ns-home-section--muted {
  background: #f3f4fb;
}

.ns-section-head {
  margin-bottom: 2rem;
}

.ns-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ns-section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
  margin-bottom: 0.35rem;
}

.ns-section-sub {
  color: var(--ns-muted);
  font-size: 1rem;
  max-width: 42rem;
}

/* ----- Category cards ----- */
.ns-category-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.35rem;
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  background: var(--ns-surface);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.05);
  height: 100%;
  color: var(--ns-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ns-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow-hover);
  border-color: rgba(233, 30, 99, 0.35);
  color: var(--ns-ink);
}

.ns-category-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(233, 30, 99, 0.12), rgba(63, 81, 181, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ns-secondary);
  flex-shrink: 0;
}

.ns-category-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.ns-category-card__desc {
  font-size: 0.85rem;
  color: var(--ns-muted);
  margin-bottom: 0.5rem;
}

.ns-category-card__cta {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ns-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----- Product scroller (popular) ----- */
.ns-product-scroller {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@supports (width: 100dvw) {
  .ns-product-scroller {
    margin-inline: calc(50% - 50dvw);
    padding-inline: calc(50dvw - 50%);
  }
}

.ns-product-scroller__track {
  display: flex;
  gap: 1.25rem;
  padding-inline: 0.25rem;
}

.ns-product-scroller__cell {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
}

/* ----- Retail product card ----- */
.ns-pcard {
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  background: var(--ns-surface);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(51, 51, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ns-pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--ns-shadow-hover);
}

.ns-pcard__media {
  position: relative;
}

.ns-pcard__imglink {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fafafa;
}

.ns-pcard__imglink img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-pcard__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(63, 81, 181, 0.1));
}

.ns-pcard__ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ns-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--ns-radius-pill);
}

.ns-pcard__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ns-pcard__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ns-muted);
  margin: 0;
}

.ns-pcard__title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.ns-pcard__title a {
  color: var(--ns-ink);
}

.ns-pcard__title a:hover {
  color: var(--ns-primary);
}

.ns-price {
  font-weight: 800;
  color: var(--ns-ink);
}

.ns-price-compare {
  font-size: 0.85rem;
  color: var(--ns-muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
}

.ns-pcard__actions {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ns-pcard__form {
  margin: 0;
}

.ns-quickview__dialog {
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  box-shadow: var(--ns-shadow);
}

/* ----- Deals horizontal ----- */
.ns-deals-scroller {
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-inline: -0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ns-deals-scroller__track {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem;
}

.ns-deal-card {
  flex: 0 0 min(240px, 82vw);
  scroll-snap-align: start;
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(51, 51, 51, 0.06);
}

.ns-deal-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}

.ns-deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-deal-card__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(63, 81, 181, 0.12));
}

.ns-deal-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ns-secondary);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.ns-deal-card__body {
  padding: 1rem;
}

.ns-deal-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ns-deal-card__title a {
  color: var(--ns-ink);
}

.ns-deal-card__title a:hover {
  color: var(--ns-primary);
}

.ns-deal-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

/* ----- Countdown ----- */
.ns-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--ns-radius-pill);
  background: rgba(63, 81, 181, 0.08);
  border: 1px solid rgba(63, 81, 181, 0.2);
}

.ns-countdown__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ns-secondary);
}

.ns-countdown__value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ns-ink);
}

/* ----- Feature cards ----- */
.ns-feature-card {
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  background: #fff;
  padding: 1.5rem 1.35rem;
  height: 100%;
  box-shadow: 0 10px 28px rgba(51, 51, 51, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ns-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ns-shadow-hover);
}

.ns-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(63, 81, 181, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.ns-feature-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ns-feature-card__text {
  color: var(--ns-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

/* ----- Footer ----- */
.ns-footer {
  border-top: 1px solid var(--ns-line);
  background: #fff;
}

.ns-footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
}

.ns-footer-lead {
  color: var(--ns-muted);
  max-width: 320px;
  line-height: 1.6;
}

.ns-footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--ns-ink);
  margin-bottom: 1rem;
}

.ns-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ns-footer-list li {
  margin-bottom: 0.55rem;
}

.ns-footer-list a {
  color: var(--ns-muted);
  font-weight: 500;
}

.ns-footer-list a:hover {
  color: var(--ns-secondary);
}

.ns-social {
  display: flex;
  gap: 0.5rem;
}

.ns-social__link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--ns-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ns-ink);
}

.ns-social__link:hover {
  border-color: var(--ns-primary);
  color: var(--ns-primary);
}

.ns-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ns-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ns-muted);
}

.ns-footer-bottom__meta {
  font-size: 0.8rem;
}

/* ----- Product detail availability ----- */
.ns-pdp-availability {
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius-sm);
  padding: 1rem 1.25rem;
  background: var(--ns-surface);
}

.ns-pdp-availability--oos {
  background: linear-gradient(165deg, #fafafa 0%, #ffffff 55%);
  border-color: var(--ns-line-strong);
}

.ns-pdp-availability__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.ns-pdp-availability__copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.ns-pdp-availability__head {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ns-ink);
  letter-spacing: -0.02em;
}

.ns-pdp-availability__body {
  font-size: 0.9rem;
  color: var(--ns-muted);
  line-height: 1.45;
}

.ns-pdp-availability-badge {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
}

.ns-pdp-availability-badge--ok {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.ns-pdp-availability-badge--low {
  background: rgba(237, 108, 2, 0.15);
  color: #bf360c;
}

.ns-pdp-availability-badge--oos {
  background: rgba(107, 107, 107, 0.14);
  color: var(--ns-ink-soft);
}

.ns-pdp-notify-soon .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ns-pdp-notify-soon__hint {
  font-size: 0.8rem;
}

/* ----- Product detail share ----- */
.ns-pdp-share__label {
  letter-spacing: 0.06em;
}

@media (max-width: 575.98px) {
  .ns-pdp-share__actions {
    width: 100%;
  }
  .ns-pdp-share__actions .btn {
    width: 100%;
    min-height: 44px;
  }
}

/* ----- Recently viewed (PDP carousel) ----- */
.ns-recent-viewed__rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ns-recent-viewed__card {
  flex: 0 0 10.5rem;
  max-width: 42vw;
  scroll-snap-align: start;
}

.ns-recent-viewed__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ns-recent-viewed__link:hover .ns-recent-viewed__name {
  color: var(--ns-secondary);
}

.ns-recent-viewed__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.ns-recent-viewed__ph {
  min-height: 100%;
}

@media (min-width: 768px) {
  .ns-recent-viewed__card {
    flex-basis: 11.5rem;
    max-width: none;
  }
}

/* ----- PDP sticky CTA (add + buy now, all breakpoints) ----- */
.ns-pdp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--ns-line);
  box-shadow: 0 -12px 40px rgba(51, 51, 51, 0.08);
}

.ns-pdp-sticky-cta__inner {
  max-width: var(--ns-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ns-pdp-sticky-cta__actions {
  min-width: 0;
}

.ns-product-page--sticky-cta {
  padding-bottom: 5.75rem;
}

@media (min-width: 768px) {
  .ns-product-page--sticky-cta {
    padding-bottom: 5rem;
  }

  .ns-pdp-sticky-cta__inner {
    padding-inline: 0.25rem;
  }
}

/* ----- PDP frequently bought together (bundle picker) ----- */
.ns-pdp-fbt-details > summary {
  list-style: none;
  cursor: pointer;
}

.ns-pdp-fbt-details > summary::-webkit-details-marker {
  display: none;
}

.ns-pdp-fbt-details__chevron::before {
  content: "▼";
  display: inline-block;
  font-size: 0.65rem;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.ns-pdp-fbt-details:not([open]) .ns-pdp-fbt-details__chevron::before {
  transform: rotate(-90deg);
}

.ns-pdp-fbt__rail {
  max-width: 100%;
}

.ns-fbt-slot {
  flex: 1 1 7.5rem;
  max-width: 10.5rem;
  min-width: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  position: relative;
}

/* Must not set position: relative here — it overrides Bootstrap .ratio > * { position:absolute }
   and collapses the tile so images and the +/✓ control disappear. */
.ns-fbt-slot__media-fill {
  width: 100%;
  height: 100%;
}

.ns-fbt-slot__media-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  z-index: 0;
}

.ns-fbt-slot__media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-fbt-slot__media-link .product-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 4rem;
}

.ns-fbt-slot__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.5rem;
}

.ns-fbt-slot__price {
  font-size: 0.95rem;
  color: var(--ns-ink);
}

.ns-fbt-slot--oos {
  opacity: 0.72;
}

.ns-fbt-plus {
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0.15rem;
  margin-top: 1.25rem;
}

.ns-fbt-slot__pick-wrap {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: auto;
  height: auto;
  left: auto;
  bottom: auto;
  pointer-events: none;
}

.ns-fbt-slot__pick-wrap .ns-fbt-pick {
  pointer-events: auto;
}

.ns-fbt-pick {
  cursor: pointer;
  display: block;
  margin: 0;
}

.ns-fbt-pick--disabled {
  cursor: not-allowed;
}

.ns-fbt-pick__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ns-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(51, 51, 51, 0.22);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.ns-fbt-pick:hover .ns-fbt-pick__face {
  border-color: var(--ns-secondary);
  transform: scale(1.05);
}

.ns-fbt-pick input:checked + .ns-fbt-pick__face {
  background: var(--ns-primary);
  border-color: var(--ns-primary);
  color: #fff;
}

.ns-fbt-pick input:checked + .ns-fbt-pick__face::before {
  content: "✓";
}

.ns-fbt-pick input:not(:checked):not(:disabled) + .ns-fbt-pick__face::before {
  content: "+";
}

.ns-fbt-pick input:disabled + .ns-fbt-pick__face {
  opacity: 0.45;
  background: var(--ns-bg);
  color: var(--ns-muted);
  border-color: var(--ns-line);
}

.ns-fbt-pick input:disabled + .ns-fbt-pick__face::before {
  content: "—";
}

@media (min-width: 992px) {
  .ns-fbt-slot {
    flex-basis: 8.5rem;
    max-width: 11rem;
  }
}

.ns-fbt-qty .form-control {
  min-height: 2rem;
}

.ns-toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0));
  transform: translateX(-50%);
  z-index: 1085;
  max-width: min(92vw, 380px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.ns-toast {
  pointer-events: none;
  padding: 0.55rem 1rem;
  border-radius: var(--ns-radius-sm);
  background: rgba(51, 51, 51, 0.92);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.35;
  box-shadow: var(--ns-shadow-hover);
  text-align: center;
}

.ns-pdp-desc .nav-tabs-line .nav-link {
  border: 1px solid transparent;
  color: var(--ns-muted);
  background: transparent;
}

.ns-pdp-desc .nav-tabs-line .nav-link:hover {
  color: var(--ns-ink);
}

.ns-pdp-desc .nav-tabs-line .nav-link.active {
  color: var(--ns-primary);
  background: rgba(233, 30, 99, 0.1);
  border-color: rgba(233, 30, 99, 0.28);
  font-weight: 600;
}

.ns-pdp-desc__body {
  white-space: pre-line;
}

.ns-pdp-details-dl dt {
  font-weight: 500;
}

.ns-review-stars-display {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.ns-review-star-static {
  display: block;
}

.ns-review-star-static__path {
  fill: #dadada;
}

.ns-review-star-static.is-on .ns-review-star-static__path {
  fill: #f5b301;
}

.ns-review-stars-input {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.ns-review-star {
  border: 0;
  background: transparent;
  padding: 0.15rem;
  line-height: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.ns-review-star:hover {
  background: rgba(233, 30, 99, 0.08);
  transform: scale(1.06);
}

.ns-review-star__path {
  fill: #dadada;
  transition: fill 0.15s ease;
}

.ns-review-star.is-active .ns-review-star__path {
  fill: var(--ns-primary);
}

/* ----- Legacy / shared pages ----- */
.section {
  padding: 2.25rem 0;
}

.section__header {
  margin-bottom: 1.25rem;
}

.card--soft {
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius);
  box-shadow: var(--ns-shadow);
  background: var(--ns-surface);
}

.store-card {
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ns-shadow);
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ns-muted);
  font-weight: 700;
}

.hero {
  padding: 2.5rem 0 1rem;
}

.hero--landing .hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 991.98px) {
  .hero--landing .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__lottie .lottie-surface,
#lottie-hero,
#lottie-empty-cart,
#lottie-success {
  min-height: 260px;
}

.lottie-surface {
  width: 100%;
  max-width: 420px;
}

.product-card {
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-line);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ns-shadow);
}

.product-card__media img,
.product-card__media .product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(63, 81, 181, 0.12));
}

.object-fit-cover {
  object-fit: cover;
}

.ns-pdp-magnify {
  position: relative;
  --ns-pdp-lens-size: 170px;
}

.ns-pdp-magnify__lens {
  position: absolute;
  width: var(--ns-pdp-lens-size);
  height: var(--ns-pdp-lens-size);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
}

.ns-pdp-magnify__lens-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: top left;
}

@media (hover: none), (pointer: coarse), (max-width: 991.98px) {
  .ns-pdp-magnify__lens {
    display: none !important;
  }
}

.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ns-muted);
}

.site-footer {
  /* legacy class if referenced */
  border-top: 1px solid var(--ns-line);
  background: #fff;
}

/* ----- Slide-out cart (Bootstrap offcanvas) ----- */
.ns-cart-drawer.offcanvas {
  z-index: 1055;
  max-width: min(420px, 100vw);
}

.ns-cart-drawer .offcanvas-body {
  flex: 1;
  min-height: 0;
  max-height: calc(100dvh - 4.5rem);
  display: flex;
  flex-direction: column;
}

.ns-cart-drawer-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ns-line);
}

.ns-cart-drawer-line:last-child {
  border-bottom: 0;
}

.ns-cart-drawer-line__media {
  grid-row: 1 / -1;
  grid-column: 1;
  width: 56px;
  height: 56px;
  border-radius: var(--ns-radius-sm);
  overflow: hidden;
  background: var(--ns-bg);
  border: 1px solid var(--ns-line);
  align-self: start;
}

.ns-cart-drawer-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-cart-drawer-line__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(63, 81, 181, 0.1));
}

.ns-cart-drawer-line__top {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.ns-cart-drawer-line__pricing {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.ns-cart-drawer-update-qty {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  width: 100%;
}

.ns-cart-drawer-remove {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.ns-cart-drawer-remove__btn {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ns-radius-sm);
  background: transparent;
  color: var(--ns-muted);
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.ns-cart-delete-icon {
  display: block;
  flex-shrink: 0;
}

.ns-cart-drawer-remove__btn:hover {
  color: #b71c1c;
  background: rgba(183, 28, 28, 0.08);
}

.ns-cart-drawer-remove__btn:focus-visible {
  outline: 2px solid var(--ns-secondary);
  outline-offset: 2px;
}

.ns-cart-drawer-line__name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ns-ink);
  min-width: 0;
  line-height: 1.25;
}

/* Quantity stepper (drawer + full cart) */
.ns-cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ns-line-strong);
  border-radius: var(--ns-radius-sm);
  overflow: hidden;
  background: #fff;
}

.ns-cart-qty-stepper--table {
  max-width: 100%;
}

.ns-cart-qty-btn {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ns-bg);
  color: var(--ns-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ns-cart-qty-btn:hover {
  background: #ececec;
}

.ns-cart-qty-btn:focus-visible {
  outline: 2px solid var(--ns-secondary);
  outline-offset: -2px;
  z-index: 1;
}

.ns-cart-qty-input {
  width: 3rem;
  min-width: 2.75rem;
  max-width: 4rem;
  height: 36px;
  margin: 0;
  padding: 0 0.25rem;
  border: 0;
  border-left: 1px solid var(--ns-line);
  border-right: 1px solid var(--ns-line);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ns-ink);
  background: #fff;
  -moz-appearance: textfield;
}

.ns-cart-qty-input::-webkit-outer-spin-button,
.ns-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button.ns-cart-btn {
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

/* Promo strips (admin-managed): rotate, countdown, CTA */
.ns-promo-rotator {
  position: relative;
  min-height: 2.75rem;
  overflow: hidden;
}

/* Multi-slide: one grid cell so all slides share height; opacity crossfade */
.ns-promo-rotator:not(.ns-promo-rotator--stacked) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.ns-promo-rotator:not(.ns-promo-rotator--stacked) .ns-promo-slide {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
  z-index: 0;
}

.ns-promo-rotator:not(.ns-promo-rotator--stacked) .ns-promo-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

/* Incoming promo above outgoing during crossfade */
.ns-promo-rotator:not(.ns-promo-rotator--stacked) .ns-promo-slide.ns-promo-slide--enter {
  opacity: 0;
  visibility: visible;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.ns-promo-rotator:not(.ns-promo-rotator--stacked) .ns-promo-slide.ns-promo-slide--enter.ns-promo-slide--enter-show {
  opacity: 1;
}

.ns-promo-rotator--stacked {
  display: block;
  min-height: 0;
  overflow: visible;
}

.ns-promo-rotator--stacked .ns-promo-slide {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin-bottom: 0.15rem;
}

.ns-promo-strip {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ns-promo-strip--info {
  background: linear-gradient(90deg, #e8f4ff, #f3f7ff);
  color: #1a3a5c;
}

.ns-promo-strip--warning {
  background: linear-gradient(90deg, #fff8e6, #fff3cd);
  color: #5c4a1a;
}

.ns-promo-strip--sale {
  background: linear-gradient(90deg, #fde7ef, #fce4ec);
  color: #6b1a3d;
}

.ns-promo-row {
  min-height: 2.25rem;
}

/* Horizontal scroll: duplicated line, moves so copy reads left → right stream (reverse of track transform) */
.ns-promo-marquee {
  overflow: hidden;
  max-width: min(100%, 36rem);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ns-promo-marquee__track {
  display: inline-flex;
  width: max-content;
  will-change: transform;
}

.ns-promo-marquee__seg {
  padding-inline: 1.75rem;
  white-space: nowrap;
  font-weight: 500;
}

.ns-promo-marquee--ltr .ns-promo-marquee__track--animate {
  animation: ns-promo-marquee-ltr var(--ns-marquee-ms, 14s) linear infinite;
}

.ns-promo-marquee--ltr .ns-promo-marquee__track--animate.ns-promo-marquee__track--once {
  animation-iteration-count: 1;
}

@keyframes ns-promo-marquee-ltr {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-promo-marquee__track--animate {
    animation: none !important;
    transform: none !important;
  }
}

/* Countdown: opaque dark chip so text never washes out on pastel strip backgrounds */
.ns-promo-countdown {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--ns-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fafafa;
  background: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ns-promo-strip .ns-promo-cta.btn {
  font-weight: 700;
  border-radius: var(--ns-radius-pill);
  padding-inline: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ns-promo-strip--sale .ns-promo-cta.btn {
  background: var(--ns-primary);
  border-color: var(--ns-primary);
  color: #fff;
}

.ns-promo-strip--info .ns-promo-cta.btn {
  background: var(--ns-secondary);
  border-color: var(--ns-secondary);
  color: #fff;
}

.ns-promo-strip--warning .ns-promo-cta.btn {
  background: #5c4a1a;
  border-color: #5c4a1a;
  color: #fff;
}

.ns-promo-dismiss {
  position: absolute;
  top: 50%;
  right: 0.15rem;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.55;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  color: inherit;
}

.ns-promo-dismiss:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ns-promo-rotator .ns-promo-slide {
    transition: none;
  }
}

.ns-home-section--muted {
  background: var(--ns-bg);
}

.ns-home-section--accent {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.06), rgba(63, 81, 181, 0.06));
}

.ns-home-htmlblock {
  font-size: 0.95rem;
}

/* Fixed to bottom-right. Width must stay within the viewport: 92vw + right: 1rem can overflow
   (especially with scrollbars or notches). Constrain the whole block instead of 92vw on the panel. */
.ns-chatbot {
  position: fixed;
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  width: min(22rem, calc(100vw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0;
}

.ns-chatbot__fab {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 0;
  width: 5.5rem;
  height: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.ns-chatbot__fab:focus-visible {
  outline: 2px solid var(--ns-primary, #e91e63);
  outline-offset: 2px;
}

.ns-chatbot__fab-lottie {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  pointer-events: none;
}

.ns-chatbot__panel {
  width: 100%;
  min-width: 0;
  height: min(72vh, 32rem);
  display: none;
  overflow: hidden;
}

.ns-chatbot[data-open="true"] .ns-chatbot__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ns-chatbot__head {
  background: #111827;
  color: #fff;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ns-chatbot__title {
  font-size: 0.95rem;
  font-weight: 700;
}

.ns-chatbot__messages {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  background: #f8fafc;
}

.ns-chatbot__bubble {
  max-width: 90%;
  box-sizing: border-box;
  border-radius: 0.85rem;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.ns-chatbot__bubble--user {
  margin-left: auto;
  background: #111827;
  color: #fff;
}

.ns-chatbot__bubble--bot {
  margin-right: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.ns-chatbot__form {
  border-top: 1px solid #e5e7eb;
  padding: 0.6rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  background: #fff;
  min-width: 0;
  flex-shrink: 0;
}

.ns-chatbot__form textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
}

.ns-chatbot__form .ns-chatbot__send {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
}
