Demas ajustes
@@ -8,6 +8,8 @@
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
node_modules/
|
||||
src/.generated-tailwind.css
|
||||
src/.tailwind.min.css
|
||||
|
||||
# Shopify CLI files
|
||||
.shopify/
|
||||
|
||||
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 32 KiB |
@@ -121,3 +121,81 @@ body {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hero paints before the bundled stylesheet arrives. */
|
||||
.hero {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 650px;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
background: #c8c2bc;
|
||||
}
|
||||
|
||||
.hero__media {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.hero__poster,
|
||||
.hero__still,
|
||||
.hero__poster-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
min-height: 650px;
|
||||
padding: 104px 160px 80px 100px;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 70px;
|
||||
font-weight: 500;
|
||||
line-height: 69px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hero__title-line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero__title-line--light {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.hero__title-line--medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.hero,
|
||||
.hero__content {
|
||||
min-height: 550px;
|
||||
}
|
||||
|
||||
.hero__poster-image {
|
||||
object-position: center 22%;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
align-items: flex-end;
|
||||
padding: 24px 20px 15px;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
font-size: 35px;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
@@ -22,27 +22,7 @@
|
||||
{% content_for 'blocks' %}
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.group {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.group--horizontal {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 var(--padding);
|
||||
}
|
||||
|
||||
.group--vertical {
|
||||
flex-direction: column;
|
||||
align-items: var(--alignment);
|
||||
padding: var(--padding) 0;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
|
||||
@@ -13,18 +13,7 @@
|
||||
{{ block.settings.text }}
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.text {
|
||||
text-align: var(--text-align);
|
||||
}
|
||||
.text--title {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.text--subtitle {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
{% # Inlined CSS Variables %}
|
||||
{% render 'css-variables' %}
|
||||
|
||||
{% # Load and preload the critical CSS %}
|
||||
{{ 'critical.css' | asset_url | stylesheet_tag: preload: true }}
|
||||
{% render 'tailwind-css' %}
|
||||
|
||||
{% # Social, title, etc. %}
|
||||
{% render 'meta-tags' %}
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ request.locale.iso_code }}" style="max-width:100%;overflow-x:hidden">
|
||||
<html lang="{{ request.locale.iso_code }}" style="max-width:100%;overflow-x:clip">
|
||||
<head>
|
||||
{% # Inlined CSS Variables %}
|
||||
{% render 'css-variables' %}
|
||||
|
||||
{% # Load and preload the critical CSS %}
|
||||
<style>{{ 'critical.css' | inline_asset_content }}</style>
|
||||
{% # Tailwind v3 bundle: reset, utilities, and component CSS, minified %}
|
||||
{% render 'tailwind-css' %}
|
||||
{% render 'font-faces' %}
|
||||
{{ 'tailwind.css' | asset_url | stylesheet_tag: preload: true }}
|
||||
|
||||
{% # Social, title, etc. %}
|
||||
{% render 'meta-tags' %}
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
/*
|
||||
* ------------------------------------------------------------
|
||||
* 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",
|
||||
@@ -91,10 +100,11 @@
|
||||
"join_button": "Distribuidores"
|
||||
},
|
||||
"cart": {
|
||||
"checkout": "Checkout",
|
||||
"title": "Cart",
|
||||
"update": "Update",
|
||||
"remove": "Remove"
|
||||
"checkout": "Finalizar pedido",
|
||||
"title": "Su carrito",
|
||||
"update": "Actualizar",
|
||||
"remove": "Eliminar",
|
||||
"continue": "Seguir comprando"
|
||||
},
|
||||
"cart_drawer": {
|
||||
"recommendations": "También te recomiendo",
|
||||
@@ -106,6 +116,7 @@
|
||||
"unlocked": "Ya tienes envío gratis",
|
||||
"shipping_progress": "Progreso hacia el envío gratis",
|
||||
"add": "Agregar al carrito",
|
||||
"add_short": "Agregar",
|
||||
"subtotal": "Subtotal",
|
||||
"taxes": "Impuestos incluidos. Descuentos y envío calculados en pantalla de pago.",
|
||||
"checkout": "Finalizar pedido",
|
||||
@@ -127,7 +138,7 @@
|
||||
"title": "Collections"
|
||||
},
|
||||
"product_page": {
|
||||
"add": "Añadir a la bolsa de compra",
|
||||
"add": "Añadir a carrito",
|
||||
"buy": "Comprar ahora",
|
||||
"favorite": "Favoritos",
|
||||
"options": "Opciones: {{ option }}",
|
||||
@@ -167,7 +178,10 @@
|
||||
},
|
||||
"collection_page": {
|
||||
"filters": "Filtros",
|
||||
"close_filters": "Cerrar filtros",
|
||||
"sort": "Ordenar por: {{ sort }}",
|
||||
"sort_title": "Ordenar por",
|
||||
"close_sort": "Cerrar orden",
|
||||
"apply": "Aplicar",
|
||||
"clear": "Limpiar",
|
||||
"no_filters": "Esta colección no tiene filtros.",
|
||||
@@ -195,27 +209,39 @@
|
||||
"enter": "Enter"
|
||||
},
|
||||
"search": {
|
||||
"title": "Search",
|
||||
"placeholder": "Search articles, pages, or products",
|
||||
"submit": "Search",
|
||||
"no_results_html": "No results found for {{ terms }}",
|
||||
"results_for_html": "{{ count }} results found for {{ terms }}"
|
||||
"title": "Buscar",
|
||||
"placeholder": "Busca tu producto seasons favorito",
|
||||
"submit": "Buscar",
|
||||
"no_results_html": "No hay resultados para {{ terms }}",
|
||||
"results_for_html": "{{ count }} resultados para {{ terms }}"
|
||||
},
|
||||
"header": {
|
||||
"menu_open": "Abrir menú",
|
||||
"menu_close": "Cerrar menú",
|
||||
"search_label": "Buscar",
|
||||
"search_placeholder": "Busca tu producto seasons favorito",
|
||||
"search_empty": "No hay productos para “{{ terms }}”",
|
||||
"search_view_all": "Ver todos los resultados",
|
||||
"search_status": {
|
||||
"one": "{{ count }} producto",
|
||||
"other": "{{ count }} productos"
|
||||
},
|
||||
"account": "Cuenta",
|
||||
"wishlist": "Favoritos",
|
||||
"wishlist_count": "Favoritos, {{ count }} productos",
|
||||
"wishlist_empty": "Aún no tienes favoritos.",
|
||||
"wishlist_remove": "Quitar",
|
||||
"wishlist_close": "Cerrar favoritos",
|
||||
"cart_count": "Carrito, {{ count }} productos",
|
||||
"promo": "Cambia tu piel ¡hoy!",
|
||||
"submenu": "Abrir {{ menu_title }}",
|
||||
"links": {
|
||||
"categories": "Categorías",
|
||||
"routine": "Por rutina",
|
||||
"skin_type": "Por tipo de piel",
|
||||
"concern": "Por preocupación",
|
||||
"routine": "Rutina",
|
||||
"skin_type": "Tipo de piel",
|
||||
"concern": "Preocupación",
|
||||
"sunscreen": "Protección Solar",
|
||||
"favorites": "Los favoritos",
|
||||
"kits": "Kits y Rutinas",
|
||||
"moisturizers": "Hidratantes",
|
||||
"glow_army": "Glow Army",
|
||||
@@ -232,7 +258,7 @@
|
||||
"treat": "2. Trata",
|
||||
"hydrate": "3. Hidrata",
|
||||
"protect": "4. Protege",
|
||||
"kits": "Kits y rutinas completas",
|
||||
"kits": "Kits y rutinas",
|
||||
"combination": "Mixta-grasa",
|
||||
"oily": "Grasa",
|
||||
"dry": "Seca",
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
/*
|
||||
* ------------------------------------------------------------
|
||||
* 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.
|
||||
* ------------------------------------------------------------
|
||||
*/
|
||||
{
|
||||
"general": {
|
||||
"404": "Not found",
|
||||
@@ -79,7 +88,8 @@
|
||||
"pills_menu": "Highlighted links",
|
||||
"utility_menu": "Utility links",
|
||||
"promo_text": "Promo text",
|
||||
"promo_link": "Promo link"
|
||||
"promo_link": "Promo link",
|
||||
"predictive": "Predictive search"
|
||||
},
|
||||
"hero": {
|
||||
"name": "Hero",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name": "season",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev:css": "tailwindcss -i ./src/tailwind.css -o ./assets/tailwind.css --watch",
|
||||
"build:css": "tailwindcss -i ./src/tailwind.css -o ./assets/tailwind.css --minify"
|
||||
"dev:css": "node scripts/build-css.js --watch",
|
||||
"build:css": "node scripts/build-css.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tailwindcss": "^3.4.17"
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { spawnSync } = require('child_process');
|
||||
|
||||
const root = path.join(__dirname, '..');
|
||||
const entry = path.join(root, 'src', '.generated-tailwind.css');
|
||||
const componentsFile = path.join(root, 'src', 'components.css');
|
||||
const tailwindSource = path.join(root, 'src', 'tailwind.css');
|
||||
const criticalFile = path.join(root, 'assets', 'critical.css');
|
||||
const output = path.join(root, 'src', '.tailwind.min.css');
|
||||
const snippetFile = path.join(root, 'snippets', 'tailwind-css.liquid');
|
||||
const publicCss = path.join(root, 'assets', 'tailwind.css');
|
||||
const cli = path.join(root, 'node_modules', 'tailwindcss', 'lib', 'cli.js');
|
||||
|
||||
const stylesheetPattern = /\{%-?\s*stylesheet\s*-?%\}[\t ]*\r?\n?([\s\S]*?)\{%-?\s*endstylesheet\s*-?%\}[\t ]*\r?\n?/g;
|
||||
|
||||
function walk(dir, files) {
|
||||
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
||||
if (entry.name === 'node_modules' || entry.name === '.git') continue;
|
||||
const full = path.join(dir, entry.name);
|
||||
if (entry.isDirectory()) walk(full, files);
|
||||
else if (entry.name.endsWith('.liquid')) files.push(full);
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
function extractStylesheets() {
|
||||
const files = walk(root, []);
|
||||
const chunks = [];
|
||||
|
||||
for (const file of files) {
|
||||
const text = fs.readFileSync(file, 'utf8');
|
||||
if (!text.includes('stylesheet')) continue;
|
||||
|
||||
const parts = [];
|
||||
const next = text.replace(stylesheetPattern, (_, css) => {
|
||||
parts.push(css.trim());
|
||||
return '\n';
|
||||
});
|
||||
|
||||
if (!parts.length) continue;
|
||||
|
||||
const relative = path.relative(root, file).replace(/\\/g, '/');
|
||||
chunks.push(`/* ${relative} */\n${parts.join('\n\n')}`);
|
||||
fs.writeFileSync(file, next.replace(/\n{3,}/g, '\n\n'));
|
||||
}
|
||||
|
||||
if (!chunks.length) return false;
|
||||
|
||||
const banner = '/* Component CSS compiled with Tailwind CSS v3. Moved out of stylesheet tags. */\n\n';
|
||||
fs.writeFileSync(componentsFile, banner + chunks.join('\n\n') + '\n');
|
||||
return true;
|
||||
}
|
||||
|
||||
function assemble() {
|
||||
const critical = fs.readFileSync(criticalFile, 'utf8').trim();
|
||||
const tailwind = fs.readFileSync(tailwindSource, 'utf8').trim();
|
||||
const components = fs.existsSync(componentsFile) ? fs.readFileSync(componentsFile, 'utf8').trim() : '';
|
||||
|
||||
fs.writeFileSync(
|
||||
entry,
|
||||
`${critical}\n\n${tailwind}\n\n${components}\n`
|
||||
);
|
||||
}
|
||||
|
||||
function writeSnippet() {
|
||||
const css = fs.readFileSync(output, 'utf8').trim();
|
||||
if (css.includes('{{') || css.includes('{%') || css.includes('</style>')) {
|
||||
console.error('Minified CSS contains Liquid or a closing style tag, so it cannot be printed inline.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const snippet = `{% doc %}
|
||||
Prints the minified Tailwind CSS v3 bundle in the document head.
|
||||
Generated by scripts/build-css.js. Do not edit by hand.
|
||||
{% enddoc %}
|
||||
<style>${css}</style>
|
||||
`;
|
||||
fs.writeFileSync(snippetFile, snippet);
|
||||
if (fs.existsSync(publicCss)) fs.unlinkSync(publicCss);
|
||||
}
|
||||
|
||||
function compile() {
|
||||
if (!fs.existsSync(cli)) {
|
||||
console.error('Missing tailwindcss. Run npm install in the theme folder.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const watch = process.argv.includes('--watch');
|
||||
const args = [cli, '-i', entry, '-o', output, '--minify'];
|
||||
if (watch) args.push('--watch');
|
||||
|
||||
if (watch) {
|
||||
fs.watchFile(output, { interval: 400 }, () => {
|
||||
if (fs.existsSync(output)) writeSnippet();
|
||||
});
|
||||
}
|
||||
|
||||
const result = spawnSync(process.execPath, args, { cwd: root, stdio: 'inherit' });
|
||||
if (!watch && result.status === 0) writeSnippet();
|
||||
if (result.status !== 0) process.exit(result.status || 1);
|
||||
}
|
||||
|
||||
extractStylesheets();
|
||||
assemble();
|
||||
compile();
|
||||
@@ -119,610 +119,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.bestsellers {
|
||||
padding: 50px 0;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.bestsellers__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
padding: 0 100px;
|
||||
}
|
||||
|
||||
.bestsellers__heading {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.bestsellers__tools {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.bestsellers__more {
|
||||
padding: 0 10px;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bestsellers__arrows {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.bestsellers__arrow {
|
||||
display: grid;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bestsellers__arrow:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.bestsellers__arrow-icon {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.bestsellers__arrow--prev .bestsellers__arrow-icon {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.bestsellers__arrow--next .bestsellers__arrow-icon {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.bestsellers__body {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.bestsellers__promo {
|
||||
position: relative;
|
||||
display: block;
|
||||
flex: 0 0 486px;
|
||||
width: 486px;
|
||||
height: 550px;
|
||||
overflow: hidden;
|
||||
border-radius: 0 10px 10px 0;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bestsellers__promo-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.bestsellers__slider {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.bestsellers__progress {
|
||||
position: relative;
|
||||
height: 1px;
|
||||
margin-top: auto;
|
||||
background: #e6e6e6;
|
||||
}
|
||||
|
||||
.bestsellers__progress-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 2px;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.bestsellers__viewport {
|
||||
min-width: 0;
|
||||
min-height: 493px;
|
||||
flex: 1 1 auto;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
scrollbar-width: none;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.bestsellers[data-feed]:not([data-sorted="true"]) .bestsellers__card {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.bestsellers__viewport::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bestsellers__viewport.is-dragging {
|
||||
cursor: grabbing;
|
||||
scroll-snap-type: none;
|
||||
}
|
||||
|
||||
.bestsellers__track {
|
||||
display: flex;
|
||||
gap: 30px;
|
||||
width: max-content;
|
||||
padding-right: 100px;
|
||||
}
|
||||
|
||||
.bestsellers__card {
|
||||
display: flex;
|
||||
flex: 0 0 386px;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
width: 386px;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.bestsellers__media {
|
||||
position: relative;
|
||||
width: 386px;
|
||||
height: 386px;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.bestsellers__media-link {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.bestsellers__image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.bestsellers__image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease;
|
||||
}
|
||||
|
||||
.bestsellers__media:hover .bestsellers__image--hover,
|
||||
.bestsellers__media:focus-within .bestsellers__image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.bestsellers__image--hover {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.bestsellers__image--empty {
|
||||
background: #f3f3f3;
|
||||
}
|
||||
|
||||
.bestsellers__badges {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.bestsellers__badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3px 5px;
|
||||
border-radius: 2px;
|
||||
color: #000;
|
||||
font-size: 10px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.bestsellers__badge--best {
|
||||
background: #bfffb2;
|
||||
}
|
||||
|
||||
.bestsellers__badge--skin {
|
||||
background: #f7c585;
|
||||
}
|
||||
|
||||
.bestsellers__wish {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bestsellers__wish-icon {
|
||||
display: block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.bestsellers__wish-icon svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.bestsellers__wish.is-active svg path {
|
||||
fill: #000;
|
||||
}
|
||||
|
||||
.bestsellers__info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.bestsellers__copy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.bestsellers__title {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
color: #000;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bestsellers__subtitle,
|
||||
.bestsellers__reviews,
|
||||
.bestsellers__empty {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.bestsellers__subtitle {
|
||||
overflow: hidden;
|
||||
color: #808181;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bestsellers__rating {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.bestsellers__stars {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.bestsellers__star {
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.bestsellers__star svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.bestsellers__star.is-off {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.bestsellers__reviews {
|
||||
color: #000;
|
||||
font-size: 9px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bestsellers__prices {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.bestsellers__price,
|
||||
.bestsellers__compare {
|
||||
font-size: 16px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.bestsellers__price {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.bestsellers__compare {
|
||||
color: #808181;
|
||||
font-weight: 400;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.bestsellers__actions {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
bottom: 10px;
|
||||
left: 20px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.bestsellers__media:hover .bestsellers__actions,
|
||||
.bestsellers__media:focus-within .bestsellers__actions {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.bestsellers__bag,
|
||||
.bestsellers__buy {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 50px;
|
||||
padding: 15px;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bestsellers__bag {
|
||||
flex: 0 0 50px;
|
||||
width: 50px;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.bestsellers__bag img {
|
||||
display: block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.bestsellers__buy {
|
||||
flex: 1 1 auto;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.bestsellers__bag:disabled,
|
||||
.bestsellers__buy:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.bestsellers__empty {
|
||||
color: #000;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.bestsellers__more:focus-visible,
|
||||
.bestsellers__bag:focus-visible,
|
||||
.bestsellers__buy:focus-visible,
|
||||
.bestsellers__arrow:focus-visible,
|
||||
.bestsellers__wish:focus-visible,
|
||||
.bestsellers__title:focus-visible,
|
||||
.bestsellers__media-link:focus-visible,
|
||||
.bestsellers__promo:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.bestsellers__header {
|
||||
padding-inline: 40px;
|
||||
}
|
||||
|
||||
.bestsellers__track {
|
||||
padding-right: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.bestsellers {
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
.bestsellers__header {
|
||||
margin-bottom: 10px;
|
||||
padding-inline: 15px;
|
||||
}
|
||||
|
||||
.bestsellers__heading {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.bestsellers__more {
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.bestsellers__arrows {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bestsellers__body {
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.bestsellers__promo {
|
||||
flex-basis: auto;
|
||||
width: calc(100% - 30px);
|
||||
height: 460px;
|
||||
margin-inline: 15px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.bestsellers__progress {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.bestsellers__viewport {
|
||||
width: 100%;
|
||||
min-height: 370px;
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.bestsellers__track {
|
||||
gap: 20px;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.bestsellers__card {
|
||||
flex-basis: 245px;
|
||||
gap: 10px;
|
||||
width: 245px;
|
||||
}
|
||||
|
||||
.bestsellers__media {
|
||||
width: 245px;
|
||||
height: 244px;
|
||||
}
|
||||
|
||||
.bestsellers__badges {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.bestsellers__badge {
|
||||
font-size: 7px;
|
||||
}
|
||||
|
||||
.bestsellers__wish {
|
||||
top: 10px;
|
||||
right: 11px;
|
||||
}
|
||||
|
||||
.bestsellers__info {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.bestsellers__title {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.bestsellers__subtitle {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.bestsellers__reviews {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.bestsellers__rating {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bestsellers__price,
|
||||
.bestsellers__compare {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.bestsellers__prices {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.bestsellers__actions {
|
||||
right: 8px;
|
||||
bottom: 8px;
|
||||
left: 8px;
|
||||
gap: 6px;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.bestsellers__bag,
|
||||
.bestsellers__buy {
|
||||
height: 36px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.bestsellers__bag {
|
||||
flex-basis: 36px;
|
||||
width: 36px;
|
||||
}
|
||||
|
||||
.bestsellers__bag img {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.bestsellers__buy {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.bestsellers__viewport {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
const wishlistKey = 'seasons-wishlist';
|
||||
@@ -730,18 +126,23 @@
|
||||
const readWishlist = () => {
|
||||
try {
|
||||
const stored = JSON.parse(window.localStorage.getItem(wishlistKey));
|
||||
return Array.isArray(stored) ? stored.map(String) : [];
|
||||
if (!Array.isArray(stored)) return [];
|
||||
return stored.map((item) => {
|
||||
if (item && typeof item === 'object') return { id: String(item.id || ''), handle: String(item.handle || '') };
|
||||
return { id: String(item), handle: '' };
|
||||
}).filter((item) => item.id);
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
const writeWishlist = (ids) => {
|
||||
window.localStorage.setItem(wishlistKey, JSON.stringify(ids));
|
||||
const writeWishlist = (items) => {
|
||||
window.localStorage.setItem(wishlistKey, JSON.stringify(items));
|
||||
document.dispatchEvent(new CustomEvent('seasons:wishlist'));
|
||||
};
|
||||
|
||||
const applyWishlist = (root) => {
|
||||
const saved = readWishlist();
|
||||
const saved = readWishlist().map((item) => item.id);
|
||||
root.querySelectorAll('[data-wishlist]').forEach((button) => {
|
||||
const active = saved.includes(String(button.dataset.productId));
|
||||
button.classList.toggle('is-active', active);
|
||||
@@ -954,12 +355,19 @@
|
||||
if (!root) return;
|
||||
|
||||
const id = String(wish.dataset.productId);
|
||||
const handle = String(wish.dataset.productHandle || '');
|
||||
const saved = readWishlist();
|
||||
const next = saved.includes(id) ? saved.filter((item) => item !== id) : saved.concat(id);
|
||||
const next = saved.some((item) => item.id === id)
|
||||
? saved.filter((item) => item.id !== id)
|
||||
: saved.concat({ id, handle });
|
||||
writeWishlist(next);
|
||||
applyWishlist(root);
|
||||
});
|
||||
|
||||
document.addEventListener('seasons:wishlist', () => {
|
||||
document.querySelectorAll('[data-bestsellers]').forEach((root) => applyWishlist(root));
|
||||
});
|
||||
|
||||
document.addEventListener('submit', async (event) => {
|
||||
const form = event.target;
|
||||
if (!(form instanceof HTMLFormElement) || !form.classList.contains('bestsellers__form')) return;
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
endunless
|
||||
|
||||
assign shown = shown | plus: 1
|
||||
assign add_label = 'cart_drawer.add' | t
|
||||
assign add_label = 'cart_drawer.add_short' | t
|
||||
|
||||
echo '<article class="cart-drawer__rec"><a class="cart-drawer__thumb cart-drawer__thumb--rec" href="'
|
||||
echo product.url | escape
|
||||
@@ -90,15 +90,6 @@
|
||||
aria-labelledby="cart-drawer-title"
|
||||
>
|
||||
<div class="cart-drawer__layout" data-cart-drawer-content data-item-count="{{ cart.item_count }}">
|
||||
{% if shown > 0 %}
|
||||
<aside class="cart-drawer__recs" aria-label="{{ 'cart_drawer.recommendations' | t }}">
|
||||
<h2 class="cart-drawer__heading">{{ 'cart_drawer.recommendations' | t }}</h2>
|
||||
<div class="cart-drawer__rec-list">
|
||||
{{ rec_items }}
|
||||
</div>
|
||||
</aside>
|
||||
{% endif %}
|
||||
|
||||
<div class="cart-drawer__main">
|
||||
<div class="cart-drawer__head">
|
||||
<h2 id="cart-drawer-title" class="cart-drawer__heading">{{ 'cart_drawer.title' | t }}</h2>
|
||||
@@ -200,6 +191,14 @@
|
||||
<strong>{{ cart.total_price | money_without_trailing_zeros }} {{ cart.currency.iso_code }}</strong>
|
||||
</p>
|
||||
<p class="cart-drawer__note">{{ 'cart_drawer.taxes' | t }}</p>
|
||||
{% if shown > 0 %}
|
||||
<aside class="cart-drawer__recs" aria-label="{{ 'cart_drawer.recommendations' | t }}">
|
||||
<h2 class="cart-drawer__heading">{{ 'cart_drawer.recommendations' | t }}</h2>
|
||||
<div class="cart-drawer__rec-list">
|
||||
{{ rec_items }}
|
||||
</div>
|
||||
</aside>
|
||||
{% endif %}
|
||||
<div class="cart-drawer__actions">
|
||||
{% if cart.item_count > 0 %}
|
||||
<form action="{{ routes.cart_url }}" method="post">
|
||||
@@ -208,7 +207,6 @@
|
||||
{% else %}
|
||||
<button class="cart-drawer__checkout" type="button" disabled>{{ 'cart_drawer.checkout' | t }}</button>
|
||||
{% endif %}
|
||||
<a class="cart-drawer__view" href="{{ routes.cart_url }}">{{ 'cart_drawer.view' | t }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -216,425 +214,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.shopify-section.cart-drawer-section {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.cart-drawer {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 80;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cart-drawer.is-open,
|
||||
.cart-drawer.is-closing {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.cart-drawer.is-open {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.cart-drawer__backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background: rgba(32, 36, 36, 0.46);
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.32s ease;
|
||||
}
|
||||
|
||||
.cart-drawer.is-open .cart-drawer__backdrop {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.cart-drawer__panel {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
width: min(980px, 100%);
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
color: #000;
|
||||
box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.cart-drawer.is-open .cart-drawer__panel {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
.cart-drawer__layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.cart-drawer__layout:not(:has(.cart-drawer__recs)) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.cart-drawer__recs,
|
||||
.cart-drawer__items {
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.cart-drawer__recs {
|
||||
overflow: auto;
|
||||
padding: 28px 24px 32px;
|
||||
border-right: 1px solid #ededed;
|
||||
}
|
||||
|
||||
.cart-drawer__main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding: 28px 28px 0;
|
||||
}
|
||||
|
||||
.cart-drawer__heading {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
line-height: 1.3;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cart-drawer__head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.cart-drawer__close,
|
||||
.cart-drawer__remove,
|
||||
.cart-drawer__add,
|
||||
.cart-drawer__qty button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cart-drawer__close {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: -6px -6px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.cart-drawer__shipping {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.cart-drawer__shipping p {
|
||||
margin: 0 0 10px;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.cart-drawer__shipping span {
|
||||
color: #1aa37a;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.cart-drawer__bar {
|
||||
height: 4px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: #ececec;
|
||||
}
|
||||
|
||||
.cart-drawer__bar-fill {
|
||||
display: block;
|
||||
width: var(--progress);
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: #9dd6c7;
|
||||
}
|
||||
|
||||
.cart-drawer__items {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.cart-drawer__empty {
|
||||
margin: 48px 0;
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cart-drawer__line,
|
||||
.cart-drawer__rec {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.cart-drawer__line {
|
||||
grid-template-columns: 72px minmax(0, 1fr) auto;
|
||||
padding: 18px 0;
|
||||
}
|
||||
|
||||
.cart-drawer__rec {
|
||||
grid-template-columns: 56px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 18px 0;
|
||||
border-bottom: 1px solid #f1f1f1;
|
||||
}
|
||||
|
||||
.cart-drawer__thumb {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.cart-drawer__thumb--rec {
|
||||
width: 56px;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
.cart-drawer__img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.cart-drawer__line-title,
|
||||
.cart-drawer__rec-title {
|
||||
display: block;
|
||||
color: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 1.35;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cart-drawer__rec-title {
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.cart-drawer__variant {
|
||||
margin: 2px 0 0;
|
||||
color: #777;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.cart-drawer__price {
|
||||
margin: 6px 0 0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.cart-drawer__add {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
padding: 0;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cart-drawer__qty {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 32px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #e1e1e1;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.cart-drawer__qty button {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.cart-drawer__qty button:disabled {
|
||||
color: #bbb;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.cart-drawer__qty span {
|
||||
min-width: 16px;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cart-drawer__remove {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.cart-drawer__footer {
|
||||
flex: 0 0 auto;
|
||||
padding: 16px 0 24px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.cart-drawer__subtotal {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.cart-drawer__subtotal strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.cart-drawer__note {
|
||||
margin: 8px 0 0;
|
||||
color: #6d6d6d;
|
||||
font-size: 12px;
|
||||
font-weight: 300;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cart-drawer__actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.cart-drawer__actions form {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.cart-drawer__checkout,
|
||||
.cart-drawer__view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 48px;
|
||||
border-radius: 999px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cart-drawer__checkout {
|
||||
border: 0;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cart-drawer__checkout:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.cart-drawer__view {
|
||||
border: 1px solid #111;
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.cart-drawer.is-busy .cart-drawer__layout {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
html.cart-drawer-open,
|
||||
html.cart-drawer-open body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.cart-drawer__panel {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.cart-drawer__layout,
|
||||
.cart-drawer__layout:not(:has(.cart-drawer__recs)) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.cart-drawer__recs {
|
||||
order: 2;
|
||||
border-right: 0;
|
||||
border-top: 1px solid #ededed;
|
||||
}
|
||||
|
||||
.cart-drawer__main {
|
||||
order: 1;
|
||||
min-height: 100%;
|
||||
padding: 20px 16px 0;
|
||||
}
|
||||
|
||||
.cart-drawer__items {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.cart-drawer__footer {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.cart-drawer__actions {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.cart-drawer__backdrop,
|
||||
.cart-drawer__panel {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
if (window.__seasonCartDrawer) return;
|
||||
@@ -666,6 +245,47 @@
|
||||
});
|
||||
};
|
||||
|
||||
const mobileQuery = window.matchMedia('(max-width: 767px)');
|
||||
let floaterObserver = null;
|
||||
|
||||
const parkFloaters = (root) => {
|
||||
if (!mobileQuery.matches) return;
|
||||
const nodes = root === document.body ? document.body.querySelectorAll('*') : [root, ...root.querySelectorAll('*')];
|
||||
nodes.forEach((node) => {
|
||||
if (!(node instanceof HTMLElement) || node.closest('[data-cart-drawer]')) return;
|
||||
if (node.hasAttribute('data-cart-parked')) return;
|
||||
const style = window.getComputedStyle(node);
|
||||
if (style.position !== 'fixed') return;
|
||||
const rect = node.getBoundingClientRect();
|
||||
if (rect.width < 24 || rect.height < 24) return;
|
||||
const namedWidget = node.id === 'aitana-fab' || node.id === 'aitana-overlay' || node.id === 'wa-coupon-fab' || node.id === 'wa-coupon-overlay';
|
||||
const low = rect.top > window.innerHeight * 0.4;
|
||||
const side = rect.left < 160 || rect.right > window.innerWidth - 160;
|
||||
if (!namedWidget && (!low || !side)) return;
|
||||
node.setAttribute('data-cart-parked', '');
|
||||
});
|
||||
};
|
||||
|
||||
const watchFloaters = () => {
|
||||
parkFloaters(document.body);
|
||||
if (floaterObserver) return;
|
||||
floaterObserver = new MutationObserver((records) => {
|
||||
if (!document.documentElement.classList.contains('cart-drawer-open')) return;
|
||||
records.forEach((record) => {
|
||||
record.addedNodes.forEach((node) => {
|
||||
if (node instanceof HTMLElement) parkFloaters(node);
|
||||
});
|
||||
});
|
||||
});
|
||||
floaterObserver.observe(document.body, { childList: true, subtree: true });
|
||||
};
|
||||
|
||||
const releaseFloaters = () => {
|
||||
document.querySelectorAll('[data-cart-parked]').forEach((node) => {
|
||||
node.removeAttribute('data-cart-parked');
|
||||
});
|
||||
};
|
||||
|
||||
const openDrawer = () => {
|
||||
const drawer = getDrawer();
|
||||
if (!drawer) return;
|
||||
@@ -674,6 +294,7 @@
|
||||
drawer.classList.add('is-open');
|
||||
drawer.setAttribute('aria-hidden', 'false');
|
||||
document.documentElement.classList.add('cart-drawer-open');
|
||||
watchFloaters();
|
||||
document.querySelectorAll('[data-cart-open]').forEach((button) => {
|
||||
button.setAttribute('aria-expanded', 'true');
|
||||
});
|
||||
@@ -687,6 +308,7 @@
|
||||
drawer.classList.add('is-closing');
|
||||
drawer.setAttribute('aria-hidden', 'true');
|
||||
document.documentElement.classList.remove('cart-drawer-open');
|
||||
releaseFloaters();
|
||||
document.querySelectorAll('[data-cart-open]').forEach((button) => {
|
||||
button.setAttribute('aria-expanded', 'false');
|
||||
});
|
||||
|
||||
@@ -1,37 +1,143 @@
|
||||
{% comment %}
|
||||
This section is used in the cart template to render /cart page with an
|
||||
overview of the items in customer's cart.
|
||||
{% liquid
|
||||
assign free_shipping = section.settings.free_shipping | default: 699
|
||||
assign threshold = free_shipping | times: 100
|
||||
assign progress = 0
|
||||
assign remaining = 0
|
||||
assign unlocked = false
|
||||
|
||||
https://shopify.dev/docs/storefronts/themes/architecture/templates/cart
|
||||
{% endcomment %}
|
||||
if threshold > 0
|
||||
if cart.total_price >= threshold
|
||||
assign progress = 100
|
||||
assign unlocked = true
|
||||
else
|
||||
assign remaining = threshold | minus: cart.total_price
|
||||
assign progress = cart.total_price | times: 100 | divided_by: threshold
|
||||
endif
|
||||
endif
|
||||
%}
|
||||
|
||||
<h1>{{ 'cart.title' | t }}</h1>
|
||||
<section class="cart-page full-width">
|
||||
<div class="cart-page__body">
|
||||
<h1 class="cart-page__title">{{ 'cart.title' | t }}</h1>
|
||||
|
||||
{% if cart.item_count == 0 %}
|
||||
<div class="cart-page__empty">
|
||||
<p>{{ 'cart_drawer.empty' | t }}</p>
|
||||
<a class="cart-page__checkout" href="{{ routes.all_products_collection_url }}">{{ 'cart.continue' | t }}</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="cart-page__layout">
|
||||
<div class="cart-page__items">
|
||||
{% for item in cart.items %}
|
||||
<article class="cart-page__line">
|
||||
<a class="cart-page__thumb" href="{{ item.url }}">
|
||||
{% if item.image %}
|
||||
{{
|
||||
item.image
|
||||
| image_url: width: 240
|
||||
| image_tag:
|
||||
loading: 'lazy',
|
||||
alt: item.product.title,
|
||||
class: 'cart-page__img',
|
||||
widths: '96, 160, 240',
|
||||
sizes: '96px'
|
||||
}}
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
<div class="cart-page__copy">
|
||||
<a class="cart-page__name" href="{{ item.url }}">{{ item.product.title | escape }}</a>
|
||||
{% unless item.variant.title == 'Default Title' %}
|
||||
<p class="cart-page__variant">{{ item.variant.title | escape }}</p>
|
||||
{% endunless %}
|
||||
<p class="cart-page__price">
|
||||
{{ item.final_line_price | money_without_trailing_zeros }}
|
||||
{% if item.original_line_price > item.final_line_price %}
|
||||
<s>{{ item.original_line_price | money_without_trailing_zeros }}</s>
|
||||
{% endif %}
|
||||
</p>
|
||||
<div class="cart-page__qty">
|
||||
{% if item.quantity > 1 %}
|
||||
<a
|
||||
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | minus: 1 }}"
|
||||
aria-label="{{ 'cart_drawer.decrease' | t }}"
|
||||
>−</a>
|
||||
{% else %}
|
||||
<span class="is-disabled" aria-hidden="true">−</span>
|
||||
{% endif %}
|
||||
<span>{{ item.quantity }}</span>
|
||||
<a
|
||||
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | plus: 1 }}"
|
||||
aria-label="{{ 'cart_drawer.increase' | t }}"
|
||||
>+</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="cart-page__remove" href="{{ item.url_to_remove }}" aria-label="{{ 'cart.remove' | t }}">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
|
||||
<path d="M2.5 4h11M6.5 4V2.5h3V4M4 4l.6 9.2a1 1 0 0 0 1 .8h4.8a1 1 0 0 0 1-.8L12 4" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<aside class="cart-page__summary">
|
||||
{% if threshold > 0 %}
|
||||
<div class="cart-page__shipping">
|
||||
<p>
|
||||
{% if unlocked %}
|
||||
{{ 'cart_drawer.unlocked' | t }}
|
||||
{% else %}
|
||||
{{ 'cart_drawer.remaining_before' | t }}
|
||||
{{ remaining | money_without_trailing_zeros }}
|
||||
{{ 'cart_drawer.remaining_after' | t }}
|
||||
<span>{{ 'cart_drawer.free' | t }}</span>
|
||||
{% endif %}
|
||||
</p>
|
||||
<div
|
||||
class="cart-page__bar"
|
||||
style="--progress: {{ progress }}%;"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
aria-valuenow="{{ progress }}"
|
||||
aria-label="{{ 'cart_drawer.shipping_progress' | t }}"
|
||||
>
|
||||
<span class="cart-page__bar-fill"></span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<p class="cart-page__subtotal">
|
||||
<span>{{ 'cart_drawer.subtotal' | t }}</span>
|
||||
<strong>{{ cart.total_price | money_without_trailing_zeros }}</strong>
|
||||
</p>
|
||||
<p class="cart-page__note">{{ 'cart_drawer.taxes' | t }}</p>
|
||||
|
||||
<form action="{{ routes.cart_url }}" method="post">
|
||||
<button class="cart-page__checkout" type="submit" name="checkout">{{ 'cart.checkout' | t }}</button>
|
||||
</form>
|
||||
<a class="cart-page__continue" href="{{ routes.all_products_collection_url }}">{{ 'cart.continue' | t }}</a>
|
||||
</aside>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<form action="{{ routes.cart_url }}" method="post">
|
||||
<table>
|
||||
{% for item in cart.items %}
|
||||
<tr>
|
||||
<td>
|
||||
{% render 'image', image: item.image, url: item.url %}
|
||||
</td>
|
||||
<td>
|
||||
<p>{{ item.product.title }}</p>
|
||||
{{ 'cart.remove' | t | link_to: item.url_to_remove }}
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="updates[]" value="{{ item.quantity }}">
|
||||
<input type="submit" value="{{ 'cart.update' | t }}">
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<input type="submit" name="checkout" value="{{ 'cart.checkout' | t }}">
|
||||
</form>
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.cart",
|
||||
"settings": []
|
||||
"settings": [
|
||||
{
|
||||
"type": "number",
|
||||
"id": "free_shipping",
|
||||
"label": "t:cart_drawer.free_shipping",
|
||||
"info": "t:cart_drawer.free_shipping_info",
|
||||
"default": 699
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
|
||||
@@ -14,6 +14,42 @@
|
||||
assign banner_title = collection.title
|
||||
endif
|
||||
|
||||
assign banner_asset = blank
|
||||
case collection.handle
|
||||
when 'all-products'
|
||||
assign banner_asset = 'banner-todos-productos.avif'
|
||||
when 'proteccion-solar-1'
|
||||
assign banner_asset = 'banner-proteccion-solar.avif'
|
||||
when '4-protege-bloqueadores-solares'
|
||||
assign banner_asset = 'banner-protectores.avif'
|
||||
when 'hidratantes'
|
||||
assign banner_asset = 'banner-hidratantes.avif'
|
||||
when 'limpiadores'
|
||||
assign banner_asset = 'banner-limpiadores.avif'
|
||||
when 'mascarillas'
|
||||
assign banner_asset = 'banner-mascarillas.avif'
|
||||
when 'serum'
|
||||
assign banner_asset = 'banner-serums.avif'
|
||||
when 'kits-skincare-facial'
|
||||
assign banner_asset = 'banner-kits.avif'
|
||||
when 'piel-mixta-grasa'
|
||||
assign banner_asset = 'banner-piel-mixta-grasa.avif'
|
||||
when 'piel-grasa'
|
||||
assign banner_asset = 'banner-piel-grasa.avif'
|
||||
when 'piel-seca-1'
|
||||
assign banner_asset = 'banner-piel-seca.avif'
|
||||
when 'control-grasa'
|
||||
assign banner_asset = 'banner-control-grasa.avif'
|
||||
when 'acne-1'
|
||||
assign banner_asset = 'banner-preocupacion-acne.avif'
|
||||
when 'hidratacion'
|
||||
assign banner_asset = 'banner-preocupacion-hidratacion.avif'
|
||||
when 'antiedad-1'
|
||||
assign banner_asset = 'banner-antiedad.avif'
|
||||
when 'aclarar'
|
||||
assign banner_asset = 'banner-manchas.avif'
|
||||
endcase
|
||||
|
||||
assign banner_text = collection.metafields.custom.banner_texto.value | default: collection.metafields.custom.banner_text.value
|
||||
assign banner_text_is_html = false
|
||||
if banner_text == blank
|
||||
@@ -35,6 +71,10 @@
|
||||
assign show_hero = true
|
||||
endif
|
||||
|
||||
if banner_asset != blank
|
||||
assign show_hero = true
|
||||
endif
|
||||
|
||||
if show_grid_banner and grid_image == blank
|
||||
assign grid_image = collection.metafields.custom.banner_imagen.value | default: collection.metafields.custom.banner_image.value
|
||||
endif
|
||||
@@ -65,14 +105,28 @@
|
||||
data-cart-add-url="{{ routes.cart_add_url }}.js"
|
||||
>
|
||||
{% if show_hero %}
|
||||
<div class="collection__banner{% if banner_image == blank %} collection__banner--text{% endif %}">
|
||||
{% if banner_image != blank %}
|
||||
<div class="collection__banner{% if banner_asset == blank and banner_image == blank %} collection__banner--text{% endif %}">
|
||||
{% if banner_asset != blank %}
|
||||
<div class="collection__banner-media">
|
||||
<img
|
||||
class="collection__banner-image"
|
||||
src="{{ banner_asset | asset_url }}"
|
||||
alt="{{ banner_title | escape }}"
|
||||
width="1600"
|
||||
height="667"
|
||||
fetchpriority="high"
|
||||
loading="eager"
|
||||
decoding="async"
|
||||
>
|
||||
</div>
|
||||
{% elsif banner_image != blank %}
|
||||
<div class="collection__banner-media">
|
||||
{{
|
||||
banner_image
|
||||
| image_url: width: 1600
|
||||
| image_tag:
|
||||
alt: banner_title,
|
||||
fetchpriority: 'high',
|
||||
widths: '600, 960, 1400',
|
||||
sizes: '(max-width: 767px) 100vw, 50vw',
|
||||
class: 'collection__banner-image',
|
||||
@@ -125,8 +179,17 @@
|
||||
<p class="collection__count">{{ 'collection_page.products' | t: count: collection.products_count }}</p>
|
||||
</div>
|
||||
|
||||
<div class="collection__panel" id="collection-filters" data-filter-panel>
|
||||
<div class="collection__panel-inner">
|
||||
<div class="collection__drawer" id="collection-filters" data-filter-panel aria-hidden="true">
|
||||
<button class="collection__drawer-backdrop" type="button" data-filter-close tabindex="-1" aria-label="{{ 'collection_page.close_filters' | t }}"></button>
|
||||
<div class="collection__drawer-panel" role="dialog" aria-modal="true" aria-labelledby="collection-filters-title">
|
||||
<div class="collection__drawer-head">
|
||||
<h2 id="collection-filters-title" class="collection__drawer-title">{{ 'collection_page.filters' | t }}</h2>
|
||||
<button class="collection__drawer-close" type="button" data-filter-close aria-label="{{ 'collection_page.close_filters' | t }}">
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
||||
<path d="M2 2l10 10M12 2L2 12" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
{% if collection.filters.size > 0 %}
|
||||
<form class="collection__filter-form" action="{{ collection.url }}" method="get">
|
||||
{% if current_sort != blank %}
|
||||
@@ -184,8 +247,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="collection__panel" id="collection-sort" data-sort-panel>
|
||||
<div class="collection__panel-inner">
|
||||
<div class="collection__drawer" id="collection-sort" data-sort-panel aria-hidden="true">
|
||||
<button class="collection__drawer-backdrop" type="button" data-sort-close tabindex="-1" aria-label="{{ 'collection_page.close_sort' | t }}"></button>
|
||||
<div class="collection__drawer-panel" role="dialog" aria-modal="true" aria-labelledby="collection-sort-title">
|
||||
<div class="collection__drawer-head">
|
||||
<h2 id="collection-sort-title" class="collection__drawer-title">{{ 'collection_page.sort_title' | t }}</h2>
|
||||
<button class="collection__drawer-close" type="button" data-sort-close aria-label="{{ 'collection_page.close_sort' | t }}">
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
||||
<path d="M2 2l10 10M12 2L2 12" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<form class="collection__sort-form" action="{{ collection.url }}" method="get">
|
||||
{% for filter in collection.filters %}
|
||||
{% if filter.type == 'price_range' %}
|
||||
@@ -275,463 +347,67 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.collection {
|
||||
background: #f9f9fa;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.collection__banner {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
min-height: 380px;
|
||||
background: #f7c585;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.collection__banner--text {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.collection__banner-media {
|
||||
height: 100%;
|
||||
min-height: 380px;
|
||||
max-height: 380px;
|
||||
}
|
||||
|
||||
.collection__banner-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 380px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.collection__banner-copy {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 22px;
|
||||
padding: 48px 180px 48px 70px;
|
||||
}
|
||||
|
||||
.collection__banner-title,
|
||||
.collection__fallback-title {
|
||||
margin: 0;
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.collection__fallback-title {
|
||||
padding: 40px 100px 0;
|
||||
}
|
||||
|
||||
.collection__banner-text {
|
||||
max-width: 570px;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 1.4;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.collection__banner-text p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.collection__banner-blob {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 48px;
|
||||
width: 185px;
|
||||
height: auto;
|
||||
opacity: 0.8;
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.collection__body {
|
||||
padding: 28px 100px 80px;
|
||||
}
|
||||
|
||||
.collection__bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.collection__tools {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.collection__tool {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
height: 50px;
|
||||
padding: 0 18px;
|
||||
border: 1px solid #808181;
|
||||
border-radius: 60px;
|
||||
background: transparent;
|
||||
color: #000;
|
||||
font: inherit;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.collection__tool svg {
|
||||
display: block;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.collection__count,
|
||||
.collection__empty,
|
||||
.collection__none {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.collection__panel {
|
||||
display: grid;
|
||||
grid-template-rows: 0fr;
|
||||
transition: grid-template-rows 0.28s ease;
|
||||
}
|
||||
|
||||
.collection__panel.is-open {
|
||||
grid-template-rows: 1fr;
|
||||
}
|
||||
|
||||
.collection__panel-inner {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.collection__filter-form,
|
||||
.collection__sort-form {
|
||||
padding: 22px 0 8px;
|
||||
}
|
||||
|
||||
.collection__filter-groups {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 28px 48px;
|
||||
}
|
||||
|
||||
.collection__filter {
|
||||
min-width: 180px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.collection__filter legend {
|
||||
margin-bottom: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.collection__options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.collection__option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.collection__price {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.collection__price input {
|
||||
width: 110px;
|
||||
height: 40px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid #d0d0d0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.collection__filter-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.collection__apply {
|
||||
height: 44px;
|
||||
padding: 0 22px;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font: inherit;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.collection__clear {
|
||||
color: #000;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.collection__sort-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.collection__sort-option {
|
||||
padding: 6px 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #000;
|
||||
font: inherit;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.collection__sort-option.is-current {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.collection__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 28px 20px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.collection__promo {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.collection__promo img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.collection__empty {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.collection__pages {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
margin-top: 48px;
|
||||
}
|
||||
|
||||
.collection__page,
|
||||
.collection__next {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 25px;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.collection__page.is-current {
|
||||
background: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.collection__next {
|
||||
background: #c9c9c9;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.collection__next svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (max-width: 1119px) {
|
||||
.collection__banner-copy {
|
||||
padding: 36px 40px;
|
||||
}
|
||||
|
||||
.collection__banner-blob {
|
||||
width: 120px;
|
||||
right: 16px;
|
||||
}
|
||||
|
||||
.collection__body,
|
||||
.collection__fallback-title {
|
||||
padding-right: 24px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.collection__grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.collection__banner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.collection__banner-media {
|
||||
position: static;
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
min-height: 250px;
|
||||
max-height: 250px;
|
||||
}
|
||||
|
||||
.collection__banner-image {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
min-height: 250px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.collection__banner-copy {
|
||||
position: relative;
|
||||
justify-content: flex-start;
|
||||
gap: 15px;
|
||||
min-height: 250px;
|
||||
padding: 77px 20px 40px;
|
||||
overflow: hidden;
|
||||
background: #f7c585;
|
||||
}
|
||||
|
||||
.collection__banner-title {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.collection__banner-text {
|
||||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.collection__banner-blob {
|
||||
display: block;
|
||||
top: 4px;
|
||||
right: 20px;
|
||||
width: 153px;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.collection__body {
|
||||
padding: 18px 10px 48px;
|
||||
}
|
||||
|
||||
.collection__fallback-title {
|
||||
padding: 24px 16px 0;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.collection__bar {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.collection__tools {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.collection__tool {
|
||||
height: 40px;
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.collection__count {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.collection__grid {
|
||||
gap: 20px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.collection__panel {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
if (window.__seasonCollection) return;
|
||||
window.__seasonCollection = true;
|
||||
|
||||
const closePanels = (root) => {
|
||||
root.querySelectorAll('[data-filter-panel], [data-sort-panel]').forEach((panel) => {
|
||||
panel.classList.remove('is-open');
|
||||
});
|
||||
root.querySelectorAll('[data-filter-toggle], [data-sort-toggle]').forEach((button) => {
|
||||
button.setAttribute('aria-expanded', 'false');
|
||||
});
|
||||
};
|
||||
|
||||
const togglePanel = (root, name) => {
|
||||
const setPanel = (root, name, open) => {
|
||||
const panel = root.querySelector(`[data-${name}-panel]`);
|
||||
const button = root.querySelector(`[data-${name}-toggle]`);
|
||||
if (!panel || !button) return;
|
||||
const willOpen = !panel.classList.contains('is-open');
|
||||
closePanels(root);
|
||||
if (willOpen) {
|
||||
panel.classList.add('is-open');
|
||||
button.setAttribute('aria-expanded', 'true');
|
||||
}
|
||||
panel.classList.toggle('is-open', open);
|
||||
button.setAttribute('aria-expanded', open ? 'true' : 'false');
|
||||
if (!panel.classList.contains('collection__drawer')) return;
|
||||
panel.setAttribute('aria-hidden', open ? 'false' : 'true');
|
||||
const anyOpen = root.querySelector('.collection__drawer.is-open');
|
||||
document.documentElement.classList.toggle('overflow-hidden', Boolean(anyOpen));
|
||||
if (open) panel.querySelector('.collection__drawer-close')?.focus();
|
||||
};
|
||||
|
||||
document.addEventListener('click', (event) => {
|
||||
const root = event.target.closest('[data-collection]') || document.querySelector('[data-collection]');
|
||||
const root = event.target.closest('[data-collection]');
|
||||
if (!root) return;
|
||||
|
||||
if (event.target.closest('[data-filter-close]')) {
|
||||
setPanel(root, 'filter', false);
|
||||
root.querySelector('[data-filter-toggle]')?.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.target.closest('[data-sort-close]')) {
|
||||
setPanel(root, 'sort', false);
|
||||
root.querySelector('[data-sort-toggle]')?.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.target.closest('[data-filter-toggle]')) {
|
||||
togglePanel(root, 'filter');
|
||||
const panel = root.querySelector('[data-filter-panel]');
|
||||
const willOpen = !panel.classList.contains('is-open');
|
||||
setPanel(root, 'sort', false);
|
||||
setPanel(root, 'filter', willOpen);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.target.closest('[data-sort-toggle]')) {
|
||||
togglePanel(root, 'sort');
|
||||
const panel = root.querySelector('[data-sort-panel]');
|
||||
const willOpen = !panel.classList.contains('is-open');
|
||||
setPanel(root, 'filter', false);
|
||||
setPanel(root, 'sort', willOpen);
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
if (!event.target.closest('[data-filter-panel], [data-sort-panel]')) {
|
||||
closePanels(root);
|
||||
}
|
||||
document.addEventListener('keydown', (event) => {
|
||||
if (event.key !== 'Escape') return;
|
||||
document.querySelectorAll('[data-collection]').forEach((root) => {
|
||||
const filtersOpen = root.querySelector('[data-filter-panel]')?.classList.contains('is-open');
|
||||
const sortOpen = root.querySelector('[data-sort-panel]')?.classList.contains('is-open');
|
||||
setPanel(root, 'filter', false);
|
||||
setPanel(root, 'sort', false);
|
||||
if (filtersOpen) root.querySelector('[data-filter-toggle]')?.focus();
|
||||
if (sortOpen) root.querySelector('[data-sort-toggle]')?.focus();
|
||||
});
|
||||
});
|
||||
})();
|
||||
{% endjavascript %}
|
||||
|
||||
@@ -34,24 +34,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.collections {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(var(--collection-card-size), 100%), 1fr));
|
||||
gap: var(--grid-gap);
|
||||
}
|
||||
.collections--compact {
|
||||
--collection-card-size: 160px;
|
||||
}
|
||||
.collections--full {
|
||||
--collection-card-size: 280px;
|
||||
}
|
||||
.collection-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
|
||||
@@ -10,35 +10,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.custom-section {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
.custom-section__background {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.custom-section__background img {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.custom-section__content {
|
||||
display: grid;
|
||||
grid-template-columns: var(--content-grid);
|
||||
}
|
||||
.custom-section__content > * {
|
||||
grid-column: 2;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
|
||||
@@ -118,227 +118,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.distributors {
|
||||
margin-top: 100px;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.distributors__layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 859fr) minmax(0, 860fr);
|
||||
width: min(1719px, calc(100% - 200px));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.distributors__photo {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 10px 0 0 10px;
|
||||
aspect-ratio: 859 / 964;
|
||||
background: #f3f1ee;
|
||||
}
|
||||
|
||||
.distributors__photo-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.distributors__photo-image--flip {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.distributors__wordmark {
|
||||
position: absolute;
|
||||
left: 31.2%;
|
||||
top: 39.1%;
|
||||
display: block;
|
||||
width: 37.7%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.distributors__panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
border-radius: 0 10px 10px 0;
|
||||
background: linear-gradient(131deg, #ffffff 0%, #ffffff 35.6%, #e5f4ff 67.9%);
|
||||
}
|
||||
|
||||
.distributors__blob {
|
||||
position: absolute;
|
||||
height: auto;
|
||||
opacity: 0.7;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.distributors__blob--top {
|
||||
top: 5%;
|
||||
right: 4%;
|
||||
width: 41.3%;
|
||||
}
|
||||
|
||||
.distributors__blob--bottom {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.distributors__copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 40px;
|
||||
width: min(804px, 100%);
|
||||
padding: 48px 28px;
|
||||
}
|
||||
|
||||
.distributors__heading {
|
||||
margin: 0;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 60px;
|
||||
font-weight: 500;
|
||||
line-height: 75px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.distributors__line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.distributors__bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.distributors__text {
|
||||
max-width: 672px;
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.distributors__button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 341px;
|
||||
max-width: 100%;
|
||||
height: 50px;
|
||||
padding: 15px;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.distributors__button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a.distributors__button:hover {
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
a.distributors__button:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.distributors__layout {
|
||||
width: min(1719px, calc(100% - 80px));
|
||||
}
|
||||
|
||||
.distributors__heading {
|
||||
font-size: 44px;
|
||||
line-height: 54px;
|
||||
}
|
||||
|
||||
.distributors__text {
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.distributors {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.distributors__layout {
|
||||
grid-template-columns: 1fr;
|
||||
width: min(372px, calc(100% - 30px));
|
||||
}
|
||||
|
||||
.distributors__photo {
|
||||
border-radius: 10px 10px 0 0;
|
||||
aspect-ratio: 372 / 420;
|
||||
}
|
||||
|
||||
.distributors__panel {
|
||||
min-height: 420px;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
|
||||
.distributors__blob--top {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 46%;
|
||||
}
|
||||
|
||||
.distributors__blob--bottom {
|
||||
display: block;
|
||||
bottom: -18%;
|
||||
left: 28%;
|
||||
width: 56%;
|
||||
}
|
||||
|
||||
.distributors__copy {
|
||||
gap: 18px;
|
||||
padding: 48px 10px;
|
||||
}
|
||||
|
||||
.distributors__heading {
|
||||
font-size: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.distributors__bold {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.distributors__line--rest {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.distributors__text {
|
||||
max-width: none;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.distributors__button {
|
||||
width: 300px;
|
||||
height: 45px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:distributors.name",
|
||||
|
||||
@@ -237,425 +237,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{% stylesheet %}
|
||||
.footer {
|
||||
color: #000;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.footer__brand {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 158px 100px;
|
||||
}
|
||||
|
||||
.footer__logo {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
line-height: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer__logo-mark svg,
|
||||
.footer__logo-image {
|
||||
display: block;
|
||||
width: 1083px;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.footer__panel {
|
||||
background: #eaeaea;
|
||||
padding: 50px 100px 30px;
|
||||
}
|
||||
|
||||
.footer__columns {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: flex-start;
|
||||
gap: clamp(16px, 4vw, 100px);
|
||||
}
|
||||
|
||||
.footer__column {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.footer__toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.footer__heading {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
line-height: 30px;
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer__chevron {
|
||||
display: none;
|
||||
flex-shrink: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.footer__chevron svg {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.footer__links,
|
||||
.footer__column ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer__column li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.footer__column a {
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
text-decoration: none;
|
||||
background-image: linear-gradient(currentColor, currentColor);
|
||||
background-position: 0 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 0 1px;
|
||||
transition: background-size 0.25s ease;
|
||||
}
|
||||
|
||||
.footer__column a:hover,
|
||||
.footer__column a:focus-visible {
|
||||
background-size: 100% 1px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.footer__column a {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.footer a:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.footer__newsletter {
|
||||
display: flex;
|
||||
flex: 0 1 395px;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
width: 395px;
|
||||
max-width: 395px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.footer__newsletter .footer__heading {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.footer__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.footer__field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0 30px;
|
||||
border-radius: 100px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.footer__field:focus-within {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.footer__label {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.footer__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.footer__input::placeholder {
|
||||
color: #808181;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.footer__arrow {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-left: 12px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.footer__arrow-icon {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.footer__arrow-icon svg {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.footer__discount {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 15px;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.footer__message {
|
||||
margin: -8px 0 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.footer__message--error {
|
||||
color: #9b1c1c;
|
||||
}
|
||||
|
||||
.footer__bar {
|
||||
margin-top: 50px;
|
||||
border-top: 1px solid #d8d8d8;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.footer__bar p {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.footer__social {
|
||||
display: none;
|
||||
margin: 10px 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer__social a,
|
||||
.footer__social span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer__social svg {
|
||||
display: block;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.footer__brand,
|
||||
.footer__panel {
|
||||
padding-right: 40px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.footer__brand {
|
||||
padding: 36px 30px;
|
||||
}
|
||||
|
||||
.footer__logo-mark svg,
|
||||
.footer__logo-image {
|
||||
width: min(100%, 274px);
|
||||
}
|
||||
|
||||
.footer__panel {
|
||||
padding: 40px 30px 28px;
|
||||
}
|
||||
|
||||
.footer__columns {
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.footer__column,
|
||||
.footer__newsletter {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.footer__column--shop {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.footer__column--seasons {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.footer__column--routine {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.footer__column--community {
|
||||
order: 4;
|
||||
}
|
||||
|
||||
.footer__column--help {
|
||||
order: 5;
|
||||
}
|
||||
|
||||
.footer__newsletter {
|
||||
order: 6;
|
||||
gap: 15px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.footer.is-collapsible .footer__toggle {
|
||||
margin: 0;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid #d5d5d5;
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.footer.is-collapsible .footer__chevron {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.footer.is-collapsible .footer__column.is-open .footer__chevron {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
.footer.is-collapsible .footer__links {
|
||||
display: none;
|
||||
padding: 8px 0 4px;
|
||||
}
|
||||
|
||||
.footer.is-collapsible .footer__column.is-open .footer__links {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.footer__heading {
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.footer__newsletter .footer__heading {
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.footer__column a {
|
||||
font-size: 14px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.footer__field,
|
||||
.footer__discount {
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.footer__input,
|
||||
.footer__discount {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.footer__discount {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.footer__form {
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.footer__bar {
|
||||
margin-top: 24px;
|
||||
margin-right: -30px;
|
||||
margin-left: -30px;
|
||||
padding: 20px 30px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer__social {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(function () {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
data-header
|
||||
data-menu-close="{{ 'header.menu_close' | t | escape }}"
|
||||
>
|
||||
<div class="header__shell relative grid grid-cols-[auto_minmax(0,699px)_1fr_auto_auto] items-center px-[100px] pt-[15px] xxl:px-10">
|
||||
<div class="header__shell relative grid grid-cols-[auto_minmax(0,699px)_1fr_auto_auto] items-center px-[100px] pt-[15px]">
|
||||
<button
|
||||
type="button"
|
||||
class="header__toggle col-start-1 row-start-1 hidden size-[30px] cursor-pointer appearance-none items-center justify-center border-0 bg-transparent p-0"
|
||||
@@ -33,7 +33,7 @@
|
||||
</button>
|
||||
|
||||
<a
|
||||
class="header__logo col-start-1 row-start-1 mr-[50px] block w-[223px] shrink-0 no-underline xxl:mr-8"
|
||||
class="header__logo col-start-1 row-start-1 mr-[50px] block w-[223px] shrink-0 no-underline"
|
||||
href="{{ routes.root_url }}"
|
||||
>
|
||||
{% if section.settings.logo != blank %}
|
||||
@@ -51,11 +51,12 @@
|
||||
</a>
|
||||
|
||||
<form
|
||||
class="header__search col-start-2 row-start-1 mr-[50px] flex h-[55px] w-full min-w-0 max-w-[699px] items-center rounded-full bg-brand-cloud p-[5px] xxl:mr-8"
|
||||
class="header__search col-start-2 row-start-1 mr-[50px] flex h-[55px] w-full min-w-0 max-w-[699px] items-center rounded-full bg-brand-cloud p-[5px]"
|
||||
action="{{ routes.search_url }}"
|
||||
method="get"
|
||||
role="search"
|
||||
data-search
|
||||
data-predictive-url="{{ routes.predictive_search_url }}"
|
||||
>
|
||||
<button
|
||||
type="submit"
|
||||
@@ -76,13 +77,44 @@
|
||||
{% if template.name == 'search' %}
|
||||
value="{{ search.terms | escape }}"
|
||||
{% endif %}
|
||||
role="combobox"
|
||||
aria-expanded="false"
|
||||
aria-controls="header-predictive-{{ section.id }}"
|
||||
aria-autocomplete="list"
|
||||
autocomplete="off"
|
||||
data-search-input
|
||||
>
|
||||
<div
|
||||
id="header-predictive-{{ section.id }}"
|
||||
class="header__predictive"
|
||||
data-predictive
|
||||
role="listbox"
|
||||
hidden
|
||||
></div>
|
||||
<p class="sr-only" data-predictive-status aria-live="polite"></p>
|
||||
</form>
|
||||
|
||||
<div class="header__actions col-start-5 row-start-1 flex items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="header__cart relative col-start-5 row-start-1 flex size-[45px] cursor-pointer appearance-none items-center justify-center border-0 bg-transparent p-0"
|
||||
class="header__wish relative flex size-[45px] cursor-pointer appearance-none items-center justify-center border-0 bg-transparent p-0"
|
||||
data-wish-open
|
||||
data-count-label="{{ 'header.wishlist_count' | t: count: '__COUNT__' | escape }}"
|
||||
aria-controls="wish-drawer"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="dialog"
|
||||
aria-label="{{ 'header.wishlist' | t }}"
|
||||
>
|
||||
<span class="header__icon header__icon--wish" aria-hidden="true">
|
||||
<svg width="22" height="22" viewBox="0 0 25 25" fill="none">
|
||||
<path d="M17.2324 3.90625C14.0625 3.90625 12.5 7.03125 12.5 7.03125C12.5 7.03125 10.9375 3.90625 7.76758 3.90625C5.19141 3.90625 3.15137 6.06152 3.125 8.6333C3.07129 13.9717 7.35986 17.7681 12.0605 20.9585C12.1901 21.0467 12.3433 21.0938 12.5 21.0938C12.6567 21.0938 12.8099 21.0467 12.9395 20.9585C17.6396 17.7681 21.9282 13.9717 21.875 8.6333C21.8486 6.06152 19.8086 3.90625 17.2324 3.90625Z" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="header__wish-count absolute right-0 top-0 hidden h-4 min-w-4 items-center justify-center rounded-full bg-brand-mint px-[3px] text-[10px] font-medium leading-none text-black" data-wish-count></span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="header__cart relative flex size-[45px] cursor-pointer appearance-none items-center justify-center border-0 bg-transparent p-0"
|
||||
data-cart-open
|
||||
data-cart-count-label="{{ 'header.cart_count' | t: count: '__COUNT__' | escape }}"
|
||||
aria-controls="cart-drawer"
|
||||
@@ -99,6 +131,7 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav
|
||||
id="header-menu"
|
||||
@@ -188,23 +221,48 @@
|
||||
assign skin_menu = label_combination | append: '::/collections/piel-mixta-grasa|' | append: label_oily | append: '::/collections/piel-grasa|' | append: label_dry | append: '::/collections/piel-seca-1'
|
||||
assign concern_menu = label_sun | append: '::/collections/proteccion-solar-1|' | append: label_oil | append: '::/collections/control-grasa|' | append: label_acne | append: '::/collections/acne-1|' | append: label_hydration | append: '::/collections/hidratacion|' | append: label_aging | append: '::/collections/antiedad-1|' | append: label_spots | append: '::/collections/aclarar'
|
||||
%}
|
||||
{% render 'header-menu-item', title: nav_categories, url: '/collections/all-products', child_menu: categories_menu %}
|
||||
{% render 'header-menu-item', title: nav_routine, url: routes.collections_url, child_menu: routine_menu %}
|
||||
{% render 'header-menu-item', title: nav_skin_type, url: routes.collections_url, child_menu: skin_menu %}
|
||||
{% render 'header-menu-item', title: nav_concern, url: routes.collections_url, child_menu: concern_menu %}
|
||||
{% render 'header-menu-item', title: nav_categories, url: '/collections/all-products', child_menu: categories_menu, image_set: 'categories' %}
|
||||
{% render 'header-menu-item', title: nav_routine, url: routes.collections_url, child_menu: routine_menu, image_set: 'routine' %}
|
||||
{% render 'header-menu-item', title: nav_skin_type, url: routes.collections_url, child_menu: skin_menu, image_set: 'skin' %}
|
||||
{% render 'header-menu-item', title: nav_concern, url: routes.collections_url, child_menu: concern_menu, image_set: 'concern' %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<ul class="header__pills m-0 flex list-none items-center gap-[15px] p-0">
|
||||
{% assign favorites_label = 'header.links.favorites' | t | downcase %}
|
||||
{% if section.settings.pills_menu != blank and section.settings.pills_menu.links.size > 0 %}
|
||||
{% for link in section.settings.pills_menu.links %}
|
||||
{% liquid
|
||||
assign pill_title = link.title | strip | downcase
|
||||
assign pill_handle = link.title | handleize
|
||||
assign open_wishlist = false
|
||||
if pill_title == favorites_label
|
||||
assign open_wishlist = true
|
||||
endif
|
||||
if pill_handle == 'los-favoritos'
|
||||
assign open_wishlist = true
|
||||
endif
|
||||
%}
|
||||
<li>
|
||||
<a
|
||||
class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
|
||||
href="{{ link.url }}"
|
||||
>
|
||||
{{ link.title }}
|
||||
</a>
|
||||
{% if open_wishlist %}
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex cursor-pointer appearance-none items-center justify-center rounded-full border border-solid border-black bg-transparent px-5 py-1 font-sans text-[14px] font-normal leading-none text-black focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
|
||||
data-wish-open
|
||||
aria-controls="wish-drawer"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="dialog"
|
||||
>
|
||||
{{ link.title }}
|
||||
</button>
|
||||
{% else %}
|
||||
<a
|
||||
class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
|
||||
href="{{ link.url }}"
|
||||
>
|
||||
{{ link.title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
@@ -213,6 +271,18 @@
|
||||
{{ 'header.links.sunscreen' | t }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex cursor-pointer appearance-none items-center justify-center rounded-full border border-solid border-black bg-transparent px-5 py-1 font-sans text-[14px] font-normal leading-none text-black"
|
||||
data-wish-open
|
||||
aria-controls="wish-drawer"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="dialog"
|
||||
>
|
||||
{{ 'header.links.favorites' | t }}
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/kits-skincare-facial">
|
||||
{{ 'header.links.kits' | t }}
|
||||
@@ -252,438 +322,22 @@
|
||||
></button>
|
||||
</header>
|
||||
|
||||
{% stylesheet %}
|
||||
.header__logo-mark svg,
|
||||
.header__logo-image {
|
||||
display: block;
|
||||
width: 223px;
|
||||
height: auto;
|
||||
}
|
||||
<div id="wish-drawer" class="wish-drawer" data-wish-drawer data-empty="{{ 'header.wishlist_empty' | t | escape }}" data-remove="{{ 'header.wishlist_remove' | t | escape }}" aria-hidden="true">
|
||||
<button class="wish-drawer__backdrop" type="button" data-wish-close tabindex="-1" aria-label="{{ 'header.wishlist_close' | t }}"></button>
|
||||
<div class="wish-drawer__panel" role="dialog" aria-modal="true" aria-labelledby="wish-drawer-title">
|
||||
<div class="wish-drawer__head">
|
||||
<h2 id="wish-drawer-title" class="wish-drawer__title">{{ 'header.wishlist' | t }}</h2>
|
||||
<button class="wish-drawer__close" type="button" data-wish-close aria-label="{{ 'header.wishlist_close' | t }}">
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
||||
<path d="M2 2l10 10M12 2L2 12" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="wish-drawer__list" data-wish-list></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
.header__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.header__icon svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header__icon--menu svg {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.header__icon--search svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.header__icon--user svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.header__icon--bag svg {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.header__shell {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.header__promo {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header__caret-button {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.header__submenu {
|
||||
min-width: 280px;
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.header__icon--caret {
|
||||
display: flex;
|
||||
transform: rotate(180deg);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.header__icon--caret svg {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.header__item.is-open .header__icon--caret {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
.header__icon--close {
|
||||
display: none;
|
||||
position: relative;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.header__icon--close::before,
|
||||
.header__icon--close::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 8px;
|
||||
width: 18px;
|
||||
height: 1.4px;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.header__icon--close::before {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.header__icon--close::after {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.header__account-label {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.header button,
|
||||
.header input {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.header input[type='search']::-webkit-search-decoration,
|
||||
.header input[type='search']::-webkit-search-cancel-button {
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
@media (min-width: 1120px) {
|
||||
.header__submenu::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -16px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.header__submenu {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.header__item:hover > .header__submenu,
|
||||
.header__item:focus-within > .header__submenu,
|
||||
.header__item.is-open > .header__submenu {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1119px) {
|
||||
.header__shell {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 55px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.header__toggle {
|
||||
display: grid;
|
||||
position: relative;
|
||||
z-index: 50;
|
||||
order: 1;
|
||||
flex: 0 0 30px;
|
||||
}
|
||||
|
||||
.header.is-menu-open .header__icon--menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header.is-menu-open .header__icon--close {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header__logo {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 150px;
|
||||
height: 55px;
|
||||
margin: 0;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.header__logo-mark svg,
|
||||
.header__logo-image {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.header__search {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 50px;
|
||||
z-index: 2;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.header__search-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-color: #9dd6c7;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.header__icon--search svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.header__search-input {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.header__search.is-open {
|
||||
top: 6px;
|
||||
right: 50px;
|
||||
left: 10px;
|
||||
z-index: 3;
|
||||
width: auto;
|
||||
height: 44px;
|
||||
overflow: visible;
|
||||
padding: 5px;
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.header__search.is-open .header__search-input {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 0 12px;
|
||||
overflow: visible;
|
||||
clip: auto;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.header__cart {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 10px;
|
||||
z-index: 2;
|
||||
flex: 0 0 30px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.header__icon--bag svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.header__nav {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 40;
|
||||
display: none;
|
||||
pointer-events: auto;
|
||||
max-height: calc(100dvh - 90px);
|
||||
overflow: auto;
|
||||
background: #fff;
|
||||
padding: 8px 16px 28px;
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.header__nav.is-open {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.header__menu {
|
||||
order: 1;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 20px;
|
||||
margin-top: 0;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.header__links {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.header__links .header__item {
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid #ececec;
|
||||
}
|
||||
|
||||
.header__caret-button {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.header__nav .header__submenu {
|
||||
position: static;
|
||||
top: auto;
|
||||
left: auto;
|
||||
z-index: auto;
|
||||
flex: 0 0 100%;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
margin: 8px 0 0;
|
||||
padding: 4px 0 8px;
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.header__nav .header__item.is-open > .header__submenu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.header__pills {
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.header__utility {
|
||||
order: 2;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.header__utility > ul {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.header__account {
|
||||
width: auto;
|
||||
height: auto;
|
||||
justify-content: flex-start;
|
||||
gap: 10px;
|
||||
padding: 10px 20px 10px 0;
|
||||
}
|
||||
|
||||
.header__account-label {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
clip: auto;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.header__promo {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.header__promo a,
|
||||
.header__promo p {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.header.is-menu-open .header__shell {
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.header.is-menu-open .header__backdrop {
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.header__logo,
|
||||
.header__logo-mark svg,
|
||||
.header__logo-image {
|
||||
width: 128px;
|
||||
}
|
||||
}
|
||||
|
||||
.header__item > a,
|
||||
.header__submenu a,
|
||||
.header__utility a {
|
||||
background-image: linear-gradient(currentColor, currentColor);
|
||||
background-position: 0 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 0 1px;
|
||||
transition: background-size 0.25s ease;
|
||||
}
|
||||
|
||||
.header__item > a:hover,
|
||||
.header__item > a:focus-visible,
|
||||
.header__submenu a:hover,
|
||||
.header__submenu a:focus-visible,
|
||||
.header__utility a:hover,
|
||||
.header__utility a:focus-visible {
|
||||
background-size: 100% 1px;
|
||||
}
|
||||
|
||||
.header__pills a {
|
||||
transition: background-color 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.header__pills a:hover,
|
||||
.header__pills a:focus-visible {
|
||||
background: #9dd6c7;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.header__item > a,
|
||||
.header__submenu a,
|
||||
.header__utility a,
|
||||
.header__pills a {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
@@ -692,6 +346,15 @@
|
||||
|
||||
const mobileQuery = window.matchMedia('(max-width: 1119px)');
|
||||
|
||||
const setHeaderOffset = () => {
|
||||
const group = document.querySelector('.shopify-section-group-header-group');
|
||||
if (!group) return;
|
||||
document.documentElement.style.setProperty('--header-offset', group.offsetHeight + 'px');
|
||||
};
|
||||
|
||||
setHeaderOffset();
|
||||
window.addEventListener('resize', setHeaderOffset);
|
||||
|
||||
const closeMenu = (header) => {
|
||||
const menu = header.querySelector('[data-menu]');
|
||||
const toggle = header.querySelector('[data-menu-toggle]');
|
||||
@@ -702,8 +365,20 @@
|
||||
document.documentElement.classList.remove('overflow-hidden');
|
||||
};
|
||||
|
||||
const closePredictive = (header) => {
|
||||
const panel = header.querySelector('[data-predictive]');
|
||||
const input = header.querySelector('[data-search-input]');
|
||||
const status = header.querySelector('[data-predictive-status]');
|
||||
panel?.classList.remove('is-open');
|
||||
panel?.setAttribute('hidden', '');
|
||||
input?.setAttribute('aria-expanded', 'false');
|
||||
input?.removeAttribute('aria-activedescendant');
|
||||
if (status) status.textContent = '';
|
||||
};
|
||||
|
||||
const closeSearch = (header) => {
|
||||
header.querySelector('[data-search]')?.classList.remove('is-open');
|
||||
closePredictive(header);
|
||||
};
|
||||
|
||||
const bind = (header) => {
|
||||
@@ -741,6 +416,98 @@
|
||||
searchInput?.focus();
|
||||
});
|
||||
|
||||
if (searchForm && searchInput) {
|
||||
const panel = searchForm.querySelector('[data-predictive]');
|
||||
const status = searchForm.querySelector('[data-predictive-status]');
|
||||
let requestId = 0;
|
||||
let controller = null;
|
||||
let timer = 0;
|
||||
|
||||
const resultOptions = () => [...panel.querySelectorAll('[role="option"]')];
|
||||
|
||||
const setActive = (index) => {
|
||||
const items = resultOptions();
|
||||
items.forEach((item, itemIndex) => {
|
||||
const active = itemIndex === index;
|
||||
item.classList.toggle('is-active', active);
|
||||
if (active) searchInput.setAttribute('aria-activedescendant', item.id);
|
||||
});
|
||||
if (index < 0) searchInput.removeAttribute('aria-activedescendant');
|
||||
if (index >= 0 && items[index]) items[index].scrollIntoView({ block: 'nearest' });
|
||||
};
|
||||
|
||||
const openPredictive = () => {
|
||||
panel.hidden = false;
|
||||
panel.classList.add('is-open');
|
||||
searchInput.setAttribute('aria-expanded', 'true');
|
||||
};
|
||||
|
||||
const fetchResults = (term) => {
|
||||
const id = ++requestId;
|
||||
controller?.abort();
|
||||
controller = new AbortController();
|
||||
const url = new URL(searchForm.dataset.predictiveUrl, window.location.origin);
|
||||
url.searchParams.set('q', term);
|
||||
url.searchParams.set('resources[type]', 'product');
|
||||
url.searchParams.set('resources[limit]', '6');
|
||||
url.searchParams.set('resources[options][unavailable_products]', 'last');
|
||||
url.searchParams.set('section_id', 'predictive-search');
|
||||
|
||||
fetch(url, { signal: controller.signal })
|
||||
.then((response) => {
|
||||
if (!response.ok) throw new Error('predictive search failed');
|
||||
return response.text();
|
||||
})
|
||||
.then((html) => {
|
||||
if (id !== requestId || searchInput.value.trim() !== term) return;
|
||||
const parsed = new DOMParser().parseFromString(html, 'text/html');
|
||||
const body = parsed.querySelector('.header__predictive-body');
|
||||
if (!body) {
|
||||
closePredictive(header);
|
||||
return;
|
||||
}
|
||||
panel.replaceChildren(body);
|
||||
const count = panel.querySelector('[data-predictive-count]');
|
||||
if (status && count) status.textContent = count.textContent;
|
||||
setActive(-1);
|
||||
openPredictive();
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.name === 'AbortError') return;
|
||||
if (id === requestId) closePredictive(header);
|
||||
});
|
||||
};
|
||||
|
||||
searchInput.addEventListener('input', () => {
|
||||
const term = searchInput.value.trim();
|
||||
window.clearTimeout(timer);
|
||||
if (term.length < 3) {
|
||||
requestId += 1;
|
||||
controller?.abort();
|
||||
closePredictive(header);
|
||||
return;
|
||||
}
|
||||
timer = window.setTimeout(() => fetchResults(term), 180);
|
||||
});
|
||||
|
||||
searchInput.addEventListener('keydown', (event) => {
|
||||
if (!panel.classList.contains('is-open')) return;
|
||||
const items = resultOptions();
|
||||
if (items.length === 0) return;
|
||||
const current = items.findIndex((item) => item.classList.contains('is-active'));
|
||||
if (event.key === 'ArrowDown') {
|
||||
event.preventDefault();
|
||||
setActive(current < items.length - 1 ? current + 1 : 0);
|
||||
} else if (event.key === 'ArrowUp') {
|
||||
event.preventDefault();
|
||||
setActive(current > 0 ? current - 1 : items.length - 1);
|
||||
} else if (event.key === 'Enter' && current >= 0) {
|
||||
event.preventDefault();
|
||||
window.location.assign(items[current].href);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
menu?.addEventListener('click', (event) => {
|
||||
const submenuToggle = event.target.closest('[data-submenu-toggle]');
|
||||
const toggleSubmenu = (submenuToggle) => {
|
||||
@@ -782,6 +549,8 @@
|
||||
|
||||
document.addEventListener('click', (event) => {
|
||||
document.querySelectorAll('[data-header]').forEach((header) => {
|
||||
const searchForm = header.querySelector('[data-search]');
|
||||
if (searchForm && !searchForm.contains(event.target)) closePredictive(header);
|
||||
if (header.contains(event.target)) return;
|
||||
closeMenu(header);
|
||||
closeSearch(header);
|
||||
@@ -790,7 +559,13 @@
|
||||
|
||||
document.addEventListener('keydown', (event) => {
|
||||
if (event.key !== 'Escape') return;
|
||||
if (document.querySelector('[data-wish-drawer].is-open')) return;
|
||||
document.querySelectorAll('[data-header]').forEach((header) => {
|
||||
const panel = header.querySelector('[data-predictive]');
|
||||
if (panel && !panel.hidden) {
|
||||
closePredictive(header);
|
||||
return;
|
||||
}
|
||||
closeMenu(header);
|
||||
closeSearch(header);
|
||||
});
|
||||
@@ -808,6 +583,169 @@
|
||||
const header = event.target.querySelector('[data-header]');
|
||||
if (header) bind(header);
|
||||
});
|
||||
|
||||
const wishKey = 'seasons-wishlist';
|
||||
const wishDrawer = document.querySelector('[data-wish-drawer]');
|
||||
const wishList = document.querySelector('[data-wish-list]');
|
||||
const wishButton = document.querySelector('[data-wish-open]');
|
||||
const wishCount = document.querySelector('[data-wish-count]');
|
||||
|
||||
const readWishItems = () => {
|
||||
try {
|
||||
const stored = JSON.parse(window.localStorage.getItem(wishKey));
|
||||
if (!Array.isArray(stored)) return [];
|
||||
return stored.map((item) => {
|
||||
if (item && typeof item === 'object') return { id: String(item.id || ''), handle: String(item.handle || '') };
|
||||
return { id: String(item), handle: '' };
|
||||
}).filter((item) => item.id);
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
const writeWishItems = (items) => {
|
||||
window.localStorage.setItem(wishKey, JSON.stringify(items));
|
||||
document.dispatchEvent(new CustomEvent('seasons:wishlist'));
|
||||
};
|
||||
|
||||
const formatPrice = (cents) => {
|
||||
const currency = (window.Shopify && Shopify.currency && Shopify.currency.active) || 'MXN';
|
||||
return new Intl.NumberFormat('es-MX', {
|
||||
style: 'currency',
|
||||
currency,
|
||||
minimumFractionDigits: 0,
|
||||
maximumFractionDigits: 2,
|
||||
}).format(cents / 100);
|
||||
};
|
||||
|
||||
let wishRequest = 0;
|
||||
|
||||
const updateWishCount = () => {
|
||||
const count = readWishItems().filter((item) => item.handle).length;
|
||||
if (!wishButton || !wishCount) return;
|
||||
wishButton.classList.toggle('is-active', count > 0);
|
||||
wishCount.textContent = count > 0 ? String(count) : '';
|
||||
wishCount.classList.toggle('is-visible', count > 0);
|
||||
const label = wishButton.dataset.countLabel || '';
|
||||
if (label) wishButton.setAttribute('aria-label', label.replace('__COUNT__', String(count)));
|
||||
};
|
||||
|
||||
const renderWishList = async () => {
|
||||
if (!wishList) return;
|
||||
const request = ++wishRequest;
|
||||
const items = readWishItems().filter((item) => item.handle);
|
||||
if (!items.length) {
|
||||
wishList.replaceChildren();
|
||||
const empty = document.createElement('p');
|
||||
empty.className = 'wish-drawer__empty';
|
||||
empty.textContent = wishDrawer?.dataset.empty || '';
|
||||
wishList.append(empty);
|
||||
return;
|
||||
}
|
||||
const products = await Promise.all(items.map(async (item) => {
|
||||
try {
|
||||
const response = await fetch(window.location.origin + '/products/' + item.handle + '.js');
|
||||
if (!response.ok) return null;
|
||||
const product = await response.json();
|
||||
product._wishId = item.id;
|
||||
return product;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
}));
|
||||
if (request !== wishRequest) return;
|
||||
const found = products.filter(Boolean);
|
||||
wishList.replaceChildren();
|
||||
if (!found.length) {
|
||||
const empty = document.createElement('p');
|
||||
empty.className = 'wish-drawer__empty';
|
||||
empty.textContent = wishDrawer?.dataset.empty || '';
|
||||
wishList.append(empty);
|
||||
return;
|
||||
}
|
||||
found.forEach((product) => {
|
||||
const row = document.createElement('article');
|
||||
row.className = 'wish-drawer__item';
|
||||
const link = document.createElement('a');
|
||||
link.className = 'wish-drawer__thumb';
|
||||
link.href = product.url;
|
||||
let imageSource = typeof product.featured_image === 'string' ? product.featured_image : product.featured_image && product.featured_image.src;
|
||||
if (imageSource && imageSource.indexOf('//') === 0) imageSource = 'https:' + imageSource;
|
||||
if (imageSource) {
|
||||
const image = document.createElement('img');
|
||||
image.src = imageSource;
|
||||
image.alt = '';
|
||||
image.width = 72;
|
||||
image.height = 72;
|
||||
link.append(image);
|
||||
}
|
||||
const copy = document.createElement('div');
|
||||
const name = document.createElement('a');
|
||||
name.className = 'wish-drawer__name';
|
||||
name.href = product.url;
|
||||
name.textContent = product.title;
|
||||
const price = document.createElement('p');
|
||||
price.className = 'wish-drawer__price';
|
||||
price.textContent = formatPrice(product.price);
|
||||
copy.append(name, price);
|
||||
const remove = document.createElement('button');
|
||||
remove.className = 'wish-drawer__remove';
|
||||
remove.type = 'button';
|
||||
remove.dataset.wishRemove = product._wishId;
|
||||
remove.textContent = wishDrawer?.dataset.remove || '';
|
||||
row.append(link, copy, remove);
|
||||
wishList.append(row);
|
||||
});
|
||||
};
|
||||
|
||||
const setWishOpen = (open) => {
|
||||
if (!wishDrawer || !wishButton) return;
|
||||
wishDrawer.classList.toggle('is-open', open);
|
||||
wishDrawer.setAttribute('aria-hidden', open ? 'false' : 'true');
|
||||
document.querySelectorAll('[data-wish-open]').forEach((control) => {
|
||||
control.setAttribute('aria-expanded', open ? 'true' : 'false');
|
||||
});
|
||||
document.documentElement.classList.toggle('overflow-hidden', open);
|
||||
if (open) {
|
||||
document.querySelectorAll('[data-header]').forEach((header) => {
|
||||
closeMenu(header);
|
||||
closeSearch(header);
|
||||
closePredictive(header);
|
||||
});
|
||||
document.querySelector('[data-cart-drawer].is-open [data-cart-drawer-close]')?.click();
|
||||
renderWishList();
|
||||
wishDrawer.querySelector('.wish-drawer__close')?.focus();
|
||||
}
|
||||
};
|
||||
|
||||
updateWishCount();
|
||||
document.addEventListener('seasons:wishlist', () => {
|
||||
updateWishCount();
|
||||
if (wishDrawer?.classList.contains('is-open')) renderWishList();
|
||||
});
|
||||
|
||||
document.addEventListener('click', (event) => {
|
||||
if (event.target.closest('[data-wish-open]')) {
|
||||
event.preventDefault();
|
||||
setWishOpen(!wishDrawer?.classList.contains('is-open'));
|
||||
return;
|
||||
}
|
||||
if (event.target.closest('[data-wish-close]')) {
|
||||
setWishOpen(false);
|
||||
wishButton?.focus();
|
||||
return;
|
||||
}
|
||||
const remove = event.target.closest('[data-wish-remove]');
|
||||
if (!remove) return;
|
||||
const id = remove.dataset.wishRemove;
|
||||
writeWishItems(readWishItems().filter((item) => item.id !== id));
|
||||
});
|
||||
|
||||
document.addEventListener('keydown', (event) => {
|
||||
if (event.key !== 'Escape' || !wishDrawer?.classList.contains('is-open')) return;
|
||||
setWishOpen(false);
|
||||
wishButton?.focus();
|
||||
});
|
||||
})();
|
||||
{% endjavascript %}
|
||||
|
||||
|
||||
@@ -52,83 +52,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.welcome {
|
||||
display: grid;
|
||||
grid-template-columns: var(--content-grid);
|
||||
background-color: #f6f6f7;
|
||||
padding: 72px 0;
|
||||
}
|
||||
|
||||
.welcome-content {
|
||||
grid-column: 2;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.welcome-description {
|
||||
max-width: 80ch;
|
||||
line-height: 1.4;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.highlights {
|
||||
display: grid;
|
||||
gap: 2rem;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.highlights {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
padding: 24px;
|
||||
border-radius: 8px;
|
||||
background-color: #eef3ff;
|
||||
color: rgb(92, 95, 98);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.highlight > * + * {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.highlight h3 {
|
||||
font-size: 1rem;
|
||||
color: rgb(32, 34, 35);
|
||||
}
|
||||
|
||||
.highlight-description {
|
||||
flex: 1 1;
|
||||
}
|
||||
|
||||
.highlight a {
|
||||
display: flex;
|
||||
width: fit-content;
|
||||
background-color: rgb(250, 251, 251);
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px 0px inset, rgba(255, 255, 255, 0.9) 0px 2px 0px 0px inset;
|
||||
border: 1px solid rgb(140, 145, 150);
|
||||
border-radius: 4px;
|
||||
color: rgb(92, 95, 98);
|
||||
padding: 3px 10px 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
|
||||
@@ -196,404 +196,7 @@
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.hero {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 650px;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
background: #c8c2bc;
|
||||
}
|
||||
|
||||
.hero__media {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.hero__video,
|
||||
.hero__poster,
|
||||
.hero__still,
|
||||
.hero__poster-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
.hero__poster,
|
||||
.hero__still {
|
||||
z-index: 1;
|
||||
transition: opacity 0.45s ease;
|
||||
}
|
||||
|
||||
.hero.is-playing .hero__poster {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
min-height: 650px;
|
||||
padding: 104px 160px 80px 100px;
|
||||
}
|
||||
|
||||
.hero__copy {
|
||||
width: min(100%, 800px);
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 70px;
|
||||
font-weight: 500;
|
||||
line-height: 69px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hero__title-line {
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero__title-line--light {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.hero__title-line--medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.hero__rule {
|
||||
display: block;
|
||||
width: 578px;
|
||||
max-width: 100%;
|
||||
height: 1px;
|
||||
margin-top: 40px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.hero__label {
|
||||
margin: 40px 0 20px;
|
||||
color: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.hero__products {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.hero__card {
|
||||
display: grid;
|
||||
grid-template-columns: 100px minmax(0, 1fr) 50px;
|
||||
column-gap: 10px;
|
||||
align-items: center;
|
||||
width: 384px;
|
||||
height: 120px;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
background: rgba(249, 249, 250, 0.5);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.hero__card--empty {
|
||||
display: flex;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.hero__card-media {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
overflow: hidden;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.hero__card-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
object-fit: cover;
|
||||
transition: transform 0.35s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image,
|
||||
.hero__card:focus-within .hero__card-image {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.hero__card-image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease, transform 0.35s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image--hover,
|
||||
.hero__card:focus-within .hero__card-image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
background-image: linear-gradient(currentColor, currentColor);
|
||||
background-position: 0 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 0 1px;
|
||||
transition: background-size 0.25s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-title,
|
||||
.hero__card-title:focus-visible {
|
||||
background-size: 100% 1px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero__card-image,
|
||||
.hero__card-image--hover,
|
||||
.hero__card-title {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image,
|
||||
.hero__card:focus-within .hero__card-image {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.hero__card-copy {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.hero__card-price {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.hero__form {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.hero__cart {
|
||||
display: grid;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hero__cart:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.hero__cart.is-added {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.hero__cart-icon {
|
||||
display: block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.hero__cart-icon svg {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.hero__social {
|
||||
position: absolute;
|
||||
top: 151px;
|
||||
right: 100px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.hero__social-label {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
.hero__social-line {
|
||||
display: block;
|
||||
width: 1px;
|
||||
height: 80px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.hero__social-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.hero__social-item {
|
||||
display: flex;
|
||||
width: 37px;
|
||||
height: 37px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hero__social-item svg {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.hero__content {
|
||||
padding-right: 120px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.hero__social {
|
||||
right: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.hero,
|
||||
.hero__content {
|
||||
min-height: 550px;
|
||||
}
|
||||
|
||||
.hero__video,
|
||||
.hero__poster-image {
|
||||
object-position: center 22%;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
align-items: flex-end;
|
||||
padding: 24px 20px 15px;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
font-size: 35px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.hero__rule {
|
||||
width: 253px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.hero__label {
|
||||
margin: 10px 0;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.hero__products {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.hero__card {
|
||||
grid-template-columns: 70px minmax(0, 1fr) 40px;
|
||||
width: 100%;
|
||||
max-width: 297px;
|
||||
height: 80px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.hero__card-media {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.hero__card-price {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.hero__cart {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.hero__cart-icon,
|
||||
.hero__cart-icon svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.hero__social {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.hero__title-line {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero__video {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero__poster {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
<script nolazy>
|
||||
(() => {
|
||||
|
||||
@@ -72,9 +72,16 @@
|
||||
endcase
|
||||
|
||||
assign poster_alt = heading
|
||||
assign slide_state = ''
|
||||
if forloop.index0 == active_index
|
||||
assign slide_state = ' is-active'
|
||||
if video_src != blank
|
||||
assign slide_state = slide_state | append: ' is-playing'
|
||||
endif
|
||||
endif
|
||||
%}
|
||||
<article
|
||||
class="learn__slide{% if forloop.index0 == active_index %} is-active{% endif %}"
|
||||
class="learn__slide{{ slide_state }}"
|
||||
data-slide
|
||||
{{ block.shopify_attributes }}
|
||||
>
|
||||
@@ -107,6 +114,7 @@
|
||||
<video
|
||||
class="learn__video"
|
||||
data-learn-video
|
||||
src="{{ video_src }}"
|
||||
data-src="{{ video_src }}"
|
||||
{% if block.settings.poster != blank %}
|
||||
poster="{{ block.settings.poster | image_url: width: 800 }}"
|
||||
@@ -116,7 +124,12 @@
|
||||
muted
|
||||
playsinline
|
||||
loop
|
||||
preload="none"
|
||||
{% if forloop.index0 == active_index %}
|
||||
autoplay
|
||||
preload="auto"
|
||||
{% else %}
|
||||
preload="none"
|
||||
{% endif %}
|
||||
></video>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -226,406 +239,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.learn {
|
||||
--slide: 384px;
|
||||
--slide-gap: 30px;
|
||||
position: relative;
|
||||
margin-top: 50px;
|
||||
padding: 97px 0 50px;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(127deg, #f8e1ee 8%, #ffffff 60%);
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.learn__blob {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.learn__blob--right {
|
||||
top: 0;
|
||||
right: 219px;
|
||||
width: 539px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.learn__blob--left {
|
||||
top: 722px;
|
||||
left: 29px;
|
||||
width: 407px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.learn__header,
|
||||
.learn__products,
|
||||
.learn__progress,
|
||||
.learn__stage {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.learn__header {
|
||||
margin-bottom: 30px;
|
||||
padding-inline: 100px;
|
||||
}
|
||||
|
||||
.learn__heading {
|
||||
margin: 0;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.learn__subheading {
|
||||
margin: 13px 0 0;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.learn__stage {
|
||||
height: 680px;
|
||||
}
|
||||
|
||||
.learn__viewport {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
cursor: grab;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
.learn__viewport.is-dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.learn__track {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--slide-gap);
|
||||
width: max-content;
|
||||
height: 100%;
|
||||
padding-inline: calc(50% - var(--slide) / 2);
|
||||
}
|
||||
|
||||
.learn__slide {
|
||||
flex: 0 0 var(--slide);
|
||||
width: var(--slide);
|
||||
}
|
||||
|
||||
.learn__media {
|
||||
position: relative;
|
||||
height: 518px;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: #f3e6ee;
|
||||
}
|
||||
|
||||
.learn__slide.is-active .learn__media {
|
||||
height: 680px;
|
||||
}
|
||||
|
||||
.learn__poster,
|
||||
.learn__video {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.learn__video {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.learn__slide.is-playing .learn__video {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.learn__slide.is-playing .learn__poster {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.learn__arrow {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #fff;
|
||||
transform: translateY(-50%);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.learn__arrow--prev {
|
||||
left: 50px;
|
||||
}
|
||||
|
||||
.learn__arrow--next {
|
||||
right: 50px;
|
||||
}
|
||||
|
||||
.learn__arrow:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.learn__arrow-icon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.learn__arrow--prev .learn__arrow-icon {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.learn__arrow--next .learn__arrow-icon {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.learn__products {
|
||||
min-height: 120px;
|
||||
margin-top: 36px;
|
||||
}
|
||||
|
||||
.learn__row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.learn__row[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.learn__card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 384px;
|
||||
height: 120px;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
background: rgba(249, 249, 250, 0.7);
|
||||
}
|
||||
|
||||
.learn__card-media {
|
||||
position: relative;
|
||||
flex: 0 0 100px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
overflow: hidden;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.learn__card-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.learn__card-image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease;
|
||||
}
|
||||
|
||||
.learn__card:hover .learn__card-image--hover,
|
||||
.learn__card:focus-within .learn__card-image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.learn__card-image--hover {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.learn__card-copy {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.learn__card-title {
|
||||
display: block;
|
||||
color: #000;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.learn__card-price {
|
||||
margin: 5px 0 0;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.learn__form {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.learn__cart {
|
||||
display: grid;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.learn__cart:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.learn__cart svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.learn__progress {
|
||||
position: relative;
|
||||
width: min(1200px, calc(100% - 200px));
|
||||
height: 1px;
|
||||
margin: 54px auto 0;
|
||||
background: #e6e6e6;
|
||||
cursor: pointer;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.learn__progress::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.learn__progress-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 2px;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.learn__arrow:focus-visible,
|
||||
.learn__cart:focus-visible,
|
||||
.learn__card-title:focus-visible,
|
||||
.learn__card-media:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.learn__header {
|
||||
padding-inline: 40px;
|
||||
}
|
||||
|
||||
.learn__blob--right {
|
||||
right: -80px;
|
||||
width: 360px;
|
||||
}
|
||||
|
||||
.learn__blob--left {
|
||||
top: auto;
|
||||
bottom: 40px;
|
||||
width: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.learn {
|
||||
--slide: 220px;
|
||||
--slide-gap: 16px;
|
||||
margin-top: 24px;
|
||||
padding: 40px 0 32px;
|
||||
}
|
||||
|
||||
.learn__blob {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.learn__header {
|
||||
margin-bottom: 20px;
|
||||
padding-inline: 15px;
|
||||
}
|
||||
|
||||
.learn__heading {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.learn__subheading {
|
||||
margin-top: 8px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.learn__stage {
|
||||
height: 390px;
|
||||
}
|
||||
|
||||
.learn__media {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.learn__slide.is-active .learn__media {
|
||||
height: 390px;
|
||||
}
|
||||
|
||||
.learn__arrow {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.learn__arrow--prev {
|
||||
left: 12px;
|
||||
}
|
||||
|
||||
.learn__arrow--next {
|
||||
right: 12px;
|
||||
}
|
||||
|
||||
.learn__products {
|
||||
min-height: 0;
|
||||
margin-top: 20px;
|
||||
padding-inline: 15px;
|
||||
}
|
||||
|
||||
.learn__row {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.learn__card {
|
||||
width: min(384px, 100%);
|
||||
}
|
||||
|
||||
.learn__progress {
|
||||
width: calc(100% - 30px);
|
||||
margin-top: 24px;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
@@ -648,8 +261,10 @@
|
||||
if (!video || reduceMotion) return;
|
||||
if (video.dataset.loaded !== 'true' && video.dataset.src) {
|
||||
video.dataset.loaded = 'true';
|
||||
video.src = video.dataset.src;
|
||||
video.load();
|
||||
if (video.getAttribute('src') !== video.dataset.src) {
|
||||
video.src = video.dataset.src;
|
||||
video.load();
|
||||
}
|
||||
}
|
||||
const mark = () => slide.classList.add('is-playing');
|
||||
if (!video.paused && video.currentTime > 0) mark();
|
||||
|
||||
@@ -57,160 +57,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.marquee-section {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.marquee {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
height: 100px;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(90deg, #7dcaaf 0%, #a9ddfa 70.064%, #d2ebf9 133.7%);
|
||||
}
|
||||
|
||||
.marquee__track {
|
||||
display: flex;
|
||||
width: max-content;
|
||||
animation: marquee-scroll 36s linear infinite;
|
||||
}
|
||||
|
||||
.marquee__set {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 192px;
|
||||
padding-right: 192px;
|
||||
}
|
||||
|
||||
.marquee__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.marquee__badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
flex: 0 0 45px;
|
||||
border: 1px solid #000;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.marquee__glyph {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.marquee__glyph > svg,
|
||||
.marquee__layer {
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.marquee__layer svg {
|
||||
position: static;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.marquee__glyph--shipping svg {
|
||||
top: 2px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.marquee__glyph--payment svg {
|
||||
top: 2px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.marquee__glyph--guarantee svg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.marquee__layer--body {
|
||||
top: 6px;
|
||||
left: 1px;
|
||||
}
|
||||
|
||||
.marquee__layer--flap {
|
||||
top: 1px;
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
.marquee__layer--mark {
|
||||
top: 2px;
|
||||
left: 7px;
|
||||
}
|
||||
|
||||
.marquee__copy {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.marquee__copy strong {
|
||||
display: block;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@keyframes marquee-scroll {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(-50%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1119px) {
|
||||
.marquee {
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.marquee__set {
|
||||
gap: 50px;
|
||||
padding-right: 50px;
|
||||
}
|
||||
|
||||
.marquee__item {
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.marquee__badge {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
flex-basis: 35px;
|
||||
}
|
||||
|
||||
.marquee__copy {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.marquee__track {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:marquee.name",
|
||||
|
||||
@@ -148,35 +148,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.bestsellers.new-products {
|
||||
padding-top: 100px;
|
||||
}
|
||||
|
||||
.new-products__video {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.new-products.is-playing .new-products__video {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.new-products.is-playing .new-products__poster {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.bestsellers.new-products {
|
||||
padding-top: 40px;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
{%- if predictive_search.performed -%}
|
||||
{%- liquid
|
||||
assign predictive_products = predictive_search.resources.products
|
||||
-%}
|
||||
<div class="header__predictive-body">
|
||||
<p class="sr-only" data-predictive-count>
|
||||
{%- if predictive_products.size > 0 -%}
|
||||
{{ 'header.search_status' | t: count: predictive_products.size }}
|
||||
{%- else -%}
|
||||
{{ 'header.search_empty' | t: terms: predictive_search.terms }}
|
||||
{%- endif -%}
|
||||
</p>
|
||||
{%- if predictive_products.size > 0 -%}
|
||||
<ul class="header__predictive-list">
|
||||
{%- for product in predictive_products -%}
|
||||
<li>
|
||||
<a
|
||||
class="header__predictive-item"
|
||||
id="PredictiveProduct-{{ product.id }}"
|
||||
href="{{ product.url }}"
|
||||
role="option"
|
||||
>
|
||||
<span class="header__predictive-media">
|
||||
{%- if product.featured_image -%}
|
||||
{{
|
||||
product.featured_image
|
||||
| image_url: width: 120
|
||||
| image_tag:
|
||||
alt: '',
|
||||
widths: '60, 120',
|
||||
sizes: '56px',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{%- endif -%}
|
||||
</span>
|
||||
<span class="header__predictive-copy">
|
||||
<span class="header__predictive-title">{{ product.title | escape }}</span>
|
||||
<span class="header__predictive-price">{{ product.price | money_without_trailing_zeros }}</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
<a class="header__predictive-all" href="{{ routes.search_url }}?type=product&q={{ predictive_search.terms | url_encode }}">
|
||||
{{ 'header.search_view_all' | t }}
|
||||
</a>
|
||||
{%- else -%}
|
||||
<p class="header__predictive-empty">{{ 'header.search_empty' | t: terms: predictive_search.terms }}</p>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:header.predictive",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -12,54 +12,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.recent {
|
||||
background: #f9f9fa;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.recent__inner {
|
||||
padding: 10px 100px 80px;
|
||||
}
|
||||
|
||||
.recent__title {
|
||||
margin: 0 0 24px;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.recent__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 28px 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 1119px) {
|
||||
.recent__inner {
|
||||
padding-right: 24px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.recent__grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.recent__inner {
|
||||
padding: 8px 10px 48px;
|
||||
}
|
||||
|
||||
.recent__title {
|
||||
margin-bottom: 16px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
if (window.__seasonRecent) return;
|
||||
|
||||
@@ -144,232 +144,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.routine {
|
||||
padding: 50px 0;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.routine__layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 849fr) minmax(0, 850fr);
|
||||
gap: 21px;
|
||||
align-items: stretch;
|
||||
padding-inline: 100px;
|
||||
}
|
||||
|
||||
.routine__cover {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.routine__cover-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.routine__heading {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
left: 40px;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 50px;
|
||||
font-weight: 400;
|
||||
line-height: 0.98;
|
||||
}
|
||||
|
||||
.routine__steps {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.routine__card {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-width: 0;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.routine__media {
|
||||
position: relative;
|
||||
display: block;
|
||||
aspect-ratio: 415 / 436;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.routine__image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.45s ease;
|
||||
}
|
||||
|
||||
.routine__card:hover .routine__image,
|
||||
.routine__card:focus-visible .routine__image {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.routine__shade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
|
||||
pointer-events: none;
|
||||
transition: background 0.35s ease;
|
||||
}
|
||||
|
||||
.routine__card:hover .routine__shade,
|
||||
.routine__card:focus-visible .routine__shade {
|
||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.routine__image,
|
||||
.routine__shade {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.routine__card:hover .routine__image,
|
||||
.routine__card:focus-visible .routine__image {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.routine__caption {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
bottom: 10px;
|
||||
left: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
color: #fff;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: clamp(16px, 7.2cqi, 30px);
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.routine__label {
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.routine__arrow {
|
||||
display: grid;
|
||||
flex: 0 0 30px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
}
|
||||
|
||||
.routine__arrow-icon {
|
||||
display: block;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.routine__empty {
|
||||
grid-column: 1 / -1;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.routine__cover:focus-visible,
|
||||
.routine__card:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.routine__layout {
|
||||
padding-inline: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.routine {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.routine__layout {
|
||||
display: block;
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.routine__cover {
|
||||
height: 391px;
|
||||
margin-inline: 15px;
|
||||
}
|
||||
|
||||
.routine__heading {
|
||||
top: 10px;
|
||||
left: 20px;
|
||||
width: 155px;
|
||||
font-size: 25px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.routine__steps {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 0;
|
||||
padding: 20px 15px;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
scroll-padding-inline: 15px;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.routine__steps::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.routine__card {
|
||||
flex: 0 0 245px;
|
||||
width: 245px;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.routine__media {
|
||||
height: 258px;
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.routine__caption {
|
||||
position: static;
|
||||
margin-top: 10px;
|
||||
color: #000;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.routine__arrow {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:routine.name",
|
||||
|
||||
@@ -1,66 +1,94 @@
|
||||
{% comment %}
|
||||
This section is used in the search template to render search results for
|
||||
products, articles, and pages.
|
||||
{% liquid
|
||||
assign search_heading = search.terms | remove: '*' | strip
|
||||
if search_heading == blank
|
||||
assign search_heading = 'search.title' | t
|
||||
endif
|
||||
%}
|
||||
|
||||
https://shopify.dev/docs/storefronts/themes/architecture/templates/search
|
||||
{% endcomment %}
|
||||
<section class="search-page full-width">
|
||||
<div class="search-page__body">
|
||||
<h1 class="search-page__title">{{ search_heading | escape }}</h1>
|
||||
|
||||
<h1>{{ 'search.title' | t }}</h1>
|
||||
<form class="search-page__form" action="{{ routes.search_url }}" method="get" role="search">
|
||||
<button class="search-page__submit" type="submit" aria-label="{{ 'search.submit' | t }}">
|
||||
<span class="search-page__icon" aria-hidden="true">
|
||||
{{ 'icon-search.svg' | inline_asset_content }}
|
||||
</span>
|
||||
</button>
|
||||
<label class="sr-only" for="SearchPage-{{ section.id }}">{{ 'search.title' | t }}</label>
|
||||
<input
|
||||
id="SearchPage-{{ section.id }}"
|
||||
class="search-page__input"
|
||||
type="search"
|
||||
name="q"
|
||||
value="{{ search.terms | escape }}"
|
||||
placeholder="{{ 'search.placeholder' | t }}"
|
||||
>
|
||||
</form>
|
||||
|
||||
<form action="{{ routes.search_url }}" method="get" role="search">
|
||||
<input
|
||||
type="search"
|
||||
size="50"
|
||||
name="q"
|
||||
value="{{ search.terms | escape }}"
|
||||
placeholder="{{ 'search.placeholder' | t }}"
|
||||
>
|
||||
<button type="submit">{{ 'search.submit' | t }}</button>
|
||||
</form>
|
||||
{% if search.performed %}
|
||||
{% if search.results_count == 0 %}
|
||||
<p class="search-page__empty">{{ 'search.no_results_html' | t: terms: search_heading }}</p>
|
||||
{% else %}
|
||||
<p class="search-page__count">{{ 'search.results_for_html' | t: terms: search_heading, count: search.results_count }}</p>
|
||||
|
||||
{% if search.performed %}
|
||||
{% if search.results_count == 0 %}
|
||||
<p>{{ 'search.no_results_html' | t: terms: search.terms }}</p>
|
||||
{% else %}
|
||||
<p>{{ 'search.results_for_html' | t: terms: search.terms, count: search.results_count }}</p>
|
||||
|
||||
<div class="search-results">
|
||||
{% paginate search.results by 20 %}
|
||||
{% # Search result items may be an article, a page, or a product. %}
|
||||
{% for result in search.results %}
|
||||
<div class="search-result">
|
||||
{% assign featured_image = result.featured_image | default: result.image %}
|
||||
{% if featured_image %}
|
||||
{% render 'image', class: 'search-result__image', image: featured_image, url: result.url, width: 400 %}
|
||||
{% endif %}
|
||||
<div class="search-result__content">
|
||||
<p>
|
||||
{{ result.title | link_to: result.url }}
|
||||
{% if result.price %}
|
||||
{{ result.price | money_with_currency }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
{% paginate search.results by 9 %}
|
||||
<div class="search-page__grid">
|
||||
{% for result in search.results %}
|
||||
{% if result.object_type == 'product' %}
|
||||
{% assign card_suffix = section.id | append: '-' | append: forloop.index %}
|
||||
{% render 'collection-card', product: result, form_suffix: card_suffix %}
|
||||
{% else %}
|
||||
{% assign result_image = result.image | default: result.featured_image %}
|
||||
<article class="search-page__other">
|
||||
<a class="search-page__other-link" href="{{ result.url }}">
|
||||
<span class="search-page__other-media">
|
||||
{% if result_image %}
|
||||
{{
|
||||
result_image
|
||||
| image_url: width: 800
|
||||
| image_tag:
|
||||
alt: '',
|
||||
widths: '186, 372, 560, 800',
|
||||
sizes: '(max-width: 767px) 46vw, 33vw',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{% endif %}
|
||||
</span>
|
||||
<span class="search-page__other-title">{{ result.title | escape }}</span>
|
||||
</a>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ paginate | default_pagination }}
|
||||
{% endpaginate %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if paginate.pages > 1 %}
|
||||
<nav class="search-page__pages" aria-label="{{ 'collection_page.page' | t: page: paginate.current_page }}">
|
||||
{% for part in paginate.parts %}
|
||||
{% if part.is_link %}
|
||||
<a class="search-page__page" href="{{ part.url }}">{{ part.title }}</a>
|
||||
{% elsif part.title == paginate.current_page %}
|
||||
<span class="search-page__page is-current" aria-current="page">{{ part.title }}</span>
|
||||
{% else %}
|
||||
<span class="search-page__page search-page__page--gap">{{ part.title }}</span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if paginate.next %}
|
||||
<a class="search-page__next" href="{{ paginate.next.url }}" aria-label="{{ 'collection_page.next_page' | t }}">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false">
|
||||
<path d="M7 4.5 12.5 10 7 15.5" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% endpaginate %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
{% stylesheet %}
|
||||
.search-results {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
}
|
||||
.search-results .prev,
|
||||
.search-results .page,
|
||||
.search-results .next {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
|
||||
@@ -120,252 +120,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.signup {
|
||||
padding: 50px 100px 63px;
|
||||
background: #fff;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.signup__panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 450px;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(128.45deg, #7dcaaf 0%, #a9ddfa 114.42%, #d2ebf9 133.7%);
|
||||
}
|
||||
|
||||
.signup__art {
|
||||
position: absolute;
|
||||
top: 40.9px;
|
||||
left: 82px;
|
||||
width: 317px;
|
||||
height: 360.19px;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.signup__art img {
|
||||
display: block;
|
||||
width: 317px;
|
||||
height: 360.19px;
|
||||
max-width: none;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.signup__copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
width: min(100%, 804px);
|
||||
padding: 82px 24px;
|
||||
}
|
||||
|
||||
.signup__title {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 40px;
|
||||
font-weight: 500;
|
||||
line-height: 45px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.signup__line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.signup__line--medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.signup__line--light {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.signup__text {
|
||||
width: 100%;
|
||||
max-width: 804px;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signup__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.signup__field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 400px;
|
||||
max-width: 100%;
|
||||
height: 50px;
|
||||
padding: 0 30px;
|
||||
border-radius: 100px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.signup__field:focus-within {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.signup__label {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.signup__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.signup__input::placeholder {
|
||||
color: #808181;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.signup__submit {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-left: 12px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #000;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.signup__arrow {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.signup__arrow img {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.signup__message {
|
||||
margin: 12px 0 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.35;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signup__message--error {
|
||||
color: #9b1c1c;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.signup {
|
||||
padding-inline: 40px;
|
||||
}
|
||||
|
||||
.signup__panel {
|
||||
min-height: 380px;
|
||||
}
|
||||
|
||||
.signup__art {
|
||||
left: 24px;
|
||||
transform: scale(0.72);
|
||||
transform-origin: left center;
|
||||
}
|
||||
|
||||
.signup__copy {
|
||||
width: min(100%, 640px);
|
||||
padding-block: 48px;
|
||||
}
|
||||
|
||||
.signup__title {
|
||||
font-size: 32px;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.signup__text {
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.signup {
|
||||
padding: 24px 15px 32px;
|
||||
}
|
||||
|
||||
.signup__panel {
|
||||
min-height: 0;
|
||||
padding-top: 28px;
|
||||
}
|
||||
|
||||
.signup__art {
|
||||
top: 12px;
|
||||
left: 8px;
|
||||
transform: scale(0.42);
|
||||
transform-origin: left top;
|
||||
}
|
||||
|
||||
.signup__copy {
|
||||
width: min(100%, 520px);
|
||||
padding: 88px 16px 32px;
|
||||
}
|
||||
|
||||
.signup__title {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.signup__field {
|
||||
width: min(100%, 400px);
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:signup.name",
|
||||
|
||||
@@ -213,333 +213,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.skin-match {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding-bottom: 75px;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.skin-match__canvas {
|
||||
position: relative;
|
||||
width: min(1705px, calc(100% - 200px));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.skin-match__blob {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.skin-match__blob img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: 100%;
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.skin-match__blob--blue {
|
||||
top: 0;
|
||||
left: 64.81%;
|
||||
width: 18.01%;
|
||||
aspect-ratio: 307 / 300;
|
||||
}
|
||||
|
||||
.skin-match__blob--peach {
|
||||
top: 11.82%;
|
||||
left: 12.32%;
|
||||
width: 14.31%;
|
||||
aspect-ratio: 244 / 264;
|
||||
}
|
||||
|
||||
.skin-match__blob--peach img {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 108.2%;
|
||||
height: 92.42%;
|
||||
transform: translate(-50%, -50%) rotate(90deg);
|
||||
}
|
||||
|
||||
.skin-match__blob--green {
|
||||
top: 60.02%;
|
||||
left: 81.23%;
|
||||
width: 13.2%;
|
||||
aspect-ratio: 225 / 253;
|
||||
}
|
||||
|
||||
.skin-match__blob--pink {
|
||||
top: 70.05%;
|
||||
left: 2.11%;
|
||||
width: 16.3%;
|
||||
aspect-ratio: 278 / 266;
|
||||
}
|
||||
|
||||
.skin-match__content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 37px 0 25px;
|
||||
}
|
||||
|
||||
.skin-match__heading {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
line-height: 1.15;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.skin-match__subheading {
|
||||
margin: 10px 0 0;
|
||||
color: #000;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.skin-match__gallery {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 3fr 3fr 2fr;
|
||||
gap: 30px;
|
||||
align-items: center;
|
||||
margin-top: 53px;
|
||||
padding-left: 0.88%;
|
||||
}
|
||||
|
||||
.skin-match__photo {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.skin-match__photo--cheek {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.skin-match__photo--serum {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.skin-match__photo--jar {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.skin-match__photo--dropper {
|
||||
order: 4;
|
||||
}
|
||||
|
||||
.skin-match__image {
|
||||
position: absolute;
|
||||
max-width: none;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.skin-match__image--serum {
|
||||
top: -25.21%;
|
||||
left: 0;
|
||||
width: 100.42%;
|
||||
}
|
||||
|
||||
.skin-match__image--jar {
|
||||
top: -8.33%;
|
||||
left: -49.38%;
|
||||
width: 208.75%;
|
||||
}
|
||||
|
||||
.skin-match__image--dropper {
|
||||
top: -7.71%;
|
||||
left: 0;
|
||||
width: 101.25%;
|
||||
}
|
||||
|
||||
.skin-match__image--cheek {
|
||||
top: 0;
|
||||
left: -2.71%;
|
||||
width: 103.75%;
|
||||
}
|
||||
|
||||
.skin-match__body {
|
||||
max-width: 990px;
|
||||
margin: 50px auto 0;
|
||||
color: #808181;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.skin-match__lead {
|
||||
color: #000;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.skin-match__rest strong {
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.skin-match__button {
|
||||
display: flex;
|
||||
width: 326px;
|
||||
height: 50px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 50px auto 0;
|
||||
padding: 15px;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-family: inherit;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.skin-match__button:hover {
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
.skin-match__button:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.skin-match__canvas {
|
||||
width: min(1705px, calc(100% - 80px));
|
||||
}
|
||||
|
||||
.skin-match__heading {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.skin-match__subheading,
|
||||
.skin-match__body {
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
.skin-match__gallery {
|
||||
gap: 20px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.skin-match__body,
|
||||
.skin-match__button {
|
||||
margin-top: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.skin-match {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.skin-match__canvas {
|
||||
width: min(382px, calc(100% - 30px));
|
||||
}
|
||||
|
||||
.skin-match__blob--blue {
|
||||
top: 3%;
|
||||
left: 58%;
|
||||
width: 42%;
|
||||
aspect-ratio: 199 / 194;
|
||||
}
|
||||
|
||||
.skin-match__blob--peach {
|
||||
top: 16%;
|
||||
left: -8%;
|
||||
width: 36%;
|
||||
aspect-ratio: 179 / 194;
|
||||
}
|
||||
|
||||
.skin-match__blob--green {
|
||||
top: 44%;
|
||||
left: 62%;
|
||||
width: 46%;
|
||||
aspect-ratio: 224 / 253;
|
||||
}
|
||||
|
||||
.skin-match__blob--pink {
|
||||
top: 62%;
|
||||
left: -18%;
|
||||
width: 52%;
|
||||
aspect-ratio: 246 / 236;
|
||||
}
|
||||
|
||||
.skin-match__content {
|
||||
padding: 0 0 8px;
|
||||
}
|
||||
|
||||
.skin-match__heading {
|
||||
font-size: 20px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.skin-match__subheading {
|
||||
max-width: 198px;
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.skin-match__gallery {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
margin-top: 30px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.skin-match__photo--serum {
|
||||
order: 1;
|
||||
grid-column: 1 / -1;
|
||||
width: 65.45%;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.skin-match__photo--dropper {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.skin-match__photo--cheek {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.skin-match__photo--jar {
|
||||
order: 4;
|
||||
grid-column: 1 / -1;
|
||||
width: 65.45%;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.skin-match__body {
|
||||
max-width: none;
|
||||
margin-top: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.skin-match__button {
|
||||
width: min(300px, 100%);
|
||||
height: 45px;
|
||||
margin-top: 30px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:skin_match.name",
|
||||
|
||||
@@ -195,424 +195,6 @@
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.testimonials {
|
||||
position: relative;
|
||||
margin-top: 100px;
|
||||
padding-bottom: 100px;
|
||||
overflow: hidden;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.testimonials__blob {
|
||||
position: absolute;
|
||||
top: 209px;
|
||||
left: 38px;
|
||||
width: 434px;
|
||||
height: auto;
|
||||
opacity: 0.3;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.testimonials__header {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-inline: 100px;
|
||||
}
|
||||
|
||||
.testimonials__heading {
|
||||
margin: 0;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.testimonials__subheading {
|
||||
margin: 10px 0 0;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.testimonials__stage {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 549fr) minmax(220px, 450px);
|
||||
column-gap: clamp(32px, 10vw, 199px);
|
||||
align-items: start;
|
||||
width: min(1198px, calc(100% - 200px));
|
||||
margin: 100px auto 0;
|
||||
}
|
||||
|
||||
.testimonials__slide[hidden],
|
||||
.testimonials__product[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.testimonials__meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.testimonials__stars {
|
||||
display: flex;
|
||||
gap: 1px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.testimonials__star {
|
||||
display: block;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.testimonials__star svg {
|
||||
display: block;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.testimonials__star.is-off {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.testimonials__author {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.testimonials__quote {
|
||||
max-width: 549px;
|
||||
margin: 60px 0 0;
|
||||
font-size: 35px;
|
||||
font-weight: 300;
|
||||
line-height: 45px;
|
||||
}
|
||||
|
||||
.testimonials__nav {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 155px;
|
||||
}
|
||||
|
||||
.testimonials__arrow {
|
||||
display: grid;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.testimonials__arrow:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.testimonials__arrow-icon {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.testimonials__arrow-icon--next {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.testimonials__product {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.testimonials__media {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
border: 1px solid #eaeaea;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.testimonials__media-link {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.testimonials__image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.testimonials__image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
object-fit: cover;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease;
|
||||
}
|
||||
|
||||
.testimonials__media:hover .testimonials__image--hover,
|
||||
.testimonials__media:focus-within .testimonials__image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.testimonials__actions {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
bottom: 10px;
|
||||
left: 20px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.testimonials__media:hover .testimonials__actions,
|
||||
.testimonials__media:focus-within .testimonials__actions {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.testimonials__bag,
|
||||
.testimonials__buy {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 50px;
|
||||
padding: 15px;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.testimonials__bag {
|
||||
flex: 0 0 50px;
|
||||
width: 50px;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.testimonials__bag img {
|
||||
display: block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.testimonials__buy {
|
||||
flex: 1 1 auto;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.testimonials__bag:disabled,
|
||||
.testimonials__buy:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.testimonials__title {
|
||||
display: block;
|
||||
color: #000;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.testimonials__subtitle {
|
||||
margin: 5px 0 0;
|
||||
color: #808181;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.testimonials__prices {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 15px 0 0;
|
||||
}
|
||||
|
||||
.testimonials__price,
|
||||
.testimonials__compare {
|
||||
width: 70px;
|
||||
font-size: 16px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.testimonials__price {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.testimonials__compare {
|
||||
color: #6e6f6f;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.testimonials__arrow:focus-visible,
|
||||
.testimonials__bag:focus-visible,
|
||||
.testimonials__buy:focus-visible,
|
||||
.testimonials__title:focus-visible,
|
||||
.testimonials__media-link:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.testimonials__header {
|
||||
padding-inline: 40px;
|
||||
}
|
||||
|
||||
.testimonials__stage {
|
||||
width: min(1198px, calc(100% - 80px));
|
||||
}
|
||||
|
||||
.testimonials__blob {
|
||||
left: -40px;
|
||||
width: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.testimonials {
|
||||
margin-top: 50px;
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
.testimonials__blob {
|
||||
top: 80px;
|
||||
left: -30px;
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.testimonials__header {
|
||||
padding-inline: 15px;
|
||||
}
|
||||
|
||||
.testimonials__heading {
|
||||
max-width: 320px;
|
||||
font-size: 22px;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.testimonials__subheading {
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
line-height: 15px;
|
||||
}
|
||||
|
||||
.testimonials__stage {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(372px, calc(100% - 30px));
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.testimonials__copy {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.testimonials__slide {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.testimonials__products {
|
||||
order: 2;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.testimonials__nav {
|
||||
order: 3;
|
||||
justify-content: center;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.testimonials__star,
|
||||
.testimonials__star svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.testimonials__author {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.testimonials__quote {
|
||||
margin-top: 30px;
|
||||
font-size: 18px;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.testimonials__product {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: min(297px, 100%);
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.testimonials__media {
|
||||
flex: 0 0 70px;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.testimonials__actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.testimonials__title {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.testimonials__subtitle {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.testimonials__prices {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.testimonials__price,
|
||||
.testimonials__compare {
|
||||
width: auto;
|
||||
margin-right: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.testimonials__image--hover,
|
||||
.testimonials__actions {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
const setCartCount = (count) => {
|
||||
|
||||
@@ -138,6 +138,7 @@
|
||||
type="button"
|
||||
data-wishlist
|
||||
data-product-id="{{ product.id }}"
|
||||
data-product-handle="{{ product.handle }}"
|
||||
aria-pressed="false"
|
||||
aria-label="{{ 'bestsellers.save' | t: product: product.title }}"
|
||||
data-label-save="{{ 'bestsellers.save' | t: product: product.title }}"
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
type="button"
|
||||
data-wishlist
|
||||
data-product-id="{{ product.id }}"
|
||||
data-product-handle="{{ product.handle }}"
|
||||
aria-pressed="false"
|
||||
aria-label="{{ 'bestsellers.save' | t: product: product.title }}"
|
||||
data-label-save="{{ 'bestsellers.save' | t: product: product.title }}"
|
||||
@@ -174,330 +175,6 @@
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{% stylesheet %}
|
||||
.collection-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.collection-card__media {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.collection-card__link {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.collection-card__image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.collection-card__image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease;
|
||||
}
|
||||
|
||||
.collection-card__media:hover .collection-card__image--hover,
|
||||
.collection-card__media:focus-within .collection-card__image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.collection-card__image--empty {
|
||||
background: #f3f3f3;
|
||||
}
|
||||
|
||||
.collection-card__badges {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.collection-card__badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 3px 5px;
|
||||
border-radius: 2px;
|
||||
color: #000;
|
||||
font-size: 10px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.collection-card__badge--best {
|
||||
background: #bfffb2;
|
||||
}
|
||||
|
||||
.collection-card__badge--skin {
|
||||
background: #f7c585;
|
||||
}
|
||||
|
||||
.collection-card__wish {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.collection-card__wish svg {
|
||||
display: block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.collection-card__wish.is-active svg path {
|
||||
fill: #000;
|
||||
}
|
||||
|
||||
.collection-card__actions {
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
left: 16px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.collection-card__media:hover .collection-card__actions,
|
||||
.collection-card__media:focus-within .collection-card__actions {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.collection-card__add,
|
||||
.collection-card__buy {
|
||||
flex: 1 1 0;
|
||||
height: 48px;
|
||||
border-radius: 60px;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.collection-card__add {
|
||||
border: 1px solid #111;
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.collection-card__buy {
|
||||
border: 0;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.collection-card__add:disabled,
|
||||
.collection-card__buy:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.collection-card__info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.collection-card__title {
|
||||
color: #000;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.collection-card__subtitle,
|
||||
.collection-card__reviews,
|
||||
.collection-card__prices {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.collection-card__subtitle {
|
||||
color: #808181;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.collection-card__rating {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.collection-card__stars {
|
||||
display: flex;
|
||||
gap: 1px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.collection-card__star {
|
||||
display: block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.collection-card__star.is-off {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.collection-card__reviews {
|
||||
color: #000;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.collection-card__prices {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.collection-card__price,
|
||||
.collection-card__compare {
|
||||
font-size: 20px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.collection-card__price {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.collection-card__compare {
|
||||
color: #808181;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.recent .collection-card__title {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.recent .collection-card__subtitle,
|
||||
.recent .collection-card__reviews {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.recent .collection-card__price,
|
||||
.recent .collection-card__compare {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.recent .collection-card__star {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.collection-card {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.collection-card__media {
|
||||
aspect-ratio: auto;
|
||||
overflow: visible;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.collection-card__link {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.collection-card__image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.collection-card__actions {
|
||||
position: static;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.collection-card__add,
|
||||
.collection-card__buy {
|
||||
height: 36px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.collection-card__title,
|
||||
.recent .collection-card__title {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.collection-card__subtitle,
|
||||
.recent .collection-card__subtitle {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.collection-card__price,
|
||||
.collection-card__compare,
|
||||
.recent .collection-card__price,
|
||||
.recent .collection-card__compare {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.collection-card__reviews,
|
||||
.recent .collection-card__reviews {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.collection-card__wish {
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.collection-card__wish svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.collection-card__image--hover,
|
||||
.collection-card__actions {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% javascript %}
|
||||
(() => {
|
||||
if (window.__seasonCollectionCard) return;
|
||||
@@ -508,14 +185,18 @@
|
||||
const readWishlist = () => {
|
||||
try {
|
||||
const stored = JSON.parse(window.localStorage.getItem(wishlistKey));
|
||||
return Array.isArray(stored) ? stored.map(String) : [];
|
||||
if (!Array.isArray(stored)) return [];
|
||||
return stored.map((item) => {
|
||||
if (item && typeof item === 'object') return { id: String(item.id || ''), handle: String(item.handle || '') };
|
||||
return { id: String(item), handle: '' };
|
||||
}).filter((item) => item.id);
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
const applyWishlist = () => {
|
||||
const saved = readWishlist();
|
||||
const saved = readWishlist().map((item) => item.id);
|
||||
document.querySelectorAll('.collection-card [data-wishlist]').forEach((button) => {
|
||||
const active = saved.includes(String(button.dataset.productId));
|
||||
button.classList.toggle('is-active', active);
|
||||
@@ -526,15 +207,20 @@
|
||||
};
|
||||
|
||||
applyWishlist();
|
||||
document.addEventListener('seasons:wishlist', applyWishlist);
|
||||
|
||||
document.addEventListener('click', (event) => {
|
||||
const wish = event.target.closest('.collection-card [data-wishlist]');
|
||||
if (!wish) return;
|
||||
const id = String(wish.dataset.productId || '');
|
||||
const handle = String(wish.dataset.productHandle || '');
|
||||
if (!id) return;
|
||||
const saved = readWishlist();
|
||||
const next = saved.includes(id) ? saved.filter((item) => item !== id) : saved.concat(id);
|
||||
const next = saved.some((item) => item.id === id)
|
||||
? saved.filter((item) => item.id !== id)
|
||||
: saved.concat({ id, handle });
|
||||
window.localStorage.setItem(wishlistKey, JSON.stringify(next));
|
||||
document.dispatchEvent(new CustomEvent('seasons:wishlist'));
|
||||
applyWishlist();
|
||||
});
|
||||
|
||||
|
||||
@@ -9,10 +9,16 @@
|
||||
{% render 'delay-header-scripts', html: shopify_header %}
|
||||
{% enddoc %}
|
||||
|
||||
{% capture blocking_style %}rel="stylesheet" media="screen"{% endcapture %}
|
||||
{% capture deferred_style %}rel="stylesheet" media="print" onload="this.media='all'"{% endcapture %}
|
||||
|
||||
{% liquid
|
||||
if request.design_mode or html == blank
|
||||
echo html
|
||||
else
|
||||
assign blocking_style = blocking_style | strip
|
||||
assign deferred_style = deferred_style | strip
|
||||
assign html = html | replace: 'media="screen"', 'media="print" onload="this.media='all'"'
|
||||
assign chunks = html | split: '<script'
|
||||
for chunk in chunks
|
||||
if forloop.first
|
||||
|
||||
@@ -8,34 +8,38 @@
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: Archivo;
|
||||
src: url('{{ 'archivo-light.ttf' | asset_url }}') format('truetype');
|
||||
src: url('{{ 'archivo-light.woff2' | asset_url }}') format('woff2');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Archivo;
|
||||
src: url('{{ 'archivo-regular.ttf' | asset_url }}') format('truetype');
|
||||
src: url('{{ 'archivo-regular.woff2' | asset_url }}') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Archivo;
|
||||
src: url('{{ 'archivo-medium.ttf' | asset_url }}') format('truetype');
|
||||
src: url('{{ 'archivo-medium.woff2' | asset_url }}') format('woff2');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Archivo;
|
||||
src: url('{{ 'archivo-bold.ttf' | asset_url }}') format('truetype');
|
||||
src: url('{{ 'archivo-bold.woff2' | asset_url }}') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
@@ -243,209 +243,5 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.glow-army {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
padding: 24px 50px 88px;
|
||||
background: #fff;
|
||||
color: #111;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.glow-army__hero,
|
||||
.glow-army__referral {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
min-height: 560px;
|
||||
padding: 72px 64px;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(105deg, #f08a62 0%, #f6b89a 48%, #f8d5c8 100%);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.glow-army__hero-copy,
|
||||
.glow-army__referral-copy {
|
||||
max-width: 560px;
|
||||
}
|
||||
|
||||
.glow-army__title,
|
||||
.glow-army__referral-title {
|
||||
margin: 0;
|
||||
font-size: 64px;
|
||||
font-weight: 400;
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.glow-army__referral-title {
|
||||
font-size: 40px;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.glow-army__intro {
|
||||
max-width: 460px;
|
||||
margin: 18px 0 0;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.glow-army__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.glow-army__button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 160px;
|
||||
height: 48px;
|
||||
padding: 0 24px;
|
||||
border-radius: 999px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.glow-army__button--fill {
|
||||
background: #e36b4a;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.glow-army__button--ghost {
|
||||
background: #fff;
|
||||
color: #e36b4a;
|
||||
}
|
||||
|
||||
.glow-army__referral .glow-army__button {
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.glow-army__body {
|
||||
padding: 72px 0 24px;
|
||||
}
|
||||
|
||||
.glow-army__block + .glow-army__block {
|
||||
margin-top: 72px;
|
||||
}
|
||||
|
||||
.glow-army__heading {
|
||||
margin: 0 0 40px;
|
||||
font-size: 36px;
|
||||
font-weight: 400;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.glow-army__steps,
|
||||
.glow-army__cards {
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.glow-army__steps {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.glow-army__cards {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.glow-army__step,
|
||||
.glow-army__card {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.glow-army__card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 210px;
|
||||
padding: 28px 20px;
|
||||
border: 1px solid #ececec;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.glow-army__number {
|
||||
margin: 0;
|
||||
color: #e36b4a;
|
||||
font-size: 64px;
|
||||
font-weight: 400;
|
||||
line-height: 1;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.glow-army__icon {
|
||||
display: grid;
|
||||
margin-bottom: 16px;
|
||||
color: #e36b4a;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.glow-army__reward-image {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
margin-bottom: 12px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.glow-army__card-title {
|
||||
margin: 14px 0 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.glow-army__step .glow-army__card-title {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.glow-army__card-text {
|
||||
margin: 8px 0 0;
|
||||
color: #5c5c5c;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.glow-army__referral {
|
||||
min-height: 420px;
|
||||
margin-top: 72px;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.glow-army {
|
||||
padding: 16px 20px 64px;
|
||||
}
|
||||
|
||||
.glow-army__hero,
|
||||
.glow-army__referral {
|
||||
min-height: 420px;
|
||||
padding: 40px 24px;
|
||||
}
|
||||
|
||||
.glow-army__title {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.glow-army__referral-title,
|
||||
.glow-army__heading {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.glow-army__steps,
|
||||
.glow-army__cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
@param {string} url - Link URL
|
||||
@param {link[]} [child_links] - Nested links from a menu
|
||||
@param {string} [child_menu] - Fallback items as `Label::/url`, separated by `|`
|
||||
@param {string} [image_set] - Card images: categories, routine, skin or concern
|
||||
@param {boolean} [show_caret] - Shows a decorative caret when there are no child links
|
||||
|
||||
@example
|
||||
@@ -24,6 +25,80 @@
|
||||
assign manual_items = child_menu | strip | split: '|'
|
||||
assign child_count = manual_items.size
|
||||
endif
|
||||
|
||||
assign cards = false
|
||||
if child_menu contains '/collections/1-limpia'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/2-trata'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/3-hidrata'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/4-protege-bloqueadores-solares'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/kits-skincare-facial'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/piel-mixta-grasa'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/piel-grasa'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_menu contains '/collections/piel-seca-1'
|
||||
assign cards = true
|
||||
endif
|
||||
if child_links != blank
|
||||
for child in child_links
|
||||
if child.url contains '/collections/1-limpia'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/2-trata'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/3-hidrata'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/4-protege-bloqueadores-solares'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/kits-skincare-facial'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/piel-mixta-grasa'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/piel-grasa'
|
||||
assign cards = true
|
||||
endif
|
||||
if child.url contains '/collections/piel-seca-1'
|
||||
assign cards = true
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
|
||||
if image_set == blank
|
||||
assign title_key = title | handleize
|
||||
if title_key == 'categorias'
|
||||
assign image_set = 'categories'
|
||||
endif
|
||||
if title_key == 'preocupacion'
|
||||
assign image_set = 'concern'
|
||||
endif
|
||||
if title_key == 'rutina'
|
||||
assign image_set = 'routine'
|
||||
endif
|
||||
if title_key == 'tipo-de-piel'
|
||||
assign image_set = 'skin'
|
||||
endif
|
||||
endif
|
||||
|
||||
if image_set != blank
|
||||
assign cards = true
|
||||
endif
|
||||
%}
|
||||
|
||||
<li class="header__item relative flex items-center self-stretch gap-2.5" data-menu-item>
|
||||
@@ -46,15 +121,89 @@
|
||||
{{ 'icon-caret-down.svg' | inline_asset_content }}
|
||||
</span>
|
||||
</button>
|
||||
<ul class="header__submenu absolute left-0 top-full z-30 m-0 hidden min-w-[260px] list-none bg-white px-5 py-4 shadow-[0_12px_40px_rgba(0,0,0,0.08)]">
|
||||
<ul class="header__submenu{% if cards %} header__submenu--cards{% endif %} absolute left-0 top-full z-30 m-0 hidden list-none{% unless cards %} min-w-[260px] bg-white px-5 py-4 shadow-[0_12px_40px_rgba(0,0,0,0.08)]{% endunless %}">
|
||||
{% if child_links != blank and child_links.size > 0 %}
|
||||
{% for child in child_links %}
|
||||
<li>
|
||||
{% liquid
|
||||
assign item_title = child.title
|
||||
assign item_url = child.url
|
||||
assign item_handle = item_url | split: '/collections/' | last | split: '?' | first | split: '/' | first
|
||||
assign card_image = blank
|
||||
if image_set == 'categories'
|
||||
case item_handle
|
||||
when 'all-products'
|
||||
assign card_image = 'menu-categoria-todos.webp'
|
||||
when 'proteccion-solar-1'
|
||||
assign card_image = 'menu-categoria-bloqueadores.webp'
|
||||
when 'hidratantes'
|
||||
assign card_image = 'menu-categoria-hidratantes.webp'
|
||||
when 'limpiadores'
|
||||
assign card_image = 'menu-categoria-limpiadores.webp'
|
||||
when 'mascarillas'
|
||||
assign card_image = 'menu-categoria-mascarillas.webp'
|
||||
when 'serum'
|
||||
assign card_image = 'menu-categoria-serums.webp'
|
||||
endcase
|
||||
endif
|
||||
if image_set == 'concern'
|
||||
case item_handle
|
||||
when 'proteccion-solar-1'
|
||||
assign card_image = 'menu-preocupacion-solar.webp'
|
||||
when 'control-grasa'
|
||||
assign card_image = 'menu-preocupacion-grasa.webp'
|
||||
when 'acne-1'
|
||||
assign card_image = 'menu-preocupacion-acne.webp'
|
||||
when 'hidratacion'
|
||||
assign card_image = 'menu-preocupacion-hidratacion.webp'
|
||||
when 'antiedad-1'
|
||||
assign card_image = 'menu-preocupacion-antiedad.webp'
|
||||
when 'aclarar'
|
||||
assign card_image = 'menu-preocupacion-manchas.webp'
|
||||
endcase
|
||||
endif
|
||||
if card_image == blank
|
||||
case item_handle
|
||||
when '1-limpia'
|
||||
assign card_image = 'menu-rutina-limpia.webp'
|
||||
when '2-trata'
|
||||
assign card_image = 'menu-rutina-trata.webp'
|
||||
when '3-hidrata'
|
||||
assign card_image = 'menu-rutina-hidrata.webp'
|
||||
when '4-protege-bloqueadores-solares'
|
||||
assign card_image = 'menu-rutina-protege.webp'
|
||||
when 'kits-skincare-facial'
|
||||
assign card_image = 'menu-rutina-kits.webp'
|
||||
when 'piel-mixta-grasa'
|
||||
assign card_image = 'menu-piel-mixta.webp'
|
||||
when 'piel-grasa'
|
||||
assign card_image = 'menu-piel-grasa.webp'
|
||||
when 'piel-seca-1'
|
||||
assign card_image = 'menu-piel-seca.webp'
|
||||
endcase
|
||||
endif
|
||||
%}
|
||||
<li{% if cards %} class="header__card"{% endif %}>
|
||||
<a
|
||||
class="block py-2 text-[14px] font-medium uppercase leading-none text-black no-underline hover:text-brand-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black"
|
||||
href="{{ child.url }}"
|
||||
class="{% if cards %}header__card-link{% else %}block py-2 text-[14px] font-medium uppercase leading-none text-black no-underline hover:text-brand-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black{% endif %}"
|
||||
href="{{ item_url }}"
|
||||
>
|
||||
{{ child.title }}
|
||||
{% if cards and card_image != blank %}
|
||||
<span class="header__card-media">
|
||||
<img
|
||||
class="header__card-image"
|
||||
src="{{ card_image | asset_url }}"
|
||||
alt=""
|
||||
width="180"
|
||||
height="180"
|
||||
loading="lazy"
|
||||
>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if cards %}
|
||||
<span class="header__card-label">{{ item_title }}</span>
|
||||
{% else %}
|
||||
{{ item_title }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
@@ -64,14 +213,84 @@
|
||||
assign item_parts = item | split: '::'
|
||||
assign item_title = item_parts[0] | strip
|
||||
assign item_url = item_parts[1] | strip
|
||||
assign item_handle = item_url | split: '/collections/' | last | split: '?' | first | split: '/' | first
|
||||
assign card_image = blank
|
||||
if image_set == 'categories'
|
||||
case item_handle
|
||||
when 'all-products'
|
||||
assign card_image = 'menu-categoria-todos.webp'
|
||||
when 'proteccion-solar-1'
|
||||
assign card_image = 'menu-categoria-bloqueadores.webp'
|
||||
when 'hidratantes'
|
||||
assign card_image = 'menu-categoria-hidratantes.webp'
|
||||
when 'limpiadores'
|
||||
assign card_image = 'menu-categoria-limpiadores.webp'
|
||||
when 'mascarillas'
|
||||
assign card_image = 'menu-categoria-mascarillas.webp'
|
||||
when 'serum'
|
||||
assign card_image = 'menu-categoria-serums.webp'
|
||||
endcase
|
||||
endif
|
||||
if image_set == 'concern'
|
||||
case item_handle
|
||||
when 'proteccion-solar-1'
|
||||
assign card_image = 'menu-preocupacion-solar.webp'
|
||||
when 'control-grasa'
|
||||
assign card_image = 'menu-preocupacion-grasa.webp'
|
||||
when 'acne-1'
|
||||
assign card_image = 'menu-preocupacion-acne.webp'
|
||||
when 'hidratacion'
|
||||
assign card_image = 'menu-preocupacion-hidratacion.webp'
|
||||
when 'antiedad-1'
|
||||
assign card_image = 'menu-preocupacion-antiedad.webp'
|
||||
when 'aclarar'
|
||||
assign card_image = 'menu-preocupacion-manchas.webp'
|
||||
endcase
|
||||
endif
|
||||
if card_image == blank
|
||||
case item_handle
|
||||
when '1-limpia'
|
||||
assign card_image = 'menu-rutina-limpia.webp'
|
||||
when '2-trata'
|
||||
assign card_image = 'menu-rutina-trata.webp'
|
||||
when '3-hidrata'
|
||||
assign card_image = 'menu-rutina-hidrata.webp'
|
||||
when '4-protege-bloqueadores-solares'
|
||||
assign card_image = 'menu-rutina-protege.webp'
|
||||
when 'kits-skincare-facial'
|
||||
assign card_image = 'menu-rutina-kits.webp'
|
||||
when 'piel-mixta-grasa'
|
||||
assign card_image = 'menu-piel-mixta.webp'
|
||||
when 'piel-grasa'
|
||||
assign card_image = 'menu-piel-grasa.webp'
|
||||
when 'piel-seca-1'
|
||||
assign card_image = 'menu-piel-seca.webp'
|
||||
endcase
|
||||
endif
|
||||
%}
|
||||
{% if item_title != blank %}
|
||||
<li>
|
||||
<li{% if cards %} class="header__card"{% endif %}>
|
||||
<a
|
||||
class="block py-2 text-[14px] font-medium uppercase leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black"
|
||||
class="{% if cards %}header__card-link{% else %}block py-2 text-[14px] font-medium uppercase leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black{% endif %}"
|
||||
href="{{ item_url }}"
|
||||
>
|
||||
{{ item_title }}
|
||||
{% if cards and card_image != blank %}
|
||||
<span class="header__card-media">
|
||||
<img
|
||||
class="header__card-image"
|
||||
src="{{ card_image | asset_url }}"
|
||||
alt=""
|
||||
width="180"
|
||||
height="180"
|
||||
loading="lazy"
|
||||
>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if cards %}
|
||||
<span class="header__card-label">{{ item_title }}</span>
|
||||
{% else %}
|
||||
{{ item_title }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
@@ -48,17 +48,4 @@
|
||||
{{ image | image_url: width: width, height: height, crop: crop | image_tag }}
|
||||
</{{ wrapper }}>
|
||||
|
||||
{% stylesheet %}
|
||||
.image {
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.image > img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
{% # Inlined CSS Variables %}
|
||||
{% render 'css-variables' %}
|
||||
|
||||
{% # Load and preload the critical CSS %}
|
||||
{{ 'critical.css' | asset_url | stylesheet_tag: preload: true }}
|
||||
{% render 'tailwind-css' %}
|
||||
|
||||
{% # Social, title, etc. %}
|
||||
{% render 'meta-tags' %}
|
||||
|
||||