/* ==========================================================================
   Nexozs storefront — premium layer (step 1)                     2026-11-29

   Calmer, more premium look: neutral canvas, the brand colour kept for the
   one main action, simpler product cards, fewer floating buttons and one
   heading style. Only visual rules: remove the <link> to nx-premium.css in
   partials/nexozs-favicon.blade.php to go back.

   Selectors start with `html body:not(#nx-p1):not(#nx-p2)` so they outrank the
   older page styles (many use IDs and !important).
   ========================================================================== */

:root {
  --nxp-ink: #111114;
  --nxp-ink-2: #4b4b55;
  --nxp-ink-3: #8a8a94;
  --nxp-line: rgba(17, 17, 20, 0.08);
  --nxp-fill: #f3f3f5;
  --nxp-canvas: #f6f6f7;
  --nxp-card: #ffffff;
  --nxp-radius: 16px;
}

/* ---------- 1. Card ------------------------------------------------------ */

html body:not(#nx-p1):not(#nx-p2) .product-card {
  background: var(--nxp-card) !important;
  border: 1px solid var(--nxp-line) !important;
  border-radius: var(--nxp-radius) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}
@media (hover: hover) {
  html body:not(#nx-p1):not(#nx-p2) .product-card:hover {
    box-shadow: 0 14px 34px rgba(17, 17, 20, 0.08) !important;
    transform: translateY(-3px) !important;
  }
}

html body:not(#nx-p1):not(#nx-p2) .product-card .product-thumb {
  background: var(--nxp-fill) !important;
  border-radius: 0 !important;
}

/* "In Stock" on every card is noise; only unusual stock states stay visible. */
html body:not(#nx-p1):not(#nx-p2) .badge-instock { display: none !important; }

/* Flash badge: small and quiet. */
html body:not(#nx-p1):not(#nx-p2) .product-card .flash-badge-custom {
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  background: var(--nxp-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html body:not(#nx-p1):not(#nx-p2) .product-card .flash-badge-custom i { color: #ffcc00 !important; }

html body:not(#nx-p1):not(#nx-p2) .product-card .product-title {
  color: var(--nxp-ink) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* Price: dark and confident; the old price quiet grey. */
html body:not(#nx-p1):not(#nx-p2) .product-card .current-price {
  color: var(--nxp-ink) !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
}
html body:not(#nx-p1):not(#nx-p2) .product-card .old-price {
  color: var(--nxp-ink-3) !important;
  font-weight: 500 !important;
}

html body:not(#nx-p1):not(#nx-p2) .product-card .product-price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
}
html body:not(#nx-p1):not(#nx-p2) .product-card .product-price > span { white-space: nowrap !important; display: inline-block !important; }

/* One clear action: "Buy Now" keeps the brand colour, "Add" becomes a quiet cart icon. */
html body:not(#nx-p1):not(#nx-p2) .product-card .product-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: stretch !important;
}
html body:not(#nx-p1):not(#nx-p2) .product-card .btn-add-cart {
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 40px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--nxp-fill) !important;
  color: var(--nxp-ink) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
html body:not(#nx-p1):not(#nx-p2) .product-card .btn-add-cart span { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) .product-card .btn-add-cart i { color: var(--nxp-ink) !important; font-size: 15px !important; margin: 0 !important; }
html body:not(#nx-p1):not(#nx-p2) .product-card .btn-add-cart:hover { background: #e9e9ec !important; }

html body:not(#nx-p1):not(#nx-p2) .product-card .btn-buy-now {
  flex: 1 1 auto !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--theme-primary, #ef4444) !important;
  background-image: none !important;
  color: #fff !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

/* ---------- 2. Section headings ----------------------------------------- */

html body:not(#nx-p1):not(#nx-p2) .nx-hs-icon-v20 { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) .home-product-section-head .nx-hs-title-row-v20 strong,
html body:not(#nx-p1):not(#nx-p2) .container > div[style*="space-between"] > h2 {
  font-size: clamp(20px, 2.1vw, 26px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
  color: var(--nxp-ink) !important;
}
html body:not(#nx-p1):not(#nx-p2) .container > div[style*="space-between"] > h2 > i:first-child { display: none !important; }

html body:not(#nx-p1):not(#nx-p2) .v64-view-all-btn,
html body:not(#nx-p1):not(#nx-p2) .container > div[style*="space-between"] > a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 6px 0 !important;
  color: var(--nxp-ink-2) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
html body:not(#nx-p1):not(#nx-p2) .v64-view-all-btn:hover,
html body:not(#nx-p1):not(#nx-p2) .container > div[style*="space-between"] > a:hover { color: var(--nxp-ink) !important; }

/* ---------- 3. Flash sale: white card, dark timer, brand only on the bolt -- */

html body:not(#nx-p1):not(#nx-p2) .flash-sale-box {
  background: var(--nxp-card) !important;
  background-image: none !important;
  border: 1px solid var(--nxp-line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}
html body:not(#nx-p1):not(#nx-p2) .flash-sale-box::before,
html body:not(#nx-p1):not(#nx-p2) .flash-sale-box::after { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) .flash-main-title {
  color: var(--nxp-ink) !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html body:not(#nx-p1):not(#nx-p2) .flash-main-title i { color: var(--theme-primary, #ef4444) !important; }
html body:not(#nx-p1):not(#nx-p2) .flash-subtitle { color: var(--nxp-ink-3) !important; }
html body:not(#nx-p1):not(#nx-p2) .flash-timer-lbl { color: var(--nxp-ink-2) !important; }
html body:not(#nx-p1):not(#nx-p2) .time-box-item {
  background: var(--nxp-ink) !important;
  background-image: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-variant-numeric: tabular-nums !important;
}
html body:not(#nx-p1):not(#nx-p2) .timer-digits-box span[style*="uppercase"] {
  text-transform: none !important;
  font-weight: 500 !important;
  color: var(--nxp-ink-3) !important;
}
html body:not(#nx-p1):not(#nx-p2) .flash-header-flex a,
html body:not(#nx-p1):not(#nx-p2) .flash-header-flex button,
html body:not(#nx-p1):not(#nx-p2) .flash-sale-box .view-deals-btn,
html body:not(#nx-p1):not(#nx-p2) a.view-deals-btn {
  background: var(--nxp-fill) !important;
  background-image: none !important;
  color: var(--nxp-ink) !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ---------- 4. Category tiles ------------------------------------------- */

html body:not(#nx-p1):not(#nx-p2) .cat-card-box {
  background: var(--nxp-card) !important;
  background-image: none !important;
  border: 1px solid var(--nxp-line) !important;
  border-radius: var(--nxp-radius) !important;
  box-shadow: none !important;
}
html body:not(#nx-p1):not(#nx-p2) .cat-card-box .cat-icon-circle {
  background: var(--nxp-fill) !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html body:not(#nx-p1):not(#nx-p2) .cat-card-box .cat-icon-circle::before,
html body:not(#nx-p1):not(#nx-p2) .cat-card-box .cat-icon-circle::after { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) .cat-card-box > span:not(.cat-explore-link) { color: var(--nxp-ink) !important; font-weight: 600 !important; }
html body:not(#nx-p1):not(#nx-p2) .cat-card-box .cat-explore-link { display: none !important; }

/* ---------- 5. Floating buttons: one, smaller ---------------------------- */

/* The cart already lives in the header and the bottom bar; back-to-top is extra noise. */
html body:not(#nx-p1):not(#nx-p2) #nexozsBackTop,
html body:not(#nx-p1):not(#nx-p2) #nexozsFloatingCart { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nexozsSupportBtn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  background: var(--nxp-ink) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(17, 17, 20, 0.22) !important;
  animation: none !important;
}
html body:not(#nx-p1):not(#nx-p2) #nexozsSupportBtn::before,
html body:not(#nx-p1):not(#nx-p2) #nexozsSupportBtn::after { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nexozsSupportBtn i { color: #fff !important; font-size: 18px !important; }

/* ---------- 6. Small screens ------------------------------------------- */

@media (max-width: 767px) {
  html body:not(#nx-p1):not(#nx-p2) .product-card { border-radius: 14px !important; }
  html body:not(#nx-p1):not(#nx-p2) .product-card .btn-add-cart { flex-basis: 38px !important; width: 38px !important; min-width: 38px !important; height: 38px !important; border-radius: 11px !important; }
  html body:not(#nx-p1):not(#nx-p2) .product-card .btn-buy-now { height: 38px !important; border-radius: 11px !important; font-size: 13px !important; }
  html body:not(#nx-p1):not(#nx-p2) .flash-sale-box { border-radius: 18px !important; }
  /* Sit above the bottom navigation bar instead of over the content edge. */
  html body:not(#nx-p1):not(#nx-p2) #nexozsSupportBtn { width: 44px !important; height: 44px !important; min-width: 44px !important; }
}

/* ---------- 7. Hero typography (admin: Banners → Hero → Typography) ------ */

html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 {
  --nxh-ink: #111114;
  --nxh-ink-2: #4b4b55;
  --nxh-font: var(--nx-hero-font, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hind Siliguri', sans-serif);
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-text="light"] { --nxh-ink: #ffffff; --nxh-ink-2: rgba(255, 255, 255, 0.78); }

html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 :is(.nx37-heading, .nx37-eyebrow, .nx37-description, .nx37-btn, .nx37-perks, .nx37-chip) {
  font-family: var(--nxh-font) !important;
}

/* Let the hero grow with its text instead of clipping it (it was a fixed height). */
@media (min-width: 651px) {
  html body:not(#nx-p1):not(#nx-p2) #heroDualGrid #nxPremiumHeroV37.nx-premium-hero37 {
    height: auto !important;
    min-height: clamp(345px, 27vw, 405px) !important;
  }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-copy { padding-top: clamp(10px, 1.2vw, 18px) !important; padding-bottom: clamp(10px, 1.2vw, 18px) !important; align-self: center !important; }
}

/* Heading: confident but not shouting. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-heading {
  font-size: clamp(26px, 2.55vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
  color: var(--nxh-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  margin: 0 0 14px !important;
  text-wrap: balance;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-heading .nx2-heading-line { font-size: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; font-weight: inherit !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-size="s"] .nx37-heading { font-size: clamp(22px, 2.1vw, 32px) !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-size="l"] .nx37-heading { font-size: clamp(30px, 3.1vw, 48px) !important; line-height: 1.05 !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-weight="600"] .nx37-heading { font-weight: 600 !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-weight="800"] .nx37-heading { font-weight: 800 !important; letter-spacing: -0.035em !important; }

/* Highlight line: brand colour (default), soft gradient, or same as the heading. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx2-highlight {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--theme-primary, #ef4444) !important;
  -webkit-text-fill-color: currentColor !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-highlight="gradient"] .nx2-highlight {
  background: linear-gradient(90deg, var(--theme-primary, #ef4444), #ff8a3d) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-highlight="plain"] .nx2-highlight { color: var(--nxh-ink) !important; }

/* Small top label. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  margin: 0 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(17, 17, 20, 0.06) !important;
  box-shadow: none !important;
  color: var(--nxh-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-eyebrow i {
  width: 6px !important; height: 6px !important; font-size: 0 !important;
  border-radius: 50% !important; background: var(--theme-primary, #ef4444) !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-eyebrow="text"] .nx37-eyebrow {
  padding: 0 !important; background: none !important; border: 0 !important;
  color: var(--theme-primary, #ef4444) !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-eyebrow="text"] .nx37-eyebrow i { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-text="light"] .nx37-eyebrow { background: rgba(255, 255, 255, 0.14) !important; border-color: rgba(255, 255, 255, 0.2) !important; }

/* Description: readable size and line length. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-description {
  font-size: clamp(13.5px, 1.02vw, 15.5px) !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: var(--nxh-ink-2) !important;
  -webkit-text-fill-color: currentColor !important;
  max-width: 54ch !important;
  margin: 0 0 18px !important;
}

/* Buttons: one solid, one quiet. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-actions { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; margin-bottom: 16px !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-btn {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  min-height: 44px !important; padding: 0 20px !important;
  border-radius: 14px !important;
  font-size: 15px !important; font-weight: 600 !important; letter-spacing: -0.01em !important;
  box-shadow: none !important; transform: none !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-btn-primary {
  background: var(--theme-primary, #ef4444) !important; background-image: none !important;
  color: #fff !important; border: 0 !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-btn-primary > i:first-child { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-btn-secondary {
  background: rgba(255, 255, 255, 0.85) !important; background-image: none !important;
  color: var(--nxh-ink) !important; border: 1px solid rgba(17, 17, 20, 0.08) !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-btn-secondary > i { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-text="light"] .nx37-btn-secondary { background: rgba(255, 255, 255, 0.12) !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.25) !important; }

/* Perks: quiet line of facts. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-perks li {
  font-size: 13px !important; font-weight: 500 !important; color: var(--nxh-ink-2) !important;
  -webkit-text-fill-color: currentColor !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-perks li span {
  background: transparent !important; box-shadow: none !important; border: 0 !important;
  color: var(--nxh-ink) !important; width: auto !important; height: auto !important; min-width: 0 !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-perks li span i { color: var(--nxh-ink) !important; font-size: 13px !important; }

html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-perks { display: flex !important; flex-wrap: wrap !important; gap: 6px 18px !important; grid-template-columns: none !important; margin: 0 !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-perks li { margin: 0 !important; gap: 6px !important; }

/* Floating chips on the picture: calmer. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip {
  font-size: 12px !important; font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.9) !important; color: var(--nxh-ink) !important;
  border: 1px solid rgba(17, 17, 20, 0.06) !important;
  box-shadow: 0 8px 24px rgba(17, 17, 20, 0.08) !important;
}

@media (max-width: 767px) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-heading { font-size: clamp(22px, 6.4vw, 30px) !important; margin-bottom: 8px !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-size="s"] .nx37-heading { font-size: clamp(20px, 5.6vw, 26px) !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-hero-size="l"] .nx37-heading { font-size: clamp(24px, 7.2vw, 34px) !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-eyebrow { font-size: 11px !important; padding: 4px 9px !important; margin-bottom: 10px !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-description { font-size: 13px !important; margin-bottom: 14px !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-btn { min-height: 40px !important; padding: 0 16px !important; font-size: 14px !important; border-radius: 12px !important; }
}
/* Phones: the hero is a compact banner, so keep only label, heading and one button. */
@media (max-width: 650px) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 :is(.nx37-description, .nx37-perks, .nx37-btn-secondary) { display: none !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-heading { line-height: 1.12 !important; letter-spacing: -0.02em !important; margin-bottom: 12px !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-actions { margin-bottom: 0 !important; }
}

/* ---------- 8. Theme colour everywhere (admin: Site Settings → Primary Theme Color) -
   These spots had their own fixed reds, so changing the theme colour missed them. */

html body:not(#nx-p1):not(#nx-p2) .nexozs-universal-search > button {
  background: var(--theme-primary, #ef4444) !important;
  background-image: none !important;
  border-color: var(--theme-primary, #ef4444) !important;
}
html body:not(#nx-p1):not(#nx-p2) .nexozs-universal-cart-badge {
  background: var(--theme-primary, #ef4444) !important;
  background-image: none !important;
}
/* Product page */
html body:not(#nx-p1):not(#nx-p2) .current-big-price { color: var(--theme-primary, #ef4444) !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#nx-p1):not(#nx-p2) .discount-chip {
  color: var(--theme-primary, #ef4444) !important;
  background: rgba(var(--theme-primary-rgb, 239, 68, 68), 0.1) !important;
  border-color: rgba(var(--theme-primary-rgb, 239, 68, 68), 0.25) !important;
}
html body:not(#nx-p1):not(#nx-p2) .btn-buynow-main {
  background: var(--theme-primary, #ef4444) !important;
  background-image: none !important;
  border-color: var(--theme-primary, #ef4444) !important;
}
/* Cart / checkout */
html body:not(#nx-p1):not(#nx-p2) .cart-page .fa-location-dot,
html body:not(#nx-p1):not(#nx-p2) .cart-page .fa-box-open,
html body:not(#nx-p1):not(#nx-p2) .cart-page .fa-credit-card,
html body:not(#nx-p1):not(#nx-p2) .cart-page .fa-cart-shopping { color: var(--theme-primary, #ef4444) !important; }
html body:not(#nx-p1):not(#nx-p2) .pay-card.active,
html body:not(#nx-p1):not(#nx-p2) .pay-card.active .pay-radio { border-color: var(--theme-primary, #ef4444) !important; }
html body:not(#nx-p1):not(#nx-p2) .pay-card.active {
  background-image: linear-gradient(145deg, #ffffff, rgba(var(--theme-primary-rgb, 239, 68, 68), 0.07)) !important;
}

/* ---------- 9. Banner Studio: text block position (admin drag) ----------- */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-copy {
  translate: var(--nx-text-x, 0%) var(--nx-text-y, 0%);
  position: relative;
  z-index: 2;
}
@media (max-width: 650px) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-copy { translate: var(--nx-text-mx, 0%) var(--nx-text-my, 0%); }
}

/* ---------- 10. Banner Studio v2: background, chips, layers, motion -------- */

/* Background glows follow the admin colours (Left/Right Gradient by default,
   or custom colours), or are switched off. The ring can be switched off too. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-glow-left { background: radial-gradient(circle, var(--nx-glow-l, transparent) 0%, transparent 70%) !important; opacity: 0.7; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-glow-right { background: radial-gradient(circle, var(--nx-glow-r, transparent) 0%, transparent 67%) !important; opacity: 0.7; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-glow="off"] .nx37-glow { display: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-ring="off"] .nx37-art-ring { display: none !important; }

/* Floating chips: move, resize, float or stay still. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip {
  translate: var(--nx-chip-x, 0%) var(--nx-chip-y, 0%);
  scale: var(--nx-chip-s, 1);
  z-index: 5;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip[data-motion="still"] { animation: none !important; }

/* Text block size. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-copy { scale: var(--nx-text-s, 1); transform-origin: left center; }

/* Main picture: float or still. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-art-motion="still"] .nx37-art { animation: none !important; }

/* Extra layers (images and text) placed in % of the banner. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 { position: relative; container-type: inline-size; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layers { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer {
  position: absolute; left: var(--l-x, 50%); top: var(--l-y, 50%);
  translate: -50% -50%;
  max-width: none; margin: 0;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer.is-image { width: var(--l-w, 18%); height: auto; display: block; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer.is-text {
  font-family: var(--nxh-font) !important;
  font-size: calc(var(--l-fs, 22) * 1px);
  font-size: calc(var(--l-fs, 22) * 100cqw / 1240);
  line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer.is-pill {
  padding: 0.35em 0.8em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(17, 17, 20, 0.06);
  box-shadow: 0 8px 24px rgba(17, 17, 20, 0.08);
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-animation="on"] .nx-hero-layer[data-motion="float"] { animation: nxLayerFloat 5.5s ease-in-out infinite; }
@keyframes nxLayerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer { animation: none !important; }
}

@media (max-width: 650px) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip { translate: var(--nx-chip-mx, 0%) var(--nx-chip-my, 0%); scale: var(--nx-chip-ms, 1); }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-copy { scale: var(--nx-text-ms, 1); }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer { left: var(--l-mx, 50%); top: var(--l-my, 50%); }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer.is-image { width: var(--l-mw, 24%); }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer.is-text { font-size: calc(var(--l-mfs, 13) * 1px); font-size: calc(var(--l-mfs, 13) * 100cqw / 358); }
}

/* ---------- 11. Float motion that works on every screen ---------------------
   Older phone rules pin the chips with `transform: … !important`, which stops
   any transform animation. This float moves a separate offset (--nx-bob) that
   is added to the element's own position, so it works on phones and desktop,
   and picture/chip positions set in Banner Studio stay where they were put. */
@property --nx-bob { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes nxBob { 0%, 100% { --nx-bob: 0px; } 50% { --nx-bob: -9px; } }

html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip {
  translate: var(--nx-chip-x, 0%) calc(var(--nx-chip-y, 0%) + var(--nx-bob, 0px));
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-wrap > img.nx37-art:not(.nx5-art-overlay) {
  translate: var(--nxv-art-x, 0%) calc(var(--nxv-art-y, 0%) + var(--nx-bob, 0px));
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-animation="on"]:not([data-art-motion="still"]) .nx37-art-wrap > img.nx37-art:not(.nx5-art-overlay) {
  animation: nxBob 6s ease-in-out infinite !important;
}
@media (max-width: 767px) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-animation="on"] .nx37-chip-promo:not([data-motion="still"]) { animation: nxBob 6.5s ease-in-out -1.5s infinite !important; }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37[data-animation="on"] .nx37-chip-trust:not([data-motion="still"]) { animation: nxBob 5.3s ease-in-out -3.1s infinite !important; }
}
@media (max-width: 650px) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip {
    translate: var(--nx-chip-mx, 0%) calc(var(--nx-chip-my, 0%) + var(--nx-bob, 0px));
  }
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-wrap > img.nx37-art:not(.nx5-art-overlay) {
    translate: var(--nxv-mobile-x, 0%) calc(var(--nxv-mobile-y, 0%) + var(--nx-bob, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip,
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art { animation: none !important; }
}

/* ---------- 12. Banner Studio v3: rotation and front/back order -------------
   Every piece can be turned (rotate) and put in front of or behind the
   others. Text, the main picture (with its two chips) and each extra layer
   share one stacking level, so a bigger number always means "more in front". */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-copy { rotate: var(--nx-text-r, 0deg); z-index: var(--nx-text-z, 3) !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-wrap { z-index: var(--nx-art-z, 1) !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-wrap > img.nx37-art:not(.nx5-art-overlay) { rotate: var(--nxv-art-rot, 0deg); }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip { rotate: var(--nx-chip-r, 0deg); }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layers { z-index: auto !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer { rotate: var(--l-r, 0deg); }

/* ---------- 13. Slide change: short, light and in step with the picture -----
   Old text leaves in 0.18 s, new text rises in 0.42 s with a 40 ms step per
   line. No blur (blur is slow on low-cost phones) and no long gaps where the
   banner looks empty. */
@keyframes nxTextOut { to { opacity: 0; transform: translate3d(0, -6px, 0); } }
@keyframes nxTextIn {
  from { opacity: 0; transform: translate3d(calc(var(--nx2-motion-x, 0px) * .6), calc(var(--nx2-motion-y, 20px) * .6), 0); }
  to { opacity: 1; transform: none; }
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx2-leaving .nx2-copy > * {
  animation: nxTextOut .18s ease-in both !important; filter: none !important; transition: none !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx7-text-hold .nx2-copy > * { opacity: 0 !important; filter: none !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx2-arriving .nx2-copy > * {
  animation: nxTextIn .42s cubic-bezier(.2, .8, .2, 1) both !important; filter: none !important; transition: none !important;
}
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx2-arriving .nx2-copy > :nth-child(2) { animation-delay: .04s !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx2-arriving .nx2-copy > :nth-child(3) { animation-delay: .08s !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx2-arriving .nx2-copy > :nth-child(4) { animation-delay: .12s !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx2-arriving .nx2-copy > :nth-child(n+5) { animation-delay: .16s !important; }
@media (prefers-reduced-motion: reduce) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx2-copy > * { animation: none !important; }
}

/* ---------- 14. Every piece has its own front/back order --------------------
   The picture box no longer groups the picture and its two chips into one
   layer, so the picture, each chip, the text and every extra layer can each
   be put in front of or behind the others. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-wrap { z-index: auto !important; isolation: auto !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-ring { z-index: 0 !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-art-wrap > img.nx37-art:not(.nx5-art-overlay) { position: relative; z-index: var(--nx-art-z, 1) !important; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip { z-index: var(--nx-chip-z, 2) !important; }

/* ---------- 15. Picture, chips and layers change together -------------------
   At a slide change the chips and extra layers fade out with the picture,
   the next slide's positions are set while they are hidden, and everything
   fades back in together. Nothing jumps to a new place over the old picture. */
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip,
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer { transition: opacity .3s ease-out .12s; }
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx-vis-out:not(.nx-text-locked):not(.nx-promo-locked) .nx37-chip-promo,
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx-vis-out:not(.nx-text-locked):not(.nx-trust-locked) .nx37-chip-trust,
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx-vis-out .nx-hero-layer:not([data-gid]),
html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37.nx-art-out .nx37-art-wrap > img.nx37-art:not(.nx5-art-overlay) {
  opacity: 0 !important; transition: opacity .16s ease-in !important;
}
@media (prefers-reduced-motion: reduce) {
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx37-chip,
  html body:not(#nx-p1):not(#nx-p2) #nxPremiumHeroV37 .nx-hero-layer { transition: none !important; }
}

/* ---------- 16. Page load: the first screen arrives together --------------
   While the banner pictures load (nx-boot, at most ~1.2 s, never over 3 s) the
   whole header (logo included), the banner and the flash sale wait unseen;
   then the header slides down and the rest rises in, together, on phones and
   desktop. filter + translate are used because some older rules pin
   opacity/visibility/animation with !important (the logo has inline
   visibility:visible!important, which a parent filter still hides). */
@keyframes nxRevealUp {
  from { filter: opacity(0); translate: 0 16px; }
  to { filter: opacity(1); translate: 0 0; }
}
@keyframes nxRevealDown {
  from { filter: opacity(0); translate: 0 -14px; }
  to { filter: opacity(1); translate: 0 0; }
}
html.nx-boot body:not(#nx-p1):not(#nx-p2) .nexozs-universal-header-wrap,
html.nx-boot body:not(#nx-p1):not(#nx-p2) #heroDualGrid,
html.nx-boot body:not(#nx-p1):not(#nx-p2) #flashSaleMainWrapper {
  filter: opacity(0) !important; pointer-events: none !important;
}
html.nx-in body:not(#nx-p1):not(#nx-p2) .nexozs-universal-header-wrap { animation: nxRevealDown .5s cubic-bezier(.2, .8, .2, 1) backwards !important; }
html.nx-in body:not(#nx-p1):not(#nx-p2) #heroDualGrid { animation: nxRevealUp .55s cubic-bezier(.2, .8, .2, 1) .08s backwards !important; }
html.nx-in body:not(#nx-p1):not(#nx-p2) #flashSaleMainWrapper { animation: nxRevealUp .55s cubic-bezier(.2, .8, .2, 1) .16s backwards !important; }
