| Descripción del Producto | Cartera Mujer Call It Spring Descubre la cartera Call It Spring, diseñ,ada para la mujer moderna. Su estilo contemporá,neo y su color ú,nico la convierten en el complemento perfecto para cualquier look. Con espacio suficiente para tus esenciales, es la opció,n ideal para quienes buscan funcionalidad sin sacrificar el estilo. @media (max-width: 767px) { .color-button { width: 75px !important, height: 108px !important, margin: 0 !important, background-size: cover !important, background-position: center !important, border-radius: 15px !important, } .color-text-button { font-size: 12px !important, } .ver-color-texto { font-size: 12px !important, } .product-text { font-size: 22px !important, } } Color: @media (max-width: 767px) { .color-text { top: 2vw!important , left: 4vw!important , font-size: 16px!important , /* O el tamañ,o de fuente que prefieras */ } .color-swatch { width: 0.8rem!important , height: 0.8rem!important , } } Ficha del producto: Marca: CALL IT SPRING Modelo: TEAGANN001 Tipo: Carteras Gé,nero: Mujer Tamañ,o: Pequeñ,a Alto: 11 CM Ancho: 22 CM Profundidad: 7 CM Material: Polié,ster Uso: De mano Hecho en: Suiza Condicion del producto: Nuevo INPAGE VESTUARIO PROD document.addEventListener('DOMContentLoaded', function() { const colorButtons = document.querySelectorAll('.color-button'), const colorContainers = document.querySelectorAll('.color-container'), // Funció,n para desplazarse a la primera imagen del color seleccionado function scrollToFirstImage(color) { const images = document.querySelectorAll(`.color-container[data-color='${color}'] img`), if (images.length > 0) { images[0].scrollIntoView({ behavior: 'smooth', block: 'start' }), } } let selectedButton = null, // Variable para almacenar el botó,n seleccionado // Establecer el botó,n inicialmente seleccionado colorButtons.forEach(button => { if (button.checked) { selectedButton = button, button.style.filter = 'brightness(70%)', } }), colorButtons.forEach(button => { button.addEventListener('click', function() { const color = this.dataset.color, colorContainers.forEach(container => { container.style.display = container.dataset.color === color ? 'block' : 'none', }), //scrollToFirstImage(color), // Desplazar siempre a la primera imagen del color seleccionado // Resaltar el botó,n pulsado y restaurar el brillo del botó,n previamente seleccionado colorButtons.forEach(btn => { btn.style.filter = btn === this ? 'brightness(70%)' : 'brightness(100%)', }), selectedButton = this, // Actualizar el botó,n seleccionado }), // Ajustar el brillo cuando el mouse está, encima del botó,n button.addEventListener('mouseover', function() { if (this !== selectedButton) { // Verificar si el botó,n no está, seleccionado this.style.filter = 'brightness(90%)', } }), // Restaurar el brillo cuando el mouse sale del botó,n button.addEventListener('mouseout', function() { if (this !== selectedButton) { // Verificar si el botó,n no está, seleccionado this.style.filter = 'brightness(100%)', } }), }), }), |