/* VapEsence clone candidate V20: familia visual 03A.
   Scope: header, campaign continuity and trust strip only. */

@media (min-width: 992px) {
  #iqitmegamenu-wrapper,
  #iqitmegamenu-wrapper .iqit-megamenu-container,
  #iqitmegamenu-horizontal,
  .sticky-desktop-wrapper #iqitmegamenu-horizontal,
  #cbp-hrmenu,
  #cbp-hrmenu > ul {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f1 100%) !important;
    background-image: linear-gradient(180deg, #f8fafc 0%, #e2e8f1 100%) !important;
  }

  #iqitmegamenu-wrapper {
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  #iqitmegamenu-wrapper::before {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f1 100%) !important;
    background-image: linear-gradient(180deg, #f8fafc 0%, #e2e8f1 100%) !important;
  }

  #iqitmegamenu-wrapper::after {
    position: absolute;
    z-index: 10050;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: rgba(0, 16, 42, .72);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

  #cbp-hrmenu > ul > li > a.nav-link,
  #cbp-hrmenu.cbp-horizontal > ul > li > a {
    background: transparent !important;
    color: #071a39 !important;
  }

  #cbp-hrmenu > ul > li:hover > a.nav-link,
  #cbp-hrmenu > ul > li.cbp-hropen > a.nav-link,
  #cbp-hrmenu > ul > li.current > a.nav-link {
    background: rgba(0, 16, 42, .055) !important;
    box-shadow: inset 0 -2px 0 #1858d6 !important;
    color: #1148b8 !important;
  }
}

#index .rev_slider_wrapper,
#index [class*="rev_slider_wrapper"],
#index .vapesence-campaign-shell,
#index .vapesence-campaign-banner {
  margin-top: 0 !important;
}

#index .vapesence-campaign-shell::after {
  height: 12px !important;
  background: #00102a !important;
}

#index .vs-posthero .elementor-element-bazaz48,
#index .vs-posthero .usp-band,
#index .vs-posthero .usp-row {
  background: #f3f5f8 !important;
  background-image: none !important;
}

#index .vs-posthero .usp-item + .usp-item {
  border-left-color: rgba(0, 16, 42, .12) !important;
}

#index .vs-posthero .vs-usp-icon,
#index .vs-posthero .vs-usp-icon svg {
  color: #1858d6 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

#index .vs-posthero .usp-title {
  color: #071a39 !important;
}

#index .vs-posthero .usp-subtitle,
#index .vs-posthero .usp-item small,
#index .vs-posthero .usp-item p {
  color: #617087 !important;
}

@media (max-width: 991.98px) {
  #header .zone_upp_mobile {
    display: none !important;
  }

  #header,
  #mobile-header,
  #mobile-header-sticky,
  #mobile-header-sticky > .container,
  #mobile-header .mobile-main-bar {
    min-height: 110px !important;
    height: 110px !important;
  }

  #mobile-header-sticky > .container {
    padding: 0 10px !important;
  }

  #mobile-header .mobile-main-bar {
    position: relative;
  }

  #mobile-header .row-mobile-header {
    position: relative;
    min-height: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  #mobile-header .col-mobile-logo {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  #mobile-header .col-mobile-logo .logo {
    width: auto !important;
    max-width: 174px !important;
    max-height: 34px !important;
  }

  #mobile-btn-search {
    position: static !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
  }

  #mobile-btn-search > .m-nav-btn {
    display: none !important;
  }

  #search-widget-mobile {
    position: absolute !important;
    top: 60px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 4 !important;
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  #search-widget-mobile form,
  #search-widget-mobile .input-group,
  #search-widget-mobile .form-search-control {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  #search-widget-mobile .form-search-control {
    padding: 0 44px 0 15px !important;
    border: 1px solid rgba(255, 255, 255, .19) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  #search-widget-mobile .form-search-control::placeholder {
    color: rgba(255, 255, 255, .72) !important;
  }

  #search-widget-mobile .search-btn {
    top: 0 !important;
    right: 0 !important;
    display: flex !important;
    width: 42px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
  }

  #index .vapesence-campaign-banner img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 730 / 590 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  #index .vs-posthero .usp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #index .vs-posthero .usp-item {
    min-height: 58px !important;
    padding: 8px 10px !important;
  }

  #index .vs-posthero .usp-item:nth-child(3) {
    border-left: 0 !important;
  }

  #index .vs-posthero .usp-item:nth-child(n+3) {
    border-top: 1px solid rgba(0, 16, 42, .10) !important;
  }

  #mobile-header .row-mobile-header {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 36px 36px !important;
    grid-template-rows: 56px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  #mobile-header .col-mobile-btn-menu {
    grid-column: 1;
  }

  #mobile-header .col-mobile-logo {
    grid-column: 2;
    width: auto !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 6px !important;
    align-self: center !important;
  }

  #mobile-header .col-mobile-logo > a {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #mobile-header .col-mobile-btn-account {
    grid-column: 3;
  }

  #mobile-header .col-mobile-btn-cart {
    grid-column: 4;
  }

  #mobile-header .col-mobile-btn > .m-nav-btn > span,
  #mobile-header .col-mobile-btn-cart .m-nav-btn > span {
    display: none !important;
  }

  #mobile-btn-search {
    position: absolute !important;
    top: 58px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
    width: 100% !important;
    height: 40px !important;
  }

  #search-widget-mobile {
    position: static !important;
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #index .vapesence-campaign-banner img {
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

/* V21: landing SEO y guía de decisión para Tipos de Vapers (categoría 43). */
#category.category-id-43 .vs-category-hero__copy > p {
  max-width: 920px;
}

#category .vs-type-picker {
  width: calc(100% - 20px);
  max-width: 1420px;
  margin: -8px auto 28px;
  padding: 18px;
  border: 1px solid #dce7f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 27, 66, .055);
}

#category .vs-type-picker__heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

#category .vs-type-picker__heading > span,
#category .vs-types-guide__header > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #175acb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#category .vs-type-picker__heading h2 {
  margin: 0;
  color: #001b42;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

#category .vs-type-picker__heading p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
}

#category .vs-type-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#category .vs-type-picker__card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 13px 14px;
  align-items: center;
  gap: 11px;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #fbfcff;
  color: #001b42;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#category .vs-type-picker__card:hover,
#category .vs-type-picker__card:focus-visible {
  border-color: #9cbcf4;
  box-shadow: 0 9px 24px rgba(31, 103, 231, .1);
  color: #001b42;
  transform: translateY(-2px);
}

#category .vs-type-picker__card > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: #1d63d8;
  font-size: 14px;
}

#category .vs-type-picker__card span,
#category .vs-type-picker__card strong,
#category .vs-type-picker__card small {
  display: block;
}

#category .vs-type-picker__card strong {
  margin-bottom: 3px;
  color: #001b42;
  font-size: 13px;
  font-weight: 800;
}

#category .vs-type-picker__card small {
  color: #68768d;
  font-size: 11px;
  line-height: 1.35;
}

#category .vs-type-picker__card > b {
  color: #2368df;
  font-size: 18px;
  font-weight: 500;
}

#category .vs-types-guide {
  color: #4f5f76;
}

#category .vs-types-guide__header {
  max-width: 900px;
  margin-bottom: 24px;
}

#category .vs-types-guide__header > span {
  display: inline-block;
  margin-bottom: 10px;
}

#category .vs-types-guide h2 {
  margin: 0 0 10px;
  color: #001b42;
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 820;
  letter-spacing: -.03em;
  line-height: 1.12;
}

#category .vs-types-guide h3 {
  margin: 0 0 10px;
  color: #001b42;
  font-size: 17px;
  line-height: 1.3;
}

#category .vs-types-guide p,
#category .vs-types-guide li {
  font-size: 14px;
  line-height: 1.65;
}

#category .vs-types-guide__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#category .vs-types-guide__cards > article {
  padding: 22px;
  border: 1px solid #e0e8f3;
  border-radius: 14px;
  background: #fbfcff;
}

#category .vs-types-guide__cards ul {
  margin: 14px 0;
  padding-left: 18px;
}

#category .vs-types-guide__cards a,
#category .vs-types-guide__help a {
  color: #1f67e7;
  font-size: 13px;
  font-weight: 800;
}

#category .vs-types-guide__compare,
#category .vs-types-guide__faq {
  margin-top: 34px;
}

#category .vs-types-guide__compare > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#category .vs-types-guide__compare article {
  padding: 17px;
  border-left: 3px solid #2b6fe8;
  background: #f6f9ff;
}

#category .vs-types-guide__compare strong {
  color: #001b42;
  font-size: 13px;
}

#category .vs-types-guide__compare p {
  margin: 6px 0 0;
  font-size: 12px;
}

#category .vs-types-guide__faq details {
  border-top: 1px solid #e0e8f3;
}

#category .vs-types-guide__faq details:last-child {
  border-bottom: 1px solid #e0e8f3;
}

#category .vs-types-guide__faq summary {
  padding: 15px 2px;
  color: #001b42;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

#category .vs-types-guide__faq details p {
  max-width: 980px;
  margin: -4px 0 16px;
}

#category .vs-types-guide__help {
  display: flex;
  margin-top: 28px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 12px;
  background: #001b42;
  color: #fff;
}

#category .vs-types-guide__help strong,
#category .vs-types-guide__help span {
  display: block;
}

#category .vs-types-guide__help span {
  margin-top: 3px;
  color: #cbd7e9;
  font-size: 12px;
}

#category .vs-types-guide__help a {
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  #category .vs-type-picker__grid,
  #category .vs-types-guide__cards {
    grid-template-columns: 1fr;
  }

  #category .vs-types-guide__compare > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  #category .vs-type-picker {
    width: calc(100% - 18px);
    margin: 0 auto 18px;
    padding: 13px;
    border-radius: 14px;
  }

  #category .vs-type-picker__heading {
    display: block;
    margin-bottom: 12px;
  }

  #category .vs-type-picker__heading > span {
    display: inline-block;
    margin-bottom: 8px;
  }

  #category .vs-type-picker__heading h2 {
    font-size: 16px;
  }

  #category .vs-type-picker__heading p {
    font-size: 11px;
    line-height: 1.4;
  }

  #category .vs-type-picker__card {
    min-height: 68px;
    padding: 11px;
  }

  #category .vs-type-picker__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 84vw);
    padding: 1px 1px 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  #category .vs-type-picker__grid::-webkit-scrollbar {
    display: none;
  }

  #category .vs-type-picker__card {
    scroll-snap-align: start;
  }

  #category .vs-types-guide__compare > div {
    grid-template-columns: 1fr;
  }

  #category .vs-types-guide__help {
    display: block;
  }

  #category .vs-types-guide__help a {
    display: inline-block;
    margin-top: 12px;
    white-space: normal;
  }
}

/* V22 — ajuste móvil de la cabecera de categorías. Clon únicamente.
 * Mantiene la jerarquía y todo el texto en el HTML; solo cambia presentación.
 */
@media (max-width: 767.98px) {
  #category .vs-category-hero__copy > p,
  #category .vs-category-hero__intro {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
  }

  #category .vs-category-shortcuts__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  #category .vs-category-shortcut,
  #category .vs-category-shortcut.vs-category-intent,
  #category .vs-category-shortcut:first-child {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
    scroll-snap-align: none !important;
  }

  #category .vs-category-shortcut:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* V23: cierre del drawer móvil y guía de categoría sin tarjetas recortadas. */
@media (max-width: 767.98px) {
  html:has(.js-m-nav-btn-menu.show),
  body:has(.js-m-nav-btn-menu.show) {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  #iqitmegamenu-mobile .mobile-menu__content {
    height: calc(100vh - 125px) !important;
    height: calc(100dvh - 125px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 125px) !important;
  }

  #category .vs-type-picker__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 8px !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  #category .vs-type-picker__card {
    width: 100% !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }
}

/* V24: panel de facetas de escritorio más legible y coherente con la ficha. */
@media (min-width: 768px) {
  #category #facets_search_wrapper {
    overflow: hidden !important;
    border: 1px solid #dfe6f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 12px 32px rgba(0, 16, 42, 0.07) !important;
  }

  #category #search_filters_wrapper {
    max-height: calc(100vh - 150px) !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    scrollbar-width: thin;
    scrollbar-color: #c8d3e3 transparent;
  }

  #category #search_filters_wrapper::-webkit-scrollbar {
    width: 5px;
  }

  #category #search_filters_wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  #category #search_filters_wrapper::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8d3e3;
  }

  #category .vs-filter-desktop-head {
    position: sticky;
    z-index: 3;
    top: 0;
    display: grid !important;
    grid-template-columns: 4px minmax(0, 1fr);
    column-gap: 12px;
    padding: 17px 18px 15px !important;
    border-bottom: 1px solid #e8edf5;
    background: #f7f9fc !important;
  }

  #category .vs-filter-desktop-head::before {
    grid-row: 1 / 3;
    width: 4px;
    min-height: 34px;
    border-radius: 999px;
    background: #1858d6;
    content: "";
  }

  #category .vs-filter-desktop-head strong {
    color: #00102a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  #category .vs-filter-desktop-head span {
    margin-top: 3px;
    color: #708099 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  #category #search_filters_wrapper .block-facets {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 18px 14px !important;
  }

  #category #search_filters {
    width: 100% !important;
  }

  #category #search_filters .facet {
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
  }

  #category #search_filters .facet:last-child {
    border-bottom: 0 !important;
  }

  #category #search_filters .facet-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #00102a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    line-height: 1.3 !important;
  }

  #category #search_filters .facet ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  #category #search_filters .facet li + li {
    margin-top: 3px;
  }

  #category #search_filters .facet-label {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 32px;
    margin: 0 !important;
    cursor: pointer;
  }

  #category #search_filters .facet-label .custom-checkbox {
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
  }

  #category #search_filters .facet-label .custom-checkbox > span {
    display: grid !important;
    width: 18px !important;
    height: 18px !important;
    place-items: center;
    border: 1px solid #cbd5e3 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: transparent !important;
  }

  #category #search_filters .facet-label .custom-checkbox input:checked + span {
    border-color: #1858d6 !important;
    background: #1858d6 !important;
    color: #fff !important;
  }

  #category #search_filters .facet-label .custom-checkbox input:focus-visible + span {
    outline: 2px solid rgba(24, 88, 214, 0.28);
    outline-offset: 2px;
  }

  #category #search_filters .facet-label a {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 5px 6px !important;
    border-radius: 7px;
    color: #34445d !important;
    font-size: 12px !important;
    font-weight: 550 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    transition: background-color 0.16s ease, color 0.16s ease;
  }

  #category #search_filters .facet-label:hover a,
  #category #search_filters .facet-label a:focus-visible {
    background: #f1f5fb !important;
    color: #1858d6 !important;
  }

  #category #search_filters .facet-label .magnitude {
    flex: 0 0 auto;
    min-width: 24px;
    margin-left: 8px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #f0f3f8;
    color: #74839a !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
  }

  #category #search_filters .faceted-slider li {
    padding: 2px 2px 8px !important;
  }

  #category #search_filters .faceted-slider p {
    margin: 0 0 14px !important;
    color: #42516a !important;
    font-size: 12px !important;
    font-variant-numeric: tabular-nums;
  }

  #category #search_filters .noUi-target {
    height: 5px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #dfe6f0 !important;
    box-shadow: none !important;
  }

  #category #search_filters .noUi-connect {
    background: #1858d6 !important;
  }

  #category #search_filters .noUi-handle {
    top: -6px !important;
    width: 17px !important;
    height: 17px !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background: #1858d6 !important;
    box-shadow: 0 0 0 1px #1858d6, 0 3px 8px rgba(0, 16, 42, 0.18) !important;
  }

  #category #search_filters .noUi-handle::before,
  #category #search_filters .noUi-handle::after {
    display: none !important;
  }
}

@media (min-width: 768px) {
  body#category #left-column #facets_search_wrapper {
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(0, 16, 42, 0.07) !important;
  }
}

@media (min-width: 1200px) {
  body#category #left-column {
    flex: 0 0 260px !important;
    max-width: 260px !important;
  }

  body#category #content-wrapper {
    flex: 1 1 0 !important;
    max-width: calc(100% - 260px) !important;
  }
}

@media (min-width: 768px) {
  body#category .whatsapp.whatsapp_1 {
    right: 18px !important;
    bottom: 76px !important;
    left: auto !important;
  }
}

/* V25: pulido del megamenu y apertura movil sin transparencias intermedias. */
@media (min-width: 992px) {
  #cbp-hrmenu.cbp-horizontal .cbp-hrsub {
    transition-duration: 0.18s !important;
  }

  #cbp-hrmenu.cbp-horizontal .cbp-hrsub-inner {
    padding-right: 300px !important;
  }

  #cbp-hrmenu .vs-mega-all-link {
    right: 300px !important;
  }

  #cbp-hrmenu .vs-mega-visual {
    width: 250px !important;
    background: linear-gradient(145deg, #edf3fb 0%, #ffffff 76%) !important;
  }

  #cbp-hrmenu .vs-mega-visual__copy > span {
    max-width: 176px !important;
  }

  #cbp-hrmenu .vs-mega-visual img {
    right: 4px !important;
    bottom: -2px !important;
    width: 154px !important;
    height: 154px !important;
  }
}

@media (max-width: 767.98px) {
  #_mobile_iqitmegamenu-mobile {
    background-color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #iqitmegamenu-mobile,
  #iqitmegamenu-mobile .mobile-menu__content,
  #iqitmegamenu-mobile .mobile-menu__scroller {
    background-color: #ffffff !important;
    opacity: 1 !important;
  }

  #iqitmegamenu-mobile {
    transition: none !important;
  }
}

/* V26: el desplegable debe leerse como continuacion del menu principal,
   no como una segunda caja. Se elimina el indicador duplicado heredado de
   V19 y se deja una sola linea estructural bajo la barra. */
@media (min-width: 992px) {
  #cbp-hrmenu.cbp-horizontal > ul > li > a::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
    opacity: 0 !important;
  }

  #cbp-hrmenu > ul > li:hover > a.nav-link,
  #cbp-hrmenu > ul > li.cbp-hropen > a.nav-link,
  #cbp-hrmenu > ul > li.current > a.nav-link {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    color: #1148b8 !important;
    text-decoration: none !important;
  }

  #cbp-hrmenu > ul > li > a.nav-link:hover,
  #cbp-hrmenu > ul > li > a.nav-link:focus,
  #cbp-hrmenu > ul > li > a.nav-link .cbp-tab-title,
  #cbp-hrmenu > ul > li:hover > a.nav-link .cbp-tab-title,
  #cbp-hrmenu > ul > li.cbp-hropen > a.nav-link .cbp-tab-title,
  #cbp-hrmenu > ul > li.current > a.nav-link .cbp-tab-title {
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  #cbp-hrmenu > ul > li > a.nav-link .cbp-tab-title::before,
  #cbp-hrmenu > ul > li > a.nav-link .cbp-tab-title::after {
    display: none !important;
    content: none !important;
  }

  #cbp-hrmenu.cbp-horizontal .cbp-hrsub {
    border-top: 0 !important;
    box-shadow: 0 16px 34px rgba(0, 16, 42, .13) !important;
  }

  #cbp-hrmenu.cbp-horizontal .cbp-hrsub-inner {
    width: calc(100vw - 48px) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* V28: indicador de navegación integrado en la línea estructural. No es
   subrayado de texto y no añade una segunda línea a distinta altura. */
@media (min-width: 992px) {
  #cbp-hrmenu > ul > li > a.nav-link {
    position: relative !important;
    z-index: 10060;
    text-decoration: none !important;
  }

  #cbp-hrmenu.cbp-horizontal > ul > li > a.nav-link::after {
    display: block !important;
    position: absolute !important;
    z-index: 10061;
    right: auto !important;
    bottom: -1px !important;
    left: 50% !important;
    width: 28px !important;
    height: 3px !important;
    border-radius: 999px;
    background: #1858d6 !important;
    content: "" !important;
    opacity: 0 !important;
    transform: translateX(-50%) scaleX(.45) !important;
    transform-origin: center;
    transition: opacity .16s ease, transform .18s ease !important;
  }

  #cbp-hrmenu.cbp-horizontal > ul > li:hover > a.nav-link::after,
  #cbp-hrmenu.cbp-horizontal > ul > li.cbp-hropen > a.nav-link::after,
  #cbp-hrmenu.cbp-horizontal > ul > li.current > a.nav-link::after {
    opacity: 1 !important;
    transform: translateX(-50%) scaleX(1) !important;
  }
}

/* V29: elimina la linea decorativa incrustada en los propios banners.
   Escritorio recorta solo los ultimos 4 px. En movil se repone sobre la
   linea una lamina de 3 px tomada del mismo banner, desplazada 4 px, para
   conservar intactos productos, fruta, textos y advertencias. */
@media (min-width: 768px) {
  #index .vapesence-campaign-banner,
  #index .vapesence-campaign-banner picture {
    background: #00102a !important;
  }

  #index .vapesence-campaign-banner img {
    clip-path: inset(0 0 4px 0) !important;
  }
}

@media (max-width: 767.98px) {
  #index .vapesence-campaign-shell::before {
    position: absolute !important;
    z-index: 6 !important;
    inset: 0 !important;
    display: block !important;
    background-image: url('/img/cms/BANNERS/campaign-drifter-mobile-v4-600w.webp') !important;
    background-position: center calc(50% + 4px) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    clip-path: inset(83.4% 0 15.4% 0) !important;
    content: "" !important;
    pointer-events: none !important;
  }
}

/* V30: jerarquia de capas coherente en el header de escritorio.
   Idioma, cuenta y carrito deben abrir siempre por encima del megamenu.
   El desplegable conserva un solo panel: sombra exterior, sin borde ni
   sombra duplicados en su contenedor interior. */
@media (min-width: 992px) {
  #desktop-header .header-top {
    position: relative !important;
    z-index: 10040 !important;
    overflow: visible !important;
  }

  #desktop-header .header-top .language-selector,
  #desktop-header .header-top .ps-shoppingcart,
  #desktop-header .header-top .user-info {
    position: relative !important;
    z-index: 10050 !important;
  }

  #desktop-header .header-top .dropdown-menu,
  #desktop-header #_desktop_blockcart-content,
  #desktop-header #blockcart-content {
    z-index: 10060 !important;
  }

  #desktop-header .header-top .dropdown-menu {
    color: #071a39 !important;
  }

  #desktop-header .header-top .dropdown-menu a,
  #desktop-header .header-top .dropdown-menu span,
  #desktop-header .header-top .dropdown-menu i,
  #desktop-header .header-top .dropdown-menu p,
  #desktop-header .header-top .dropdown-menu strong {
    color: inherit !important;
  }

  #desktop-header .header-top .dropdown-menu .btn-primary,
  #desktop-header .header-top .dropdown-menu .btn-primary * {
    color: #fff !important;
  }

  #cbp-hrmenu.cbp-horizontal .cbp-hrsub-inner {
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* V31: la linea estructural sigue visible con el menu cerrado, pero el panel
   abierto pertenece a una capa superior. En movil el drawer ocupa el viewport
   desde el borde izquierdo y elimina el segundo bloque azul del encabezado. */
@media (min-width: 992px) {
  #iqitmegamenu-wrapper::after {
    z-index: 2 !important;
  }

  #cbp-hrmenu.cbp-horizontal > ul > li > a.nav-link {
    z-index: 3 !important;
  }

  #cbp-hrmenu.cbp-horizontal > ul > li.cbp-hropen,
  #cbp-hrmenu.cbp-horizontal > ul > li.cbp-hropen .cbp-hrsub-wrapper,
  #cbp-hrmenu.cbp-horizontal > ul > li.cbp-hropen .cbp-hrsub {
    z-index: 10 !important;
  }
}

@media (max-width: 767.98px) {
  html:has(#_mobile_iqitmegamenu-mobile.show),
  body:has(#_mobile_iqitmegamenu-mobile.show) {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  #_mobile_iqitmegamenu-mobile,
  #_mobile_iqitmegamenu-mobile.dropdown-menu {
    position: fixed !important;
    z-index: 10100 !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #iqitmegamenu-mobile {
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #iqitmegamenu-mobile .mobile-menu__header-wrapper {
    min-height: 52px !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid #e1e7f0 !important;
    background: #fff !important;
    background-image: none !important;
    color: #071a39 !important;
  }

  #iqitmegamenu-mobile .mobile-menu__close,
  #iqitmegamenu-mobile .mobile-menu__back-btn {
    color: #071a39 !important;
  }

  #iqitmegamenu-mobile .mobile-menu__content {
    height: calc(100vh - 52px) !important;
    height: calc(100dvh - 52px) !important;
    max-height: calc(100dvh - 52px) !important;
    margin: 0 !important;
    padding: 12px 18px 24px !important;
    overflow-y: auto !important;
  }

  #iqitmegamenu-mobile .mobile-menu__content .mobile-menu__arrow {
    color: #214f97 !important;
  }

  #iqitmegamenu-mobile .vs-mobile-menu-offers {
    margin-top: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  #iqitmegamenu-mobile .vs-mobile-menu-offers > .mobile-menu__link {
    color: #1858d6 !important;
    font-weight: 750 !important;
  }

  #iqitmegamenu-mobile .mobile-menu__footer {
    border-top: 1px solid #e1e7f0 !important;
    background: #f5f7fa !important;
    color: #40506a !important;
  }

  #iqitmegamenu-mobile .mobile-menu__footer a,
  #iqitmegamenu-mobile .mobile-menu__footer span,
  #iqitmegamenu-mobile .mobile-menu__footer i,
  #iqitmegamenu-mobile .mobile-menu__footer div {
    color: inherit !important;
  }

  body:has(#_mobile_iqitmegamenu-mobile.show) #mobile-btn-search {
    display: none !important;
  }
}

/* V33: una sola superficie para la barra de navegación. Las capas interiores
   repetían el mismo degradado con alturas distintas y dibujaban un escalón a
   la anchura del contenedor central justo sobre el banner. */
@media (min-width: 992px) {
  #iqitmegamenu-wrapper {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f1 100%) !important;
    background-image: linear-gradient(180deg, #f8fafc 0%, #e2e8f1 100%) !important;
  }

  #iqitmegamenu-wrapper .iqit-megamenu-container,
  #iqitmegamenu-horizontal,
  .sticky-desktop-wrapper #iqitmegamenu-horizontal,
  #cbp-hrmenu,
  #cbp-hrmenu > ul {
    background: transparent !important;
    background-image: none !important;
  }
}
