/* Up-Concept — upcmenu */

.upc-wrap,
.upc-overlay {
  --upc-accent: #E62D63;
  --upc-text: #0D1218;
  --upc-text-muted: #5E6672;
  --upc-border: #ECEEF2;
  --upc-bg: #FFFFFF;
  --upc-shadow: 0 20px 40px -24px rgba(13, 18, 24, 0.18);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--upc-text);
}

.upc-wrap { gap: 0; }

/* === Nav desktop === */
.upc-nav { margin: 0; }
.upc-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.upc-nav__item { position: static; }
.upc-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--upc-text);
  text-decoration: none;
  border-radius: 10px;
  letter-spacing: -0.005em;
  transition: color .15s ease, background-color .15s ease;
  position: relative;
  line-height: 1.2;
}
.upc-nav__link:hover,
.upc-nav__link:focus-visible {
  color: var(--upc-accent);
  background: rgba(230, 45, 99, 0.08);
  text-decoration: none;
}
.upc-nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--upc-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.upc-nav__item.has-dropdown:hover .upc-nav__link::after,
.upc-nav__link:hover::after,
.upc-nav__link:focus-visible::after {
  transform: scaleX(1);
}
.upc-nav__caret { transition: transform .2s ease; }
.upc-nav__item.has-dropdown:hover .upc-nav__caret { transform: rotate(180deg); }

/* === Mega dropdown === */
.upc-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--upc-bg);
  border-top: 1px solid var(--upc-border);
  box-shadow: var(--upc-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 1001;
}
.upc-nav__item.has-dropdown:hover > .upc-mega,
.upc-nav__item.has-dropdown:focus-within > .upc-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.upc-mega__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.upc-mega__col { min-width: 0; }
.upc-mega__title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--upc-text-muted);
  text-decoration: none;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--upc-border);
  transition: color .15s ease;
}
.upc-mega__title:hover { color: var(--upc-accent); text-decoration: none; }
.upc-mega__list,
.upc-mega__sublist { list-style: none; margin: 0; padding: 0; }
.upc-mega__list > li { margin: 0 0 2px; }
.upc-mega__row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 -10px;
}
.upc-mega__link {
  display: inline-block;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--upc-text);
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.35;
  transition: color .12s ease, background-color .12s ease;
}
.upc-mega__link:hover {
  color: var(--upc-accent);
  background: rgba(230, 45, 99, 0.07);
  text-decoration: none;
}
.upc-mega__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--upc-text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease, transform .22s ease;
}
.upc-mega__chevron:hover {
  background: rgba(230, 45, 99, 0.08);
  color: var(--upc-accent);
}
.upc-mega__item.open > .upc-mega__row .upc-mega__chevron { transform: rotate(180deg); color: var(--upc-accent); }

.upc-mega__sublist {
  margin: 0 0 0 14px;
  padding-left: 14px;
  border-left: 1px solid var(--upc-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease, margin-bottom .2s ease, padding-top .2s ease;
}
.upc-mega__item.open > .upc-mega__sublist {
  max-height: 400px;
  margin-bottom: 10px;
  padding-top: 4px;
}
.upc-mega__sublink {
  display: block;
  padding: 5px 8px;
  margin: 0 -8px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--upc-text-muted);
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.35;
  transition: color .12s ease, background-color .12s ease;
}
.upc-mega__sublink:hover {
  color: var(--upc-accent);
  background: rgba(230, 45, 99, 0.06);
  text-decoration: none;
}

/* === Overlay mobile === */
.upc-overlay {
  position: fixed;
  inset: 0;
  background: var(--upc-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  z-index: 2000;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.upc-overlay-open .upc-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}
.upc-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--upc-text);
  cursor: pointer;
  border-radius: 10px;
  z-index: 1;
}
.upc-overlay__close:hover { background: rgba(230, 45, 99, 0.08); color: var(--upc-accent); }

.upc-overlay__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 60px;
}
.upc-overlay__list { list-style: none; margin: 0; padding: 0; }
.upc-overlay__item { border-bottom: 1px solid var(--upc-border); }
.upc-overlay__link,
.upc-overlay__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--upc-text);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.upc-overlay__toggle svg { transition: transform .22s ease; flex-shrink: 0; }
.upc-overlay__item.open .upc-overlay__toggle svg { transform: rotate(180deg); }

.upc-overlay__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.upc-overlay__item.open .upc-overlay__panel { max-height: 2000px; }

.upc-overlay__group { padding: 4px 4px 20px; }
.upc-overlay__group-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--upc-text-muted);
  margin: 10px 0 6px;
  text-decoration: none;
}
.upc-overlay__group ul { list-style: none; margin: 0; padding: 0; }
.upc-overlay__group > ul > li > a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--upc-text);
  text-decoration: none;
}
.upc-overlay__group > ul > li > a:hover { color: var(--upc-accent); }
.upc-overlay__subitem { list-style: none; }
.upc-overlay__subrow {
  display: flex;
  align-items: center;
  gap: 2px;
}
.upc-overlay__subrow > a {
  flex: 0 1 auto;
  padding: 10px 0 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--upc-text) !important;
  text-decoration: none;
}
.upc-overlay__subrow > a:hover { color: var(--upc-accent) !important; }
.upc-overlay__subtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--upc-text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease, transform .22s ease;
}
.upc-overlay__subtoggle:hover {
  background: rgba(230, 45, 99, 0.08);
  color: var(--upc-accent);
}
.upc-overlay__subitem.open > .upc-overlay__subrow .upc-overlay__subtoggle {
  transform: rotate(180deg);
  color: var(--upc-accent);
}

.upc-overlay__sub {
  margin: 0 0 0 14px !important;
  padding-left: 14px !important;
  border-left: 1px solid var(--upc-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease, margin-bottom .2s ease, padding-top .2s ease;
}
.upc-overlay__subitem.open > .upc-overlay__sub {
  max-height: 600px;
  margin-bottom: 8px !important;
  padding-top: 4px;
}
.upc-overlay__sub li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--upc-text-muted);
  text-decoration: none;
}
.upc-overlay__sub li a:hover { color: var(--upc-accent); }

/* Masque le menu natif ps_mainmenu si résidu */
#_desktop_top_menu,
#_mobile_top_menu { display: none !important; }

/* Hide the "More info" (3 dots) icon next to Add to cart — redundant with card click */
.product-miniature .link-view,
.products .link-view,
.product-miniature .quick-view,
.products .quick-view { display: none !important; }

/* Align "Add to cart" buttons across all product miniatures.
   Approach: flexbox column + clamp text to fixed line counts so every
   miniature has the same content height, no matter the title/desc length. */
.products.catalog-products,
.products { align-items: stretch !important; }

.product-miniature {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}
.product-miniature .thumbnail-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: auto !important;
}
.product-miniature .right-block {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}
.product-miniature .product-desc {
  flex: 1 1 auto !important;
  display: flex;
  flex-direction: column;
}
.product-miniature .highlighted-informations {
  margin-top: auto !important;
}

/* Clamp title to 2 lines (keep same vertical space whatever the length) */
.product-miniature .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
}
.product-miniature .product-title a {
  display: inline;
  color: inherit;
  text-decoration: none;
}
/* Hide the extra product description under price (always inconsistent) */
.product-miniature .product_desc { display: none !important; }

/* ============================================================
   HEADER TRANSPARENT + SCROLL-TO-SOLID
   Activated on pages that have a hero image (JS adds body.upc-hero-transparent)
   ============================================================ */
body.upc-hero-transparent .header-nav,
body.upc-hero-transparent .header-top,
body.upc-hero-transparent .header-nav > .container,
body.upc-hero-transparent .header-top > .container,
body.upc-hero-transparent .header-nav .inner-wrapper,
body.upc-hero-transparent .header-top .inner-wrapper,
body.upc-hero-transparent #header-banner,
body.upc-hero-transparent .js-header-banner {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body.upc-hero-transparent #header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background: transparent !important;
}
body.upc-hero-transparent #page { padding-top: 0 !important; }
/* Scrolled state: solid white with subtle shadow, pinned on top */
body.upc-hero-transparent.upc-header-scrolled #header {
  position: fixed;
  animation: upc-header-slide .35s ease forwards;
}
body.upc-hero-transparent.upc-header-scrolled .header-nav {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--upc-border, #ECEEF2) !important;
}
body.upc-hero-transparent.upc-header-scrolled .header-top {
  background: #FFFFFF !important;
  box-shadow: 0 2px 20px -8px rgba(13, 18, 24, 0.12) !important;
}
@keyframes upc-header-slide {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* La ligne secondaire du thème (Inquiry/About/Contact éclaté) peut être masquée si
   elle vient de displayTop custom. On ne touche à rien d'autre. */
