/**
 * Naser Beauty UI v1.5 — slider, stories, cart, header, brands, consult, mega menu
 */

/* ===== Hero slider + side banners ===== */
/* Slider: 1024×494 | Side banners: 512×288 — contain, no crop */
.nb-hero {
  position: relative;
  z-index: 1;
  margin: 14px auto 10px;
  overflow: visible;
}
.nb-hero-layout {
  display: block;
  width: 100%;
  height: auto;
}
.nb-hero-main {
  min-width: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nb-hero-swiper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #f3e8ee;
  aspect-ratio: 1024 / 494;
  contain: layout paint;
}
.nb-hero-swiper .swiper-wrapper,
.nb-hero-swiper .nb-hero-track {
  height: 100%;
  width: 100%;
  position: relative;
}
.nb-hero-swiper .swiper-slide,
.nb-hero-swiper .nb-hero-slide-item {
  width: 100% !important;
  height: 100% !important;
  display: none;
  justify-content: center;
  align-items: center;
}
.nb-hero-swiper .swiper-slide.is-active,
.nb-hero-swiper .nb-hero-slide-item.is-active,
.nb-hero-swiper:not(.is-ready) .swiper-slide:first-child,
.nb-hero-swiper:not(.is-ready) .nb-hero-slide-item:first-child {
  display: flex;
}
.nb-hero-swiper .swiper-slide[hidden],
.nb-hero-swiper .nb-hero-slide-item[hidden] {
  display: none !important;
}
.nb-hero-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.nb-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Desktop: columns ~1024:512; main column stretches to match side banners */
.nb-hero--with-sides .nb-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: stretch;
  height: auto;
}
.nb-hero--with-sides .nb-hero-main {
  min-height: 100%;
  height: 100%;
  align-self: stretch;
}
.nb-hero--with-sides .nb-hero-main .nb-hero-swiper {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 494;
  flex: 0 0 auto;
  align-self: stretch;
}
.nb-hero--with-sides .nb-hero-sides {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: auto;
  align-self: stretch;
}
.nb-hero-side-banner {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 512 / 288;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #f3e8ee;
  border: 1px solid var(--border);
  min-height: 0;
  line-height: 0;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nb-hero-side-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 35, 42, 0.08);
}
.nb-hero-side-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: auto;
}

/* Under-slider banner: compact strip under slider */
.nb-hero-under {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f3e8ee;
  border: 1px solid var(--border);
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.nb-hero-under.is-image {
  aspect-ratio: 1024 / 120;
}
.nb-hero-under.is-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: auto;
}
.nb-hero-under.is-text {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  padding: 8px 16px;
  min-height: 48px;
  max-height: 52px;
  background:
    linear-gradient(120deg, #fff 0%, #fff7fb 42%, #ffe4ef 100%);
  border: 1px solid rgba(236, 44, 111, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.nb-hero-under.is-text:hover {
  border-color: rgba(236, 44, 111, 0.28);
}
.nb-hero-under__inner {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nb-hero-under__text {
  margin: 0;
  font-size: clamp(13px, 1.45vw, 16px);
  font-weight: 700;
  color: var(--text-dark, #26232a);
  line-height: 1.35;
}
.nb-hero-under__hl {
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline;
  background: linear-gradient(180deg, rgba(236, 44, 111, 0.12), transparent 70%);
  border-radius: 6px;
  padding: 0 3px;
}
.nb-hero-under__sub {
  margin: 0;
  font-size: clamp(10.5px, 1.1vw, 12px);
  font-weight: 600;
  color: var(--text-mid, #6b6470);
  line-height: 1.35;
}
/* Desktop + side banners: keep bottoms aligned (under strip stays compact, no flex grow) */
.nb-hero--with-sides.nb-hero--has-under .nb-hero-layout {
  align-items: start;
}
.nb-hero--with-sides.nb-hero--has-under .nb-hero-main {
  height: auto;
  min-height: 0;
}
.nb-hero--with-sides.nb-hero--has-under .nb-hero-under {
  flex: 0 0 auto;
}
.nb-hero--with-sides.nb-hero--has-under .nb-hero-under.is-text {
  min-height: 46px;
  max-height: 50px;
  padding: 6px 14px;
}

.nb-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.92);
  color: #2b2530;
  box-shadow: 0 8px 20px rgba(38, 35, 42, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.nb-hero-nav svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block;
  flex-shrink: 0;
}
.nb-hero-prev { right: 12px; }
.nb-hero-next { left: 12px; }
.nb-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: auto;
  line-height: 0;
}
.nb-hero-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  max-width: 8px;
  max-height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}
.nb-hero-dot.is-active {
  width: 8px;
  height: 8px;
  max-width: 8px;
  border-radius: 50%;
  background: #ec2c6f;
  box-shadow: 0 0 0 3px rgba(236, 44, 111, 0.28);
  transform: scale(1.15);
}

/* Mobile: same slider ratio 1024×494; under banner visible; side banners hidden */
@media (max-width: 900px) {
  .nb-hero {
    margin: 8px auto 6px;
  }
  .nb-hero--with-sides .nb-hero-layout {
    display: block;
    height: auto;
  }
  .nb-hero-sides {
    display: none !important;
  }
  .nb-hero-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
  }
  .nb-hero-main,
  .nb-hero-swiper {
    width: 100%;
    min-height: 0;
  }
  .nb-hero-swiper {
    height: auto;
    aspect-ratio: 1024 / 494;
    flex: 0 0 auto;
    border-radius: 14px;
  }
  .nb-hero-swiper .swiper-wrapper,
  .nb-hero-swiper .swiper-slide,
  .nb-hero-slide {
    height: 100%;
  }
  .nb-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .nb-hero-under {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    border-radius: 14px;
  }
  .nb-hero-under.is-image {
    display: block;
    aspect-ratio: 1024 / 180;
  }
  .nb-hero-under.is-text {
    aspect-ratio: auto;
    min-height: 52px;
    max-height: none;
    padding: 8px 14px;
  }
  .nb-hero-under__text {
    font-size: 14.5px;
  }
  .nb-hero-nav {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    box-shadow: 0 4px 12px rgba(38, 35, 42, .1);
    border-width: 1px;
  }
  .nb-hero-nav svg {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
  }
  .nb-hero-prev { right: 6px; }
  .nb-hero-next { left: 6px; }
  .nb-hero-dots { bottom: 10px; gap: 6px; }
  .nb-hero-dot,
  .nb-hero-dot.is-active {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    max-width: 7px;
    max-height: 7px;
    flex-basis: 7px;
    border-radius: 50%;
  }
  .nb-hero-dot.is-active {
    box-shadow: 0 0 0 2px rgba(236, 44, 111, 0.3);
    transform: scale(1.2);
  }
}
/* ===== Stories ===== */
.nb-stories-rail {
  margin-bottom: 8px;
  padding: 8px 0 4px;
}
.nb-stories-rail__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scrollbar-width: none;
}
.nb-stories-rail__track::-webkit-scrollbar { display: none; }
@media (min-width: 769px) {
  .nb-stories-rail__track {
    justify-content: center;
  }
}
.nb-stories-rail__item {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nb-stories-rail__ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
  margin: 0 auto;
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.nb-stories-rail__thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  display: block;
  background: var(--pink-50);
}
.nb-stories-rail__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
  margin: 0 auto;
  display: block !important;
  position: static !important;
  width: 100%;
  line-height: 1.35;
  text-shadow: none !important;
  background: none !important;
}
.nb-stories-viewer {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000 !important;
  display: none;
  isolation: isolate;
}
.nb-stories-viewer.is-open,
.nb-stories-viewer:not([hidden]) {
  display: block;
}
.nb-stories-viewer[hidden] { display: none !important; }
.nb-stories-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 10, .88);
}
.nb-stories-viewer__stage {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 96vw);
  height: min(780px, 96vh);
  background: #0c0c0c;
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.nb-stories-viewer__media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0c0c0c;
}
.nb-stories-viewer__media {
  position: absolute;
  inset: 0;
  background: #0c0c0c;
}
.nb-stories-viewer__media img,
.nb-stories-viewer__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
  transition: opacity .18s ease;
  background: #0c0c0c;
}
.nb-stories-viewer__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 12px 12px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 70%, transparent 100%);
  pointer-events: none;
}
.nb-stories-viewer__progress-bars { display: flex; gap: 4px; }
.nb-stories-viewer__bar {
  flex: 1;
  height: 2.5px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}
.nb-stories-viewer__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.nb-stories-viewer__bar.is-done .nb-stories-viewer__bar-fill { width: 100%; }
.nb-stories-viewer__header {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #fff;
  pointer-events: none;
}
.nb-stories-viewer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  max-width: calc(100% - 52px);
}
.nb-stories-viewer__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.nb-stories-viewer__title {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nb-stories-viewer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.nb-stories-viewer__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border: 0;
  background: transparent !important;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
.nb-stories-viewer__nav:focus,
.nb-stories-viewer__nav:active,
.nb-stories-viewer__nav:hover {
  background: transparent !important;
  outline: none;
  box-shadow: none;
}
.nb-stories-viewer__nav--prev { right: 0; }
.nb-stories-viewer__nav--next { left: 0; }
.nb-stories-viewer__tap-hint {
  display: none !important;
}
.nb-stories-viewer__cta-wrap[hidden],
.nb-stories-viewer__swipe-arrow[hidden] {
  display: none !important;
}
.nb-stories-viewer__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 28px 16px 18px;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 88px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 65%, transparent 100%);
  pointer-events: none;
}
.nb-stories-viewer__cta-wrap {
  width: 100%;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: auto;
}
.nb-stories-viewer__product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ec2c6f, #ff6d95);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(236, 44, 111, .35);
}
.nb-stories-viewer__product-btn[hidden] { display: none !important; }
.nb-stories-viewer__swipe-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #ffb3cd;
  animation: nb-bounce 1.2s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nb-stories-viewer__swipe-arrow {
    animation: none;
  }
}
.nb-stories-viewer__swipe-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}
.nb-stories-viewer__play-toggle {
  position: absolute;
  left: 14px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.4);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  pointer-events: auto;
  backdrop-filter: blur(6px);
  z-index: 8;
}
.nb-stories-viewer__play-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.nb-stories-viewer__play-toggle .nb-stories-icon-play[hidden],
.nb-stories-viewer__play-toggle .nb-stories-icon-pause[hidden] {
  display: none !important;
}
@keyframes nb-bounce {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 768px) {
  .nb-stories-viewer__stage {
    inset: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }
  .nb-stories-viewer__progress {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .nb-stories-viewer__header {
    top: max(26px, calc(env(safe-area-inset-top) + 18px));
  }
  .nb-stories-viewer__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nb-stories-viewer__title {
    white-space: normal;
    max-width: 160px;
    font-size: 12px;
    line-height: 1.35;
  }
  .nb-stories-viewer__footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}
/* When stories open: bury white header/nav under the dim overlay */
body.nb-stories-open .nb-topbar,
body.nb-stories-open .nb-header,
body.nb-stories-open .nb-nav,
body.nb-stories-open .nb-mobile-drawer,
body.nb-stories-open .nb-drawer-backdrop,
body.nb-stories-open .cat-mega-menu,
body.nb-stories-open .mobile-bottom-nav,
body.nb-reels-open .mobile-bottom-nav,
body.nb-reels-open .nb-topbar,
body.nb-reels-open .nb-header,
body.nb-reels-open .nb-nav {
  z-index: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body.nb-stories-open .nb-header,
body.nb-stories-open .nb-nav {
  background: transparent !important;
  box-shadow: none !important;
  filter: none;
}

/* ===== Header mobile ===== */
.nb-header .header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nb-menu-toggle { display: none; }
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.nav-cat-item {
  position: static;
  flex-shrink: 0;
  order: -1; /* keep categories on the RTL right edge */
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.cat-btn .cat-chevron { width: 14px; height: 14px; }
.nb-nav { position: relative; z-index: 1000; background: #fff; overflow: visible; }
body.nb-mega-open .nb-nav { z-index: 10000 !important; }
body.nb-mega-open .nb-header { z-index: 9990 !important; }
body.nb-search-open:not(.nb-mega-open) .nb-header {
  z-index: 10050 !important;
}
body.nb-search-open:not(.nb-mega-open) .nb-nav {
  z-index: 900 !important;
}
body.nb-mega-open .nb-main,
body.nb-mega-open .nb-hero {
  z-index: 1 !important;
}
.cat-mega-menu {
  position: absolute !important;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 10001 !important;
  background: #fff !important;
  border-top: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(38, 35, 42, .14);
  padding: 0;
  display: none;
}
.cat-mega-menu.is-open,
.cat-mega-menu:not([hidden]) {
  display: block !important;
}
.cat-mega-menu[hidden] {
  display: none !important;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--text-dark);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links .sub-menu {
  display: none !important;
}

/* Digikala-style mega layout */
.cat-mega-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 380px;
  max-height: min(82vh, 680px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 14px 0 18px;
  background: #fff;
}
.cat-mega-sidebar {
  background: #f7f5f7;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 8px 0;
}
.cat-mega-side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  color: var(--text-dark);
  transition: background .15s, color .15s;
}
.cat-mega-side-item:hover,
.cat-mega-side-item.is-active {
  background: #fff;
  color: var(--pink-600);
}
.cat-mega-side-item.is-active {
  box-shadow: inset -3px 0 0 var(--pink-500);
}
.cat-mega-side-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-500);
}
.cat-mega-side-icon svg,
.cat-mega-side-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.cat-mega-side-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
.cat-mega-side-chevron {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1;
}
.cat-mega-content {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.cat-mega-panel {
  height: 100%;
  min-height: 0;
  display: none;
  flex-direction: column;
}
.cat-mega-panel.is-active {
  display: flex;
}
.cat-mega-panel[hidden] {
  display: none !important;
}
.cat-mega-panel-inner {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.cat-mega-panel-inner.has-banner {
  grid-template-columns: minmax(0, 1fr) 180px;
}
.cat-mega-cols {
  display: block;
  column-count: 4;
  column-gap: 22px;
  column-fill: balance;
}
.cat-mega-col {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 16px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}
.cat-mega-col-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 8px;
}
.cat-mega-col-title:hover { color: var(--pink-600); }
.cat-mega-col-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-500);
}
.cat-mega-col-icon svg,
.cat-mega-col-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.cat-mega-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.cat-mega-col-links a {
  font-size: 12.5px;
  color: var(--text-mid);
  text-decoration: none;
  display: block;
  padding: 2px 0;
  line-height: 1.45;
}
.cat-mega-col-links a:hover { color: var(--pink-600); }
.cat-mega-banner {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  align-self: stretch;
  min-height: 200px;
  max-height: 100%;
}
.cat-mega-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-mega-panel-foot {
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  text-align: left;
  flex-shrink: 0;
  background: #fff;
}
.cat-mega-panel-foot a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink-600);
  text-decoration: none;
}
@media (max-width: 1200px) {
  .cat-mega-cols { column-count: 3; }
}
/* Tablet + small desktop: mobile-like category list (no stretched columns) */
@media (max-width: 1024px) {
  .cat-mega-layout {
    grid-template-columns: 1fr;
    max-height: min(78vh, 640px);
  }
  .cat-mega-sidebar {
    border-left: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .cat-mega-side-item {
    width: auto;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 12px;
  }
  .cat-mega-side-item.is-active {
    box-shadow: none;
    border-color: var(--pink-500);
    background: var(--pink-50);
  }
  .cat-mega-side-chevron { display: none; }
  .cat-mega-panel-inner {
    padding: 12px;
  }
  .cat-mega-panel-inner.has-banner {
    grid-template-columns: 1fr;
  }
  .cat-mega-banner {
    min-height: 120px;
    order: -1;
  }
  .cat-mega-cols {
    column-count: 1;
    display: grid;
    gap: 10px;
  }
  .cat-mega-col {
    display: block;
    margin: 0;
    padding: 12px 14px;
    background: #faf7f9;
    border: 1px solid #f0e3eb;
    border-radius: 14px;
  }
  .cat-mega-col-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cat-mega-col-links a {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text-dark);
  }
  .cat-mega-col-links a:hover {
    border-color: rgba(236, 44, 111, .35);
    color: var(--pink-600);
  }
}
@media (max-width: 900px) {
  .cat-mega-layout {
    max-height: min(78vh, 640px);
  }
}
.cat-mega-grid { display: contents; }
.cat-mega-children { display: none; }

@media (max-width: 768px) {
  .nb-header {
    padding: 8px 0 !important;
  }
  .nb-header .header-row {
    display: grid !important;
    /* Equal side columns → logo is true viewport/header center */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 0 6px !important;
    position: relative;
  }
  .header-actions--menu,
  .header-actions--icons {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    height: 40px;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* RTL grid: col1 = hamburger (right), col2 = logo (true center), col3 = icons (left) */
  .header-actions--menu {
    grid-column: 1 !important;
    grid-row: 1;
    justify-self: start !important;
    padding-inline-start: 2px !important;
  }
  .logo-wrap {
    grid-column: 2 !important;
    grid-row: 1;
    justify-self: center !important;
    align-self: center !important;
    order: unset !important;
    flex: none !important;
    max-height: 40px !important;
    height: 40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    z-index: 1;
  }
  .logo-wrap .custom-logo-link,
  .logo-wrap .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: 40px;
    line-height: 1;
  }
  .logo-wrap img,
  .logo-wrap .custom-logo {
    max-height: 34px !important;
    width: auto !important;
    height: auto !important;
    display: block;
  }
  .header-actions--icons {
    grid-column: 3 !important;
    grid-row: 1;
    justify-self: end !important;
    gap: 4px !important;
    padding-inline-end: 2px !important;
  }
  .header-actions--icons .icon-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    vertical-align: middle;
  }
  .header-actions--icons .icon-item svg {
    width: 22px !important;
    height: 22px !important;
    display: block;
  }
  .header-actions--icons .icon-item .nb-badge {
    top: 2px;
    left: 2px;
    right: auto;
  }
  .desktop-search { display: none !important; }
  .nb-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
  }
  .nb-menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
  }
  .nb-menu-toggle .icon-close { display: none; }
  .nb-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nb-menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .hero-slide-panel,
  .hero-slide-inner,
  .hero-visual { min-height: 300px; }
  .hero-copy { padding: 18px 16px; max-width: none; margin: 12px !important; }
  .hero-copy h1 { font-size: 22px; }
  .hero-trust { display: none; }
}

@media (min-width: 769px) {
  .header-actions--menu { display: none; }
  .nb-header .header-row {
    flex-direction: row-reverse;
  }
}

/* ===== Cart redesign ===== */
.nb-wc-shell {
  width: 100%;
  padding-bottom: 48px;
}
.nb-cart-page { width: 100%; padding-bottom: 8px; }
.nb-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  flex-wrap: wrap;
}
.nb-cart-head h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-mid);
  margin: 0;
}
.nb-cart-head h1 b {
  color: var(--text-dark);
  font-weight: 800;
}
.nb-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}
.nb-cart-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.nb-cart-items {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.nb-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.nb-cart-item:last-child { border-bottom: 0; }
.nb-cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nb-cart-item-thumb img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}
.nb-cart-item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 4px;
}
.nb-cart-item-brand {
  display: block;
  font-size: 11.5px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.nb-cart-item-unit { font-size: 12.5px; font-weight: 700; }
.nb-cart-item-total { font-size: 14px; font-weight: 800; white-space: nowrap; }
.nb-cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}
.nb-cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}
.woocommerce-cart-form button[name="update_cart"]:disabled,
.woocommerce-cart-form #nb-cart-update-btn:disabled {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.nb-cart-saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(38, 35, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nb-cart-saving-overlay.is-open { display: flex; }
.nb-cart-saving-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 34px;
  min-width: 280px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.nb-cart-saving-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: #2d2330;
}
.nb-cart-saving-card p {
  margin: 0;
  color: #6b6470;
  font-size: 13px;
  line-height: 1.7;
}
.nb-cart-saving-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #f5c2d1;
  border-top-color: #ec2c6f;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: nb-cart-spin 0.7s linear infinite;
}
.nb-cart-saving-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #1fa971;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.nb-cart-saving-error {
  display: none !important;
}
.nb-cart-saving-spinner[hidden],
.nb-cart-saving-check[hidden] {
  display: none !important;
}
@keyframes nb-cart-spin { to { transform: rotate(360deg); } }
body.nb-cart-is-saving { cursor: wait; }
.nb-cart-coupon {
  display: none !important;
}

/* Bestsellers promo under cart / checkout */
.nb-bestsellers-promo {
  margin: 28px 0 8px;
  padding: 22px 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(236, 44, 111, 0.14);
  background:
    linear-gradient(160deg, #fff 0%, #fff7fb 48%, #ffe9f2 100%);
  box-shadow: 0 12px 32px rgba(236, 44, 111, 0.06);
}
.nb-bestsellers-promo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.nb-bestsellers-promo__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark, #26232a);
}
.nb-bestsellers-promo__all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink-primary, #ec2c6f);
  text-decoration: none;
  white-space: nowrap;
}
.nb-bestsellers-promo__all:hover {
  color: var(--pink-primary-dark, #e0186a);
}
.nb-bestsellers-promo .nb-product-carousel {
  margin: 0;
}
.nb-bestsellers-promo .nb-carousel-viewport {
  padding-bottom: 4px;
}
@media (max-width: 768px) {
  .nb-bestsellers-promo {
    margin: 20px 0 4px;
    padding: 16px 12px 12px;
    border-radius: 18px;
  }
  .nb-bestsellers-promo__head h2 {
    font-size: 15px;
  }
}

.nb-cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: none;
  position: sticky;
  top: 88px;
}
.nb-cart-summary h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}
.nb-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-mid);
}
.nb-summary-row.is-discount { color: var(--pink-600); }
.nb-summary-row .is-free { color: var(--green); }
.nb-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.nb-summary-total strong { font-size: 18px; font-weight: 800; }
.nb-cart-checkout {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
}
.nb-cart-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}
.nb-cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  color: var(--text-light);
}
.nb-cart-empty-icon svg { width: 72px; height: 72px; }
.nb-cart-empty h2 { font-size: 20px; margin-bottom: 8px; }
.nb-cart-empty p { color: var(--text-mid); margin-bottom: 20px; }
.nb-cart-empty-recs h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: right;
}
.nb-compact-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nb-compact-products .nb-product-card { padding: 12px; }
.nb-compact-products .product-card-img { margin-bottom: 8px; border-radius: 10px; }
.nb-compact-products .product-card-name { font-size: 12px; }
.nb-compact-products .card-fav { display: none; }

@media (max-width: 900px) {
  .nb-cart-layout { grid-template-columns: 1fr; }
  .nb-cart-summary { position: static; }
  .nb-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty total";
  }
  .nb-cart-item-thumb { grid-area: thumb; width: 64px; height: 64px; }
  .nb-cart-item-info { grid-area: info; }
  .nb-cart-item-remove { grid-area: remove; }
  .nb-cart-item-qty { grid-area: qty; }
  .nb-cart-item-total { grid-area: total; }
  .nb-compact-products { grid-template-columns: repeat(2, 1fr); }
}

/* ===== App intro + Routine ===== */
.nb-home-split {
  display: grid;
  gap: 18px;
  margin-bottom: 44px;
}
.nb-app-intro {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #fff7fb 55%, #ffe9f2 100%);
  padding: 28px 30px;
}
.nb-app-intro__badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(236, 44, 111, 0.1);
  color: var(--pink-600);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.nb-app-intro__copy h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.45;
}
.nb-app-intro__copy p {
  color: var(--text-mid);
  font-size: 13.5px;
  margin: 0 0 14px;
  max-width: 42ch;
}
.nb-app-intro__features {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}
.nb-app-intro__features li {
  position: relative;
  padding-right: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.nb-app-intro__features li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-500);
}
.nb-app-intro__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nb-app-intro__media {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(236, 44, 111, 0.18);
  box-shadow: 0 18px 40px rgba(236, 44, 111, 0.16);
  background: linear-gradient(180deg, #fff, #fce4ee);
}
.nb-app-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nb-app-intro__phone {
  width: 150px;
  height: 260px;
  border-radius: 28px;
  border: 2px solid rgba(236, 44, 111, 0.25);
  background: linear-gradient(180deg, #fff, #fce4ee);
  box-shadow: 0 18px 40px rgba(236, 44, 111, 0.16);
  position: relative;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nb-app-intro__phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: rgba(38, 35, 42, 0.12);
}
.nb-app-intro__phone span {
  display: block;
  height: 42px;
  border-radius: 12px;
  background: rgba(236, 44, 111, 0.12);
}
.nb-app-intro__phone span:nth-child(2) { height: 64px; }
.nb-app-intro__phone span:nth-child(3) { flex: 1; }

/* Mid banners between app intro and skin routine */
.nb-mid-banners {
  display: grid;
  grid-template-columns: repeat(var(--nb-mid-cols, 4), minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.nb-mid-banner {
  --mb-accent: #f9a8c9;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--mb-accent);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(38, 35, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nb-mid-banner--1 { --mb-accent: #c4b5fd; }
.nb-mid-banner--2 { --mb-accent: #93c5fd; }
.nb-mid-banner--3 { --mb-accent: #f9a8c9; }
.nb-mid-banner--4 { --mb-accent: #fcd34d; }
.nb-mid-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(236, 44, 111, 0.1);
}
.nb-mid-banner__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #faf6f8;
}
.nb-mid-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nb-mid-banner__label {
  display: block;
  margin: 0;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #3a3340;
  background: var(--mb-accent);
}
@media (max-width: 900px) and (min-width: 769px) {
  .nb-mid-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .nb-mid-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  .nb-mid-banner {
    border-radius: 14px;
    border-width: 2px;
  }
  .nb-mid-banner:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(38, 35, 42, 0.05);
  }
  .nb-mid-banner__media {
    aspect-ratio: 1 / 1;
  }
  .nb-mid-banner__label {
    padding: 9px 6px;
    font-size: 12.5px;
  }
}

.nb-routine-banner {
  display: flex;
  align-items: stretch;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(38, 35, 42, 0.04);
}
.nb-routine-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-600);
  margin-bottom: 8px;
}
.nb-routine-media {
  flex: 1.05;
  min-height: 300px;
  position: relative;
  background: #f7eef2;
}
.nb-routine-media.has-image { background: transparent; }
.nb-routine-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nb-routine-media-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.55), transparent 60%);
}
.nb-routine-content {
  flex: 1.25;
  padding: 30px 36px;
}
.nb-routine-skin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.nb-routine-skin-btn {
  background: #fff;
  border-radius: 14px;
  padding: 16px 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--pink-600);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nb-routine-skin-btn:hover {
  border-color: #f5c2d1;
  box-shadow: 0 8px 18px rgba(236, 44, 111, 0.08);
  transform: translateY(-2px);
}
.nb-routine-skin-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-600);
}
.nb-routine-skin-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
}
.nb-routine-skin-btn span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .nb-app-intro {
    grid-template-columns: 1fr;
    padding: 20px 16px 18px;
    gap: 16px;
  }
  .nb-app-intro__visual {
    display: flex;
    order: -1;
  }
  .nb-app-intro__media {
    max-width: 180px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }
  .nb-app-intro:not(.has-image) .nb-app-intro__phone {
    width: 120px;
    height: 200px;
    margin: 0 auto;
  }
  .nb-routine-banner { flex-direction: column; }
  .nb-routine-media { min-height: 200px; }
  .nb-routine-skin-grid { grid-template-columns: 1fr 1fr; }
  .nb-routine-content { padding: 20px 18px; }
}

/* ===== Consultation modal ===== */
.nb-consult-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.nb-consult-modal.is-open { display: flex; }
.nb-consult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 22, .55);
  backdrop-filter: blur(4px);
}
.nb-consult-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  animation: nb-pop .28s ease;
}
@keyframes nb-pop {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.nb-consult-close {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--pink-50);
  cursor: pointer;
}
.nb-consult-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.nb-consult-subtitle {
  color: var(--text-mid);
  font-size: 13px;
  margin-bottom: 14px;
}
.nb-consult-progress {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 18px;
}
.nb-consult-progress-bar {
  display: block;
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--pink-500), #ff6d95);
  transition: width .25s ease;
}
.nb-consult-step { display: none; }
.nb-consult-step.is-active { display: block; }
.nb-consult-question {
  font-weight: 800;
  margin-bottom: 12px;
}
.nb-consult-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nb-consult-choice {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: .15s;
}
.nb-consult-choice.is-selected,
.nb-consult-choice:hover {
  border-color: var(--pink-500);
  background: var(--pink-50);
  color: var(--pink-600);
}
.nb-consult-result {
  background: linear-gradient(145deg, #fff7fb 0%, #ffffff 55%, #ffe9f2 100%);
  border: 1px solid rgba(236, 44, 111, 0.16);
  border-radius: 20px;
  padding: 28px 20px 24px;
  margin-bottom: 16px;
  text-align: center;
}
.nb-consult-result-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-600, #e0186a);
  letter-spacing: 0.02em;
}
.nb-consult-result-type {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-dark, #26232a);
}
.nb-consult-result-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-mid, #6b6470);
}
.nb-consult-result-list { display: none !important; }
.nb-consult-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

/* ===== Brands track ===== */
.nb-brands-section .sec-head {
  justify-content: center;
  flex-direction: row;
  text-align: center;
}
.nb-brands-section .sec-head h2 {
  text-align: center;
  width: 100%;
}
.nb-brands-track-wrap {
  position: relative;
  overflow: hidden;
}
.nb-brands-track-wrap::before,
.nb-brands-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.nb-brands-track-wrap::before {
  right: 0;
  background: linear-gradient(270deg, #fbf8fa, transparent);
}
.nb-brands-track-wrap::after {
  left: 0;
  background: linear-gradient(90deg, #fbf8fa, transparent);
}
.nb-brands-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 8px 18px;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}
@media (max-width: 768px) {
  .nb-brands-track {
    justify-content: flex-start;
  }
  .nb-brands-section .sec-head,
  .nb-brands-section .sec-head h2 {
    text-align: right;
    justify-content: flex-start;
  }
}
.nb-brands-track::-webkit-scrollbar { display: none; }
.nb-brands-track.is-dragging {
  cursor: grabbing;
  touch-action: none;
}
.nb-brand-item {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
}
.nb-brand-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 14px;
}

/* ===== Blog thumbs (homepage) ===== */
.nb-blog-card {
  display: block;
  background: #fff;
  position: relative;
  z-index: 1;
}
.nb-blog-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #f8e8ee, #f5f5f5);
  position: relative;
  overflow: hidden;
}
.nb-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.nb-blog-title {
  text-align: right;
  direction: rtl;
}
.nb-instagram-col .sec-head,
.nb-instagram-col .sec-head h2 {
  text-align: right;
  justify-content: flex-start;
  flex-direction: row;
  width: 100%;
}

/* Buttons never black */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--pink-500) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: 12px !important;
  border: 0 !important;
}
.woocommerce a.button:hover,
.woocommerce a.button:focus,
.woocommerce a.button:active,
.woocommerce a.button:visited,
.woocommerce button.button:hover,
.woocommerce button.button:focus,
.woocommerce button.button:active,
.woocommerce button.button:disabled,
.woocommerce input.button:hover,
.woocommerce input.button:disabled {
  background: var(--pink-600) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ===== Product lightbox ===== */
.nb-lightbox,
#nb-lightbox {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 2147483000 !important;
  display: none;
}
.nb-lightbox[hidden] { display: none !important; }
.nb-lightbox.is-open { display: block; }
.nb-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 16, .82);
}
.nb-lightbox__dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nb-lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transition: opacity .22s ease;
  will-change: opacity;
}
.nb-lightbox__img.is-fading {
  opacity: 0;
}
.nb-gallery-main-img {
  transition: opacity .15s ease, transform .15s ease;
  will-change: opacity, transform;
}
.nb-gallery-main-img.is-fading {
  opacity: 0;
}
.gallery-main {
  overflow: hidden;
}
.nb-lightbox__close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #2b2530;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.nb-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.95);
  color: #2b2530;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
.nb-lightbox__prev { right: -8px; }
.nb-lightbox__next { left: -8px; }
body.nb-lightbox-open { overflow: hidden; }
@media (max-width: 768px) {
  .nb-lightbox__prev { right: 4px; }
  .nb-lightbox__next { left: 4px; }
  .nb-lightbox__close { top: 4px; left: 4px; }
}

/* ===== Mini cart: desktop top popup / mobile left drawer ===== */
.nb-mini-cart {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482500 !important;
  pointer-events: none;
}
.nb-mini-cart[hidden] { display: none !important; }
.nb-mini-cart.is-open { pointer-events: auto; }
.nb-mini-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 16, .45);
  opacity: 0;
  transition: opacity .28s ease;
}
.nb-mini-cart.is-open .nb-mini-cart__backdrop { opacity: 1; }
.nb-mini-cart__panel {
  position: absolute;
  background: #fff;
  box-shadow: 0 18px 48px rgba(38, 35, 42, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}
.nb-mini-cart__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.nb-mini-cart__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #eee);
  flex-shrink: 0;
}
.nb-mini-cart__head strong {
  font-size: 15px;
  font-weight: 800;
}
.nb-mini-cart__count {
  margin-right: auto;
  font-size: 12px;
  color: var(--text-mid, #7a7380);
  font-weight: 600;
}
.nb-mini-cart__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--pink-50, #fdf1f6);
  color: var(--text-dark, #2b2530);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nb-mini-cart__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.nb-mini-cart__item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.nb-mini-cart__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft, #faf7f9);
  flex-shrink: 0;
  border: 1px solid var(--border, #eee);
}
.nb-mini-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nb-mini-cart__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: right;
}
.nb-mini-cart__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark, #2b2530);
  text-decoration: none;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-mini-cart__qty,
.nb-mini-cart__price {
  font-size: 12.5px;
  color: var(--text-mid, #7a7380);
}
.nb-mini-cart__price { font-weight: 800; color: var(--pink-600, #d91f5c); }
.nb-mini-cart__empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-mid, #7a7380);
}
.nb-mini-cart__shop {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--pink-500, #ec2c6f);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.nb-mini-cart__footer {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border, #eee);
  background: #fff;
  flex-shrink: 0;
}
.nb-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}
.nb-mini-cart__total strong { font-size: 16px; color: var(--pink-600, #d91f5c); }
.nb-mini-cart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nb-mini-cart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}
.nb-mini-cart__btn--ghost {
  background: var(--pink-50, #fdf1f6);
  color: var(--pink-600, #d91f5c) !important;
  border: 1px solid var(--pink-100, #f4d0de);
}
.nb-mini-cart__btn--ghost:hover,
.nb-mini-cart__btn--ghost:focus,
.nb-mini-cart__btn--ghost:active,
.nb-mini-cart__btn--ghost:visited {
  color: var(--pink-600, #d91f5c) !important;
  background: #fce7f0;
}
.nb-mini-cart__btn--primary {
  background: linear-gradient(90deg, #ec2c6f, #ff6d95);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border: 0;
}
.nb-mini-cart__btn--primary:hover,
.nb-mini-cart__btn--primary:focus,
.nb-mini-cart__btn--primary:active,
.nb-mini-cart__btn--primary:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(90deg, #d91f5e, #ec2c6f);
}
.btn-add-cart.is-added { background: #2fb35c !important; }
body.nb-mini-cart-open { overflow: hidden; }

/* Desktop: drop-down panel from top */
@media (min-width: 769px) {
  .nb-mini-cart__panel {
    top: 0;
    left: 50%;
    width: min(440px, 92vw);
    max-height: min(78vh, 640px);
    border-radius: 0 0 20px 20px;
    transform: translate(-50%, -110%);
    opacity: 0;
  }
  .nb-mini-cart.is-open .nb-mini-cart__panel {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Mobile: left-side cart strip */
@media (max-width: 768px) {
  .nb-mini-cart__panel {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(88vw, 360px);
    max-height: 100vh;
    border-radius: 0 18px 18px 0;
    transform: translateX(-105%);
  }
  .nb-mini-cart.is-open .nb-mini-cart__panel {
    transform: translateX(0);
  }
}

/* ===== Reels (homepage + viewer) ===== */
.sec-head--reels,
.sec-head--reels h2 {
  text-align: right;
  width: 100%;
}
.nb-reels-section {
  margin-bottom: 28px;
}
.nb-reels-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.nb-reels-rail::-webkit-scrollbar { display: none; }
.nb-reels-rail__item {
  flex: 0 0 auto;
  width: 108px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nb-reels-rail__frame {
  position: relative;
  display: block;
  width: 108px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--pink-400);
  box-shadow: 0 8px 24px rgba(236, 44, 111, 0.15);
  flex-shrink: 0;
}
.nb-reels-rail__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-reels-rail__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #f8d4e4, #efe8ec);
}
.nb-reels-rail__play::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.nb-reels-rail__play::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--pink-600);
  z-index: 1;
}
.nb-reels-rail__label {
  display: block !important;
  position: static !important;
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 108px;
}

.nb-reels-viewer {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000 !important;
  background: #000;
  isolation: isolate;
}
.nb-reels-viewer[hidden] { display: none !important; }
.nb-reels-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.nb-reels-viewer__shell {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.nb-reels-viewer__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.nb-reels-viewer__track {
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.nb-reels-viewer__slide {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.nb-reels-viewer__slide video {
  width: auto;
  height: min(100vh, 100%);
  max-width: 100%;
  max-height: 100vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center center;
  background: #000;
  display: block;
}
.nb-reels-viewer__ui {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff;
  text-align: right;
  direction: rtl;
}
@media (max-width: 768px) {
  .nb-reels-viewer__ui {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .nb-reels-viewer__product {
    flex-wrap: wrap;
  }
  .nb-reels-viewer__product-cta {
    margin: 8px 0 0;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    padding: 12px 14px;
  }
}
.nb-reels-viewer__caption {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
}
.nb-reels-viewer__product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
}
.nb-reels-viewer__product[hidden] { display: none !important; }
.nb-reels-viewer__product img {
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.nb-reels-viewer__product-cta {
  margin-right: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pink-500);
  font-size: 12px;
  font-weight: 800;
}
.nb-reels-viewer__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.35);
  font-size: 11px;
  pointer-events: none;
  text-align: center;
  max-width: 80%;
}
body.nb-reels-open {
  overflow: hidden;
}

.nb-product-reel-compact {
  width: min(220px, 100%);
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  aspect-ratio: 9 / 16;
  position: relative;
}
.nb-product-reel-compact video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000;
}
.nb-product-reel-compact__trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
.nb-product-reel-compact__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #111;
}
.nb-product-reel-compact__poster--empty {
  background: linear-gradient(160deg, #1a1a1a, #0c0c0c);
}
.nb-product-reel-compact__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.nb-product-reel-compact__play::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.nb-product-reel-compact__play::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--pink-600, #ec2c6f);
  z-index: 2;
}
.nb-product-reel-compact.is-playing .nb-product-reel-compact__trigger {
  display: none;
}
.nb-product-reel-compact__caption {
  display: none !important;
}
@media (max-width: 768px) {
  .nb-product-details-aside {
    width: 100%;
    align-items: stretch;
  }
  .nb-product-reel-compact {
    width: min(260px, 72vw);
    margin: 0 auto;
  }
}

/* ===== Shop price filter widget ===== */
.filter-card-body .widget-title,
.filter-card-body .widget_price_filter > .widget-title {
  display: none !important;
}
.filter-card-body .widget_price_filter {
  margin: 0;
  padding: 0;
}
.filter-card-body .price_slider_wrapper {
  padding: 8px 4px 0;
}
.woocommerce .filter-card-body .widget_price_filter .ui-slider-horizontal,
.filter-card-body .widget_price_filter .ui-slider-horizontal,
.filter-card-body .price_slider.ui-slider-horizontal {
  height: 8px !important;
  border: 0 !important;
  background: #efe4ea !important;
  border-radius: 999px !important;
  margin: 28px 12px 26px !important;
  position: relative !important;
}
.woocommerce .filter-card-body .widget_price_filter .ui-slider-range,
.filter-card-body .widget_price_filter .ui-slider-range,
.filter-card-body .price_slider .ui-slider-range {
  background: var(--pink-500, #ec2c6f) !important;
  border-radius: 999px !important;
  height: 100% !important;
  top: 0 !important;
}
.woocommerce .filter-card-body .widget_price_filter .ui-slider .ui-slider-handle,
.filter-card-body .widget_price_filter .ui-slider .ui-slider-handle,
.filter-card-body .price_slider .ui-slider-handle {
  width: 22px !important;
  height: 22px !important;
  top: 50% !important;
  margin-top: -11px !important;
  margin-left: -11px !important;
  border: 3px solid #fff !important;
  background: var(--pink-500, #ec2c6f) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(236, 44, 111, 0.45) !important;
  cursor: grab !important;
  outline: none !important;
  z-index: 3 !important;
  position: absolute !important;
}
.woocommerce .filter-card-body .widget_price_filter .ui-slider .ui-slider-handle:active,
.filter-card-body .price_slider .ui-slider-handle:active {
  cursor: grabbing !important;
  transform: scale(1.06);
}
.filter-card-body .price_slider_amount {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
  align-items: stretch;
  clear: both;
}
.filter-card-body .price_slider_amount .price_label {
  order: 1;
  display: block !important;
  float: none !important;
  width: 100% !important;
  font-size: 13px;
  color: var(--text-mid, #6b6470);
  text-align: center;
  line-height: 1.6;
}
.filter-card-body .price_slider_amount .button {
  order: 2;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--pink-500, #ec2c6f) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 16px !important;
  cursor: pointer;
  text-align: center;
}
.filter-card-body .price_slider_amount input[type="text"],
.filter-card-body .price_slider_amount input.min_price,
.filter-card-body .price_slider_amount input.max_price {
  display: none !important;
}
