/**
 * HAFSOIT BEAUTY — Luxe international (Zara · COS · Massimo Dutti · Apple)
 * Fond uni, typographie éditoriale, produits mis en avant sans décoratif.
 */

:root {
  --bg: #faf8f4;
  --bg-sand: #faf8f4;
  --bg-warm: #f5f2ec;
  --bg-brown-soft: #eee9e0;
  --bg-gradient: none;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --surface-muted: #f3efe8;
  --card-bg: #ffffff;
  --text: #141210;
  --text-muted: #6e6458;
  --text-light: #8a8074;
  --border: rgba(20, 18, 16, 0.08);
  --shadow: rgba(20, 18, 16, 0.06);
  --shadow-lg: rgba(20, 18, 16, 0.1);
  --ed-bg: #faf8f4;
  --ed-ink: #141210;
  --ed-muted: #6e6458;
  --ed-line: rgba(20, 18, 16, 0.08);
  --luxe-section-y: 120px;
  --luxe-section-y-mobile: 72px;
  --luxe-max: 1280px;
  --luxe-product-scale: 1.18;
  --luxe-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --luxe-duration: 0.6s;
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-med: 0.6s;
  --duration-fast: 0.6s;
}

/* ——— Fond : aucun motif ——— */
body.hb-luxe,
body.hb-luxe.hb-editorial {
  background: #faf8f4 !important;
  background-image: none !important;
  background-attachment: scroll !important;
  color: var(--text);
}

body.hb-luxe::before,
body.hb-luxe::after,
body.hb-luxe.hb-editorial::before,
body.hb-luxe.hb-editorial::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

body.hb-luxe .flag-banner,
body.hb-luxe .hb-nouveautes-grain {
  display: none !important;
}

body.hb-luxe .hb-app,
body.hb-luxe .site-top {
  background: transparent;
}

/* ——— Header minimal ——— */
body.hb-luxe header {
  background: rgba(250, 248, 244, 0.88) !important;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(20, 18, 16, 0.06) !important;
  box-shadow: none !important;
}

body.hb-luxe header.scrolled {
  background: rgba(250, 248, 244, 0.96) !important;
  box-shadow: 0 1px 0 rgba(20, 18, 16, 0.05) !important;
}

body.hb-luxe .nav-links a,
body.hb-luxe .logo-header .logo-text {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
}

body.hb-luxe .nav-links a.is-route-active {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

/* ——— Typographie éditoriale ——— */
body.hb-luxe h1,
body.hb-luxe h2,
body.hb-luxe h3,
body.hb-luxe .section-title h2,
body.hb-luxe .hb-maison-collections__head h2,
body.hb-luxe .hb-nouveautes-header h2 {
  font-family: var(--font-display, 'Instrument Serif', 'Cormorant Garamond', serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  color: var(--text) !important;
  line-height: 1.08;
}

body.hb-luxe .section-title {
  margin-bottom: clamp(48px, 7vw, 72px);
  max-width: var(--luxe-max);
}

body.hb-luxe .section-title h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem) !important;
  margin-bottom: 14px;
}

body.hb-luxe .section-title .ornament,
body.hb-luxe .hb-nouveautes-rule,
body.hb-luxe .ornament {
  display: none !important;
}

body.hb-luxe .section-title p,
body.hb-luxe .hb-nouveautes-kicker,
body.hb-luxe .hb-editorial-intro__eyebrow,
body.hb-luxe .hb-maison-collections__head p {
  font-family: 'Poppins', sans-serif !important;
  font-style: normal !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
}

body.hb-luxe .hb-editorial-intro__lead {
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--text);
  letter-spacing: 0.02em;
}

body.hb-luxe .hb-editorial-intro {
  border-bottom-color: var(--ed-line);
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

/* ——— Transitions lentes & fluides ——— */
body.hb-luxe a,
body.hb-luxe button,
body.hb-luxe .product-card,
body.hb-luxe .product-card-shell,
body.hb-luxe .category-card,
body.hb-luxe .hb-maison-collection,
body.hb-luxe .hb-nouveaute-card,
body.hb-luxe .cart-btn,
body.hb-luxe .add-to-cart,
body.hb-luxe header,
body.hb-luxe .nav-links a,
body.hb-luxe .product-media-stage,
body.hb-luxe .product-media-wrap .product-img,
body.hb-luxe .hb-maison-hero__overlay,
body.hb-luxe .hb-maison-hero__media {
  transition-duration: var(--luxe-duration) !important;
  transition-timing-function: var(--luxe-ease) !important;
}

/* ——— Sections : respiration luxe (120px / 72px) ——— */
body.hb-luxe section {
  padding: var(--luxe-section-y) clamp(24px, 5vw, 48px) !important;
  max-width: var(--luxe-max) !important;
}

@media (max-width: 768px) {
  body.hb-luxe section:not(.hero):not(.hb-maison-hero):not(#accueil) {
    padding-top: var(--luxe-section-y-mobile) !important;
    padding-bottom: var(--luxe-section-y-mobile) !important;
  }

  body.hb-luxe .hb-editorial-intro,
  body.hb-luxe .hb-maison-collections,
  body.hb-luxe .home-trending,
  body.hb-luxe #produits,
  body.hb-luxe #nouveautes {
    padding-top: var(--luxe-section-y-mobile) !important;
    padding-bottom: var(--luxe-section-y-mobile) !important;
  }
}

body.hb-luxe section.hero,
body.hb-luxe .hb-maison-hero,
body.hb-luxe #accueil {
  padding: 0 !important;
  max-width: none !important;
}

/* ——— Hero & collections plein écran ——— */
body.hb-luxe .site-top,
body.hb-luxe .hb-maison-hero,
body.hb-luxe #accueil.hb-maison-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.hb-luxe .hb-maison-hero__video,
body.hb-luxe .hero-video-wrapper,
body.hb-luxe .hb-maison-hero__video-el {
  width: 100vw !important;
  max-width: 100vw !important;
}

body.hb-luxe .hb-maison-collections {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: var(--luxe-section-y) !important;
  padding-bottom: var(--luxe-section-y) !important;
}

body.hb-luxe .hb-maison-collections__head {
  padding: 0 clamp(24px, 5vw, 48px);
}

body.hb-luxe .hb-maison-collections__grid {
  max-width: none !important;
  width: 100%;
  padding: 0 clamp(8px, 2vw, 20px);
  gap: clamp(8px, 1.2vw, 14px) !important;
}

body.hb-luxe .hb-maison-collection {
  min-height: clamp(420px, 52vh, 640px);
}

@media (max-width: 900px) {
  body.hb-luxe .hb-maison-collections__grid {
    max-width: none !important;
    padding: 0 clamp(12px, 4vw, 20px);
  }
}

/* ——— Typo hero magazine ——— */
body.hb-luxe .hb-maison-hero__title {
  font-family: var(--font-display, 'Instrument Serif', serif) !important;
  font-size: clamp(3.5rem, 7vw, 6rem) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: 0.01em !important;
  max-width: 12ch !important;
}

body.hb-luxe .hb-maison-hero__eyebrow {
  font-size: 0.65rem !important;
  letter-spacing: 0.38em !important;
  font-weight: 500 !important;
}

body.hb-luxe .hb-maison-hero__lead {
  font-size: clamp(0.75rem, 1.6vw, 0.875rem) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  max-width: 42ch;
}

body.hb-luxe .hb-maison-collection__label,
body.hb-luxe .category-label,
body.hb-luxe .product-category {
  font-size: 0.65rem !important;
  letter-spacing: 0.34em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

body.hb-luxe .hb-home-block,
body.hb-luxe .home-trending,
body.hb-luxe #produits {
  margin-top: 0;
  padding-bottom: 40px !important;
  margin-bottom: 0 !important;
}

body.hb-luxe .shop-pagination {
  padding-bottom: 16px !important;
  margin-bottom: 0 !important;
}

/* ——— Grille produits ——— */
body.hb-luxe .products,
body.hb-luxe #produits .products,
body.hb-luxe .products--home {
  gap: clamp(40px, 5vw, 56px) clamp(28px, 3.5vw, 40px) !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

body.hb-luxe .product-card,
body.hb-luxe #produits .product-card {
  background: transparent !important;
}

body.hb-luxe .product-card-shell,
body.hb-luxe #produits .product-card-shell,
body.hb-luxe .products--home .product-card-shell {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.hb-luxe .product-card-shell::before,
body.hb-luxe #produits .product-card-shell::before,
body.hb-luxe .products--home .product-card-shell::before {
  display: none !important;
}

/* Visuels +18 % */
body.hb-luxe .product-media-stage,
body.hb-luxe #produits .product-media-stage,
body.hb-luxe .products--home .product-media-stage,
body.hb-luxe .hb-nouveaute-img-stage {
  transform: scale(var(--luxe-product-scale));
  transform-origin: center 78%;
}

body.hb-luxe .product-media-wrap .product-img,
body.hb-luxe #produits .product-media-wrap .product-img,
body.hb-luxe .hb-nouveaute-media img {
  padding: 0 4% 2% !important;
  object-position: center 80% !important;
  filter:
    drop-shadow(0 22px 36px rgba(20, 18, 16, 0.09))
    drop-shadow(0 8px 18px rgba(20, 18, 16, 0.05)) !important;
  -webkit-filter:
    drop-shadow(0 22px 36px rgba(20, 18, 16, 0.09))
    drop-shadow(0 8px 18px rgba(20, 18, 16, 0.05)) !important;
}

body.hb-luxe .product-media-stage::after,
body.hb-luxe #produits .product-media-stage::after {
  width: 58%;
  height: 14px;
  bottom: 5%;
  opacity: 0.55;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(20, 18, 16, 0.1) 0%,
    rgba(20, 18, 16, 0.03) 45%,
    transparent 72%
  );
}

body.hb-luxe .product-info,
body.hb-luxe #produits .product-info {
  padding-top: 18px !important;
  text-align: left;
  background: transparent !important;
}

body.hb-luxe .product-info h3,
body.hb-luxe .product-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  margin-bottom: 6px;
}

body.hb-luxe .product-price,
body.hb-luxe .price {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  color: var(--text-muted) !important;
}

/* Prix au survol uniquement (desktop) — Hermès / Bottega */
@media (hover: hover) and (pointer: fine) {
  body.hb-luxe .product-card .product-price,
  body.hb-luxe .hb-nouveaute-card .hb-nouveaute-price-wrap {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity var(--luxe-duration) var(--luxe-ease),
      transform var(--luxe-duration) var(--luxe-ease);
    pointer-events: none;
  }

  body.hb-luxe .product-card:hover .product-price,
  body.hb-luxe .product-card:focus-within .product-price,
  body.hb-luxe .hb-nouveaute-card:hover .hb-nouveaute-price-wrap,
  body.hb-luxe .hb-nouveaute-card:focus-within .hb-nouveaute-price-wrap {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.hb-luxe .product-card:hover .product-card-shell,
  body.hb-luxe #produits .product-card:hover .product-card-shell {
    transform: translateY(-5px) !important;
    box-shadow: 0 28px 56px rgba(20, 18, 16, 0.08) !important;
    border: none !important;
    background: transparent !important;
  }

  body.hb-luxe .product-card:hover .product-image,
  body.hb-luxe #produits .product-card:hover .product-image {
    background: transparent !important;
    border-radius: 0 !important;
  }

  body.hb-luxe .product-card:hover .product-media-stage,
  body.hb-luxe #produits .product-card:hover .product-media-stage {
    transform: scale(1.22);
  }
}

/* ——— Boutons minimalistes ——— */
body.hb-luxe .cart-btn,
body.hb-luxe .add-to-cart,
body.hb-luxe .product-cart-overlay .add-to-cart,
body.hb-luxe .hb-maison-collection__link,
body.hb-luxe .category-cta,
body.hb-luxe button.checkout-btn,
body.hb-luxe .hero-sultana-cta,
body.hb-luxe .hb-maison-hero__overlay a {
  background: var(--text) !important;
  background-image: none !important;
  color: #faf8f4 !important;
  border: 1px solid var(--text) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  transition:
    background 0.45s var(--ease-luxe, cubic-bezier(0.22, 1, 0.36, 1)),
    color 0.45s var(--ease-luxe, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.45s var(--ease-luxe, cubic-bezier(0.22, 1, 0.36, 1)) !important;
}

body.hb-luxe .cart-btn:hover,
body.hb-luxe .add-to-cart:hover,
body.hb-luxe .category-cta:hover,
body.hb-luxe button.checkout-btn:hover {
  background: transparent !important;
  color: var(--text) !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

body.hb-luxe .fav-btn,
body.hb-luxe .lang-switch button {
  border-radius: 0 !important;
  border-color: var(--border) !important;
  background: transparent !important;
}

body.hb-luxe .lang-switch button.active {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: #faf8f4 !important;
}

/* ——— Catégories épurées ——— */
body.hb-luxe .category-card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: 0 12px 40px rgba(20, 18, 16, 0.06) !important;
}

body.hb-luxe .category-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 45%,
    rgba(20, 18, 16, 0.55) 100%
  ) !important;
}

body.hb-luxe .category-label {
  color: rgba(250, 248, 244, 0.85) !important;
  letter-spacing: 0.3em;
}

/* ——— Collections maison ——— */
body.hb-luxe .hb-maison-collections {
  padding-top: var(--luxe-section-y);
  padding-bottom: var(--luxe-section-y);
}

body.hb-luxe .hb-maison-collection {
  border-radius: 0 !important;
  overflow: hidden;
}

body.hb-luxe .hb-maison-collection__shade {
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(20, 18, 16, 0.5) 100%
  ) !important;
}

body.hb-luxe .hb-maison-trust {
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
  background: #ffffff;
}

body.hb-luxe .hb-maison-trust__list li::before {
  color: var(--accent) !important;
}

/* ——— Nouveautés ——— */
body.hb-luxe #nouveautes.hb-nouveautes {
  background: transparent !important;
}

body.hb-luxe .hb-nouveaute-card-inner {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.hb-luxe .hb-nouveaute-card-inner::before {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  body.hb-luxe .hb-nouveaute-card:hover .hb-nouveaute-card-inner {
    box-shadow: 0 24px 48px rgba(20, 18, 16, 0.07) !important;
    transform: translateY(-4px);
  }
}

/* ——— Toolbar boutique ——— */
body.hb-luxe .shop-toolbar-advanced,
body.hb-luxe .shop-filters {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hb-luxe select,
body.hb-luxe .shop-filters select {
  border-radius: 0 !important;
  border-color: var(--border) !important;
  background: #ffffff !important;
}

body.hb-luxe .logo-header .logo-image,
#hb-preloader img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  filter: none !important;
}

/* ——— À propos / culture : moins décoratif ——— */
body.hb-luxe .about-section,
body.hb-luxe .culture-section,
body.hb-luxe .islands-section {
  background: transparent !important;
}

body.hb-luxe .about-value,
body.hb-luxe .island-card {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hb-luxe .about-founder__list li::before {
  color: var(--accent) !important;
}

/* ——— Ticker annonces discret ——— */
body.hb-luxe .hb-ticker-wrap {
  background: #141210 !important;
  border-bottom: none !important;
}

body.hb-luxe .hb-ticker::before,
body.hb-luxe .hb-ticker::after {
  display: none !important;
}

/* ——— Mobile : défilement horizontal produits (snap) ——— */
@media (max-width: 768px) {
  body.hb-luxe .products,
  body.hb-luxe #produits .products,
  body.hb-luxe .products--home,
  body.hb-luxe #home-trending-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px !important;
    padding: 0 clamp(16px, 5vw, 24px) 8px !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: unset !important;
  }

  body.hb-luxe .products::-webkit-scrollbar,
  body.hb-luxe #produits .products::-webkit-scrollbar,
  body.hb-luxe .products--home::-webkit-scrollbar {
    display: none;
  }

  body.hb-luxe .product-card {
    flex: 0 0 min(76vw, 300px) !important;
    width: min(76vw, 300px) !important;
    max-width: min(76vw, 300px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.hb-luxe .product-media-stage,
  body.hb-luxe #produits .product-media-stage {
    transform: scale(1.12);
  }
}

/* ——— Curseur doré (desktop) ——— */
.hb-luxe-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 1px solid rgba(155, 124, 55, 0.55);
  background: rgba(201, 169, 98, 0.12);
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity var(--luxe-duration) var(--luxe-ease),
    transform var(--luxe-duration) var(--luxe-ease),
    width var(--luxe-duration) var(--luxe-ease),
    height var(--luxe-duration) var(--luxe-ease),
    background var(--luxe-duration) var(--luxe-ease);
  mix-blend-mode: multiply;
}

.hb-luxe-cursor.is-active {
  opacity: 1;
  transform: scale(1);
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  background: rgba(201, 169, 98, 0.22);
}

body.hb-luxe-cursor-on .product-card,
body.hb-luxe-cursor-on .hb-nouveaute-card {
  cursor: none !important;
}

body.hb-luxe-cursor-on a,
body.hb-luxe-cursor-on button,
body.hb-luxe-cursor-on input,
body.hb-luxe-cursor-on select,
body.hb-luxe-cursor-on textarea,
body.hb-luxe-cursor-on label,
body.hb-luxe-cursor-on [role="button"],
body.hb-luxe-cursor-on .add-to-cart,
body.hb-luxe-cursor-on .product-fav,
body.hb-luxe-cursor-on .icon-btn {
  cursor: pointer !important;
}

/* ——— Signature dorée header ——— */
body.hb-luxe .logo-wordmark {
  position: relative;
}

body.hb-luxe .logo-wordmark__signature {
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 7px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(155, 124, 55, 0.15) 8%,
    rgba(155, 124, 55, 0.85) 42%,
    rgba(196, 169, 98, 0.75) 58%,
    rgba(155, 124, 55, 0.15) 92%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  animation: hb-luxe-signature 1.35s var(--luxe-ease) 0.4s forwards;
}

@keyframes hb-luxe-signature {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hb-luxe .logo-wordmark__signature {
    animation: none;
    transform: scaleX(1);
  }
}

body.hb-luxe #hb-ambient-toggle[aria-pressed="false"] {
  opacity: 0.45;
}

/* ——— Anti-luxe : pas d'urgence ni de bruit ——— */
body.hb-luxe .product-stock-meta,
body.hb-luxe .product-card .product-desc {
  display: none !important;
}

body.hb-luxe .product-stock.low,
body.hb-luxe .product-stock.preorder {
  display: none !important;
}

body.hb-luxe .product-card .badge {
  animation: none !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  padding: 4px 8px !important;
}

body.hb-luxe .product-card .badge.promo,
body.hb-luxe .product-card .badge.rupture {
  display: none !important;
}

body.hb-luxe .hb-live-toast {
  opacity: 0.92;
  animation: none !important;
}

body.hb-luxe .hb-maison-hero__cta {
  border-radius: 0 !important;
  transition: all var(--luxe-duration) var(--luxe-ease) !important;
}
