diff --git a/assets/banner-antiedad-sm.avif b/assets/banner-antiedad-sm.avif new file mode 100644 index 0000000..347575d Binary files /dev/null and b/assets/banner-antiedad-sm.avif differ diff --git a/assets/banner-antiedad.avif b/assets/banner-antiedad.avif index 3f087d7..5e4cc66 100644 Binary files a/assets/banner-antiedad.avif and b/assets/banner-antiedad.avif differ diff --git a/assets/banner-control-grasa-sm.avif b/assets/banner-control-grasa-sm.avif new file mode 100644 index 0000000..36a9511 Binary files /dev/null and b/assets/banner-control-grasa-sm.avif differ diff --git a/assets/banner-control-grasa.avif b/assets/banner-control-grasa.avif index 9be8595..0a23fa2 100644 Binary files a/assets/banner-control-grasa.avif and b/assets/banner-control-grasa.avif differ diff --git a/assets/banner-hidrata-sm.avif b/assets/banner-hidrata-sm.avif new file mode 100644 index 0000000..d4d38b5 Binary files /dev/null and b/assets/banner-hidrata-sm.avif differ diff --git a/assets/banner-hidrata.avif b/assets/banner-hidrata.avif new file mode 100644 index 0000000..d8e2660 Binary files /dev/null and b/assets/banner-hidrata.avif differ diff --git a/assets/banner-hidratantes-sm.avif b/assets/banner-hidratantes-sm.avif new file mode 100644 index 0000000..7210078 Binary files /dev/null and b/assets/banner-hidratantes-sm.avif differ diff --git a/assets/banner-hidratantes.avif b/assets/banner-hidratantes.avif index b3ffb7f..db489b6 100644 Binary files a/assets/banner-hidratantes.avif and b/assets/banner-hidratantes.avif differ diff --git a/assets/banner-kits-sm.avif b/assets/banner-kits-sm.avif new file mode 100644 index 0000000..2d7c2cd Binary files /dev/null and b/assets/banner-kits-sm.avif differ diff --git a/assets/banner-limpia-sm.avif b/assets/banner-limpia-sm.avif new file mode 100644 index 0000000..01b4680 Binary files /dev/null and b/assets/banner-limpia-sm.avif differ diff --git a/assets/banner-limpia.avif b/assets/banner-limpia.avif new file mode 100644 index 0000000..8a1740b Binary files /dev/null and b/assets/banner-limpia.avif differ diff --git a/assets/banner-limpiadores-sm.avif b/assets/banner-limpiadores-sm.avif new file mode 100644 index 0000000..40f0d1b Binary files /dev/null and b/assets/banner-limpiadores-sm.avif differ diff --git a/assets/banner-limpiadores.avif b/assets/banner-limpiadores.avif index 79d5920..8ab1ab1 100644 Binary files a/assets/banner-limpiadores.avif and b/assets/banner-limpiadores.avif differ diff --git a/assets/banner-manchas-sm.avif b/assets/banner-manchas-sm.avif new file mode 100644 index 0000000..b6c11b4 Binary files /dev/null and b/assets/banner-manchas-sm.avif differ diff --git a/assets/banner-manchas.avif b/assets/banner-manchas.avif index 9ffb52a..914124f 100644 Binary files a/assets/banner-manchas.avif and b/assets/banner-manchas.avif differ diff --git a/assets/banner-mascarillas-sm.avif b/assets/banner-mascarillas-sm.avif new file mode 100644 index 0000000..7ec5ecb Binary files /dev/null and b/assets/banner-mascarillas-sm.avif differ diff --git a/assets/banner-mascarillas.avif b/assets/banner-mascarillas.avif index 5bbd0b4..5db7037 100644 Binary files a/assets/banner-mascarillas.avif and b/assets/banner-mascarillas.avif differ diff --git a/assets/banner-piel-grasa-sm.avif b/assets/banner-piel-grasa-sm.avif new file mode 100644 index 0000000..7a6db10 Binary files /dev/null and b/assets/banner-piel-grasa-sm.avif differ diff --git a/assets/banner-piel-grasa.avif b/assets/banner-piel-grasa.avif index 918cabc..c2201ef 100644 Binary files a/assets/banner-piel-grasa.avif and b/assets/banner-piel-grasa.avif differ diff --git a/assets/banner-piel-mixta-grasa-sm.avif b/assets/banner-piel-mixta-grasa-sm.avif new file mode 100644 index 0000000..9e2fa73 Binary files /dev/null and b/assets/banner-piel-mixta-grasa-sm.avif differ diff --git a/assets/banner-piel-mixta-grasa.avif b/assets/banner-piel-mixta-grasa.avif index f8baf71..15a44ab 100644 Binary files a/assets/banner-piel-mixta-grasa.avif and b/assets/banner-piel-mixta-grasa.avif differ diff --git a/assets/banner-piel-seca-sm.avif b/assets/banner-piel-seca-sm.avif new file mode 100644 index 0000000..ef57cfa Binary files /dev/null and b/assets/banner-piel-seca-sm.avif differ diff --git a/assets/banner-piel-seca.avif b/assets/banner-piel-seca.avif index 1d363c3..0bac796 100644 Binary files a/assets/banner-piel-seca.avif and b/assets/banner-piel-seca.avif differ diff --git a/assets/banner-preocupacion-acne-sm.avif b/assets/banner-preocupacion-acne-sm.avif new file mode 100644 index 0000000..216cb6c Binary files /dev/null and b/assets/banner-preocupacion-acne-sm.avif differ diff --git a/assets/banner-preocupacion-acne.avif b/assets/banner-preocupacion-acne.avif index fd55468..c96d920 100644 Binary files a/assets/banner-preocupacion-acne.avif and b/assets/banner-preocupacion-acne.avif differ diff --git a/assets/banner-preocupacion-hidratacion-sm.avif b/assets/banner-preocupacion-hidratacion-sm.avif new file mode 100644 index 0000000..3f3e79f Binary files /dev/null and b/assets/banner-preocupacion-hidratacion-sm.avif differ diff --git a/assets/banner-preocupacion-hidratacion.avif b/assets/banner-preocupacion-hidratacion.avif index f49d4a0..0d0c840 100644 Binary files a/assets/banner-preocupacion-hidratacion.avif and b/assets/banner-preocupacion-hidratacion.avif differ diff --git a/assets/banner-preocupacion-solar.avif b/assets/banner-preocupacion-solar.avif new file mode 100644 index 0000000..6969281 Binary files /dev/null and b/assets/banner-preocupacion-solar.avif differ diff --git a/assets/banner-proteccion-solar-sm.avif b/assets/banner-proteccion-solar-sm.avif new file mode 100644 index 0000000..35d0c1c Binary files /dev/null and b/assets/banner-proteccion-solar-sm.avif differ diff --git a/assets/banner-proteccion-solar.avif b/assets/banner-proteccion-solar.avif index da3c5d6..0ae7bff 100644 Binary files a/assets/banner-proteccion-solar.avif and b/assets/banner-proteccion-solar.avif differ diff --git a/assets/banner-protectores-sm.avif b/assets/banner-protectores-sm.avif new file mode 100644 index 0000000..de2c598 Binary files /dev/null and b/assets/banner-protectores-sm.avif differ diff --git a/assets/banner-protectores.avif b/assets/banner-protectores.avif index 894fbd9..3b52d76 100644 Binary files a/assets/banner-protectores.avif and b/assets/banner-protectores.avif differ diff --git a/assets/banner-serums-sm.avif b/assets/banner-serums-sm.avif new file mode 100644 index 0000000..1e3f2c3 Binary files /dev/null and b/assets/banner-serums-sm.avif differ diff --git a/assets/banner-serums.avif b/assets/banner-serums.avif index 44eac15..08439fc 100644 Binary files a/assets/banner-serums.avif and b/assets/banner-serums.avif differ diff --git a/assets/banner-todos-productos-sm.avif b/assets/banner-todos-productos-sm.avif new file mode 100644 index 0000000..09cb8ba Binary files /dev/null and b/assets/banner-todos-productos-sm.avif differ diff --git a/assets/banner-trata-sm.avif b/assets/banner-trata-sm.avif new file mode 100644 index 0000000..dea045f Binary files /dev/null and b/assets/banner-trata-sm.avif differ diff --git a/assets/banner-trata.avif b/assets/banner-trata.avif new file mode 100644 index 0000000..661401c Binary files /dev/null and b/assets/banner-trata.avif differ diff --git a/assets/bestsellers-promo-sm.avif b/assets/bestsellers-promo-sm.avif index c517319..87cbf5e 100644 Binary files a/assets/bestsellers-promo-sm.avif and b/assets/bestsellers-promo-sm.avif differ diff --git a/assets/bestsellers-promo.avif b/assets/bestsellers-promo.avif index 0dcd1e6..8801e50 100644 Binary files a/assets/bestsellers-promo.avif and b/assets/bestsellers-promo.avif differ diff --git a/assets/hero-frame-desktop.avif b/assets/hero-frame-desktop.avif new file mode 100644 index 0000000..e102563 Binary files /dev/null and b/assets/hero-frame-desktop.avif differ diff --git a/assets/hero-frame-mobile.avif b/assets/hero-frame-mobile.avif new file mode 100644 index 0000000..1642c31 Binary files /dev/null and b/assets/hero-frame-mobile.avif differ diff --git a/assets/hero-mobile.mp4 b/assets/hero-mobile.mp4 new file mode 100644 index 0000000..db4fa32 Binary files /dev/null and b/assets/hero-mobile.mp4 differ diff --git a/assets/learn-reel-1-sm.avif b/assets/learn-reel-1-sm.avif new file mode 100644 index 0000000..556a75a Binary files /dev/null and b/assets/learn-reel-1-sm.avif differ diff --git a/assets/learn-reel-1.avif b/assets/learn-reel-1.avif new file mode 100644 index 0000000..28293c6 Binary files /dev/null and b/assets/learn-reel-1.avif differ diff --git a/assets/learn-reel-2-sm.avif b/assets/learn-reel-2-sm.avif new file mode 100644 index 0000000..213592b Binary files /dev/null and b/assets/learn-reel-2-sm.avif differ diff --git a/assets/learn-reel-2.avif b/assets/learn-reel-2.avif new file mode 100644 index 0000000..1e7aad5 Binary files /dev/null and b/assets/learn-reel-2.avif differ diff --git a/assets/learn-reel-3-sm.avif b/assets/learn-reel-3-sm.avif new file mode 100644 index 0000000..884dcff Binary files /dev/null and b/assets/learn-reel-3-sm.avif differ diff --git a/assets/learn-reel-3.avif b/assets/learn-reel-3.avif new file mode 100644 index 0000000..02c950a Binary files /dev/null and b/assets/learn-reel-3.avif differ diff --git a/assets/learn-reel-4-sm.avif b/assets/learn-reel-4-sm.avif new file mode 100644 index 0000000..5d14379 Binary files /dev/null and b/assets/learn-reel-4-sm.avif differ diff --git a/assets/learn-reel-4.avif b/assets/learn-reel-4.avif new file mode 100644 index 0000000..df5cefa Binary files /dev/null and b/assets/learn-reel-4.avif differ diff --git a/assets/learn-reel-5-sm.avif b/assets/learn-reel-5-sm.avif new file mode 100644 index 0000000..c674a19 Binary files /dev/null and b/assets/learn-reel-5-sm.avif differ diff --git a/assets/learn-reel-5.avif b/assets/learn-reel-5.avif new file mode 100644 index 0000000..06d54ad Binary files /dev/null and b/assets/learn-reel-5.avif differ diff --git a/assets/nuevos-productos-2.mp4 b/assets/nuevos-productos-2.mp4 new file mode 100644 index 0000000..bf4bd69 Binary files /dev/null and b/assets/nuevos-productos-2.mp4 differ diff --git a/assets/nuevos-productos-poster.avif b/assets/nuevos-productos-poster.avif new file mode 100644 index 0000000..a682121 Binary files /dev/null and b/assets/nuevos-productos-poster.avif differ diff --git a/assets/pay-amex.svg b/assets/pay-amex.svg new file mode 100644 index 0000000..0447d7a --- /dev/null +++ b/assets/pay-amex.svg @@ -0,0 +1 @@ +American Express diff --git a/assets/pay-aplazo.svg b/assets/pay-aplazo.svg new file mode 100644 index 0000000..1d9cf31 --- /dev/null +++ b/assets/pay-aplazo.svg @@ -0,0 +1 @@ +Metodo de pago diff --git a/assets/pay-kueski.svg b/assets/pay-kueski.svg new file mode 100644 index 0000000..b1905ee --- /dev/null +++ b/assets/pay-kueski.svg @@ -0,0 +1 @@ +Metodo de pago diff --git a/assets/pay-mastercard.svg b/assets/pay-mastercard.svg new file mode 100644 index 0000000..6d97472 --- /dev/null +++ b/assets/pay-mastercard.svg @@ -0,0 +1 @@ +Mastercard diff --git a/assets/pay-mercadopago.svg b/assets/pay-mercadopago.svg new file mode 100644 index 0000000..fbd36d2 --- /dev/null +++ b/assets/pay-mercadopago.svg @@ -0,0 +1 @@ +Mercado Pago diff --git a/assets/pay-paypal.svg b/assets/pay-paypal.svg new file mode 100644 index 0000000..303e742 --- /dev/null +++ b/assets/pay-paypal.svg @@ -0,0 +1,9 @@ + + PayPal + + + + + + + diff --git a/assets/pay-visa.svg b/assets/pay-visa.svg new file mode 100644 index 0000000..1299545 --- /dev/null +++ b/assets/pay-visa.svg @@ -0,0 +1 @@ +Visa diff --git a/assets/scroll-motion.js b/assets/scroll-motion.js index 8a84034..3260c99 100644 --- a/assets/scroll-motion.js +++ b/assets/scroll-motion.js @@ -12,9 +12,9 @@ const presets = [ { y: 48, x: 0, scale: 1 }, - { y: 28, x: 40, scale: 1 }, + { y: 28, x: 0, scale: 1 }, { y: 32, x: 0, scale: 0.97 }, - { y: 24, x: -36, scale: 1 }, + { y: 24, x: 0, scale: 1 }, ]; const running = new WeakMap(); diff --git a/assets/seasons-hero-desktop.mp4 b/assets/seasons-hero-desktop.mp4 new file mode 100644 index 0000000..ee91258 Binary files /dev/null and b/assets/seasons-hero-desktop.mp4 differ diff --git a/assets/seasons-hero-mobile.mp4 b/assets/seasons-hero-mobile.mp4 new file mode 100644 index 0000000..0ea9b11 Binary files /dev/null and b/assets/seasons-hero-mobile.mp4 differ diff --git a/assets/video-11.png b/assets/video-11.png new file mode 100644 index 0000000..274c0be Binary files /dev/null and b/assets/video-11.png differ diff --git a/assets/video-22.png b/assets/video-22.png new file mode 100644 index 0000000..06c2ae2 Binary files /dev/null and b/assets/video-22.png differ diff --git a/assets/video-44.png b/assets/video-44.png new file mode 100644 index 0000000..dabecac Binary files /dev/null and b/assets/video-44.png differ diff --git a/assets/video-55.png b/assets/video-55.png new file mode 100644 index 0000000..0668c03 Binary files /dev/null and b/assets/video-55.png differ diff --git a/config/settings_data.json b/config/settings_data.json index 5f2e1c9..99c93cb 100644 --- a/config/settings_data.json +++ b/config/settings_data.json @@ -1 +1,23 @@ -{"current":{}} \ No newline at end of file +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "current": { + "sections": { + "cart-drawer": { + "type": "cart-drawer", + "settings": { + "free_shipping": 699, + "recommendations": "" + } + } + }, + "content_for_index": [] + } +} diff --git a/config/settings_schema.json b/config/settings_schema.json index 2d8fdaf..32af8e7 100644 --- a/config/settings_schema.json +++ b/config/settings_schema.json @@ -80,6 +80,153 @@ "label": "Meta descripción por defecto", "default": "Skincare mexicano con ingredientes naturales: protectores solares, sérums, hidratantes y limpiadores para cada tipo de piel. Encuentra tu rutina Seasons.", "info": "Se usa en páginas sin descripción propia (inicio, colecciones sin descripción). Máx. ~155 caracteres." + }, + { + "type": "header", + "content": "Datos estructurados de producto (Google)" + }, + { + "type": "text", + "id": "sd_ship_country", + "label": "País de envío (ISO)", + "default": "MX" + }, + { + "type": "number", + "id": "sd_ship_cost", + "label": "Costo de envío estándar", + "default": 150, + "info": "En la moneda de la tienda." + }, + { + "type": "number", + "id": "sd_free_threshold", + "label": "Envío gratis desde", + "default": 699, + "info": "0 para desactivar." + }, + { + "type": "number", + "id": "sd_handling_min", + "label": "Preparación mínima (días hábiles)", + "default": 1 + }, + { + "type": "number", + "id": "sd_handling_max", + "label": "Preparación máxima (días hábiles)", + "default": 2 + }, + { + "type": "number", + "id": "sd_transit_min", + "label": "Tránsito mínimo (días hábiles)", + "default": 3 + }, + { + "type": "number", + "id": "sd_transit_max", + "label": "Tránsito máximo (días hábiles)", + "default": 5 + }, + { + "type": "checkbox", + "id": "sd_returns", + "label": "Acepta cambios/devoluciones", + "default": true + }, + { + "type": "number", + "id": "sd_return_days", + "label": "Días para solicitar cambio", + "default": 5 + }, + { + "type": "select", + "id": "sd_refund_type", + "label": "Tipo de reembolso", + "default": "ExchangeRefund", + "options": [ + { + "value": "ExchangeRefund", + "label": "Solo cambio de producto" + }, + { + "value": "FullRefund", + "label": "Reembolso total" + }, + { + "value": "StoreCreditRefund", + "label": "Crédito en tienda" + } + ] + }, + { + "type": "select", + "id": "sd_return_fees", + "label": "Costo del envío de devolución", + "default": "FreeReturn", + "options": [ + { + "value": "FreeReturn", + "label": "Gratis (lo paga la tienda)" + }, + { + "value": "ReturnFeesCustomerResponsibility", + "label": "Lo paga el cliente" + } + ] + } + ] + }, + { + "name": "Google Customer Reviews", + "settings": [ + { + "type": "checkbox", + "id": "gcr_badge_enabled", + "label": "Mostrar insignia de Reseñas de Clientes en Google", + "default": true + }, + { + "type": "text", + "id": "gcr_merchant_id", + "label": "ID de Merchant Center", + "default": "464277577" + }, + { + "type": "select", + "id": "gcr_badge_position", + "label": "Posición de la insignia", + "default": "BOTTOM_LEFT", + "options": [ + { + "value": "BOTTOM_LEFT", + "label": "Abajo a la izquierda" + }, + { + "value": "BOTTOM_RIGHT", + "label": "Abajo a la derecha" + } + ] + }, + { + "type": "text", + "id": "gcr_region", + "label": "Región (ISO)", + "default": "MX" + } + ] + }, + { + "name": "Filtros", + "settings": [ + { + "type": "textarea", + "id": "facets_hidden_tags", + "label": "Etiquetas ocultas en filtros", + "info": "Separadas por coma. Las etiquetas con guion bajo (_) se ocultan siempre.", + "default": "bonsai_excluded, DESCONTINUAR, Exclude From Back In Stock, exclude_rebuy, exclude_recommendations, exclude_review, hidden, Hidden recommendation, Hide, judgeme_excluded, NO, nocart, not-on-sale, price-change-job-active, PRUEBA, SEARCHANISE_IGNORE, spo-default, spo-disabled, __hidden, Buen Fin, REGALO, TODO, OFERTAS, PRECIO ESPECIAL, Nuevos, NUEVA LÍNEA" } ] } diff --git a/layout/theme.liquid b/layout/theme.liquid index 683240d..f4b7dc9 100644 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -1,6 +1,12 @@ + + {%- if template.name == 'index' -%} + {%- # Hero cover (first frame of the theme-hosted video) = LCP image. Before the large inline CSS. -%} + + + {%- endif -%} {% # Inlined CSS Variables %} {% render 'css-variables' %} @@ -15,7 +21,6 @@ {% render 'delay-header-scripts', html: shopify_header %} {% # WhatsApp coupon widget host: warm up the connection early %} {%- unless request.design_mode %} - {%- endunless %} @@ -37,6 +42,9 @@ {% endif %} + {% render 'cart-merge-lines' %} + {% render 'carousel-edge-arrows' %} {% render 'whatsapp-coupon-widget' %} + {% render 'google-merchant-badge' %} diff --git a/locales/en.default.json b/locales/en.default.json index 1d25dce..6433ec0 100644 --- a/locales/en.default.json +++ b/locales/en.default.json @@ -1,12 +1,3 @@ -/* - * ------------------------------------------------------------ - * IMPORTANT: The contents of this file are auto-generated. - * - * This file may be updated by the Shopify admin language editor - * or related systems. Please exercise caution as any changes - * made to this file may be overwritten. - * ------------------------------------------------------------ - */ { "404": { "title": "404", @@ -124,7 +115,9 @@ "empty": "Tu carrito está vacío", "remove": "Eliminar", "decrease": "Reducir cantidad", - "increase": "Aumentar cantidad" + "increase": "Aumentar cantidad", + "subscription": "Suscripción", + "one_time": "Compra única" }, "customers": { "login": { @@ -139,7 +132,8 @@ }, "product_page": { "add": "Añadir a carrito", - "buy": "Comprar ahora", + "buy": "Comprar", + "express": "Pago express", "favorite": "Favoritos", "options": "Opciones: {{ option }}", "description": "Descripción del producto", @@ -148,8 +142,9 @@ "payments": "Métodos de pago", "payments_text": "Pago seguro con métodos confiables y cifrados. También puedes pagar a plazos con Mercado Pago, Kueski Pay o Aplazo.", "shipping": "Envío gratis desde $699 a todo México.", - "payment": "Pago seguro métodos confiables y cifrados.", + "payment": "Pago seguro", "installments": "Pago a plazos con Mercado Pago, Kueski Pay o Aplazo.", + "installments_with": "Pago a plazos con", "guarantee": "Garantía de entrega reenvío sin costo si algo falla.", "routine": "Completa tu rutina", "also": "Llévate también", @@ -163,6 +158,11 @@ "after": "Después", "reviewer": "Cliente", "gallery": "Imágenes del producto", + "gallery_open": "Ver imagen en grande", + "gallery_close": "Cerrar imagen", + "gallery_prev": "Imagen anterior", + "gallery_next": "Imagen siguiente", + "gallery_count": "{{ current }} de {{ total }}", "write_review": "Escribir Reseña", "view_more": "Ver más", "review_name": "Nombre", @@ -222,6 +222,9 @@ "search_placeholder": "Busca tu producto seasons favorito", "search_empty": "No hay productos para “{{ terms }}”", "search_view_all": "Ver todos los resultados", + "search_sale": "Oferta", + "search_sale_price": "Precio especial", + "search_regular_price": "Precio regular", "search_status": { "one": "{{ count }} producto", "other": "{{ count }} productos" @@ -232,16 +235,23 @@ "wishlist_empty": "Aún no tienes favoritos.", "wishlist_remove": "Quitar", "wishlist_close": "Cerrar favoritos", + "wishlist_add": "Agregar", + "wishlist_add_all": "Agregar todo al carrito", + "wishlist_sold_out": "Agotado", + "wishlist_suggest": "Te podría gustar", + "wishlist_browse": "Ver productos", "cart_count": "Carrito, {{ count }} productos", "promo": "Cambia tu piel ¡hoy!", "submenu": "Abrir {{ menu_title }}", + "submenu_next": "Ver más", + "submenu_prev": "Ver anteriores", "links": { "categories": "Categorías", "routine": "Rutina", "skin_type": "Tipo de piel", "concern": "Preocupación", "sunscreen": "Protección Solar", - "favorites": "Los favoritos", + "favorites": "Tus favoritos", "kits": "Kits y Rutinas", "moisturizers": "Hidratantes", "glow_army": "Glow Army", @@ -362,7 +372,11 @@ "subheading": "Descubre tips, rutinas y formas reales de usar tus productos favoritos.", "previous": "Anterior", "next": "Siguiente", - "add_to_cart": "Agregar {{ product }} al carrito" + "add_to_cart": "Agregar {{ product }} al carrito", + "play_sound": "Reproducir video con sonido", + "sound_on": "Activar sonido", + "sound_off": "Silenciar", + "tap_sound": "Toca para escuchar" }, "distributors": { "line_1": "Lleva", @@ -467,5 +481,70 @@ "dropper": "Aplicación de serum en el rostro", "cheek": "Crema aplicada en la mejilla" } + }, + "category_directory": { + "heading": "Categorías", + "moisturizers_title": "Hidratantes", + "moisturizers_text": "La hidratación es la base de una piel sana y luminosa. Descubre geles, cremas y emulsiones con activos como ácido hialurónico, niacinamida y algas marinas, en texturas ligeras que nutren sin sensación grasosa. Dermocosmética diseñada en México para acompañar tu rutina diaria.", + "masks_title": "Mascarillas", + "masks_text": "Dale a tu piel un momento extra de cuidado. Nuestras mascarillas faciales con té verde, avena y calabaza ayudan a nutrir, calmar y equilibrar según lo que tu piel necesita. Un ritual sencillo para consentirte en casa.", + "sun_title": "Protección Solar", + "sun_text": "Protectores solares FPS 50 para rostro y cuerpo con fórmulas ligeras y acabados para cada tipo de piel.", + "cleansers_title": "Limpiadores", + "cleansers_text": "Encuentra el limpiador facial ideal para tu tipo de piel. Nuestras fórmulas ayudan a eliminar impurezas, maquillaje, protector solar y exceso de grasa, dejando tu piel limpia, fresca y lista para continuar con tu rutina de cuidado facial.", + "serum_title": "Sérum", + "serum_text": "Los sérums concentran los activos que tu piel necesita en fórmulas ligeras de rápida absorción. Explora sueros faciales con vitamina C, niacinamida, ácido hialurónico y retinol para hidratar, iluminar y cuidar tu piel paso a paso.", + "treat_title": "Paso 2. Trata", + "treat_text": "El paso que hace la diferencia. Descubre tratamientos con activos específicos para complementar tu rutina y cuidar tu piel según sus necesidades.", + "clean_title": "Paso 1. Limpia", + "clean_text": "El primer paso hacia una piel saludable comienza aquí. Nuestros limpiadores faciales eliminan impurezas, maquillaje y exceso de grasa mientras respetan el equilibrio natural de tu piel.", + "hydrate_step_title": "Paso 3. Hidrata", + "hydrate_step_text": "Hidrata y fortalece tu piel con fórmulas ligeras que ayudan a mantener su equilibrio.", + "protect_title": "Paso 4. Protege", + "protect_text": "Protección diaria para rostro y cuerpo. Texturas ligeras, hidratación y acabados para cada tipo de piel.", + "acne_title": "Acné", + "acne_text": "Cuida la piel con tendencia al acné con fórmulas que ayudan a controlar el exceso de grasa, reducir imperfecciones y mantener una piel equilibrada y saludable.", + "aging_title": "Antiedad", + "aging_text": "Descubre tratamientos antiedad con PDRN, Exosomas, Vitamina C y otros ingredientes que ayudan a mejorar la firmeza, luminosidad e hidratación de tu piel.", + "oil_title": "Control Grasa", + "oil_text": "Descubre tratamientos seborreguladores con Niacinamida, Nopal, Ácido Salicílico y otros ingredientes que ayudan a controlar el exceso de brillo, purificar los poros y mantener la hidratación natural de tu piel.", + "hydration_title": "Hidratación", + "hydration_text": "Hidrata, calma y devuelve el glow natural a tu piel con fórmulas ligeras y efectivas. 🌿 Ideal para todo tipo de piel.", + "spots_title": "Productos para aclarar la piel", + "spots_text": "Trabaja hacia un tono más uniforme y luminoso. Nuestras fórmulas despigmentantes con vitamina C, niacinamida y ácido kójico ayudan a atenuar la apariencia de manchas e iluminar la piel de forma gradual.", + "oily_title": "Piel Grasa", + "oily_text": "Descubre productos diseñados para equilibrar la piel grasa, controlar el exceso de brillo y reducir imperfecciones sin resecar. Fórmulas ligeras que purifican y matifican tu rostro.", + "combination_title": "Piel Mixta-Grasa", + "combination_text": "Si tu piel brilla en la zona T y buscas equilibrio, esta selección es para ti. Limpiadores, hidratantes y protectores solares con texturas ligeras y activos como niacinamida y ácido salicílico que ayudan a controlar el exceso de grasa sin resecar.", + "dry_title": "Piel Seca", + "dry_text": "La piel seca pide hidratación y confort. Descubre cremas, geles y sérums con ácido hialurónico, vitamina C y algas marinas que ayudan a nutrir en profundidad, calmar la sensación de tirantez y devolver luminosidad." + }, + "facets": { + "price_from": "Precio desde", + "price_to": "Precio hasta", + "sort": { + "manual": "Destacados", + "relevance": "Más relevantes", + "best_selling": "Más vendidos", + "title_ascending": "Alfabético, A-Z", + "title_descending": "Alfabético, Z-A", + "price_ascending": "Precio, menor a mayor", + "price_descending": "Precio, mayor a menor", + "created_ascending": "Fecha, más antiguo primero", + "created_descending": "Fecha, más reciente primero" + }, + "labels": { + "availability": "Disponibilidad", + "in_stock": "Disponible", + "out_of_stock": "Agotado", + "price": "Precio", + "product_type": "Tipo de producto", + "brand": "Marca", + "size": "Tamaño", + "color": "Color", + "tags": "Etiquetas", + "category": "Categoría", + "collection": "Colección" + } } } diff --git a/sections/bestsellers.liquid b/sections/bestsellers.liquid index 14d0323..bc5db2b 100644 --- a/sections/bestsellers.liquid +++ b/sections/bestsellers.liquid @@ -21,7 +21,11 @@ endif endif - if section.settings.promo_link != blank + assign promo_href = section.settings.promo_link + if promo_href == blank + assign promo_href = more_url + endif + if promo_href != blank assign promo_tag = 'a' else assign promo_tag = 'div' @@ -71,7 +75,7 @@ <{{ promo_tag }} class="bestsellers__promo" {% if promo_tag == 'a' %} - href="{{ section.settings.promo_link }}" + href="{{ promo_href }}" {% endif %} > {% if section.settings.promo_image != blank %} @@ -103,11 +107,19 @@
+ {% assign shown = 0 %} {% if product_collection != blank and product_collection.products_count > 0 %} - {% for product in product_collection.products limit: products_to_show %} - {% render 'bestsellers-card', product: product, form_suffix: section.id %} + {% for product in product_collection.products %} + {% if product.available %} + {% render 'bestsellers-card', product: product, form_suffix: section.id %} + {% assign shown = shown | plus: 1 %} + {% endif %} + {% if shown >= products_to_show %} + {% break %} + {% endif %} {% endfor %} - {% elsif request.design_mode %} + {% endif %} + {% if shown == 0 and request.design_mode %}

{{ 'bestsellers.empty' | t }}

{% endif %}
@@ -164,7 +176,8 @@ } badge.textContent = String(count); - link.setAttribute('aria-label', link.getAttribute('aria-label').replace(/\d+/, String(count))); + const label = link.getAttribute('aria-label'); + if (label) link.setAttribute('aria-label', label.replace(/\d+/, String(count))); }; const updateArrows = (root) => { @@ -201,6 +214,28 @@ root._bestsellersTimer = null; }; + const mobileSlider = () => window.matchMedia('(max-width: 767px)').matches; + + const slideStride = (viewport) => { + const card = viewport.querySelector('.bestsellers__card'); + if (!card) return 0; + const track = viewport.querySelector('[data-track]'); + const gap = track ? parseFloat(window.getComputedStyle(track).columnGap) || 0 : 0; + return card.getBoundingClientRect().width + gap; + }; + + const centerSlide = (viewport, index, behavior) => { + const stride = slideStride(viewport); + const count = viewport.querySelectorAll('.bestsellers__card').length; + if (!stride || !count) return; + const wrapped = ((index % count) + count) % count; + const max = viewport.scrollWidth - viewport.clientWidth; + viewport.scrollTo({ + left: Math.min(Math.max(wrapped * stride, 0), max), + behavior, + }); + }; + const startAutoplay = (root) => { pauseAutoplay(root); if (reduceMotion.matches || root.dataset.paused === 'true') return; @@ -211,6 +246,16 @@ const max = viewport.scrollWidth - viewport.clientWidth; if (max <= 2) return; + if (mobileSlider()) { + const stride = slideStride(viewport); + const count = viewport.querySelectorAll('.bestsellers__card').length; + if (!stride || count < 2) return; + const index = Math.round(viewport.scrollLeft / stride); + const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches; + centerSlide(viewport, index + 1 >= count ? 0 : index + 1, reduce ? 'auto' : 'smooth'); + return; + } + if (viewport.scrollLeft >= max - 2) { viewport.scrollTo({ left: 0, behavior: 'smooth' }); return; @@ -248,7 +293,10 @@ const html = await response.text(); const parsed = new DOMParser().parseFromString(html, 'text/html'); const limit = Number(root.dataset.limit) || 8; - const cards = Array.from(parsed.querySelectorAll('.bestsellers__card')).slice(0, limit); + const cards = Array.from(parsed.querySelectorAll('.bestsellers__card')).filter((card) => { + const button = card.querySelector('button[type="submit"]'); + return !button || !button.disabled; + }).slice(0, limit); const track = root.querySelector('[data-track]'); if (!track || !cards.length) { root.dataset.sorted = 'true'; @@ -257,6 +305,8 @@ track.replaceChildren(...cards.map((card) => document.importNode(card, true))); applyWishlist(root); + const loadedViewport = root.querySelector('[data-viewport]'); + if (loadedViewport && mobileSlider()) centerSlide(loadedViewport, 0, 'auto'); updateArrows(root); root.dataset.sorted = 'true'; startAutoplay(root); @@ -273,9 +323,17 @@ if (!viewport) return; applyWishlist(root); + if (mobileSlider()) centerSlide(viewport, 0, 'auto'); updateArrows(root); viewport.addEventListener('scroll', () => updateArrows(root), { passive: true }); - window.addEventListener('resize', () => updateArrows(root)); + window.addEventListener('resize', () => { + if (mobileSlider()) { + const stride = slideStride(viewport); + const index = stride ? Math.round(viewport.scrollLeft / stride) : 0; + centerSlide(viewport, index, 'auto'); + } + updateArrows(root); + }); root.addEventListener('mouseenter', () => { root.dataset.paused = 'true'; @@ -369,6 +427,7 @@ }); document.addEventListener('submit', async (event) => { + if (event.defaultPrevented) return; const form = event.target; if (!(form instanceof HTMLFormElement) || !form.classList.contains('bestsellers__form')) return; @@ -409,10 +468,10 @@ return; } + document.dispatchEvent(new CustomEvent('season:cart:open')); const cartResponse = await fetch(root.dataset.cartUrl, { headers: { Accept: 'application/json' } }); const cart = await cartResponse.json(); if (typeof cart.item_count === 'number') setCartCount(cart.item_count); - document.dispatchEvent(new CustomEvent('season:cart:open')); } catch (error) { form.submit(); } finally { diff --git a/sections/cart-drawer.liquid b/sections/cart-drawer.liquid index d881efa..7aad423 100644 --- a/sections/cart-drawer.liquid +++ b/sections/cart-drawer.liquid @@ -100,31 +100,7 @@
- {% if threshold > 0 %} -
-

- {% if unlocked %} - {{ 'cart_drawer.unlocked' | t }} - {% else %} - {{ 'cart_drawer.remaining_before' | t }} - {{ remaining | money_without_trailing_zeros }} - {{ 'cart_drawer.remaining_after' | t }} - {{ 'cart_drawer.free' | t }} - {% endif %} -

-
- -
-
- {% endif %} +
{% if cart.item_count == 0 %} @@ -142,7 +118,7 @@ {% unless item.variant.title == 'Default Title' %}

{{ item.variant.title }}

{% endunless %} -

{{ item.final_line_price | money_without_trailing_zeros }}

+

{{ item.final_line_price | money_without_trailing_zeros }}{% render 'line-purchase-type', item: item %}

- -
-

{{ 'collection_page.products' | t: count: collection.products_count }}

-
- - - - + {%- capture collection_count -%}{{ 'collection_page.products' | t: count: collection.products_count }}{%- endcapture -%} + {% render 'facets-toolbar', + filters: collection.filters, + sort_options: collection.sort_options, + current_sort: current_sort, + action_url: collection.url, + sort_action_url: request.path, + clear_url: collection.url, + tag_list: collection.all_tags, + tag_base_url: collection.url, + count_label: collection_count + %} {% paginate collection.products by per_page %} {% if collection.products_count == 0 %} @@ -318,7 +250,7 @@ {% for product in collection.products %} {% assign card_suffix = section.id | append: '-' | append: forloop.index %} - {% render 'collection-card', product: product, form_suffix: card_suffix %} + {% render 'collection-card', product: product, form_suffix: card_suffix, badge_mode: 'none' %} {% endfor %}
{% endif %} diff --git a/sections/collections.liquid b/sections/collections.liquid index 0433811..ada1c14 100644 --- a/sections/collections.liquid +++ b/sections/collections.liquid @@ -1,40 +1,44 @@ {% comment %} - This section is used in the list-collections template to render a list of - collections. - - https://shopify.dev/docs/storefronts/themes/architecture/templates/collection + Category directory used by the list-collections template. {% endcomment %} -

{{ 'collections.title' | t }}

+
+

{{ 'category_directory.heading' | t }}

-
- {% for collection in collections %} - - {% if collection.featured_image %} - {% render 'image', - class: 'collection-card__image', - image: collection.featured_image, - width: 600, - height: 600, - crop: 'center' - %} - {% endif %} + {% capture category_cards %} + banner-limpia.avif|/collections/1-limpia|{{ 'category_directory.clean_title' | t }}|{{ 'category_directory.clean_text' | t }} + ---banner-trata.avif|/collections/2-trata|{{ 'category_directory.treat_title' | t }}|{{ 'category_directory.treat_text' | t }} + ---banner-hidrata.avif|/collections/3-hidrata|{{ 'category_directory.hydrate_step_title' | t }}|{{ 'category_directory.hydrate_step_text' | t }} + ---banner-protectores.avif|/collections/4-protege-bloqueadores-solares|{{ 'category_directory.protect_title' | t }}|{{ 'category_directory.protect_text' | t }} + ---banner-hidratantes.avif|/collections/hidratantes|{{ 'category_directory.moisturizers_title' | t }}|{{ 'category_directory.moisturizers_text' | t }} + ---banner-mascarillas.avif|/collections/mascarillas|{{ 'category_directory.masks_title' | t }}|{{ 'category_directory.masks_text' | t }} + ---banner-proteccion-solar.avif|/collections/proteccion-solar-1|{{ 'category_directory.sun_title' | t }}|{{ 'category_directory.sun_text' | t }} + ---banner-limpiadores.avif|/collections/limpiadores|{{ 'category_directory.cleansers_title' | t }}|{{ 'category_directory.cleansers_text' | t }} + ---banner-serums.avif|/collections/serum|{{ 'category_directory.serum_title' | t }}|{{ 'category_directory.serum_text' | t }} + ---banner-preocupacion-acne.avif|/collections/acne-1|{{ 'category_directory.acne_title' | t }}|{{ 'category_directory.acne_text' | t }} + ---banner-antiedad.avif|/collections/antiedad-1|{{ 'category_directory.aging_title' | t }}|{{ 'category_directory.aging_text' | t }} + ---banner-control-grasa.avif|/collections/control-grasa|{{ 'category_directory.oil_title' | t }}|{{ 'category_directory.oil_text' | t }} + ---banner-preocupacion-hidratacion.avif|/collections/hidratacion|{{ 'category_directory.hydration_title' | t }}|{{ 'category_directory.hydration_text' | t }} + ---banner-preocupacion-solar.avif|/collections/proteccion-solar-1|{{ 'category_directory.sun_title' | t }}|{{ 'category_directory.sun_text' | t }} + ---banner-manchas.avif|/collections/aclarar|{{ 'category_directory.spots_title' | t }}|{{ 'category_directory.spots_text' | t }} + ---banner-piel-grasa.avif|/collections/piel-grasa|{{ 'category_directory.oily_title' | t }}|{{ 'category_directory.oily_text' | t }} + ---banner-piel-mixta-grasa.avif|/collections/piel-mixta-grasa|{{ 'category_directory.combination_title' | t }}|{{ 'category_directory.combination_text' | t }} + ---banner-piel-seca.avif|/collections/piel-seca-1|{{ 'category_directory.dry_title' | t }}|{{ 'category_directory.dry_text' | t }} + {% endcapture %} -
-

{{ collection.title }}

- - {% if collection.description %} -

{{ collection.description | strip_html | truncatewords: 15 }}

- {% endif %} -
-
+ {% assign category_rows = category_cards | split: '---' %} + {% for category_row in category_rows %} + {% assign category_parts = category_row | strip | split: '|' %} + {% if category_parts.size > 3 %} + {% render 'category-card', + image: category_parts[0], + url: category_parts[1], + title: category_parts[2], + text: category_parts[3] + %} + {% endif %} {% endfor %} -
- - +
{% schema %} { diff --git a/sections/footer-group.json b/sections/footer-group.json index 3e5f38e..758a5df 100644 --- a/sections/footer-group.json +++ b/sections/footer-group.json @@ -1,3 +1,12 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ { "type": "footer", "name": "t:general.footer", diff --git a/sections/header-group.json b/sections/header-group.json index b3ae708..12fd537 100644 --- a/sections/header-group.json +++ b/sections/header-group.json @@ -1,3 +1,12 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ { "type": "header", "name": "t:general.header", diff --git a/sections/header.liquid b/sections/header.liquid index 9dfe3fa..9decdcb 100644 --- a/sections/header.liquid +++ b/sections/header.liquid @@ -239,7 +239,7 @@ if pill_title == favorites_label assign open_wishlist = true endif - if pill_handle == 'los-favoritos' + if pill_handle == 'los-favoritos' or pill_handle == 'tus-favoritos' or pill_handle == 'favoritos' assign open_wishlist = true endif %} @@ -253,7 +253,7 @@ aria-expanded="false" aria-haspopup="dialog" > - {{ link.title }} + {{ 'header.links.favorites' | t }} {% else %} {% if promo_text != blank %} + {% liquid + assign promo_url = section.settings.promo_link + if promo_url == blank + if routes.root_url == '/' + assign promo_url = '/collections/all-products' + else + assign promo_url = routes.root_url | append: '/collections/all-products' + endif + endif + %}
- {% if section.settings.promo_link != blank %} - - {{ promo_text }} - - {% else %} -

- {{ promo_text }} -

- {% endif %} + + {{ promo_text }} +
{% endif %} @@ -322,7 +326,7 @@ > - + + {% else %} +
{{ 'product-1' | placeholder_svg_tag: 'product__main-image' }} - {% endif %} -
+ + {% endif %} {% if product.images.size > 1 %} {% assign gallery_count = 0 %} {% if main_image != blank %} @@ -176,7 +224,13 @@ {% endfor %}
{% if main_image != blank %} -
+
+ {% endif %} {% for image in product.images %} {% if image.id != main_image.id %} {% assign thumb_alt = image.alt | default: product.title %} -
+
+ {% endif %} {% endfor %}
@@ -223,6 +283,15 @@ {% endif %} {% endif %} + {% if main_image %} + + + + + + + + {% endif %}
@@ -242,7 +311,7 @@

{{ subtitle | escape }}

{% endif %} - {% if rating_count > 0 %} + {% if rating_count > 0 and low_rating == false %}
{% endunless %} - + {% if cards %} + + + {% endif %} {% elsif show_caret %}