/* Estilos para los productos verticales de WooCommerce Cross-Domain  */

/* Resaltado de coincidencias en las sugerencias del buscador */
.wcds-sug-match {
    opacity: 0.6;
    font-weight: 400;
}

.wcds-sug-rest {
    font-weight: 600;
}

.busqueda-item {
    /* opcional: estilo específico para el historial */
    opacity: 0.85;
}


.cross-domain-products-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}

.cross-domain-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0 -22px;
}

.cross-domain-product {
    width: calc(25% - 20px);
    margin: 7px;
    padding: 9px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
}

.cross-domain-product:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cross-domain-product a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cross-domain-product img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    order: 0;
}

.cross-domain-product h2 {
    font-size: 1rem;
    margin: 15px 0 5px;
    color: #333;
    order: 1;
}

.custom-labels-container {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.custom-labels {
    display: inline-block;
}

.custom-labels span {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
}

.custom-labels span {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    font-weight: bold;
    color: white;
}

.super-oferta {
    background-color: #ff0000;
}

.mas-vendido {
    background-color: #00ff00;
}

.en-liquidacion {
    background-color: #0000ff;
}
/* destello etiqueta */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s linear infinite;
}
/*precio*/
.cross-domain-product .price {
    font-weight: bold;
    color: #0066cc;
    font-size: 18px;
    margin: 5px 0 0;
    order: 3;
}
/* text imagen */
.consultar-por {
    margin: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
order: 4;
}

.consultar-icon {
    vertical-align: middle;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
  
}


/* Estilos responsivos */


/* Layout horizontal en móviles */
@media (max-width: 600px) {
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-products {
    display: flex;
    flex-direction: column;
    margin: 8px -10px;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0px 0px 10px 0px;
        padding: 10px;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product a {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product img {
    width: 45%;
    height: 45%;
    object-fit: cover;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product .product-info {
    width: 55%;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product h2 {
    font-size: 1rem;
    margin: 0 0 5px;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product .price {
    margin: 5px 0;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product .consultar-por {
    margin: 0px;
  }
  
  .cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-product .custom-labels-container {
    margin-top: 0px;
  }
.cross-domain-products-wrapper[data-layout="horizontal"] .cross-domain-products-wrapper {
    
}

}
