/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --fucsia: #ff0058;
  --blue: #0a00ff;
  --blue-sky: #2993ff;
  --grey-carbon: #1a1a1a;
  --grayf2f2f2: #f2f2f2;
}




.clear {
  clear: both;
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0rem;
}

.alert-black {
  color: #fff;
  background-color: #000;
  border-color: #000;
}

.alert-danger {
  color: #fff;
  background-color: #aa0000;
  border-color: #aa0000;
}

.alert-pink {
  color: #fff;
  background-color: var(--blue-sky);
  border-color: var(--blue-sky);
}


.woocommerce-info,
.woocommerce-message {
  background: var(--blue-sky);
}


/* *---- stock info ------ */
.private-info-container {
  color: black;
  background-color: var(--grayf2f2f2);
  padding: 5px;
  border: 1px solid var(--grey-carbon);
}

.private-info-container a {
  color: var(--blue);
}

.stock-info.low {
  color: red;
}

.stock-info.medium {
  color: orange;
}

.stock-info.high {
  color: var(--green);
}

.stock-info.special {
  color: var(--fucsia);
}

.private-product {
  color: var(--fucsia);
}




/***************************************************************/
/**************************** HEADER ***************************/
/***************************************************************/
.header-4 .header-4-container {
  border-bottom: 1px solid #000;
}

@media (max-width: 768px) {

  body.theme-shoptimizer .site-header .custom-logo-link img,
  body.wp-custom-logo .site-header .custom-logo-link img {
    height: 15px !important;
  }
}

/***************************************************************/
/**************************** SUBHEADER ************************/
/***************************************************************/
.menu-modalidades {
  display: flex;
  justify-content: center;
  min-height: 60px;
}

.menu-modalidades>div {
  width: 60px;
  margin-bottom: -10px;
}

@media(min-width: 768px) {
  .menu-modalidades>div {
    width: 60px;
  }
}

/*************************************************************/
/**************************** MENU ***************************/
/*************************************************************/
@media (max-width: 768px) {
  ul#menu-main-menu li a{
    font-size: 20px !important;
  }   
}
#container-mi-cuenta-mobile .account-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-size: 20px !important;
}

#container-mi-cuenta-mobile .account-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#container-mi-cuenta-mobile .account-link svg {
  flex-shrink: 0;
}

#container-mi-cuenta-mobile .account-text {
  line-height: 1;
}
/*************************************************************/
/**************************** WOO ***************************/
/*************************************************************/

/* Titol de productos */
ul.products li.product .woocommerce-LoopProduct-link {
  min-height: 50px;
}


/**************************************************************************************/
/**************************** LOOP / ARCHIVE PAGE / CATEGORY***************************/
/**************************************************************************************/
.archive ul.products li.product p.product__categories {
  display: none;
}

/* Productes a 2 columnes */
/* @media (max-width: 768px){
  .archive ul.products li.product {
      width: 47.8% !important;
  }
}
 */
@media (min-width: 768px) {
  .archive ul.products li.product {
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .shoptimizer-plp-carousel--pagination {
    bottom: -12px;
  }
}

li.product .onsale {
  display: none !important;
}

.product-out-of-stock {
  background: var(--blue-sky);
  color: white;
}

/* Hide out-of-stock badge when product is in preorder */
.product-out-of-stock.preorder {
  display: none !important;
}


.etiquetas-loop {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: -7px;
  left: 0px;
  z-index: 10;
  width: 100%;

}

.etiquetas-single {
  display: flex;
  flex-direction: row;
  /* Para disposición horizontal */
  margin: 0px 0px 10px 0px;
  /*  position: absolute;
  top: 20px; 
  left: 25px; */
  z-index: 10;

}

.etiquetas-front {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: -7px;
  left: 5px;
  z-index: 10;

}

.etiqueta {
  padding: 3px 8px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  margin-right: 5px;
  /* Espacio entre etiquetas horizontales */
  border-radius: 20px;
}

.etiqueta.ultralight {
  background: var(--blue-sky);
}

.etiqueta.novedad {
  background: var(--blue);
}

.etiqueta.preorder {
  background: #EBB046;
}

.etiqueta.ultimas {
  background: #F15024;
}

.etiqueta.oferta {
  background: #6FA024;
}

.etiqueta.sinstock {
  background: #666666;
}

.etiqueta:last-child {
  margin-right: 0;
  /* Elimina el margen derecho de la última etiqueta */
}




.shoptimizer-sorting,
.mobile-filter {
  margin-top: 20px;
}


header.woocommerce-products-header {
  margin-bottom: 100px;

}

/* Filtres els separem un poc al menu off canvas de la dreta*/
@media (max-width: 992px) {
  .woocommerce.archive.filter-open #secondary {
    visibility: visible;
    z-index: 102;
    left: 0;
    opacity: 1;
    padding-right: 40px;
  }
}

#icon-x {
  width: 9px !important;
  height: 9px !important;
  margin-left: 10px !important;
}


ul.products li.product p.product__categories {
  display: none !important;
}

.widget ul li a:hover {
  color: var(--blue-sky) !important;
}

.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle {
  background-color: var(--blue-sky);
}

.woocommerce-widget-layered-nav-list__item span.count {
  background-color: var(--blue-sky);
  color: white;
  padding: 1px 4px;
  display: inline;
  border-radius: 5px;
}


/***********************************************************************/
/**************************** SINGLE PRODUCT ***************************/
/***********************************************************************/
.stock.out-of-stock {
  color: var(--fucsia);
  font-weight: 500 !important;
}

.product p.stock.out-of-stock:before {
  background: var(--fucsia);
}

#breadcrumbs {
  margin: 20px 0px;
}

#breadcrumbs a {
  color: #666 !important;
  font-size: 0.84375rem !important;
}

#breadcrumbs a:hover {
  color: var(--blue-sky) !important;
}


#breadcrumbs .breadcrumb_last {
  font-size: 0.84375rem !important;
}

.woocommerce span.onsale {
  display: none;
}


.product p.price del {
    font-size: 18px;
}

#product-video {
  /* Borrar */
  margin-top: 20px;
  cursor: pointer;
}

#container-head-video,
#container-product-video {
  margin-top: 20px;
  cursor: pointer;
}

#product-min-weight-top {
  font-size: 14px;
}

#whatsapp-button-container {
  margin-top: 30px;

}

.config-tus-ruedas {
  margin-top: 40px;
}

#preorder-message {
  background: #EBB046;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 20px 0px;

  text-align: center;
}

#out-of-stock-message {
  background: var(--blue-sky);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}


#product-min-weight-after-variations-form {
  display: flex;
  gap: 0px;
  /* Optional: Adds space between columns */
  background: var(--blue-sky);
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: white;
  align-items: center;
  padding: 10px;

}

#product-min-weight-after-variations-form .column {
  flex: 1 1 auto;
  /* Automatically adjust based on content */
}

.woocommerce-variation-description {
  display: none;
}

.anyade-extras {
  font-size: 1.41575em !important;
  border-bottom: none !important;

}

/*** Begin extras ***/
.header-extras {
  cursor: pointer;
}

#container-all-extras {
  margin-top: 30px;
}

.container-extras {
  display: none;
  overflow-x: hidden;
  overflow-y: scroll;
  max-height: 400px;
  margin-bottom: 20px;
}

.container-extras::-webkit-scrollbar {
  width: 5px;
}

.container-extras::-webkit-scrollbar-track {
  background: none;
}

.container-extras::-webkit-scrollbar-thumb {
  background-color: var(--blue-sky);
  border-radius: 20px;
  /*border: 3px solid orange; */
  border: none;
}

.container-extras #cerrar {
  cursor: pointer;
  float: right;
  padding-right: 5px;
  display: none;
  font-size: 12px;
}


.container-extras #content ul.products li.product .woocommerce-LoopProduct-link {
  min-height: 10px;
}

.container-extras #content {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container-extras #content ul.products {
    width: calc(100% + 45px) !important;
  }

  .container-extras #content ul.products li.product {
    width: 50%;
  }
}



.container-extras #content ul.products li.product:not(.product-category) {
  padding-bottom: 0px !important
}

.container-extras #content ul.products li.product:not(.product-category)::before {
  background-color: transparent !important;
  box-shadow: none !important;
  margin-bottom: 0px !important;
  margin-left: 0px !important;
}



/*** End extras ***/

.product h2.tabs {
  font-size: 20px;
}

.commercekit-atc-tab-links li a:after {
  border-color: var(--blue);
}


/*** Begin Especificaciones ***/
.especificaciones {
  display: flex;
  flex-direction: column;
}

.item {
  margin: 10px 0px;

}


@media (min-width: 768px) {
  .especificaciones {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .item {
    flex: 0 0 calc(50%);
    /* flex: 0 0 calc(50% - 20px)*/
  }
}

/*** end Especificaciones ***/

/*** Begin specs ruedas ***/
table#specs td {
  border-bottom: 1px solid #000;
  padding: 2px 0px;
  vertical-align: middle;
}

table#specs td.item {

  color: #000;
  font-weight: bold;
}

table#specs tr td.item .normal {
  color: #000;
  font-weight: normal;
}



table#specs tr td.detalle-subitems {

  color: #000;
  font-size: 14px;
}


table#specs tr td.detalle-subitems hr {
  margin: 0.25rem 0rem;
  border-bottom: 1px dotted #000;
}

@media (max-width: 768px) {
  table#specs tr td.detalle-subitems {
    color: #000;
    font-size: 0.63em;
  }
}


@media (max-width: 768px) {
  table#specs {
    font-size: 13px;
  }
}

/*** end specs ruedas ***/



/*** Begin image section - profile ***/



#perfil-seccion img {
  margin: 0 auto !important;
  vertical-align: middle;
  width: 80%;

}

@media (max-width: 768px) {
  #perfil-seccion img {
    width: 100%;
  }
}

p.perfil-seccion-caption {
  text-align: center;
  font-size: 12px;
}

/*** end image section - profile ***/


/*** begin yith woocommerce product add ons ***/
.yith-wapo-block .yith-wapo-addon .addon-header{
  display: none !important;
}
.yith-wapo-option.selected .product-container{
  border: 1px solid var(--blue) !important;
}

.yith-wapo-option.selected .product-container:after {
    background-color: var(--blue) !important;
}

#wapo-total-price-table{
  padding: 10px !important;
  border-radius: 10px !important;
  margin-bottom: 20px !important;
  
}

#wapo-total-price-table table{
 margin-top: 5px !important;
  line-height: 5px !important;

}

#wapo-total-price-table table th{
  font-size: 14px !important;

}

.yith-wapo-block del .woocommerce-Price-amount.amount{
  opacity: 1 !important;
  color: #72767c !important;
  font-weight: 400 !important;
}

.yith-wapo-addon .yith-wapo-option small del{
  opacity: 1 !important;
   color: #72767c !important;
 
}

.yith-wapo-block .woocommerce-Price-amount.amount{
  color: var(--blue-sky) !important;
  font-weight: 400 !important;
}

/** fem meut el container a mobile ja que no cap */
@media (max-width: 768px) {
  .yith-wapo-block{
    width: 97.5% !important;
  }
}

/*** end yith woocommerce product add ons ***/


/***********************************************************************/
/**************************** CARRITO *********************************/
/***********************************************************************/
#shipping_method>li>input[type=radio]:first-child:checked+label::before {
  background-color: var(--blue);
}

.cart_totals .includes_tax .woocommerce-Price-amount.amount {
  display: none;
}


/***********************************************************************/
/**************************** CHECKOUT *********************************/
/***********************************************************************/

.woocommerce-checkout ul.woocommerce-error{
  font-size: 14px !important
}

.woocommerce-checkout #customer_details .col-1{
  padding-top: 40px !important;
} 

.woocommerce-checkout .woocommerce-billing-fields h3{
  border-bottom: 1px solid #000;
}

.woocommerce-checkout h3#order_review_heading {
  border-bottom: 1px solid #000;
  padding-bottom: 0px;
}

.woocommerce-checkout #ship-to-different-address {
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
  font-size: 23px;
}


.woocommerce-checkout #ship-to-different-address {
  border-bottom: 1px solid #000;
}

/* ocultem el toogle de cupons */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none;
}

.woocommerce-checkout .woocommerce-notices-wrapper {
  margin-top: 20px;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  background: black;
  border-left: .6180469716em solid rgba(116, 116, 116, 0.5);
}

.woocommerce-checkout .woocommerce-form-login {
  width: 100%;
  border-radius: 10px;
  background-color: white;

}

.woocommerce-checkout .shoptimizer-archive {
  background-color: #eee;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
}

.woocommerce-checkout .create-account {
  margin-top: 20px;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
}


.woocommerce-checkout .woocommerce-additional-fields {
  margin-top: 30px;
}

/* text area notes al 100% */
.woocommerce-checkout .col2-set .notes {
  width: 100% !important;
} 

.woocommerce-checkout .wc_payment_methods {
  background-color: white;
}

#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label::before {
  background-color: var(--blue);
}

/***********************************************************************/
/**************************** CONTACTO *********************************/
/***********************************************************************/
.gravity-confirmation {
  background-color: black;
  color: white;
  padding: 10px;
  text-align: center;
}



/***********************************************************************/
/**************************** PRE FOOTER *******************************/
/***********************************************************************/
@media (max-width: 768px) {
  #container-item-pre-footer {
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
  }
}

#container-item-pre-footer .icon {
  text-align: center;
}

#container-item-pre-footer .title {
  color: #111111;
}

#container-item-pre-footer .text {
  margin-top: 10px;
  color: #444444;
}



/********************************************************************
/**************************** FOOTER *******************************/
/*******************************************************************/
.site footer.site-footer .widget .widget-title {
  font-size: 25px;
}

.site footer.site-footer .widget li a {
  color: white;
}



/*********************************************************************
/**************************** CHECKOUT *******************************/
/********************************************************************/

.woocommerce-checkout .woocommerce h3 {
  padding-top: 20px !important;
  border-bottom: none !important;
  font-size: 28px !important;
}

.woocommerce-checkout .woocommerce-error li a{
  color: white !important;
}

.woocommerce-checkout.checkout-inline-error-message{
  color: #e2401c !important;
}



.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .shipping_address,
.woocommerce-checkout .e-checkout__order_review,
.woocommerce-checkout .e-coupon-box,
.woocommerce-checkout-payment{

  border: none !important;
}


.woocommerce-billing-fields label {
  color: black !important;
  margin-bottom: 10px !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  margin-top: -60px !important;
  padding: 0px !important;
}

.woocommerce-checkout #customer_details .form-row {
  margin-top: 20px !important;
}

.woocommerce-checkout #customer_details .form-row .input-text,
.woocommerce-checkout .select2-selection,
.woocommerce-checkout #coupon_code{
  background-color: #eee !important;
  color: black !important;
}

.woocommerce-checkout .woocommerce button.woocommerce-button{
  background-color: var(--blue-sky) !important;
  border: none !important;
  color: white !important;
  font-size: 14px !important;
}

.woocommerce-checkout .custom-form-header {
  padding-top: 50px !important;
  font-size: 28px !important;
}

.woocommerce-checkout #ship-to-different-address span {
  font-size: 20px !important;
  color: black !important;
}

.woocommerce-checkout button#place_order {
  background-color: var(--blue-sky) !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,td{
  font-size: 14px !important;

}

.woocommerce-checkout #wc_openpay_gateway h5{
  color: #000 !important;
  margin-bottom: 10px !important;
}




/*********************************************************************/
/******************** GRAVITY FORMS PLUGIN ***************************/
/********************************************************************/
.gform_wrapper .gform_ajax_spinner {
  width: 150px !important;
  position: absolute;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin-top: 0 !important; /* Eliminamos el margen superior ya que usamos top */
  opacity: 0.7 !important;
}

/****************************************************************/
/************************* BREVO *****************************/
/****************************************************************/
.sib-VIA-area {
  display: none !important;
}



/***********************************************************************/
/*************** VIDEOS CUSTOM *****************************************/
/***********************************************************************/

/* Contenedor de video individual */
.video-container-custom {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.video-container-custom video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-container-custom video.horizontal {
  object-fit: cover;
  /* Mantiene la relación de aspecto original */
}

.video-container-custom video.vertical {
  object-fit: contain;
  /* Ajusta el video dentro del contenedor */
}

/* Versión móvil - formato original del video */
@media (max-width: 768px) {
  .video-container-custom {
    padding-top: 0;
    /* Eliminamos el padding que forzaba el 16:9 */
    height: auto;
    /* Altura automática según el video */
    padding-bottom: 0;
    /* Eliminamos el padding inferior */

  }

  .video-container-custom video {
    position: relative;
    /* Cambiamos a posición relativa */
    height: auto;
    /* Altura según relación de aspecto original */
  }
}

/* Poster personalizado */
.custom-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Efectos hover */
.custom-poster:hover .play-icon {
  transform: scale(1.05);
  background-color: rgba(255, 0, 0, 1);
  /* Rojo sólido al hacer hover */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.custom-poster:hover .play-icon::after {
  border-left-color: white;
  /* Mantener blanco en hover */
}

/* Oculta el poster al reproducir */
.video-container-custom.playing .custom-poster {
  display: none;
}


/* Icono de play estilo YouTube - Colores invertidos */
.play-icon {
  width: 70px;
  height: 50px;
  background-color: rgba(255, 0, 0, 0.9);
  /* Fondo rojo */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.3, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
  /* Triángulo blanco */
  margin-left: 3px;
  transition: all 0.3s ease;
}

/* Versión más grande */
.play-icon.large {
  width: 90px;
  height: 60px;
  border-radius: 16px;
}

.play-icon.large::after {
  border-top-width: 14px;
  border-bottom-width: 14px;
  border-left-width: 22px;
  margin-left: 4px;
}

/* Efecto de pulso sutil */
@keyframes youtube-pulse {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  50% {
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
  }

  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

.play-icon.pulse {
  animation: youtube-pulse 2s infinite;
}

/* Versión con bordes blancos (opcional) */
.play-icon.with-border {
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.play-icon.with-border:hover {
  border-color: rgba(255, 255, 255, 1);
}




/****************************************************************/
/*************** FOOTER *****************************************/
/****************************************************************/
#sib_signup_form_1 {
  color: #545454 !important;
}

#footer #sib_signup_form_1 a {
  color: #8a8a8a;
}

#footer #sib_signup_form_1 label {
  color: white;
}

#footer .sib-email-area input[type="email"] {
  border: 1px solid #ccc !important;
  border-radius: 5px !important;
  padding: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#footer .sib-default-btn {
  background-color: var(--blue);
  width: 100%;
}

form#sib_signup_form_1 p.sib-alert-message-error {
  background-color: red !important;
  border-color: #ebccd1 !important;
  color: white !important;
}

form#sib_signup_form_1 p.sib-alert-message-success {
  background-color: #3c763d !important;
  border-color: #3c763d !important;
  color: white !important;
}


#footer #terms a {
  color: #8a8a8a !important;
}

#footer #text-acepto {
  color: white !important;
}

#footer input[name="terms"] {
  background-color: white !important;
}

#footer #copyright {
  color: white;
}