/* ==========================================================
   Aura By HOB > Desktop Mega Menu
   Fichier : assets/css/layout/mega-menu-desktop.css
   ========================================================== */

.aura-mega-menu-desktop {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1;
  --aura-mega-menu-sale-badge-background: var(--aura-color-honey);
  --aura-mega-menu-sale-badge-border: var(--aura-color-honey);
  --aura-mega-menu-sale-badge-color: var(--aura-color-white);
  display: block;
  width: 100%;
  max-width: none;
  height: min(clamp(560px, 46vw, 680px), calc(100vh - var(--aura-header-height) - 10px));
  overflow: hidden;
  background: var(--aura-color-white);
  border-top: 1px solid rgba(var(--aura-color-dusty-pink-rgb), 0.42);
  border-bottom: 1px solid rgba(var(--aura-color-dusty-pink-rgb), 0.34);
  box-shadow: 0 28px 60px rgba(var(--aura-color-burgundy-rgb), 0.09);
  color: var(--aura-color-burgundy);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  visibility: hidden;
  transition: opacity 260ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 340ms;
  will-change: opacity, transform;
}

.aura-mega-menu-desktop.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition-delay: 0s;
}

.aura-header.is-mega-menu-open {
  background: var(--aura-header-background);
  border-bottom-color: var(--aura-header-border);
}

.aura-header.is-mega-menu-open::before {
  opacity: var(--aura-header-nebula-opacity);
}

.aura-mega-menu-desktop__inner {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 2.7fr) minmax(300px, 0.95fr);
  width: 100%;
  height: 100%;
  min-width: 0;
}

.aura-mega-menu-desktop__tabs-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 3vw, 52px);
  min-width: 0;
  padding: clamp(46px, 4.2vw, 70px) clamp(34px, 3.5vw, 58px);
  border-right: 1px solid rgba(var(--aura-color-dusty-pink-rgb), 0.28);
  background: linear-gradient(180deg, var(--aura-color-white), var(--aura-color-egg));
}

.aura-mega-menu-desktop__tabs-column {
  min-width: 0;
}

.aura-mega-menu-desktop__title {
  margin: 0 0 32px;
  color: var(--aura-color-burgundy);
  font-family: var(--aura-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.aura-mega-menu-desktop__tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.aura-mega-menu-desktop__tabs-decoration {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  margin-top: auto;
  pointer-events: none;
}

.aura-mega-menu-desktop__tabs-icon {
  display: block;
  width: clamp(132px, 12vw, 210px);
  max-width: 100%;
  height: auto;
  opacity: 1;
}

.aura-mega-menu-desktop__tab {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  width: 100%;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: rgba(var(--aura-color-burgundy-rgb), 0.72);
  font-family: var(--aura-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  transition: color 220ms ease, transform 260ms ease;
}

.aura-mega-menu-desktop__tab::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--aura-color-soft-rose);
  content: "";
  opacity: 0;
  transform: translate3d(0, -50%, 0) scale(0.45);
  transition: opacity 220ms ease, transform 260ms ease;
}

.aura-mega-menu-desktop__tab:hover,
.aura-mega-menu-desktop__tab:focus-visible,
.aura-mega-menu-desktop__tab.is-active {
  color: var(--aura-color-burgundy);
}

.aura-mega-menu-desktop__tab:hover,
.aura-mega-menu-desktop__tab:focus-visible {
  transform: translate3d(2px, 0, 0);
}

.aura-mega-menu-desktop__tab.is-active::before {
  opacity: 1;
  transform: translate3d(0, -50%, 0) scale(1);
}

.aura-mega-menu-desktop__products-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  align-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(46px, 4vw, 68px) clamp(28px, 3vw, 54px);
  gap: clamp(28px, 2.8vw, 44px);
  background: var(--aura-color-white);
}

.aura-mega-menu-desktop__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  column-gap: clamp(24px, 2.8vw, 46px);
  row-gap: 0;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 170ms ease, transform 190ms ease;
}

.aura-mega-menu-desktop.is-switching .aura-mega-menu-desktop__products,
.aura-mega-menu-desktop.is-hero-loading .aura-mega-menu-desktop__hero-image,
.aura-mega-menu-desktop.is-hero-loading .aura-mega-menu-desktop__hero-label,
.aura-mega-menu-desktop.is-switching .aura-mega-menu-desktop__hero-image,
.aura-mega-menu-desktop.is-switching .aura-mega-menu-desktop__hero-label {
  opacity: 0;
  transform: translate3d(0, 4px, 0);
}

.aura-mega-menu-desktop__product {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: var(--aura-color-white);
  line-height: 0;
  text-decoration: none;
}

.aura-mega-menu-desktop__product-media {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 0.72;
  height: 100%;
  overflow: hidden;
  background: var(--aura-color-egg);
  line-height: 0;
}

.aura-mega-menu-desktop__product-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
}

.aura-mega-menu-desktop__product-image-wrap picture,
.aura-mega-menu-desktop__product-image-wrap figure {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.aura-mega-menu-desktop__product-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
      background: linear-gradient(to top, rgba(var(--aura-color-burgundy-rgb), 0.50) 0%, rgba(var(--aura-color-burgundy-rgb), 0.25) 13%, rgba(var(--aura-color-burgundy-rgb), 0) 100%);
  content: "";
  opacity: 0.72;
  transition: opacity 260ms ease;
}

.aura-mega-menu-desktop__product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  line-height: 0;
  transform: scale(1.001);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-mega-menu-desktop__product-image-wrap > img,
.aura-mega-menu-desktop__product-image-wrap > img.aura-mega-menu-desktop__product-image,
.aura-mega-menu-desktop__product-image-wrap picture > img,
.aura-mega-menu-desktop__product-image-wrap picture > img.aura-mega-menu-desktop__product-image,
.aura-mega-menu-desktop__product-image-wrap figure > img,
.aura-mega-menu-desktop__product-image-wrap figure > img.aura-mega-menu-desktop__product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  line-height: 0;
}

.aura-mega-menu-desktop__product:hover .aura-mega-menu-desktop__product-image,
.aura-mega-menu-desktop__product:focus-visible .aura-mega-menu-desktop__product-image {
  transform: scale(1.045);
}

.aura-mega-menu-desktop__product:hover .aura-mega-menu-desktop__product-media::after,
.aura-mega-menu-desktop__product:focus-visible .aura-mega-menu-desktop__product-media::after {
  opacity: 0.84;
}

.aura-mega-menu-desktop__product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 28px);
  gap: 6px;
  pointer-events: none;
}

.aura-mega-menu-desktop__product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 24px;
  padding: 5px 9px 4px;
  border: 1px solid rgba(var(--aura-color-white-rgb));
  border-radius: 999px;
  background: rgba(var(--aura-color-white-rgb));
  color: var(--aura-color-burgundy);
  font-family: var(--aura-font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.105em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  overflow-wrap: anywhere;
}

.aura-mega-menu-desktop__product-badge[data-badge-type="sale"] {
  background: var(--aura-mega-menu-sale-badge-background);
  border-color: var(--aura-mega-menu-sale-badge-border);
  color: var(--aura-mega-menu-sale-badge-color);
  font-weight: 600;
}

.aura-mega-menu-desktop__product-badge[data-badge-type="stock"] {
  background: rgba(75, 28, 34, 0.68);
  border-color: rgba(var(--aura-color-white-rgb), 0.34);
  color: var(--aura-color-white);
}

.aura-mega-menu-desktop__product-text {
  position: absolute;
  right: 18px;
  bottom: 24px;
  left: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.aura-mega-menu-desktop__product-title {
    max-width: 220px;
    color: var(--aura-color-white);
    font-family: var(--aura-font-heading);
    font-size: clamp(11px, 0.78vw, 13px);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.aura-mega-menu-desktop__product-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 5px 12px 6px;
  border: 1px solid rgba(var(--aura-color-white-rgb), 0.48);
  border-radius: 999px;
  background: rgba(var(--aura-color-white-rgb), 0.18);
  color: var(--aura-color-white);
  font-family: var(--aura-font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.aura-mega-menu-desktop__product-price del {
  margin-right: 6px;
  color: rgba(var(--aura-color-white-rgb), 0.66);
}

.aura-mega-menu-desktop__product-price ins {
  text-decoration: none;
}

.aura-mega-menu-desktop__product-price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aura-mega-menu-desktop__collection-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 146px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(var(--aura-color-burgundy-rgb), 0.88);
  border-radius: 999px;
  background: var(--aura-color-burgundy);
  color: var(--aura-color-white);
  font-family: var(--aura-font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.095em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 240ms ease;
}

.aura-mega-menu-desktop__collection-link:hover,
.aura-mega-menu-desktop__collection-link:focus-visible {
  border-color: var(--aura-color-clay);
  background: var(--aura-color-clay);
  color: var(--aura-color-white);
  transform: translate3d(0, -1px, 0);
}

.aura-mega-menu-desktop__hero {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  line-height: 0;
  background: var(--aura-color-egg);
  color: var(--aura-color-white);
  text-decoration: none;
}



.aura-mega-menu-desktop__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.001);
  transition: opacity 170ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-mega-menu-desktop__hero:hover .aura-mega-menu-desktop__hero-image,
.aura-mega-menu-desktop__hero:focus-visible .aura-mega-menu-desktop__hero-image {
  transform: scale(1.035);
}

.aura-mega-menu-desktop__hero-label {
  position: absolute;
  right: clamp(22px, 2.7vw, 42px);
  bottom: clamp(30px, 3vw, 52px);
  left: clamp(22px, 2.7vw, 42px);
  z-index: 1;
  color: var(--aura-color-white);
  font-family: var(--aura-font-heading);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(var(--aura-color-burgundy-rgb), 0.26);
  transition: opacity 170ms ease, transform 190ms ease;
}

.aura-mega-menu-desktop__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  background: var(--aura-color-egg);
  color: rgba(var(--aura-color-burgundy-rgb), 0.74);
  font-family: var(--aura-font-body);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .aura-mega-menu-desktop__inner {
    grid-template-columns: minmax(150px, 0.58fr) minmax(0, 2.48fr) minmax(220px, 0.84fr);
  }

  .aura-mega-menu-desktop__products-panel {
    padding-right: 28px;
    padding-left: 28px;
  }

  .aura-mega-menu-desktop__products {
    column-gap: clamp(18px, 2.2vw, 28px);
  }

  .aura-mega-menu-desktop__product-media {
    min-height: 0;
  }
}

@media (max-width: 899px) {
  .aura-mega-menu-desktop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aura-mega-menu-desktop,
  .aura-mega-menu-desktop *,
  .aura-mega-menu-desktop *::before,
  .aura-mega-menu-desktop *::after {
    transition-duration: 1ms !important;
  }
}
