/* ==========================================================================
   Nexora storefront design system  (customer-facing pages only)
   Loaded AFTER tailwind-store.min.css. Never loaded by /admin/.
   Palette: near-black + white + soft gray. The admin "theme colour" setting is
   exposed as --nx-accent and is used sparingly (badges, cart count, focus ring).
   ========================================================================== */
:root {
  --nx-ink: #111111;
  --nx-bg: #ffffff;
  --nx-soft: #f7f7f7;
  --nx-text: #171717;
  --nx-muted: #6b7280;
  --nx-line: #e5e7eb;
  --nx-success: #16a34a;
  --nx-danger: #dc2626;
  --nx-accent: var(--theme-hex, #dc2626);
  --nx-r-sm: 6px;
  --nx-r-md: 10px;
  --nx-r-lg: 16px;
  --nx-header-h: 56px;
  --nx-bnav-h: 58px;
  --nx-font: 'Plus Jakarta Sans', 'Hind Siliguri', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nx-max: 1280px;
}
@media (min-width: 1024px) { :root { --nx-header-h: 68px; } }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nx-header-h) + 12px); }
body.nx-body {
  margin: 0; background: var(--nx-bg); color: var(--nx-text);
  font-family: var(--nx-font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-top: var(--nx-header-h);
}
.nx-body *, .nx-body *::before, .nx-body *::after { -webkit-tap-highlight-color: transparent; }
.nx-body h1, .nx-body h2, .nx-body h3, .nx-body h4 { color: var(--nx-ink); letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.nx-body h1 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); font-weight: 700; }
.nx-body h2 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700; }
.nx-body h3 { font-size: 1rem; font-weight: 600; }
.nx-body p { margin: 0; }
.nx-body a { color: inherit; text-decoration: none; }
.nx-body img { max-width: 100%; }
.nx-body :focus-visible { outline: 2px solid var(--nx-ink); outline-offset: 2px; border-radius: 4px; }
.nx-small { font-size: .8125rem; color: var(--nx-muted); }
.nx-muted { color: var(--nx-muted); }
.nx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--nx-ink); color: #fff; padding: 10px 14px; border-radius: var(--nx-r-sm); }
.nx-skip:focus { top: 8px; }

.nx-container { width: 100%; max-width: var(--nx-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .nx-container { padding: 0 32px; } }
.nx-main { min-height: 60vh; padding-bottom: 40px; }
.nx-section { margin-top: 40px; }
@media (min-width: 1024px) { .nx-section { margin-top: 64px; } }
.nx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nx-link { font-size: .875rem; font-weight: 600; color: var(--nx-ink); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.nx-link:hover { opacity: .65; }
.nx-page-title { margin: 20px 0 4px; }
.nx-page-sub { color: var(--nx-muted); font-size: .9375rem; }

/* ---------- Buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--nx-r-md);
  font: 600 .9375rem/1 var(--nx-font); cursor: pointer; border: 1px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s, opacity .18s;
  text-align: center; white-space: nowrap; user-select: none;
}
.nx-btn-primary { background: var(--nx-ink); color: #fff !important; }
.nx-btn-primary:hover { background: #2b2b2b; }
.nx-btn-outline { background: #fff; color: var(--nx-ink) !important; border-color: var(--nx-ink); }
.nx-btn-outline:hover { background: var(--nx-ink); color: #fff !important; }
.nx-btn-ghost { background: var(--nx-soft); color: var(--nx-ink) !important; }
.nx-btn-ghost:hover { background: #ececec; }
.nx-btn-danger { background: #fff; color: var(--nx-danger) !important; border-color: #fecaca; }
.nx-btn-danger:hover { background: #fef2f2; }
.nx-btn-block { width: 100%; }
.nx-btn-sm { min-height: 38px; padding: 0 14px; font-size: .8125rem; border-radius: var(--nx-r-sm); }
.nx-btn-lg { min-height: 52px; font-size: 1rem; }
.nx-btn:disabled, .nx-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.nx-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.nx-btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: nx-spin .7s linear infinite;
}
.nx-btn-outline.is-loading::after, .nx-btn-ghost.is-loading::after { border-color: rgba(0,0,0,.2); border-top-color: var(--nx-ink); }
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.nx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nx-header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--nx-line); transition: box-shadow .2s;
  padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box;
}
.nx-header.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.nx-header-inner { height: var(--nx-header-h); display: flex; align-items: center; gap: 8px; max-width: var(--nx-max); margin: 0 auto; padding: 0 8px; }
@media (min-width: 1024px) { .nx-header-inner { padding: 0 32px; gap: 32px; } }
.nx-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  color: var(--nx-ink); font-size: 1.05rem; cursor: pointer; flex-shrink: 0;
}
.nx-iconbtn:hover { background: var(--nx-soft); }
.nx-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--nx-accent); color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.nx-count.hidden, .nx-count[hidden] { display: none; }
.nx-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; color: var(--nx-ink); }
.nx-brand img { height: 30px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.nx-brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--nx-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.nx-brand-name { font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-header-mobile-title { flex: 1; min-width: 0; display: flex; justify-content: center; }
.nx-nav { display: none; }
.nx-header-actions { display: flex; align-items: center; margin-left: auto; }
.nx-menu-btn { display: inline-flex; }
@media (min-width: 1024px) {
  .nx-menu-btn { display: none; }
  .nx-header-mobile-title { flex: 0 0 auto; justify-content: flex-start; }
  .nx-nav { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
  .nx-nav a { font-size: .9rem; font-weight: 500; color: var(--nx-text); padding: 6px 0; border-bottom: 2px solid transparent; }
  .nx-nav a:hover, .nx-nav a[aria-current="page"] { border-bottom-color: var(--nx-ink); }
}
.nx-nav-wrap { position: relative; }
.nx-nav-drop { position: relative; }
.nx-nav-drop > button { font: 500 .9rem var(--nx-font); background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--nx-text); display: inline-flex; gap: 6px; align-items: center; border-bottom: 2px solid transparent; }
.nx-nav-drop > button:hover, .nx-nav-drop > button[aria-expanded="true"] { border-bottom-color: var(--nx-ink); }
.nx-drop-panel {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px; background: #fff;
  border: 1px solid var(--nx-line); border-radius: var(--nx-r-md); padding: 8px; display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.nx-nav-drop.is-open .nx-drop-panel { display: block; }
.nx-drop-panel a { display: block; padding: 9px 12px; border-radius: var(--nx-r-sm); border: 0 !important; font-size: .9rem; }
.nx-drop-panel a:hover { background: var(--nx-soft); }

/* search overlay */
.nx-search-layer { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,17,.45); display: none; }
.nx-search-layer.is-open { display: block; }
.nx-search-box { background: #fff; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 16px; }
.nx-search-box form { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.nx-search-field { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--nx-soft); border-radius: var(--nx-r-md); padding: 0 14px; min-height: 48px; border: 1px solid transparent; }
.nx-search-field:focus-within { border-color: var(--nx-ink); background: #fff; }
.nx-search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 500 1rem var(--nx-font); color: var(--nx-text); }
.nx-search-cats { max-width: 720px; margin: 14px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }

/* drawer */
.nx-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(17,17,17,.5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.nx-overlay.is-open { opacity: 1; visibility: visible; }
.nx-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: 320px; max-width: 86vw; background: #fff;
  transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); visibility: hidden;
}
.nx-drawer.is-open { transform: none; visibility: visible; }
.nx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 12px 20px; border-bottom: 1px solid var(--nx-line); }
.nx-drawer-user { padding: 16px 20px; border-bottom: 1px solid var(--nx-line); }
.nx-drawer-user strong { display: block; font-weight: 600; }
.nx-drawer-body { flex: 1; overflow-y: auto; padding: 8px 8px 16px; overscroll-behavior: contain; }
.nx-drawer-label { padding: 14px 12px 4px; font-size: .75rem; font-weight: 600; color: var(--nx-muted); }
.nx-drawer-link { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--nx-r-md); font-size: .95rem; font-weight: 500; min-height: 46px; }
.nx-drawer-link i { width: 20px; text-align: center; color: var(--nx-muted); }
.nx-drawer-link:hover, .nx-drawer-link[aria-current="page"] { background: var(--nx-soft); }
.nx-drawer-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--nx-line); }

/* ---------- Mobile bottom navigation ---------- */
.nx-bnav { display: none; }
@media (max-width: 1023.98px) {
  .nx-bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.98); backdrop-filter: blur(10px); border-top: 1px solid var(--nx-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.nx-body:not(.nx-no-bnav) { padding-bottom: calc(var(--nx-bnav-h) + env(safe-area-inset-bottom, 0px)); }
}
.nx-bnav a, .nx-bnav button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--nx-bnav-h); font: 500 .6875rem var(--nx-font); color: var(--nx-muted); background: none; border: 0; cursor: pointer;
}
.nx-bnav i { font-size: 1.1rem; }
.nx-bnav .is-active { color: var(--nx-ink); font-weight: 700; }
.nx-bnav .is-active::before { content: ''; position: absolute; top: 0; width: 24px; height: 2px; background: var(--nx-ink); border-radius: 0 0 2px 2px; }
.nx-bnav .nx-count { top: 6px; right: calc(50% - 20px); }
body.nx-no-bnav .nx-bnav { display: none; }

.nx-wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
@media (max-width: 1023.98px) {
  body.nx-body:not(.nx-no-bnav) .nx-wa { bottom: calc(var(--nx-bnav-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  body.nx-has-sticky .nx-wa { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Hero ---------- */
.nx-hero { margin-top: 0; position: relative; background: var(--nx-soft); }
.nx-hero-grid { display: grid; grid-template-columns: 1fr; }
.nx-hero-media { position: relative; aspect-ratio: 4 / 5; max-height: 70vh; width: 100%; background: #e9e9e9; overflow: hidden; order: -1; }
.nx-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-hero-copy { padding: 28px 16px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.nx-hero-copy .nx-eyebrow { font-size: .8125rem; font-weight: 600; color: var(--nx-muted); }
.nx-hero-copy h1 { max-width: 14ch; }
.nx-hero-copy p { color: var(--nx-muted); max-width: 44ch; }
.nx-hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) {
  .nx-hero-cta { flex-direction: row; }
  .nx-hero-media { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .nx-hero-grid { grid-template-columns: 1fr 1.15fr; min-height: 560px; max-width: var(--nx-max); margin: 0 auto; }
  .nx-hero-media { order: 0; aspect-ratio: auto; max-height: none; min-height: 560px; }
  .nx-hero-copy { padding: 56px 48px 56px 32px; }
  .nx-hero-copy h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
  .nx-hero-cta { flex-direction: row; }
}
.nx-hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.nx-hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); padding: 0; cursor: pointer; }
.nx-hero-dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 4px; }
.nx-hero-slide { display: none; }
.nx-hero-slide.is-active { display: block; }

/* ---------- Category cards ---------- */
.nx-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .nx-cats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .nx-cats { grid-template-columns: repeat(4, 1fr); } }
.nx-cat { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--nx-r-md); background: var(--nx-soft); }
.nx-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nx-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.nx-cat span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font-weight: 600; font-size: 1rem; }
.nx-cat-noimg { display: flex; align-items: center; justify-content: center; background: var(--nx-ink); }
.nx-cat-noimg::after { display: none; }
.nx-cat-noimg span { position: static; text-align: center; }
@media (hover: hover) { .nx-cat:hover img { transform: scale(1.04); } }

/* ---------- Product card + grid ---------- */
.nx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 640px) { .nx-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; } }
@media (min-width: 1024px) { .nx-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 20px; } }
.nx-pcard { position: relative; min-width: 0; display: flex; flex-direction: column; }
.nx-pimg { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--nx-soft); overflow: hidden; border-radius: var(--nx-r-sm); }
.nx-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.nx-pimg .nx-pimg-2 { opacity: 0; }
@media (hover: hover) {
  .nx-pcard:hover .nx-pimg img { transform: scale(1.03); }
  .nx-pcard:hover .nx-pimg .nx-pimg-2 { opacity: 1; }
}
.nx-pbadges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 1; }
.nx-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: .6875rem; font-weight: 600; line-height: 1.3; background: #fff; color: var(--nx-ink); }
.nx-badge-dark { background: var(--nx-ink); color: #fff; }
.nx-badge-sale { background: var(--nx-accent); color: #fff; }
.nx-pbody { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nx-pname { font-size: .875rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--nx-text); }
.nx-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-weight: 700; color: var(--nx-ink); font-size: .9375rem; }
.nx-price s { font-weight: 400; color: var(--nx-muted); font-size: .8125rem; }
.nx-swatches { display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.nx-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: inline-block; }
.nx-pactions { margin-top: 10px; }
.nx-pactions .nx-btn { min-height: 40px; font-size: .8125rem; width: 100%; }

/* ---------- Forms ---------- */
.nx-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.nx-label { font-size: .8125rem; font-weight: 600; color: var(--nx-ink); }
.nx-label .nx-opt { font-weight: 400; color: var(--nx-muted); }
.nx-input, .nx-select, .nx-textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: var(--nx-r-md);
  background: #fff; color: var(--nx-text); font: 400 1rem/1.4 var(--nx-font); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.nx-textarea { min-height: 110px; resize: vertical; }
.nx-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus { outline: none; border-color: var(--nx-ink); box-shadow: 0 0 0 3px rgba(17,17,17,.1); }
.nx-input::placeholder, .nx-textarea::placeholder { color: #9ca3af; }
.nx-input.is-invalid, .nx-textarea.is-invalid, .nx-select.is-invalid { border-color: var(--nx-danger); }
.nx-error { color: var(--nx-danger); font-size: .8125rem; }
.nx-hint { color: var(--nx-muted); font-size: .8125rem; }
.nx-pw { position: relative; }
.nx-pw .nx-input { padding-right: 48px; }
.nx-pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--nx-muted); }
.nx-check { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; cursor: pointer; }
.nx-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--nx-ink); flex-shrink: 0; }

.nx-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--nx-r-md); font-size: .875rem; border: 1px solid; margin-bottom: 16px; }
.nx-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.nx-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.nx-alert-info { background: var(--nx-soft); border-color: var(--nx-line); color: var(--nx-text); }

/* ---------- Cards / panels ---------- */
.nx-card { background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-r-lg); padding: 20px; }
.nx-card-soft { background: var(--nx-soft); border-radius: var(--nx-r-lg); padding: 20px; }
.nx-card h2, .nx-card h3 { margin-bottom: 12px; }
.nx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nx-divider { height: 1px; background: var(--nx-line); margin: 16px 0; border: 0; }
.nx-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9375rem; }
.nx-summary-row.is-total { font-size: 1.125rem; font-weight: 700; color: var(--nx-ink); border-top: 1px solid var(--nx-line); margin-top: 8px; padding-top: 14px; }

/* ---------- Breadcrumbs / pagination / pills ---------- */
.nx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8125rem; color: var(--nx-muted); padding: 16px 0 0; }
.nx-crumbs a:hover { color: var(--nx-ink); text-decoration: underline; }
.nx-crumbs [aria-current] { color: var(--nx-text); }
.nx-crumbs .sep { opacity: .5; }
.nx-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nx-pills::-webkit-scrollbar { display: none; }
.nx-pill { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--nx-line); background: #fff; font-size: .8125rem; font-weight: 500; color: var(--nx-text); }
.nx-pill:hover { border-color: var(--nx-ink); }
.nx-pill.is-active { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }
.nx-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.nx-pager a, .nx-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--nx-line); border-radius: var(--nx-r-sm); font-size: .875rem; font-weight: 500; }
.nx-pager a:hover { border-color: var(--nx-ink); }
.nx-pager .is-current { background: var(--nx-ink); color: #fff; border-color: var(--nx-ink); }

/* ---------- Toolbar (filter/sort) ---------- */
.nx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 20px; }
.nx-toolbar-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; top: var(--nx-header-h); z-index: 20; background: #fff; padding: 10px 0; border-bottom: 1px solid var(--nx-line); margin-bottom: 20px; }
.nx-toolbar-mobile button { min-height: 44px; border: 1px solid var(--nx-line); background: #fff; border-radius: var(--nx-r-md); font: 600 .8125rem var(--nx-font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.nx-only-mobile { display: block; }
.nx-only-desktop { display: none; }
@media (min-width: 1024px) { .nx-only-mobile { display: none; } .nx-only-desktop { display: block; } }
.nx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-radius: 18px 18px 0 0; max-height: 86vh; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .25s ease; visibility: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
.nx-sheet.is-open { transform: none; visibility: visible; }
.nx-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--nx-line); }
.nx-sheet-body { padding: 16px 20px; overflow-y: auto; }
.nx-opt-list { display: flex; flex-direction: column; }
.nx-opt-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--nx-line); font-size: .95rem; min-height: 48px; }
.nx-opt-list a[aria-current="true"] { font-weight: 700; }
.nx-opt-list a[aria-current="true"]::after { content: '\2713'; }
.nx-filter-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1024px) { .nx-filter-layout { grid-template-columns: 230px 1fr; gap: 40px; } }
.nx-side h3 { font-size: .8125rem; margin: 0 0 10px; color: var(--nx-muted); font-weight: 600; }
.nx-side ul { list-style: none; margin: 0 0 28px; padding: 0; }
.nx-side li a { display: block; padding: 7px 0; font-size: .9rem; color: var(--nx-text); }
.nx-side li a:hover, .nx-side li a[aria-current="true"] { font-weight: 700; color: var(--nx-ink); }

/* ---------- Empty state ---------- */
.nx-empty { text-align: center; padding: 56px 16px; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nx-empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--nx-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--nx-muted); margin-bottom: 6px; }
.nx-empty p { color: var(--nx-muted); }
.nx-empty .nx-btn { margin-top: 10px; }

/* ---------- Accordion (details/summary) ---------- */
.nx-acc { border-top: 1px solid var(--nx-line); }
.nx-acc details { border-bottom: 1px solid var(--nx-line); }
.nx-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 1rem; color: var(--nx-ink); min-height: 56px; }
.nx-acc summary::-webkit-details-marker { display: none; }
.nx-acc summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform .2s; }
.nx-acc details[open] summary::after { content: '\2212'; }
.nx-acc .nx-acc-body { padding: 0 2px 20px; color: var(--nx-muted); max-width: 70ch; }

/* ---------- Status badges ---------- */
.nx-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #f3f4f6; color: #374151; }
.nx-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nx-status-pending { background: #fef3c7; color: #92400e; }
.nx-status-processing { background: #dbeafe; color: #1e40af; }
.nx-status-shipped { background: #ede9fe; color: #5b21b6; }
.nx-status-delivered { background: #dcfce7; color: #166534; }
.nx-status-cancelled { background: #fee2e2; color: #991b1b; }

/* ---------- Trust list ---------- */
.nx-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .nx-trust { grid-template-columns: repeat(4, 1fr); } }
.nx-trust-item { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; }
.nx-trust-item i { width: 36px; height: 36px; border-radius: 50%; background: var(--nx-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }
.nx-trust-item strong { display: block; font-weight: 600; color: var(--nx-ink); font-size: .875rem; }
.nx-trust-item span { color: var(--nx-muted); font-size: .8125rem; }
.nx-inline-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8125rem; color: var(--nx-muted); }
.nx-inline-trust i { color: var(--nx-success); margin-right: 6px; }

/* ---------- Footer ---------- */
.nx-footer { background: var(--nx-ink); color: #d1d5db; margin-top: 56px; padding: 48px 0 24px; font-size: .875rem; }
.nx-footer a { color: #d1d5db; }
.nx-footer a:hover { color: #fff; text-decoration: underline; }
.nx-footer h4 { color: #fff !important; font-size: .875rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.nx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.nx-footer-brand { grid-column: 1 / -1; max-width: 360px; }
@media (min-width: 768px) { .nx-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .nx-footer-brand { grid-column: auto; } }
.nx-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a2a2a; display: flex; flex-direction: column; gap: 8px; font-size: .8125rem; color: #9ca3af; }
@media (min-width: 640px) { .nx-footer-bottom { flex-direction: row; justify-content: space-between; } }
.nx-footer .nx-brand { color: #fff; }
.nx-footer .nx-brand-mark { background: #fff; color: var(--nx-ink); }
.nx-footer li { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Product detail ---------- */
.nx-pd { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 12px; }
@media (min-width: 1024px) { .nx-pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; margin-top: 24px; } }
.nx-gallery { min-width: 0; }
.nx-gal-main { position: relative; aspect-ratio: 4 / 5; background: var(--nx-soft); overflow: hidden; border-radius: var(--nx-r-sm); }
.nx-gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nx-gal-track::-webkit-scrollbar { display: none; }
.nx-gal-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; position: relative; }
.nx-gal-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(17,17,17,.75); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.nx-gal-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; z-index: 2; }
@media (hover: hover) and (min-width: 1024px) { .nx-gal-arrow { display: inline-flex; align-items: center; justify-content: center; } }
.nx-gal-arrow.prev { left: 12px; } .nx-gal-arrow.next { right: 12px; }
.nx-gal-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.nx-gal-thumbs::-webkit-scrollbar { display: none; }
.nx-thumb { flex: 0 0 68px; aspect-ratio: 4 / 5; border-radius: var(--nx-r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--nx-soft); cursor: pointer; opacity: .7; }
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-thumb[aria-current="true"] { border-color: var(--nx-ink); opacity: 1; }
.nx-pd-info h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.nx-pd-price { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 4px; font-size: 1.5rem; font-weight: 700; color: var(--nx-ink); }
.nx-opt-group { margin-top: 22px; }
.nx-opt-title { font-size: .8125rem; font-weight: 600; margin-bottom: 10px; color: var(--nx-ink); display: flex; gap: 8px; }
.nx-opt-title span { font-weight: 400; color: var(--nx-muted); }
.nx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-chip { position: relative; }
.nx-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.nx-chip label, .nx-chip > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 44px; padding: 0 16px; border: 1px solid #d1d5db; border-radius: var(--nx-r-md); font-size: .875rem; font-weight: 500; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.nx-chip input:checked + label, .nx-chip.is-selected > span { border-color: var(--nx-ink); background: var(--nx-ink); color: #fff; }
.nx-chip input:focus-visible + label { outline: 2px solid var(--nx-ink); outline-offset: 2px; }
.nx-chip.is-disabled label, .nx-chip.is-disabled > span, .nx-chip input:disabled + label { color: #b5b9c0; background: #f9fafb; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.nx-chip-color label::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--sw, #999); border: 1px solid rgba(0,0,0,.2); flex-shrink: 0; }
.nx-qty { display: inline-flex; align-items: center; border: 1px solid #d1d5db; border-radius: var(--nx-r-md); overflow: hidden; background: #fff; }
.nx-qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--nx-ink); }
.nx-qty button:hover { background: var(--nx-soft); }
.nx-qty input { width: 48px; height: 44px; border: 0; text-align: center; font: 600 1rem var(--nx-font); background: transparent; -moz-appearance: textfield; }
.nx-qty input::-webkit-outer-spin-button, .nx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nx-stock-ok { color: var(--nx-success); font-size: .8125rem; font-weight: 600; }
.nx-stock-low { color: #b45309; font-size: .8125rem; font-weight: 600; }
.nx-stock-out { color: var(--nx-danger); font-size: .8125rem; font-weight: 600; }
.nx-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.nx-info-list { margin: 22px 0 0; padding: 0; list-style: none; border: 1px solid var(--nx-line); border-radius: var(--nx-r-md); }
.nx-info-list li { display: flex; gap: 12px; padding: 14px 16px; font-size: .875rem; align-items: flex-start; }
.nx-info-list li + li { border-top: 1px solid var(--nx-line); }
.nx-info-list i { width: 18px; text-align: center; margin-top: 3px; color: var(--nx-ink); }
.nx-sticky-buy { display: none; }
@media (max-width: 1023.98px) {
  .nx-sticky-buy {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: #fff;
    border-top: 1px solid var(--nx-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%); transition: transform .25s ease;
  }
  .nx-sticky-buy.is-visible { transform: none; }
  .nx-sticky-buy .nx-price { font-size: 1.1rem; flex: 0 0 auto; }
  .nx-sticky-buy .nx-btn { flex: 1; }
}
.nx-prose { max-width: 72ch; }
.nx-prose h2 { margin: 36px 0 10px; font-size: 1.25rem; }
.nx-prose h3 { margin: 24px 0 8px; }
.nx-prose p, .nx-prose li { color: #374151; line-height: 1.75; }
.nx-prose p { margin-bottom: 14px; }
.nx-prose ul, .nx-prose ol { padding-left: 1.2rem; margin: 0 0 16px; list-style: revert; }
.nx-prose li { margin-bottom: 6px; }
.nx-prose a { text-decoration: underline; text-underline-offset: 3px; }
.nx-callout { background: var(--nx-soft); border-left: 3px solid var(--nx-ink); padding: 14px 16px; border-radius: 0 var(--nx-r-md) var(--nx-r-md) 0; margin: 20px 0; }

/* ---------- Cart / checkout ---------- */
.nx-cart-layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
@media (min-width: 1024px) { .nx-cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }
.nx-sticky-col { position: static; }
@media (min-width: 1024px) { .nx-sticky-col { position: sticky; top: calc(var(--nx-header-h) + 20px); } }
.nx-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--nx-line); }
.nx-line:first-child { padding-top: 0; }
.nx-line-img { aspect-ratio: 4 / 5; background: var(--nx-soft); border-radius: var(--nx-r-sm); overflow: hidden; }
.nx-line-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-line-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nx-line-name { font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; color: var(--nx-ink); }
.nx-line-meta { font-size: .8125rem; color: var(--nx-muted); }
.nx-line-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.nx-remove { background: none; border: 0; color: var(--nx-muted); font-size: .8125rem; text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 40px; }
.nx-remove:hover { color: var(--nx-danger); }
.nx-steps { display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--nx-muted); margin: 16px 0 0; flex-wrap: wrap; }
.nx-steps b { color: var(--nx-ink); font-weight: 600; }
.nx-section-card { border: 1px solid var(--nx-line); border-radius: var(--nx-r-lg); padding: 20px; margin-bottom: 16px; }
.nx-section-card > h2 { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.nx-step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--nx-ink); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nx-radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: var(--nx-r-md); cursor: pointer; margin-bottom: 10px; min-height: 56px; }
.nx-radio:has(input:checked) { border-color: var(--nx-ink); box-shadow: 0 0 0 1px var(--nx-ink); }
.nx-radio input { accent-color: var(--nx-ink); width: 18px; height: 18px; flex-shrink: 0; }
.nx-radio strong { display: block; font-size: .9375rem; color: var(--nx-ink); }
.nx-radio small { color: var(--nx-muted); font-size: .8125rem; }
.nx-coupon summary { cursor: pointer; font-size: .875rem; font-weight: 600; padding: 10px 0; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.nx-coupon summary::-webkit-details-marker { display: none; }
.nx-coupon-row { display: flex; gap: 8px; margin-top: 8px; }
.nx-coupon-row .nx-input { min-height: 46px; text-transform: uppercase; }
.nx-coupon-msg { font-size: .8125rem; margin-top: 8px; }
.nx-coupon-msg.ok { color: var(--nx-success); font-weight: 600; } .nx-coupon-msg.err { color: var(--nx-danger); }

/* ---------- Auth ---------- */
.nx-auth { min-height: calc(100vh - var(--nx-header-h)); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.nx-auth-card { width: 100%; max-width: 420px; }
.nx-auth-card h1 { font-size: 1.6rem; margin: 18px 0 6px; }
.nx-auth-logo { display: flex; justify-content: center; }
.nx-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--nx-muted); font-size: .8125rem; }
.nx-or::before, .nx-or::after { content: ''; flex: 1; height: 1px; background: var(--nx-line); }
.nx-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--nx-soft); border-radius: var(--nx-r-md); padding: 4px; margin: 20px 0; }
.nx-tabs button { min-height: 42px; border: 0; background: transparent; border-radius: 8px; font: 600 .875rem var(--nx-font); cursor: pointer; color: var(--nx-muted); }
.nx-tabs button[aria-selected="true"] { background: #fff; color: var(--nx-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ---------- Account / orders ---------- */
.nx-acct-nav { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0 24px; scrollbar-width: none; }
.nx-acct-nav::-webkit-scrollbar { display: none; }
.nx-order-card { border: 1px solid var(--nx-line); border-radius: var(--nx-r-lg); padding: 16px; margin-bottom: 14px; }
.nx-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.nx-order-items { display: flex; gap: 8px; margin: 14px 0; overflow: hidden; }
.nx-order-items img { width: 52px; height: 65px; object-fit: cover; border-radius: var(--nx-r-sm); background: var(--nx-soft); }
.nx-table-wrap { overflow-x: auto; }
.nx-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.nx-table th { text-align: left; font-weight: 600; color: var(--nx-muted); padding: 10px 12px; border-bottom: 1px solid var(--nx-line); font-size: .8125rem; }
.nx-table td { padding: 14px 12px; border-bottom: 1px solid var(--nx-line); vertical-align: middle; }

/* ---------- Success / 404 ---------- */
.nx-center-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.nx-center-page .inner { max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nx-tick { width: 72px; height: 72px; border-radius: 50%; background: #f0fdf4; color: var(--nx-success); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.nx-big404 { font-size: clamp(5rem, 22vw, 9rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--nx-ink); }
.nx-cta-row { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 14px; }
@media (min-width: 480px) { .nx-cta-row { flex-direction: row; justify-content: center; } }

/* ---------- Popup (promo) ---------- */
.nx-popup { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(17,17,17,.5); padding: 16px; }
.nx-popup.is-open { display: flex; }
@media (min-width: 640px) { .nx-popup { align-items: center; } }
.nx-popup-box { position: relative; background: #fff; border-radius: var(--nx-r-lg); width: 100%; max-width: 360px; overflow: hidden; animation: nx-pop .25s ease; max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes nx-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nx-popup-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); cursor: pointer; z-index: 2; font-size: 1.1rem; }
.nx-popup-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--nx-soft); }
.nx-popup-body { padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.nx-popup-discount { font-size: 2.2rem; font-weight: 700; color: var(--nx-ink); line-height: 1; }
.nx-code { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed var(--nx-ink); border-radius: var(--nx-r-md); padding: 10px 14px; font-weight: 700; letter-spacing: .06em; background: #fff; cursor: pointer; font-family: var(--nx-font); font-size: 1rem; }

/* ---------- Toast ---------- */
.nx-toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--nx-header-h) + 12px + env(safe-area-inset-top, 0px)); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.nx-toast { background: var(--nx-ink); color: #fff; padding: 12px 18px; border-radius: var(--nx-r-md); font-size: .875rem; font-weight: 500; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: nx-toast-in .22s ease; }
.nx-toast.is-error { background: var(--nx-danger); } .nx-toast.is-success i { color: #4ade80; }
@keyframes nx-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Skeleton / image placeholder ---------- */
.nx-skel { background: linear-gradient(90deg, #f1f1f1 25%, #f8f8f8 37%, #f1f1f1 63%); background-size: 400% 100%; animation: nx-shimmer 1.4s ease infinite; border-radius: var(--nx-r-sm); }
@keyframes nx-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.nx-pimg, .nx-gal-main, .nx-line-img, .nx-cat, .nx-hero-media { background-color: #f1f1f1; }

/* ---------- Landing ---------- */
.nx-landing-hero { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
@media (min-width: 900px) { .nx-landing-hero { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 40px; } }
.nx-landing-img { aspect-ratio: 1 / 1; background: var(--nx-soft); border-radius: var(--nx-r-md); overflow: hidden; }
.nx-landing-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-benefits { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nx-benefits { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .nx-header, .nx-bnav, .nx-footer, .nx-wa, .nx-sticky-buy { display: none !important; } body.nx-body { padding: 0 !important; } }

/* ---- polish ---- */
.nx-nav a, .nx-nav-drop > button { line-height: 1.5; }
.nx-page-title { margin-bottom: 14px; }
.nx-page-title + .nx-page-sub { margin-top: -8px; margin-bottom: 14px; }
@media (max-width: 1023.98px) { body.nx-has-sticky { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.nx-chip input:checked + label::before { box-shadow: 0 0 0 2px #fff; }
@media (min-width: 1024px) { .nx-gallery { position: sticky; top: calc(var(--nx-header-h) + 20px); align-self: start; } }
body.nx-busy .nx-main { opacity: .6; pointer-events: none; transition: opacity .15s; }
body.nx-busy { cursor: progress; }

/* ---- order tracker ---- */
.nx-track { display: flex; list-style: none; margin: 16px 0 4px; padding: 0; }
.nx-track li { flex: 1; position: relative; text-align: center; font-size: .75rem; color: var(--nx-muted); padding-top: 18px; }
.nx-track li::before { content: ''; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--nx-line); z-index: 1; }
.nx-track li::after { content: ''; position: absolute; top: 4px; left: -50%; width: 100%; height: 2px; background: var(--nx-line); }
.nx-track li:first-child::after { display: none; }
.nx-track li.is-done { color: var(--nx-ink); font-weight: 600; }
.nx-track li.is-done::before, .nx-track li.is-done::after { background: var(--nx-ink); }
.nx-order-more { margin-top: 12px; border-top: 1px solid var(--nx-line); }
.nx-order-more summary { cursor: pointer; padding: 12px 0 0; font-size: .875rem; font-weight: 600; list-style: none; min-height: 40px; }
.nx-order-more summary::-webkit-details-marker { display: none; }
.nx-order-more summary::after { content: ' ▾'; }
.nx-order-more[open] summary::after { content: ' ▴'; }

/* ---- legacy content pages (terms / privacy): same markup, brand palette ---- */
.nx-legacy .text-red-600, .nx-legacy .text-red-500, .nx-legacy .text-red-700 { color: var(--nx-ink) !important; }
.nx-legacy .bg-red-600, .nx-legacy .bg-premium-gradient, .nx-legacy .hero-gradient { background: var(--nx-ink) !important; }
.nx-legacy .bg-red-50, .nx-legacy .bg-red-100 { background: var(--nx-soft) !important; }
.nx-legacy .border-red-100, .nx-legacy .border-red-200 { border-color: var(--nx-line) !important; }
.nx-legacy .text-red-100, .nx-legacy [class*="text-red-100"] { color: #d1d5db !important; }
.nx-legacy .shadow-sm, .nx-legacy .shadow-premium { box-shadow: none !important; }
.nx-legacy .terms-card:hover, .nx-legacy .privacy-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--nx-line) !important; }
.nx-legacy .hero-gradient::after { display: none; }
.nx-legacy h1, .nx-legacy .hero-gradient h1, .nx-legacy .bg-premium-gradient h1 { color: #fff; }
.nx-legacy h2, .nx-legacy h3, .nx-legacy h4 { color: var(--nx-ink); }
.nx-legacy .text-white, .nx-legacy .bg-premium-gradient h1, .nx-legacy .hero-gradient h1 { color: #fff !important; }
.nx-legacy .bg-premium-gradient { margin-top: 8px !important; }

/* utility: the legacy Tailwind .hidden must always win over component display rules */
.nx-body .hidden, .nx-body [hidden] { display: none !important; }
