@keyframes movefromLeft {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(0)
  }
}

@keyframes shwominicart {
  0% {
    opacity: 0;
    height: 0 important
  }

  100% {
    opacity: 1;
    height: auto
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes fadeInPanel {
  0% {
    opacity: 0;
    left: 0
  }

  100% {
    opacity: 1;
    left: 380px
  }
}

@keyframes destaca {
  0% {
    opacity: .2;
    transform: scale(1.1, 1.1)
  }

  100% {
    opacity: 1;
    transform: scale(1, 1)
  }
}

@keyframes destacazoom {
  .5% {
    transform: scale(1, 1)
  }

  100% {
    transform: scale(1.25, 1.25)
  }
}

@keyframes showmenu {
  0% {
    transform: translateX(-500px)
  }

  100% {
    transform: translateX(0)
  }
}

@keyframes hidemenu {
  100% {
    transform: translateX(-500px)
  }

  0% {
    transform: translateX(0)
  }
}

.animate__animated {
  animation-iteration-count: 1;
  animation-duration: 300ms
}

.animate__animated.animate__infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  animation-duration: 3s
}

.animation__shake {
  animation: gelatine
}

@keyframes gelatine {
  30% {
    transform: scale(1.2)
  }

  40%, 60% {
    transform: rotate(-20deg) scale(1.2)
  }

  50% {
    transform: rotate(20deg) scale(1.2)
  }

  70% {
    transform: rotate(0deg) scale(1.2)
  }

  100% {
    transform: scale(1)
  }
}

.animate__animated.animate__repeat-1 {
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1
}

.animate__animated.animate__delay-1s {
  -webkit-animation-delay: 1s;
  animation-delay: 1s
}

.animate__animated.animate__slower {
  -webkit-animation-duration: 3s;
  animation-duration: 3s
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3)
  }

  50% {
    opacity: 1
  }
}

.animate__zoomIn {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn
}

@keyframes fadeOut {
  0% {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

.animate__fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut
}

.animate__fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn
}

@keyframes zoomOut {
  0% {
    opacity: 1
  }

  50% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3)
  }

  to {
    opacity: 0
  }
}

.animate__zoomOut {
  -webkit-animation-name: zoomOut;
  animation-name: zoomOut
}

.animate__heartbeat {
  -webkit-animation-name: heartbeat;
  animation-name: heartbeat
}

@keyframes heartbeat {
  0% {
    transform: scale(1)
  }

  40% {
    transform: scale(.75)
  }

  60% {
    transform: scale(1)
  }

  80% {
    transform: scale(.75)
  }

  100% {
    transform: scale(1)
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 1000;
  transition: all .2s ease-in-out;
  overflow-y: auto;
  visibility: hidden;
  box-shadow: var(--box-shadow-panel)
}

.mobile-menu .main-categories {
  opacity: 0;
  transition: all .4s ease-in-out
}

.mobile-menu.active {
  left: 0;
  visibility: visible
}

.mobile-menu.active .main-categories {
  opacity: 1
}

.block-body-overflow {
  overflow: hidden
}

.menu-header {
  padding: var(--spacing-1);
  display: flex;
  align-items: center;
  background: var(--white);
  color: var(--black);
  text-transform: uppercase;
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  justify-content: flex-end;
}

.close-menu {
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
  color: var(--black);
  font-weight: var(--font-weight-bold);
  margin-left: 0.5rem;
}

.back-button:before {
  margin-right: .25rem;
  padding: .5rem;
  font: normal normal normal 1em / 1 'Iturri';
  font-size: 24px;
  content: "\f5a6";
  line-height: 43px
}

.back-button {
  padding: var(--spacing-1);
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  background: var(--neutral-200);
  color: var(--dark);
  font-weight: var(--font-weight-normal);
  border: none;
  height: 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  justify-content: flex-end;
}

.main-categories {
  list-style: none;
  padding: 0;
  margin: 0
}

.main-categories>li {
  opacity: 0;
  transform: translateX(-20px);
  transition: all .3s ease
}

.main-categories>li .icon {
  font-size: 28px;
  width: 28px;
  height: 28px;
  margin-top: -1rem;
  margin-bottom: -1rem;
  margin-right: 0.5rem;
}

.main-categories>li img {
  width: 28px;
  height: 28px;
  padding: 5px;
  margin-top: -1rem;
  margin-bottom: -1rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.mobile-menu.active .main-categories>li {
  opacity: 1;
  transform: translateX(0)
}

.main-categories a, .subcategories ul li a {
  display: block;
  padding: 1rem 0;
  color: var(--dark);
  text-decoration: none;
  position: relative;
  margin-left: var(--spacing-1);
  margin-right: var(--spacing-1)
}

.subcategories ul li .html {
  display: block;
  padding: 1rem 0;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  margin-left: var(--spacing-1);
  margin-right: var(--spacing-1)
}

.main-categories>li>a.has-sub-cat:after, .subcategories ul li>a:not(:only-child):after {
  content: "\f54e";
  font: normal normal normal 1em / 1 'Iturri';
  position: absolute;
  right: 4px;
  transform: translateY(-10%);
  font-size: 24px;
  color: var(--dark)
}

.main-categories ul {
  display: none
}

.subcategories {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  transition: left .3s ease;
  overflow-y: auto;
  z-index: 1
}

.subcategories.active {
  left: 0
}

.parent-category {
  display: block;
  text-decoration: none;
  background: var(--white);
  padding: 1rem 0;
  margin-left: var(--spacing-1);
  margin-left: var(--spacing-1);
}
.parent-category i, .parent-category img {
  width: 28px; 
  height: 28px;
  font-size: 28px;
  margin-right: 0.5rem;
}


.parent-category span.item-main {
  display: block;
  font-weight: var(--font-weight-semibold);
}
.parent-category span.view-all-items {
    font-size: 0.8em;
    display: block;
    font-weight: var(--font-weight-normal);
    text-decoration: underline;
    text-underline-offset: 4px; 
    width: 100%; 
}
.parent-category {
  display: flex;
  flex-wrap: wrap;
}


.child-level .parent-category {
  display: block;
}
.main-categories > li > a > i {
  color: var(--brand);
}
.subcategories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block
}

.subcategories ul ul {
  display: none
}

.mobile-overlay.active {
  position: fixed;
  z-index: 10;
  background-color: rgba(0, 0, 0, .2);
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  transition: all .3s ease-in-out
}



@media (min-width:1024px) {
  .mobile-menu {
    max-width: 380px;
  }

  .subcategories {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 100%;
    background: var(--neutral-200);
    visibility: hidden;
    box-shadow: var(--box-shadow-panel);
    transition: all .1s ease
  }
  .parent-category {
    background: var(--neutral-200);
  }

 

  .mobile-menu.active~.subcategories.active {
    left: 380px;
    visibility: visible;
    z-index: 100;
    opacity: 1
  }

  .mobile-menu.active~.subcategories.active.child-level {
    animation: fadeInPanel 300ms
  }

  .subcategories+.subcategories {
    left: 380px
  }

  .subcategories+.subcategories.active {
    left: 760px;
    visibility: visible;
    z-index: 101
  }

  .mobile-menu.active {
    box-shadow: var(--box-shadow-panel)
  }

  .mobile-menu.active:has(+ .subcategories.active) {
    box-shadow: none
  }

  .main-categories>li>a.selected {
    background-color: var(--neutral-200);
    padding-left: var(--spacing-1);
    padding-right: var(--spacing-1);
    margin-right: 0;
    margin-left: 0;
  }
  .main-categories>li>a.selected:after {
    right: 1rem;
  }


  .mobile-overlay.active {
    background-color: rgba(0, 0, 0, .2)
  }

}
 .menu-header {
    justify-content: space-between;
  }
  .menu-header .site-logo {
    max-width: 130px;
  }

.img-skeleton {
  position: relative;
  background-color: transparent
}


.img-skeleton.loaded {
  animation: fadeIn;
  animation-duration: 300ms
}

.brand-item {
  aspect-ratio: 150 / 90
}

.brand-item .img-skeleton:not(.loaded) {
  min-width: 100%;
  min-height: 100%
}

.iturri-img.img-skeleton:not(.loaded) {
  min-width: 150px;
  min-height: 100px;
  width: 150px;
  height: 100px;
  display: block;
  margin: auto
}

.img-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 0%, #e9e9e9 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite
}


@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

.modal-dialog.videoshort {
  max-width: 500px;
  width: 100%
}

.videoshort iframe {
  width: 100%;
  aspect-ratio: 9 / 16 !important;
  max-width: 500px;
  height: auto !important;
  margin: auto;
  display: block;
  margin-top: calc(-1*var(--space-3))
}

.bg-loading {
  background-color: #fff;
  opacity: .7;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  color: var(--brand)
}

.menu-brands a img {
  height: 40px;
  margin-top: -1.6rem;
  margin-bottom: -1.6rem;
  margin-right: 2rem;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .5;
  transform: scale(.9);
  transition: all .3s ease
}

.menu-brands a:hover img, .menu-brands a:active img.menu-brand {
  filter: unset;
  opacity: 1;
  transform: scale(1.3)
}

.continue i {
  animation: bounceArrow 1.5s ease-in-out infinite;
  transform-origin: center
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 1
  }

  50% {
    transform: translateX(18px);
    opacity: 1
  }
}

.extra-content-menu {
  position: absolute;
  bottom: 0;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  background-color: var(--border-color)
}

.extra-content-menu .icon {
  display: none
}

.extra-content-menu .dropdown {
  margin-top: 1rem;
  margin-right: 1rem
}

.extra-content-menu .dropdown.open .dropdown-menu {
  margin-top: -167px;
  border: 2px solid var(--border-color);
  right: 0;
  margin-right: -1rem;
  left: 0;
  width: 100%;
  background-color: var(--border-color)
}

/* Hover / tap items menú */

.main-categories > li > a,
.subcategories ul li > a,
.parent-category  {
  transition: transform 0.2s ease;
}

.main-categories > li > a:hover,
.main-categories > li > a.selected,
.subcategories ul li > a:hover,
.parent-category:hover {
  transform: translateX(8px);
  color: var(--brand); 
}





/* Focus visible */
.main-categories > li > a:focus-visible,
.subcategories ul li > a:focus-visible,
.parent-category:focus-visible,
.back-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.quote_top_content.quote_block.block {
  margin: 0;
}
.quote_top_content.quote_block.block,
.panel-sub-menu, .dropdown.open .dropdown-menu {
  position: absolute;
  right: 0;
  width: 100vw;
  max-width: 350px;
  background-color: var(--white);
  padding: 1.25rem;
  margin-top: 10px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: 0 4px 23px 0 rgba(0, 0, 0, 0.15);
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.quote_top_content.quote_block.block::before,
.panel-sub-menu::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  position: absolute;
  margin-top: calc(-1 * var(--space-3));
  transform: rotate(45deg);
  top: calc(var(--space-3) - 6px);
  box-shadow: -5px -6px 11px 0px rgba(0, 0, 0, 0.07);
}

.quote_top_content.quote_block.block::before {
  right: 23px;
}

.panel-sub-menu::before {
  right: 98px;
}

.panel-sub-menu {
  max-width: 250px;
  right: -90px;
  gap: 0;
}

.sub-menu-user a {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.25em;
  padding: 0.25rem 0;
}

.sub-menu-user a i.icon-header.icon {
  font-size: var(--font-size-);
}

#presupuesto_cabecera.qqt-empty {
  display: none;
}

div#presupuesto_cabecera:hover .quote_top_content.quote_block.block,
.my-account.ico-header:hover .sub-menu-user, .dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
}

.extra-content-menu, .subcategories.active ,#mobile-menu {
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .header--search-box {
    transition: opacity .3s ease, visibility .3s ease;
    overflow: hidden; 
  }
  .header--search-box.search-box--hidden {
    opacity: 0;
    height: 0;
    
    visibility: hidden;
  }
}


.success-animation {
  margin: 0 auto var(--space-4) auto;
}
.checkmark {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--success);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--success);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
  margin: 0 auto;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 20;
  stroke: var(--success);
  fill: #fff;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px var(--success); }
}

/* Skip-link: accesible por teclado.
   Oculto visualmente sin display:none (debe seguir siendo focuseable por Tab).
   Solo aparece al recibir foco, en la esquina superior izquierda. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Margen al saltar con el skip-link, para que el header sticky no tape el destino */
#wrapper {
  scroll-margin-top: 90px;
}
@media (max-width: 997px) {
  #wrapper {
    scroll-margin-top: 90px;
  }
}

.skip-link:focus,
.skip-link:focus-visible {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1rem;
  overflow: visible;
  clip: auto;
  z-index: 10000;
  background: var(--primary, #374556);
  color: var(--white, #fff);
  text-decoration: underline;
  font-weight: 600;
  border-radius: 0 0 var(--border-radius-sm, 8px) 0;
  outline: none;
  box-shadow: var(--shadowbottom, 0 3px 13px rgba(0, 0, 0, .05));
}


/* Overlay de carga sobre .product-variants mientras PS resuelve la combinación.
   Mismo patrón visual que .bg-loading-checkout (address-form). */
.product-variants {
  position: relative;
}
.bg-loading-variants {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 3px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: rgba(255, 255, 255, .8);
  color: var(--brand);
}

.divider {
  border-top: 1px solid var(--border-color);
  height: 1px;
  opacity: 1;
  width: 100%;
  margin: 0.25rem 0.75rem;
  width: calc(100% - 1.5rem);
}