/** Shopify CDN: Minification failed

Line 5372:17 Unexpected "{"
Line 5372:26 Expected ":"
Line 6176:19 Unexpected "{"
Line 6176:28 Expected ":"
Line 6176:35 Unexpected "{"
Line 6183:19 Unexpected "{"
Line 6183:28 Expected ":"
Line 6184:19 Unexpected "{"
Line 6184:28 Expected ":"
Line 6187:19 Unexpected "{"
... and 19 more hidden warnings

**/
* {
  box-sizing: border-box;
}

body {
  color: var(--color-foreground);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-variation-settings: 'slnt' 0;
}

:root {
  --hover-lift-amount: 4px;
  --hover-scale-amount: 1.03;
  --hover-subtle-zoom-amount: 1.015;
  --hover-shadow-color: var(--color-shadow);
  --hover-transition-duration: 0.25s;
  --hover-transition-timing: ease-out;
}

html {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--color-foreground-rgb) / var(--opacity-40)) var(--color-background);
  scroll-behavior: smooth;
}

html[scroll-lock] {
  overflow: hidden;
}

[popover]:not(:popover-open, dialog[open]) {
  display: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
}

input,
textarea,
select {
  font: inherit;
  border-radius: var(--style-border-radius-inputs);
}

input:hover {
  background-color: var(--color-input-hover-background);
}

/** override ios and firefox defaults */
select {
  background-color: var(--color-background);
  color: currentcolor;
}

.product-card,
.collection-card,
.resource-card,
.predictive-search-results__card--product,
.predictive-search-results__card {
  position: relative;
  transition: transform var(--hover-transition-duration) var(--hover-transition-timing),
    box-shadow var(--hover-transition-duration) var(--hover-transition-timing);
  will-change: transform, box-shadow;
  z-index: var(--layer-flat);
}

.product-card__link {
  position: absolute;
  inset: 0;
}

.product-card__content {
  position: relative;
}

.product-card__content {
  cursor: pointer;
}

.product-card__content slideshow-component {
  --cursor: pointer;
}

.predictive-search-results__card .product-card,
.predictive-search-results__card .collection-card,
.predictive-search-results__card .resource-card {
  transition: none;
  will-change: auto;
}

@media (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-hover-effect-lift .product-card:hover,
  .card-hover-effect-lift .collection-card:hover,
  .card-hover-effect-lift .resource-card:hover,
  .card-hover-effect-lift .predictive-search-results__card:hover {
    transform: translateY(calc(-1 * var(--hover-lift-amount)));
  }

  .card-hover-effect-lift .header .product-card:hover,
  .card-hover-effect-lift .header .collection-card:hover,
  .card-hover-effect-lift .header .resource-card:hover,
  .card-hover-effect-lift .header-drawer .product-card:hover,
  .card-hover-effect-lift .header-drawer .collection-card:hover,
  .card-hover-effect-lift .header-drawer .resource-card:hover {
    transform: none;
  }

  .card-hover-effect-scale .product-card:hover,
  .card-hover-effect-scale .collection-card:hover,
  .card-hover-effect-scale .resource-card:hover,
  .card-hover-effect-scale .predictive-search-results__card:hover {
    transform: scale(var(--hover-scale-amount));
  }

  .card-hover-effect-scale .header .product-card:hover,
  .card-hover-effect-scale .header .collection-card:hover,
  .card-hover-effect-scale .header .resource-card:hover,
  .card-hover-effect-scale .header-drawer .product-card:hover,
  .card-hover-effect-scale .header-drawer .collection-card:hover,
  .card-hover-effect-scale .header-drawer .resource-card:hover {
    transform: none;
  }

  .card-hover-effect-subtle-zoom .card-gallery,
  .card-hover-effect-subtle-zoom .collection-card__image,
  .card-hover-effect-subtle-zoom .product-card__image,
  .card-hover-effect-subtle-zoom .resource-card__image {
    overflow: hidden;
    transition: transform var(--hover-transition-duration) var(--hover-transition-timing);
  }

  .predictive-search-results__card .card-gallery,
  .predictive-search-results__card .collection-card__image,
  .predictive-search-results__card .product-card__image,
  .predictive-search-results__card .resource-card__image {
    transition: none;
  }

  .card-hover-effect-subtle-zoom .product-card:hover .card-gallery,
  .card-hover-effect-subtle-zoom .collection-card:hover .collection-card__image,
  .card-hover-effect-subtle-zoom .product-card:hover .product-card__image,
  .card-hover-effect-subtle-zoom .resource-card:hover .resource-card__image,
  .card-hover-effect-subtle-zoom .predictive-search-results__card:hover {
    transform: scale(var(--hover-subtle-zoom-amount));
  }

  .card-hover-effect-subtle-zoom .header .product-card:hover .card-gallery,
  .card-hover-effect-subtle-zoom .header .collection-card:hover .collection-card__image,
  .card-hover-effect-subtle-zoom .header .product-card:hover .product-card__image,
  .card-hover-effect-subtle-zoom .header .resource-card:hover .resource-card__image,
  .card-hover-effect-subtle-zoom .header-drawer .product-card:hover .card-gallery,
  .card-hover-effect-subtle-zoom .header-drawer .collection-card:hover .collection-card__image,
  .card-hover-effect-subtle-zoom .header-drawer .product-card:hover .product-card__image,
  .card-hover-effect-subtle-zoom .header-drawer .resource-card:hover .resource-card__image {
    transform: none;
  }

  .predictive-search-results__card .product-card:hover,
  .predictive-search-results__card .collection-card:hover,
  .predictive-search-results__card .resource-card:hover,
  .header .product-card:hover,
  .header .collection-card:hover,
  .header .resource-card:hover,
  .header-drawer .product-card:hover,
  .header-drawer .collection-card:hover,
  .header-drawer .resource-card:hover {
    transform: none;
    box-shadow: none;
  }
}

dialog {
  /* the ::backdrop inherits from the originating element, custom properties must be set on the dialog element */
  --backdrop-color-rgb: var(--color-shadow-rgb);

  background-color: var(--color-background);
  color: var(--color-foreground);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p:empty {
  display: none;
}

:first-child:is(p, h1, h2, h3, h4, h5, h6),
:first-child:empty + :where(p, h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0;
}

/* Remove bottom margin from last text item, or previous to last if the last is empty */
:last-child:is(p, h1, h2, h3, h4, h5, h6),
:where(p, h1, h2, h3, h4, h5, h6):nth-child(2):has(+ :last-child:empty) {
  margin-block-end: 0;
}

/* view transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  /* Keep page interactive while view transitions are running */
  :root {
    view-transition-name: none;
  }

  /* Have the root transition during page navigation */
  html:active-view-transition-type(page-navigation),
  html:active-view-transition-type(product-image-transition) {
    view-transition-name: root-custom;
  }

  ::view-transition {
    pointer-events: none;
  }

  html:active-view-transition-type(page-navigation) main[data-page-transition-enabled='true'] {
    view-transition-name: main-content;
  }

  html:active-view-transition-type(page-navigation) main[data-product-transition='true'][data-template*='product'] {
    view-transition-name: none;
  }

  ::view-transition-old(main-content) {
    animation: var(--view-transition-old-main-content);
  }

  ::view-transition-new(main-content) {
    animation: var(--view-transition-new-main-content);
  }

  html:active-view-transition-type(product-image-transition) {
    [data-view-transition-type='product-image-transition'] {
      view-transition-name: product-image-transition;
    }

    [data-view-transition-type='product-details'] {
      view-transition-name: product-details;
    }
  }

  ::view-transition-group(product-image-transition) {
    z-index: 1;
  }

  ::view-transition-group(product-image-transition),
  ::view-transition-group(product-details) {
    animation-duration: var(--animation-speed);
    animation-timing-function: var(--animation-easing);
  }

  ::view-transition-old(product-image-transition),
  ::view-transition-new(product-image-transition) {
    block-size: 100%;
    overflow: hidden;
    object-fit: cover;
    animation-duration: 0.25s;
    animation-timing-function: var(--animation-easing);
  }

  ::view-transition-new(product-details) {
    animation: var(--view-transition-new-main-content);
  }
}

/* Focus */
*:focus-visible {
  outline: var(--focus-outline-width) solid currentcolor;
  outline-offset: var(--focus-outline-offset);
}

@supports not selector(:focus-visible) {
  *:focus {
    outline: var(--focus-outline-width) solid currentcolor;
    outline-offset: var(--focus-outline-offset);
  }
}

.focus-inset {
  outline-offset: calc(var(--focus-outline-width) * -1);
}

/* Layout */
.content-for-layout {
  flex: 1;
}

/* Set up page widths & margins */
.page-width-wide,
.page-width-normal,
.page-width-narrow,
.page-width-content {
  --page-margin: 16px;
}

@media screen and (min-width: 750px) {
  .page-width-wide,
  .page-width-normal,
  .page-width-narrow,
  .page-width-content {
    --page-margin: 40px;
  }
}

.page-width-wide {
  /* NOTE: This results in a page width of 2400px because of how we set up margins with grid */
  --page-content-width: var(--wide-page-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

.page-width-normal {
  --page-content-width: var(--normal-page-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

.page-width-narrow,
.page-width-content {
  /* NOTE: This results in a page width of 1400px because of how we set up margins with grid */
  --page-content-width: var(--narrow-page-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

.page-width-content {
  --page-content-width: var(--normal-content-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

/* Section width full vs. page
   The reason we use a grid to contain the section is to allow for the section to have a
   full-width background image even if the section content is constrained by the page width. Do not try
   to rewrite this to max-width: --page-width; margin: 0 auto;, it doesn't work. */
.section {
  --full-page-grid-central-column-width: min(
    var(--page-width) - var(--page-margin) * 2,
    calc(100% - var(--page-margin) * 2)
  );
  --full-page-grid-margin: minmax(var(--page-margin), 1fr);
  --full-page-grid-with-margins: var(--full-page-grid-margin) var(--full-page-grid-central-column-width)
    var(--full-page-grid-margin);

  /* Utility variable gives the grid's first column width. Provides an offset width for components like carousels */
  --util-page-margin-offset: max(
    var(--page-margin),
    calc((100% - min(var(--page-content-width), calc(100% - (var(--page-margin) * 2)))) / 2)
  );

  /* Offset for full-width sections to account for the page margin,
  used for Marquee — note that --util-page-margin-offset doesn't work here */
  --full-page-margin-inline-offset: calc(((100vw - var(--full-page-grid-central-column-width)) / 2) * -1);

  width: 100%;

  /* This is required to make background images work, which are <img> rendered absolutely */
  position: relative;

  /* Set up the grid */
  display: grid;
  grid-template-columns: var(--full-page-grid-with-margins);
  min-height: var(--section-min-height, 'auto');
}

/* Place all direct children in the center column by default */
.section > * {
  grid-column: 2;
}

/* Make the actual section background transparent, and instead apply it to a separate sibling element to enable stacking with hero shadow  */
.shopify-section:not(.header-section) :is(.section, .cart__summary-container) {
  background: transparent;
}

.shopify-section:not(.header-section):has(.section) {
  position: relative;
}

.shopify-section:not(.header-section) .section-background {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--layer-section-background);
}

/* For page-width sections, all content goes in the center column */
.section--page-width > * {
  grid-column: 2;
}

/* For full-width sections, content spans all columns */
.section--full-width > * {
  grid-column: 1 / -1;
}

/* Some page-width sections should still extend all the way to the right edge of the page, e.g. collection carousel */
.section--page-width.section--full-width-right > * {
  grid-column: 2 / 4;
}

/* For full-width sections with margin, content still spans full width but with space on the sides */
.section--full-width.section--full-width-margin > * {
  grid-column: 1 / -1;

  @media screen and (min-width: 750px) {
    padding-left: var(--page-margin);
    padding-right: var(--page-margin);
  }
}

/* Some section content break out to full width of the page */
.section > .force-full-width {
  grid-column: 1 / -1;
}

.section--height-small {
  --section-min-height: var(--section-height-small);
}

.section--height-medium {
  --section-min-height: var(--section-height-medium);
}

.section--height-large {
  --section-min-height: var(--section-height-large);
}

.section--height-full-screen {
  --section-min-height: 100svh;
}

.section-content-wrapper.section-content-wrapper {
  min-height: calc(var(--section-min-height, 'auto') - var(--section-height-offset, 0px));
  position: relative;
  width: 100%;
  height: 100%;
}

/* Utility */

.hidden {
  /* stylelint-disable-next-line declaration-no-important */
  display: none !important;
}

@media screen and (max-width: 749px) {
  .hidden--mobile,
  .mobile\:hidden {
    /* stylelint-disable-next-line declaration-no-important */
    display: none !important;
  }
}

@media screen and (min-width: 750px) {
  .hidden--desktop,
  .desktop\:hidden {
    /* stylelint-disable-next-line declaration-no-important */
    display: none !important;
  }
}

.hide-when-empty:empty {
  /* stylelint-disable-next-line declaration-no-important */
  display: none !important;
}

.visually-hidden:not(:focus, :active) {
  /* stylelint-disable-next-line declaration-no-important */
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  /* stylelint-disable-next-line declaration-no-important */
  word-wrap: normal !important;
}

@media screen and (max-width: 749px) {
  .is-visually-hidden-mobile:not(:focus, :active) {
    /* stylelint-disable-next-line declaration-no-important */
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    /* stylelint-disable-next-line declaration-no-important */
    word-wrap: normal !important;
  }
}

.contents {
  display: contents;
}

.flex {
  display: flex;
  gap: var(--gap-md);
}

.grid {
  --centered-column-number: 12;
  --full-width-column-number: 14;
  --centered: column-1 / span var(--centered-column-number);
  --full-width: column-0 / span var(--full-width-column-number);

  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 750px) {
  .grid {
    display: grid;
    gap: 0;
    grid-template-columns: var(--margin-4xl) repeat(var(--centered-column-number), minmax(0, 1fr)) var(--margin-4xl);
    grid-template-areas: 'column-0 column-1 column-2 column-3 column-4 column-5 column-6 column-7 column-8 column-9 column-10 column-11 column-12 column-13';
  }
}

@media screen and (min-width: 1400px) {
  .grid {
    grid-template-columns:
      1fr repeat(
        var(--centered-column-number),
        minmax(0, calc((var(--page-width) - var(--page-margin) * 2) / var(--centered-column-number)))
      )
      1fr;
  }
}

.flex {
  display: flex;
  gap: var(--gap-md);
}

.flip-x {
  scale: -1 1;
}

.flip-y {
  scale: 1 -1;
}

.list-unstyled {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-to-content-link {
  position: absolute;
  overflow: hidden;
  height: 1px;
  left: -99999px;
  word-wrap: normal !important;
}

.skip-to-content-link:focus {
  z-index: var(--layer-temporary);
  overflow: auto;
  width: auto;
  height: auto;
  padding: var(--padding-lg) var(--padding-4xl);
  left: var(--margin-lg);
  top: var(--margin-lg);
  box-shadow: 0 0 0 var(--focus-outline-offset) var(--color-background);
}

.text-left {
  --text-align: left;

  text-align: left;
}

.text-center {
  --text-align: center;

  text-align: center;
}

.text-right {
  --text-align: right;

  text-align: right;
}

.text-inherit {
  color: inherit;
}

.user-select-text {
  user-select: text;
}

.justify-left {
  justify-content: left;
}

.justify-center {
  justify-content: center;
}

.justify-right {
  justify-content: right;
}

.title--aligned-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.background-image-container {
  overflow: hidden;
  position: absolute;
  inset: 0;
  opacity: var(--image-opacity);
}

.background-image-container img,
.background-image-container svg {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.background-image-fit img,
.background-image-fit svg {
  object-fit: contain;
}

.svg-wrapper {
  color: currentcolor;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  pointer-events: none;
}

.svg-wrapper--smaller {
  width: var(--icon-size-2xs);
  height: var(--icon-size-2xs);
}

.svg-wrapper--small {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
}

.svg-wrapper > svg {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
}

.relative {
  position: relative;
}

/* Icons */
.icon-success,
.icon-error {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  flex-shrink: 0;
}

.icon-success {
  color: var(--color-success);
}

.icon-error {
  fill: var(--color-error);
}

placeholder-image {
  display: block;
  height: 100%;
  aspect-ratio: var(--ratio);
}

placeholder-image[data-type='product'] {
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-15));
  width: 100%;
}

/** Placeholder background for the placeholder image, the dimensions are the same as the product images */
placeholder-image[data-type='product']:not(:has(> img)) {
  aspect-ratio: var(--ratio);
  height: 350px;
}

placeholder-image > img {
  object-fit: cover;
  aspect-ratio: var(--ratio);
  height: 100%;
}

/* Base text and heading styles */
body,
.paragraph:not(.button),
.paragraph > * {
  font-family: var(--font-paragraph--family);
  font-style: var(--font-paragraph--style);
  font-weight: var(--font-paragraph--weight);
  font-size: var(--font-paragraph--size);
  line-height: var(--font-paragraph--line-height);
  text-transform: var(--font-paragraph--case);
  -webkit-font-smoothing: antialiased;
  color: var(--color, var(--color-foreground));
}

/* Ensure inputs with type presets maintain minimum 16px on mobile to prevent iOS zoom */
@media screen and (max-width: 1200px) {
  input.paragraph.paragraph,
  input.paragraph.paragraph:not([type]),
  textarea.paragraph.paragraph,
  select.paragraph.paragraph {
    font-size: max(1rem, var(--font-paragraph--size));
  }
}

.paragraph > small {
  font-size: smaller;
}

/* Typography presets */

h1,
.h1.h1,
.text-block.h1 > * {
  font-family: var(--font-h1--family);
  font-style: var(--font-h1--style);
  font-weight: var(--font-h1--weight);
  font-size: var(--font-h1--size);
  line-height: var(--font-h1--line-height);
  letter-spacing: var(--font-h1--letter-spacing);
  text-transform: var(--font-h1--case);
  color: var(--color, var(--font-h1-color));
}

@media screen and (max-width: 1200px) {
  input.h1.h1,
  textarea.h1.h1,
  select.h1.h1 {
    font-size: max(1rem, var(--font-h1--size));
  }
}

h2,
.h2.h2,
.text-block.h2 > * {
  font-family: var(--font-h2--family);
  font-style: var(--font-h2--style);
  font-weight: var(--font-h2--weight);
  font-size: var(--font-h2--size);
  line-height: var(--font-h2--line-height);
  letter-spacing: var(--font-h2--letter-spacing);
  text-transform: var(--font-h2--case);
  color: var(--color, var(--font-h2-color));
}

@media screen and (max-width: 1200px) {
  input.h2.h2,
  textarea.h2.h2,
  select.h2.h2 {
    font-size: max(1rem, var(--font-h2--size));
  }
}

h3,
.h3,
.h3.h3,
.text-block.h3 > * {
  font-family: var(--font-h3--family);
  font-style: var(--font-h3--style);
  font-weight: var(--font-h3--weight);
  font-size: var(--font-h3--size);
  line-height: var(--font-h3--line-height);
  letter-spacing: var(--font-h3--letter-spacing);
  text-transform: var(--font-h3--case);
  color: var(--color, var(--font-h3-color));
}

@media screen and (max-width: 1200px) {
  input.h3,
  textarea.h3,
  select.h3 {
    font-size: max(1rem, var(--font-h3--size));
  }
}

h4,
.h4.h4,
.text-block.h4 > * {
  font-family: var(--font-h4--family);
  font-style: var(--font-h4--style);
  font-weight: var(--font-h4--weight);
  font-size: var(--font-h4--size);
  line-height: var(--font-h4--line-height);
  letter-spacing: var(--font-h4--letter-spacing);
  text-transform: var(--font-h4--case);
  color: var(--color, var(--font-h4-color));
}

@media screen and (max-width: 1200px) {
  input.h4.h4,
  textarea.h4.h4,
  select.h4.h4 {
    font-size: max(1rem, var(--font-h4--size));
  }
}

h5,
.h5.h5,
.text-block.h5 > * {
  font-family: var(--font-h5--family);
  font-style: var(--font-h5--style);
  font-weight: var(--font-h5--weight);
  font-size: var(--font-h5--size);
  line-height: var(--font-h5--line-height);
  letter-spacing: var(--font-h5--letter-spacing);
  text-transform: var(--font-h5--case);
  color: var(--color, var(--font-h5-color));
}

@media screen and (max-width: 1200px) {
  input.h5.h5,
  textarea.h5.h5,
  select.h5.h5 {
    font-size: max(1rem, var(--font-h5--size));
  }
}

h6,
.h6.h6,
.text-block.h6 > * {
  font-family: var(--font-h6--family);
  font-style: var(--font-h6--style);
  font-weight: var(--font-h6--weight);
  font-size: var(--font-h6--size);
  line-height: var(--font-h6--line-height);
  letter-spacing: var(--font-h6--letter-spacing);
  text-transform: var(--font-h6--case);
  color: var(--color, var(--font-h6-color));
}

@media screen and (max-width: 1200px) {
  input.h6.h6,
  textarea.h6.h6,
  select.h6.h6 {
    font-size: max(1rem, var(--font-h6--size));
  }
}

:first-child:is(.h1, .h2, .h3, .h4, .h5, .h6) {
  margin-block-start: 0;
}

:last-child:is(.h1, .h2, .h3, .h4, .h5, .h6) {
  margin-block-end: 0;
}

/* Links */
a {
  --button-color: var(--color, var(--color-primary));

  color: var(--button-color);
  text-decoration-color: transparent;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.125em;
  transition: text-decoration-color var(--animation-speed) var(--animation-easing),
    color var(--animation-speed) var(--animation-easing);
}

:is(h1, h2, h3, h4, h5, h6, p) > a:hover {
  --button-color: var(--color, var(--color-primary-hover));
}

/* Add underline to text using our paragraph styles only. */
p:not(.h1, .h2, .h3, .h4, .h5, .h6) a:where(:not(.button, .button-primary, .button-secondary)),
.rte
  :is(p, ul, ol, table):not(.h1, .h2, .h3, .h4, .h5, .h6)
  a:where(:not(.button, .button-primary, .button-secondary)) {
  text-decoration-color: currentcolor;

  &:hover {
    text-decoration-color: transparent;
    color: var(--color-primary-hover);
  }
}

.container-background-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

details[open] .summary-closed {
  display: none;
}

details:not([open]) .summary-open {
  display: none;
}

details[open] > summary .icon-animated > svg {
  transform: rotate(180deg);
}

/* iOS fix: hide the default arrow on the summary */
summary::-webkit-details-marker {
  display: none;
}

/* Featured collection block */
.featured-collection-block {
  width: 100%;
}

/* Product grid */
.product-grid-container {
  display: block;
  width: 100%;
  padding-block: var(--padding-block-start) var(--padding-block-end);

  @media screen and (min-width: 750px) {
    display: grid;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--product-grid-gap);
  margin: auto;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 750px) {
  .product-grid {
    grid-template-columns: var(--product-grid-columns-desktop);
  }
}

.product-grid :is(h3, p) {
  margin: 0;
}

.product-grid__item {
  border: var(--product-card-border-width) solid rgb(var(--color-border-rgb) / var(--product-card-border-opacity));
}

.product-grid--organic[product-grid-view='default'] .product-grid__item {
  height: fit-content;
}

.product-grid__card.product-grid__card {
  display: flex;
  flex-flow: column nowrap;
  gap: var(--product-card-gap);
  align-items: var(--product-card-alignment);
  text-decoration: none;
  color: var(--color, var(--color-foreground));
  padding-block: var(--padding-block-start) var(--padding-block-end);
  padding-inline: var(--padding-inline-start) var(--padding-inline-end);
  overflow: hidden;
}

[product-grid-view='zoom-out'] .product-grid__card {
  row-gap: var(--padding-xs);
}

[product-grid-view='default'] {
  --product-grid-gap: 16px;
  --padding-block-start: 24px;
  --padding-block-end: 24px;
  --padding-inline-start: 0px;
  --padding-inline-end: 0px;
}

[product-grid-view='default'] .product-grid__item {
  padding-block: 0;
}

[product-grid-view='mobile-single'],
.product-grid-mobile--large {
  @media screen and (max-width: 749px) {
    grid-template-columns: 1fr;
  }
}

.product-grid__card .group-block > * {
  @media screen and (max-width: 749px) {
    flex-direction: column;
  }
}

ul[product-grid-view='zoom-out'] .product-grid__card > * {
  display: none;
}

ul[product-grid-view='zoom-out'] .product-grid__card .card-gallery {
  display: block;
}

[product-grid-view='zoom-out']
  .card-gallery
  > :is(quick-add-component, .product-badges, slideshow-component > slideshow-controls) {
  display: none;
}

ul[product-grid-view='zoom-out'] .card-gallery > img {
  display: block;
}

[product-grid-view='zoom-out'] {
  --product-grid-columns-desktop: repeat(
    10,
    minmax(clamp(50px, calc(100% - 9 * var(--product-grid-gap)) / 10, 80px), 1fr)
  );
}

.product-grid-view-zoom-out--details {
  display: none;
}

.product-grid-view-zoom-out--details .h4,
.product-grid-view-zoom-out--details span,
.product-grid-view-zoom-out--details s {
  font-size: var(--font-size--xs);
  font-family: var(--font-paragraph--family);
}

.product-grid-view-zoom-out--details span {
  font-weight: 500;
}

.product-grid-view-zoom-out--details .h4 {
  line-height: 1.3;
  font-weight: 400;
}

.product-grid-view-zoom-out--details > span.h6,
.product-grid-view-zoom-out--details > div.h6 > product-price {
  display: inline-block;
  line-height: 0;
  margin-top: var(--margin-2xs);
}

.product-grid-view-zoom-out--details > span.h6 > *,
.product-grid-view-zoom-out--details > div.h6 > * > * {
  line-height: 1.2;
}

@media (prefers-reduced-motion: no-preference) {
  :root:active-view-transition-type(product-grid) {
    details[open] floating-panel-component {
      view-transition-name: panel-content;

      .checkbox *,
      .facets__pill-label {
        transition: none;
      }

      .facets--vertical & {
        view-transition-name: none;
      }
    }

    .product-grid {
      view-transition-name: product-grid;
    }

    footer {
      view-transition-name: footer;
    }

    .product-grid__item,
    floating-panel-component {
      transition: none;
    }
  }
}

::view-transition-group(panel-content) {
  z-index: 1;
}

::view-transition-new(product-grid) {
  animation-delay: 150ms;
  animation-name: fadeInUp;
  animation-duration: var(--animation-speed);
  animation-timing-function: var(--animation-easing);
}

results-list[initialized] {
  .product-grid__item {
    transition: opacity var(--animation-speed) var(--animation-easing),
      transform var(--animation-speed) var(--animation-easing);

    @starting-style {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Collection and product list cards have equal heights */
:is(.product-grid__item, .resource-list__item) .product-card {
  display: grid;
  height: 100%;
}

/* Video background */
.video-background,
.video-background * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-background--cover * {
  object-fit: cover;
}

.video-background--contain * {
  object-fit: contain;
}

.text-block {
  width: 100%;
}

.text-block > *:first-child,
.text-block > *:first-child:empty + * {
  margin-block-start: 0;
}

.text-block > *:last-child,
.text-block > *:has(+ *:last-child:empty) {
  margin-block-end: 0;
}

/* This is to deal with the margin applied to the p when custom styles are enabled. The p isn't the first child anymore due to the style tag */
.text-block > style + * {
  margin-block-start: 0;
}

/* Dialog */
.dialog-modal {
  border: none;
  box-shadow: var(--shadow-popover);

  @media screen and (min-width: 750px) {
    border-radius: var(--style-border-radius-popover);
    max-width: var(--normal-content-width);
  }

  @media screen and (max-width: 749px) {
    max-width: 100%;
    max-height: 100%;
    height: 100dvh;
    width: 100dvw;
    padding: var(--padding-md);
  }
}

.dialog-modal::backdrop {
  transition: backdrop-filter var(--animation-speed) var(--animation-easing);
  backdrop-filter: brightness(1);
  background: rgb(var(--backdrop-color-rgb) / var(--backdrop-opacity));
}

.dialog-modal[open] {
  animation: elementSlideInTop var(--animation-speed) var(--animation-easing) forwards;

  &::backdrop {
    animation: backdropFilter var(--animation-speed) var(--animation-easing) forwards;
    transition: opacity var(--animation-speed) var(--animation-easing);
  }
}

.dialog-modal.dialog-closing {
  animation: elementSlideOutTop var(--animation-speed) var(--animation-easing) forwards;

  &::backdrop {
    opacity: 0;
  }
}

/* stylelint-disable value-keyword-case */
.dialog-drawer {
  --dialog-drawer-opening-animation: slideInLeft;
  --dialog-drawer-closing-animation: slideOutLeft;
}

.dialog-drawer--right {
  --dialog-drawer-opening-animation: slideInRight;
  --dialog-drawer-closing-animation: slideOutRight;
}
/* stylelint-enable value-keyword-case */

.dialog-drawer[open] {
  animation: var(--dialog-drawer-opening-animation) var(--animation-speed) var(--animation-easing) forwards;
}

.dialog-drawer.dialog-closing {
  animation: var(--dialog-drawer-closing-animation) var(--animation-speed) var(--animation-easing);
}

/* Buttons */
.button,
.button-secondary,
button.shopify-payment-button__button--unbranded {
  --text-align: center;

  display: grid;
  align-content: center;
  text-decoration: none;
  text-align: var(--text-align);
  color: var(--button-color);
  appearance: none;
  background-color: var(--button-background-color);
  border: none;
  font-family: var(--font-paragraph--family);
  font-style: var(--font-paragraph--style);
  font-size: var(--font-paragraph--size);
  line-height: var(--font-paragraph--line-height);
  margin-block: 0;
  transition: color var(--animation-speed) var(--animation-easing),
    box-shadow var(--animation-speed) var(--animation-easing),
    background-color var(--animation-speed) var(--animation-easing);
  cursor: pointer;
  width: fit-content;
  box-shadow: inset 0 0 0 var(--button-border-width) var(--button-border-color);
  padding-block: var(--button-padding-block);
  padding-inline: var(--button-padding-inline);
}

.button {
  font-family: var(--button-font-family-primary);
  font-weight: var(--button-font-weight-primary);
  text-transform: var(--button-text-case-primary);
  border-radius: var(--style-border-radius-buttons-primary);
}

.button:not(.button-secondary, .button-unstyled) {
  outline-color: var(--button-background-color);
}

.button-secondary {
  font-family: var(--button-font-family-secondary);
  font-weight: var(--button-font-weight-secondary);
  text-transform: var(--button-text-case-secondary);
  border-radius: var(--style-border-radius-buttons-secondary);
}

button.shopify-payment-button__button--unbranded {
  font-family: var(--button-font-family-primary);
  font-weight: var(--button-font-weight-primary);
  text-transform: var(--button-text-case-primary);
}

textarea,
input {
  background-color: var(--color-input-background);
  border-color: var(--color-input-border);
}

textarea::placeholder,
input::placeholder {
  color: var(--color-input-text);
}

textarea:not(:placeholder-shown)::placeholder,
input:not(:placeholder-shown)::placeholder {
  opacity: 0;
}

/* The declaration above is messing with buttons that have an attribute of hidden as it overwrites the display value */
.button[hidden] {
  display: none;
}

.button[aria-disabled='true'],
.button-secondary[aria-disabled='true'],
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button,
button.shopify-payment-button__button--unbranded {
  --button-color: var(--color-primary-button-text);
  --button-background-color: var(--color-primary-button-background);
  --button-border-color: var(--color-primary-button-border);
  --button-border-width: var(--style-border-width-primary);
}

.button:hover,
button.shopify-payment-button__button--unbranded:hover:not([disabled]) {
  --button-color: var(--color-primary-button-hover-text);
  --button-background-color: var(--color-primary-button-hover-background);
  --button-border-color: var(--color-primary-button-hover-border);
}

.button-secondary {
  --button-color: var(--color-secondary-button-text);
  --button-background-color: var(--color-secondary-button-background);
  --button-border-color: var(--color-secondary-button-border);
  --button-border-width: var(--style-border-width-secondary);
}

.button-secondary:hover {
  --button-color: var(--color-secondary-button-hover-text);
  --button-background-color: var(--color-secondary-button-hover-background);
  --button-border-color: var(--color-secondary-button-hover-border);
}

/* Needed to override the default Shopify styles */
button.shopify-payment-button__button--unbranded:hover:not([disabled]) {
  background-color: var(--button-background-color);
}

.button-unstyled {
  display: block;
  padding: 0;
  background-color: inherit;
  color: inherit;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  font-family: var(--font-paragraph--family);
  font-style: var(--font-paragraph--style);
  font-size: var(--font-paragraph--size);
}

.button-unstyled:hover {
  background-color: inherit;
}

.button-unstyled--with-icon {
  color: var(--color-foreground);
  display: flex;
  gap: var(--gap-2xs);
  align-items: center;
}

.button-unstyled--transparent {
  background-color: transparent;
  box-shadow: none;
}

/* Show more */

.show-more__button {
  color: var(--color-primary);
  cursor: pointer;
}

.show-more__button:hover {
  @media screen and (min-width: 750px) {
    color: var(--color-primary-hover);
  }
}

.show-more__label {
  text-align: start;
  font-size: var(--font-size--body-md);
  font-family: var(--font-paragraph--family);
}

.show-more__button .svg-wrapper {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
}

.show-more[data-expanded='true'] .show-more__label--more,
.show-more[data-expanded='false'] .show-more__label--less {
  display: none;
}

.link {
  display: inline-block;
  text-align: center;
}

shopify-accelerated-checkout,
shopify-accelerated-checkout-cart {
  --shopify-accelerated-checkout-button-border-radius: var(--style-border-radius-buttons-primary);
  --shopify-accelerated-checkout-button-block-size: var(--height-buy-buttons);
}

.product-form-buttons:has(.add-to-cart-button.button-secondary)
  :is(shopify-accelerated-checkout, shopify-accelerated-checkout-cart) {
  --shopify-accelerated-checkout-button-border-radius: var(--style-border-radius-buttons-secondary);
  --shopify-accelerated-checkout-button-block-size: var(--height-buy-buttons);
}

/* Collapsible row */

.icon-caret svg {
  transition: transform var(--animation-speed) var(--animation-easing);
}

.icon-caret--forward svg {
  transform: rotate(-90deg);
}

.icon-caret--backward svg {
  transform: rotate(90deg);
}

summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding-block: var(--padding-sm);
}

summary:hover {
  color: var(--color-primary-hover);
}

summary .svg-wrapper {
  margin-inline-start: auto;
  height: var(--icon-size-xs);
  width: var(--icon-size-xs);
  transition: transform var(--animation-speed) var(--animation-easing);
}

/* Shared plus/minus icon animations */
summary .icon-plus :is(.horizontal, .vertical),
.show-more__button .icon-plus :is(.horizontal, .vertical) {
  transition: transform var(--animation-speed) var(--animation-easing);
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  opacity: 1;
}

details[open] > summary .icon-plus .horizontal,
.details-open > summary .icon-plus .horizontal,
.show-more:where([data-expanded='true']) .show-more__button .icon-plus .horizontal {
  transform: rotate(90deg);
}

details[open] > summary .icon-plus .vertical,
.details-open > summary .icon-plus .vertical,
.show-more:where([data-expanded='true']) .show-more__button .icon-plus .vertical {
  transform: rotate(90deg);
  opacity: 0;
}

/* Product Media */
media-gallery {
  display: block;
  width: 100%;
}

:where(media-gallery, .product-grid__item) {
  .media-gallery__grid {
    grid-template-columns: 1fr;
    gap: var(--image-gap);
  }
}

.product-media-gallery__slideshow--single-media slideshow-container {
  @media screen and (max-width: 749px) {
    grid-area: unset;
  }
}

:not(.dialog-zoomed-gallery) > .product-media-container {
  /* width and overflow forces children to shrink to parent width */
  --slide-width: round(up, 100%, 1px);

  display: flex;
  aspect-ratio: var(--gallery-aspect-ratio, var(--media-preview-ratio));
  max-height: var(--constrained-height);
  width: 100%;

  /* Relative position needed for video and 3d models */
  position: relative;
  overflow: hidden;

  &:where(.constrain-height) {
    /* arbitrary offset value based on average theme spacing and header height */
    --viewport-offset: 400px;
    --constrained-min-height: 300px;
    --constrained-height: max(var(--constrained-min-height), calc(100vh - var(--viewport-offset)));

    margin-right: auto;
    margin-left: auto;
  }
}

media-gallery:where(.media-gallery--grid) .media-gallery__grid {
  display: none;
}

media-gallery.media-gallery--grid .media-gallery__grid .product-media-container {
  /* Needed for safari to stretch to full grid height */
  height: 100%;
}

.product-media :is(deferred-media, product-model) {
  position: absolute;
}

@media screen and (max-width: 749px) {
  .product-media-container.constrain-height {
    max-height: none;
  }
}

@media screen and (min-width: 750px) {
  .product-media-container.constrain-height {
    --viewport-offset: var(--header-height, 100px);
    --constrained-min-height: 500px;
  }

  .media-gallery--two-column .media-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-gallery--large-first-image .product-media-container:first-child,
  .media-gallery--two-column .product-media-container:only-child {
    /* First child spans 2 columns */
    grid-column: span 2;
  }

  /* Display grid view as a carousel on mobile, grid on desktop */
  media-gallery:is(.media-gallery--grid) slideshow-component {
    display: none;
  }

  media-gallery:where(.media-gallery--grid) .media-gallery__grid {
    display: grid;
  }
}

.product-media-container--model {
  /* Usefull when view in your space is shown */
  flex-direction: column;
}

.shopify-model-viewer-ui__controls-area {
  bottom: calc(var(--minimum-touch-target) + var(--padding-sm));
}

.product-media-container img {
  aspect-ratio: inherit;
  object-fit: contain;
  object-position: center center;
}

.product-media-container.media-fit {
  --product-media-fit: cover;

  img {
    object-fit: var(--product-media-fit);
  }
}

/* Media gallery zoom dialog */
.product-media-container__zoom-button {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: var(--layer-flat);
  cursor: zoom-in;
  background-color: transparent;

  &:hover {
    background-color: transparent;
  }
}

zoom-dialog dialog {
  width: 100vw;
  height: 100vh;
  border: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  background: white;
  opacity: 0;
  transition: opacity var(--animation-speed) var(--animation-easing);
  scrollbar-width: none;

  &[open] {
    opacity: 1;
  }

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }

  &::backdrop {
    background: transparent;
  }
}

/* Animate the UI elements in only after the view transition is complete */
.close-button {
  position: fixed;
  top: var(--margin-lg);
  right: var(--margin-lg);
  width: var(--minimum-touch-target);
  height: var(--minimum-touch-target);
  z-index: var(--layer-flat);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;

  /* For the outline radius */
  border-radius: 50%;
}

/* This triggers iOS < 16.4. The outline bug is not recognized as a lack of @supports */

@supports not (background-color: rgb(from red 150 g b / alpha)) {
  /**
    There is a bug in safari < 16.4 that causes the outline to not follow the elements border radius. This is a workaround.
    Using element selector to increase specificity.
  **/

  .close-button:focus-visible {
    outline: none;
    overflow: visible;
  }

  .close-button:focus-visible::after {
    content: '';
    position: absolute;
    inset: calc(-1 * var(--focus-outline-offset));
    border: var(--focus-outline-width) solid currentColor;
    border-radius: 50%;
    display: inherit;
  }
}

.dialog--closed .close-button {
  animation: elementSlideOutBottom calc(var(--animation-speed) * 0.5) var(--animation-easing) forwards;
}

.dialog-thumbnails-list-container {
  position: fixed;
  width: 100%;
  bottom: 0;
  display: flex;
  z-index: var(--layer-raised);
}

.dialog-thumbnails-list {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  bottom: 0;
  overflow-x: auto;
  opacity: 0;
  padding: var(--padding-lg);
  margin-inline: auto;
  scrollbar-width: none;
  animation: thumbnailsSlideInBottom calc(var(--animation-speed) * 0.75) var(--animation-easing) forwards;
  animation-delay: calc(var(--animation-speed) * 1.5);
}

.dialog--closed .dialog-thumbnails-list {
  animation: thumbnailsSlideOutBottom var(--animation-speed) var(--animation-easing) forwards;
}

@media screen and (min-width: 750px) {
  .dialog-thumbnails-list {
    position: fixed;
    flex-direction: column;
    inset: 50% var(--margin-lg) auto auto;
    right: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    animation: thumbnailsSlideInTop calc(var(--animation-speed) * 0.5) var(--animation-easing) forwards;
    animation-delay: calc(var(--animation-speed) * 2);
  }

  .dialog--closed .dialog-thumbnails-list {
    animation: thumbnailsSlideOutTop var(--animation-speed) var(--animation-easing) forwards;
  }
}

.dialog-thumbnails-list__thumbnail {
  width: var(--thumbnail-width);
  height: auto;
  transition: transform var(--animation-speed) var(--animation-easing);
  flex-shrink: 0;
  border-radius: var(--media-radius);

  img {
    height: 100%;
    object-fit: cover;
    border-radius: var(--media-radius);
    aspect-ratio: var(--aspect-ratio);
  }

  &:is([aria-selected='true']) {
    outline: var(--focus-outline-width) solid currentcolor;
    outline-offset: calc(var(--focus-outline-offset) / 2);
    border: var(--style-border-width) solid rgb(var(--color-border-rgb) / var(--media-border-opacity));
  }
}

.close-button:hover {
  background-color: transparent;
  opacity: 0.8;
}

.close-button svg {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
}

/* Product media */
.product-media {
  display: flex;
  flex: 1;
}

/* If the product media is already providing an image cover, hide images provided by sibling deferred-media */
.product-media__image ~ * .deferred-media__poster-image {
  display: none;
}

/* If the product media is playing, hide the preview image */
.product-media-container:has(.deferred-media__playing) .product-media__image {
  opacity: 0;
  transition: opacity var(--animation-speed) var(--animation-easing);
}

/* Deferred media & Product model  */
:is(product-model, deferred-media) {
  /* Height needed to make sure when it's set to be stretched, it takes the full height */
  height: 100%;
  width: 100%;
  position: relative;
}

product-model model-viewer,
/* Media that have a poster button sibling providing the size should be absolute-positioned.
Otherwise, it should be a block to rely on its own size */
:is(deferred-media, product-model) > .deferred-media__poster-button ~ *:not(template) {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  /* Required to make sure the absolute position respects the padding of the wrapper: */
  padding: inherit;
}

slideshow-slide .shopify-model-viewer-ui__controls-area.shopify-model-viewer-ui__controls-area {
  bottom: var(--padding-sm);
  right: var(--padding-sm);
}

.dialog-zoomed-gallery .shopify-model-viewer-ui__controls-area.shopify-model-viewer-ui__controls-area {
  /* Move the controls above the thumbnails. Need to calculate the height of the thumbnails list */
  bottom: calc(var(--thumbnail-width) / calc(var(--media-preview-ratio)) + var(--padding-lg) * 2);
  right: var(--padding-lg);
}

@media screen and (max-width: 749px) {
  slideshow-component:has(:not(.mobile\:hidden) :is(.slideshow-controls__dots, .slideshow-controls__counter))
    .shopify-model-viewer-ui__controls-area {
    /* Position the controls just above the counter */
    bottom: calc(var(--minimum-touch-target) + var(--padding-sm));
  }
}

@media screen and (min-width: 750px) {
  slideshow-component:has(:not(.desktop\:hidden) :is(.slideshow-controls__dots, .slideshow-controls__counter))
    .shopify-model-viewer-ui__controls-area {
    /* Position the controls just above the counter */
    bottom: calc(var(--minimum-touch-target) + var(--padding-sm));
  }

  .dialog-zoomed-gallery .shopify-model-viewer-ui__controls-area.shopify-model-viewer-ui__controls-area {
    /* Move the controls up to match the padding on the thumbnails */
    bottom: var(--padding-lg);

    /* Move the controls to the left of the thumbnails list on the right */
    right: calc(var(--thumbnail-width) + var(--padding-lg) * 2);
  }
}

:is(deferred-media, .video-placeholder-wrapper).border-style {
  /* Apply the border radius to the video */
  overflow: hidden;
}

deferred-media {
  /* The overflow hidden in the deferred-media won't let the button show the focus ring */
  &:has(:focus-visible) {
    outline: var(--focus-outline-width) solid currentcolor;
    outline-offset: var(--focus-outline-offset);
  }

  @supports not selector(:focus-visible) {
    &:has(:focus) {
      outline: var(--focus-outline-width) solid currentcolor;
      outline-offset: var(--focus-outline-offset);
    }
  }
}

.deferred-media__poster-button {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--video-aspect-ratio, auto);
}

.deferred-media__poster-button.deferred-media__playing {
  opacity: 0;
  transition: opacity 0.3s ease;
}

deferred-media img {
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

deferred-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  aspect-ratio: var(--size-style-aspect-ratio, auto);
}

deferred-media[data-media-loaded] img {
  opacity: 0;
}

.deferred-media__poster-icon,
.video-placeholder-wrapper__poster-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deferred-media__poster-icon svg,
.video-placeholder-wrapper__poster-icon svg {
  width: var(--button-size);
  height: var(--button-size);
  color: var(--color-white);
  filter: drop-shadow(var(--shadow-button));

  &:hover {
    color: rgb(var(--color-white-rgb) / var(--opacity-80));
  }

  @media screen and (min-width: 750px) {
    width: 4rem;
    height: 4rem;
  }
}

deferred-media[class] :is(.deferred-media__poster-button img, .deferred-media__poster-button ~ video) {
  /* only apply this on the video block not product media */
  object-fit: cover;
  height: 100%;
  aspect-ratio: var(--size-style-aspect-ratio, auto);
}

.button-shopify-xr {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--padding-md);
}

.button-shopify-xr > svg {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  fill: currentcolor;
  margin-inline-end: var(--margin-md);
}

.button-shopify-xr[data-shopify-xr-hidden] {
  display: none;
}

/* Swatches */
.swatch {
  --color-border: rgb(var(--color-foreground-rgb) / var(--style-border-swatch-opacity));
  --min-width-unitless: 15.9999; /* want to avoid division by 0 */
  --min-height-unitless: 15.9999; /* want to avoid division by 0 */
  --min-height: 16px;
  --min-width: 16px;

  /* mobile values */
  --scaling-factor: 0.5;
  --max-swatch-size: 28px;
  --max-pill-size: 20px;
  --max-filter-size: 32px;

  /* From the settings */
  --offset-swatch-width: calc(var(--variant-picker-swatch-width-unitless) - var(--min-width-unitless));
  --offset-swatch-height: calc(var(--variant-picker-swatch-height-unitless) - var(--min-height-unitless));

  /**
    Offset values are obtained from the following formulas:
      offset-width = width - min-width
      offset-height = height - min-height

    The offset-scaled-width and heigth are obtained by extending the line from
    [min,min] to [W,H] and taking the intersection with a square that starts at
    [min,min] and ends at [max,max].

    The extending line forms right angle triangles with the [min,min]->[max,max]
    box that enable us to derive the following formulas

    We also want the result to always be smaller than the input (pdp > everywhere else)
    by some scaling factor.
  */
  --offset-scaled-width: calc(
    var(--scaling-factor) * var(--offset-swatch-width) / var(--offset-swatch-height) * var(--offset-max-swatch-size)
  );
  --offset-scaled-height: calc(
    var(--scaling-factor) * var(--offset-swatch-height) / var(--offset-swatch-width) * var(--offset-max-swatch-size)
  );
  --offset-max-swatch-size: calc(var(--max-swatch-size) - var(--min-width));

  /* width = min(m + sU, (m + s * W'/H' * M'), M) */
  --swatch-width: min(
    calc(var(--min-width) + calc(var(--scaling-factor) * var(--offset-swatch-width) * 1px)),
    calc(var(--min-width) + var(--offset-scaled-width)),
    var(--max-swatch-size)
  );

  /* height = min(m + sV, (m + s * H'/W' * M'), M) */
  --swatch-height: min(
    calc(var(--min-height) + calc(var(--scaling-factor) * var(--offset-swatch-height) * 1px)),
    calc(var(--min-height) + var(--offset-scaled-height)),
    var(--max-swatch-size)
  );

  display: block;
  background: var(--swatch-background);
  background-position: var(--swatch-focal-point, center);
  border-radius: var(--variant-picker-swatch-radius);
  border: var(--style-border-swatch-width) var(--style-border-swatch-style) var(--color-border);
  width: var(--swatch-width);
  height: var(--swatch-height);

  /* This is different than `background-size: cover` because we use `box-sizing: border-box`,
   * doing it like makes the background clip under the border without repeating.
   */
  background-size: var(--swatch-width) var(--swatch-height);

  &.swatch--unavailable {
    border-style: dashed;
  }

  &.swatch--unscaled {
    /* for when you want fixed sizing (e.g. pdp) */
    --swatch-width: var(--variant-picker-swatch-width);
    --swatch-height: var(--variant-picker-swatch-height);
  }

  &.swatch--filter {
    --swatch-width: var(--max-filter-size);
    --swatch-height: var(--max-filter-size);

    border-radius: var(--variant-picker-swatch-radius);
  }

  &.swatch--pill {
    --swatch-width: var(--max-pill-size);
    --swatch-height: var(--max-pill-size);

    border-radius: var(--variant-picker-swatch-radius);
  }

  /* swatches in filters and pills always have a border  */
  &.swatch--filter,
  &.swatch--pill {
    --style-border-swatch-width: var(--variant-picker-border-width);
    --style-border-swatch-style: var(--variant-picker-border-style);
    --color-border: rgb(var(--color-foreground-rgb) / var(--variant-picker-border-opacity));
  }

  @media screen and (min-width: 750px) {
    /* desktop values */
    --max-swatch-size: 32px;
    --max-pill-size: 16px;
    --max-filter-size: 28px;
    --scaling-factor: 0.65;
  }
}

.variant-picker .variant-option--buttons label:has(.swatch) {
  border-radius: var(--variant-picker-swatch-radius);
}

.sticky-content {
  position: sticky;
  top: var(--sticky-header-offset, 0);
  z-index: var(--layer-flat);
}

@media screen and (min-width: 750px) {
  .sticky-content--desktop,
  .sticky-content--desktop.full-height--desktop > .group-block {
    position: sticky;
    top: var(--sticky-header-offset, 0);
    z-index: var(--layer-flat);
  }
}

.price,
.compare-at-price,
.unit-price {
  white-space: nowrap;
}

.unit-price {
  display: block;
  font-size: 0.85em;
  color: rgb(var(--color-foreground-rgb) / var(--opacity-subdued-text));
}

.compare-at-price {
  opacity: 0.4;
  text-decoration-line: line-through;
  text-decoration-thickness: 1.5px;
}

.tax-note,
.unit-price {
  color: rgb(var(--color-foreground-rgb) / var(--opacity-subdued-text));
}

.card-gallery {
  position: relative;
}

@media screen and (min-width: 750px) {
  product-card:focus-within .quick-add__button,
  .card-gallery:hover .quick-add__button {
    display: grid;
    will-change: margin, opacity;
    animation: elementSlideInTop var(--animation-speed) var(--animation-easing);
  }
}

@container (max-width: 70px) {
  .card-gallery:hover .quick-add__button {
    display: none;
  }
}

/* Drawer */
.drawer {
  background-color: var(--color-background);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: var(--layer-raised);
  transform: translateX(-120%);
  transition: transform var(--animation-speed) var(--animation-easing);
}

.drawer[data-open='true'] {
  transform: translateX(0);
}

.drawer-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--drawer-header-block-padding) var(--drawer-inline-padding);
}

.drawer__title {
  font-size: var(--font-h2--size);
  margin: 0;
}

.drawer__close {
  width: var(--minimum-touch-target);
  height: var(--minimum-touch-target);
}

.drawer__content {
  display: block;
  padding: var(--drawer-content-block-padding) var(--drawer-inline-padding);
  width: 100%;
}

/* Background overlay */
.background-overlay {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-overlay-color, rgb(0 0 0 / 15%));
  }
}

/* Spacing style */
.spacing-style {
  --spacing-scale: var(--spacing-scale-md);

  @media screen and (min-width: 990px) {
    --spacing-scale: var(--spacing-scale-default);
  }

  /* Must disable this, when you use these with calc and another unit type, things break — see logo.liquid */
  /* stylelint-disable length-zero-no-unit */
  --padding-block: 0px;
  --padding-block-start: var(--padding-block, 0px);
  --padding-block-end: var(--padding-block, 0px);
  --padding-inline: 0px;
  --padding-inline-start: var(--padding-inline, 0px);
  --padding-inline-end: var(--padding-inline, 0px);
  --margin-block: 0px;
  --margin-block-start: var(--margin-block, 0px);
  --margin-block-end: var(--margin-block, 0px);
  --margin-inline: 0px;
  --margin-inline-start: var(--margin-inline, 0px);
  --margin-inline-end: var(--margin-inline, 0px);
}

.spacing-style,
.inherit-spacing {
  padding-block: calc(var(--padding-block-start) + var(--section-top-offset, 0px)) var(--padding-block-end);
  padding-inline: var(--padding-inline-start) var(--padding-inline-end);
  margin-block: var(--margin-block-start) var(--margin-block-end);
  margin-inline: var(--margin-inline-start) var(--margin-inline-end);
}

/* Size style */
.size-style {
  width: var(--size-style-width-mobile, var(--size-style-width));
  height: var(--size-style-height-mobile, var(--size-style-height));

  @media screen and (min-width: 750px) {
    width: var(--size-style-width);
    height: var(--size-style-height);
  }
}

/* Custom Typography style */
.custom-typography,
.custom-typography > * {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  text-transform: var(--text-transform);
  text-wrap: var(--text-wrap);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
}

.custom-typography {
  h1 {
    line-height: var(--line-height--display, var(--line-height));
  }

  h2,
  h3,
  h4 {
    line-height: var(--line-height--heading, var(--line-height));
  }

  p {
    line-height: var(--line-height--body, var(--line-height));
  }
}

.custom-font-size,
.custom-font-size > * {
  font-size: var(--font-size);
}

.custom-font-weight,
.custom-font-weight > * {
  font-weight: var(--weight);
}

/* Border override style */
.border-style {
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  border-radius: var(--border-radius);
}

/* Gap scaling style */
.gap-style,
.layout-panel-flex {
  --gap-scale: var(--spacing-scale-md);

  @media screen and (min-width: 990px) {
    --gap-scale: var(--spacing-scale-default);
  }
}

.layout-panel-flex {
  display: flex;
  gap: var(--gap);
  height: 100%;
}

.layout-panel-flex--row {
  flex-flow: row var(--flex-wrap);
  justify-content: var(--horizontal-alignment);
  align-items: var(--vertical-alignment);
}

.layout-panel-flex--column {
  flex-flow: column var(--flex-wrap);
  align-items: var(--horizontal-alignment);
  justify-content: var(--vertical-alignment);
}

@media screen and (max-width: 749px) {
  .mobile-column {
    flex-flow: column nowrap;
    align-items: var(--horizontal-alignment);
    justify-content: var(--vertical-alignment-mobile);
  }

  .layout-panel-flex--row:not(.mobile-column) {
    .text-block {
      flex: 1 1 var(--max-width--display-tight);
    }

    .image-block {
      flex: 1 1 var(--size-style-width-mobile-min);
    }

    .button {
      flex: 0 0 fit-content;
    }
  }
}

@media (min-width: 750px) {
  .layout-panel-flex {
    flex-direction: var(--flex-direction);
  }
}

/* Form fields */
.field {
  position: relative;
  width: 100%;
  display: flex;
  transition: box-shadow var(--animation-speed) ease;
}

.field__input {
  flex-grow: 1;
  text-align: left;
  border-radius: var(--style-border-radius-inputs);
  transition: box-shadow var(--animation-speed) ease, background-color var(--animation-speed) ease;
  padding: var(--input-padding);
  box-shadow: var(--input-box-shadow);
  background-color: var(--color-input-background);
  color: var(--color-input-text);
  border: none;
  outline: none;

  &:autofill {
    background-color: var(--color-input-background);
    color: var(--color-input-text);
  }
}

.field__input:is(:focus, :hover) {
  box-shadow: var(--input-box-shadow-focus);
  background-color: var(--color-input-hover-background);
}

.field__input--button-radius {
  border-radius: var(--style-border-radius-buttons-primary);
}

.field__input--button-padding {
  padding-inline: var(--padding-3xl);
}

.field__label {
  color: rgb(var(--color-input-text-rgb) / var(--opacity-80));
  font-size: var(--font-paragraph--size);
  left: var(--input-padding-x);
  top: 50%;
  transform: translateY(-50%);
  margin-bottom: 0;
  pointer-events: none;
  position: absolute;
  transition: top var(--animation-speed) ease, font-size var(--animation-speed) ease;
}

/* RTE styles */
.rte,
.shopify-policy__title {
  :is(h1, h2, h3, h4, h5, h6) {
    margin-block: clamp(1.5rem, 1em * 3.3, 2.5rem) clamp(1rem, 1em * 0.25, 2rem);
  }

  :first-child:is(p, h1, h2, h3, h4, h5, h6),
  :first-child:empty + :is(p, h1, h2, h3, h4, h5, h6) {
    margin-block-start: 0;
  }

  ul,
  ol {
    margin-block-start: 0;
    padding-inline-start: 1.5em;
  }

  /* Only apply margin-block-end to the higher level list, not nested lists */
  :is(ul, ol):not(:is(ul, ol) :is(ul, ol)) {
    margin-block-end: 1em;
  }

  blockquote {
    margin-inline: 1.5em 2.3em;
    margin-block: 3.8em;
    padding-inline-start: 0.8em;
    border-inline-start: 1.5px solid rgb(var(--color-foreground-rgb) / var(--opacity-25));
    font-style: italic;
    font-weight: 500;
  }

  .rte-table-wrapper {
    overflow-x: auto;
  }

  table {
    /* stylelint-disable-next-line declaration-no-important */
    width: 100% !important;
    border-collapse: collapse;
  }

  tr:not(:has(td)),
  thead {
    background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5));
    font-weight: bold;
    text-transform: uppercase;
  }

  tr:has(td) {
    border-bottom: 1px solid rgb(var(--color-foreground-rgb) / var(--opacity-10));
  }

  th,
  td {
    text-align: start;
    padding-inline: var(--padding-md);
    padding-block: var(--padding-sm);
  }
}

.shopify-policy__container {
  padding-block: var(--padding-xl);
}

.checkbox {
  --checkbox-size: 22px;
  --checkbox-top: 50%;
  --checkbox-left: 1.5px;
  --checkbox-offset: 3px;
  --checkbox-border-radius: 7px;
  --checkbox-label-padding: 8px;
  --checkbox-path-opacity: 0;
  --checkbox-cursor: pointer;
  --checkbox-border: 1px solid rgb(var(--color-foreground-rgb) / var(--opacity-35-55));

  position: relative;
  display: flex;
  align-items: center;

  @media screen and (min-width: 750px) {
    --checkbox-size: 16px;
    --checkbox-border-radius: 5px;
    --checkbox-label-padding: 6px;
  }

  &:has(.checkbox__input:checked) {
    --checkbox-path-opacity: 1;
  }

  &:has(.checkbox__input:disabled) {
    --checkbox-cursor: not-allowed;
  }
}

.checkbox__input {
  position: absolute;
  opacity: 0;
  margin: 0;
  width: var(--checkbox-size);
  height: var(--checkbox-size);

  /* Outline is on the SVG instead, to allow it to have border-radius */
  &:focus-visible {
    outline: none;
  }

  &:focus-visible + .checkbox__label .icon-checkmark {
    outline: var(--focus-outline-width) solid currentcolor;
    outline-offset: var(--focus-outline-offset);
  }

  &:checked + .checkbox__label .icon-checkmark {
    background-color: var(--color-foreground);
    border-color: var(--color-foreground);
  }

  &:disabled + .checkbox__label .icon-checkmark {
    background-color: var(--input-disabled-background-color);
    border-color: var(--input-disabled-border-color);
  }
}

.checkbox__label {
  position: relative;
  display: inline-flex;
  cursor: var(--checkbox-cursor);
  line-height: var(--checkbox-size);
  min-width: var(--minimum-touch-target);
}

.checkbox .icon-checkmark {
  height: var(--checkbox-size);
  width: var(--checkbox-size);
  flex-shrink: 0;
  border: var(--checkbox-border);
  border-radius: var(--checkbox-border-radius);
  background-color: var(--color-background);
}

.checkbox__label-text {
  padding-inline-start: var(--checkbox-label-padding);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox .icon-checkmark path {
  stroke: var(--color-background);
  opacity: var(--checkbox-path-opacity);
  transition: opacity var(--animation-speed) var(--animation-easing);
}

.checkbox__input:disabled + .checkbox__label {
  color: var(--input-disabled-text-color);
}

/* Add to cart button */
.button[id^='BuyButtons-ProductSubmitButton-'] {
  position: relative;
  overflow: hidden;
}

/* Cart bubble */
.cart-bubble {
  --cart-padding: 0.2em;

  position: relative;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  border-width: 0;
  display: grid;
  line-height: normal;
  place-content: center;
  color: var(--color-primary-button-text);
  padding-inline: var(--cart-padding);
}

.cart-bubble__background {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary-button-background);
  border-radius: var(--style-border-radius-lg);
}

.cart-bubble__text {
  font-size: var(--font-size--2xs);
  z-index: var(--layer-flat);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quantity selector */
.quantity-selector {
  --quantity-selector-width: 124px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-input-text);
  background-color: var(--color-input-background);
  border: var(--style-border-width-inputs) solid var(--color-input-border);
  border-radius: var(--style-border-radius-inputs);
  flex: 1 1 var(--quantity-selector-width);
  align-self: stretch;
  transition: background-color var(--animation-speed) var(--animation-easing);

  &:hover {
    background-color: var(--color-input-hover-background);
  }
}

.product-form-buttons:has(.add-to-cart-button.button-secondary) .quantity-selector {
  border-radius: var(--style-border-radius-buttons-secondary);
}

.quantity-selector :is(.quantity-minus, .quantity-plus) {
  /* Unset button styles */
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: var(--minimum-touch-target);
  height: var(--minimum-touch-target);
  flex-shrink: 0;
  color: var(--color-input-text);
}

.quantity-selector .quantity-minus {
  border-start-start-radius: var(--style-border-radius-inputs);
  border-end-start-radius: var(--style-border-radius-inputs);
}

.quantity-selector .quantity-plus {
  border-start-end-radius: var(--style-border-radius-inputs);
  border-end-end-radius: var(--style-border-radius-inputs);
}

.product-details .quantity-selector {
  border-radius: var(--style-border-radius-buttons-primary);
}

.product-details .quantity-selector .quantity-minus {
  border-start-start-radius: var(--style-border-radius-buttons-primary);
  border-end-start-radius: var(--style-border-radius-buttons-primary);
}

.product-details .quantity-selector .quantity-plus {
  border-start-end-radius: var(--style-border-radius-buttons-primary);
  border-end-end-radius: var(--style-border-radius-buttons-primary);
}

.quantity-selector .svg-wrapper {
  transition: transform var(--animation-speed) var(--animation-easing);
}

.quantity-selector svg {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
}

:is(.quantity-minus, .quantity-plus):active .svg-wrapper {
  transform: scale(0.9);
}

.quantity-selector input[type='number'] {
  margin: 0;
  text-align: center;
  border: none;
  appearance: none;
  max-width: calc(var(--quantity-selector-width) - var(--minimum-touch-target) * 2);
  border-radius: var(--style-border-radius-buttons);
  color: var(--color-input-text);
  background-color: transparent;
}

/* Chrome, Safari, Edge, Opera */
.quantity-selector input[type='number']::-webkit-inner-spin-button,
.quantity-selector input[type='number']::-webkit-outer-spin-button {
  appearance: none;
}

/* Firefox */
.quantity-selector input[type='number'] {
  appearance: textfield;
}

/* Pills (used in facets and predictive search) */

.pills__pill {
  --pills-pill-background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5-15));

  color: var(--color-foreground);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-sm);
  min-width: 48px;
  padding: 6px 12px;
  border-radius: var(--style-border-radius-pills);
  cursor: pointer;
  background-color: var(--pills-pill-background-color);
  transition: background-color var(--animation-speed) var(--animation-easing);

  &:hover {
    --pills-pill-background-color: rgb(var(--color-foreground-rgb) / var(--opacity-10-25));
  }

  @media screen and (max-width: 749px) {
    padding: var(--padding-xs) var(--padding-md);
  }
}

.pills__pill > .svg-wrapper {
  --close-icon-opacity: 0.4;
  --icon-stroke-width: 1px;

  color: var(--color-foreground);
}

.pills__pill--swatch {
  @media screen and (max-width: 749px) {
    padding-inline-start: var(--padding-sm);
  }
}

.pills__pill--swatch .swatch {
  margin-right: -4px;
}

.pills__pill--desktop-small {
  @media screen and (min-width: 750px) {
    font-size: var(--font-size--xs);
  }
}

/* Fly to cart animation */
fly-to-cart {
  position: fixed;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  border-radius: 50%;
  z-index: calc(infinity);
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
  transition: opacity 0.3s ease;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--color-foreground);
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--scale, 1));
}

/* ------------------------------------------------------------------------------ */

/* ------------------------------------------------------------------------------ */

/* ------------------------------------------------------------------------------ */

/* Animation declarations - to be kept at the bottom of the file for ease of find */
@keyframes grow {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(var(--custom-transform-from, 100%));
  }

  to {
    transform: translateX(var(--custom-transform-to, 0));
  }
}

@keyframes slideInLeftViewTransition {
  from {
    transform: translateX(100px);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--custom-transform-to, -100%));
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideInTopViewTransition {
  from {
    transform: translateY(100px);
  }
}

@keyframes slideOutBottom {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideOutTop {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

@keyframes cartBubbleSlideIn {
  from {
    transform: translateY(-1em);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes elementSlideInTop {
  from {
    margin-top: var(--padding-sm);
    opacity: 0;
  }

  to {
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes elementSlideOutTop {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(var(--padding-sm));
    opacity: 0;
  }
}

@keyframes elementSlideInBottom {
  from {
    transform: translateY(calc(-1 * var(--padding-sm)));
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes elementSlideOutBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(calc(-1 * var(--padding-sm)));
    opacity: 0;
  }
}

@keyframes thumbnailsSlideInTop {
  from {
    transform: translateY(calc(-50% + var(--margin-lg)));
    opacity: 0;
  }

  to {
    transform: translateY(-50%);
    opacity: 1;
  }
}

@keyframes thumbnailsSlideOutTop {
  from {
    transform: translateY(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(calc(-50% + var(--margin-lg)));
    opacity: 0;
  }
}

@keyframes thumbnailsSlideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes thumbnailsSlideOutBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes search-element-slide-in-bottom {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes search-element-slide-out-bottom {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

@keyframes dialogZoom {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.95) translateY(1em);
  }
}

@keyframes thumbnail-selected {
  0%,
  100% {
    box-shadow: 0 0 0 2px transparent;
    scale: 0.9;
  }

  50% {
    box-shadow: 0 0 0 2px black;
    scale: 1;
  }
}

@keyframes backdropFilter {
  from {
    backdrop-filter: brightness(1);
  }

  to {
    backdrop-filter: brightness(0.75);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideInTop {
  from {
    transform: translateY(var(--padding-sm));
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideOutTop {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(var(--padding-sm));
    opacity: 0;
  }
}

.bubble {
  display: inline-flex;
  height: calc(var(--variant-picker-swatch-height) / 1.5);
  font-size: var(--font-size--xs);
  border-radius: 20px;
  min-width: 20px;
  padding: 0 6px;
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-10-25));
  color: var(--color-foreground);
  align-items: center;
  justify-content: center;
}

.bubble svg {
  width: 12px;
  height: 12px;
}

.top-shadow::before {
  content: '';
  box-shadow: 0 0 10px var(--color-shadow);
  position: absolute;
  z-index: var(--layer-lowest);
  inset: 0;
  clip-path: inset(-50px 0 0 0); /* stylelint-disable-line */
}

@media (min-width: 750px) {
  .top-shadow--mobile::before {
    display: none;
  }
}

.bottom-shadow::before {
  content: '';
  box-shadow: 0 0 10px var(--color-shadow);
  position: absolute;
  z-index: var(--layer-lowest);
  inset: 0;
  clip-path: inset(0 0 -50px 0); /* stylelint-disable-line */
}

@media (min-width: 750px) {
  .bottom-shadow--mobile::before {
    display: none;
  }
}

.video-placeholder-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--size-style-aspect-ratio, auto);
}

:not(deferred-media) > .video-placeholder-wrapper {
  width: var(--video-placeholder-width);
}

.video-placeholder-wrapper > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*
 * Slideshow Component
 */
slideshow-component {
  --cursor: grab;

  position: relative;
  display: flex;
  flex-direction: column;
  timeline-scope: var(--slideshow-timeline);
}

.slideshow--single-media {
  --cursor: default;
}

a slideshow-component {
  --cursor: pointer;
}

/*
 * Slideshow Slides
 */
slideshow-slides {
  width: 100%;
  position: relative;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: transparent transparent;
  scrollbar-width: none;
  gap: var(--slideshow-gap, 0);
  cursor: var(--cursor);

  @media (prefers-reduced-motion) {
    scroll-behavior: auto;
  }

  &::-webkit-scrollbar {
    width: 0;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
  }

  &[size='small'] {
    min-height: 17.5rem;
  }

  &[size='medium'] {
    min-height: 21.25rem;
  }

  &[size='large'] {
    min-height: 25rem;
  }

  @media screen and (min-width: 750px) {
    &[size='small'] {
      min-height: 26.25rem;
    }

    &[size='medium'] {
      min-height: 35rem;
    }

    &[size='large'] {
      min-height: 45rem;
    }
  }
}

slideshow-component[disabled='true'] slideshow-slides {
  overflow: hidden;
}

slideshow-component[mobile-disabled] slideshow-slides {
  @media screen and (max-width: 749px) {
    overflow: hidden;
  }
}

slideshow-slide {
  position: relative;
  scroll-snap-align: start;
  width: var(--slide-width, 100%);
  max-height: 100%;
  flex-shrink: 0;
  view-timeline-axis: inline;
  content-visibility: auto;
  contain-intrinsic-size: auto none;

  slideshow-component[actioned] &,
  &[aria-hidden='false'] {
    content-visibility: visible;
  }

  slideshow-component slideshow-slide:not([aria-hidden='false']) {
    content-visibility: hidden;
  }

  &[hidden]:not([reveal]) {
    display: none;
  }
}

slideshow-slide.product-media-container--tallest {
  content-visibility: visible;
}

@media screen and (max-width: 749px) {
  /* Media gallery has a peeking slide on the right side always, and on the left side when the current slide is the last one */
  .media-gallery--hint
    :is(
      slideshow-slide:has(+ slideshow-slide[aria-hidden='false']:last-of-type),
      slideshow-slide[aria-hidden='false'] + slideshow-slide
    ) {
    content-visibility: auto;

    slideshow-component[actioned] & {
      content-visibility: visible;
    }
  }
}

/*
 * Collection and Resource list carousels have peeking slides on both sides.
 * Card galleries preview the next or previous images on 'pointerenter', so we
 * try to kick load them beforehand (they are lazy loaded otherwise).
 */
:is(.resource-list__carousel, .card-gallery)
  :is(
    slideshow-slide:has(+ slideshow-slide[aria-hidden='false']),
    slideshow-slide[aria-hidden='false'] + slideshow-slide
  ) {
  content-visibility: auto;

  slideshow-component[actioned] & {
    content-visibility: visible;
  }
}

/*
 * Be specific about HTML children structure to avoid targeting nested slideshows.
 * Ensure that the content is 'visible' while scrolling instead of 'auto' to avoid issues in Safari.
 */
slideshow-component:is([dragging], [transitioning], :hover) > slideshow-container > slideshow-slides > slideshow-slide {
  content-visibility: visible;
}

slideshow-slides[gutters*='start'] {
  padding-inline-start: var(--gutter-slide-width, 0);
  scroll-padding-inline-start: var(--gutter-slide-width, 0);
}

slideshow-slides[gutters*='end'] {
  padding-inline-end: var(--gutter-slide-width, 0);
}

slideshow-component[dragging] {
  --cursor: grabbing;

  * {
    pointer-events: none;
  }
}

slideshow-component[dragging] slideshow-arrows {
  display: none;
}

slideshow-container {
  width: 100%;
  display: block;
  position: relative;
  grid-area: container;
  container-type: inline-size;
}

/*
 * Slideshow Controls
 */
slideshow-controls {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  scrollbar-width: none;
  min-height: var(--minimum-touch-target);
  grid-area: controls;

  &[controls-on-media] {
    position: absolute;
    bottom: 0;
  }
}

slideshow-controls::-webkit-scrollbar {
  display: none;
}

slideshow-controls button {
  --color: rgb(var(--color-foreground-rgb) / var(--opacity-30));
  --color-active: var(--color-foreground);
  --color-hover: rgb(var(--color-foreground-rgb) / var(--opacity-50));

  display: inline-block;
  height: var(--minimum-touch-target);
  width: var(--minimum-touch-target);
  cursor: pointer;
}

slideshow-controls .icon {
  width: var(--icon-size-sm);
  height: var(--icon-size-xs);
}

slideshow-controls[pagination-position='center'] {
  align-items: center;
  justify-content: center;
}

slideshow-controls[pagination-position='center'][thumbnails] {
  width: 100%;
}

slideshow-controls[pagination-position='center']:not([controls-on-media], [thumbnails], [icons-on-media]) {
  justify-content: space-between;
}

slideshow-component:has(slideshow-controls[thumbnails]) {
  &:has(slideshow-controls[pagination-position='right']) {
    display: grid;
    grid-template:
      'container controls' auto
      'arrows controls' min-content
      / 1fr auto;
  }

  &:has(slideshow-controls[pagination-position='left']) {
    display: grid;
    grid-template:
      'controls container' auto
      'controls arrows' min-content
      / auto 1fr;
  }

  slideshow-controls[pagination-position='left'] {
    order: -1;
  }
}

slideshow-controls[thumbnails]:is([pagination-position='right'], [pagination-position='left']) {
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 100%;

  .slideshow-controls__thumbnails-container {
    overflow: hidden auto;
  }

  &:not([controls-on-media]) {
    .slideshow-controls__thumbnails-container {
      position: sticky;
      top: var(--sticky-header-offset, 0);
    }

    .slideshow-controls__thumbnails {
      padding-block-start: var(--focus-outline-offset);
    }
  }
}

slideshow-controls:not([controls-on-media])[icons-on-media] {
  &[pagination-position='right'] {
    justify-content: flex-end;
  }

  &[pagination-position='left'] {
    justify-content: flex-start;
  }
}

slideshow-controls:not([controls-on-media]):is([pagination-position='left'], [pagination-position='right'])
  .slideshow-controls__thumbnails {
  padding-block: var(--padding-2xs);
}

slideshow-controls:not([controls-on-media]) {
  &:is([pagination-position='right']) {
    .slideshow-controls__thumbnails {
      padding-inline-end: var(--slideshow-thumbnails-padding-inline, var(--focus-outline-offset));
    }
  }

  &:is([pagination-position='left']) {
    .slideshow-controls__thumbnails {
      padding-inline-start: var(--slideshow-thumbnails-padding-inline, var(--focus-outline-offset));
    }
  }
}

slideshow-controls[controls-on-media] {
  z-index: var(--layer-raised);

  &:has(.slideshow-controls__dots, .slideshow-controls__counter) {
    --color-foreground: #fff;
    --color-foreground-rgb: var(--color-white-rgb);
  }

  &[pagination-position='right'] {
    right: 0;
  }

  &[pagination-position='left'] {
    left: 0;
  }

  &[pagination-position='center'] {
    width: 100%;
  }

  &:not([thumbnails])[pagination-position='left'] {
    width: fit-content;
    align-self: flex-start;
  }

  &:not([thumbnails])[pagination-position='right'] {
    width: fit-content;
    align-self: flex-end;
  }
}

slideshow-controls:is([pagination-position='right'], [pagination-position='left']) {
  .slideshow-controls__thumbnails {
    flex-direction: column;
  }
}

.slideshow-controls__arrows {
  display: flex;
  justify-content: space-between;
  height: var(--minimum-touch-target);
  grid-area: arrows;

  button {
    padding: 0 var(--padding-xs);
  }
}

.slideshow-controls__dots,
.slideshow-controls__counter {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  list-style: none;

  button {
    --color: rgb(var(--color-foreground-rgb) / var(--opacity-30));
    --color-active: var(--color-foreground);
    --color-hover: rgb(var(--color-foreground-rgb) / var(--opacity-50));
  }
}

slideshow-controls:has(.slideshow-controls__dots),
slideshow-component[autoplay] slideshow-controls {
  mix-blend-mode: difference;
}

.slideshow-controls__dots {
  gap: 0.6rem;
  padding: var(--padding-sm) var(--padding-lg);
  border-radius: 3rem;
  overflow: hidden;

  button {
    --size: 0.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--size) * 2);
    height: calc(var(--size) * 2);
    margin: calc(var(--size) / -2);
    font-size: 0;
    border-radius: calc(var(--size));

    &::after {
      content: '';
      display: block;
      background-color: var(--color);
      height: var(--size);
      width: var(--size);

      /* This is at --size / 2 to remove a visual regression on subpixel rendering displays */
      border-radius: calc(var(--size) / 2);

      @supports not (view-timeline-axis: inline) {
        &[aria-selected='true'] {
          --color: var(--color-active);
        }
      }

      &:hover {
        --color: var(--color-hover);
      }
    }

    &[aria-selected='true'] {
      --color: var(--color-active);
    }
  }
}

.slideshow-controls__dots,
.slideshow-controls__counter {
  &:only-child {
    margin-inline: auto;
  }
}

.slideshow-controls__counter {
  color: var(--color-foreground);
  background-color: rgb(0 0 0 / 40%);
  width: auto;
  border-radius: 2rem;
  padding: 0.3rem var(--padding-sm);
  margin-inline: var(--margin-sm);
  backdrop-filter: blur(10px);
  font-variant-numeric: tabular-nums;
  font-size: var(--font-size--xs);

  .slash {
    color: rgb(var(--color-foreground-rgb) / var(--opacity-40));
    padding-inline: var(--padding-2xs);
    margin-block-start: -0.1rem;
  }
}

.slideshow-control[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.slideshow-control--large {
  .icon-caret {
    --icon-stroke-width: 1px;
  }

  .icon-caret {
    --icon-stroke-width: 1px;
  }

  .svg-wrapper,
  svg {
    width: var(--slideshow-controls-icon);
    height: var(--slideshow-controls-icon);
  }
}

/* Slideshow control shape styles */
.button-unstyled.slideshow-control.slideshow-control--shape-square,
.button-unstyled.slideshow-control.slideshow-control--shape-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background-color: var(--color-primary-button-background);
  color: var(--color-primary-button-text);
}

.button-unstyled.slideshow-control.slideshow-control--shape-circle {
  border-radius: 50%;
}

.button-unstyled.slideshow-control.slideshow-control--shape-square {
  border-radius: 0;
}

.slideshow-control .icon-caret {
  rotate: -90deg;
}

/* Slideshow Thumbnails */
.slideshow-controls__thumbnails-container {
  display: flex;
  width: 100%;
  max-height: 100%;
  overflow-x: scroll;
  scrollbar-width: none;
}

.slideshow-controls__thumbnails {
  display: inline-flex;
  padding-inline: var(--slideshow-thumbnails-padding-inline, var(--padding-sm));
  padding-block: var(--slideshow-thumbnails-padding-block, var(--padding-sm));
  gap: var(--gap-xs);
  margin-inline: auto;
  height: fit-content;

  .slideshow-control {
    border-radius: var(--media-radius);
    width: clamp(44px, 7vw, var(--thumbnail-width));
    height: auto;
    aspect-ratio: var(--aspect-ratio);

    img {
      height: 100%;
      object-fit: cover;
      border-radius: var(--media-radius);
    }

    &:is([aria-selected='true']) {
      outline: var(--focus-outline-width) solid currentcolor;
      outline-offset: calc(var(--focus-outline-offset) / 2);
      border: var(--style-border-width) solid rgb(var(--color-border-rgb) / var(--media-border-opacity));
    }
  }
}

.slideshow-controls__thumbnail {
  position: relative;
}

.slideshow-controls__thumbnail-badge {
  position: absolute;
  top: var(--padding-2xs);
  right: var(--padding-2xs);
  width: clamp(16px, 10%, 20px);
  height: clamp(16px, 10%, 20px);
  background-color: var(--color-background);
  border-radius: var(--style-border-radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgb(var(--color-foreground-rgb) / var(--opacity-5));
}

.slideshow-controls__thumbnail-badge svg {
  width: 60%;
  height: 60%;
  fill: var(--color-foreground);
  opacity: 0.6;
}

/* Slideshow Play/Pause */
.slideshow-control:is(.icon-pause, .icon-play) {
  color: var(--color-active);

  &:hover {
    color: var(--color-hover);
  }

  svg {
    display: none;
  }
}

slideshow-component:is([autoplay]) {
  &:is([paused]) {
    .icon-play > svg {
      display: block;
    }
  }

  &:not([paused]) {
    .icon-pause > svg {
      display: block;
    }
  }
}

/* Slideshow Arrows */
slideshow-arrows {
  --cursor-previous: w-resize;
  --cursor-next: e-resize;

  position: absolute;
  inset: 0;
  display: flex;
  z-index: var(--layer-heightened);
  pointer-events: none;
  mix-blend-mode: difference;
  align-items: flex-end;

  &[position='left'] {
    justify-content: flex-start;
    padding-inline: var(--padding-xs);
  }

  &[position='right'] {
    justify-content: flex-end;
    padding-inline: var(--padding-xs);
  }

  &[position='center'] {
    justify-content: space-between;
    align-items: center;
  }
}

slideshow-arrows:has(.slideshow-control--shape-square),
slideshow-arrows:has(.slideshow-control--shape-circle) {
  mix-blend-mode: normal;
}

slideshow-component[disabled='true'] slideshow-arrows {
  display: none;
}

slideshow-arrows .slideshow-control {
  pointer-events: auto;
  opacity: 0;
  min-height: var(--minimum-touch-target);
  padding: 0 var(--padding-xs);
  color: var(--color-white);
}

slideshow-arrows .slideshow-control.slideshow-control--style-none {
  display: none;
}

.media-gallery--carousel slideshow-arrows .slideshow-control {
  padding-inline: 0 var(--padding-md);
}

.card-gallery slideshow-arrows .slideshow-control {
  /* Align icons with quick-add button */
  padding-inline: var(--padding-xl);

  @container (max-width: 249px) {
    padding-inline: 0 var(--padding-sm);
  }
}

.media-gallery--carousel slideshow-arrows .slideshow-control {
  opacity: 1;
}

:not(.media-gallery--carousel)
  > :is(slideshow-component:hover, slideshow-component:focus-within):not(:has(slideshow-controls:hover))
  > slideshow-container
  > slideshow-arrows
  .slideshow-control {
  animation: arrowsSlideIn var(--animation-speed) var(--animation-easing) forwards;
}

@keyframes arrowsSlideIn {
  from {
    transform: translate(var(--padding-sm), 0);
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.block-resource-list {
  display: flex;
  flex-direction: column;
  row-gap: var(--gap);
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
  container-name: resource-list;
}

.section-resource-list {
  row-gap: var(--gap);
}

.section-resource-list__content {
  display: flex;
  flex-direction: column;
  align-items: var(--horizontal-alignment);
  gap: var(--gap);
  width: 100%;
}

.section-resource-list__content:empty {
  display: none;
}

.section-resource-list__header:is(:empty, :has(.group-block-content:empty)),
.section-resource-list__content:empty {
  display: none;
}

.section-resource-list.section--full-width product-card-link > .group-block {
  @media screen and (max-width: 749px) {
    padding-inline: max(var(--padding-xs), var(--padding-inline-start))
      max(var(--padding-xs), var(--padding-inline-end));
  }
}

.resource-list--carousel-mobile {
  display: block;

  @media screen and (min-width: 750px) {
    display: none;
  }
}

.resource-list {
  --resource-list-mobile-gap-max: 9999px;
  --resource-list-column-gap: min(var(--resource-list-column-gap-desktop), var(--resource-list-mobile-gap-max));
  --resource-list-row-gap: min(var(--resource-list-row-gap-desktop), var(--resource-list-mobile-gap-max));

  width: 100%;

  @media screen and (max-width: 749px) {
    --resource-list-mobile-gap-max: 12px;
  }

  @container resource-list (max-width: 749px) {
    --resource-list-mobile-gap-max: 12px;
  }
}

.resource-list--grid {
  display: grid;
  gap: var(--resource-list-row-gap) var(--resource-list-column-gap);
  grid-template-columns: var(--resource-list-columns-mobile);

  @media screen and (min-width: 750px) {
    grid-template-columns: var(--resource-list-columns);
  }

  @container resource-list (max-width: 449px) {
    grid-template-columns: var(--resource-list-columns-mobile);
  }

  @container resource-list(min-width: 450px) and (max-width: 749px) {
    --resource-list-columns-per-row: 3;

    grid-template-columns: repeat(var(--resource-list-columns-per-row), 1fr);

    /* Avoid orphan in last row when there are 4, 7, or 10 items */
    &:has(.resource-list__item:first-child:nth-last-child(3n + 1)),
    /* Clean two full rows when there are 8 items */
    &:has(.resource-list__item:first-child:nth-last-child(8n)) {
      --resource-list-columns-per-row: 4;
    }
  }

  @container resource-list (min-width: 750px) {
    grid-template-columns: repeat(var(--resource-list-columns-per-row), 1fr);

    &:has(.resource-list__item:first-child:nth-last-child(n + 9)) {
      --resource-list-columns-per-row: 5;
    }

    &:has(.resource-list__item:first-child:nth-last-child(n + 7):nth-last-child(-n + 8)) {
      --resource-list-columns-per-row: 4;
    }

    &:has(.resource-list__item:first-child:nth-last-child(6)) {
      --resource-list-columns-per-row: 3;
    }

    &:has(.resource-list__item:first-child:nth-last-child(5)) {
      --resource-list-columns-per-row: 5;
    }

    &:has(.resource-list__item:first-child:nth-last-child(-n + 4)) {
      --resource-list-columns-per-row: 4;
    }
  }

  @container resource-list (min-width: 1200px) {
    &:has(.resource-list__item:first-child:nth-last-child(6)) {
      --resource-list-columns-per-row: 6;
    }
  }
}

.resource-list__item {
  height: 100%;
  color: var(--color-foreground);
  text-decoration: none;
}

.resource-list__carousel {
  --slide-width: 60vw;

  width: 100%;
  position: relative;
  container-type: inline-size;
  container-name: resource-list-carousel;

  .slideshow-control[disabled] {
    display: none;
  }

  .slideshow-control--next {
    margin-inline-start: auto;
  }
}

@container resource-list-carousel (max-width: 749px) {
  .resource-list__carousel .resource-list__slide {
    --slide-width: clamp(150px, var(--mobile-card-size, 60cqw), var(--slide-width-max));
  }
}

@container resource-list-carousel (min-width: 750px) {
  .resource-list__carousel .resource-list__slide {
    --section-slide-width: calc(
      (100% - (var(--resource-list-column-gap) * (var(--column-count) - 1)) - var(--peek-next-slide-size)) /
        var(--column-count)
    );
    --fallback-slide-width: clamp(150px, var(--mobile-card-size, 60cqw), var(--slide-width-max));
    --slide-width: var(--section-slide-width, var(--fallback-slide-width));
  }
}

.resource-list__carousel slideshow-slides {
  gap: var(--resource-list-column-gap);

  /* Add padding to prevent hover animations from being clipped in slideshow
     15px accommodates:
     - Scale effect (9px on each side from 1.03 scale)
     - Lift effect (4px upward movement)
     - Shadow (15px spread with -5px offset)
     Using 16px for better alignment with our spacing scale */

  margin-block: -16px;
  padding-block: 16px;
}

.resource-list__carousel slideshow-arrows {
  padding-inline: var(--util-page-margin-offset);
}

.resource-list__carousel .resource-list__slide {
  width: var(--slide-width);
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 0;
}

/* Base styles */
.group-block,
.group-block-content {
  position: relative;
}

.group-block:has(> video-background-component),
.group-block:has(> .background-image-container) {
  overflow: hidden;
}

.group-block-content {
  height: 100%;
  width: 100%;
}

/* Container styles */
.section-content-wrapper.section-content-wrapper:where(.layout-panel-flex) .group-block--fill {
  flex: 1;
}

/* Flex behavior for width variants */
.layout-panel-flex--row > .group-block--width-fit {
  flex: 0;
}

.layout-panel-flex--row > .group-block--width-fill {
  flex: 1;
}

.layout-panel-flex--row > .group-block--width-custom {
  flex-basis: var(--size-style-width);
}

/* Dimension utilities - Height */
.group-block--height-fit {
  height: auto;
}

.group-block--height-custom,
.group-block--height-fill {
  height: var(--size-style-height);
}

/* Flex behavior for height variants */
.layout-panel-flex--column > .group-block--height-fit {
  flex: 0 1 auto;
}

.layout-panel-flex--column > .group-block--height-fill {
  flex: 1;
}

.layout-panel-flex--column > .group-block--height-custom {
  flex-basis: var(--size-style-height);
}

.search-input {
  width: 100%;
  color: var(--color-foreground);
  padding-block: var(--padding-lg);
  padding-inline: calc(var(--margin-lg) + var(--icon-size-lg)) 0;
  background: transparent;
  text-overflow: ellipsis;
  overflow: hidden;
  outline: none;
  border: 0;

  &:focus-visible {
    outline: none;
  }
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: rgb(var(--color-foreground-rgb) / var(--opacity-subdued-text));
}

accordion-custom {
  details {
    &::details-content,
    .details-content {
      block-size: 0;
      overflow-y: clip;
      opacity: 0;
      interpolate-size: allow-keywords;
      transition: content-visibility var(--animation-speed-slow) allow-discrete,
        padding-block var(--animation-speed-slow) var(--animation-easing),
        opacity var(--animation-speed-slow) var(--animation-easing),
        block-size var(--animation-speed-slow) var(--animation-easing);
    }

    &:not([open]) {
      &::details-content,
      .details-content {
        padding-block: 0;
      }
    }

    &[open] {
      &::details-content,
      .details-content {
        opacity: 1;
        block-size: auto;

        @starting-style {
          block-size: 0;
          opacity: 0;
          overflow-y: clip;
        }

        &:focus-within {
          overflow-y: visible;
        }
      }
    }
  }
}

accordion-custom[data-disable-on-mobile='true'] summary {
  @media screen and (max-width: 749px) {
    cursor: auto;
  }
}

accordion-custom[data-disable-on-desktop='true'] summary {
  @media screen and (min-width: 750px) {
    cursor: auto;
  }
}

text-component {
  --shimmer-text-color: rgb(var(--color-foreground-rgb) / var(--opacity-50));
  --shimmer-color-light: rgb(var(--color-foreground-rgb) / var(--opacity-10));
  --shimmer-speed: 1.25s;

  display: inline-block;
  position: relative;
  transition: color var(--animation-speed-slow) ease;
  line-height: 1;

  &::after {
    content: attr(value);
    position: absolute;
    inset: 0;
    color: transparent;
    opacity: 0;
    transition: opacity var(--animation-speed-slow) var(--animation-easing);
    pointer-events: none;
    background-image: linear-gradient(
      -85deg,
      var(--shimmer-text-color) 10%,
      var(--shimmer-color-light) 50%,
      var(--shimmer-text-color) 90%
    );
    background-clip: text;
    background-size: 200% 100%;
    background-position: 100% 0;
    place-content: center;
  }

  &[shimmer] {
    color: transparent;

    &::after {
      opacity: 1;
      animation: text-shimmer var(--shimmer-speed) infinite linear;
    }
  }
}

@keyframes text-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Animation transitions */
.transition-background-color {
  transition: background-color var(--animation-speed-medium) ease-in-out;
}

.transition-transform {
  transition: transform var(--animation-speed-medium) var(--animation-timing-bounce);
}

.transition-border-color {
  transition: border-color var(--animation-speed-medium) var(--animation-timing-hover);
}

/* Global scrollbar styles */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-40));
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-60));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Product card title truncation - applied only to zoom-out view */
[product-grid-view='zoom-out'] :is(.product-card, .product-grid__card) :is(h4, .h4) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
}

/* Product card title truncation - applied on mobile regardless of view */
@media screen and (max-width: 749px) {
  :is(.product-card, .product-grid__card) :is(h4, .h4) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
  }
}

.product-card:hover,
.collection-card:hover,
.resource-card:hover,
.predictive-search-results__card--product:hover,
.predictive-search-results__card:hover {
  position: relative;
  z-index: var(--layer-raised);
  transition: transform var(--hover-transition-duration) var(--hover-transition-timing),
    box-shadow var(--hover-transition-duration) var(--hover-transition-timing);
}

.header .product-card:hover,
.header .collection-card:hover,
.header .resource-card:hover,
.header-drawer .product-card:hover,
.header-drawer .collection-card:hover,
.header-drawer .resource-card:hover {
  z-index: auto;
  transform: none;
  box-shadow: none;
}

/* Prevent iOS zoom on input focus by ensuring minimum 16px font size on mobile */
@media screen and (max-width: 1200px) {
  input,
  textarea,
  select,
  /* Higher specificity to override type preset classes like .paragraph, .h1, etc. */
  .paragraph.paragraph input,
  .paragraph.paragraph textarea,
  .paragraph.paragraph select,
  .h1.h1 input,
  .h1.h1 textarea,
  .h1.h1 select,
  .h2.h2 input,
  .h2.h2 textarea,
  .h2.h2 select,
  .h3.h3 input,
  .h3.h3 textarea,
  .h3.h3 select,
  .h4.h4 input,
  .h4.h4 textarea,
  .h4.h4 select,
  .h5.h5 input,
  .h5.h5 textarea,
  .h5.h5 select,
  .h6.h6 input,
  .h6.h6 textarea,
  .h6.h6 select {
    font-size: max(1rem, 100%);
  }
}
/* ==== LUNERA: Header layout (mobile) + clean menu icon ==== */
@media (max-width: 749px) {
  /* שלושה טורים: [תפריט] [לוגו] [אייקונים] */
  #header-group #header-component .header__columns {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
  }

  /* לוגו ממורכז */
  #header-group #header-component .header__heading,
  #header-group #header-component .header__heading-link {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  /* חשבון + עגלה בימין */
  #header-group #header-component .header__icons,
  #header-group #header-component .header__actions {
    grid-column: 3;
    justify-self: end;
    gap: 10px;
  }

  /* כפתור תפריט בשמאל (מיקום בגריד) */
  .lunera-menu-btn {
    grid-column: 1;
    justify-self: start;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; background: transparent !important; border: 0 !important;
    box-shadow: none !important; border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    font-size: 26px; line-height: 1;
  }
}

/* ☰ – ניקוי + אנימציית כניסה קצרה לכפתור עצמו */
.lunera-menu-btn {
  background: transparent; border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; font-size: 26px; line-height: 1;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: elementSlideInTop var(--animation-speed) var(--animation-easing) forwards;
  animation-delay: calc(var(--animation-speed) * 0.35);
}
.lunera-menu-btn:active { transform: translateY(1px); }

/* בטיחות: מבטל רקע/צל לשאר אייקוני ההאדר */
#header-group #header-component .header__icon,
#header-group #header-component .header__icon button {
  background: transparent; box-shadow: none;
}

/* Drawer תמיד מעל הכול */
.drawer { z-index: var(--layer-temporary, 99999); }

/* ==== LUNERA: Half Drawer — slide from left, overlay fades ==== */
:root{
  --lunera-menu-width: 50vw;                 /* שנה ל-60vw / min(420px,70vw) אם תרצה */
  --lunera-overlay-fade: 420ms;
  --lunera-overlay-ease: cubic-bezier(.22,.61,.36,1);
}

/* נסמך על ההתנהגות המקורית של .drawer: translateX משמאל → ימינה */
/* (ראה ההגדרה המקורית: .drawer { transform: translateX(-120%); } ואז [data-open='true'] { transform: translateX(0); }) */
.drawer.drawer--half{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--lunera-menu-width);
  z-index: 999999;                           /* מעל כולם, כולל ה-Hero */
  transition: transform 420ms var(--lunera-overlay-ease);  /* מאט את הסלייד */
}

/* חצי המסך הימני – אוברליי שמתפייד (לא "בבום") */
.drawer-overlay-half{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: var(--lunera-menu-width);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgb(0 0 0 / 0.25);
  transition: opacity var(--lunera-overlay-fade) var(--lunera-overlay-ease);
  z-index: 999998;                            /* בדיוק מתחת למגירה */
}

/* כשהמגירה פתוחה – האוברליי נכנס בפייד ותופס קליקים לסגירה */
.drawer[data-open='true'] + .drawer-overlay-half{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* ==== LUNERA: tune drawer width & speed ==== */

/* 1) רוחב התפריט: 65% מהמסך */
:root{
  --lunera-menu-width: 65vw;
}

/* 2) סלייד מהיר וחלק יותר לתפריט */
.drawer.drawer--half{
  transition: transform 240ms cubic-bezier(.22,.61,.36,1); /* היה ~420ms */
}

/* 3) פייד מהיר יותר לאוברליי (החצי האפרפר) */
.drawer-overlay-half{
  transition: opacity 140ms cubic-bezier(.22,.61,.36,1);   /* היה ~420ms */
}
/* ימנע חיתוך ליד הנוץ' ויתן גובה אמיתי */
.drawer.drawer--half { padding-left: env(safe-area-inset-left); height: 100svh; }

/* ==== LUNERA: Proof Bar — compact LEFT ticker (clean) ==== */
:root{
  --proof-height: 34px;                 /* גובה דק */
  --proof-speed: 14s;                   /* מהירות הלופ (קטן=מהר יותר) */
  --proof-ease: linear;                 /* תנועה חלקה */
  --proof-pink-alpha: 0.14;             /* עוצמת הורוד (הנמכתי מ-0.20) */
}

/* רקע ורדרד עדין, full-bleed נקי */
#proof.lunera-proof.section{
  background: rgba(190, 93, 130, var(--proof-pink-alpha));
  height: var(--proof-height);
  display: flex; align-items: center;
  margin-inline: 0; padding-inline: 0; border-radius: 0;
}

/* reset פנימי קל */
#proof .lunera-proof__inner,
#proof .lunera-proof__ticker,
#proof .lunera-proof__track,
#proof .lunera-proof__seq{
  background: transparent; padding: 0; margin: 0;
}

/* טיקר שמאלה */
#proof .lunera-proof__ticker{ height: var(--proof-height); overflow: hidden; }
#proof .lunera-proof__track{
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: luneraProofLeft var(--proof-speed) var(--proof-ease) infinite;
}
@keyframes luneraProofLeft{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

#proof .lunera-proof__seq{ display: inline-flex; align-items: center; }
#proof .lunera-proof__item{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px;
  height: var(--proof-height); line-height: var(--proof-height);
  font-size: 13.5px; font-weight: 600; color: #111;
}

/* נקודת מפריד בין פריטים + השלמה בתפר בין הרצפים */
#proof .lunera-proof__item + .lunera-proof__item::before,
#proof .lunera-proof__seq + .lunera-proof__seq .lunera-proof__item:first-child::before{
  content: "•"; opacity: .35; margin-right: 14px;
}

/* נוחות תצוגה ונגישות */
@media (hover:hover){ #proof .lunera-proof__ticker:hover .lunera-proof__track{ animation-play-state: paused; } }
@media (min-width: 750px){ #proof .lunera-proof__item{ font-size: 14px; } }
@media (prefers-reduced-motion: reduce){ #proof .lunera-proof__track{ animation: none; } }


/* ==== LUNERA: How it works – infinite loop ==== */
.lunera-how__inner { max-width: var(--page-width, 1200px); margin-inline: auto; padding: 16px 12px; }
.lunera-how__heading { font-size: 18px; font-weight: 700; margin: 0 0 10px; }

.lunera-how__loop { overflow: hidden; }
.lunera-how__track {
  display: flex;
  width: max-content;
  animation: luneraHowLoop var(--how-duration, 18s) linear infinite;
}
@keyframes luneraHowLoop { to { transform: translateX(-50%); } } /* שמאלה */

.lunera-how__seq { display: flex; gap: 12px; }

.lunera-how__item {
  flex: 0 0 clamp(74vw, 78vw, 82vw);                   /* רוחב כרטיס במובייל */
  background: rgb(255 255 255 / .75);
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 16px;
  padding: 10px;
  scroll-snap-align: start;
}

.lunera-how__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;                                  /* פורטרט – נראה מצוין על שיער */
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f8;
}
.lunera-how__video, .lunera-how__img {
  width: 100%; height: 100%; object-fit: cover; display: block; transform: translateZ(0);
}

/* סקלטון עד שיגיעו הווידאו/תמונות */
.lunera-how__skeleton {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: luneraSkeleton 1.2s ease-in-out infinite;
}
@keyframes luneraSkeleton { 0%{background-position: 0% 50%} 100%{background-position: -135% 50%} }

.lunera-how__text { margin-top: 8px; }
.lunera-how__title { font-size: 16px; font-weight: 600; margin: 0; }
.lunera-how__caption { font-size: 13.5px; opacity: .8; margin: 4px 0 0; }

@media (hover:hover) { .lunera-how__loop:hover .lunera-how__track { animation-play-state: paused; } }
@media (min-width: 750px) { .lunera-how__item { flex-basis: clamp(28vw, 33vw, 36vw); } }
@media (prefers-reduced-motion: reduce) { .lunera-how__track { animation: none; } }


/* ==== LUNERA: Benefits ==== */
.lunera-benefits__inner{max-width:var(--page-width,1200px);margin-inline:auto;padding:16px 12px}
.lunera-benefits__heading{font-size:18px;font-weight:700;margin:0 0 10px}
.lunera-benefits__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:750px){.lunera-benefits__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
.lunera-benefits__item{border:1px solid rgb(0 0 0 / 8%);border-radius:16px;background:rgb(255 255 255 / 75%);padding:14px 12px;text-align:center}
.lunera-benefits__icon{font-size:26px;line-height:1;margin-bottom:8px}
.lunera-benefits__title{font-size:15px;font-weight:700;margin:0 0 4px}
.lunera-benefits__text{font-size:13.5px;opacity:.85;margin:0}
/* ==== LUNERA: Reviews (scoped) ==== */
#reviews.lunera-reviews.section { background: #F9B6AF; }

#reviews .lunera-reviews__inner{max-width:var(--page-width,1200px);margin-inline:auto;padding:16px 12px}
#reviews .lunera-reviews__heading{
  font: 800 clamp(1.2rem, 2.5vw, 1.6rem)/1.2 "Poppins", sans-serif;
  text-align:center;color:#f2cfd6;text-shadow:2px 2px 6px rgba(0,0,0,.85);
  margin: 8px 0 14px;
}

/* Badge */
#reviews .lunera-reviews__badge{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.4rem .7rem;border-radius:999px;background:#faeff6;color:#222;
  font:700 .95rem/1 "Poppins",system-ui,sans-serif;margin:0 auto 12px;box-shadow:0 2px 10px rgba(0,0,0,.08)
}
#reviews .lunera-reviews__badge-count{font-weight:800}
#reviews .lunera-reviews__badge-stars{color:#f5b400}

/* Layout */
#reviews .lunera-reviews__wrap{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:750px){#reviews .lunera-reviews__wrap{grid-template-columns:1.1fr .9fr}}
#reviews .lunera-reviews__list{display:grid;gap:10px;position:relative}
#reviews .lunera-reviews__item{
  border:1px solid rgb(0 0 0 / 6%);
  border-radius:14px;background:#faeff6;padding:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
#reviews .lunera-reviews__item:hover{ transform: translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.10); }
#reviews .lunera-reviews__item.is-hidden{ display:none; }

#reviews .lunera-reviews__stars{color:#f5b400;margin-bottom:4px;font-size:15px;letter-spacing:.05em}
#reviews .lunera-reviews__text{margin:0;font:500 15px/1.45 system-ui,sans-serif;color:#222}
#reviews .lunera-reviews__meta{margin:6px 0 0;font:600 13px/1.25 system-ui,sans-serif;color:#555}

#reviews .lunera-reviews__ugc{border:1px solid rgb(0 0 0 / 8%);border-radius:12px;overflow:hidden;background:#f7f7f8;min-height:220px}
#reviews .lunera-reviews__ugc video{width:100%;height:100%;object-fit:cover;display:block}
#reviews .lunera-reviews__skeleton{width:100%;height:100%;background:linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);background-size:400% 100%;animation:luneraSkeleton 1.2s ease-in-out infinite}

#reviews .lunera-reviews__cta{margin-top:8px;text-align:end}
#reviews .lunera-reviews__link{text-decoration:none;font-weight:600}

#reviews .lunera-reviews__more{ text-align:center; }
#reviews .lunera-reviews__btn{
  display:inline-block;padding:.6rem 1rem;border-radius:999px;border:none;cursor:pointer;
  background:#fff;color:#111;font-weight:700;box-shadow:0 2px 10px rgba(0,0,0,.12)
}

/* חדש חדש חדש*/
/* ===== Reviews – visual polish ===== */
#reviews .lunera-reviews__list{ grid-template-columns: 1fr; }
@media (min-width: 860px){
  #reviews .lunera-reviews__list{ grid-template-columns: 1fr 1fr; } /* שתי עמודות בדסקטופ */
}

#reviews .lunera-reviews__item{
  background: linear-gradient(180deg, #faeff6 0%, #fdeff8 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.09);
}

#reviews .lunera-reviews__stars{
  font-size: 16px;
  margin-bottom: 6px;
}

#reviews .lunera-reviews__text{
  position: relative;
  padding-left: 24px;
}
#reviews .lunera-reviews__text::before{
  content: "“";
  position: absolute;
  left: 0; top: -6px;
  font: 900 24px/1 "Poppins", sans-serif;
  color: rgba(0,0,0,.25);
}

#reviews .lunera-reviews__meta{
  margin-top: 8px;
  color: #333;
  opacity: .85;
}


/* ==== LUNERA: Final CTA + Sticky ==== */
.lunera-final__inner{max-width:var(--page-width,1200px);margin-inline:auto;padding:16px 12px 88px} /* מקום לסטיקי */
.lunera-final__heading{font-size:20px;font-weight:800;margin:0 0 12px}
.lunera-final__buybox{border:1px solid rgb(0 0 0 / 8%);border-radius:16px;background:#fff;padding:14px}
.lunera-final__info{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}
.lunera-final__title{font-size:16px;font-weight:700;margin:0}
.lunera-final__price s{opacity:.5;margin-right:6px}
.lunera-final__price-now{font-size:16px;font-weight:800}
.lunera-final__options{display:grid;gap:10px;margin-bottom:12px}
.lunera-final__label{font-size:13px;font-weight:600}
.lunera-final__select{width:100%;height:40px;border-radius:10px;border:1px solid rgb(0 0 0 / 14%);padding:0 10px;background:#fff}
.lunera-final__cta{width:100%;height:46px;border-radius:999px;border:0;background:#111;color:#fff;font-weight:700}
.lunera-final__placeholder{text-align:center}
.lunera-final__skeleton{height:120px;border-radius:12px;background:linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);background-size:400% 100%;animation:luneraSkeleton 1.2s ease-in-out infinite}
.lunera-final__note{font-size:13px;opacity:.7;margin-top:8px}

/* Sticky */
.lunera-sticky{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:#fff;border-top:1px solid rgb(0 0 0 / 10%);box-shadow:0 -8px 24px rgb(0 0 0 / 6%)}
.lunera-sticky__content{max-width:var(--page-width,1200px);margin-inline:auto;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.lunera-sticky__title{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50%}
.lunera-sticky__price{font-size:14px;font-weight:800}
.lunera-sticky__btn{height:40px;border:0;border-radius:999px;padding:0 18px;background:#111;color:#fff;font-weight:700}

/* Skeleton keyframes (shared) */
@keyframes luneraSkeleton{0%{background-position:0% 50%}100%{background-position:-135% 50%}}


/* ==== LUNERA: Demo video ==== */
.lunera-demo__inner{max-width:var(--page-width,1200px);margin-inline:auto;padding:16px 12px}
.lunera-demo__heading{font-size:18px;font-weight:700;margin:0 0 10px}
.lunera-demo__player{position:relative;border:1px solid rgb(0 0 0 / 8%);border-radius:16px;overflow:hidden;background:#f7f7f8;aspect-ratio:4/5}
.lunera-demo__poster,.lunera-demo__video{width:100%;height:100%;object-fit:cover;display:block}
.lunera-demo__skeleton{width:100%;height:100%;background:linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);background-size:400% 100%;animation:luneraSkeleton 1.2s ease-in-out infinite}
/* כפתור Play במרכז */
.lunera-demo__play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;border:0;background:rgba(0,0,0,.6);cursor:pointer}
.lunera-demo__play::before{content:'';position:absolute;left:26px;top:20px;border-style:solid;border-width:12px 0 12px 18px;border-color:transparent transparent transparent #fff}
@media(min-width:750px){.lunera-demo__play{width:72px;height:72px}.lunera-demo__play::before{left:30px;top:24px;border-width:12px 0 12px 20px}}
/* LUNERA: Demo – show full video inside the frame */
#demo .lunera-demo__poster,
#demo .lunera-demo__video { object-fit: contain; }
#demo .lunera-demo__player { background: #000; } /* אופציונלי: מסך שחור מאחורי הווידאו */
/* DEMO: מסגרת 9:16, ממלא בלי פסים */
#demo .lunera-demo__player { aspect-ratio: 9 / 16; }
#demo .lunera-demo__poster,
#demo .lunera-demo__video { object-fit: cover; object-position: center 15%; }
section[id*="lunera-how"] {
  background-color: #F9B6AF !important;
}
/* ==== LUNERA HOW – Infinite loop: full-width cut + perfectly even gap ==== */
.lunera-how {
  --how-gap: 12px;           /* שנה כאן אם תרצה 10/14 וכו' */
  background-color: #F9B6AF; /* צבע הרקע החדש */
  overflow: hidden;          /* החיתוך קורה בגבול הסקשן עצמו */
}

.lunera-how__inner {
  max-width: var(--page-width, 1200px);
  margin-inline: auto;
  padding: 16px 0;           /* בלי padding צדדי כדי לא “לחתוך” מוקדם */
}

.lunera-how__loop {
  overflow: visible;         /* הלופ עצמו לא חותך — רק הסקשן חותך */
}

/* אין gap ברמת ה-track כדי שחצי המסילה == החצי השני בול */
.lunera-how__track {
  display: flex;
  width: max-content;
  animation: luneraHowLoop var(--how-duration, 18s) linear infinite;
  gap: 0 !important;
  will-change: transform;
}

/* בכל חצי (UL) יש רווח בין הפריטים */
.lunera-how__seq {
  display: flex;
  gap: var(--how-gap);
}

/* ספייסר בסוף החצי הראשון – בדיוק כמו ה-gap – כדי שלא תהיה “קפיצה” */
.lunera-how__seq:first-child::after {
  content: "";
  display: block;
  flex: 0 0 var(--how-gap);
}

/* כרטיס/פריט לופ (כל “גיף”) – גודל ניתן לכיוון */
.lunera-how__item {
  flex: 0 0 clamp(74vw, 78vw, 82vw);
  background: rgb(255 255 255 / .75);
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 16px;
  padding: 10px;
  scroll-snap-align: start;
}

/* מעטפת המדיה */
.lunera-how__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f8;
}

/* הווידאו/תמונה עצמם */
.lunera-how__video,
.lunera-how__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);  /* מפחית ריצודים */
}

/* אנימציה חלקה (GPU-friendly) */
@keyframes luneraHowLoop {
  to { transform: translate3d(-50%, 0, 0); }
}
.lunera-how {
  background-color: #F9B6AF !important;
}
/* פונטים לסקשן HOW IT WORKS */
.lunera-how .heading,
.lunera-how .title {
  font-family: "Poppins", var(--font-heading-family, sans-serif);
  font-weight: 800;
  letter-spacing: .02em;
}

.lunera-how .caption {
  font-family: "Inter", var(--font-body-family, system-ui, sans-serif);
  font-weight: 500;
}
.lunera-how .heading {
  text-align: center;
  margin: 0 0 14px;
}

/* === LUNERA HOW — loop jitter fix (precise, no jump) === */
.lunera-how {
  --how-gap: 12px; /* תשנה כאן אם תרצה 10/14/11.5 וכו' */
}

/* 1) אין gap ברמת המסילה כדי ששני החצאים יהיו זהים בול */
.lunera-how__track {
  gap: 0 !important;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 2) את הרווחים נשים רק בתוך כל חצי (UL) */
.lunera-how__seq {
  gap: var(--how-gap);
}

/* 3) spacer בסוף החצי הראשון — בדיוק כמו ה-gap */
.lunera-how__seq:first-child::after {
  content: "";
  display: block;
  flex: 0 0 var(--how-gap);
}
/* Force heading to show + center + Poppins */
.lunera-how__heading {
  display: block !important;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin: 0 0 14px !important;
  color: #1f1f1f !important; /* שלא ייבלע ברקע */
}

/* LUNERA HOW — tighten vertical spacing */
.lunera-how {
  padding-top: 8px !important;      /* הכותרת תרד מעט מהחלק העליון */
  padding-bottom: 12px !important;
}

.lunera-how__inner {
  padding-top: 8px !important;      /* מצמצם מרחב עליון/תחתון בתוך ה-inner */
  padding-bottom: 8px !important;
}

/* כותרת: מעט רווח מעל, קטן מתחת (כדי שלא יהיה "מדבר") */
.lunera-how__heading {
  margin-top: 6px !important;       /* מוריד אותה קצת מהקצה העליון */
  margin-bottom: 6px !important;    /* מצמצם את הרווח מתחת לכותרת */
  line-height: 1.15;                 /* טיפה דחוס נראה טוב בפופינס */
}

/* מבטלים כל מרווח סמוי לפני המסילה/הגיפים */
.lunera-how__loop,
.lunera-how__track,
.lunera-how .steps {
  margin-top: 6px !important;       /* אם היה מרווח גדול, זה יקטין אותו */
}


/* LUNERA HOW — shrink gap between heading and gifs */
.lunera-how__heading {
  margin-bottom: 4px !important;  /* היה גדול יותר, עכשיו מצמצמים */
}

.lunera-how__loop,
.lunera-how__track,
.lunera-how .steps {
  margin-top: 0 !important;       /* מבטלים כל רווח עליון שהיה מעל הגיפים */
  padding-top: 0 !important;      /* למקרה והיה padding נוסף */
}
/* LUNERA HOW — shrink top gap above gifs */
.lunera-how__heading {
  margin-bottom: 4px !important;  /* מצמצם את הרווח מתחת לכותרת */
}

.lunera-how__loop,
.lunera-how__track,
.lunera-how .steps {
  margin-top: 0 !important;       /* מבטל מרווח עליון */
  padding-top: 0 !important;      /* מבטל פדינג עליון */
}

/* LUNERA HOW — heading styled like hero h1 */
.lunera-how__heading {
  font-size: 1.6rem !important; /* היה 3rem, עכשיו קטן יותר */
  margin-bottom: 20px !important;
  font-weight: 700 !important;
  color: #f2cfd6 !important;
  position: relative !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.85) !important;
  font-family: 'Poppins', sans-serif !important;
  z-index: 1;
}


.lunera-how__heading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 120%;
  background: rgba(242, 207, 214, 0.1);
  filter: blur(4px);
  border-radius: 25px;
  z-index: -1;
  pointer-events: none;
}

.demo-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-align: center;
  margin: 0 0 14px;
  color: #1f1f1f;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.85);
}
/* LUNERA DEMO — heading styled like HOW/hero */
.lunera-demo__heading {
  font-family: "Poppins", sans-serif !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-size: 1.8rem !important; /* אם גדול/קטן מדי: 1.6rem/2.0rem */
  color: #f2cfd6 !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.85) !important;
  margin: 8px 0 12px !important;
  position: relative;
  z-index: 1;
}
.lunera-demo__heading::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110%; height: 120%;
  background: rgba(242, 207, 214, 0.1);
  filter: blur(4px);
  border-radius: 25px;
  z-index: -1; pointer-events: none;
}

/* קירוב הווידאו לכותרת (לחתוך "מדבר") */
.lunera-demo__inner { padding-top: 6px; }
.lunera-demo__player { margin-top: 6px; }


/* LUNERA DEMO — background color */
.lunera-demo {
  background-color: #F9B6AF !important;
  padding-top: 12px !important;   /* קצת מרווח מלמעלה */
  padding-bottom: 12px !important;/* קצת מרווח מלמטה */
}

/* LUNERA BENEFITS — רקע + ריווח עדין */
.lunera-benefits {
  background-color: #F9B6AF !important;
  padding: 12px 0 !important;
}

/* כותרת בסגנון HOW/hero (Poppins + glow) */
.lunera-benefits__heading {
  font-family: "Poppins", sans-serif !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-size: 1.8rem !important;           /* שנה ל-1.6/2.0 לפי העין */
  color: #f2cfd6 !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,.85) !important;
  margin: 8px 0 14px !important;
  position: relative;
  z-index: 1;
}
.lunera-benefits__heading::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110%; height: 120%;
  background: rgba(242, 207, 214, 0.1);
  filter: blur(4px);
  border-radius: 25px;
  z-index: -1; pointer-events: none;
}
/* ===== Lunera Results – CLEAN RESET ===== */

/* רקע הסקשן */
section.lunera-results.section {
  background-color: #F9B6AF !important;
}

/* חתיכה רק בקצות הסקשן, לא באמצע */
.lunera-results {
  position: relative;
  overflow: hidden;
}

/* אל תקטעו מבפנים */
.lunera-results__inner,
.lunera-results__loop,
.lunera-results__track {
  overflow: visible;
}

/* ריווח בין הכרטיסים + רווח גם בין סוף הרשימה לתחילתה */
.lunera-results__seq {
  display: flex;
  gap: 20px;
}
.lunera-results__seq .lunera-results__item:last-child {
  margin-right: 20px; /* אותו רווח כמו ה-gap */
}

/* גודל כרטיסים ריאלי במובייל + תקרה */
.lunera-results__item {
  flex: 0 0 clamp(64vw, 70vw, 76vw);
  max-width: 360px;
}
@media (min-width: 768px){
  .lunera-results__item { max-width: 420px; }
}

/* תמונות ממלאות את הכרטיס */
.lunera-results__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Results: בועית בצבע מותאם ---- */
#results{
  --results-bubble: #faeff6; /* הצבע החדש */
  --results-bubble-radius: 12px;
  --results-bubble-thickness: 6px; /* עובי הבועית */
}

#results .lunera-results__item,
#results .lunera-results__media,
#results .lunera-results__cell{
  background: transparent !important;
}

#results .lunera-results__cell img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--results-bubble-radius) - 2px);
  box-shadow: 0 0 0 var(--results-bubble-thickness) var(--results-bubble);
  background: transparent;
}


/* אם אתה מעדיף "בועית" כרקע עם padding (במקום box-shadow) — בטל למעלה והפעל את זה: */
/*
#results .lunera-results__cell{
  background-color: var(--results-bubble) !important;
  border-radius: var(--results-bubble-radius);
  padding: 6px;
}
#results .lunera-results__cell img{
  border-radius: calc(var(--results-bubble-radius) - 2px);
}
*/


/* כותרת – גרסה יחידה וסופית */
.lunera-results__header{
  grid-column: 1 / -1;
  position: relative;
  z-index: 10;       /* מעל הלופ */
  margin: 8px 0 14px;
}
.lunera-results__heading{
  display: block !important;
  position: relative !important;
  z-index: 11 !important;
  text-align: center !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  color: #f9b6af !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,.85) !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ודא שכל ילדי ה-section לא “נכלאים” בעמודת גריד צרה */
section.lunera-results.section > *{
  grid-column: 1 / -1;
}

/* כיתובים מתחת לכרטיס – מוסתרים (כפי שביקשת) */
.lunera-results__caption { display: none !important; }


/* ===== HARD RESET למובייל על כותרת ה-Results ===== */
@media (max-width: 768px){
  #results .lunera-results__header{
    position: relative !important;
    inset: auto !important;
    margin: 8px 0 14px !important;
    padding: 0 16px !important;   /* שלא ייחתך ע"י קצוות */
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  #results h2.lunera-results__heading{
    /* אפס כל דבר חשוד ואז בנה מחדש */
    all: unset;                           /* מאפס *הכל* עבור האלמנט */
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 14px;
    padding: 0;

    /* ביטול כל הטריקים שמעלימים/מזיזים טקסט */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    text-indent: 0 !important;
    white-space: normal !important;
    clip-path: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 11 !important;

    /* העיצוב שביקשת */
    text-align: center !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    color: #f2cfd6 !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,.85) !important;
  }

  /* שלא יכסה אותה שום דבר */
  #results .lunera-results__loop{
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
  }
}
/* KILL gradient/text-clip on mobile for the results title */
@media (max-width: 768px){
  #results h2.lunera-results__heading,
  #results h2.lunera-results__heading *{
    /* נטרול מוחלט של קליפ/גרדיאנט/שקיפות שמוחלים איפשהו */
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    mix-blend-mode: normal !important;
    filter: none !important;

    /* זה המפתח – ייתכן שמוגדר איפשהו כ-transparent */
    -webkit-text-fill-color: #111 !important;
    color: #111 !important;

    /* ודא שהטקסט לא "נעלם" בגלל טריקים אחרים */
    text-shadow: none !important;
    text-indent: 0 !important;
    white-space: normal !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* גודל/יישור בסיסיים */
    display: block !important;
    width: 100% !important;
    font: 800 24px/1.2 "Poppins", sans-serif !important;
    text-align: center !important;
  }
}

/* --- Kill ANY masking/gradient/transform on the title in mobile --- */
@media (max-width: 768px){
  /* נטרול פסאודו-אלמנטים שעשויים לכסות טקסט */
  #results h2.lunera-results__heading::before,
  #results h2.lunera-results__heading::after {
    content: none !important;
    display: none !important;
  }

  /* Reset קשיח לטקסט עצמו בתוך ה-span */
  #results .lunera-results__headingText{
    /* אפס מוחלט של כל ירושה/אפקט */
    all: initial;                /* מתחיל מדף נקי */
    display: inline-block;       /* שיהיה אלמנט פיזי */
    box-sizing: border-box;

    /* זה הדבר הכי חשוב: הפיכת הטקסט ל"אמיתי" שוב */
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    text-shadow: none !important;
    text-indent: 0 !important;
    white-space: normal !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* טיפוגרפיה בסיסית — קודם כל שנראה טקסט */
    font-family: Poppins, sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    text-align: center !important;

    /* כדי שתראה אותו בוודאות: רקע זמני (תמחק אחרי הבדיקה) */
    background-color: rgba(255,255,0,.25) !important; /* DEBUG */
    padding: 0 .25rem;
  }

  /* ודא שה-h2 עצמו לא מזיז/מסתיר */
  #results h2.lunera-results__heading{
    display: block !important;
    position: relative !important;
    z-index: 11 !important;
    margin: 8px 0 14px !important;
    text-align: center !important;
    overflow: visible !important;
  }

  /* שה-loop לא יכסה */
  #results .lunera-results__loop{
    position: relative !important;
    z-index: 1 !important;
  }
}

@media (max-width: 768px){
  /* מצייר טקסט מבחוץ כבדיקת עשן */
  #results h2.lunera-results__heading::after{
    content: "TEST"; 
    display:block;
    font: 800 24px/1.2 Poppins, sans-serif;
    color:#000 !important;
    -webkit-text-fill-color:#000 !important;
    background: rgba(255,255,0,.25);
    text-align:center;
    position:relative;
    z-index:1000;
  }
}

/* שמור את הסקשן בתוך המסך */
#results.lunera-results,
#results .lunera-results__inner{
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* אין גלילה אופקית */
#results{ overflow-x: hidden; }

/* הכותרת נשארת בתוך רוחב הדף */
#results .lunera-results__header{
  max-width: 1200px;              /* שנה לערך הקונטיינר שלך אם יש משתנה גלובלי */
  margin: 8px auto 14px;
  padding: 0 16px;                /* מרווחי צד במובייל */
  position: relative;
  z-index: 10;
}

/* הלופ: פול-בליד בלי לפרוץ מעבר ל-viewport */
#results .lunera-results__loop{
  position: relative;
  overflow: hidden;
}

/* מובייל: הטריק שמושך לשולי המסך בלי ליצור Overflow */
@media (max-width: 768px){
  #results .lunera-results__loop{
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* דסקטופ: חזרה למרג'ינים רגילים של הקונטיינר */
@media (min-width: 769px){
  #results .lunera-results__loop{
    margin-left: 0;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* הכותרת – סטייל סופי */
#results .lunera-results__heading{
  display:block;
  text-align:center;
  font: 800 1.8rem/1.2 "Poppins", sans-serif;
  color:#f2cfd6;
  text-shadow:2px 2px 6px rgba(0,0,0,.85);
  position:relative;
  z-index:11;
  margin:0;
}



/* כותרת */
.lunera-mobile-results__heading {
  font-family: "Poppins", sans-serif !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-size: 1.8rem !important;
  color: #f2cfd6 !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,.85) !important;
  margin: 8px 0 14px !important;
  position: relative;
  z-index: 1;
}

/* מבנה הלופ */
.lunera-mobile-results__loop {
  overflow: hidden;
  position: relative;
}

.lunera-mobile-results__track {
  display: flex;
  animation: scroll-loop 20s linear infinite;
}

.lunera-mobile-results__item {
  flex: 0 0 auto;
  margin-right: 10px;
}

.lunera-mobile-results__before-after {
  display: flex;
}

.lunera-mobile-results__cell {
  position: relative;
  width: 50%;
}

.lunera-mobile-results__cell img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* תווית Before/After */
.lunera-mobile-results__tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.lunera-mobile-results__tag--after {
  background: rgba(255, 105, 180, 0.8);
}

/* רקע כללי */
.lunera-mobile-results {
  background-color: #F9B6AF !important;
}

/* צבע רקע לריבוע ה-Result כולו */
#results .lunera-results__item{
  background: #faeff6 !important;
  border-radius: 14px;
  padding: 10px;                 /* יוצר “בועית” מסביב לתמונות */
  box-sizing: border-box;
}

/* המבנה הפנימי – שקוף כדי שהרקע של הכרטיס ייראה */
#results .lunera-results__media{
  display: flex;
  gap: 10px;
  background: transparent !important;
}

#results .lunera-results__cell{
  background: transparent !important;
  border-radius: 10px;
  overflow: hidden;              /* פינות עגולות נקיות לתמונה */
}

#results .lunera-results__cell img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* תמונה ממלאת את התא בלי “פסים” */
}

/* HOW IT WORKS – אל תאפשר קליקים/נגיעות על הווידאו */
.lunera-how__video{
  pointer-events: none;
}

/* מבטל בכלל את קליטת ה-hover על הלופ */
section.section-{{ section.id }} .lunera-how__loop {
  pointer-events: none;
}


/* ==== RESULTS: לופ אינסופי + Layout מדויק ==== */

/* מנוע הלופ */
#results .lunera-results__loop { overflow: hidden; }
#results .lunera-results__track{
  display: flex;
  flex-wrap: nowrap;
  width: max-content;                  /* שומר על רוחב תוכן */
  animation: results-scroll var(--results-speed, 20s) linear infinite;
  will-change: transform;
}
/* לא לעצור על hover */
#results .lunera-results__track:hover{ animation-play-state: running; }

@keyframes results-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* זז בדיוק רוחב מחצית (כי יש שני רצפים) */
}

/* שני הרצפים אחד אחרי השני בשורה */
#results .lunera-results__seq{
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
}

/* רוחב כרטיס – קטן יחסית במובייל, עם תקרה בדסקטופ */
#results .lunera-results__item{
  flex: 0 0 clamp(48vw, 56vw, 62vw);
  max-width: 360px;
}
@media (min-width: 768px){
  #results .lunera-results__item{ max-width: 420px; }
}

/* Before / After זה לצד זה (לא אחד מתחת לשני) */
#results .lunera-results__media{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

/* בועית ע"י רקע+padding (לא box-shadow) */
#results .lunera-results__cell{
  background-color: #faeff6 !important;
  border-radius: 12px;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
}
#results .lunera-results__cell img{
  width: 100%;
  height: auto;          /* לא נמתח לגובה */
  border-radius: 10px;
  object-fit: contain;   /* מבטיח שלא ייחתך/יימתח */
  display: block;
}

/* ---- RESULTS: tweak size + labels + perfect frame ---- */

/* עוד קצת מקום לתמונה בתוך המסגרת */
#results .lunera-results__media{ 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; /* רווח בין לפני/אחרי */
}

/* מסגרת סימטרית + תמונה גדולה יותר */
#results .lunera-results__cell{
  position: relative;
  background-color: #faeff6 !important; /* צבע המסגרת */
  border-radius: 14px;
  padding: 4px;                          /* היה 6px – מצמצם כדי להגדיל תמונה */
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: stretch;

  /* גובה קבוע ביחס רוחב – מסגרת סימטרית תמיד */
  aspect-ratio: 3 / 4;                   /* אם צריך פחות/יותר גבוה, שחק עם היחס */
}

#results .lunera-results__cell img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;                   /* 2px פחות מהרדיוס של התא */
  object-fit: cover;                     /* תמונה “גדולה” ובלי פסים; מחזיק סימטריה */
}

/* בועיות Before/After */
#results .lunera-results__cell{ position: relative; }
#results .lunera-results__tag{
  position: absolute;
  top: 8px;
  left: 8px;                             /* ברירת מחדל – Before בצד שמאל */
  font: 700 12px/1 "Poppins", sans-serif;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
}
#results .lunera-results__tag--after{
  left: auto;
  right: 8px;                            /* After בצד ימין */
}

/* ודא שהאנימציה ממשיכה (אם משהו דרס) */
#results .lunera-results__track{
  animation: results-scroll var(--results-speed, 20s) linear infinite !important;
  will-change: transform;
}
#results .lunera-results__track:hover{ animation-play-state: running !important; }

/* אם נשאר לך פעם CSS ישן של box-shadow על ה-img – תבטל אותו: */
/* #results .lunera-results__cell img{ box-shadow: none !important; } */

/* ==== RESULTS: make pairs a bit bigger ==== */

/* הכרטיס עצמו — גדול יותר במובייל ובדסקטופ */
#results .lunera-results__item{
  /* היה בערך clamp(48vw,56vw,62vw) */
  flex: 0 0 clamp(54vw, 60vw, 66vw) !important; 
  max-width: 480px; /* היה 360/420 */
}

/* בדסקטופ אפשר עוד טיפונת */
@media (min-width: 768px){
  #results .lunera-results__item{ max-width: 500px; }
}

/* רווח קטן יותר בפנים כדי שהתמונה תיראה גדולה יותר */
#results .lunera-results__media{ gap: 10px; }     /* היה 8–10, נשאיר 10 יציב */
#results .lunera-results__cell{
  padding: 5px;               /* היה 4px/6px -> קצת יותר מסגרת אך עדיין “גדול” */
  border-radius: 16px;        /* מסגרת רכה יותר */
}
#results .lunera-results__cell img{
  border-radius: 12px;        /* 4px פחות מהתא לשמירה על סימטריה */
  object-fit: cover;          /* נשאר “גדול” בלי פסים */
}

/* בועיות Before/After – משאירים קטנות ואלגנטיות, אפשר להגדיל קלות אם תרצה */
#results .lunera-results__tag{
  font: 700 12px/1 "Poppins", sans-serif;
  padding: 4px 8px;
  top: 8px;
}


/* הגדלת תמונת ה-Before/After בלבד */
#results .lunera-results__cell {
  position: relative;
  overflow: hidden; /* חשוב כדי לחתוך את עודפי התמונה */
}

#results .lunera-results__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2); /* ערך גבוה יותר = הגדלה חזקה יותר */
  transform-origin: center center;
}

/* הגדלת מסגרת התמונה פיזית */
#results .lunera-results__cell {
  flex: 0 0 auto; /* שמירה על גודל עצמאי */
  width: 140px;   /* רוחב חדש - שנה לפי הצורך */
  height: 190px;  /* גובה חדש - שנה לפי הצורך */
}

#results .lunera-results__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ===== LUNERA Drawer Styling (Pink) ===== */
:root{
  --lunera-pink: #F9B6AF;          /* רקע התפריט */
  --lunera-pink-strong: #5A3C3C;   /* הדגשות */
  --lunera-text-dark: #3b2140;     /* טקסט כהה נעים על ורוד */
  --lunera-white: #ffffff;
}

#lunera-menu.drawer {
  background: var(--lunera-pink);
  color: var(--lunera-text-dark);
  box-shadow: 6px 0 30px rgba(0,0,0,.10);
}

#lunera-menu .drawer__header{
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}

#lunera-menu .drawer__title{
  margin: 0;
  font-weight: 700;
  letter-spacing: .3px;
}

#lunera-menu .lunera-menu-btn{
  /* כפתור ☰ שבתוך התפריט (לסגור) */
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85);
  color: var(--lunera-text-dark);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.04);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
#lunera-menu .lunera-menu-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.06);
  background: var(--lunera-white);
}
#lunera-menu .lunera-menu-btn:active{ transform: translateY(0); }

#lunera-menu .drawer__content{
  padding: 16px 14px 22px;
}

#lunera-menu .drawer__content .list-unstyled{
  display: grid;
  gap: 12px;
  margin: 0; padding: 0; list-style: none;
}

/* פריטי התפריט */
#lunera-menu .drawer__content a{
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--lunera-text-dark);
  background:
    linear-gradient(0deg, rgba(255,255,255,.95), rgba(255,255,255,.90));
  box-shadow:
    0 6px 16px rgba(61, 22, 46, .08),
    inset 0 0 0 1px rgba(61,22,46,.06);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

#lunera-menu .drawer__content a:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(61,22,46,.12),
    inset 0 0 0 1px rgba(61,22,46,.10);
  background:
    linear-gradient(0deg, var(--lunera-white), rgba(255,255,255,.98));
}

#lunera-menu .drawer__content a:active{
  transform: translateY(0);
}

/* פס נועז קטן בצד שמאל של פריט במעבר */
#lunera-menu .drawer__content a:hover{
  outline: none;
  box-shadow:
    0 12px 28px rgba(61,22,46,.12),
    inset 0 0 0 1px rgba(61,22,46,.10),
    inset 4px 0 0 0 var(--lunera-pink-strong);
}

/* אוברליי: מוודאים שהוא "חמוד" ומהיר */
.drawer-overlay-half{
  background: rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease;
}
/* כשהמגירה פתוחה (האוברליי הוא האח של המגירה ב-DOM) */
#lunera-menu[data-open='true'] + .drawer-overlay-half{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ===== LUNERA Drawer — Clean Rows (no bubbles) ===== */
:root{
  --lunera-pink: #F9B6AF;
  --lunera-pink-strong: #5A3C3C;
  --lunera-text-dark: #3b2140;
  --lunera-white: #ffffff;
}

/* רק לדרואר הזה */
#lunera-menu.drawer{
  background: var(--lunera-pink);
  color: var(--lunera-text-dark);
  box-shadow: 6px 0 30px rgba(0,0,0,.10);
}

/* ===== Header (TITLE + כפתור) ===== */
#lunera-menu .drawer__header{
  padding: 20px 18px;
  border-bottom: 1px solid rgba(61,22,46,.15);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: transparent;
}

#lunera-menu .drawer__title{
  margin: 0;
  font-family: 'Cinzel Decorative', serif; /* כבר טעון אצלך */
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.1;
  /* גרדיאנט טקסט עדין */
  background: linear-gradient(90deg, var(--lunera-pink-strong) 0%, #7a2e4b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  /* קו דקורטיבי מתחת */
  position: relative;
}
#lunera-menu .drawer__title::after{
  content: "";
  display: block;
  width: 48px; height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lunera-pink-strong), rgba(255,255,255,.9));
}

/* כפתור התפריט בתוך הדרואר (לסגירה) — מראה נקי, לא "בועי" */
#lunera-menu .lunera-menu-btn{
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--lunera-text-dark);
  border: 2px solid rgba(61,22,46,.25);
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
#lunera-menu .lunera-menu-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.35);
  border-color: rgba(61,22,46,.35);
}

/* ===== תוכן הרשימה — שורות נקיות ===== */
#lunera-menu .drawer__content{
  padding: 10px 6px 24px;
}

#lunera-menu .list-unstyled{
  list-style: none;
  margin: 0; padding: 4px 0;
  display: grid; gap: 0; /* אין רווחים בין שורות */
}

/* כל פריט — שורת ניווט; בלי רקע וללא עיגול פינות */
#lunera-menu .list-unstyled li a{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  color: var(--lunera-text-dark);
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  transition: background .18s ease, color .18s ease;
}

/* קו מפריד דק בין שורות */
#lunera-menu .list-unstyled li + li a{
  border-top: 1px solid rgba(61,22,46,.14);
}

/* פס ורוד קטן משמאל במעבר/פוקוס */
#lunera-menu .list-unstyled li a::before{
  content: "";
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--lunera-pink-strong);
  transition: width .18s ease;
}
#lunera-menu .list-unstyled li a:hover::before,
#lunera-menu .list-unstyled li a:focus-visible::before{
  width: 4px;
}

/* חץ עדין לימין */
#lunera-menu .list-unstyled li a::after{
  content: "›";
  font-size: 20px;
  opacity: .55;
  transition: transform .18s ease, opacity .18s ease;
}
#lunera-menu .list-unstyled li a:hover::after{
  transform: translateX(3px);
  opacity: .9;
}

/* היילייט רקע עדין במעבר */
#lunera-menu .list-unstyled li a:hover{
  background: linear-gradient(0deg, rgba(255,255,255,.34), rgba(255,255,255,.24));
}

/* אקססיביליטי לפוקוס מקלדת */
#lunera-menu .list-unstyled li a:focus-visible{
  outline: 2px solid var(--lunera-pink-strong);
  outline-offset: 2px;
}

/* אופציונלי: צבע אוברליי רך יותר */
#lunera-overlay.drawer-overlay-half{
  background: rgba(0,0,0,.28);
  transition: opacity .18s ease;
}


/* ===== Shop Now — Subtle but Punchy ===== */

/* מבטל את הפס הורוד משמאל שהוגדר לכל שורה */
#lunera-menu .list-unstyled li a.is-cta::before { display: none; }

/* שורת CTA מעודנת: קו תוחם + רקע שקוף-מבריק קליל */
#lunera-menu .list-unstyled li a.is-cta{
  margin: 10px 10px 4px;
  padding: 16px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(190, 93, 130, .38);     /* ורוד עדין */
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.14));
  backdrop-filter: blur(2px);                       /* אם זמין—שכבה יוקרתית */
  color: var(--lunera-text-dark);
  font-weight: 800;
  letter-spacing: .2px;
  transition: 
    transform .12s ease,
    border-color .2s ease,
    box-shadow .25s ease,
    background .25s ease,
    color .2s ease;
}

/* חץ מינימליסטי — בלי בועיות */
#lunera-menu .list-unstyled li a.is-cta::after{
  content: "→";
  font-size: 18px;
  opacity: .75;
  transition: transform .18s ease, opacity .18s ease;
}

/* מצב hover: “בעיטה” עדינה — הדגשת גבול, זוהר קל ותנועה */
#lunera-menu .list-unstyled li a.is-cta:hover{
  transform: translateY(-1px);
  border-color: rgba(190, 93, 130, .65);
  box-shadow: 0 10px 24px rgba(190,93,130,.14), inset 0 0 0 1px rgba(190,93,130,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.20));
  color: var(--lunera-text-dark);
}
#lunera-menu .list-unstyled li a.is-cta:hover::after{
  transform: translateX(4px);
  opacity: .95;
}

/* מצב פוקוס למקלדת — חד וברור אבל לא צורח */
#lunera-menu .list-unstyled li a.is-cta:focus-visible{
  outline: 2px solid #5A3C3C;
  outline-offset: 3px;
}

/* וריאנט אלטרנטיבי (עוד יותר מינימלי): קו תחתון חי. 
   כדי להשתמש בו, הוסף למחלקה גם .is-cta--underline ב-HTML 
   והשאר את הבלוק שלמעלה כמו שהוא. */
#lunera-menu .list-unstyled li a.is-cta.is-cta--underline{
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}
#lunera-menu .list-unstyled li a.is-cta.is-cta--underline::after{
  content: "→";
  font-size: 18px;
  opacity: .75;
  transform: translateX(0);
}
#lunera-menu .list-unstyled li a.is-cta.is-cta--underline::before{
  content: "";
  position: absolute; left: 16px; right: 36px; bottom: 8px; height: 2px;
  background: linear-gradient(90deg, #5A3C3C, rgba(190,93,130,.3));
  transform: scaleX(.3);
  transform-origin: left center;
  transition: transform .22s ease;
}
#lunera-menu .list-unstyled li a.is-cta.is-cta--underline:hover::before{
  transform: scaleX(1);
}


/* ===== Global Vars ===== */
:root{
  --lunera-pink: #F9B6AF;
  --lunera-pink-strong: #5A3C3C;
  --lunera-text-dark: #3b2140;
  --lunera-white: #ffffff;
}

/* רקע ורוד עדין לכל האתר (אפשר להשאיר כך) */
body{
  background: var(--lunera-pink);
}

/* ===== Generic page layout ===== */
.lunera-page__container{
  max-width: 980px;
  margin: clamp(16px, 3vw, 32px) auto;
  padding: 0 16px;
}

.lunera-page__title{
  margin: 0 0 6px;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 4.8vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(90deg, var(--lunera-pink-strong) 0%, #7a2e4b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.lunera-page__subtitle{
  margin: 0 0 16px;
  color: rgba(59,33,64,.9);
  font-size: clamp(14px, 2.6vw, 16px);
  letter-spacing: .3px;
}

/* כרטיס תוכן שקוף־אלגנטי */
.lunera-page__card{
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.78));
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(61,22,46,.12);
  padding: clamp(18px, 3.6vw, 28px);
}

/* טיפוגרפיה פנימית */
.lunera-page__richtext{
  color: var(--lunera-text-dark);
  line-height: 1.72;
}
.lunera-page__richtext h2{
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(22px, 3.8vw, 28px);
  margin: 14px 0 8px;
}
.lunera-page__richtext p{ margin: 0 0 12px; }
.lunera-page__richtext ul{ padding-left: 1.1em; margin: 0 0 12px; }

/* טופס יצירת קשר */
.lunera-page__contact{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(61,22,46,.14);
}
.lunera-page__contact-title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--lunera-text-dark);
}
.lunera-form__row{
  display: grid; gap: 6px;
  margin-bottom: 12px;
}
.lunera-form__row label{
  font-weight: 600; font-size: 14px; color: rgba(59,33,64,.95);
}
.lunera-form__row input,
.lunera-form__row textarea{
  border: 1.5px solid rgba(61,22,46,.25);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.9);
  color: var(--lunera-text-dark);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lunera-form__row input:focus,
.lunera-form__row textarea:focus{
  outline: none;
  border-color: rgba(190,93,130,.7);
  box-shadow: 0 0 0 3px rgba(190,93,130,.20);
  background: var(--lunera-white);
}
.lunera-btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(190,93,130,.65);
  background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.22));
  color: var(--lunera-text-dark);
  font-weight: 800; letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease, box-shadow .25s ease, background .25s ease;
}
.lunera-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(190,93,130,.85);
  box-shadow: 0 10px 24px rgba(190,93,130,.14), inset 0 0 0 1px rgba(190,93,130,.12);
}

/* הודעת הצלחה לטופס */
.lunera-page__success{
  background: rgba(255,255,255,.85);
  border-left: 4px solid var(--lunera-pink-strong);
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
}

/* ===== Product page polish (כללי) ===== */
.template-product .product{
  --media-radius: 18px;
}
.template-product .product__media,
.template-product .product__media-item{
  border-radius: var(--media-radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(61,22,46,.12);
}
.template-product .product__title{
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: .04em;
}
.template-product .price{
  font-weight: 800;
  color: var(--lunera-text-dark);
}
.template-product .product-form .button{
  border-radius: 14px !important;
  border: 1.5px solid rgba(190,93,130,.65) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.22)) !important;
  color: var(--lunera-text-dark) !important;
  font-weight: 800 !important;
  transition: transform .12s ease, box-shadow .25s ease !important;
}
.template-product .product-form .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(190,93,130,.18);
}



/**** LUNERA — Product Page Polish (scoped) ****/
.template-product{
  --pink: #F9B6AF;
  --deep: #5A3C3C;
  --ink:  #3b2140;
  --white: #fff;
  --card: rgba(255,255,255,.85);
  background: var(--pink); /* רקע עמוד מוצר */
}

/* קונטיינר ונשימה */
.template-product .page-width{
  max-width: 1100px;
}
.template-product .product{
  gap: 24px;
  padding-block: clamp(12px, 3vw, 24px);
}

/* מדיה: פינות רכות + צל עדין */
.template-product .product__media,
.template-product .product__media-item{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(61,22,46,.12);
}

/* כרטיס מידע הצדדי */
.template-product .product__info-wrapper,
.template-product .product__info-container{
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(61,22,46,.12);
  padding: clamp(16px, 3.2vw, 28px);
}

/* כותרת מוצר */
.template-product .product__title{
  margin: 0 0 6px;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(90deg, var(--deep), #7a2e4b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-fill-color: transparent;
  text-transform: uppercase;
}

/* מחיר והנחה */
.template-product .price{
  color: var(--ink);
  align-items: baseline;
  gap: 8px;
}
.template-product .price .price-item--regular{
  opacity: .6; text-decoration: line-through;
}
.template-product .price .price-item--sale{
  font-weight: 800;
}


/* ===== PROOF BAR — Desktop full-width, seamless, no HTML/JS changes ===== */
@media (min-width: 990px) {
  /* (1) איפוס זהיר למקרה שנוספו קודם כללי full-bleed על #proof */
  #proof.lunera-proof {
    left: auto; right: auto;
    margin-left: 0; margin-right: 0;
    width: 100%;
  }

  /* (2) הפריסה עצמה: הופכים רק את ה-ticker ל-full-width של המסך, בלי לגעת בסקשן כולו */
  #proof .lunera-proof__ticker {
    position: relative;
    width: 100vw;                /* רוחב מסך מלא */
    left: 50%;
    transform: translateX(-50%); /* ממרכז את הפס בתוך הדף */
    overflow: hidden;            /* מסתיר גלילה אופקית */
  }

  /* מסילת התנועה */
  #proof .lunera-proof__track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;                    /* רוחב לפי התוכן בפועל (2 רצפים) */
    will-change: transform;
    animation: proofMarquee var(--proof-speed, 26s) linear infinite;
  }

  /* כל רצף (UL) — לא נשבר שורות, ותמיד לפחות רוחב מסך אחד
     כדי שלא יהיו "חורים" גם אם יש מעט פריטים */
  #proof .lunera-proof__seq {
    display: inline-flex;
    align-items: center;
    gap: var(--proof-gap, clamp(18px, 2vw, 32px));
    padding-inline: var(--proof-pad-x, 24px);
    margin: 0;
    flex: 0 0 auto;
    min-width: 100vw;                      /* חשוב! לפחות רוחב מסך אחד */
    white-space: nowrap;
  }

  /* פריטים */
  #proof .lunera-proof__item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    font-weight: 600;
    font-size: var(--proof-font, clamp(16px, 1.1vw, 18px));
    line-height: 1.2;
  }

  #proof .lunera-proof__icon { line-height: 1; display: inline-block; }
}

/* האנימציה — כי יש בדיוק שני עותקים זהים, זזים חצי מרוחב המסילה */
@keyframes proofMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* עדינות למי שמעדיף פחות תנועה */
@media (prefers-reduced-motion: reduce) and (min-width: 990px) {
  #proof .lunera-proof__track { animation: none; transform: none; }
}


/* ===== HOW IT WORKS (GIFs) — Desktop only size control ===== */
@media (min-width: 990px) {
  /* כוונונים מהירים — שנה לפי העין */
  section.section-{{ section.id }} {
    --how-card-w: clamp(240px, 22vw, 320px); /* רוחב כל כרטיס */
    --how-media-h: clamp(220px, 28vw, 340px); /* גובה המדיה (וידאו/תמונה) */
    --how-gap: clamp(14px, 2vw, 22px);        /* רווח בין הכרטיסים */
  }

  /* המסילה והלולאות — לשמור על פריסה אופקית יציבה */
  section.section-{{ section.id }} .lunera-how__loop { overflow: hidden; }
  section.section-{{ section.id }} .lunera-how__track {
    display: flex; gap: var(--how-gap);
  }
  section.section-{{ section.id }} .lunera-how__seq {
    display: inline-flex;
    gap: var(--how-gap);
    padding: 0; margin: 0;
    flex: 0 0 auto;           /* לא להימתח */
    white-space: nowrap;
  }

  /* כל כרטיס: רוחב קבוע כדי שהלופ לא "יקפוץ" */
  section.section-{{ section.id }} .lunera-how__item {
    width: var(--how-card-w);
    flex: 0 0 var(--how-card-w);
  }

  /* מסגרת המדיה: גובה ממותן + חיתוך נקי */
  section.section-{{ section.id }} .lunera-how__media {
    width: 100%;
    height: var(--how-media-h);
    border-radius: 16px;
    overflow: hidden;
  }

  /* המדיה עצמה: להתאים למסגרת בלי להתפוצץ */
  section.section-{{ section.id }} .lunera-how__video,
  section.section-{{ section.id }} .lunera-how__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;  /* אם תרצה לראות את כל הפריים: contain */
    display: block;
  }

  /* טקסט תחתון — קטן ונקי בדסקטופ */
  section.section-{{ section.id }} .lunera-how__text { text-align: center; padding-top: 8px; }
  section.section-{{ section.id }} .lunera-how__title { font-size: clamp(16px, 1.2vw, 18px); margin: 0 0 4px; }
  section.section-{{ section.id }} .lunera-how__caption { font-size: clamp(13px, 1vw, 15px); margin: 0; opacity: .85; }
}


/* ===== HOW IT WORKS — Desktop: make videos much shorter ===== */
@media (min-width: 990px) {
  #how .lunera-how__media {
    height: 440px !important;   /* אפשר לשנות ל-120/130/160 לפי העין */
  }

  #how .lunera-how__video,
  #how .lunera-how__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* מציג את כל הפריים גם כשהגובה קטן */
    display: block;
  }
}


/* ===== DEMO — Desktop only: shrink player to ~500px ===== */
@media (min-width: 990px) {
  /* כוונון מהיר: שנה אם תרצה 520/480 וכו' */
  #demo .lunera-demo__player {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 16 / 9;         /* שומר יחס יפה */
    margin-inline: auto;          /* ממורכז */
    position: relative;
    border-radius: 16px;          /* אופציונלי */
    overflow: hidden;             /* אופציונלי, לחיתוך נקי */
  }

  /* הפוסטר/סרטון/סקלטון מתאימים את עצמם למסגרת */
  #demo .lunera-demo__poster,
  #demo .lunera-demo__video,
  #demo .lunera-demo__skeleton {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;  /* רואה את כל הפריים; החלף ל-cover אם אתה רוצה מלא-מלא */
    display: block;
  }

  /* דואג שכפתור הפליי יישאר במרכז גם כשהמסגרת קטנה */
  #demo .lunera-demo__play {
    position: absolute;
    inset: 0;
    margin: auto;
  }
}


/* ===== DEMO — Desktop: bigger player, no black side bars ===== */
@media (min-width: 990px) {
  /* קבע רוחב נוח והסר יחס ASP של 16:9 כדי שהמסגרת תתאים לוידאו האנכי */
  #demo .lunera-demo__player {
    width: clamp(560px, 40vw, 720px);  /* הגדל/הקטן לפי העין */
    max-width: 100%;
    height: auto;
    aspect-ratio: auto !important;     /* מבטל 16/9 אם הוגדר קודם */
    background: transparent !important;/* שלא נראה שחור מאחורי */
    margin-inline: auto;
    position: relative;
    overflow: visible;                  /* שלא ייחתך סתם */
    border-radius: 16px;                /* אופציונלי */
  }

  /* המדיה עצמה מקבלת את רוחב המסגרת וגובה אוטומטי — בלי פסי צד */
  #demo .lunera-demo__poster,
  #demo .lunera-demo__video,
  #demo .lunera-demo__skeleton {
    width: 100% !important;
    height: auto !important;           /* שומר על יחס המקור (אנכי) */
    display: block;
    background: transparent !important;
    object-fit: contain !important;    /* לא חותך כלום; אם תרצה מילוי מלא: cover */
  }

  /* כפתור הפליי נשאר ממורכז מעל המדיה */
  #demo .lunera-demo__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: clamp(48px, 6vw, 72px);
    height: clamp(48px, 6vw, 72px);
  }
}

@media (min-width: 990px) {
  #demo .lunera-demo__player {
    /* קטן יותר מ-520–640: */
    width: clamp(420px, 30vw, 520px) !important;
    height: auto !important;
    aspect-ratio: auto !important;   /* שלא יכפה 16:9 */
    display: inline-block;           /* מסגרת נצמדת למדיה */
    background: transparent !important;
    margin-inline: auto;
    overflow: visible;
    border-radius: 16px;             /* אופציונלי */
  }

  #demo .lunera-demo__poster,
  #demo .lunera-demo__video,
  #demo .lunera-demo__skeleton {
    width: 100% !important;
    height: auto !important;         /* יחס מקורי של הווידאו */
    object-fit: contain !important;  /* בלי חיתוכים ובלי “שחור” בצדדים */
    display: block;
  }

  #demo .lunera-demo__play {
    width: clamp(38px, 4vw, 56px);
    height: clamp(38px, 4vw, 56px);
    position: absolute;
    inset: 0;
    margin: auto;
  }
}

/* ===== DEMO — Desktop: frame hugs the <video> exactly (no extra bottom space) ===== */
@media (min-width: 990px) {
  /* הנגן עצמו הופך לגריד שמדביק את הגובה לתוכן בפועל */
  #demo .lunera-demo__player {
    width: clamp(440px, 32vw, 560px) !important; /* שנה אם צריך */
    display: inline-grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    position: relative;
    padding: 0 !important;
    margin-inline: auto;
    background: transparent !important;
    aspect-ratio: auto !important;  /* לא לכפות יחס */
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    line-height: 0 !important;      /* מונע רווחי baseline */
    border-radius: 16px;             /* אופציונלי */
  }

  /* כל השכבות יושבות אחת על השנייה באותה תאי-גריד */
  #demo .lunera-demo__poster,
  #demo .lunera-demo__video,
  #demo .lunera-demo__skeleton,
  #demo .lunera-demo__play {
    grid-area: 1 / 1;
  }

  /* הווידאו/פוסטר נדבקים למסגרת, בלי חיתוך ובלי “שחור” בצדדים */
  #demo .lunera-demo__poster,
  #demo .lunera-demo__video,
  #demo .lunera-demo__skeleton {
    display: block !important;
    width: 100% !important;
    height: auto !important;        /* שומר יחס מקורי של הקובץ */
    max-height: none !important;
    object-fit: contain !important;  /* אם תרצה מילוי מלא: cover */
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* כפתור פליי נשאר ממורכז ומתכווץ ביחד עם הנגן */
  #demo .lunera-demo__play {
    place-self: center;
    width: clamp(38px, 4vw, 56px);
    height: clamp(38px, 4vw, 56px);
    z-index: 2;
    position: static !important;     /* אין צורך ב-absolute כשהכול בגריד */
  }

  /* אם יש טריק יחס מסך דרך פסבדו-אלמנטים – לכבות אותו */
  #demo .lunera-demo__player::before,
  #demo .lunera-demo__player::after { content: none !important; display: none !important; }
}


/* ===== RESULTS — Desktop: tighter pairs + narrower cards ===== */
@media (min-width: 990px) {
  /* בוררי-ווליום לכיוונון מהיר */
  #results{
    --pair-img-w: clamp(150px, 14vw, 190px); /* רוחב לכל תמונה */
    --pair-gap: 6px;                          /* רווח בין ה-Before וה-After */
    --items-gap: 8px;                         /* רווח בין זוג לזוג במסילה */
    --caption-mt: 6px;
  }

  /* המסילה/הרצפים: רווח קטן יותר בין זוגות */
  #results .lunera-results__track,
  #results .lunera-results__seq{
    display: inline-flex;
    gap: var(--items-gap) !important;
  }

  /* כל כרטיס (li) יהיה בדיוק ברוחב שתי תמונות + הרווח ביניהן */
  #results .lunera-results__item{
    flex: 0 0 auto;
    width: calc((var(--pair-img-w) * 2) + var(--pair-gap)) !important;
    margin: 0 !important;
    padding: 0 !important;          /* מבטל ריפוד שעלול לייצר “אוויר” */
    list-style: none;
  }

  /* בתוך הכרטיס – שתי התמונות צמודות */
  #results .lunera-results__media{
    display: flex;
    gap: var(--pair-gap) !important; /* צמצום הרווח בין Before/After */
    align-items: stretch;
  }
  #results .lunera-results__cell{
    flex: 0 0 var(--pair-img-w);
    width: var(--pair-img-w) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
  }
  #results .lunera-results__cell img{
    display: block;
    width: 100% !important;
    height: auto !important;        /* אם תרצה גובה אחיד – כתוב לי */
    border-radius: 14px;
  }

  /* תגיות/כיתוב – בלי להוסיף רווח אופקי מיותר */
  #results .lunera-results__tag{ margin: 0; }
  #results .lunera-results__caption{ margin-top: var(--caption-mt); }
}
/* ===== RESULTS — Desktop: no outer bubble gap + zoom-out images ===== */
@media (min-width: 990px) {
  /* כוונון מהיר: */
  #results{
    --pair-img-w: clamp(150px, 13vw, 180px); /* רוחב לכל תמונה */
    --pair-gap: 4px;                         /* רווח בין Before/After */
    --items-gap: 0px;                        /* רווח בין כרטיס לכרטיס (מבטל "בועית" מימין) */
    --cell-h: 280px;                         /* גובה התא; נמוך יותר = פחות "זום-אין" */
  }

  /* אין מרווחים ב-UL/מסילה */
  #results .lunera-results__seq{
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex;
    gap: var(--items-gap) !important;
  }
  #results .lunera-results__track{ gap: var(--items-gap) !important; }

  /* הכרטיס (זוג) — בדיוק שתי תמונות + הפער ביניהן, בלי padding */
  #results .lunera-results__item{
    flex: 0 0 auto;
    width: calc((var(--pair-img-w) * 2) + var(--pair-gap)) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* בתוך הכרטיס — התמונות צמודות */
  #results .lunera-results__media{
    display: flex;
    gap: var(--pair-gap) !important;
    align-items: stretch;
  }
  #results .lunera-results__cell{
    position: relative;
    width: var(--pair-img-w) !important;
    flex: 0 0 var(--pair-img-w);
    height: var(--cell-h) !important;      /* קובע גובה קבוע לתאים */
    overflow: hidden;
    border-radius: 14px;                    /* אופציונלי */
  }

  /* "להרחיק את הזום" — מציג את כל התמונה בתא הקבוע */
  #results .lunera-results__cell img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;         /* במקום cover */
    display: block;
    border-radius: inherit;
    background: transparent;
  }

  /* תגיות לא מוסיפות ריווח */
  #results .lunera-results__tag{ margin: 0 !important; }
}


/* ===== PRODUCT MEDIA — Desktop: center the big image ===== */
@media (min-width: 990px) {
  /* ההורה של הבמה */
  #lunera-media-{{ section.id }} .lm-viewer {
    width: 100% !important;
    text-align: center !important;  /* מרכז ילדים inline/inline-block */
  }

  /* הבמה עצמה (התמונה הגדולה) */
  #lunera-media-{{ section.id }} .lm-stage {
    display: inline-block !important; /* כדי ש-text-align יעבוד */
    float: none !important;           /* ליתר ביטחון */
    margin: 0 auto !important;        /* לא חובה אבל לא מזיק */
    width: 100% !important;
    max-width: 680px !important;      /* שנה ל-700/640 לפי העין */
  }
}


