/* ============================================================
 * HARDWAREXCHANGE HEADER STYLES
 * Single-layer rewrite. No emergency override section.
 *
 * Strategy:
 * - All header-critical selectors are prefixed with #hxHeader (or
 *   the relevant root ID) so they win the cascade against Hello
 *   Elementor's global rules without needing !important everywhere.
 * - !important is used only for color-critical text inside light
 *   dropdowns, where Hello Elementor's body anchor color and
 *   --e-global-color-accent would otherwise leak through.
 * - Explicit hex values (no var()) on those high-stakes properties.
 * ============================================================ */

:root {
  --hx-black: #1a1a1a;
  --hx-black-soft: #2a2a2a;
  --hx-orange: #E84A1C;
  --hx-orange-dark: #c93d14;
  --hx-orange-soft: #FFF0EA;
  --hx-green: #5BB94A;
  --hx-bg: #F5F2EC;
  --hx-white: #ffffff;
  --hx-text: #1a1a1a;
  --hx-text-muted: #6b6b6b;
  --hx-border: #e5e2dc;
  --hx-border-dark: #3a3a3a;
  --hx-shadow: 0 10px 40px rgba(0,0,0,0.08);
  --hx-shadow-strong: 0 20px 60px rgba(0,0,0,0.18);
  --font-display: 'Bricolage Grotesque', -apple-system, sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height-top: 72px;
  --header-height-nav: 52px;
}

/* ============================================================
 * HEADER ROOT
 * ============================================================ */
#hxHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1a1a1a;
  color: #ffffff;
  font-family: var(--font-body);
}
#hxHeader * { box-sizing: border-box; }

/* ============================================================
 * TOP BAR (logo, search, utility)
 * ============================================================ */
#hxHeader .hx-top {
  background: #1a1a1a;
  border-bottom: 1px solid #3a3a3a;
}
#hxHeader .hx-top__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-height-top);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Logo */
#hxHeader .hx-logo,
#hxHeader .hx-logo:hover,
#hxHeader .hx-logo:focus,
#hxHeader .hx-logo:visited {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
#hxHeader .hx-logo span { color: #E84A1C !important; }
#hxHeader .hx-logo sup {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
  color: #ffffff !important;
}

/* Search */
#hxHeader .hx-search {
  position: relative;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
#hxHeader .hx-search input {
  width: 100%;
  height: 44px;
  padding: 0 20px 0 48px;
  background: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #1a1a1a;
  transition: box-shadow 0.2s;
}
#hxHeader .hx-search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232,74,28,0.3);
}
#hxHeader .hx-search input::placeholder { color: #6b6b6b; }
#hxHeader .hx-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b6b6b;
}

/* Utility row */
#hxHeader .hx-utility {
  display: flex;
  align-items: center;
  gap: 8px;
}
#hxHeader .hx-util-link,
#hxHeader .hx-util-link:hover,
#hxHeader .hx-util-link:focus,
#hxHeader .hx-util-link:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  text-decoration: none !important;
  color: #ffffff !important;
  font-size: 11px;
  line-height: 1.2;
  gap: 4px;
  border-radius: 8px;
  transition: background 0.15s;
  position: relative;
  min-width: 64px;
  cursor: pointer;
  background: transparent;
  border: none;
}
#hxHeader .hx-util-link:hover { background: #2a2a2a; }
#hxHeader .hx-util-link svg {
  padding-top:12px;
  width: 22px;
  height: 38px;
}
#hxHeader .hx-util-link span {
  font-weight: 500;
  color: #ffffff !important;
}

/* Cart badge */
#hxHeader .hx-cart-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #E84A1C;
  color: #ffffff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1a1a;
}

/* ============================================================
 * LANGUAGE SWITCHER
 * ============================================================ */
#hxHeader .hx-lang { position: relative; }
#hxHeader .hx-lang__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
#hxHeader .hx-lang__trigger:hover { border-color: #ffffff; }
#hxHeader .hx-lang__trigger span { color: #ffffff; }
#hxHeader .hx-lang__flag { font-size: 16px; line-height: 1; }
#hxHeader .hx-lang__chev { transition: transform 0.2s; }
#hxHeader .hx-lang.is-open .hx-lang__chev { transform: rotate(180deg); }

#hxHeader .hx-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--hx-shadow);
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1010;
}
#hxHeader .hx-lang.is-open .hx-lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#hxHeader .hx-lang__menu a,
#hxHeader .hx-lang__menu a:hover,
#hxHeader .hx-lang__menu a:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.1s;
}
#hxHeader .hx-lang__menu a:hover { background: #F5F2EC; }
#hxHeader .hx-lang__menu a.is-active {
  background: #F5F2EC;
  color: #E84A1C !important;
}

/* ============================================================
 * CART DROPDOWN — fully reworked
 * ============================================================ */
#hxHeader .hx-cart { position: relative; }

#hxHeader .hx-cart__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--hx-shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1010;
  overflow: hidden;
  /* Reset font + color for the entire dropdown so nothing leaks from header */
  font-family: var(--font-body);
  color: #1a1a1a;
}
#hxHeader .hx-cart.is-open .hx-cart__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Force ALL text inside the dropdown to a sensible base color.
   Hello Elementor leaks color:#ffffff into here because the cart sits inside
   the dark #hxHeader root. */
#hxHeader .hx-cart__dropdown,
#hxHeader .hx-cart__dropdown * {
  color: #1a1a1a;
}

/* Header row */
#hxHeader .hx-cart__header {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e2dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}
#hxHeader .hx-cart__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a !important;
}
#hxHeader .hx-cart__count {
  font-size: 12px;
  color: #6b6b6b !important;
  font-weight: 500;
}

/* Items list */
#hxHeader .hx-cart__items {
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
}
#hxHeader .hx-cart__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e2dc;
  align-items: center;
}
#hxHeader .hx-cart__item:last-child { border-bottom: none; }

/* The clickable link wrapping image + info */
#hxHeader .hx-cart__item-link,
#hxHeader .hx-cart__item-link:hover,
#hxHeader .hx-cart__item-link:focus,
#hxHeader .hx-cart__item-link:visited {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none !important;
  color: #1a1a1a !important;
  border-radius: 8px;
  padding: 4px;
  margin: -4px;
  transition: background 0.15s;
}
#hxHeader .hx-cart__item-link:hover {
  background: #F5F2EC;
}
#hxHeader .hx-cart__item-link:hover .hx-cart__item-name {
  color: #E84A1C !important;
}
#hxHeader .hx-cart__item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #F5F2EC;
  object-fit: cover;
  border: 1px solid #e5e2dc;
}
#hxHeader .hx-cart__item-img.broken {
  object-fit: contain;
  padding: 14px;
  opacity: 0.4;
}
#hxHeader .hx-cart__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#hxHeader .hx-cart__item-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#hxHeader .hx-cart__item-meta {
  font-size: 11px;
  color: #6b6b6b !important;
}
#hxHeader .hx-cart__item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
#hxHeader .hx-cart__item-price {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  color: #1a1a1a !important;
}
#hxHeader .hx-cart__item-remove {
  background: transparent;
  border: none;
  color: #6b6b6b !important;
  cursor: pointer;
  padding: 2px;
  font-size: 11px;
  font-family: var(--font-body);
  transition: color 0.15s;
}
#hxHeader .hx-cart__item-remove:hover { color: #E84A1C !important; }

/* Empty state */
#hxHeader .hx-cart__empty {
  padding: 40px 20px;
  text-align: center;
  background: #ffffff;
}
#hxHeader .hx-cart__empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #F5F2EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #6b6b6b;
}
#hxHeader .hx-cart__empty-text {
  color: #6b6b6b !important;
  font-size: 14px;
}

/* Footer with total + buttons */
#hxHeader .hx-cart__footer {
  padding: 16px 20px;
  background: #F5F2EC;
  border-top: 1px solid #e5e2dc;
}
#hxHeader .hx-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
#hxHeader .hx-cart__total-label {
  font-size: 13px;
  color: #1a1a1a !important;
  font-weight: 500;
}
#hxHeader .hx-cart__total-vat {
  font-size: 11px;
  color: #6b6b6b !important;
  font-weight: 400;
  margin-left: 4px;
}
#hxHeader .hx-cart__total-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a !important;
}

/* Action buttons (Voir le panier + Commander) */
#hxHeader .hx-cart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#hxHeader .hx-cart__btn,
#hxHeader .hx-cart__btn:hover,
#hxHeader .hx-cart__btn:focus,
#hxHeader .hx-cart__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
#hxHeader .hx-cart__btn--secondary,
#hxHeader .hx-cart__btn--secondary:visited {
  background: #ffffff;
  color: #1a1a1a !important;
  border: 1px solid #1a1a1a;
}
#hxHeader .hx-cart__btn--secondary:hover {
  background: #1a1a1a;
  color: #ffffff !important;
  border-color: #1a1a1a;
}
#hxHeader .hx-cart__btn--primary,
#hxHeader .hx-cart__btn--primary:visited {
  background: #E84A1C;
  color: #ffffff !important;
  border: 1px solid #E84A1C;
}
#hxHeader .hx-cart__btn--primary:hover {
  background: #c93d14;
  color: #ffffff !important;
  border-color: #c93d14;
}

/* Selection color inside dropdown */
#hxHeader .hx-cart__dropdown ::selection {
  background: #E84A1C;
  color: #ffffff;
}

/* ============================================================
 * BURGER (mobile)
 * ============================================================ */
#hxHeader .hx-burger {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 10px;
  cursor: pointer;
}

/* ============================================================
 * NAV BAR (categories)
 * ============================================================ */
#hxHeader .hx-nav {
  background: #1a1a1a;
  border-bottom: 1px solid #3a3a3a;
  position: relative;
}
#hxHeader .hx-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-height-nav);
  display: flex;
  align-items: center;
  gap: 4px;
}
#hxHeader .hx-nav__item { position: relative; }
#hxHeader .hx-nav__link,
#hxHeader .hx-nav__link:hover,
#hxHeader .hx-nav__link:focus,
#hxHeader .hx-nav__link:visited {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--header-height-nav);
  padding: 0 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.15s;
  position: relative;
  white-space: nowrap;
}
#hxHeader .hx-nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #E84A1C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#hxHeader .hx-nav__item.is-open .hx-nav__link::after { transform: scaleX(1); }
#hxHeader .hx-nav__chev { transition: transform 0.2s; opacity: 0.7; }
#hxHeader .hx-nav__item.is-open .hx-nav__chev { transform: rotate(180deg); }

/* Offres pro feature button */
#hxHeader .hx-nav__link--feature,
#hxHeader .hx-nav__link--feature:hover,
#hxHeader .hx-nav__link--feature:focus,
#hxHeader .hx-nav__link--feature:visited {
  background: #E84A1C;
  color: #ffffff !important;
  margin: 8px 0 8px auto;
  border-radius: 6px;
  height: 36px;
  font-weight: 600;
  padding: 0 16px;
}
#hxHeader .hx-nav__link--feature::after { display: none; }
#hxHeader .hx-nav__link--feature:hover { background: #c93d14; }
#hxHeader .hx-nav__spacer { flex: 1; }

/* ============================================================
 * MEGA MENU (3-column dropdown)
 * ============================================================ */
#hxHeader .hx-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: var(--hx-shadow-strong);
  border-top: 1px solid #e5e2dc;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 999;
}
#hxHeader .hx-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#hxHeader .hx-mega__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
  min-height: 480px;
  max-height: 75vh;
}
#hxHeader .hx-mega__panel {
  display: none;
  grid-template-columns: 300px 1fr 320px;
  gap: 32px;
  height: 100%;
}
#hxHeader .hx-mega__panel.is-active { display: grid; }

/* Mega LEFT: L2 list */
#hxHeader .hx-mega__l2-col {
  border-right: 1px solid #e5e2dc;
  padding-right: 20px;
  overflow-y: auto;
  min-width: 0;
}
#hxHeader .hx-mega__l2-header {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b6b6b;
  margin-bottom: 14px;
  padding: 0 14px;
}
#hxHeader .hx-mega__l2,
#hxHeader .hx-mega__l2:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  line-height: 1.3;
}
#hxHeader .hx-mega__l2:hover,
#hxHeader .hx-mega__l2.is-active {
  background: #FFF0EA;
  color: #E84A1C !important;
}
#hxHeader .hx-mega__l2-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F5F2EC;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hxHeader .hx-mega__l2-icon img { width: 100%; height: 100%; object-fit: cover; }
#hxHeader .hx-mega__l2-icon.broken img {
  object-fit: contain;
  padding: 8px;
  opacity: 0.5;
}
#hxHeader .hx-mega__l2-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#hxHeader .hx-mega__l2-arrow {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}
#hxHeader .hx-mega__l2:hover .hx-mega__l2-arrow,
#hxHeader .hx-mega__l2.is-active .hx-mega__l2-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Mega MIDDLE: dynamic content */
#hxHeader .hx-mega__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-width: 0;
  padding-right: 8px;
}
#hxHeader .hx-mega__content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e2dc;
  gap: 16px;
}
#hxHeader .hx-mega__content-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
#hxHeader .hx-mega__content-link,
#hxHeader .hx-mega__content-link:hover,
#hxHeader .hx-mega__content-link:visited {
  color: #E84A1C !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
#hxHeader .hx-mega__content-link:hover { gap: 10px; }

/* L3 cards */
#hxHeader .hx-mega__l3-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#hxHeader .hx-mega__section-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  margin-bottom: 4px;
}
#hxHeader .hx-mega__l3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
#hxHeader .hx-mega__l3,
#hxHeader .hx-mega__l3:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  border: 1px solid #e5e2dc;
  background: #ffffff;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
#hxHeader .hx-mega__l3:hover {
  border-color: #E84A1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  color: #1a1a1a !important;
}
#hxHeader .hx-mega__l3-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #F5F2EC;
  flex-shrink: 0;
}
#hxHeader .hx-mega__l3-img.broken {
  object-fit: contain;
  padding: 6px;
  opacity: 0.5;
}
#hxHeader .hx-mega__l3-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#hxHeader .hx-mega__l3-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
#hxHeader .hx-mega__l3-count { font-size: 11px; color: #6b6b6b; }

/* Featured products in middle column */
#hxHeader .hx-mega__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
#hxHeader .hx-mega__product,
#hxHeader .hx-mega__product:hover,
#hxHeader .hx-mega__product:visited {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  transition: transform 0.2s;
}
#hxHeader .hx-mega__product:hover { transform: translateY(-3px); }
#hxHeader .hx-mega__product-img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #F5F2EC;
  border: 1px solid #e5e2dc;
}
#hxHeader .hx-mega__product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#hxHeader .hx-mega__product:hover .hx-mega__product-img { transform: scale(1.05); }
#hxHeader .hx-mega__product-img.broken {
  object-fit: contain;
  padding: 16px;
  opacity: 0.5;
}
#hxHeader .hx-mega__product-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 4px;
}

/* Mega RIGHT: feature image */
#hxHeader .hx-mega__feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
#hxHeader .hx-mega__feature-img,
#hxHeader .hx-mega__feature-img:hover,
#hxHeader .hx-mega__feature-img:visited {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #F5F2EC;
  display: block;
  text-decoration: none !important;
  color: #ffffff !important;
}
#hxHeader .hx-mega__feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
#hxHeader .hx-mega__feature-img img.broken {
  object-fit: contain;
  padding: 60px;
  opacity: 0.4;
}
#hxHeader .hx-mega__feature-img:hover img { transform: scale(1.05); }
#hxHeader .hx-mega__feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  pointer-events: none;
}
#hxHeader .hx-mega__feature-tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  background: #E84A1C;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  margin-bottom: 8px;
  color: #ffffff;
}
#hxHeader .hx-mega__feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

/* ============================================================
 * INFO BAR (orange strip below nav)
 * ============================================================ */
#hxHeader .hx-info-bar {
  background: #E84A1C;
  color: #ffffff;
  padding: 10px 32px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
#hxHeader .hx-info-bar,
#hxHeader .hx-info-bar * { color: #ffffff !important; }
#hxHeader .hx-info-bar a,
#hxHeader .hx-info-bar a:hover,
#hxHeader .hx-info-bar a:visited {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 500;
}

/* ============================================================
 * MOBILE OFF-CANVAS NAV (lives outside #hxHeader)
 * ============================================================ */
#hxMobileNav {
  position: fixed;
  inset: 0;
  background: #ffffff;
  color: #1a1a1a;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-family: var(--font-body);
}
#hxMobileNav.is-open { transform: translateX(0); }

#hxMobileNav .hx-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e2dc;
  flex-shrink: 0;
  color: #1a1a1a;
}
#hxMobileNav .hx-mobile-nav__close {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1a1a1a;
}
#hxMobileNav .hx-mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
#hxMobileNav .hx-mobile-nav__item { border-bottom: 1px solid #e5e2dc; }
#hxMobileNav .hx-mobile-nav__trigger,
#hxMobileNav .hx-mobile-nav__trigger:hover,
#hxMobileNav .hx-mobile-nav__trigger:visited {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none !important;
  text-align: left;
  gap: 12px;
}
#hxMobileNav .hx-mobile-nav__trigger svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}
#hxMobileNav .hx-mobile-nav__item.is-open .hx-mobile-nav__trigger svg.chev {
  transform: rotate(180deg);
}
#hxMobileNav .hx-mobile-nav__trigger-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: #F5F2EC;
  flex-shrink: 0;
}
#hxMobileNav .hx-mobile-nav__trigger-img.broken {
  object-fit: contain;
  padding: 6px;
  opacity: 0.5;
}
#hxMobileNav .hx-mobile-nav__panel {
  display: none;
  padding: 0 20px 16px 20px;
  background: #F5F2EC;
}
#hxMobileNav .hx-mobile-nav__item.is-open .hx-mobile-nav__panel {
  display: block;
}
#hxMobileNav .hx-mobile-nav__panel a,
#hxMobileNav .hx-mobile-nav__panel a:visited {
  display: block;
  padding: 10px 0;
  color: #6b6b6b !important;
  text-decoration: none !important;
  font-size: 14px;
}
#hxMobileNav .hx-mobile-nav__panel a:hover { color: #E84A1C !important; }
#hxMobileNav .hx-mobile-nav__sub-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-top: 16px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e2dc;
}
#hxMobileNav .hx-mobile-nav__sub-title:first-child { margin-top: 0; }
#hxMobileNav .hx-mobile-nav__footer {
  padding: 20px;
  border-top: 1px solid #e5e2dc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F5F2EC;
}
#hxMobileNav .hx-mobile-nav__footer a,
#hxMobileNav .hx-mobile-nav__footer a:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 8px;
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
}
#hxMobileNav .hx-mobile-langs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#hxMobileNav .hx-mobile-langs a,
#hxMobileNav .hx-mobile-langs a:visited {
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e2dc;
}
#hxMobileNav .hx-mobile-langs a.is-active {
  border-color: #E84A1C;
  color: #E84A1C !important;
}

#hxBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
#hxBackdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
 * UTILITIES
 * ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
#hxHeader ::-webkit-scrollbar { width: 6px; }
#hxHeader ::-webkit-scrollbar-track { background: transparent; }
#hxHeader ::-webkit-scrollbar-thumb { background: #e5e2dc; border-radius: 3px; }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 1200px) {
  #hxHeader .hx-mega__panel.is-active { grid-template-columns: 280px 1fr; }
  #hxHeader .hx-mega__feature { display: none; }
}
@media (max-width: 1024px) {
  #hxHeader .hx-top__inner { padding: 0 20px; gap: 16px; }
  #hxHeader .hx-nav { display: none; }
  #hxHeader .hx-burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #hxHeader .hx-util-link span { display: none; }
  #hxHeader .hx-util-link svg { width: 24px; height: 24px; }
  #hxHeader .hx-util-link {
    min-width: auto;
    padding: 10px;
  }
  #hxHeader .hx-lang { display: none; }
}
@media (max-width: 640px) {
  :root { --header-height-top: 60px; }
  #hxHeader .hx-top__inner { padding: 0 14px; gap: 10px; }
  #hxHeader .hx-logo { font-size: 18px; }
  #hxHeader .hx-search input {
    height: 38px;
    font-size: 13px;
    padding-left: 40px;
  }
  #hxHeader .hx-search__icon { left: 14px; }
  #hxHeader .hx-info-bar { padding: 8px 14px; font-size: 11px; }
  #hxHeader .hx-utility { gap: 0; }
  #hxHeader .hx-cart__dropdown {
    width: calc(100vw - 28px);
    right: -14px;
  }
}