diff --git a/.github/skills/multi-variant-images/SKILL.md b/.github/skills/multi-variant-images/SKILL.md
new file mode 100644
index 000000000..0fcb21f21
--- /dev/null
+++ b/.github/skills/multi-variant-images/SKILL.md
@@ -0,0 +1,117 @@
+---
+name: multi-variant-images
+description: "Use when: implementing Shopify product galleries that switch by variant, using variant metafields with product-image fallback, and hide/show or Swiper logic in a Shopify theme."
+---
+
+# Shopify variant image gallery pattern
+
+Use this when a product needs different gallery images for different variants while still falling back to the default product gallery when a variant has no custom images.
+
+## Recommended metafield setup
+
+Create a variant metafield:
+
+- Namespace: `custom`
+- Key: `variant_gallery`
+- Type: `list.file_reference`
+
+This lets each variant store multiple gallery images. If the variant has no images, fall back to the product's normal `product.images` list.
+
+## Liquid pattern
+
+Use the selected variant first, then fallback to product images:
+
+```liquid
+{% assign selected_variant = product.selected_or_first_available_variant %}
+{% assign variant_gallery_images = selected_variant.metafields.custom.variant_gallery.value %}
+
+{% if variant_gallery_images == blank %}
+ {% assign variant_gallery_images = product.images %}
+{% endif %}
+```
+
+Use that list for the main gallery and the thumbnail gallery.
+
+## DOM-first approach for JS toggling
+
+When the product needs a fast variant switch without rebuilding the gallery from scratch, render all variant image slides up front and switch visibility with JavaScript.
+
+Recommended pattern:
+
+- each slide includes `data-variant-id` and a variant-local image index
+- hide all non-matching variant slides
+- reveal only the selected variant slides
+- update the main gallery and thumbnail gallery together
+- keep a safe fallback to `product.images` when no variant gallery exists
+
+Example structure:
+
+```liquid
+
+
+ {% for variant in product.variants %}
+ {% assign variant_images = variant.metafields.custom.variant_gallery.value %}
+ {% if variant_images == blank %}
+ {% assign variant_images = product.images %}
+ {% endif %}
+
+ {% for image in variant_images %}
+
+ {% render 'image-pdp', image: image %}
+
+ {% endfor %}
+ {% endfor %}
+
+
+```
+
+## JavaScript guidance
+
+Keep the JS simple:
+
+1. Select the active variant from the product form or option selectors.
+2. Find the matching slides for that variant.
+3. Hide all other slides.
+4. Rebuild or refresh the Swiper instance if needed.
+5. Jump to slide 0 for the selected variant.
+
+Avoid:
+
+- using a global slide index across all variants
+- calculating thumbnail targets from hidden slides from other variants
+- leaving stale Swiper state from a previous variant selection
+
+## Safe fallback rules
+
+- If no metafield value exists: use `product.images`
+- If a variant has only one image: still render it in the same gallery pattern
+- If variant selectors change, re-run the gallery sync and maintain the product price update
+
+## Good implementation choices for this repo
+
+This theme uses a minimal section + snippet pattern and Swiper for product galleries. This variant-gallery pattern fits well with that structure.
+
+Prefer:
+
+- template-level logic in the product section
+- a simple DOM-first hide/show model for low complexity
+- variant metadata kept in Shopify instead of custom app logic
+
+## Example checklist
+
+- [ ] Variant metafield created in Shopify
+- [ ] Fallback to `product.images` is implemented
+- [ ] Selected variant gallery renders in DOM
+- [ ] JS hides non-selected variants
+- [ ] Thumbnail click logic targets the correct slide
+- [ ] Swiper is refreshed after variant change
+- [ ] Product price logic still works with option selectors
+
+## Notes
+
+This is a theme-only solution. It does not assume a custom app or external proxy. It is best for a single store theme or storefront pattern where variant-specific gallery images are controlled in Shopify admin.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1e7e82587..c30ee5ae6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,8 +5,8 @@ jobs:
name: Theme Check
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Theme Check
uses: shopify/theme-check-action@v2
with:
- token: ${{ github.token }}
+ token: ${{ github.token }}
\ No newline at end of file
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
deleted file mode 100644
index 2c3a4042f..000000000
--- a/.github/workflows/cla.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-name: Contributor License Agreement (CLA)
-
-on:
- pull_request_target:
- types: [opened, synchronize]
- issue_comment:
- types: [created]
-
-jobs:
- cla:
- runs-on: ubuntu-latest
- if: |
- (github.event.issue.pull_request
- && !github.event.issue.pull_request.merged_at
- && contains(github.event.comment.body, 'signed')
- )
- || (github.event.pull_request && !github.event.pull_request.merged)
- steps:
- - uses: Shopify/shopify-cla-action@v1
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- cla-token: ${{ secrets.CLA_TOKEN }}
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 000000000..a7785dfc0
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,12 @@
+{
+ "printWidth": 120,
+ "singleQuote": true,
+ "overrides": [
+ {
+ "files": "*.liquid",
+ "options": {
+ "singleQuote": false
+ }
+ }
+ ]
+}
diff --git a/.shopifyignore b/.shopifyignore
index 59a11a13e..77876ea8c 100644
--- a/.shopifyignore
+++ b/.shopifyignore
@@ -1,13 +1,9 @@
-# This file contains a list of files that will be excluded from Shopify CLI
-# operations such as push, pull, dev, etc.
-#
-# Examples:
-#
-# Ignore a specific file:
-# templates/product.json
-#
-# Ignore templates with a wildcard pattern:
-# templates/*.json
-#
-# Ignore templates and sections with a regular expression:
-# /(templates|sections)/.*\.json/
+.gitignore
+.gitattributes
+.prettierrc.json
+.theme-check.yml
+.vscode/*
+*.md
+.git/*
+.github/*
+.shopify/*
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 000000000..f6480c2e7
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,3 @@
+{
+ "recommendations": ["shopify.theme-check-vscode", "esbenp.prettier-vscode"]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..cbc8dfc65
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,17 @@
+{
+ "editor.tabSize": 2,
+ "editor.insertSpaces": true,
+ "editor.formatOnSave": false,
+ "[javascript]": {
+ "editor.formatOnSave": true,
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[css]": {
+ "editor.formatOnSave": true
+ },
+ "[liquid]": {
+ "editor.defaultFormatter": "Shopify.theme-check-vscode",
+ "editor.formatOnSave": true
+ },
+ "themeCheck.checkOnSave": true
+}
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
deleted file mode 100644
index 2ac6ce681..000000000
--- a/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,132 +0,0 @@
-# Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-We as members, contributors, and leaders pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, caste, color, religion, or sexual
-identity and orientation.
-
-We pledge to act and interact in ways that contribute to an open, welcoming,
-diverse, inclusive, and healthy community.
-
-## Our Standards
-
-Examples of behavior that contributes to a positive environment for our
-community include:
-
-- Demonstrating empathy and kindness toward other people
-- Being respectful of differing opinions, viewpoints, and experiences
-- Giving and gracefully accepting constructive feedback
-- Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-- Focusing on what is best not just for us as individuals, but for the overall
- community
-
-Examples of unacceptable behavior include:
-
-- The use of sexualized language or imagery, and sexual attention or advances of
- any kind
-- Trolling, insulting or derogatory comments, and personal or political attacks
-- Public or private harassment
-- Publishing others' private information, such as a physical or email address,
- without their explicit permission
-- Other conduct which could reasonably be considered inappropriate in a
- professional setting
-
-## Enforcement Responsibilities
-
-Community leaders are responsible for clarifying and enforcing our standards of
-acceptable behavior and will take appropriate and fair corrective action in
-response to any behavior that they deem inappropriate, threatening, offensive,
-or harmful.
-
-Community leaders have the right and responsibility to remove, edit, or reject
-comments, commits, code, wiki edits, issues, and other contributions that are
-not aligned to this Code of Conduct, and will communicate reasons for moderation
-decisions when appropriate.
-
-## Scope
-
-This Code of Conduct applies within all community spaces, and also applies when
-an individual is officially representing the community in public spaces.
-Examples of representing our community include using an official email address,
-posting via an official social media account, or acting as an appointed
-representative at an online or offline event.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-opensource@shopify.com.
-All complaints will be reviewed and investigated promptly and fairly.
-
-All community leaders are obligated to respect the privacy and security of the
-reporter of any incident.
-
-## Enforcement Guidelines
-
-Community leaders will follow these Community Impact Guidelines in determining
-the consequences for any action they deem in violation of this Code of Conduct:
-
-### 1. Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed
-unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing
-clarity around the nature of the violation and an explanation of why the
-behavior was inappropriate. A public apology may be requested.
-
-### 2. Warning
-
-**Community Impact**: A violation through a single incident or series of
-actions.
-
-**Consequence**: A warning with consequences for continued behavior. No
-interaction with the people involved, including unsolicited interaction with
-those enforcing the Code of Conduct, for a specified period of time. This
-includes avoiding interactions in community spaces as well as external channels
-like social media. Violating these terms may lead to a temporary or permanent
-ban.
-
-### 3. Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including
-sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public
-communication with the community for a specified period of time. No public or
-private interaction with the people involved, including unsolicited interaction
-with those enforcing the Code of Conduct, is allowed during this period.
-Violating these terms may lead to a permanent ban.
-
-### 4. Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community
-standards, including sustained inappropriate behavior, harassment of an
-individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within the
-community.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.1, available at
-[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
-
-Community Impact Guidelines were inspired by
-[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
-
-For answers to common questions about this code of conduct, see the FAQ at
-[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
-[https://www.contributor-covenant.org/translations][translations].
-
-[homepage]: https://www.contributor-covenant.org
-[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
-[Mozilla CoC]: https://github.com/mozilla/diversity
-[FAQ]: https://www.contributor-covenant.org/faq
-[translations]: https://www.contributor-covenant.org/translations
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 0877f7465..000000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Contributing to Skeleton Theme
-
-## How to contribute
-
-We ❤️ pull requests. If you'd like to fix a bug, contribute a feature, or just correct a typo, feel free to do so, as long as you follow our [Code of Conduct](./CODE_OF_CONDUCT.md).
-
-If you're thinking of adding a new feature or proposing a new pattern across the theme, please consider opening an issue first. This will allow us to discuss your idea, ensure it aligns with the project's direction, and potentially save you some time.
-
-For your contribution to be accepted, you'll need to sign the [Shopify Contributor License Agreement (CLA)](https://cla.shopify.com/).
-
-## Standards
-
-* This codebase must be minimalist, not a fully featured theme.
-* This theme must provide a common foundational starting point for most developers.
-* Do not include or reference legacy or non-recommended features.
-* All changes must preserve the principles defined in the README.
-
-## Steps to contribute
-
-1. Fork the repository: [https://github.com/Shopify/skeleton-theme/fork](https://github.com/Shopify/skeleton-theme/fork)
-2. Create your feature branch: `git checkout -b my-new-feature`
-3. Commit your changes: `git commit -am 'Add some feature'`
-4. Push to your branch: `git push origin my-new-feature`
-5. Create a new Pull Request
diff --git a/LICENSE.md b/LICENSE.md
deleted file mode 100644
index 611b31d0a..000000000
--- a/LICENSE.md
+++ /dev/null
@@ -1,9 +0,0 @@
-Copyright (c) 2018-present Shopify Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, sell and/or create derivative works of the Software or any part thereof, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The rights granted above may only be exercised to develop themes that integrate or interoperate with Shopify software or services, and, if applicable, to distribute, offer for sale or otherwise make available any such themes via the Shopify Theme Store. All other uses of the Software are strictly prohibited.
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
index eaf59b2c4..84bdb98c7 100644
--- a/README.md
+++ b/README.md
@@ -24,16 +24,6 @@ If you use VS Code:
- [Shopify Liquid VS Code Extension](https://shopify.dev/docs/storefronts/themes/tools/shopify-liquid-vscode) – provides syntax highlighting, linting, inline documentation, and auto-completion specifically designed for Liquid templates
-### Clone
-
-Clone this repository using Git or Shopify CLI:
-
-```bash
-git clone git@github.com:Shopify/skeleton-theme.git
-# or
-shopify theme init
-```
-
### Preview
Preview this theme using Shopify CLI:
@@ -145,16 +135,6 @@ When developing components defined by schema settings, we recommend these guidel
For CSS and JavaScript, we recommend using the [`{% stylesheet %}`](https://shopify.dev/docs/api/liquid/tags#stylesheet) and [`{% javascript %}`](https://shopify.dev/docs/api/liquid/tags/javascript) tags. They can be included multiple times, but the code will only appear once.
-### `critical.css`
-
-The Skeleton Theme explicitly separates essential CSS necessary for every page into a dedicated `critical.css` file.
-
-## Contributing
-
-We're excited for your contributions to the Skeleton Theme! This repository aims to remain as lean, lightweight, and fundamental as possible, and we kindly ask your contributions to align with this intention.
-
-Visit our [CONTRIBUTING.md](./CONTRIBUTING.md) for a detailed overview of our process, guidelines, and recommendations.
-
-## License
+### `global.css`
-Skeleton Theme is open-sourced under the [MIT](./LICENSE.md) License.
+The Skeleton Theme explicitly separates essential CSS necessary for every page into a dedicated `global.css` file.
diff --git a/TODO.md b/TODO.md
new file mode 100644
index 000000000..c864037d9
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,62 @@
+# MVP
+
+- better styles overall
+- Modify readme
+
+# Various
+
+- Create skills for functionality below
+- Clean up all code - particularly cart and pdp js
+- move drawer css to file?
+- Make sure all section previews work
+- Add to cart errors should be show on page rather than in js alert
+- Theme Blocks https://shopify.dev/docs/storefronts/themes/architecture/blocks/theme-blocks/quick-start?framework=liquid (deal with custom-section.liquid & blocks folder)
+- Work on performance https://shopify.dev/docs/storefronts/themes/best-practices - - defer css - use assets instead of inline? - https://shopify.dev/docs/storefronts/themes/best-practices/performance/defer-non-critical-resources
+- html validation
+- Remove comments from main layout file?
+- Work on accessability https://shopify.dev/docs/storefronts/themes/best-practices
+- Color schemes? https://shopify.dev/docs/api/liquid/objects/color_scheme_group
+- Lighthouse workflow
+
+# Icons
+
+- https://phosphoricons.com
+
+# Templates https://shopify.dev/docs/storefronts/themes/architecture/templates
+
+- Product
+- Search
+- Password
+- Collection List
+- Collection
+- Cart
+- Blog
+- Article
+- 404
+- Gift Card
+- Page
+
+# Sections
+
+- Cart drawer
+- Mobile menu
+- Announcement bar
+- Category filtering
+
+# Complex Functionality - create skills for
+
+- Color swatches
+- Predictive search
+- Multiple currencies/markets
+- Subscription app support
+- Related products
+
+# Project Steps
+
+Test all templates
+Validate html
+Browser test (safari - chrome - firefox - edge - android - iphone)
+Perfomance test (lighthouse & pingdom)
+SEO basic audit - https://www.heymeta.com
+Test forms
+Add site to letter
diff --git a/assets/cart-drawer.js b/assets/cart-drawer.js
new file mode 100644
index 000000000..63a8229ad
--- /dev/null
+++ b/assets/cart-drawer.js
@@ -0,0 +1,336 @@
+(() => {
+ const cartDrawerContainer = document.querySelector('.cart-drawer-container');
+ const cartDrawer = cartDrawerContainer ? cartDrawerContainer.querySelector('.cart-drawer') : null;
+
+ // Close the cart drawer
+ const closeCartDrawer = () => {
+ if (cartDrawerContainer) {
+ cartDrawerContainer.classList.remove('active');
+ }
+ document.body.classList.remove('overflow-hidden');
+ };
+
+ if (cartDrawerContainer) {
+ cartDrawerContainer.addEventListener('click', (event) => {
+ if (event.target === cartDrawerContainer) {
+ closeCartDrawer();
+ }
+ });
+ }
+
+ const closeButton = document.querySelector('.cart-drawer-close');
+
+ if (closeButton) {
+ closeButton.addEventListener('click', closeCartDrawer);
+ }
+
+ const fetchOptions = {
+ cache: 'no-store',
+ credentials: 'same-origin',
+ };
+
+ // Refresh the cart drawer contents
+ const refreshCartDrawer = async () => {
+ try {
+ const response = await fetch('/?sections=cart-drawer', fetchOptions);
+ if (!response.ok) throw new Error('Unable to refresh cart drawer.');
+
+ const data = await response.json();
+ const sectionHtml = data['cart-drawer'];
+
+ if (!sectionHtml || !cartDrawerContainer) return;
+
+ const parser = new DOMParser();
+ const parsedHtml = parser.parseFromString(sectionHtml, 'text/html');
+ const refreshedDrawer = parsedHtml.querySelector('.cart-drawer-container');
+
+ if (refreshedDrawer) {
+ cartDrawerContainer.innerHTML = refreshedDrawer.innerHTML;
+ const refreshedCloseButton = cartDrawerContainer.querySelector('.cart-drawer-close');
+ if (refreshedCloseButton) {
+ refreshedCloseButton.addEventListener('click', closeCartDrawer);
+ }
+ return;
+ }
+
+ const refreshedCartDrawer = parsedHtml.querySelector('.cart-drawer');
+ if (refreshedCartDrawer && cartDrawer) {
+ cartDrawer.innerHTML = refreshedCartDrawer.innerHTML;
+ const refreshedCloseButton = cartDrawer.querySelector('.cart-drawer-close');
+ if (refreshedCloseButton) {
+ refreshedCloseButton.addEventListener('click', closeCartDrawer);
+ }
+ }
+ } catch (error) {
+ console.error(error);
+ }
+ };
+
+ // Refresh the cart item counts displayed in the UI
+ const refreshCartCounts = async () => {
+ try {
+ const response = await fetch('/cart.js', fetchOptions);
+ if (!response.ok) throw new Error('Unable to refresh cart count.');
+
+ const cart = await response.json();
+ const updateTargets = document.querySelectorAll('.cart-item-count');
+
+ updateTargets.forEach((target) => {
+ target.textContent = cart.item_count;
+ if (cart.item_count > 0) {
+ target.classList.remove('hidden');
+ } else {
+ target.classList.add('hidden');
+ }
+ });
+ } catch (error) {
+ console.error(error);
+ }
+ };
+
+ const cartDrawerContents = document.querySelector('.cart-drawer-contents');
+ const queuedQuantityUpdates = new Map();
+ let queuedQuantityTimer = null;
+
+ // Queue a quantity update for a specific cart item
+ const queueQuantityUpdate = (itemKey, nextQuantity) => {
+ const normalizedQuantity = Math.max(0, Number.isFinite(nextQuantity) ? Number(nextQuantity) : 0);
+ queuedQuantityUpdates.set(itemKey, normalizedQuantity);
+
+ if (queuedQuantityTimer) {
+ clearTimeout(queuedQuantityTimer);
+ }
+
+ queuedQuantityTimer = setTimeout(() => {
+ flushQueuedQuantityUpdates();
+ }, 1000);
+ };
+
+ // Flush all queued quantity updates to the server
+ const flushQueuedQuantityUpdates = async () => {
+ if (!queuedQuantityUpdates.size) return;
+
+ const queuedUpdates = Array.from(queuedQuantityUpdates.entries());
+ queuedQuantityUpdates.clear();
+
+ const body = new URLSearchParams();
+ const linePrices = [];
+
+ queuedUpdates.forEach(([itemKey, quantity]) => {
+ body.append(`updates[${itemKey}]`, String(quantity));
+
+ const cartItem = document
+ .querySelector(`.cart-drawer-item [data-key="${itemKey}"]`)
+ ?.closest('.cart-drawer-item');
+ const linePrice = cartItem ? cartItem.querySelector('.cart-drawer-item-line-price') : null;
+
+ if (linePrice) {
+ linePrice.classList.add('is-loading');
+ linePrice.setAttribute('aria-busy', 'true');
+ linePrices.push(linePrice);
+ }
+ });
+
+ try {
+ const response = await fetch('/cart/update.js', {
+ ...fetchOptions,
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
+ },
+ body,
+ });
+
+ if (!response.ok) {
+ throw new Error('Unable to update quantities.');
+ }
+
+ await refreshCartDrawer();
+ await refreshCartCounts();
+ } catch (error) {
+ console.error(error);
+ alert('There was a problem updating the cart. Please try again.');
+ } finally {
+ linePrices.forEach((price) => {
+ price.classList.remove('is-loading');
+ price.removeAttribute('aria-busy');
+ });
+ }
+ };
+
+ // Handle click events within the cart drawer, including removing items and updating quantities
+ if (cartDrawerContainer) {
+ cartDrawerContainer.addEventListener('click', async (event) => {
+ const removeButton = event.target.closest('.cart-drawer-item-remove');
+
+ if (removeButton) {
+ const itemKey = removeButton.dataset.key;
+ const cartItem = removeButton.closest('.cart-drawer-item');
+ const linePrice = cartItem ? cartItem.querySelector('.cart-drawer-item-line-price') : null;
+
+ if (linePrice) {
+ linePrice.classList.add('is-loading');
+ linePrice.setAttribute('aria-busy', 'true');
+ }
+
+ try {
+ const response = await fetch('/cart/update.js', {
+ ...fetchOptions,
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
+ },
+ body: new URLSearchParams({
+ [`updates[${itemKey}]`]: 0,
+ }),
+ });
+
+ if (!response.ok) {
+ throw new Error('Unable to remove item.');
+ }
+
+ await refreshCartDrawer();
+ await refreshCartCounts();
+ } catch (error) {
+ console.error(error);
+ if (linePrice) {
+ linePrice.classList.remove('is-loading');
+ linePrice.removeAttribute('aria-busy');
+ }
+ alert('There was a problem removing this item. Please try again.');
+ }
+
+ return;
+ }
+
+ const button = event.target.closest('.cart-drawer-item-qty-button');
+
+ if (!button) return;
+
+ const itemKey = button.dataset.key;
+ const delta = Number(button.dataset.delta);
+ const quantityContainer = button.closest('.cart-drawer-item-quantity');
+ const quantityValue = quantityContainer
+ ? quantityContainer.querySelector('.cart-drawer-item-quantity-value')
+ : null;
+ const currentQuantity = quantityValue ? Number(quantityValue.value || 0) : 0;
+ const lastQueuedQuantity = queuedQuantityUpdates.has(itemKey)
+ ? Number(queuedQuantityUpdates.get(itemKey))
+ : currentQuantity;
+ const updatedQuantity = Math.max(0, lastQueuedQuantity + delta);
+
+ if (quantityValue) {
+ quantityValue.value = String(updatedQuantity);
+ }
+
+ queueQuantityUpdate(itemKey, updatedQuantity);
+ });
+ }
+
+ // Handle change events for quantity inputs within the cart drawer
+ document.addEventListener('change', (event) => {
+ const quantityInput = event.target.closest('.cart-drawer-item-quantity-value');
+
+ if (!quantityInput) return;
+
+ const cartItem = quantityInput.closest('.cart-drawer-item');
+ const itemKey = cartItem ? cartItem.querySelector('[data-key]')?.dataset?.key : null;
+ if (!itemKey) return;
+
+ const parsedValue = Number(quantityInput.value || 0);
+ const updatedQuantity = Math.max(0, Number.isFinite(parsedValue) ? parsedValue : 0);
+ quantityInput.value = String(updatedQuantity);
+
+ const linePrice = cartItem ? cartItem.querySelector('.cart-drawer-item-line-price') : null;
+
+ if (linePrice) {
+ linePrice.classList.add('is-loading');
+ linePrice.setAttribute('aria-busy', 'true');
+ }
+
+ queueQuantityUpdate(itemKey, updatedQuantity);
+ });
+
+ const productForm = document.querySelector('.product-form');
+
+ // Handle the submission of the product form to add items to the cart
+ if (productForm) {
+ productForm.addEventListener('submit', async (e) => {
+ e.preventDefault();
+
+ const submitButton = productForm.querySelector('.product-buy-button');
+
+ if (submitButton) {
+ submitButton.disabled = true;
+ submitButton.classList.add('button-loading');
+ }
+
+ try {
+ const variantSelect = productForm.querySelector('[name="id"]');
+ const quantityInput = productForm.querySelector('[name="quantity"]');
+ const selectedVariantId = variantSelect ? Number(variantSelect.value) : null;
+ const requestedQuantity = quantityInput ? Number(quantityInput.value) : 1;
+
+ const requestBody = {
+ items: [
+ {
+ id: selectedVariantId,
+ quantity: requestedQuantity,
+ },
+ ],
+ };
+ const response = await fetch('/cart/add.js', {
+ ...fetchOptions,
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify(requestBody),
+ });
+
+ if (!response.ok) {
+ throw new Error('Unable to add item to cart.');
+ }
+
+ await refreshCartDrawer();
+ await refreshCartCounts();
+
+ const activeDrawer = document.querySelector('.cart-drawer-container');
+
+ if (activeDrawer) {
+ activeDrawer.classList.add('active');
+ document.body.classList.add('overflow-hidden');
+ }
+
+ if (submitButton) {
+ submitButton.classList.remove('button-loading');
+ submitButton.disabled = false;
+ }
+ } catch (error) {
+ console.error(error);
+
+ if (submitButton) {
+ submitButton.disabled = false;
+ submitButton.value = originalButtonText;
+ }
+
+ alert('There was a problem adding this item to the cart. Please try again.');
+ }
+ });
+ }
+
+ const cartToggle = document.querySelector('.cart-toggle');
+
+ // Handle the click event for the cart toggle button to open/close the cart drawer
+ if (cartToggle) {
+ cartToggle.addEventListener('click', (e) => {
+ e.preventDefault();
+ const drawer = document.querySelector('.cart-drawer-container');
+
+ if (drawer) {
+ drawer.classList.toggle('active');
+ document.querySelector('body').classList.toggle('overflow-hidden');
+ }
+ });
+ }
+})();
diff --git a/assets/critical.css b/assets/critical.css
deleted file mode 100644
index cdb1ae1aa..000000000
--- a/assets/critical.css
+++ /dev/null
@@ -1,117 +0,0 @@
-/** Critical CSS for the theme. This file is included on every page. */
-
-/* Reset styles inspired by https://www.joshwcomeau.com/css/custom-css-reset/ */
-* {
- box-sizing: border-box;
- margin: 0;
-}
-
-body {
- display: flex;
- flex-direction: column;
- margin: 0;
- min-height: 100svh;
-}
-
-html:has(dialog[scroll-lock][open], details[scroll-lock][open]) {
- overflow: hidden;
-}
-
-img,
-picture,
-video,
-canvas,
-svg {
- display: block;
- max-width: 100%;
- height: auto;
-}
-
-input,
-textarea,
-select {
- font: inherit;
- border-radius: var(--style-border-radius-inputs);
-}
-
-select {
- background-color: var(--color-background);
- color: currentcolor;
-}
-
-dialog {
- background-color: var(--color-background);
- color: var(--color-foreground);
-}
-
-p {
- text-wrap: pretty;
-}
-p,
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- overflow-wrap: break-word;
-}
-
-p:empty {
- display: none;
-}
-
-:is(p, h1, h2, h3, h4, h5, h6):first-child,
-:empty:first-child + :where(p, h1, h2, h3, h4, h5, h6) {
- margin-block-start: 0;
-}
-
-:is(p, h1, h2, h3, h4, h5, h6):last-child,
-:where(p, h1, h2, h3, h4, h5, h6) + :has(+ :empty:last-child) {
- margin-block-end: 0;
-}
-
-/** Theme styles below */
-body {
- font-family: var(--font-primary--family);
- background-color: var(--color-background);
- color: var(--color-foreground);
-}
-
-/** Section layout utilities */
-
-/**
- * Setup a grid that enables both full-width and constrained layouts
- * depending on the class of the child elements.
- *
- * By default, a minimum content margin is set on the left and right
- * sides of the section and the content is centered in the viewport to
- * not exceed the maximum page width.
- *
- * When a child element is given the `full-width` class, it will span
- * the entire viewport.
- */
-.shopify-section {
- --content-width: min(
- calc(var(--page-width) - var(--page-margin) * 2),
- calc(100% - var(--page-margin) * 2)
- );
- --content-margin: minmax(var(--page-margin), 1fr);
- --content-grid: var(--content-margin) var(--content-width) var(--content-margin);
-
- /* This is required to make elements work as background images */
- position: relative;
- grid-template-columns: var(--content-grid);
- display: grid;
- width: 100%;
-}
-
-/* Child elements, by default, are constrained to the central column of the grid. */
-.shopify-section > * {
- grid-column: 2;
-}
-
-/* Child elements that use the full-width utility class span the entire viewport. */
-.shopify-section > .full-width {
- grid-column: 1 / -1;
-}
diff --git a/assets/global.css b/assets/global.css
new file mode 100644
index 000000000..b8a65ddca
--- /dev/null
+++ b/assets/global.css
@@ -0,0 +1,544 @@
+/* --------------- Reset --------------- */
+
+* {
+ box-sizing: border-box;
+ margin: 0;
+}
+
+html {
+ font-size: 62.5%;
+}
+
+body {
+ font-size: 1.6rem;
+ display: flex;
+ flex-direction: column;
+ margin: 0;
+ min-height: 100svh;
+}
+
+html:has(dialog[scroll-lock][open], details[scroll-lock][open]) {
+ overflow: hidden;
+}
+
+img,
+picture,
+video,
+canvas,
+svg {
+ display: block;
+ max-width: 100%;
+ height: auto;
+}
+
+input,
+textarea,
+select {
+ font: inherit;
+ border-radius: var(--border-radius-inputs);
+}
+
+select {
+ background-color: var(--color-background);
+ color: currentcolor;
+}
+
+dialog {
+ background-color: var(--color-background);
+ color: var(--color-foreground);
+}
+
+p {
+ text-wrap: pretty;
+}
+p,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ overflow-wrap: break-word;
+}
+
+p:empty {
+ display: none;
+}
+
+:is(p, h1, h2, h3, h4, h5, h6):first-child,
+:empty:first-child + :where(p, h1, h2, h3, h4, h5, h6) {
+ margin-block-start: 0;
+}
+
+:is(p, h1, h2, h3, h4, h5, h6):last-child,
+:where(p, h1, h2, h3, h4, h5, h6) + :has(+ :empty:last-child) {
+ margin-block-end: 0;
+}
+
+/* --------------- Base Styles --------------- */
+
+body {
+ font-family: var(--font-primary--family);
+ background-color: var(--color-background);
+ color: var(--color-foreground);
+}
+
+:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
+ outline: 0.2rem solid var(--color-foreground);
+ outline-offset: 0.2rem;
+}
+
+/* --------------- Full Width Page Grid --------------- */
+
+.shopify-section {
+ --content-width: min(calc(var(--page-width) - var(--page-margin) * 2), calc(100% - var(--page-margin) * 2));
+ --content-margin: minmax(var(--page-margin), 1fr);
+ --content-grid: var(--content-margin) var(--content-width) var(--content-margin);
+ position: relative;
+ grid-template-columns: var(--content-grid);
+ display: grid;
+ width: 100%;
+}
+
+.shopify-section > * {
+ grid-column: 2;
+}
+
+.shopify-section > .full-width {
+ grid-column: 1 / -1;
+}
+
+.shopify-section > .full-width.contained {
+ display: grid;
+ grid-template-columns: var(--content-grid);
+}
+
+.full-width .container {
+ grid-column: 2;
+}
+
+/* --------------- Headings --------------- */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-weight: 400;
+ margin: 0 0 1.5rem;
+}
+
+/* --------------- Site Header --------------- */
+
+.site-header {
+ position: relative;
+ z-index: 2;
+ padding: 1rem 0;
+ background: lightgrey;
+}
+
+.site-header .container {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.site-header-title {
+ margin: 0;
+}
+
+.site-header a {
+ position: relative;
+ text-decoration: none;
+ color: var(--color-foreground);
+}
+
+.site-nav-menu,
+.site-header-icons {
+ display: flex;
+ gap: 1rem;
+}
+
+.site-header-icons shopify-store {
+ display: none;
+}
+
+.site-header-icons a {
+ position: relative;
+ text-decoration: none;
+ color: var(--color-foreground);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.site-header-icons a sup {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ overflow: hidden;
+ max-width: var(--page-margin);
+ font-size: 1rem;
+ background: var(--color-foreground);
+ color: white;
+ border-radius: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 2rem;
+ height: 2rem;
+}
+
+.site-header-icons svg {
+ width: 2.5rem;
+}
+
+.site-header-account-icon svg {
+ width: 2.5rem;
+}
+
+/* --------------- Site Nav --------------- */
+
+@media (max-width: 767px) {
+ .site-header::before {
+ content: '';
+ position: absolute;
+ top: 100%;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ height: 100vh;
+ background: rgba(0, 0, 0, 0.5);
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity 0.2s ease;
+ z-index: 1;
+ }
+
+ .site-header.menu-open::before {
+ opacity: 1;
+ pointer-events: auto;
+ }
+
+ .site-nav {
+ position: absolute;
+ left: 0;
+ top: 100%;
+ /* bottom: 0; */
+ background: var(--color-background);
+ width: min(50rem, 100vw);
+ max-width: 100vw;
+ height: 100vh;
+ visibility: hidden;
+ transform: translate(-100%);
+ padding: 0 var(--page-margin);
+ font-size: 2rem;
+ overflow-y: auto;
+ z-index: 2;
+ }
+
+ .site-nav.anim-ready {
+ transition:
+ transform 0.2s ease,
+ visibility 0.2s ease;
+ }
+
+ .site-nav.open {
+ visibility: visible;
+ transform: translate(0);
+ }
+}
+
+.site-nav-menu {
+ flex-direction: column;
+ align-items: flex-start;
+}
+
+@media (min-width: 768px) {
+ .site-nav-menu {
+ flex-direction: row;
+ }
+}
+
+.site-nav-details {
+ position: relative;
+}
+
+.site-nav-summary {
+ list-style: none;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ border-radius: 0.4rem;
+}
+
+.site-nav-summary:focus-visible,
+.site-nav-toggle:focus-visible {
+ outline: 0.2rem solid var(--color-foreground);
+ outline-offset: 0.2rem;
+}
+
+.site-nav-summary::-webkit-details-marker {
+ display: none;
+}
+
+.site-nav-summary .icon-dropdown {
+ width: 1.25rem;
+ position: relative;
+ top: 0.1rem;
+}
+
+.site-nav-details[open] .icon-dropdown {
+ transform: rotate(180deg);
+}
+
+.site-nav-submenu {
+ display: grid;
+ gap: 0.75rem;
+ margin-top: 0.75rem;
+ padding-left: 1rem;
+ list-style: none;
+}
+
+@media (min-width: 768px) {
+ .site-nav-submenu {
+ position: absolute;
+ top: calc(100% + 0.75rem);
+ left: 0;
+ min-width: 16rem;
+ padding: 0.75rem 1rem;
+ background: var(--color-background);
+ border: 0.1rem solid var(--color-border);
+ }
+}
+
+.site-nav-toggle {
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--color-foreground);
+}
+
+@media (min-width: 768px) {
+ .site-nav-toggle {
+ display: none;
+ }
+}
+
+.site-nav-toggle .icon-hamburger,
+.site-nav-toggle .icon-close {
+ width: 2.5rem;
+}
+
+.site-nav-toggle .icon-close {
+ display: none;
+}
+
+.site-nav.open + .site-header-icons .icon-close {
+ display: block;
+}
+
+.site-nav.open + .site-header-icons .icon-hamburger {
+ display: none;
+}
+
+/* --------------- Site Footer --------------- */
+
+.site-footer {
+ margin-top: 1rem;
+ padding: 2rem 0;
+ background: lightgrey;
+}
+
+.site-footer .container {
+ display: flex;
+ justify-content: space-between;
+ flex-direction: column;
+ align-items: center;
+ gap: 1rem;
+}
+
+@media (min-width: 768px) {
+ .site-footer .container {
+ flex-direction: row;
+ }
+}
+
+.site-footer a {
+ text-decoration: none;
+ color: var(--color-foreground);
+}
+
+.footer-links,
+.footer-payment {
+ display: flex;
+ gap: 1rem;
+}
+
+/* --------------- Buttons --------------- */
+
+.button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.5rem;
+ padding: 0;
+ border: none;
+ appearance: none;
+ background: none;
+ background: var(--color-foreground);
+ color: var(--color-background);
+ text-decoration: none;
+ padding: 1rem;
+ border-radius: var(--border-radius-buttons);
+ cursor: pointer;
+}
+
+.button:disabled {
+ cursor: not-allowed;
+ opacity: 0.5;
+}
+
+.button .icon-loader {
+ display: none;
+ width: 1.5rem;
+}
+
+.button-loading .icon-loader {
+ display: block;
+}
+
+/* --------------- Utility Classes --------------- */
+
+.button-reset {
+ padding: 0;
+ border: none;
+ appearance: none;
+ background: none;
+ cursor: pointer;
+}
+
+.list-reset {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.link-reset,
+.link-reset a {
+ text-decoration: none;
+ color: inherit;
+}
+
+.overflow-hidden {
+ overflow: hidden;
+}
+
+.hidden {
+ display: none !important;
+}
+
+.visually-hidden {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ margin: -1px;
+ padding: 0;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+}
+
+@media (max-width: 767px) {
+ .hide-sm {
+ display: none;
+ }
+}
+
+@media (min-width: 768px) {
+ .hide-md {
+ display: none;
+ }
+}
+
+.space-main {
+ margin-top: 1rem;
+}
+
+/* --------------- Generic Tags --------------- */
+
+p,
+ul,
+ol {
+ margin: 0 0 1.5rem;
+}
+
+/* --------------- Accessibility Skip Link --------------- */
+
+.skip-to-content {
+ position: absolute;
+ left: 1rem;
+ top: -4rem;
+ z-index: 1000;
+ padding: 0.75rem 1rem;
+ background: var(--color-foreground);
+ color: var(--color-background);
+ text-decoration: none;
+ border-radius: 0.25rem;
+ transition: top 0.2s ease;
+}
+
+.skip-to-content:focus {
+ top: 1rem;
+}
+
+/* --------------- Forms --------------- */
+
+.form-group {
+ position: relative;
+}
+
+.form-group-label {
+ pointer-events: none;
+ position: absolute;
+ left: 1.5rem;
+ top: 1rem;
+ transition:
+ top 0.1s ease,
+ font-size 0.1s ease;
+}
+
+.form-group-input {
+ border: 1px solid var(--color-border);
+ border-radius: var(--border-radius-inputs);
+ background: var(--color-background);
+ padding: 1.5rem 1.5rem 0.5rem;
+ width: 100%;
+}
+
+.form-group-input:focus {
+ outline: none;
+ box-shadow: 0 0 0 0.1rem var(--color-foreground);
+ border-color: var(--color-foreground);
+}
+
+.form-group-input:focus ~ .form-group-label,
+.form-group-input:not(:placeholder-shown) ~ .form-group-label,
+.form-group-input:-webkit-autofill ~ .form-group-label {
+ font-size: 0.9rem;
+ top: 0.5rem;
+}
+
+.form-group ::placeholder {
+ opacity: 0;
+}
+
+input[type='search']::-webkit-search-decoration,
+input[type='search']::-webkit-search-cancel-button,
+input[type='search']::-webkit-search-results-button,
+input[type='search']::-webkit-search-results-decoration {
+ display: none;
+}
diff --git a/assets/global.js b/assets/global.js
new file mode 100644
index 000000000..f8cda1c31
--- /dev/null
+++ b/assets/global.js
@@ -0,0 +1,59 @@
+(() => {
+ const navToggle = document.querySelector('.site-nav-toggle');
+ const navMenu = document.querySelector('.site-nav');
+ const siteHeader = document.querySelector('.site-header');
+ const mobileQuery = window.matchMedia('(max-width: 768px)');
+
+ function updateMenuAccessibility() {
+ if (!navMenu) return;
+
+ const isOpen = navMenu.classList.contains('open');
+
+ if (!mobileQuery.matches) {
+ navMenu.setAttribute('aria-hidden', 'false');
+ navToggle?.setAttribute('aria-expanded', 'false');
+ document.body.classList.remove('overflow-hidden');
+ navMenu.classList.remove('anim-ready');
+ siteHeader?.classList.remove('menu-open');
+ return;
+ }
+
+ navMenu.setAttribute('aria-hidden', String(!isOpen));
+ navToggle?.setAttribute('aria-expanded', String(isOpen));
+ document.body.classList.toggle('overflow-hidden', isOpen);
+ siteHeader?.classList.toggle('menu-open', isOpen);
+ navMenu.classList.add('anim-ready');
+ }
+
+ function closeMenu() {
+ if (!navMenu || !navMenu.classList.contains('open')) return;
+
+ navMenu.classList.remove('open');
+ updateMenuAccessibility();
+ }
+
+ if (navToggle && navMenu) {
+ updateMenuAccessibility();
+
+ navToggle.addEventListener('click', function () {
+ const isOpen = navMenu.classList.toggle('open');
+ updateMenuAccessibility();
+ document.body.classList.toggle('overflow-hidden', isOpen && mobileQuery.matches);
+ });
+
+ document.addEventListener('keydown', function (event) {
+ if (event.key === 'Escape' && mobileQuery.matches && navMenu.classList.contains('open')) {
+ closeMenu();
+ navToggle.focus();
+ }
+ });
+
+ siteHeader?.addEventListener('click', function (event) {
+ if (event.target === siteHeader && navMenu.classList.contains('open')) {
+ closeMenu();
+ }
+ });
+
+ window.addEventListener('resize', updateMenuAccessibility);
+ }
+})();
diff --git a/assets/icon-account.svg b/assets/icon-account.svg
index 5c523a3f8..d4e98695b 100644
--- a/assets/icon-account.svg
+++ b/assets/icon-account.svg
@@ -1,6 +1 @@
-
+
\ No newline at end of file
diff --git a/assets/icon-arrow-left.svg b/assets/icon-arrow-left.svg
new file mode 100644
index 000000000..d626da78f
--- /dev/null
+++ b/assets/icon-arrow-left.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-arrow-right.svg b/assets/icon-arrow-right.svg
new file mode 100644
index 000000000..3062b8947
--- /dev/null
+++ b/assets/icon-arrow-right.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-caret-circle-left.svg b/assets/icon-caret-circle-left.svg
new file mode 100644
index 000000000..16abe69d9
--- /dev/null
+++ b/assets/icon-caret-circle-left.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-caret-circle-right.svg b/assets/icon-caret-circle-right.svg
new file mode 100644
index 000000000..575ac0c6f
--- /dev/null
+++ b/assets/icon-caret-circle-right.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-caret-left.svg b/assets/icon-caret-left.svg
new file mode 100644
index 000000000..1540c6062
--- /dev/null
+++ b/assets/icon-caret-left.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-caret-right.svg b/assets/icon-caret-right.svg
new file mode 100644
index 000000000..bab5b02cc
--- /dev/null
+++ b/assets/icon-caret-right.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-cart.svg b/assets/icon-cart.svg
index 0a8d0a9b1..e308546bb 100644
--- a/assets/icon-cart.svg
+++ b/assets/icon-cart.svg
@@ -1,5 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/assets/icon-checkmark.svg b/assets/icon-checkmark.svg
new file mode 100644
index 000000000..ea8fc9eb7
--- /dev/null
+++ b/assets/icon-checkmark.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-close.svg b/assets/icon-close.svg
new file mode 100644
index 000000000..a18e140c3
--- /dev/null
+++ b/assets/icon-close.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-discount.svg b/assets/icon-discount.svg
new file mode 100644
index 000000000..1ee4b95aa
--- /dev/null
+++ b/assets/icon-discount.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-dropdown.svg b/assets/icon-dropdown.svg
new file mode 100644
index 000000000..8fc3b0d55
--- /dev/null
+++ b/assets/icon-dropdown.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-filter.svg b/assets/icon-filter.svg
new file mode 100644
index 000000000..f085faf11
--- /dev/null
+++ b/assets/icon-filter.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-loader.svg b/assets/icon-loader.svg
new file mode 100644
index 000000000..6da052d73
--- /dev/null
+++ b/assets/icon-loader.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-lock.svg b/assets/icon-lock.svg
new file mode 100644
index 000000000..68cf5eba7
--- /dev/null
+++ b/assets/icon-lock.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icon-menu.svg b/assets/icon-menu.svg
new file mode 100644
index 000000000..38838b0b6
--- /dev/null
+++ b/assets/icon-menu.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-search.svg b/assets/icon-search.svg
new file mode 100644
index 000000000..67b7d35f5
--- /dev/null
+++ b/assets/icon-search.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icon-square.svg b/assets/icon-square.svg
new file mode 100644
index 000000000..abf2ffa47
--- /dev/null
+++ b/assets/icon-square.svg
@@ -0,0 +1 @@
+
diff --git a/assets/icon-trash.svg b/assets/icon-trash.svg
new file mode 100644
index 000000000..23ea6516c
--- /dev/null
+++ b/assets/icon-trash.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/swiper-bundle.min.css b/assets/swiper-bundle.min.css
new file mode 100644
index 000000000..c5bf0fb2b
--- /dev/null
+++ b/assets/swiper-bundle.min.css
@@ -0,0 +1,13 @@
+/**
+ * Swiper 12.0.3
+ * Most modern mobile touch slider and framework with hardware accelerated transitions
+ * https://swiperjs.com
+ *
+ * Copyright 2014-2025 Vladimir Kharlampidi
+ *
+ * Released under the MIT License
+ *
+ * Released on: October 21, 2025
+ */
+
+:root{--swiper-theme-color:#007aff}:host{display:block;margin-left:auto;margin-right:auto;position:relative;z-index:1}.swiper{display:block;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);width:100%;z-index:1}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{display:block;flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;.swiper-cube-shadow,.swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none}}>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{>.swiper-wrapper{scroll-snap-type:x mandatory}}&.swiper-vertical{>.swiper-wrapper{scroll-snap-type:y mandatory}}&.swiper-free-mode{>.swiper-wrapper{scroll-snap-type:none}>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}}}.swiper-3d{.swiper-slide-shadow,.swiper-slide-shadow-bottom,.swiper-slide-shadow-left,.swiper-slide-shadow-right,.swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.swiper-slide-shadow{background:#00000026}.swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-slide-shadow-top{background-image:linear-gradient(0deg,#00000080,#0000)}.swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid #0000;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){.swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{.swiper-wrapper:after{content:"";left:0;pointer-events:none;position:absolute;top:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{.swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{.swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;.swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{.swiper-button-next,.swiper-button-prev,~.swiper-button-next,~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,.swiper-button-prev{.swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{.swiper-navigation-icon{transform:rotate(0deg)}}}.swiper-vertical{.swiper-button-next,.swiper-button-prev,~.swiper-button-next,~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-button-prev,~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);.swiper-navigation-icon{transform:rotate(-90deg)}}.swiper-button-next,~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;.swiper-navigation-icon{transform:rotate(90deg)}}}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10;&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;.swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullet-active,.swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);display:inline-block;height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));button&{appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translate3d(0,-50%,0);.swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}&.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px;.swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{.swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap;.swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;.swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:right top}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0;width:100%}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;left:0;top:0;width:var(--swiper-pagination-progressbar-size,4px)}}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);position:absolute;top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);z-index:50}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);left:var(--swiper-scrollbar-left,auto);position:absolute;right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%;>canvas,>img,>svg{max-height:100%;max-width:100%;object-fit:contain}}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-direction:column;flex-wrap:wrap}.swiper-fade{&.swiper-free-mode{.swiper-slide{transition-timing-function:ease-out}}.swiper-slide{pointer-events:none;transition-property:opacity;.swiper-slide{pointer-events:none}}.swiper-slide-active{pointer-events:auto;& .swiper-slide-active{pointer-events:auto}}}.swiper.swiper-cube{overflow:visible}.swiper-cube{.swiper-slide{backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1;.swiper-slide{pointer-events:none}}&.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-slide-active{&,& .swiper-slide-active{pointer-events:auto}}.swiper-slide-active,.swiper-slide-next,.swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0;&:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}}}.swiper-cube{.swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}}.swiper-cube{.swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-slide-shadow-cube.swiper-slide-shadow-top{backface-visibility:hidden;z-index:0}}.swiper.swiper-flip{overflow:visible}.swiper-flip{.swiper-slide{backface-visibility:hidden;pointer-events:none;z-index:1;.swiper-slide{pointer-events:none}}.swiper-slide-active{&,& .swiper-slide-active{pointer-events:auto}}}.swiper-flip{.swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-slide-shadow-flip.swiper-slide-shadow-top{backface-visibility:hidden;z-index:0}}.swiper-creative{.swiper-slide{backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}}.swiper.swiper-cards{overflow:visible}.swiper-cards{.swiper-slide{backface-visibility:hidden;overflow:hidden;transform-origin:center bottom}}
\ No newline at end of file
diff --git a/assets/swiper-bundle.min.js b/assets/swiper-bundle.min.js
new file mode 100644
index 000000000..343d5a329
--- /dev/null
+++ b/assets/swiper-bundle.min.js
@@ -0,0 +1,14 @@
+/**
+ * Swiper 12.0.3
+ * Most modern mobile touch slider and framework with hardware accelerated transitions
+ * https://swiperjs.com
+ *
+ * Copyright 2014-2025 Vladimir Kharlampidi
+ *
+ * Released under the MIT License
+ *
+ * Released on: October 21, 2025
+ */
+
+var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s={},a={}){const i=["__proto__","constructor","prototype"];Object.keys(a).filter(e=>i.indexOf(e)<0).forEach(i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])})}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function l(e,t=0){return setTimeout(e,t)}function o(){return Date.now()}function d(e,t="x"){const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function u(...e){const t=Object(e[0]),s=["__proto__","constructor","prototype"];for(let a=1;as.indexOf(e)<0);for(let s=0,a=e.length;si?"next":"prev",c=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,p=()=>{n=(new Date).getTime(),null===l&&(l=n);const r=Math.max(Math.min((n-l)/o,1),0),d=.5-Math.cos(r*Math.PI)/2;let u=i+d*(t-i);if(c(u,t)&&(u=t),e.wrapperEl.scrollTo({[s]:u}),c(u,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:u})}),void a.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=a.requestAnimationFrame(p)};p()}function f(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function g(e,t=""){const s=r(),a=[...e.children];return s.HTMLSlotElement&&e instanceof HTMLSlotElement&&a.push(...e.assignedElements()),t?a.filter(e=>e.matches(t)):a}function v(e){try{return void console.warn(e)}catch(e){}}function w(e,t=[]){const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function b(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function y(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function x(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function S(e,t){t&&e.addEventListener("transitionend",function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))})}function T(e,t,s){const a=r();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function M(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function C(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function P(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let L,I,z;function A(){return L||(L=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),L}function $(e={}){return I||(I=function({userAgent:e}={}){const t=A(),s=r(),a=s.navigator.platform,i=e||s.navigator.userAgent,n={ios:!1,android:!1},l=s.screen.width,o=s.screen.height,d=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const p=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===a;let h="MacIntel"===a;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${o}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),d&&!m&&(n.os="android",n.android=!0),(c||u||p)&&(n.os="ios",n.ios=!0),n}(e)),I}function k(){return z||(z=function(){const e=r(),t=$();let s=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,a]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));s=e<16||16===e&&a<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=a();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||i&&t.ios,isWebView:i}}()),z}var O={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach(e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)}),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(...s){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(a,s)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)})}),s):s},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let s,a,i;"string"==typeof e[0]||Array.isArray(e[0])?(s=e[0],a=e.slice(1,e.length),i=t):(s=e[0].events,a=e[0].data,i=e[0].context||t),a.unshift(i);return(Array.isArray(s)?s:s.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...a])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,a)})}),t}};const D=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const G=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const X=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},B=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},Y=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map((e,t)=>s+a+t)),void e.slides.forEach((t,s)=>{r.includes(t.column)&&B(e,s)})}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(tr)&&B(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a=0?x=parseFloat(x.replace("%",""))/100*E:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x-f-v,d.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(m(a,"--swiper-centered-offset-before",""),m(a,"--swiper-centered-offset-after",""));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter(e=>void 0!==s.breakpoints[e].slidesPerView).length>0;for(let a=0;a1&&p.push(e.virtualSize-E)}if(l&&s.loop){const t=h[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e!(s.cssMode&&!s.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${x}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(x||0)}),e-=x;const t=e>E?e-E:0;p=p.map(e=>e<=0?-f:e>t?t+v:e)}if(s.centerInsufficientSlides){let e=0;h.forEach(t=>{e+=t+(x||0)}),e-=x;const t=(f||0)+(v||0);if(e+t{p[t]=e-s}),u.forEach((e,t)=>{u[t]=e+s})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:u,slidesSizesGrid:h}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){m(a,"--swiper-centered-offset-before",-p[0]+"px"),m(a,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+s)}if(c!==o&&e.emit("slidesLengthChange"),p.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),u.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);c<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{s.push(e)});else for(i=0;it.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;ir?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e=0&&u<=t.size-t.slidesSizesGrid[e],f=u>=0&&u1&&m<=t.size||u<=0&&m>=t.size;f&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),D(o,f,s.slideVisibleClass),D(o,h,s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>g(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.find(e=>e.column===i),c=t.find(e=>e.column===i+1),d=t.find(e=>e.column===i-1)):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach(e=>{G(e,e===o,s.slideActiveClass),G(e,e===c,s.slideNextClass),G(e,e===d,s.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e=t[e]&&a=t[e]&&a=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.find(e=>e.column===d);let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&Y(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)});let r,n=!1;if(i)for(let e=0;eo?o:a&&er?"next":i=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e=s&&t=s&&t=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():wr.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n
{{ comment.author }}
-- {{- comment.created_at | time_tag: format: 'date' -}} -
-{{ comment.content }}
-