/*
Theme Name: Nexora Shop
Theme URI: https://weeben.fr
Author: Weeben
Author URI: https://weeben.fr
Description: Thème WooCommerce/Elementor moderne avec gestion de points de fidélité et remises avancées.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexora
WC requires at least: 8.0
WC tested up to: 8.9
*/

/* ============================================================
   NEXORA SHOP – Design System
   ============================================================ */

:root {
  /* ── Palette – utilise les couleurs globales Elementor avec fallback ──
     Elementor injecte : --e-global-color-primary / secondary / text / accent
     Changer les couleurs dans Elementor → Réglages du site → Style global
     met à jour tout le thème automatiquement.
  ── */
  --nx-black:       var(--e-global-color-secondary, #0a0a0a);
  --nx-white:       #fafaf8;
  --nx-cream:       #f4f1eb;
  --nx-accent:      var(--e-global-color-primary, #c8a96e);
  --nx-accent-dark: var(--e-global-color-accent, #a8893e);
  --nx-accent-light:var(--e-global-color-accent, #e8d4a6);
  --nx-text:        var(--e-global-color-text, #1a1a1a);
  --nx-text-muted:  #6b6b6b;
  --nx-border:      #e2ddd4;
  --nx-surface:     #ffffff;
  --nx-surface-alt: #f9f6f0;
  --nx-error:       #c0392b;
  --nx-success:     #27ae60;
  --nx-info:        #2980b9;
  --nx-warning:     #e67e22;

  /* ── Points fidélité ── */
  --nx-points-color: var(--e-global-color-primary, #c8a96e);
  --nx-points-bg:    #fdf8ee;

  /* ── Variantes alpha (pour rgba) ── */
  --nx-accent-a05:  color-mix(in srgb, var(--nx-accent) 5%,  transparent);
  --nx-accent-a12:  color-mix(in srgb, var(--nx-accent) 12%, transparent);
  --nx-accent-a15:  color-mix(in srgb, var(--nx-accent) 15%, transparent);
  --nx-accent-a20:  color-mix(in srgb, var(--nx-accent) 20%, transparent);
  --nx-accent-a25:  color-mix(in srgb, var(--nx-accent) 25%, transparent);
  --nx-accent-a30:  color-mix(in srgb, var(--nx-accent) 30%, transparent);
  --nx-accent-a40:  color-mix(in srgb, var(--nx-accent) 40%, transparent);
  --nx-black-a95:   color-mix(in srgb, var(--nx-black) 95%,  transparent);
  --nx-black-a96:   color-mix(in srgb, var(--nx-black) 96%,  transparent);

  /* ── Typography ── */
  --nx-font-display: var(--e-global-typography-primary-font-family, 'Cormorant Garamond', Georgia, serif);
  --nx-font-body:    var(--e-global-typography-secondary-font-family, 'DM Sans', -apple-system, sans-serif);
  --nx-font-mono:    'JetBrains Mono', monospace;

  /* ── Spacing ── */
  --nx-space-xs:  0.25rem;
  --nx-space-sm:  0.5rem;
  --nx-space-md:  1rem;
  --nx-space-lg:  2rem;
  --nx-space-xl:  4rem;
  --nx-space-2xl: 8rem;

  /* ── Radius ── */
  --nx-radius-sm: 4px;
  --nx-radius:    8px;
  --nx-radius-lg: 16px;
  --nx-radius-pill: 100px;

  /* ── Shadows ── */
  --nx-shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --nx-shadow:    0 4px 20px rgba(0,0,0,.08);
  --nx-shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --nx-shadow-accent: 0 4px 24px var(--nx-accent-a30);

  /* ── Transitions ── */
  --nx-ease: cubic-bezier(.4,0,.2,1);
  --nx-ease-spring: cubic-bezier(.34,1.56,.64,1);
  --nx-duration: 260ms;

  /* ── Container ── */
  --nx-container: 1320px;
  --nx-container-narrow: 860px;

  /* ── Header ── */
  --nx-header-h: 60px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--nx-font-body);
  color: var(--nx-text);
  background: var(--nx-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--nx-font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* ── Container ── */
.nx-container {
  width: 100%;
  max-width: var(--nx-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.nx-container--narrow { max-width: var(--nx-container-narrow); }

/* ── Buttons ── */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-sm);
  padding: .75rem 1.75rem;
  border: none;
  border-radius: var(--nx-radius-pill);
  font-family: var(--nx-font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all var(--nx-duration) var(--nx-ease);
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
  justify-content: center;
}
.nx-btn--primary {
  background: var(--nx-black);
  color: var(--nx-white);
}
.nx-btn--primary:hover {
  background: var(--nx-accent);
  color: var(--nx-black);
  box-shadow: var(--nx-shadow-accent);
  transform: translateY(-1px);
}
.nx-btn--outline {
  background: transparent;
  color: var(--nx-black);
  border: 1.5px solid currentColor;
}
.nx-btn--outline:hover {
  background: var(--nx-black);
  color: var(--nx-white);
  border-color: var(--nx-black);
}
.nx-btn--accent {
  background: var(--nx-accent);
  color: var(--nx-black);
  font-weight: 600;
}
.nx-btn--accent:hover {
  background: var(--nx-accent-dark);
  box-shadow: var(--nx-shadow-accent);
  transform: translateY(-1px);
}
.nx-btn--ghost {
  background: transparent;
  color: var(--nx-text-muted);
  padding-inline: var(--nx-space-md);
}
.nx-btn--ghost:hover { color: var(--nx-black); }
.nx-btn--sm { padding: .5rem 1.25rem; font-size: .8125rem; }
.nx-btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }
.nx-btn--full { width: 100%; }
.nx-btn:disabled { opacity: .45; pointer-events: none; }

/* ── Badge ── */
.nx-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: var(--nx-radius-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nx-badge--accent { background: var(--nx-accent-light); color: var(--nx-accent-dark); }
.nx-badge--success { background: #d5f4e3; color: #1a7a45; }
.nx-badge--error { background: #fde8e6; color: var(--nx-error); }
.nx-badge--info { background: #ddeeff; color: #1a5fa0; }

/* ── Inputs ── */
.nx-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  color: var(--nx-text);
  font-size: .9375rem;
  transition: border-color var(--nx-duration) var(--nx-ease),
              box-shadow var(--nx-duration) var(--nx-ease);
  outline: none;
}
.nx-input:focus {
  border-color: var(--nx-accent);
  box-shadow: 0 0 0 3px var(--nx-accent-a15);
}
.nx-input::placeholder { color: var(--nx-text-muted); }
.nx-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nx-text-muted);
  margin-bottom: var(--nx-space-xs);
}

/* ── Cards ── */
.nx-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
}
.nx-card--elevated { box-shadow: var(--nx-shadow); border-color: transparent; }

/* ── Section headers ── */
.nx-section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nx-accent);
  margin-bottom: var(--nx-space-sm);
}
.nx-section-title {
  font-family: var(--nx-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--nx-black);
}
.nx-section-title strong { font-weight: 700; }

/* ── Divider ── */
.nx-divider {
  height: 1px;
  background: var(--nx-border);
  margin: var(--nx-space-lg) 0;
}

/* ── Loader ── */
.nx-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--nx-border);
  border-top-color: var(--nx-accent);
  border-radius: 50%;
  animation: nx-spin .7s linear infinite;
  display: inline-block;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* ── Toast notifications ── */
#nx-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  pointer-events: none;
}
.nx-toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--nx-black);
  color: var(--nx-white);
  border-radius: var(--nx-radius-lg);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--nx-shadow-lg);
  pointer-events: all;
  animation: nx-toast-in .35s var(--nx-ease-spring);
  max-width: 360px;
}
.nx-toast--success { background: var(--nx-success); }
.nx-toast--error   { background: var(--nx-error); }
.nx-toast--points  { background: var(--nx-accent); color: var(--nx-black); }
.nx-toast.nx-toast--out { animation: nx-toast-out .25s var(--nx-ease) forwards; }
@keyframes nx-toast-in  { from { opacity:0; transform: translateY(1rem) scale(.95); } }
@keyframes nx-toast-out { to   { opacity:0; transform: translateY(1rem) scale(.95); } }

/* ── Skeleton loader ── */
.nx-skeleton {
  background: linear-gradient(90deg, var(--nx-cream) 25%, var(--nx-border) 50%, var(--nx-cream) 75%);
  background-size: 200% 100%;
  animation: nx-shimmer 1.5s infinite;
  border-radius: var(--nx-radius);
}
@keyframes nx-shimmer { to { background-position: -200% 0; } }

/* ── Points indicator ── */
.nx-points-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  background: var(--nx-points-bg);
  border: 1px solid var(--nx-accent-light);
  border-radius: var(--nx-radius-pill);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nx-accent-dark);
}
.nx-points-badge svg { width: 14px; height: 14px; }

/* ── WooCommerce overrides global ── */
.woocommerce-notices-wrapper { margin-bottom: var(--nx-space-md); }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  border-radius: var(--nx-radius);
  font-size: .9rem;
  margin-bottom: var(--nx-space-md);
  border: none;
  list-style: none;
}
.woocommerce-message { background: #d5f4e3; color: #1a7a45; }
.woocommerce-info    { background: #ddeeff; color: #1a5fa0; }
.woocommerce-error   { background: #fde8e6; color: var(--nx-error); }

/* ── Header ── */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nx-header-h);
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nx-border);
  transition: transform 0.3s var(--nx-ease),
              box-shadow var(--nx-duration) var(--nx-ease);
  will-change: transform;
}
.nx-header.scrolled { box-shadow: var(--nx-shadow); }
.nx-header.nx-header--hidden {
  transform: translateY(-100%);
}
.nx-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--nx-space-lg);
}
.nx-header__logo {
  font-family: var(--nx-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--nx-black);
  flex-shrink: 0;
}
.nx-header__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
}
.nx-header__nav a {
  padding: .5rem .85rem;
  border-radius: var(--nx-radius-pill);
  font-size: .875rem;
  font-weight: 500;
  color: var(--nx-text-muted);
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-header__nav a:hover,
.nx-header__nav a.current-menu-item { color: var(--nx-black); background: var(--nx-cream); }
.nx-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nx-header__action-btn {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--nx-radius);
  color: var(--nx-text-muted);
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-header__action-btn:hover { background: var(--nx-cream); color: var(--nx-black); }
.nx-header__cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--nx-accent);
  color: var(--nx-black);
  border-radius: var(--nx-radius-pill);
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transition: transform var(--nx-ease-spring) var(--nx-duration);
}
.nx-header__cart-count.bump { animation: nx-bump .4s var(--nx-ease-spring); }
@keyframes nx-bump { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* ── Mobile menu ── */
.nx-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--nx-radius);
}
.nx-header__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--nx-black);
  border-radius: 2px;
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--nx-white);
  padding: calc(var(--nx-header-h) + 2rem) 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity var(--nx-duration) var(--nx-ease);
}
.nx-mobile-menu.open { display: flex; opacity: 1; }
.nx-mobile-menu a {
  font-family: var(--nx-font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--nx-text-muted);
  transition: color var(--nx-duration) var(--nx-ease);
  border-bottom: 1px solid var(--nx-border);
  padding-bottom: 1.25rem;
}
.nx-mobile-menu a:hover { color: var(--nx-black); }

/* ── Footer ── */
.nx-footer {
  background: var(--nx-black);
  color: rgba(255,255,255,.65);
  padding: var(--nx-space-xl) 0 var(--nx-space-lg);
  margin-top: var(--nx-space-2xl);
}
.nx-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--nx-space-xl);
  margin-bottom: var(--nx-space-xl);
}
.nx-footer__brand {
  font-family: var(--nx-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nx-white);
  margin-bottom: var(--nx-space-md);
}
.nx-footer__desc { font-size: .875rem; line-height: 1.8; }
.nx-footer__col-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nx-white);
  margin-bottom: 1.25rem;
}
.nx-footer__links { display: flex; flex-direction: column; gap: .6rem; }
.nx-footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--nx-duration) var(--nx-ease);
}
.nx-footer__links a:hover { color: var(--nx-accent); }
.nx-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--nx-space-lg);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8125rem;
}
.nx-footer__loyalty-banner {
  background: linear-gradient(135deg, var(--nx-accent-a15), var(--nx-accent-a05));
  border: 1px solid var(--nx-accent-a20);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: var(--nx-space-xl);
}
.nx-footer__loyalty-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.nx-footer__loyalty-text strong { color: var(--nx-accent); display: block; margin-bottom: .25rem; }

/* ── Product grid ── */
.nx-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.nx-product-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  transition: all var(--nx-duration) var(--nx-ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.nx-product-card:hover {
  box-shadow: var(--nx-shadow-lg);
  transform: translateY(-4px);
}
.nx-product-card__thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--nx-cream);
}
.nx-product-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--nx-ease);
}
.nx-product-card:hover .nx-product-card__thumb img { transform: scale(1.06); }
.nx-product-card__badges {
  position: absolute;
  top: 1rem; left: 1rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.nx-product-card__actions {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  opacity: 0;
  transform: translateX(.5rem);
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-product-card:hover .nx-product-card__actions { opacity: 1; transform: none; }
.nx-product-card__action-btn {
  width: 38px; height: 38px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--nx-duration) var(--nx-ease);
  color: var(--nx-text-muted);
}
.nx-product-card__action-btn:hover { background: var(--nx-black); color: var(--nx-white); border-color: var(--nx-black); }
.nx-product-card__action-btn.wishlisted { color: var(--nx-error); }
.nx-product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.nx-product-card__cat {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nx-text-muted);
}
.nx-product-card__name {
  font-family: var(--nx-font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--nx-black);
  line-height: 1.3;
}
.nx-product-card__name a:hover { color: var(--nx-accent-dark); }
.nx-product-card__price {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
}
.nx-product-card__price ins {
  text-decoration: none;
  font-weight: 700;
  color: var(--nx-black);
  font-size: 1.05rem;
}
.nx-product-card__price del {
  color: var(--nx-text-muted);
  font-size: .875rem;
}
.nx-product-card__points {
  font-size: .75rem;
  color: var(--nx-accent-dark);
  font-weight: 500;
  display: flex; align-items: center; gap: .25rem;
}
.nx-product-card__atc {
  margin: 0 1.25rem 1.25rem;
  width: calc(100% - 2.5rem);
  padding: .7rem;
  background: var(--nx-black);
  color: var(--nx-white);
  border: none;
  border-radius: var(--nx-radius-pill);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--nx-duration) var(--nx-ease);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.nx-product-card__atc:hover { background: var(--nx-accent); color: var(--nx-black); }
.nx-product-card__atc.loading { pointer-events: none; }

/* ── Single product ── */
.nx-single-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nx-space-xl);
  align-items: start;
  padding: var(--nx-space-xl) 0;
}
.nx-product-gallery { position: sticky; top: calc(var(--nx-header-h) + 2rem); }
.nx-product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: var(--nx-cream);
  margin-bottom: 1rem;
}
.nx-product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.nx-product-gallery__thumbs {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.nx-product-gallery__thumbs::-webkit-scrollbar { display: none; }
.nx-product-gallery__thumb {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: var(--nx-radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--nx-duration) var(--nx-ease);
}
.nx-product-gallery__thumb.active { border-color: var(--nx-accent); }
.nx-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Galerie produit – mode flottant 3D ── */
.nx-product-gallery--floating {
  perspective: 1200px;
}
.nx-product-gallery--floating .nx-product-gallery__main {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
}
/* Ombre au sol – ellipse floue sous la photo */
.nx-product-gallery--floating .nx-product-gallery__main::after {
  content: '';
  position: absolute;
  inset: 8% 6% -14%;
  background: radial-gradient(ellipse at 50% 95%,
    rgba(0,0,0,.32) 0%,
    rgba(0,0,0,.16) 45%,
    transparent 72%
  );
  filter: blur(20px);
  z-index: -1;
  border-radius: 50%;
  transform: scaleX(.88);
  transition: opacity .4s ease, transform .4s ease;
}
.nx-product-gallery--floating .nx-product-gallery__main img {
  border-radius: 6px;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.16));
  transition: transform .45s cubic-bezier(.22,1,.36,1),
              filter   .45s cubic-bezier(.22,1,.36,1);
  object-fit: contain;
  background: transparent;
  width: 100%;
  height: 100%;
}
/* Survol : la photo se soulève */
.nx-product-gallery--floating .nx-product-gallery__main:hover img {
  transform: translateY(-10px) scale(1.025);
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.22));
}
.nx-product-gallery--floating .nx-product-gallery__main:hover::after {
  opacity: .65;
  transform: scaleX(.78) scaleY(.82);
}
/* Thumbs version floating */
.nx-product-gallery--floating .nx-product-gallery__thumb {
  border-radius: 4px;
  background: transparent;
}
.nx-product-gallery--floating .nx-product-gallery__thumb img {
  object-fit: contain;
}
.nx-product-info { padding-top: 1rem; }
.nx-product-info__cats {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nx-accent-dark);
  margin-bottom: .75rem;
}
.nx-product-info__title {
  font-family: var(--nx-font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
.nx-product-info__rating {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  color: var(--nx-text-muted);
}
.nx-product-info__stars { color: var(--nx-accent); }
.nx-product-info__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nx-black);
  margin-bottom: .5rem;
}
.nx-product-info__price del {
  font-size: 1.2rem;
  color: var(--nx-text-muted);
  font-weight: 400;
  margin-left: .5rem;
}
.nx-product-info__points-earn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--nx-points-bg);
  border: 1px solid var(--nx-accent-light);
  border-radius: var(--nx-radius-pill);
  padding: .4rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nx-accent-dark);
  margin-bottom: 1.5rem;
}
.nx-product-info__desc {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--nx-text-muted);
  margin-bottom: 1.5rem;
}
.nx-product-info__qty {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.nx-qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--nx-radius-pill);
  overflow: hidden;
}
.nx-qty-control button {
  width: 42px; height: 42px;
  border: none; background: transparent;
  cursor: pointer; font-size: 1.1rem;
  color: var(--nx-text-muted);
  transition: all var(--nx-duration) var(--nx-ease);
  display: flex; align-items: center; justify-content: center;
}
.nx-qty-control button:hover { background: var(--nx-cream); color: var(--nx-black); }
.nx-qty-control input {
  width: 48px;
  text-align: center;
  border: none; border-left: 1.5px solid var(--nx-border); border-right: 1.5px solid var(--nx-border);
  background: transparent;
  font-size: .9375rem;
  font-weight: 600;
  outline: none;
  height: 42px;
}
.nx-product-info__cta {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
}
.nx-product-info__atc {
  flex: 1;
  height: 52px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nx-product-info__meta {
  display: flex; flex-direction: column; gap: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nx-border);
  font-size: .8125rem;
  color: var(--nx-text-muted);
}
.nx-product-info__meta strong { color: var(--nx-text); }

/* ── Cart ── */
.nx-cart-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--nx-space-xl);
  align-items: start;
  padding: var(--nx-space-xl) 0;
}
.nx-cart-table {
  width: 100%;
  border-collapse: collapse;
}
.nx-cart-table th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nx-text-muted);
  padding: 0 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--nx-border);
}
.nx-cart-table th:last-child { text-align: right; }
.nx-cart-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--nx-border);
  vertical-align: middle;
}
.nx-cart-item__product {
  display: flex; align-items: center; gap: 1rem;
}
.nx-cart-item__img {
  width: 72px; height: 72px;
  border-radius: var(--nx-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--nx-cream);
}
.nx-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.nx-cart-item__name {
  font-family: var(--nx-font-display);
  font-size: 1rem;
  font-weight: 500;
}
.nx-cart-item__variant { font-size: .8125rem; color: var(--nx-text-muted); margin-top: .25rem; }
.nx-cart-item__remove {
  background: none; border: none; cursor: pointer;
  color: var(--nx-text-muted); font-size: 1.2rem;
  transition: color var(--nx-duration) var(--nx-ease);
  padding: .25rem;
}
.nx-cart-item__remove:hover { color: var(--nx-error); }
.nx-cart-item__price { font-weight: 600; text-align: right; }
.nx-cart-sidebar {
  position: sticky;
  top: calc(var(--nx-header-h) + 2rem);
}
.nx-cart-totals {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 2rem;
}
.nx-cart-totals__title {
  font-family: var(--nx-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.nx-cart-totals__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid var(--nx-border);
  font-size: .9375rem;
}
.nx-cart-totals__row:last-of-type { border-bottom: none; }
.nx-cart-totals__row--total {
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 1rem;
}
.nx-cart-totals__row .label { color: var(--nx-text-muted); }
.nx-cart-totals__row .value { font-weight: 600; }
.nx-cart-totals__discount { color: var(--nx-success); }

/* ── Points redemption box ── */
.nx-points-redeem {
  background: var(--nx-points-bg);
  border: 1px solid var(--nx-accent-light);
  border-radius: var(--nx-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.nx-points-redeem__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.nx-points-redeem__title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--nx-accent-dark);
  display: flex; align-items: center; gap: .5rem;
}
.nx-points-redeem__balance {
  font-size: .8125rem;
  color: var(--nx-text-muted);
}
.nx-points-redeem__balance strong { color: var(--nx-accent-dark); }
.nx-points-redeem__slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--nx-accent-light);
  outline: none;
  margin: .75rem 0;
}
.nx-points-redeem__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--nx-accent);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--nx-accent-a40);
}
.nx-points-redeem__info {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem;
}
.nx-points-redeem__value { font-weight: 700; color: var(--nx-accent-dark); font-size: .9375rem; }

/* ── Coupon ── */
.nx-coupon-row {
  display: flex; gap: .75rem; margin-bottom: 1.5rem;
}
.nx-coupon-row .nx-input { border-radius: var(--nx-radius-pill); }
.nx-coupon-row .nx-btn { flex-shrink: 0; }
.nx-coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  background: #d5f4e3;
  border-radius: var(--nx-radius-pill);
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #1a7a45;
  margin-bottom: 1.5rem;
}

/* ── Checkout ── */
.nx-checkout-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--nx-space-xl);
  align-items: start;
  padding: var(--nx-space-xl) 0;
}
.nx-checkout-section {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.nx-checkout-section__title {
  font-family: var(--nx-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.nx-checkout-section__num {
  width: 28px; height: 28px;
  background: var(--nx-black);
  color: var(--nx-white);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.nx-form-row--full { grid-template-columns: 1fr; }
.nx-form-field { display: flex; flex-direction: column; gap: .35rem; }
.nx-checkout-order-summary {
  background: var(--nx-surface-alt);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nx-header-h) + 2rem);
}
.nx-payment-methods { display: flex; flex-direction: column; gap: .75rem; }
.nx-payment-method {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--nx-radius);
  cursor: pointer;
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-payment-method:hover { border-color: var(--nx-accent); }
.nx-payment-method.active {
  border-color: var(--nx-accent);
  background: var(--nx-points-bg);
}
.nx-payment-method input[type=radio] { accent-color: var(--nx-accent); }

/* ── My Account ── */
.nx-account-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--nx-space-xl);
  align-items: start;
  padding: var(--nx-space-xl) 0;
}
.nx-account-nav {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nx-header-h) + 2rem);
}
.nx-account-nav__avatar {
  background: linear-gradient(135deg, var(--nx-accent-light), var(--nx-cream));
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--nx-border);
}
.nx-account-nav__avatar-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--nx-accent);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--nx-font-display);
  font-size: 1.8rem;
  color: var(--nx-black);
  font-weight: 700;
}
.nx-account-nav__name { font-weight: 600; font-size: .9375rem; }
.nx-account-nav__email { font-size: .8125rem; color: var(--nx-text-muted); }
.nx-account-nav__links { padding: .75rem; }
.nx-account-nav__link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--nx-radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--nx-text-muted);
  transition: all var(--nx-duration) var(--nx-ease);
  cursor: pointer;
}
.nx-account-nav__link:hover,
.nx-account-nav__link.active {
  background: var(--nx-cream);
  color: var(--nx-black);
}
.nx-account-nav__link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Loyalty dashboard ── */
.nx-loyalty-hero {
  background: linear-gradient(135deg, var(--nx-black) 0%, #2a2418 100%);
  border-radius: var(--nx-radius-lg);
  padding: 2.5rem;
  color: var(--nx-white);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.nx-loyalty-hero::before {
  content: '';
  position: absolute;
  top: -40%;  right: -10%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--nx-accent-a25) 0%, transparent 70%);
}
.nx-loyalty-hero__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nx-accent);
  margin-bottom: .5rem;
}
.nx-loyalty-hero__points {
  font-family: var(--nx-font-display);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: .25rem;
}
.nx-loyalty-hero__points strong { font-weight: 700; color: var(--nx-accent); }
.nx-loyalty-hero__value { font-size: .9375rem; color: rgba(255,255,255,.6); }
.nx-loyalty-hero__cta { margin-top: 1.5rem; }
.nx-loyalty-progress {
  margin-top: 1.5rem;
}
.nx-loyalty-progress__bar-bg {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  margin: .5rem 0;
}
.nx-loyalty-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--nx-accent-dark), var(--nx-accent));
  border-radius: 3px;
  transition: width .6s var(--nx-ease);
}
.nx-loyalty-progress__labels {
  display: flex; justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
.nx-loyalty-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1.5rem;
}
.nx-loyalty-stat {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.nx-loyalty-stat__val {
  font-family: var(--nx-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--nx-accent-dark);
}
.nx-loyalty-stat__label { font-size: .8125rem; color: var(--nx-text-muted); margin-top: .25rem; }
.nx-loyalty-history table { width: 100%; border-collapse: collapse; }
.nx-loyalty-history th {
  font-size: .7rem;
  font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nx-text-muted);
  padding: .75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--nx-border);
}
.nx-loyalty-history td {
  padding: 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--nx-border);
}
.nx-loyalty-history .points-earned { color: var(--nx-success); font-weight: 700; }
.nx-loyalty-history .points-spent  { color: var(--nx-error);   font-weight: 700; }

/* ── Order page ── */
.nx-orders-list { display: flex; flex-direction: column; gap: 1rem; }
.nx-order-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow var(--nx-duration) var(--nx-ease);
}
.nx-order-card:hover { box-shadow: var(--nx-shadow); }
.nx-order-card__num { font-weight: 700; font-size: .9375rem; }
.nx-order-card__date { font-size: .8125rem; color: var(--nx-text-muted); margin-top: .2rem; }
.nx-order-card__status { }
.nx-order-card__total { font-weight: 700; font-size: 1.1rem; text-align: right; }
.nx-order-card__actions { display: flex; gap: .5rem; }

/* ── Thank you page ── */
.nx-thankyou {
  max-width: 640px;
  margin: var(--nx-space-2xl) auto;
  text-align: center;
}
.nx-thankyou__icon {
  width: 80px; height: 80px;
  background: #d5f4e3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
}
.nx-thankyou__title {
  font-family: var(--nx-font-display);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.nx-thankyou__points-earned {
  background: var(--nx-points-bg);
  border: 1px solid var(--nx-accent-light);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  display: flex; align-items: center; gap: 1.5rem;
}
.nx-thankyou__points-num {
  font-family: var(--nx-font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--nx-accent);
  line-height: 1;
}
.nx-thankyou__order-details {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem;
  text-align: left;
  margin: 2rem 0;
}

/* ── Shop page filters ── */
.nx-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--nx-space-xl);
  padding: var(--nx-space-xl) 0;
}
.nx-shop-filters {
  position: sticky;
  top: calc(var(--nx-header-h) + 2rem);
}
.nx-filter-section {
  margin-bottom: 2rem;
}
.nx-filter-section__title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nx-text-muted);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.nx-filter-list { display: flex; flex-direction: column; gap: .6rem; }
.nx-filter-list label {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem;
  cursor: pointer;
  color: var(--nx-text-muted);
  transition: color var(--nx-duration) var(--nx-ease);
}
.nx-filter-list label:hover { color: var(--nx-black); }
.nx-filter-list input[type=checkbox] { accent-color: var(--nx-accent); }
.nx-price-range { }
.nx-price-range__slider {
  -webkit-appearance: none;
  width: 100%; height: 4px;
  border-radius: 2px;
  background: var(--nx-accent-light);
  outline: none;
  margin: .5rem 0;
}
.nx-price-range__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--nx-accent);
  cursor: pointer;
}
.nx-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.nx-shop-toolbar__results { font-size: .875rem; color: var(--nx-text-muted); }
.nx-shop-toolbar__sort {
  padding: .5rem 1rem;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--nx-radius-pill);
  font-size: .875rem;
  background: var(--nx-surface);
  cursor: pointer;
  outline: none;
}

/* ── Pagination ── */
.nx-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  margin-top: var(--nx-space-xl);
}
.nx-pagination__btn {
  width: 40px; height: 40px;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  cursor: pointer; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-pagination__btn:hover { border-color: var(--nx-accent); color: var(--nx-accent); }
.nx-pagination__btn.active {
  background: var(--nx-black); color: var(--nx-white); border-color: var(--nx-black);
}

/* ── Mini Cart Drawer ── */
.nx-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  background: var(--nx-white);
  box-shadow: var(--nx-shadow-lg);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform .35s var(--nx-ease);
  display: flex; flex-direction: column;
}
.nx-cart-drawer.open { transform: none; }
.nx-cart-drawer__overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--nx-ease);
}
.nx-cart-drawer__overlay.open { opacity: 1; pointer-events: all; }
.nx-cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--nx-border);
  flex-shrink: 0;
}
.nx-cart-drawer__title {
  font-family: var(--nx-font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.nx-cart-drawer__close {
  width: 36px; height: 36px;
  border: none; background: var(--nx-cream);
  border-radius: var(--nx-radius);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--nx-duration) var(--nx-ease);
}
.nx-cart-drawer__close:hover { background: var(--nx-border); }
.nx-cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--nx-border) transparent;
}
.nx-cart-drawer__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nx-border);
  align-items: center;
}
.nx-cart-drawer__item-img {
  width: 72px; height: 72px;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-cream);
}
.nx-cart-drawer__item-img img { width: 100%; height: 100%; object-fit: cover; }
.nx-cart-drawer__item-name { font-weight: 500; font-size: .9375rem; }
.nx-cart-drawer__item-price { font-size: .875rem; color: var(--nx-text-muted); margin-top: .2rem; }
.nx-cart-drawer__item-price strong { color: var(--nx-black); }
.nx-cart-drawer__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--nx-border);
  flex-shrink: 0;
}
.nx-cart-drawer__subtotal {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1rem;
}
.nx-cart-drawer__points-preview {
  background: var(--nx-points-bg);
  border-radius: var(--nx-radius);
  padding: .75rem 1rem;
  font-size: .8125rem;
  color: var(--nx-accent-dark);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}

/* ── Wishlist ── */
.nx-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ── Search overlay ── */
.nx-search-overlay {
  position: fixed; inset: 0;
  background: var(--nx-black-a96);
  z-index: 10001;
  display: flex; align-items: flex-start;
  padding-top: 10vh;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--nx-ease);
}
.nx-search-overlay.open { opacity: 1; pointer-events: all; }
.nx-search-overlay__inner {
  width: 100%; max-width: 720px; margin: 0 auto; padding: 0 2rem;
}
.nx-search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,.2);
  color: var(--nx-white);
  font-family: var(--nx-font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  padding: .75rem 0 1rem;
  outline: none;
  caret-color: var(--nx-accent);
  transition: border-color .2s ease;
}
.nx-search-overlay__input:focus { border-bottom-color: var(--nx-accent); }
.nx-search-overlay__input::placeholder { color: rgba(255,255,255,.2); }
.nx-search-overlay__results {
  margin-top: 1.75rem;
  max-height: calc(100vh - 30vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

/* ── Groupes de résultats ── */
.nx-sr-group { margin-bottom: 1.25rem; }
.nx-sr-group-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nx-accent);
  padding: .25rem 0 .5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: .4rem;
}

/* ── Item de résultat ── */
.nx-sr-item a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem .5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s ease;
}
.nx-sr-item a:hover,
.nx-sr-item.focused a { background: rgba(255,255,255,.06); }

.nx-sr-thumb {
  width: 44px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
}
.nx-sr-cat-icon {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--nx-accent-a12);
  color: var(--nx-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nx-sr-info { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.nx-sr-name {
  color: rgba(255,255,255,.9);
  font-size: .9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nx-sr-name mark {
  background: transparent;
  color: var(--nx-accent);
  font-weight: 600;
}
.nx-sr-price { color: var(--nx-accent); font-size: .8125rem; }
.nx-sr-meta  { color: rgba(255,255,255,.3); font-size: .75rem; }

.nx-sr-badge {
  background: var(--nx-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ── Lien tout voir ── */
.nx-sr-all {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem .5rem;
  color: rgba(255,255,255,.45);
  font-size: .875rem;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: .5rem;
  transition: color .15s ease;
}
.nx-sr-all:hover { color: var(--nx-accent); }
.nx-sr-all strong { color: rgba(255,255,255,.7); }

/* ── Aucun résultat ── */
.nx-sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.5rem 0;
  color: rgba(255,255,255,.3);
  text-align: center;
}
.nx-sr-empty p { margin: 0; font-size: .9375rem; }
.nx-sr-empty strong { color: rgba(255,255,255,.6); }


/* ── Variations ── */
.nx-variations { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.nx-variation-label {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nx-text-muted);
  margin-bottom: .6rem;
  display: flex; gap: .5rem;
}
.nx-variation-label span { color: var(--nx-black); text-transform: none; letter-spacing: 0; }
.nx-swatch-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.nx-swatch {
  padding: .4rem .9rem;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--nx-radius-pill);
  font-size: .8125rem;
  cursor: pointer;
  transition: all var(--nx-duration) var(--nx-ease);
  user-select: none;
}
.nx-swatch:hover { border-color: var(--nx-black); }
.nx-swatch.active { background: var(--nx-black); color: var(--nx-white); border-color: var(--nx-black); }
.nx-swatch.disabled { opacity: .35; pointer-events: none; }
.nx-color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--nx-border);
  cursor: pointer;
  position: relative;
  transition: transform var(--nx-ease-spring) var(--nx-duration);
}
.nx-color-swatch:hover { transform: scale(1.1); }
.nx-color-swatch.active { border-color: var(--nx-black); box-shadow: 0 0 0 2px var(--nx-white), 0 0 0 4px var(--nx-black); }

/* ── Tabs ── */
.nx-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--nx-border);
  margin-bottom: 1.5rem;
  gap: .25rem;
}
.nx-tab-btn {
  padding: .75rem 1.25rem;
  border: none; background: transparent;
  font-size: .875rem; font-weight: 500;
  color: var(--nx-text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--nx-duration) var(--nx-ease);
}
.nx-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--nx-black);
  transform: scaleX(0);
  transition: transform var(--nx-duration) var(--nx-ease);
}
.nx-tab-btn.active { color: var(--nx-black); }
.nx-tab-btn.active::after { transform: none; }
.nx-tab-content { display: none; }
.nx-tab-content.active { display: block; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nx-shop-layout { grid-template-columns: 1fr; }
  .nx-shop-filters { position: static; }
  .nx-single-product { grid-template-columns: 1fr; }
  .nx-product-gallery { position: static; }
  .nx-cart-page { grid-template-columns: 1fr; }
  .nx-cart-sidebar { position: static; }
  .nx-checkout-page { grid-template-columns: 1fr; }
  .nx-footer__grid { grid-template-columns: 1fr 1fr; }
  .nx-account-page { grid-template-columns: 1fr; }
  .nx-account-nav { position: static; }
}
@media (max-width: 768px) {
  :root { --nx-header-h: 54px; }
  .nx-header__nav { display: none; }
  .nx-header__hamburger { display: flex; }
  .nx-cart-drawer { width: 100%; }
  .nx-loyalty-stats { grid-template-columns: 1fr 1fr; }
  .nx-footer__grid { grid-template-columns: 1fr; }
  .nx-checkout-order-summary { position: static; }
  .nx-form-row { grid-template-columns: 1fr; }
  .nx-order-card { grid-template-columns: 1fr; gap: .75rem; }
  .nx-search-overlay { padding-top: 8vh; }
}
@media (max-width: 480px) {
  .nx-products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .nx-loyalty-stats { grid-template-columns: 1fr; }
  .nx-thankyou__points-earned { flex-direction: column; text-align: center; }
}
