/** Shopify CDN: Minification failed

Line 5224:0 Unexpected "}"
Line 8709:0 Expected "}" to go with "{"

**/
* {
  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;
  --surface-transition-duration: 0.3s;
  --surface-transition-timing: var(--ease-out-quad);
  --submenu-animation-speed: 360ms;
  --submenu-animation-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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;
}

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,
textarea:hover {
  background-color: var(--color-input-hover-background);
}

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

.collection-card,
.featured-blog-posts-card {
  width: 100%;
  position: relative;
  height: 100%;
}

/* Editorial layout */
.resource-list:not(.hidden--desktop) .collection-card--flexible-aspect-ratio,
.resource-list:not(.hidden--desktop) .blog-post-card--flexible-aspect-ratio {
  .collection-card__image,
  .featured-blog-posts-card__image,
  .blog-placeholder-svg {
    aspect-ratio: 99;
    height: 100%;
  }

  .collection-card__inner,
  .featured-blog-posts-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .collection-card__content,
  .featured-blog-posts-card__content {
    flex-shrink: 0;
  }

  &:not(.collection-card--image-bg) .collection-card__content,
  .featured-blog-posts-card__content {
    height: auto;
  }
}

.collection-card__inner,
.featured-blog-posts-card__inner {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: var(--layer-flat);
  pointer-events: none;
}

.collection-card__content,
.featured-blog-posts-card__content {
  display: flex;
  position: relative;
  height: 100%;
  width: 100%;
  gap: var(--gap);
}

.collection-card__link,
.featured-blog-posts-card__link {
  position: absolute;
  inset: 0;

  /* allows focus outline to have radius in supported browsers */
  border-radius: var(--border-radius);
}

.product-card,
.collection-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);
  z-index: var(--layer-flat);
}

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

.product-card__content {
  position: relative;
}

.product-card__content {
  cursor: pointer;
}

@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 .predictive-search-results__card:hover {
    transform: translateY(calc(-1 * var(--hover-lift-amount)));
  }

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

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

  .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 .predictive-search-results__card:hover {
    transform: scale(var(--hover-subtle-zoom-amount));
  }

}

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;
}

.wrap-text {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

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;
  display: flex;
  flex-direction: column;
}

.content-for-layout > .shopify-section:last-child {
  flex-grow: 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), 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) {
  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;
}

@media screen and (max-width: 749px) {
  .section--mobile-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;
}

.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);
}

.icon-default {
  fill: currentColor;
}

[data-placeholder='true'] * {
  cursor: default;
}

/* Base text and heading styles */
body,
.paragraph:not(.button),
.paragraph > *,
.text-block.paragraph :is(h1, h2, h3, h4, h5, h6) {
  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 > *,
.text-block.h1 :is(h1, h2, h3, h4, h5, h6) {
  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 > *,
.text-block.h2 :is(h1, h2, h3, h4, h5, h6) {
  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 > *,
.text-block.h3 :is(h1, h2, h3, h4, h5, h6) {
  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 > *,
.text-block.h4 :is(h1, h2, h3, h4, h5, h6) {
  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 > *,
.text-block.h5 :is(h1, h2, h3, h4, h5, h6) {
  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 > *,
.text-block.h6 :is(h1, h2, h3, h4, h5, 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-secondary)),
.rte :is(p, ul, ol, table):not(.h1, .h2, .h3, .h4, .h5, .h6) a:where(:not(.button, .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;
}

/* When header is transparent, pull the first main content section up to sit under the floating header */
body:has(.header[transparent]) .content-for-layout > .shopify-section:first-child {
  margin-top: calc(var(--header-group-height) * -1);
}

body:has(.header[transparent]) #header-group > .header-section {
  z-index: var(--layer-sticky);
}

/* All other header group content should be beneath the floating header,
but above the rest of the page content */
body:has(.header[transparent]) #header-group > *:not(.header-section) {
  z-index: calc(var(--layer-sticky) - 1);
}

/* 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;
}

[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: move-and-fade;
  --dialog-drawer-closing-animation: move-and-fade;
}

.dialog-drawer--right {
  --dialog-drawer-opening-animation: move-and-fade;
  --dialog-drawer-closing-animation: move-and-fade;
}
/* stylelint-enable value-keyword-case */

.dialog-drawer[open] {
  --start-x: var(--custom-transform-from, 100%);
  --end-x: var(--custom-transform-to, 0px);
  --start-opacity: 1;

  animation: var(--dialog-drawer-opening-animation) var(--animation-speed) var(--animation-easing) forwards;
}

.dialog-drawer[open].dialog-closing {
  --start-x: 0px;
  --end-x: 100%;
  --start-opacity: 1;
  --end-opacity: 1;

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

.dialog-drawer--right[open] {
  --start-x: -100%;
  --start-opacity: 1;
}

.dialog-drawer--right[open].dialog-closing {
  --start-x: 0px;
  --end-x: -100%;
  --start-opacity: 1;
  --end-opacity: 1;

  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-weight: var(--font-paragraph--weight);
  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);
  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);
  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);
  text-transform: var(--button-text-case-primary);
}

textarea,
input:not([type='checkbox'], [type='radio']) {
  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,
.show-more:where([data-expanded='true']) .show-more__button .icon-plus .horizontal {
  transform: rotate(90deg);
}

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);
  }
}

:not(.dialog-zoomed-gallery) > .product-media-container {
  --slide-width: 100%;

  display: flex;
  aspect-ratio: var(--gallery-aspect-ratio, var(--media-preview-ratio));
  max-height: var(--constrained-height);
  width: var(--slide-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;
  }

  @supports (--test: round(up, 100%, 1px)) {
    /* width and overflow forces children to shrink to parent width */
    --slide-width: round(up, 100%, 1px);
  }
}

.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;
  }

  body:has(header-component[transparent]) .product-media-container.constrain-height {
    --viewport-offset: 0px;
  }

  .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;
  }
}

.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;
}

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

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

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

zoom-dialog dialog {
  width: 100vw;
  height: 100vh;
  border: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  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;
}

.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;
}

: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 {
  display: block;
  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);
  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) + 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) + 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));
  }

  &.swatch--variant-image {
    background-size: cover;
  }

  @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);
}

/* Variant option component */
.variant-option {
  --options-border-radius: var(--variant-picker-button-radius);
  --options-border-width: var(--variant-picker-button-border-width);
  --variant-option-padding-inline: var(--padding-md);
}

.variant-option + .variant-option {
  margin-top: var(--padding-lg);
}

.variant-option--swatches {
  --options-border-radius: var(--variant-picker-swatch-radius);

  width: 100%;

  overflow-list::part(list) {
    padding-block: var(--overflow-list-padding-block, 0);
    padding-inline: var(--overflow-list-padding-inline, 0);
  }
}

.variant-option--swatches > overflow-list {
  justify-content: var(--product-swatches-alignment);

  @media screen and (max-width: 749px) {
    justify-content: var(--product-swatches-alignment-mobile);
  }
}

.variant-option--buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin: 0;
  padding: 0;
  border: none;
}

.variant-option--buttons legend {
  padding: 0;
  margin-block-end: var(--margin-xs);
}

.variant-option__swatch-value {
  padding-inline-start: var(--padding-xs);
  color: rgb(var(--color-foreground-rgb) / var(--opacity-70));
}

@media (prefers-reduced-motion: no-preference) {
  .variant-option__button-label,
  .variant-option__select-wrapper,
  .variant-option__button-label::before,
  .variant-option__button-label::after,
  .variant-option__button-label:has([data-previous-checked='true'], [data-current-checked='true'])
    .variant-option__button-label__pill,
  .variant-option__button-label:not(.variant-option__button-label--has-swatch) svg line:last-of-type {
    transition-duration: var(--animation-speed);
    transition-timing-function: var(--animation-easing);
  }

  .variant-option__button-label__pill {
    transition-property: transform;
  }

  .variant-option__button-label:not(.variant-option__button-label--has-swatch) svg line:last-of-type {
    transition-property: clip-path;
  }

  .variant-option__button-label:has([data-previous-checked='true'], [data-current-checked='true'])
    .variant-option__button-label__pill {
    transition-property: transform;
  }

  .variant-option__button-label::after {
    transition-property: clip-path;
  }

  .variant-option__button-label::before {
    transition-property: border-color;
  }

  .variant-option__select-wrapper,
  .variant-option__button-label {
    transition-property: background-color, border-color, color;
  }
}

.variant-option__button-label {
  --variant-picker-stroke-color: var(--color-variant-border);

  cursor: pointer;
  display: flex;
  flex: 0 0 3.25em;
  align-items: center;
  position: relative;
  padding-block: var(--padding-sm);
  padding-inline: var(--padding-lg);
  border: var(--options-border-width) solid var(--color-variant-border);
  border-radius: var(--options-border-radius);
  overflow: clip;
  justify-content: center;
  min-height: 3.25em;
  min-width: fit-content;
  white-space: nowrap;
  background-color: var(--color-variant-background);
  color: var(--color-variant-text);
  gap: 0;

  &:hover,
  &:hover:has([aria-disabled='true']):has([data-option-available='false']) {
    background-color: var(--color-variant-hover-background);
    border-color: var(--color-variant-hover-border);
    color: var(--color-variant-hover-text);
  }

  /* we need something like overflow-clip-margin to use the pseudoelement but it doesn't work in Safari */

  /* so instead use the layered background image trick */
  &:not(.variant-option__button-label--has-swatch):has([data-option-available='false']) {
    border-width: 0;
  }

  /* ::after/::before act as a fake border for the button style variant */

  /* ::after is the unavailable variant border that clips in */
  &:not(.variant-option__button-label--has-swatch)::before,
  &:has([data-option-available='false']):not(.variant-option__button-label--has-swatch)::after {
    content: '';
    position: absolute;
    inset: 0;
    border: var(--options-border-width) solid var(--color-selected-variant-border);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
    clip-path: inset(var(--clip, 0 0 0 0));
  }

  &:has([data-option-available='false']):not(.variant-option__button-label--has-swatch)::before {
    inset: 0;
  }

  &:not(.variant-option__button-label--has-swatch)::before {
    /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
    clip-path: inset(0 0 0 0);
    border-color: var(--color-variant-border);
    inset: calc(var(--options-border-width) * -1);
  }

  &:has(:checked):not(.variant-option__button-label--has-swatch, :has([data-option-available='false']))::before {
    border-color: var(--color-selected-variant-border);
  }

  /* setting left/right accounts for variant buttons of different widths */
  &:not(:has(:checked)):has(~ label > :checked),
  &:has(:checked):has(~ label > [data-previous-checked='true']) {
    .variant-option__button-label__pill {
      right: 0;
      left: unset;
    }
  }

  &:has([data-previous-checked='true']) ~ label:has([data-current-checked='true']),
  &:has(:checked) ~ label {
    .variant-option__button-label__pill {
      left: 0;
      right: unset;
    }
  }

  &:not(:has(:checked)):has(~ label > :checked) {
    --pill-offset: calc(100% + 1px);
  }

  &:has(:checked) ~ label {
    --pill-offset: calc(-100% - 1px);
  }

  &:has([data-current-checked='true']):first-of-type
    ~ label:last-of-type:not(.variant-option__button-label--has-swatch),
  &:not(:has(:checked)):has(~ label > :checked):not(.variant-option__button-label--has-swatch) {
    --clip: 0 0 0 100%;
  }

  &:not(:has([data-current-checked='true'])):first-of-type:has(~ label:last-of-type > :checked):not(
      .variant-option__button-label--has-swatch
    ),
  &:has(:checked) ~ label:not(.variant-option__button-label--has-swatch) {
    --clip: 0 100% 0 0;
  }

  &:has([data-previous-checked='true'], [data-current-checked='true']) .variant-option__button-label__pill {
    width: max(var(--pill-width-current, 100%), var(--pill-width-previous, 100%));
  }

  @media screen and (min-width: 750px) {
    padding: var(--padding-xs) var(--variant-option-padding-inline);
  }
}

/* wrap around only for 3 or more variants in a row */

/* the more complex selector rules here produce the wrap around effect for first/last variants */
.variant-option--buttons:has(:nth-of-type(3)) {
  .variant-option__button-label:has([data-current-checked='true']):first-of-type ~ label:last-of-type {
    --pill-offset: calc(100% + 1px);
  }

  .variant-option__button-label:not(:has([data-current-checked='true'])):first-of-type:has(
      ~ label:last-of-type > :checked
    ) {
    --pill-offset: calc(-100% - 1px);
  }
}

.variant-option__button-label__pill {
  background: var(--color-selected-variant-background);
  position: absolute;
  top: calc(var(--options-border-width) * -1);
  bottom: calc(var(--options-border-width) * -1);
  border-radius: inherit;
  pointer-events: none;
  width: 100%;
  transform: translateX(var(--pill-offset, 0));
}

.variant-option__button-label__text {
  pointer-events: none;
  text-align: start;
  text-wrap: auto;
  z-index: 2;
}

.variant-option--equal-width-buttons {
  --variant-min-width: clamp(44px, calc(var(--variant-option-padding-inline) * 2 + var(--variant-ch)), 100%);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--variant-min-width), 1fr));

  .variant-option__button-label {
    min-width: var(--variant-min-width);
  }

  .variant-option__button-label__text {
    text-align: center;
    text-wrap: balance;
  }
}

.variant-option__button-label:has(:focus-visible) {
  --variant-picker-stroke-color: var(--color-foreground);

  border-color: var(--color-foreground);
  outline: var(--focus-outline-width) solid var(--color-foreground);
  outline-offset: var(--focus-outline-offset);
}

.variant-option__button-label--has-swatch {
  --focus-outline-radius: var(--variant-picker-swatch-radius);

  padding: 0;
  border: none;
  flex-basis: auto;
  min-height: auto;
}

/* Override global label:has(input) display rule with higher specificity */
.variant-option__button-label--has-swatch:has(input) {
  display: block;
}

.variant-option__button-label:has(:checked) {
  color: var(--color-selected-variant-text);
  border-color: var(--color-selected-variant-border);
}

.variant-option__button-label:has(:checked):hover {
  border-color: var(--color-selected-variant-hover-border);
  color: var(--color-selected-variant-hover-text);

  .variant-option__button-label__pill {
    background-color: var(--color-selected-variant-hover-background);
  }
}

.variant-option__button-label:has([data-option-available='false']) {
  color: rgb(var(--color-variant-text-rgb) / var(--opacity-60));
}

.variant-option__button-label--has-swatch:hover {
  outline: var(--focus-outline-width) solid rgb(var(--color-foreground-rgb) / var(--opacity-35-55));
  outline-offset: var(--focus-outline-offset);
}

.variant-option__button-label--has-swatch:has(:checked) {
  --focus-outline: var(--focus-outline-width) solid var(--color-foreground);

  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* 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. **/
  .variant-option__button-label--has-swatch:has(:checked),
  .variant-option__button-label:has(:focus-visible) .swatch {
    outline: none;
    position: relative;
    overflow: visible;
  }

  .variant-option__button-label--has-swatch:has(:checked)::after,
  .variant-option__button-label:has(:focus-visible) .swatch::after {
    content: '';
    position: absolute;
    inset: calc(-1 * var(--focus-outline-offset));
    border: var(--focus-outline);
    border-radius: var(--focus-outline-radius, 50%);
    background-color: transparent;
    display: inherit;
  }
}

.variant-option__button-label:has([data-option-available='false']):has(:checked) {
  background-color: inherit;
  color: rgb(var(--color-variant-text-rgb) / var(--opacity-60));
}

.variant-option__button-label input {
  /* remove the checkbox from the page flow */
  position: absolute;

  /* set the dimensions to match those of the label */
  inset: 0;

  /* hide it */
  opacity: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  background: transparent;
  appearance: auto;
  display: block;
  cursor: pointer;
}

.variant-option__button-label svg {
  position: absolute;
  left: var(--options-border-width);
  top: var(--options-border-width);
  height: calc(100% - (var(--options-border-width) * 2));
  width: calc(100% - (var(--options-border-width) * 2));
  cursor: pointer;
  pointer-events: none;
  stroke-width: var(--style-border-width);
  stroke: var(--variant-picker-stroke-color);
}

.variant-option__button-label:not(.variant-option__button-label--has-swatch) svg {
  stroke: var(--color-variant-border);

  line {
    stroke-width: var(--options-border-width);
  }

  line:last-of-type {
    /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
    clip-path: inset(var(--clip, 0 0 0 0));
    stroke: rgb(var(--color-variant-text-rgb) / 1);
  }
}

.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: min(0.85em, var(--font-paragraph--size));
  color: rgb(var(--color-foreground-rgb) / var(--opacity-subdued-text));
}

.tax-note.tax-note.tax-note {
  font-size: min(0.85em, var(--font-paragraph--size));
  font-weight: var(--font-paragraph--weight);
  color: rgb(var(--color-foreground-rgb) / var(--opacity-subdued-text));
}

.tax-note:empty {
  display: none;
}

product-price.text-block:is(.h1, .h2, .h3, .h4, .h5, .h6) > *:not(.tax-note) {
  margin-block: 0;
}

/* Volume pricing note should match unit-price styling (small, grey text) */
product-price .volume-pricing-note,
product-price.text-block:is(.h1, .h2, .h3, .h4, .h5, .h6) .volume-pricing-note {
  display: block;
  font-family: var(--font-body--family);
  font-weight: normal;
  font-size: var(--font-size--xs);
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  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;
}

.price-item__group {
  display: inline-block;
}

.price-item--sale {
  white-space: nowrap;
}

.price__hidden {
  display: none;
}

form.payment-terms {
  padding-top: 0.5em;
  font-size: min(0.85em, var(--font-paragraph--size));
  font-weight: var(--font-paragraph--weight);
  color: rgb(var(--color-foreground-rgb) / var(--opacity-subdued-text));
}

.installments:not(:has(shopify-payment-terms)) {
  display: none;
}

.card-gallery {
  position: relative;
}

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

/* Hide "Add" button when "Choose" button is shown */
[data-quick-add-button='choose'] add-to-cart-component {
  display: none;
}

/* Hide "Choose" button when "Add" button is shown */
[data-quick-add-button='add'] .quick-add__button--choose {
  display: none;
}
/* Hide quick add button on product images */
.card-gallery .quick-add__button {
  display: none !important;
}

/* 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(--font-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) {
    flex-wrap: var(--flex-wrap-mobile);
    height: auto;

    > .menu {
      flex: 1 1 min-content;
    }

    > .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;
    }

    > .group-block--height-fill {
      height: calc(var(--section-min-height, auto) - var(--section-height-offset, 0px));
    }
  }
}

@media screen and (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;
  font-size: var(--font-paragraph--size);

  &: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) var(--font-heading--spacing);
  }

  :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-top: 50%;
  --checkbox-left: 1.5px;
  --checkbox-offset: 3px;
  --checkbox-path-opacity: 0;
  --checkbox-cursor: pointer;

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

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

  &.checkbox--disabled {
    --checkbox-cursor: not-allowed;
  }
}

.checkbox__input {
  position: absolute;
  opacity: 0;
  margin: 0;
  padding: 0;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  background: transparent;
  appearance: auto;
  display: block;
  cursor: pointer;

  /* 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);
}

/* Radio buttons and checkboxes - shared base styles */
:where(input[type='radio']),
:where(input[type='checkbox']) {
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  aspect-ratio: 1;
  margin: 0;
  margin-inline-end: var(--padding-3xs);
  padding: 0;
  border: var(--checkbox-border);
  appearance: none;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

/* Radio buttons */
input[type='radio'] {
  border-radius: var(--style-border-radius-50);
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

:where(input[type='radio']):checked {
  border-color: var(--color-foreground);
  background: var(--color-background);
}

:where(input[type='radio']):checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--checkbox-size) / 2);
  height: calc(var(--checkbox-size) / 2);
  background: var(--color-foreground);
  border-radius: var(--style-border-radius-50);
  transition: background 0.2s ease;
}

:where(input[type='radio']):disabled {
  border-color: var(--input-disabled-border-color);
  background-color: var(--input-disabled-background-color);
  cursor: not-allowed;
}

:where(input[type='radio']):disabled:checked::after {
  background: var(--input-disabled-background-color);
}

:where(input[type='radio']):not(:disabled):hover {
  border-color: rgb(var(--color-foreground-rgb) / var(--opacity-40-60));
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5));
}

:where(input[type='radio']):not(:disabled):hover:checked {
  border-color: var(--color-foreground);
  background-color: var(--color-background);
}

:where(input[type='radio']):not(:disabled):hover:checked::after {
  background: rgb(var(--color-foreground-rgb) / var(--opacity-85));
}

/* Checkboxes */
:where(input[type='checkbox']) {
  border-radius: var(--checkbox-border-radius);
  background-color: var(--color-background);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

:where(input[type='checkbox']):checked {
  background-color: var(--color-foreground);
  border-color: var(--color-foreground);
}

:where(input[type='checkbox']):checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  background-color: var(--color-background);
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.75439 10.7485L7.68601 14.5888C7.79288 14.7288 7.84632 14.7988 7.91174 14.8242C7.96907 14.8466 8.03262 14.8469 8.09022 14.8253C8.15596 14.8007 8.21026 14.7314 8.31886 14.5927L15.2475 5.74658' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

:where(input[type='checkbox']):not(:disabled):hover {
  border-color: rgb(var(--color-foreground-rgb) / var(--opacity-40-60));
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5));
}

:where(input[type='checkbox']):not(:disabled):hover:checked {
  border-color: var(--color-foreground);
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-85));
}

:where(input[type='checkbox']):disabled {
  background-color: var(--input-disabled-background-color);
  border-color: var(--input-disabled-border-color);
  cursor: not-allowed;
}

:where(input[type='checkbox']):disabled:checked::after {
  background-color: var(--input-disabled-text-color);
}

/* Shared styles for radio buttons and checkboxes */
:where(input[type='radio']) + label,
:where(input[type='checkbox']) + label {
  display: inline;
  vertical-align: middle;
  cursor: pointer;
}

:where(input[type='radio']):disabled + label,
:where(input[type='checkbox']):disabled + label {
  color: var(--input-disabled-text-color);
  cursor: not-allowed;
}

/* Flexbox for labels wrapping radio buttons or checkboxes */
label:has(input[type='radio']),
label:has(input[type='checkbox']) {
  display: inline-flex;
  align-items: center;
  gap: var(--padding-2xs);
  cursor: pointer;
}

label:has(input[type='radio']:disabled),
label:has(input[type='checkbox']:disabled) {
  cursor: not-allowed;
}

/* Override for swatch labels to maintain block display */
.variant-option__button-label--has-swatch:has(input[type='radio']) {
  display: block;
}

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

/* Cart items component */
.cart-items-component {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Cart typography */
.cart-primary-typography {
  font-family: var(--cart-primary-font-family);
  font-style: var(--cart-primary-font-style);
  font-weight: var(--cart-primary-font-weight);
}

.cart-secondary-typography {
  font-family: var(--cart-secondary-font-family);
  font-style: var(--cart-secondary-font-style);
  font-weight: var(--cart-secondary-font-weight);
}

/* 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,
.quick-add-modal .quantity-selector {
  border-radius: var(--style-border-radius-buttons-primary);
}

.product-details .quantity-selector .quantity-minus,
.quick-add-modal .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,
.quick-add-modal .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 {
  --offset-y: 10px;

  position: fixed;
  width: var(--width, 40px);
  height: var(--height, 40px);
  left: 0;
  top: 0;
  z-index: calc(infinity);
  pointer-events: none;
  border-radius: var(--style-border-radius-buttons-primary);
  overflow: hidden;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  opacity: 0;
  background-color: var(--color-foreground);
  translate: var(--start-x, 0) var(--start-y, 0);
  transform: translate(-50%, -50%);
  animation-name: travel-x, travel-y, travel-scale;
  animation-timing-function: var(--x-timing), var(--y-timing), var(--scale-timing);
  animation-duration: 0.6s;
  animation-composition: accumulate;
  animation-fill-mode: both;
}

fly-to-cart.fly-to-cart--main {
  --x-timing: cubic-bezier(0.7, -5, 0.98, 0.5);
  --y-timing: cubic-bezier(0.15, 0.57, 0.9, 1.05);
  --scale-timing: cubic-bezier(0.85, 0.05, 0.96, 1);
}

fly-to-cart.fly-to-cart--quick {
  --x-timing: cubic-bezier(0, -0.1, 1, 0.32);
  --y-timing: cubic-bezier(0, 0.92, 0.92, 1.04);
  --scale-timing: cubic-bezier(0.86, 0.08, 0.98, 0.98);

  animation-duration: 0.6s;
}

fly-to-cart.fly-to-cart--sticky {
  --x-timing: cubic-bezier(0.98, -0.8, 0.92, 0.5);
  --y-timing: cubic-bezier(0.14, 0.56, 0.92, 1.04);
  --scale-timing: cubic-bezier(0.86, 0.08, 0.98, 0.98);
  --radius: var(--style-border-radius-buttons-primary);

  @media screen and (max-width: 749px) {
    --x-timing: cubic-bezier(0.98, -0.1, 0.92, 0.5);
  }

  animation-duration: 0.8s;
}

@keyframes travel-scale {
  0% {
    opacity: var(--start-opacity, 1);
  }

  5% {
    opacity: 1;
  }

  100% {
    border-radius: 50%;
    opacity: 1;
    transform: translate(-50%, calc(-50% + var(--offset-y))) scale(0.25);
  }
}

@keyframes travel-x {
  to {
    translate: var(--travel-x, 0) 0;
  }
}

@keyframes travel-y {
  to {
    translate: 0 var(--travel-y, 0);
  }
}

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

/* Collection Wrapper - Shared layout CSS for collection and search pages */

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

.collection-wrapper {
  @media screen and (min-width: 750px) {
    --facets-vertical-col-width: 6;

    grid-template-columns:
      1fr repeat(
        var(--centered-column-number),
        minmax(0, calc((var(--page-width) - var(--page-margin) * 2) / var(--centered-column-number)))
      )
      1fr;
  }

  @media screen and (min-width: 990px) {
    --facets-vertical-col-width: 5;
  }
}

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

.collection-wrapper:has(.facets--vertical) .facets-block-wrapper--vertical:not(.hidden) ~ .main-collection-grid {
  @media screen and (min-width: 750px) {
    grid-column: var(--facets-vertical-col-width) / var(--full-width-column-number);
  }
}

.collection-wrapper:has(.facets-block-wrapper--vertical:not(#filters-drawer)):has(.collection-wrapper--full-width) {
  @media screen and (min-width: 750px) {
    grid-column: 1 / -1;
    grid-template-columns: 0fr repeat(var(--centered-column-number), minmax(0, 1fr)) 0fr;
  }
}

:is(.collection-wrapper--full-width, .collection-wrapper--full-width-on-mobile)
  [product-grid-view='default']
  .product-grid__card {
  @media screen and (max-width: 749px) {
    padding-inline-start: max(var(--padding-xs), var(--padding-inline-start));
    padding-inline-end: max(var(--padding-xs), var(--padding-inline-end));
  }
}

:is(.collection-wrapper--full-width, .collection-wrapper--full-width-on-mobile)
  [product-grid-view='mobile-single']
  .product-grid__card {
  @media screen and (max-width: 749px) {
    padding-inline-start: max(var(--padding-xs), var(--padding-inline-start));
    padding-inline-end: max(var(--padding-xs), var(--padding-inline-end));
  }
}

/* Make product media go edge-to-edge by using negative margins */
:is(.collection-wrapper--full-width) .card-gallery,
:is(.collection-wrapper--full-width-on-mobile) .card-gallery {
  @media screen and (max-width: 749px) {
    margin-inline-start: calc(-1 * max(var(--padding-xs), var(--padding-inline-start)));
    margin-inline-end: calc(-1 * max(var(--padding-xs), var(--padding-inline-end)));
  }
}

.collection-wrapper--full-width .main-collection-grid__title {
  margin-left: var(--page-margin);
}

.collection-wrapper--full-width-on-mobile .main-collection-grid__title {
  @media screen and (max-width: 749px) {
    margin-left: var(--page-margin);
  }
}

.collection-wrapper--grid-full-width .facets--vertical:not(.facets--drawer) {
  @media screen and (min-width: 750px) {
    padding-inline-start: max(var(--padding-sm), var(--padding-inline-start));
  }
}

.collection-wrapper:has(.product-grid-mobile--large) .facets-mobile-wrapper.facets-controls-wrapper {
  @media screen and (max-width: 749px) {
    display: none;
  }
}

.collection-wrapper:has(> .facets--horizontal) .facets__panel[open] {
  @media screen and (min-width: 750px) {
    z-index: var(--facets-open-z-index);
  }
}

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

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

/* 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 move-and-fade {
  from {
    transform: translate(var(--start-x, 0), var(--start-y, 0));
    opacity: var(--start-opacity, 0);
  }

  to {
    transform: translate(var(--end-x, 0), var(--end-y, 0));
    opacity: var(--end-opacity, 1);
  }
}

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

@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 #000;
    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 screen and (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 screen and (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 Arrow Hover Animation - must stay in base.css for proper CSS cascade */

: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;
  }
}

.section-resource-list,
.section-carousel {
  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;
}

:where(.section-resource-list.section--full-width) product-card[data-product-transition] > .group-block,
:where(.section-carousel.section--full-width) product-card[data-product-transition] > .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;
}

/* 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);
}

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,
.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);
}

.predictive-search-results__inner {
  flex-grow: 1;
  overflow-y: auto;
  padding-block: var(--padding-lg);
  container-type: inline-size;
  color: var(--color-foreground);
}

/* 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%);
  }
}

.product-recommendations {
  display: block;
}

.product-recommendations__skeleton-item {
  aspect-ratio: 3 / 4;
  background-color: var(--color-foreground);
  opacity: var(--skeleton-opacity);
  border-radius: 4px;
}

@media screen and (max-width: 749px) {
  .product-recommendations__skeleton-item:nth-child(2n + 1) {
    display: none;
  }
}

product-recommendations:has([data-has-recommendations='false']) {
  display: none;
}

.add-to-cart-button {
  --text-speed: 0.26;
  --base-delay: calc(var(--text-speed) * 0.25);
  --tick-speed: 0.1;
  --ring-speed: 0.2;
  --check-speed: 0.2;
  --burst-speed: 0.32;
  --step-delay: 3;
  --speed: 1;

  user-select: none;
  transition-property: color, box-shadow, background-color, scale, translate;
  transition-duration: var(--animation-speed);
  transition-timing-function: var(--ease-out-cubic);

  &:active {
    scale: 0.99;
    translate: 0 1px;
  }
}

.add-to-cart-button .svg-wrapper .checkmark-burst {
  width: 30px;
  height: 30px;
}

.add-to-cart-text {
  --atc-opacity: 0;
  --atc-destination: -1em;

  display: flex;
  gap: var(--gap-2xs);
  align-items: center;
  justify-content: center;
  animation-duration: var(--animation-speed);
  animation-timing-function: var(--animation-easing);
  animation-fill-mode: forwards;
  transition: width var(--animation-speed) var(--animation-easing),
    opacity var(--animation-speed) var(--animation-easing);
}

.add-to-cart__added {
  --atc-opacity: 1;
  --atc-destination: 0px;

  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.add-to-cart__added-icon {
  width: 32px;
  height: 32px;
}

[data-added='true'] .add-to-cart-text,
[data-added='true'] .add-to-cart__added {
  animation-name: atc-slide;
}

.checkmark-burst {
  opacity: 0;
  overflow: visible;

  .burst {
    rotate: 20deg;
  }

  .check {
    opacity: 0.2;
    scale: 0.8;
    filter: blur(2px);
    transform: translateZ(0);
  }

  :is(.ring, .line, .check, .burst, .tick) {
    transform-box: fill-box;
    transform-origin: center;
  }

  :is(.line) {
    stroke-dasharray: 1.5 1.5;
    stroke-dashoffset: -1.5;
    translate: 0 -180%;
  }

  g {
    transform-origin: center;
    rotate: calc(var(--index) * (360 / 8) * 1deg);
  }
}

.add-to-cart-button[data-added='true'] .checkmark-burst {
  opacity: 1;
}

.add-to-cart-button[data-added='true'] {
  .check {
    opacity: 1;
    scale: 1;
    filter: blur(0);
  }

  .tick {
    scale: 1.75;
  }

  .ring {
    opacity: 0;
    scale: 1;
  }

  .line {
    stroke-dashoffset: 1.5;
  }

  .add-to-cart-text {
    /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
    clip-path: circle(0% at 50% 50%);
    filter: blur(2px);
    opacity: 0;
    translate: 0 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .add-to-cart-button[data-added='true'] {
    .check {
      transition-property: opacity, scale, filter;
      transition-duration: calc(calc(var(--check-speed) * 1s));
      transition-delay: calc((var(--base-delay) * 1s));
      transition-timing-function: var(--ease-out-quad);
    }

    .tick {
      transition-property: scale;
      transition-duration: calc((calc(var(--tick-speed) * 1s)));
      transition-delay: calc(((var(--base-delay) + (var(--check-speed) * (var(--step-delay) * 1.1))) * 1s));
      transition-timing-function: ease-out;
    }

    .ring {
      transition-property: opacity, scale;
      transition-duration: calc((calc(var(--ring-speed) * 1s)));
      transition-delay: calc(((var(--base-delay) + (var(--check-speed) * var(--step-delay))) * 1s));
      transition-timing-function: var(--ease-out-quad);
    }

    .line {
      transition-property: stroke-dashoffset;
      transition-duration: calc((calc(var(--burst-speed) * 1s)));
      transition-delay: calc(((var(--base-delay) + (var(--check-speed) * var(--step-delay))) * 1s));
      transition-timing-function: var(--ease-out-cubic);
    }
  }

  .add-to-cart-text {
    transition-property: clip-path, opacity, filter, translate;
    transition-duration: calc((var(--text-speed) * 0.6s)), calc((var(--text-speed) * 1s));
    transition-timing-function: ease-out;
  }
}

.add-to-cart-text {
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
  clip-path: circle(100% at 50% 50%);
}

@keyframes atc-slide {
  to {
    opacity: var(--atc-opacity, 1);
    translate: 0px var(--atc-destination, 0px);
  }
}

.mega-menu__media, 
.mega-menu img, 
[class*="mega-menu"] img {
    display: none !important;
}

.mega-menu__media, 
.mega-menu img, 
[class*="mega-menu"] img,
.mega-menu__product,
[class*="mega-menu"] .product-card,
[class*="mega-menu"] [class*="product"] {
    display: none !important;
}

.mega-menu__column a::before,
.mega-menu__column span::before {
  content: "";
  width: 20px;
  height: 22px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Beauty & Wellness */
.mega-menu__column > div:nth-child(1) a::before,
.mega-menu__column > div:nth-child(1) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c2 3 6 5 6 10a6 6 0 0 1-12 0c0-5 4-7 6-10z'/%3E%3Cpath d='M9 14c1.5 1.5 4.5 1.5 6 0'/%3E%3C/svg%3E");
}

/* Home & Kitchen */
.mega-menu__column > div:nth-child(2) a::before,
.mega-menu__column > div:nth-child(2) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

/* Fitness & Recovery */
.mega-menu__column > div:nth-child(3) a::before,
.mega-menu__column > div:nth-child(3) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M6 7v10M18 7v10M3 10v4M21 10v4M6 12h12'/%3E%3C/svg%3E");
}

/* Pet Accessories */
.mega-menu__column > div:nth-child(4) a::before,
.mega-menu__column > div:nth-child(4) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='10' r='2'/%3E%3Ccircle cx='12' cy='7' r='2'/%3E%3Ccircle cx='18' cy='10' r='2'/%3E%3Cpath d='M7 18c1.5-4 8.5-4 10 0 1 3-11 3-10 0z'/%3E%3C/svg%3E");
}

/* Outdoor & Travel */
.mega-menu__column > div:nth-child(5) a::before,
.mega-menu__column > div:nth-child(5) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-2 6-4 2 2-6 4-2z'/%3E%3C/svg%3E");
}

/* Smart Gadgets */
.mega-menu__column > div:nth-child(6) a::before,
.mega-menu__column > div:nth-child(6) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Crect x='7' y='7' width='10' height='10' rx='2'/%3E%3Cpath d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/%3E%3C/svg%3E");
}

/* Decor & Lighting */
.mega-menu__column > div:nth-child(7) a::before,
.mega-menu__column > div:nth-child(7) span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f1f1f' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l2 8H7l2-8z'/%3E%3Cpath d='M12 11v8'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
}

.mega-menu__column span::before {
  display: none !important;
  content: none !important;
}

.mega-menu {
  background: #fff !important;
  padding: 18px 40px !important;
}

.mega-menu__grid {
  display: grid !important;
  grid-template-columns: 420px 1fr !important;
  gap: 48px !important;
  align-items: stretch !important;
  max-width: 1450px !important;
  width: calc(100vw - 90px) !important;
  margin: 0 auto !important;
  padding: 28px 44px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
}

.mega-menu__list {
  grid-column: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.mega-menu__column {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mega-menu__column::before {
  content: "SHOP BY CATEGORY";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.mega-menu__column a,
.mega-menu__column span {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  font-size: 18px !important;
  color: #111 !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.mega-menu__column span::before {
  display: none !important;
  content: none !important;
}

.custom-mega-featured {
  grid-column: 2 !important;
  grid-row: 1 !important;
  border-left: 1px solid #e6e6e6 !important;
  padding-left: 48px !important;
  display: grid !important;
  grid-template-columns: 360px 360px !important;
  gap: 70px !important;
  align-items: center !important;
}

.custom-mega-featured__label {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  margin: 0 0 28px !important;
}

.custom-mega-featured h3 {
  font-size: 30px !important;
  line-height: 1.2 !important;
  margin: 0 0 20px !important;
  font-weight: 400 !important;
}

.custom-mega-desc {
  font-size: 18px !important;
  line-height: 1.65 !important;
  margin: 0 0 28px !important;
  color: #111 !important;
}

.custom-mega-featured__text a {
  display: inline-block !important;
  background: #1f7ae0 !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-size: 16px !important;
}

.custom-mega-featured__image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.custom-mega-featured__image img {
  width: 320px !important;
  max-width: 320px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media screen and (min-width: 750px) {
  div:has(> img.image-block__image[src*="5ec0e1a"]) {
    display: none !important;
  }
}

.custom-no-products-found {
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(var(--color-foreground), 0.7);
  text-align: center;
}

predictive-search.custom-no-products-state .predictive-search__button,
predictive-search.custom-no-products-state .predictive-search__item--term,
predictive-search.custom-no-products-state a[href*="/search"],
predictive-search.custom-no-products-state button[type="submit"] {
  display: none !important;
}

.custom-search-placeholder {
  padding: 40px 20px;
  font-size: 14px;
  color: rgba(var(--color-foreground), 0.7);
  text-align: center;
}

.healyfix-search-empty-state {
  min-height: 260px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.healyfix-search-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(0, 132, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.healyfix-search-empty-icon svg {
  width: 28px;
  height: 28px;
  color: #007aff;
}

.healyfix-search-empty-state h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.healyfix-search-empty-state p {
  margin: 0;
  font-size: 13px;
  color: rgba(var(--color-foreground), 0.65);
}

/* HealyFix predictive search product item */
.predictive-search-results__wrapper-products {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 8px 18px 14px !important;
}

.healyfix-search-product-item {
  list-style: none !important;
  margin: 0 !important;
  width: 100% !important;
}

.healyfix-search-product-link {
  display: grid !important;
  grid-template-columns: 56px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: inherit !important;
}

.healyfix-search-product-link:hover {
  background: rgba(0, 122, 255, 0.06) !important;
}

.healyfix-search-product-image {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
  background: #f4f6f8 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.healyfix-search-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.healyfix-search-product-info {
  min-width: 0 !important;
}

.healyfix-search-product-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: rgb(var(--color-foreground)) !important;
  margin: 0 0 4px !important;
}

.healyfix-search-product-price {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(var(--color-foreground), 0.75) !important;
}

/* Healyfix final centered search input */
body:has(.healyfix-search-heading) .healyfix-search-input-center {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 28px auto 46px !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center > * {
  width: 520px !important;
  max-width: 520px !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center form,
body:has(.healyfix-search-heading) .healyfix-search-input-center search-form,
body:has(.healyfix-search-heading) .healyfix-search-input-center .search-input,
body:has(.healyfix-search-heading) .healyfix-search-input-center .field,
body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
  width: 520px !important;
  max-width: 520px !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
  height: 56px !important;
  min-height: 56px !important;
  border-radius: 12px !important;
  border: 1px solid #d5dce5 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

@media screen and (max-width: 749px) {
  body:has(.healyfix-search-heading) .healyfix-search-input-center {
    padding: 0 18px !important;
  }

  body:has(.healyfix-search-heading) .healyfix-search-input-center > *,
  body:has(.healyfix-search-heading) .healyfix-search-input-center form,
  body:has(.healyfix-search-heading) .healyfix-search-input-center search-form,
  body:has(.healyfix-search-heading) .healyfix-search-input-center .search-input,
  body:has(.healyfix-search-heading) .healyfix-search-input-center .field,
  body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Disable product image change on hover */
.product-grid__item img:nth-of-type(2),
.product-grid__item .media img + img,
.product-grid__item .card__media img + img,
.product-grid__item .product-card__media img + img,
.product-grid__item .product-card__image-wrapper img + img,
.product-grid__item .secondary-image,
.product-grid__item .hover-image,
.product-grid__item [class*="secondary"],
.product-grid__item [class*="hover"] img {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.product-grid__item:hover img:first-of-type,
.product-grid__item:hover .media img:first-child,
.product-grid__item:hover .card__media img:first-child,
.product-grid__item:hover .product-card__media img:first-child {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* =========================
   HEALYFIX SEARCH PAGE FINAL OVERRIDE
   Paste at the very bottom of base.css
========================= */

/* Search header center and size */
body:has(.healyfix-search-heading) .search-page__header,
body:has(.healyfix-search-heading) .healyfix-search-heading {
  max-width: 760px !important;
  margin: 24px auto 28px !important;
  padding: 0 20px !important;
  text-align: center !important;
}

body:has(.healyfix-search-heading) .healyfix-search-heading h1 {
  font-size: 42px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  margin: 0 0 8px !important;
  color: #0f172a !important;
}

body:has(.healyfix-search-heading) .healyfix-search-heading p {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #64748b !important;
  margin: 0 0 28px !important;
}

/* Search input centered */
body:has(.healyfix-search-heading) .healyfix-search-input-center {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center form,
body:has(.healyfix-search-heading) .healyfix-search-input-center search-form,
body:has(.healyfix-search-heading) .healyfix-search-input-center .search-input,
body:has(.healyfix-search-heading) .healyfix-search-input-center .field,
body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
  width: 520px !important;
  max-width: 520px !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
  height: 56px !important;
  min-height: 56px !important;
  border-radius: 12px !important;
  border: 1px solid #d5dce5 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

/* Mobile */
@media screen and (max-width: 749px) {
  body:has(.healyfix-search-heading) .healyfix-search-heading h1 {
    font-size: 32px !important;
  }

  body:has(.healyfix-search-heading) .healyfix-search-input-center form,
  body:has(.healyfix-search-heading) .healyfix-search-input-center search-form,
  body:has(.healyfix-search-heading) .healyfix-search-input-center .search-input,
  body:has(.healyfix-search-heading) .healyfix-search-input-center .field,
  body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Final search input centering */
body:has(.healyfix-search-heading) .healyfix-search-input-center {
  width: 100% !important;
  max-width: 520px !important;
  margin: 28px auto 46px !important;
  display: block !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center * {
  max-width: 100% !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center input[type="search"] {
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
}

/* Reduce gap between heading/count and search bar */
body:has(.healyfix-search-heading) .healyfix-search-heading {
  margin-bottom: 18px !important;
}

body:has(.healyfix-search-heading) .healyfix-search-heading p {
  margin-bottom: 12px !important;
}

body:has(.healyfix-search-heading) .healyfix-search-input-center {
  margin-top: 12px !important;
  margin-bottom: 34px !important;
}

/* Reduce gap between search bar and filters/results */
body:has(.healyfix-search-heading) .search-page__header {
  margin-bottom: 34px !important;
}

/* HEALYFIX FINAL MOBILE SEARCH GRID FIX */
@media screen and (max-width: 749px) {
  results-list,
  results-list .product-grid-container,
  results-list #ResultsList,
  results-list .main-collection-grid,
  results-list .collection-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: visible !important;
  }

  results-list .product-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  results-list .product-grid__item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  results-list product-card,
  results-list .product-card,
  results-list .card,
  results-list .product-card__content,
  results-list .card__content,
  results-list .card-information {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  results-list .card-gallery,
  results-list .media,
  results-list .card__media,
  results-list .product-card__media,
  results-list .product-card__image,
  results-list .product-card__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
  }

  results-list picture,
  results-list img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
  }

  results-list .card-gallery img,
  results-list .media img,
  results-list .card__media img,
  results-list .product-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  results-list a,
  results-list h3,
  results-list .card__heading,
  results-list .product-card__title,
  results-list .card-information__text,
  results-list .price,
  results-list .price-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media screen and (min-width: 990px) {
  body:has(.healyfix-search-heading) .collection-wrapper {
    --facets-vertical-col-width: 4;
  }
}

/* Healyfix Store hero + category chips */
.healyfix-store-hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 24px 18px;
}

.healyfix-store-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #07122b;
}

.healyfix-store-hero p {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.5;
  color: #4d5a70;
}

.healyfix-store-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.healyfix-store-categories::-webkit-scrollbar {
  display: none;
}

.healyfix-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d8e3f3;
  border-radius: 999px;
  background: #fff;
  color: #07122b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 36, 69, 0.04);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.healyfix-store-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #006eff;
  font-size: 15px;
  line-height: 1;
}

.healyfix-store-chip:hover,
.healyfix-store-chip.is-active {
  border-color: #006eff;
  color: #006eff;
  background: #f7fbff;
  box-shadow: 0 10px 26px rgba(0, 110, 255, 0.10);
}

.healyfix-store-chip:hover {
  transform: translateY(-1px);
}

@media screen and (max-width: 749px) {
  .healyfix-store-hero {
    padding: 24px 18px 14px;
  }

  .healyfix-store-hero h1 {
    font-size: 32px;
  }

  .healyfix-store-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .healyfix-store-categories::-webkit-scrollbar {
    display: none;
  }

  .healyfix-store-chip {
    flex: 0 0 auto;
  }
}

/* Healyfix product card bottom buttons */
.product-grid__item product-form-component,
.product-grid__item .product-form-buttons,
.product-grid__item .buy-buttons {
  width: 100%;
}

.product-grid__item .product-form-buttons button:not(.quick-add__button),
.product-grid__item .add-to-cart-button:not(.quick-add__button),
.product-grid__item button[name="add"]:not(.quick-add__button) {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #006eff;
  background: #ffffff;
  color: #006eff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  box-shadow: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-grid__item .product-form-buttons button:not(.quick-add__button):hover,
.product-grid__item .add-to-cart-button:not(.quick-add__button):hover,
.product-grid__item button[name="add"]:not(.quick-add__button):hover {
  background: #006eff;
  color: #ffffff;
  border-color: #006eff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 110, 255, 0.18);
}

.product-grid__item .product-form-buttons button[disabled]:not(.quick-add__button),
.product-grid__item .add-to-cart-button[disabled]:not(.quick-add__button),
.product-grid__item button[name="add"][disabled]:not(.quick-add__button) {
  background: #eef2f7;
  border-color: #d8e0ea;
  color: #8b96a8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Hide icon inside product card add-to-cart button */
.product-grid__item .product-form-buttons button:not(.quick-add__button) svg,
.product-grid__item .add-to-cart-button:not(.quick-add__button) svg,
.product-grid__item button[name="add"]:not(.quick-add__button) svg {
  display: none !important;
}

/* Center add-to-cart text after hiding icon */
.product-grid__item .product-form-buttons button:not(.quick-add__button),
.product-grid__item .add-to-cart-button:not(.quick-add__button),
.product-grid__item button[name="add"]:not(.quick-add__button) {
  justify-content: center !important;
  text-align: center !important;
  gap: 0 !important;
}

/* Remove empty icon space inside product card add-to-cart button */
.product-grid__item .product-form-buttons button:not(.quick-add__button) .svg-wrapper,
.product-grid__item .product-form-buttons button:not(.quick-add__button) .icon,
.product-grid__item .product-form-buttons button:not(.quick-add__button) [class*="icon"],
.product-grid__item .add-to-cart-button:not(.quick-add__button) .svg-wrapper,
.product-grid__item .add-to-cart-button:not(.quick-add__button) .icon,
.product-grid__item .add-to-cart-button:not(.quick-add__button) [class*="icon"],
.product-grid__item button[name="add"]:not(.quick-add__button) .svg-wrapper,
.product-grid__item button[name="add"]:not(.quick-add__button) .icon,
.product-grid__item button[name="add"]:not(.quick-add__button) [class*="icon"] {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.product-grid__item .product-form-buttons button:not(.quick-add__button),
.product-grid__item .add-to-cart-button:not(.quick-add__button),
.product-grid__item button[name="add"]:not(.quick-add__button) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding-inline: 16px !important;
}

.product-grid__item .product-form-buttons button:not(.quick-add__button) span,
.product-grid__item .add-to-cart-button:not(.quick-add__button) span,
.product-grid__item button[name="add"]:not(.quick-add__button) span {
  margin: 0 auto !important;
  text-align: center !important;
}

/* Healyfix mobile product card fix */
@media screen and (max-width:749px){
  .product-grid>li{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    padding:10px!important;
  }

  .product-grid .hf-card-actions{
    position:static!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 38px!important;
    gap:8px!important;
    width:100%!important;
    margin-top:22px!important;
    align-items:center!important;
  }

  .product-grid .hf-cart-wrap{
    width:100%!important;
    min-width:0!important;
  }

  .product-grid .hf-cart-wrap button,
  .product-grid .hf-cart-wrap .button{
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 8px!important;
  }

  .product-grid button.hf-save-btn{
    position:static!important;
    top:auto!important;
    right:auto!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:44px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #006fff!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#006fff!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .product-grid button.hf-save-btn::before{
    width:11px!important;
    height:15px!important;
    background:currentColor!important;
  }

  .product-grid button.hf-save-btn:hover,
  .product-grid button.hf-save-btn.is-saved{
    background:#006fff!important;
    border-color:#006fff!important;
    color:#fff!important;
  }

  .product-grid>li img{
    display:block!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* Healyfix mobile button alignment */
@media screen and (max-width:749px){
  .product-grid>li{
    display:flex!important;
    flex-direction:column!important;
  }

  .product-grid .hf-card-actions{
    margin-top:auto!important;
    padding-top:18px!important;
  }
}

/* Healyfix mobile product card structure fix */
@media screen and (max-width:749px){
  .product-grid > li,
  .product-grid product-card{
    height:100%!important;
  }

  .product-grid product-card{
    display:flex!important;
    flex-direction:column!important;
  }

  .product-grid product-card > a.contents{
    display:block!important;
  }

  .product-grid product-card product-form-component,
  .product-grid product-card .product-form-buttons{
    margin-top:auto!important;
    width:100%!important;
  }

  .product-grid product-card .hf-card-actions{
    margin-top:18px!important;
  }

  .product-grid product-card .hf-cart-wrap button,
  .product-grid product-card .hf-cart-wrap .button{
    font-size:11px!important;
    padding:0 6px!important;
  }
}

/* Healyfix hide product card badges on collection grid */
.product-grid .product-badges,
.product-grid .product-badges__badge {
  display: none !important;
}

/* Healyfix hide product card gallery arrows */
.product-grid .slideshow-control,
.product-grid .slideshow-control--previous,
.product-grid .slideshow-control--next {
  display: none !important;
}

/* Healyfix desktop filters sidebar */
@media screen and (min-width: 990px) {
  .facets__filters-wrapper {
    background: #fff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .facets--filters-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
    font-weight: 700 !important;
  }
}

  .facets__item {
    border-bottom: 1px solid #eef2f7 !important;
    padding: 0 0 16px 0 !important;
    margin-bottom: 16px !important;
  }

  .facets__item:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .facets__summary {
    padding: 0 !important;
    margin-bottom: 12px !important;
  }

  .facets__label {
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .checkbox__label-text,
  .facets__inputs label {
    font-size: 14px !important;
  }

  .facets__inputs {
    gap: 8px !important;
  }
}

/* Healyfix active filter chip styling */
@media screen and (min-width: 990px) {
  .facets-remove {
    margin: 0 0 12px 0 !important;
  }

  .facets__pill,
  .facets-remove__pill {
    background: #f3f6fb !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
}

/* Healyfix move desktop product grid closer to filters */
@media screen and (min-width: 990px) {
  body.template-search ul.product-grid.product-grid--main {
    margin: 0 40px 0 -150px !important;
  }
}

/* Healyfix trust bar collection styling */
.healyfix-trust-bar {
  width: min(92vw, 1600px) !important;
  max-width: 1600px !important;
  margin: 56px auto 56px auto !important;
  padding: 26px 64px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.healyfix-trust-item {
  flex: 1 1 0 !important;
  justify-content: center !important;
  gap: 18px !important;
}

.healyfix-trust-icon,
.healyfix-trust-icon svg {
  width: 34px !important;
  height: 34px !important;
  color: #0f172a !important;
  stroke: #0f172a !important;
  stroke-width: 2.2 !important;
}

.healyfix-trust-item strong,
.healyfix-trust-item b {
  color: #0f172a !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

.healyfix-trust-item span,
.healyfix-trust-item p {
  color: #526174 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

/* header icons hover */
.header a[href*="/search"],
.header a[href*="/account"],
.header a[href*="/cart"],
.header__icon,
.header-actions a,
.header-actions button,
.header-actions__action,
a[href*="/account"] {
  transition: color 0.22s ease, transform 0.22s ease !important;
}

.header a[href*="/search"]:hover,
.header a[href*="/account"]:hover,
.header a[href*="/cart"]:hover,
.header__icon:hover,
.header-actions a:hover,
.header-actions button:hover,
.header-actions__action:hover,
a[href*="/account"]:hover {
  color: #005BFF !important;
  transform: translateY(-1px) scale(1.04) !important;
}

.header a[href*="/search"]:hover svg,
.header a[href*="/account"]:hover svg,
.header a[href*="/cart"]:hover svg,
.header__icon:hover svg,
.header-actions a:hover svg,
.header-actions button:hover svg,
.header-actions__action:hover svg,
a[href*="/account"]:hover svg {
  color: #005BFF !important;
  stroke: #005BFF !important;
}

/* Healyfix desktop filters sidebar */
@media screen and (min-width: 990px) {
  .facets__filters-wrapper {
    background: #fff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .facets--filters-title {
    display: block !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
    font-weight: 700 !important;
  }
}

/* Healyfix custom Clear all in filters */
@media screen and (min-width: 990px) {
  .facets,
  .facets__form-wrapper {
    position: relative !important;
  }

  .hf-clear-all-wrap {
    position: absolute !important;
    top: -52px !important;
    right: 130px !important;
    z-index: 7 !important;
  }

  .hf-clear-all-link {
    color: #006fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 0 !important;
    min-height: auto !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
  }

  .hf-clear-all-link:hover {
    text-decoration: underline !important;
  }

  .facets-remove .facets__pill,
  .facets-remove .facets-remove__pill {
    display: none !important;
  }
}

/* Healyfix Sort dropdown styling */
@media screen and (min-width: 990px) {
  .sorting-filter .facets__summary {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 8px !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
  }

  .sorting-filter .facets__summary:hover {
    border-color: #006fff !important;
    color: #006fff !important;
    background: #f8fbff !important;
    transform: translateY(-1px) !important;
  }

  .sorting-filter .facets__summary:hover .facets__label,
  .sorting-filter .facets__summary:hover .icon-caret,
  .sorting-filter .facets__summary:hover svg {
    color: #006fff !important;
    stroke: #006fff !important;
  }

  .sorting-filter .facets__label {
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .sorting-filter .icon-caret,
  .sorting-filter .icon-caret svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Healyfix grid/list view buttons */
@media screen and (min-width: 990px) {
  .column-options-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .column-options__option {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 8px !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease !important;
  }

  .column-options__option:hover {
    background: #f8fbff !important;
    border-color: #006fff !important;
    color: #006fff !important;
    transform: translateY(-1px) !important;
  }

  .column-options__option:hover .column-picker,
  .column-options__option:hover svg {
    color: #006fff !important;
    stroke: #006fff !important;
  }

  .column-options__option:has(.column-options__option-input:checked) {
    background: #eef6ff !important;
    border-color: #006fff !important;
    color: #006fff !important;
  }

  .column-options__option:has(.column-options__option-input:checked) .column-picker,
  .column-options__option:has(.column-options__option-input:checked) svg {
    color: #006fff !important;
    stroke: #006fff !important;
  }

  .column-options__option-input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .column-picker {
    color: inherit !important;
    transition: color 0.2s ease, stroke 0.2s ease !important;
  }
}

/* Healyfix collection controls final polish */
@media screen and (min-width: 990px) {
  /* Move Sort slightly down to align with count and grid buttons */
  .sorting-filter {
  transform: translateY(7px) !important;
}

  /* Sort dropdown hover styling */
  .sorting-filter [role="listbox"] [role="option"],
  .sorting-filter [role="listbox"] button,
  .sorting-filter floating-panel-component [role="option"],
  .sorting-filter floating-panel-component button,
  .sorting-filter .facets__option,
  .sorting-filter .facets__status {
    transition: color 0.18s ease, background 0.18s ease !important;
  }

  .sorting-filter [role="listbox"] [role="option"]:hover,
  .sorting-filter [role="listbox"] button:hover,
  .sorting-filter floating-panel-component [role="option"]:hover,
  .sorting-filter floating-panel-component button:hover,
  .sorting-filter .facets__option:hover {
    color: #005BFF !important;
    background: #f8fbff !important;
  }

  .sorting-filter [role="listbox"] [role="option"]:hover svg,
  .sorting-filter [role="listbox"] button:hover svg,
  .sorting-filter floating-panel-component [role="option"]:hover svg,
  .sorting-filter floating-panel-component button:hover svg,
  .sorting-filter .facets__option:hover svg {
    color: #005BFF !important;
    stroke: #005BFF !important;
  }

  /* Selected sort option checkmark blue */
  .sorting-filter [aria-selected="true"],
  .sorting-filter [aria-current="true"],
  .sorting-filter [data-selected="true"] {
    color: #005BFF  !important;
  }

  .sorting-filter [aria-selected="true"] svg,
  .sorting-filter [aria-current="true"] svg,
  .sorting-filter [data-selected="true"] svg {
    color: #005BFF !important;
    stroke: #005BFF !important;
  }

/* Healyfix collection page top spacing fix */
main > .shopify-section:first-child .spacing-style.section-content-wrapper {
  padding-block-start: 0px !important;
  padding-top: 0px !important;
}

/* Search page old header menu normal state fix */
.healyfix-search-header nav a,
.healyfix-search-header nav a *,
.healyfix-search-header .header__menu-item,
.healyfix-search-header .header__menu-item *,
.healyfix-search-header .header-menu,
.healyfix-search-header .header-menu *,
.healyfix-search-header header-menu,
.healyfix-search-header header-menu * {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Healyfix header menu hover fix - keep all items visible */
.header nav a,
.header nav a *,
.header__menu-item,
.header__menu-item * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* When hovering menu, keep OTHER items visible */
.header nav:hover a:not(:hover),
.header nav:hover a:not(:hover) *,
.header nav:hover .header__menu-item:not(:hover),
.header nav:hover .header__menu-item:not(:hover) * {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Blue only on hovered item */
.header nav a:hover,
.header nav a:hover *,
.header__menu-item:hover,
.header__menu-item:hover * {
  color: #005BFF !important;
  -webkit-text-fill-color: #005BFF !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Underline only on hovered item */
.header nav a:hover {
  text-decoration-line: underline !important;
  text-decoration-color: #005BFF !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 8px !important;
}

/* Healyfix mega menu Shop Best Sellers button fix */
.header nav .custom-mega-featured__text > a[href="/collections/all"],
.header nav .custom-mega-featured__text > a[href="/collections/all"]:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  background-color: #005BFF !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Healyfix mega menu featured text restore */
.header nav .custom-mega-featured__text .custom-mega-featured__label,
.header nav .custom-mega-featured__text h3,
.header nav .custom-mega-featured__text .custom-mega-desc,
.header nav .custom-mega-featured__text p:not(.custom-mega-featured__label) {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  text-decoration: none !important;
}

/* Healyfix collection product image zoom only - exact */
#shopify-section-template--19777916993619__main .product-grid .product-media-container,
#shopify-section-template--19777916993619__main .product-grid .product-media {
  overflow: hidden !important;
}

#shopify-section-template--19777916993619__main .product-grid .product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  transform-origin: center center !important;
}

/* ============================================
   HEALYFIX COLLECTIONS PAGE - FINAL DESIGN
============================================ */

/* Remove gap between chips and filters */
main[data-template="collection"] .section-content-wrapper,
main[data-template="collection"] .spacing-style {
  padding-block-start: 0 !important;
  padding-top: 0 !important;
}

.healyfix-store-hero {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ── FILTER SIDEBAR ── */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .facets__filters-wrapper {
    background: #fff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 20px 18px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05) !important;
  }

  main[data-template="collection"] .facets--filters-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 16px !important;
    display: block !important;
  }

  main[data-template="collection"] .facets__item {
    border-bottom: 1px solid #eef2f7 !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
  }

  main[data-template="collection"] .facets__item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  main[data-template="collection"] .facets__label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
  }

  main[data-template="collection"] .checkbox__label-text,
  main[data-template="collection"] .facets__inputs label {
    font-size: 13px !important;
    color: #374151 !important;
  }
}

/* — PRODUCT GRID — */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .product-grid {
    margin-left: 0 !important;
    gap: 16px !important;
  }

  /* Product card */
  main[data-template="collection"] .product-grid > li {
    background: #fff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 8px !important;
    overflow: hidden !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease !important;
  }

  main[data-template="collection"] .product-grid > li:hover {
    box-shadow: 0 8px 24px rgba(15,23,42,0.09) !important;
    transform: translateY(-2px) !important;
  }

  /* Product image area */
  main[data-template="collection"] .product-grid__item .card-gallery,
  main[data-template="collection"] .product-grid__item .media,
  main[data-template="collection"] .product-grid__item .card__media,
  main[data-template="collection"] .product-grid__item .product-card__media,
  main[data-template="collection"] .product-grid__item .product-card__image-wrapper {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
  }

  main[data-template="collection"] .product-grid__item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    display: block !important;
    border-radius: 10px !important;
  }

  /* Product name */
  main[data-template="collection"] .product-grid__item h2,
  main[data-template="collection"] .product-grid__item h3,
  main[data-template="collection"] .product-grid__item .card__heading,
  main[data-template="collection"] .product-grid__item .product-card__title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
  }

  /* Price */
  main[data-template="collection"] .product-grid__item .price,
  main[data-template="collection"] .product-grid__item .price-item {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
  }
}

/* ── SORT BAR ALIGNMENT ── */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .facets__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
  }

  main[data-template="collection"] .sorting-filter {
    transform: none !important;
  }
}

/* — MOBILE — */
@media screen and (max-width: 749px) {
  main[data-template="collection"] .product-grid {
    gap: 14px 10px !important;
    margin-left: 0 !important;
  }

  main[data-template="collection"] .product-grid > li {
    background: #ffffff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 7px !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 0 !important;
  }

  main[data-template="collection"] .product-grid > li product-card,
  main[data-template="collection"] .product-grid > li .product-card {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  main[data-template="collection"] .product-card__content {
    padding: 0 !important;
    gap: 0 !important;
  }

  main[data-template="collection"] .product-grid__item .card-gallery,
  main[data-template="collection"] .product-grid__item .media,
  main[data-template="collection"] .product-grid__item .card__media,
  main[data-template="collection"] .product-grid__item .product-card__media,
  main[data-template="collection"] .product-grid__item .product-card__image-wrapper {
    height: 158px !important;
    min-height: 158px !important;
    max-height: 158px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
  }

  main[data-template="collection"] .product-grid__item img {
    width: auto !important;
    height: auto !important;
    max-width: 96% !important;
    max-height: 145px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: scale(1.35) !important;
    display: block !important;
    border-radius: 0 !important;
  }

  main[data-template="collection"] .product-grid__item h2,
  main[data-template="collection"] .product-grid__item h3,
  main[data-template="collection"] .product-grid__item .card__heading,
  main[data-template="collection"] .product-grid__item .product-card__title,
  main[data-template="collection"] .product-grid__item p[role="heading"],
  main[data-template="collection"] .product-grid__item [ref="productTitleLink"] {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: #111827 !important;
    margin: 0 0 4px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  main[data-template="collection"] .product-grid__item .price,
  main[data-template="collection"] .product-grid__item .price-item,
  main[data-template="collection"] .product-grid__item product-price {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
  }

  main[data-template="collection"] .product-grid__item form[action*="/cart/add"] button,
  main[data-template="collection"] .product-grid__item button[name="add"] {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #006eff !important;
    border: 1.5px solid #006eff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  main[data-template="collection"] .product-grid__item form[action*="/cart/add"] button *,
  main[data-template="collection"] .product-grid__item button[name="add"] * {
    color: #006eff !important;
  }
}

/* ============================================
   HEALYFIX COLLECTIONS - TARGETED FIXES
============================================ */

/* Kill the big gap between chips section and filters */
main[data-template="collection"] .shopify-section:first-child .spacing-style,
main[data-template="collection"] .shopify-section:first-child .section-content-wrapper {
  padding-block-end: 0 !important;
  padding-bottom: 0 !important;
}

/* Also reduce the facets top padding */
.facets.facets--vertical.spacing-style {
  --padding-block-start: 16px !important;
  padding-block-start: 16px !important;
}

/* Filter sidebar border box */
.facets__filters-wrapper {
  background: #fff !important;
  border: 1px solid #e5eaf3 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05) !important;
  box-sizing: border-box !important;
}

/* Fix images - show full product */
main[data-template="collection"] .product-grid__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* Fix grid margin */
main[data-template="collection"] .product-grid {
  margin-left: 0 !important;
}

/* Fix cropped product images on collection page */
#shopify-section-template--19777916993619__main .product-grid > li img {
  object-fit: contain !important;
  transform: none !important;
  object-position: center center !important;
}

/* Fix filter sidebar border */
#shopify-section-template--19777916993619__main ~ * .facets__filters-wrapper,
.facets__filters-wrapper {
  background: #fff !important;
  border: 1px solid #e5eaf3 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05) !important;
  box-sizing: border-box !important;
}

/* Product image - make bigger without breaking slideshow */
main[data-template="collection"] .product-grid__item .product-media-fit,
main[data-template="collection"] .product-grid__item .product-media-container {
  min-height: 280px !important;
height: 280px !important;
}

main[data-template="collection"] .product-grid__item .product-media-container img,
main[data-template="collection"] .product-grid__item .product-media img {
  object-fit: contain !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* ============================================
   HEALYFIX COLLECTIONS - FULL LAYOUT FIX
============================================ */

/* 1. Reduce top padding on hero section */
.healyfix-store-hero {
  padding-top: 16px !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* 2. Kill gap between chips and filters */
main[data-template="collection"] .shopify-section:first-child .section-content-wrapper,
main[data-template="collection"] .shopify-section:first-child .spacing-style {
  padding-block-end: 0 !important;
  padding-bottom: 0 !important;
}

.facets.facets--vertical.spacing-style {
  padding-block-start: 12px !important;
}

/* 3. Filter sidebar - visible border box */
.facets__filters-wrapper {
  background: #fff !important;
  border: 1px solid #e5eaf3 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* 4. Filters title */
.facets--filters-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 16px !important;
}

/* 5. Pull results count + sort up close to chips */
.facets__header,
.collection-filters-toolbar {
  padding-block-start: 0 !important;
  margin-block-start: 0 !important;
}

/* 6. Product grid - remove left margin, tighten up */
main[data-template="collection"] .product-grid {
  margin-left: 0 !important;
  margin-top: 0 !important;
}

/* 7. Collection wrapper tighter */
main[data-template="collection"] .collection-wrapper {
  gap: 20px !important;
  padding-block-start: 0 !important;
  align-items: flex-start !important;
}

/* Force filter sidebar border visible */
.facets__filters-wrapper,
.facets-form-wrapper,
[class*="facets__filters"] {
  background: #ffffff !important;
  border: 1.5px solid #d8e3f3 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06) !important;
  box-sizing: border-box !important;
}

/* Filters + sort on same line */
main[data-template="collection"] .collection-wrapper > *:nth-child(2) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Reduce gap between chips and grid section */
main[data-template="collection"] .shopify-section:first-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

main[data-template="collection"] .product-grid-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Healyfix footer newsletter premium style */
footer .email-signup__input-group {
  max-width: 620px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 10px 8px 22px !important;
  border: 1px solid #bfd7ff !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
}

footer .email-signup__input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 22px !important;
  color: #111827 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

footer .email-signup__input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

footer .email-signup__button {
  width: auto !important;
  min-width: 150px !important;
  height: 48px !important;
  padding: 0 28px !important;
  border: none !important;
  border-radius: 15px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

footer .email-signup__button:hover {
  background: #005BFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(0, 91, 255, 0.28) !important;
}

footer .email-signup__button svg,
footer .email-signup__button-icon {
  display: none !important;
}

footer .email-signup__button::after {
  content: "Subscribe" !important;
  color: #ffffff !important;
}

/* Healyfix footer left side polish */

/* Footer column headings */
footer h2,
footer h3,
footer .footer-block__heading {
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 14px !important;
}

/* Footer links */
footer a:not(.email-signup__button) {
  transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease !important;
}

footer a:not(.email-signup__button):hover {
  color: #005BFF !important;
  text-decoration-color: #005BFF !important;
}

/* Social icon polish */
footer .list-social,
footer .social-icons,
footer .footer__list-social {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}

footer .list-social__link,
footer .social-icons__link,
footer .footer__list-social a {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f7ff !important;
  border: 1px solid #dbeafe !important;
  color: #0f172a !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
}

footer .list-social__link:hover,
footer .social-icons__link:hover,
footer .footer__list-social a:hover {
  background: #005BFF !important;
  border-color: #005BFF !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

footer .list-social__link svg,
footer .social-icons__link svg,
footer .footer__list-social a svg {
  width: 18px !important;
  height: 18px !important;
}

/* Footer Connect text links fix */
footer a[class*="__button_"][href*="facebook"],
footer a[class*="__button_"][href*="instagram"],
footer a[class*="__button_"][href*="tiktok"],
footer a[class*="__button_"][href*="TikTok"] {
  width: fit-content !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  color: #111827 !important;
  padding: 0 !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
  position: static !important;
}

/* Remove extra icon from Connect text links */
footer a[class*="__button_"][href*="facebook"]::before,
footer a[class*="__button_"][href*="instagram"]::before,
footer a[class*="__button_"][href*="tiktok"]::before,
footer a[class*="__button_"][href*="TikTok"]::before,
footer a[class*="__button_"][href*="facebook"]::after,
footer a[class*="__button_"][href*="instagram"]::after,
footer a[class*="__button_"][href*="tiktok"]::after,
footer a[class*="__button_"][href*="TikTok"]::after {
  content: none !important;
  display: none !important;
}

/* Hover only hovered Connect text */
footer a[class*="__button_"][href*="facebook"]:hover,
footer a[class*="__button_"][href*="instagram"]:hover,
footer a[class*="__button_"][href*="tiktok"]:hover,
footer a[class*="__button_"][href*="TikTok"]:hover {
  color: #2563eb !important;
}

/* Brand-like colors */
footer a[href*="facebook"],
footer a[href*="facebook"]:hover {
  color: #1877F2 !important;
}

footer a[href*="instagram"],
footer a[href*="instagram"]:hover {
  color: #E4405F !important;
}

footer a[href*="tiktok"],
footer a[href*="TikTok"],
footer a[href*="tiktok"]:hover,
footer a[href*="TikTok"]:hover {
  color: #000000 !important;
}

/* Bigger icons */
footer a[href*="facebook"] svg,
footer a[href*="instagram"] svg,
footer a[href*="tiktok"] svg,
footer a[href*="TikTok"] svg {
  width: 22px !important;
  height: 22px !important;
  color: inherit !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

footer a[href*="facebook"] svg path,
footer a[href*="instagram"] svg path,
footer a[href*="tiktok"] svg path,
footer a[href*="TikTok"] svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* No hover color/background change */
footer a[href*="facebook"]:hover,
footer a[href*="instagram"]:hover,
footer a[href*="tiktok"]:hover,
footer a[href*="TikTok"]:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* =========================
   Healyfix Contact Page
========================= */

.hf-contact-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 34px 70px;
}

.hf-contact-grid {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.hf-contact-info {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  border-radius: 28px;
  padding: 42px 34px;
  position: relative;
  overflow: hidden;
}

.hf-contact-info::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0, 95, 255, 0.04);
  left: -160px;
  bottom: -140px;
}

.hf-contact-info > * {
  position: relative;
  z-index: 2;
}

.hf-contact-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #005bff;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hf-contact-title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #0f172a;
}

.hf-contact-text {
  font-size: 21px;
  line-height: 1.75;
  color: #5b667a;
  margin: 0 0 34px;
  max-width: 92%;
}

.hf-contact-points {
  display: grid;
  gap: 20px;
}

.hf-contact-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hf-contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #eaf2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #005bff;
  font-size: 22px;
  font-weight: 700;
}

.hf-contact-point h3 {
  margin: 3px 0 4px;
  font-size: 26px;
  line-height: 1.3;
  color: #0f172a;
}

.hf-contact-point p {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: #5b667a;
}

.hf-contact-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
  border: 1px solid #edf2f8;
  min-height: auto !important;
}

.hf-contact-form {
  display: block;
}

.hf-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.hf-contact-field {
  margin-bottom: 18px;
}

.hf-contact-field input,
.hf-contact-field textarea {
  width: 100%;
  border: 1.5px solid #d8e2ef;
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
  font-size: 18px;
  line-height: 1.4;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hf-contact-field input {
  height: 58px;
}

.hf-contact-field textarea {
  min-height: 210px;
  resize: vertical;
  padding-top: 18px;
}
.hf-contact-field input::placeholder,
.hf-contact-field textarea::placeholder {
  color: #7b8798;
}

.hf-contact-field input:focus,
.hf-contact-field textarea:focus {
  outline: none;
  border-color: #005bff;
  box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.10);
}

.hf-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #2d7dff 0%, #005bff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 28px;
  box-shadow: 0 12px 24px rgba(0, 91, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-contact-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 91, 255, 0.22);
}

.hf-contact-success {
  margin-bottom: 18px;
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.hf-contact-form .errors,
.hf-contact-form .form-status,
.hf-contact-form .contact__fields,
.hf-contact-form .field,
.hf-contact-form .text-area {
  max-width: 100%;
}

/* Mobile */
@media screen and (max-width: 989px) {
  .hf-contact-section {
    padding: 24px 16px 50px;
  }

  .hf-contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hf-contact-info,
  .hf-contact-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .hf-contact-title {
    font-size: 38px;
  }

  .hf-contact-text {
    font-size: 17px;
    line-height: 1.7;
    max-width: 100%;
  }

  .hf-contact-point h3 {
    font-size: 20px;
  }

  .hf-contact-point p {
    font-size: 16px;
    line-height: 1.6;
  }

  .hf-contact-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .hf-contact-button {
    width: 100%;
  }
}

/* Healyfix contact page position override */
@media screen and (min-width: 990px) {
  .hf-contact-section {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 88px 70px !important;
    margin-top: -105px !important;
    box-sizing: border-box !important;
  }

  .hf-contact-grid {
    width: 100% !important;
    max-width: 1540px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 430px minmax(720px, 1fr) !important;
    gap: 48px !important;
    align-items: start !important;
  }

  .hf-contact-card {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
  }
}

/* Healyfix contact clean SVG icons */
.hf-contact-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

/* Healyfix contact form input icons */
.hf-contact-field-icon {
  position: relative !important;
}

.hf-input-icon {
  position: absolute !important;
  left: 24px !important;
  top: 29px !important;
  transform: translateY(-50%) !important;
  width: 26px !important;
  height: 26px !important;
  color: #64748b !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.hf-input-icon svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
}

.hf-contact-field-icon input,
.hf-contact-field-icon textarea {
  padding-left: 68px !important;
}

.hf-contact-field-textarea .hf-input-icon {
  top: 18px !important;
  transform: none !important;
}

/* Send Message button icon */
.hf-contact-button {
  gap: 10px !important;
}

.hf-contact-button {
  gap: 12px !important;
}

.hf-contact-button-icon {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  color: currentColor !important;
  flex-shrink: 0 !important;
}

/* Healyfix contact first row input clickable fix */
.hf-contact-row,
.hf-contact-field-icon {
  position: relative !important;
}

.hf-contact-field-icon input,
.hf-contact-field-icon textarea {
  position: relative !important;
  z-index: 3 !important;
  pointer-events: auto !important;
}

.hf-input-icon {
  z-index: 4 !important;
  pointer-events: none !important;
}

/* Healyfix contact card proportion final polish */
@media screen and (min-width: 990px) {
  .hf-contact-grid {
    grid-template-columns: 500px minmax(0, 1fr) !important;
    gap: 50px !important;
    max-width: 1540px !important;
  }

  .hf-contact-info {
    padding: 40px 44px !important;
    align-self: start !important;
  }

  .hf-contact-title {
    font-size: 52px !important;
    line-height: 1.05 !important;
    margin-bottom: 22px !important;
  }

  .hf-contact-text {
    font-size: 20px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }

  .hf-contact-points {
    gap: 16px !important;
  }

  .hf-contact-point h3 {
    font-size: 24px !important;
  }

  .hf-contact-point p {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
}

.hf-contact-info::before,
.hf-contact-info::after {
  content: none !important;
  display: none !important;
}

/* Healyfix homepage menu color only after scroll */
body.hf-header-scrolled .menu-list__link,
body.hf-header-scrolled .menu-list__link *,
body.hf-header-scrolled .menu-list__link-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.hf-header-scrolled .menu-list__link:hover,
body.hf-header-scrolled .menu-list__link:hover *,
body.hf-header-scrolled .menu-list__list-item:hover .menu-list__link-title {
  color: #005BFF !important;
  -webkit-text-fill-color: #005BFF !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Healyfix cart drawer empty state polish */
cart-drawer .cart-items__wrapper,
.cart-drawer .cart-items__wrapper,
.drawer .cart-items__wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 70vh !important;
  padding: 48px 34px !important;
}

cart-drawer .cart-items__wrapper h2,
cart-drawer .cart-items__wrapper h3,
.cart-drawer .cart-items__wrapper h2,
.cart-drawer .cart-items__wrapper h3,
.drawer .cart-items__wrapper h2,
.drawer .cart-items__wrapper h3 {
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em !important;
}

cart-drawer .cart-items__wrapper p,
.cart-drawer .cart-items__wrapper p,
.drawer .cart-items__wrapper p {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 0 24px !important;
  max-width: 340px !important;
}

cart-drawer a.cart-items__empty-button,
.cart-drawer a.cart-items__empty-button,
.drawer a.cart-items__empty-button {
  min-width: 220px !important;
  height: 52px !important;
  padding: 0 30px !important;
  border-radius: 16px !important;
  background: #005BFF !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(0, 91, 255, 0.18) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

cart-drawer a.cart-items__empty-button .button-text,
.cart-drawer a.cart-items__empty-button .button-text,
.drawer a.cart-items__empty-button .button-text {
  color: #ffffff !important;
  text-decoration: none !important;
}

cart-drawer a.cart-items__empty-button:hover,
.cart-drawer a.cart-items__empty-button:hover,
.drawer a.cart-items__empty-button:hover {
  background: #004de0 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 30px rgba(0, 91, 255, 0.24) !important;
}

/* COLLECTIONS ALL - MOCKUP STYLE PRODUCT CARDS */

@media screen and (min-width: 990px) {
  body:has(.shopify-section .collection) .product-grid,
  .template-collection .product-grid,
  .collection .product-grid {
    column-gap: 18px !important;
    row-gap: 18px !important;
  }

  .template-collection .product-grid__item,
  .collection .product-grid__item {
    display: flex !important;
  }

  .template-collection .card-wrapper,
  .collection .card-wrapper,
  .template-collection .product-card,
  .collection .product-card {
    width: 100% !important;
    min-height: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .template-collection .card__inner,
  .collection .card__inner,
  .template-collection .card__media,
  .collection .card__media,
  .template-collection .product-card__image-wrapper,
  .collection .product-card__image-wrapper,
  .template-collection .product-card__media,
  .collection .product-card__media {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border-radius: 12px 12px 0 0 !important;
  }

  .template-collection .card__media img,
  .collection .card__media img,
  .template-collection .product-card__image,
  .collection .product-card__image,
  .template-collection .product-card__image-wrapper img,
  .collection .product-card__image-wrapper img,
  .template-collection .product-card__media img,
  .collection .product-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
  }

  .template-collection .card__content,
  .collection .card__content,
  .template-collection .product-card__content,
  .collection .product-card__content,
  .template-collection .product-card__info,
  .collection .product-card__info {
    padding: 12px 12px 14px !important;
  }

  .template-collection .card__heading,
  .collection .card__heading,
  .template-collection .product-card__title,
  .collection .product-card__title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    margin: 0 0 8px !important;
    color: #111827 !important;
  }

  .template-collection .price,
  .collection .price {
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 14px !important;
    color: #020617 !important;
  }

  .template-collection .quick-add,
  .collection .quick-add {
    margin-top: 0 !important;
  }

  .template-collection .quick-add__submit,
  .collection .quick-add__submit {
    min-height: 38px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
}

/* Collection category chips polish */
@media screen and (min-width: 990px) {
  .healyfix-store-categories {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .healyfix-store-chip {
    min-width: max-content !important;
    height: 38px !important;
    padding: 0 14px !important;
    gap: 7px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .healyfix-store-chip span {
    font-size: 17px !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    line-height: 1 !important;
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
    font-weight: 700 !important;
  }
}

/* Hide bad second grid option that breaks product cards */
.column-options__option:has(input[value="zoom-out"]),
.column-options__option:has(input[aria-label="Zoom out"]) {
  display: none !important;
}

/* Hide collection view controls - only one stable view is used */
@media screen and (min-width: 990px) {
  .column-options-wrapper {
    display: none !important;
  }
}

/* Collection controls bar - product count + sorting */

@media screen and (min-width: 990px) {
  .facets.facets--horizontal.facets-controls-wrapper.spacing-style {
  position: relative !important;
  min-height: 62px !important;
  margin-top: -10px !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
}

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .facets__title {
  position: absolute !important;
  left: 32px !important;
  top: 20px !important;
  margin: 0 !important;
  z-index: 2 !important;
}

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .products-count-wrapper {
    position: absolute !important;
    left: 1050px !important;
    top: 10px !important;
    margin: 0 !important;
    z-index: 2 !important;
  }

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .products-count-wrapper span {
  color: #334155 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter {
    position: absolute !important;
    right: 16px !important;
    top: 9px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    z-index: 2 !important;
  }

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter::before {
    content: "Sort by";
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    top: -4px;
  }

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter summary {
    min-height: 40px !important;
    min-width: 155px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter .facets__label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
  }
}

.facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter summary .facets__label {
  display: none !important;
}

.facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter summary .facets__status {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Clear all text polish only */
@media screen and (min-width: 990px) {
  .hf-clear-all-link {
    position: relative !important;
    top: -40px !important;
    left: 20px !important;
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    z-index: 5 !important;
  }
}

/* Collection filters title position */
@media screen and (min-width: 990px) {
  .facets--filters-title {
    position: relative !important;
    left: 25px !important;
    top: 7px !important;
    margin: 0 !important;
  }
}

/* Collection filter card polish - step 1 */

@media screen and (min-width: 990px) {
  main[data-template="collection"] .facets__filters-wrapper {
    margin-top: -50px !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045) !important;
    padding: 20px 18px !important;
  }
}

/* Collection filter header card - Filters + Clear all only */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .facets--filters-title {
    background: #ffffff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035) !important;
    padding: 14px 18px !important;
    width: 300px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    left: 12px !important;
  }

  main[data-template="collection"] .hf-clear-all-link {
    position: relative !important;
    top: -42px !important;
    left: 15px !important;
    z-index: 5 !important;
  }
}

/* Collection filters polish - blue checkboxes and cleaner spacing */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .facets__filters-wrapper input[type="checkbox"] {
    accent-color: #005bff !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__summary,
  main[data-template="collection"] .facets__filters-wrapper summary {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #020617 !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__item {
    margin-bottom: 8px !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__panel {
    padding-bottom: 18px !important;
  }

  main[data-template="collection"] .facets__filters-wrapper input[type="number"],
  main[data-template="collection"] .facets__filters-wrapper input[type="text"] {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
  }
}

/* Collection filters - blue checkbox style */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .checkbox__label .icon-checkmark {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: transparent !important;
  }

  main[data-template="collection"] .checkbox__input:checked + .checkbox__label .icon-checkmark {
    background: #005bff !important;
    border-color: #005bff !important;
    color: #ffffff !important;
  }

  main[data-template="collection"] .checkbox__input:checked + .checkbox__label .icon-checkmark path,
  main[data-template="collection"] .checkbox__input:checked + .checkbox__label .icon-checkmark polyline {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.4px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
}

/* Collection filters inner polish */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .facets__filters-wrapper .facets__panel,
  main[data-template="collection"] .facets__filters-wrapper .facets__item {
    margin-bottom: 8px !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__summary {
    padding-bottom: 10px !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__label {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  main[data-template="collection"] .facets__filters-wrapper input[type="number"],
  main[data-template="collection"] .facets__filters-wrapper input[type="text"] {
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
  }

  main[data-template="collection"] .facets__filters-wrapper input[type="number"]:focus,
  main[data-template="collection"] .facets__filters-wrapper input[type="text"]:focus {
    border-color: #005bff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12) !important;
  }

  main[data-template="collection"] .facets__filters-wrapper .facets__price,
  main[data-template="collection"] .facets__filters-wrapper .price-range {
    gap: 12px !important;
  }
}

/* Collection product cards final polish */
@media screen and (min-width: 990px) {
  main[data-template="collection"] product-card,
  main[data-template="collection"] .product-card {
    border-color: #e5eaf3 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
  }

  main[data-template="collection"] product-card:hover,
  main[data-template="collection"] .product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
    border-color: rgba(0, 91, 255, 0.22) !important;
  }

  main[data-template="collection"] .product-card h3,
  main[data-template="collection"] .product-card h3 a,
  main[data-template="collection"] .card__heading,
  main[data-template="collection"] .card__heading a {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #111827 !important;
  }

  main[data-template="collection"] product-price,
  main[data-template="collection"] .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #020617 !important;
  }

  main[data-template="collection"] .quick-add__submit,
  main[data-template="collection"] button[name="add"] {
    min-height: 42px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }
}

/* Collection product image area clean white */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .product-grid__item .card-gallery,
  main[data-template="collection"] .product-grid__item .card__media,
  main[data-template="collection"] .product-grid__item .product-card__media,
  main[data-template="collection"] .product-grid__item .product-media {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }

  main[data-template="collection"] .product-grid__item .card-gallery img,
  main[data-template="collection"] .product-grid__item .card__media img,
  main[data-template="collection"] .product-grid__item .product-card__media img,
  main[data-template="collection"] .product-grid__item .product-media img {
    background: #ffffff !important;
  }
}

/* Collection product titles stronger */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .product-grid__item p[role="heading"],
  main[data-template="collection"] product-card p[role="heading"],
  main[data-template="collection"] .product-card p[role="heading"] {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
  }
}

/* Product page header menu visibility fix */
@media screen and (min-width: 990px) {
  body:has(main[data-template="product"]) header nav a,
  body:has(main[data-template="product"]) header nav a *,
  body:has(main[data-template="product"]) .header__menu-item,
  body:has(main[data-template="product"]) .header__menu-item *,
  body:has(main[data-template="product"]) .header-menu,
  body:has(main[data-template="product"]) .header-menu *,
  body:has(main[data-template="product"]) .header__inline-menu a,
  body:has(main[data-template="product"]) .header__inline-menu a * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body:has(main[data-template="product"]) header nav a:hover,
  body:has(main[data-template="product"]) .header__menu-item:hover,
  body:has(main[data-template="product"]) .header__inline-menu a:hover {
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
  }
}

/* Product page and cart checkout buttons blue - safe version */

/* Product page Add to cart + Buy it now */
main[data-template="product"] button[name="add"],
main[data-template="product"] .shopify-payment-button__button,
main[data-template="product"] .product-form__submit {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

main[data-template="product"] button[name="add"]:hover,
main[data-template="product"] .shopify-payment-button__button:hover,
main[data-template="product"] .product-form__submit:hover {
  background: #004fe0 !important;
  border-color: #004fe0 !important;
}

/* Cart drawer checkout button only */
cart-drawer .drawer__footer a[href*="/checkout"],
cart-drawer .drawer__footer button[name="checkout"],
cart-drawer .drawer__footer .cart__checkout-button,
.cart-drawer .drawer__footer a[href*="/checkout"],
.cart-drawer .drawer__footer button[name="checkout"],
.cart-drawer .drawer__footer .cart__checkout-button {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

cart-drawer .drawer__footer a[href*="/checkout"]:hover,
cart-drawer .drawer__footer button[name="checkout"]:hover,
cart-drawer .drawer__footer .cart__checkout-button:hover,
.cart-drawer .drawer__footer a[href*="/checkout"]:hover,
.cart-drawer .drawer__footer button[name="checkout"]:hover,
.cart-drawer .drawer__footer .cart__checkout-button:hover {
  background: #004fe0 !important;
  border-color: #004fe0 !important;
}


/* Cart drawer checkout button */
cart-drawer button,
cart-drawer .button,
cart-drawer a.button,
cart-drawer [name="checkout"],
cart-drawer [href*="/checkout"],
.cart-drawer button,
.cart-drawer .button,
.cart-drawer a.button,
.cart-drawer [name="checkout"],
.cart-drawer [href*="/checkout"] {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

cart-drawer button:hover,
cart-drawer .button:hover,
cart-drawer a.button:hover,
cart-drawer [name="checkout"]:hover,
cart-drawer [href*="/checkout"]:hover,
.cart-drawer button:hover,
.cart-drawer .button:hover,
.cart-drawer a.button:hover,
.cart-drawer [name="checkout"]:hover,
.cart-drawer [href*="/checkout"]:hover {
  background: #004fe0 !important;
  border-color: #004fe0 !important;
}

/* Cart drawer close X */
cart-drawer button[aria-label*="Close"],
cart-drawer button[aria-label*="close"],
.cart-drawer button[aria-label*="Close"],
.cart-drawer button[aria-label*="close"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

cart-drawer button[aria-label*="Close"] svg,
cart-drawer button[aria-label*="close"] svg,
.cart-drawer button[aria-label*="Close"] svg,
.cart-drawer button[aria-label*="close"] svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

/* Cart drawer quantity minus / plus */
cart-drawer quantity-selector button,
cart-drawer .quantity button,
cart-drawer .quantity-selector button,
.cart-drawer quantity-selector button,
.cart-drawer .quantity button,
.cart-drawer .quantity-selector button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

cart-drawer quantity-selector button svg,
cart-drawer .quantity button svg,
cart-drawer .quantity-selector button svg,
.cart-drawer quantity-selector button svg,
.cart-drawer .quantity button svg,
.cart-drawer .quantity-selector button svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

/* Cart drawer remove/trash icon */
cart-drawer cart-remove-button button,
cart-drawer .cart-remove-button button,
cart-drawer button[name="remove"],
.cart-drawer cart-remove-button button,
.cart-drawer .cart-remove-button button,
.cart-drawer button[name="remove"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

cart-drawer cart-remove-button button svg,
cart-drawer .cart-remove-button button svg,
cart-drawer button[name="remove"] svg,
.cart-drawer cart-remove-button button svg,
.cart-drawer .cart-remove-button button svg,
.cart-drawer button[name="remove"] svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

/* Fix only header cart icon + sticky add to cart */
@media screen and (min-width: 990px) {

  /* Header cart icon: no blue background */
  header a[href*="/cart"],
  header button[aria-label*="cart" i],
  header .header-actions__cart,
  header .header__icon--cart {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }

  header a[href*="/cart"]:hover,
  header button[aria-label*="cart" i]:hover,
  header .header-actions__cart:hover,
  header .header__icon--cart:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }

  header a[href*="/cart"] svg,
  header button[aria-label*="cart" i] svg,
  header .header-actions__cart svg,
  header .header__icon--cart svg {
    color: #111827 !important;
    stroke: #111827 !important;
    fill: none !important;
  }

  /* Keep only cart count badge blue */
  header .cart-count-bubble,
  header [class*="cart-count"] {
    background: #005bff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #005bff !important;
  }

  /* Bottom sticky add to cart button blue */
  .add-to-cart-button,
  button.add-to-cart-button,
  .product-form-buttons button[name="add"],
  sticky-add-to-cart button[name="add"],
  .sticky-add-to-cart button[name="add"],
  .product-sticky-bar button[name="add"] {
    background: #005bff !important;
    background-color: #005bff !important;
    border-color: #005bff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  .add-to-cart-button:hover,
  button.add-to-cart-button:hover,
  .product-form-buttons button[name="add"]:hover,
  sticky-add-to-cart button[name="add"]:hover,
  .sticky-add-to-cart button[name="add"]:hover,
  .product-sticky-bar button[name="add"]:hover {
    background: #004fe0 !important;
    background-color: #004fe0 !important;
    border-color: #004fe0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

/* Cart drawer heading count badge blue */
cart-drawer .cart-drawer__heading .cart-bubble,
cart-drawer .cart-drawer__heading .cart-bubble__text,
.cart-drawer .cart-drawer__heading .cart-bubble,
.cart-drawer .cart-drawer__heading .cart-bubble__text {
  background: #005bff !important;
  background-color: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 999px !important;
}

cart-drawer .cart-drawer__heading .cart-bubble__text-count,
.cart-drawer .cart-drawer__heading .cart-bubble__text-count {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Product page header menu hover blue */
@media screen and (min-width: 990px) {
  body:has(main[data-template="product"]) header nav a:hover,
  body:has(main[data-template="product"]) header nav a:hover *,
  body:has(main[data-template="product"]) .header__menu-item:hover,
  body:has(main[data-template="product"]) .header__menu-item:hover *,
  body:has(main[data-template="product"]) .header__inline-menu a:hover,
  body:has(main[data-template="product"]) .header__inline-menu a:hover *,
  body:has(main[data-template="product"]) .header-menu a:hover,
  body:has(main[data-template="product"]) .header-menu a:hover * {
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
    opacity: 1 !important;
  }

  body:has(main[data-template="product"]) header nav a[aria-current="page"],
  body:has(main[data-template="product"]) .header__inline-menu a[aria-current="page"],
  body:has(main[data-template="product"]) .header-menu a[aria-current="page"] {
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
  }
}

/* Restore collection Add to cart buttons */
@media screen and (min-width: 990px) {
  main[data-template="collection"] .product-grid__item .product-form-buttons button[name="add"],
  main[data-template="collection"] .product-grid__item button[name="add"],
  main[data-template="collection"] .product-grid__item .add-to-cart-button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #005bff !important;
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
  }

  main[data-template="collection"] .product-grid__item .product-form-buttons button[name="add"]:hover,
  main[data-template="collection"] .product-grid__item button[name="add"]:hover,
  main[data-template="collection"] .product-grid__item .add-to-cart-button:hover {
    background: #005bff !important;
    background-color: #005bff !important;
    border-color: #005bff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

/* Homepage header cart icon visibility fix */
@media screen and (min-width: 990px) {
  body:has(main[data-template="index"]) header a[href*="/cart"],
  body:has(main[data-template="index"]) header button[aria-label*="Cart"],
  body:has(main[data-template="index"]) header button[aria-label*="cart"],
  body:has(main[data-template="index"]) header .header-actions__cart,
  body:has(main[data-template="index"]) header .header__icon--cart {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body:has(main[data-template="index"]) header a[href*="/cart"] svg,
  body:has(main[data-template="index"]) header button[aria-label*="Cart"] svg,
  body:has(main[data-template="index"]) header button[aria-label*="cart"] svg,
  body:has(main[data-template="index"]) header .header-actions__cart svg,
  body:has(main[data-template="index"]) header .header__icon--cart svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
  }
}

/* Homepage header cart icon hover blue */
@media screen and (min-width: 990px) {
  body:has(main[data-template="index"]) header a[href*="/cart"]:hover,
  body:has(main[data-template="index"]) header button[aria-label*="Cart"]:hover,
  body:has(main[data-template="index"]) header button[aria-label*="cart"]:hover,
  body:has(main[data-template="index"]) header .header-actions__cart:hover,
  body:has(main[data-template="index"]) header .header__icon--cart:hover {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
  }

  body:has(main[data-template="index"]) header a[href*="/cart"]:hover svg,
  body:has(main[data-template="index"]) header button[aria-label*="Cart"]:hover svg,
  body:has(main[data-template="index"]) header button[aria-label*="cart"]:hover svg,
  body:has(main[data-template="index"]) header .header-actions__cart:hover svg,
  body:has(main[data-template="index"]) header .header__icon--cart:hover svg {
    color: #005bff !important;
    stroke: #005bff !important;
    fill: none !important;
  }
}

/* Healyfix - show header links only on regular pages */
body:has(main[data-template="page"]) header a,
body:has(main[data-template="page"]) .header a,
body:has(main[data-template="page"]) header .menu-list__link,
body:has(main[data-template="page"]) .header .menu-list__link {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Healyfix - show header links only on policy pages */
body:has(.shopify-policy__container) header a,
body:has(.shopify-policy__container) .header a,
body:has(.shopify-policy__container) header .menu-list__link,
body:has(.shopify-policy__container) .header .menu-list__link {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hover blue only on regular pages and policy pages */
body:has(main[data-template="page"]) header a:hover,
body:has(main[data-template="page"]) .header a:hover,
body:has(.shopify-policy__container) header a:hover,
body:has(.shopify-policy__container) .header a:hover {
  color: #005bff !important;
  -webkit-text-fill-color: #005bff !important;
}

/* Homepage product slideshow image size */
slideshow-slide {
  --grid-template-rows-desktop: 300px 1fr !important;
}

slideshow-slide .product-media-container,
slideshow-slide .product-media,
slideshow-slide img.product-media__image {
  height: 300px !important;
  max-height: 300px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Search page only - hide unstable result count under heading */
body.template-search .healyfix-search-count {
  display: none !important;
}

/* Healyfix search page - fix product grid parent column */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page div[style*="container-name: product-grid"] {
    grid-column: 5 / -1 !important;
  }
}

/* Healyfix search page - product card visual box */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .product-grid__item {
    background: #ffffff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
  }

  body.template-search .healyfix-search-results-page product-card,
  body.template-search .healyfix-search-results-page .product-card {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery,
  body.template-search .healyfix-search-results-page .product-media-container,
  body.template-search .healyfix-search-results-page .product-media {
    background: #f8fafc !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
}

/* Healyfix search page - product image sizing fixed */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .card-gallery {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    background: #f8fafc !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery slideshow-component,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-container,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slides,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slide,
  body.template-search .healyfix-search-results-page .card-gallery .product-media-container,
  body.template-search .healyfix-search-results-page .card-gallery .product-media {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    --product-media-fit: contain !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery img,
  body.template-search .healyfix-search-results-page .card-gallery img.product-media__image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
}

/* Healyfix search page - card text spacing */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page product-card .contents,
  body.template-search .healyfix-search-results-page .product-card__content,
  body.template-search .healyfix-search-results-page .card-information {
    padding: 10px 4px 4px !important;
  }

  body.template-search .healyfix-search-results-page .product-card__title,
  body.template-search .healyfix-search-results-page .card__heading,
  body.template-search .healyfix-search-results-page a[href*="/products/"] {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #111827 !important;
  }

  body.template-search .healyfix-search-results-page product-price,
  body.template-search .healyfix-search-results-page .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
}

/* Healyfix search page - stronger product title */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page product-card a[href*="/products/"],
  body.template-search .healyfix-search-results-page product-card .contents,
  body.template-search .healyfix-search-results-page product-card .contents a,
  body.template-search .healyfix-search-results-page .product-card__content a,
  body.template-search .healyfix-search-results-page .card-information a {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
  }
}

/* Healyfix search page - match collection card image box */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .product-grid__item {
    border: 1px solid #dfe7f3 !important;
    border-radius: 16px !important;
    padding: 8px !important;
    background: #ffffff !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-component,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-container,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slides,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slide,
  body.template-search .healyfix-search-results-page .card-gallery .product-media-container,
  body.template-search .healyfix-search-results-page .card-gallery .product-media {
    background: #ffffff !important;
    border-color: #dfe7f3 !important;
    border-radius: 12px !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery {
    border: 1px solid #dfe7f3 !important;
  }
}

/* Healyfix search page - soften inner border and reduce spacing */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .product-grid__item {
    padding: 2px !important;
    border-color: #e6eef8 !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery {
    border-color: #edf2f8 !important;
    border-radius: 12px !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-component,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-container,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slides,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slide,
  body.template-search .healyfix-search-results-page .card-gallery .product-media-container,
  body.template-search .healyfix-search-results-page .card-gallery .product-media {
    border-color: #edf2f8 !important;
    background: #ffffff !important;
  }
}

/* Healyfix search page - remove strong inner image border */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .card-gallery,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-component,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-container,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slides,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slide,
  body.template-search .healyfix-search-results-page .card-gallery .product-media-container,
  body.template-search .healyfix-search-results-page .card-gallery .product-media {
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  body.template-search .healyfix-search-results-page .product-grid__item {
    padding: 8px !important;
    border-color: #e5eaf3 !important;
  }
}

/* Healyfix search page - final card spacing polish */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .product-grid__item {
    padding: 10px 10px 14px !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery {
    margin-bottom: 12px !important;
  }

  body.template-search .healyfix-search-results-page product-card .contents,
  body.template-search .healyfix-search-results-page .product-card__content,
  body.template-search .healyfix-search-results-page .card-information {
    padding: 0 2px !important;
  }
}

/* Healyfix search page - soft inner image frame like collection cards */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .card-gallery {
    border: 1px solid #eef3f9 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery slideshow-component,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-container,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slides,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slide,
  body.template-search .healyfix-search-results-page .card-gallery .product-media-container,
  body.template-search .healyfix-search-results-page .card-gallery .product-media {
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.template-search .healyfix-search-results-page .product-grid__item {
    padding: 8px 8px 14px !important;
  }
}

/* Healyfix search page - match collection card size */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page div[style*="container-name: product-grid"] {
    grid-column: 4 / -1 !important;
  }

  body.template-search .healyfix-search-results-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
    gap: 28px 24px !important;
  }

  body.template-search .healyfix-search-results-page .product-grid__item {
    min-height: 465px !important;
    padding: 10px 10px 14px !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    margin-bottom: 16px !important;
  }
}

/* Healyfix search page - collection style full inner card frame */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .product-grid__item {
    background: #f8fafc !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 16px !important;
    padding: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease !important;
  }

  body.template-search .healyfix-search-results-page .product-grid__item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09) !important;
    border-color: #dbe6f5 !important;
  }

  body.template-search .healyfix-search-results-page product-card,
  body.template-search .healyfix-search-results-page .product-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5eaf3 !important;
    border-radius: 14px !important;
    padding: 10px 10px 14px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
  }

  body.template-search .healyfix-search-results-page .product-grid__item:hover product-card,
  body.template-search .healyfix-search-results-page .product-grid__item:hover .product-card {
    border-color: #d6e4f7 !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery {
    border: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
  }

  body.template-search .healyfix-search-results-page .card-gallery slideshow-component,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-container,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slides,
  body.template-search .healyfix-search-results-page .card-gallery slideshow-slide,
  body.template-search .healyfix-search-results-page .card-gallery .product-media-container,
  body.template-search .healyfix-search-results-page .card-gallery .product-media {
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.template-search .healyfix-search-results-page product-card .contents,
  body.template-search .healyfix-search-results-page .product-card__content,
  body.template-search .healyfix-search-results-page .card-information {
    padding: 0 !important;
    background: transparent !important;
  }
}

/* HEALYFIX SEARCH RESULTS - PRODUCT PAGE LINK BUTTON */
@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-results-page .healyfix-search-add-button {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    margin-top: 22px !important;
    border: 1px solid #0066ff !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0066ff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
  }

  body.template-search .healyfix-search-results-page .healyfix-search-add-button:hover {
    background: #0066ff !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets.facets--horizontal.facets-controls-wrapper.spacing-style {
  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

  body.template-search .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter {
    position: absolute !important;
    right: 16px !important;
    top: 9px !important;
    z-index: 2 !important;
  }

  body.template-search .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter::before {
    content: "" !important;
    position: absolute !important;
    top: -9px !important;
    right: -16px !important;
    width: calc(100vw - 600px) !important;
    height: 56px !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    z-index: -1 !important;
    pointer-events: none !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .product-card .healyfix-search-add-button,
  body.template-search .product-card .healyfix-search-add-button:link,
  body.template-search .product-card .healyfix-search-add-button:visited {
    color: #005bff !important;
    border-color: #005bff !important;
    text-decoration: none !important;
  }

  body.template-search .product-card .healyfix-search-add-button:hover,
  body.template-search .product-card .healyfix-search-add-button:focus {
    color: #ffffff !important;
    background-color: #005bff !important;
    border-color: #005bff !important;
    text-decoration: none !important;
  }
}

@media screen and (min-width: 990px) {
  body:not(.template-search) .facets.facets--horizontal.facets-controls-wrapper.spacing-style::after {
    content: "";
    position: absolute;
    left: 450px;
    right: 0;
    top: 0;
    height: 58px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
    z-index: 0;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets.facets--horizontal.facets-controls-wrapper.spacing-style .sorting-filter::after {
    content: "Sort by" !important;
    position: absolute !important;
    right: calc(100% + 12px) !important;
    top: 42% !important;
    transform: translateY(-50%) !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    z-index: 3 !important;
    pointer-events: none !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets-block-wrapper--vertical {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets--filters-title {
    display: flex !important;
    align-items: center !important;
    width: 300px !important;
    min-height: 48px !important;
    margin: 6px 0 12px 63px !important;
    padding: 0 24px !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035) !important;
    color: #020617 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
  }

  body.template-search .facets-block-wrapper--vertical {
    margin-left: 32px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .hf-clear-all-link {
    position: relative !important;
    top: -15px !important;
    left: 180px !important;
    color: #005bff !important;
    -webkit-text-fill-color: #005bff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    z-index: 10 !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets__filters-wrapper {
    width: 300px !important;
    min-width: 300px !important;
    margin-left: 57px !important;
    box-sizing: border-box !important;
    margin-top: -30px !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets__filters-wrapper .checkbox__label .icon-checkmark {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: transparent !important;
  }

  body.template-search .facets__filters-wrapper .checkbox__input:checked + .checkbox__label .icon-checkmark {
    background: #005bff !important;
    border-color: #005bff !important;
    color: #ffffff !important;
  }

  body.template-search .facets__filters-wrapper .checkbox__input:checked + .checkbox__label .icon-checkmark path,
  body.template-search .facets__filters-wrapper .checkbox__input:checked + .checkbox__label .icon-checkmark polyline {
    stroke: #ffffff !important;
    fill: none !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .facets__filters-wrapper .checkbox__input:checked + .checkbox__label .icon-checkmark,
  body.template-search .facets__filters-wrapper .checkbox__input:checked + .checkbox__label .icon-checkmark * {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    opacity: 1 !important;
    stroke-width: 3 !important;
  }
}

@media screen and (min-width: 990px) {
  body.template-search .healyfix-search-count {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    margin: 10px 0 28px 0 !important;
    color: rgb(100, 116, 139) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }

  body.template-search .healyfix-search-count-number {
    color: rgb(100, 116, 139) !important;
    font-weight: 700 !important;
  }

  body.template-search .healyfix-search-count-label {
    color: rgb(100, 116, 139) !important;
    font-weight: 500 !important;
  }

  body.template-search .products-count-wrapper {
    display: none !important;
  }
}

/* Healyfix predictive search - View all button */
.predictive-search__search-button {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.predictive-search__search-button:hover,
.predictive-search__search-button:focus {
  background: #004fe0 !important;
  border-color: #004fe0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Healyfix product page variant selected option */
.product-information input[type="radio"]:checked + .variant-option__button-label,
.product-information .variant-option__button-label:has(input[type="radio"]:checked),
.product-information .variant-option__button-label[data-selected="true"] {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.product-information .variant-option__button-label:hover {
  border-color: #005bff !important;
  color: #005bff !important;
  -webkit-text-fill-color: #005bff !important;
}

/* Healyfix product page selected variant buttons */
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked),
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked) .variant-option__button-label__pill {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.template-product label.variant-option__button-label:has(input[type="radio"]:checked) .variant-option__button-label__text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.template-product label.variant-option__button-label:has(input[type="radio"]:not(:checked)) {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.template-product label.variant-option__button-label:has(input[type="radio"]:not(:checked)) .variant-option__button-label__text {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Healyfix product variants - unavailable line color */
body.template-product label.variant-option__button-label:has(input[type="radio"][aria-disabled="true"]) .variant-option__strikethrough,
body.template-product label.variant-option__button-label:has(input[type="radio"][aria-disabled="true"]) .variant-option__strikethrough * {
  stroke: #005bff !important;
  color: #005bff !important;
  opacity: 1 !important;
}

/* Healyfix product variants - remove black flash only for available selected options */
body.template-product label.variant-option__button-label,
body.template-product label.variant-option__button-label *,
body.template-product label.variant-option__button-label::before,
body.template-product label.variant-option__button-label::after {
  transition: none !important;
  animation: none !important;
}

body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"])),
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"]))::before,
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"]))::after,
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"])) .variant-option__button-label__pill,
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"])) .variant-option__button-label__pill::before,
body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"])) .variant-option__button-label__pill::after {
  background: #005bff !important;
  background-color: #005bff !important;
  border-color: #005bff !important;
  box-shadow: none !important;
}

body.template-product label.variant-option__button-label:has(input[type="radio"]:checked:not([aria-disabled="true"])) .variant-option__button-label__text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Healyfix search hero background - desktop only */
@media screen and (min-width: 990px) {
  body.template-search main#MainContent > .shopify-section:first-child .section--page-width {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 0 28px 28px !important;
    background:
      radial-gradient(circle at 50% 8%, rgba(0, 91, 255, 0.13), transparent 34%),
      radial-gradient(circle at 18% 72%, rgba(0, 91, 255, 0.07), transparent 28%),
      radial-gradient(circle at 82% 72%, rgba(14, 165, 233, 0.07), transparent 30%),
      linear-gradient(180deg, #ffffff 0%, #f8fbff 56%, #ffffff 100%) !important;
  }

  body.template-search main#MainContent > .shopify-section:first-child .section--page-width::before {
    content: "" !important;
    position: absolute !important;
    inset: 34px 72px auto 72px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(0, 91, 255, 0.18), transparent) !important;
    pointer-events: none !important;
  }

  body.template-search main#MainContent > .shopify-section:first-child .section--page-width > * {
    position: relative !important;
    z-index: 1 !important;
  }
}

@media screen and (min-width: 750px) {
  body.template-search .hf-search-card-image {
    width: 100% !important;
    height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.template-search .hf-search-card-img {
    width: auto !important;
    height: auto !important;
    max-width: 92% !important;
    max-height: 260px !important;
    object-fit: contain !important;
    display: block !important;
    border: 0 !important;
    background: transparent !important;
  }
}

body.template-index a[href="/collections/all"].button {
  color: #ffffff !important;
}

body.template-index a[href="/collections/all"].button span,
body.template-index a[href="/collections/all"].button * {
  color: #ffffff !important;
}

/* Healyfix - Popular Picks carousel arrows */
body.template-index .slideshow-control {
  background: #006eff !important;
  color: #ffffff !important;
  border: 1px solid #006eff !important;
  box-shadow: 0 8px 18px rgba(0, 110, 255, 0.22) !important;
}

body.template-index .slideshow-control svg,
body.template-index .slideshow-control path {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

body.template-index .slideshow-control:hover {
  background: #005bff !important;
  border-color: #005bff !important;
  color: #ffffff !important;
}

/* Healyfix mobile fixes - hero button text + product carousel arrows */
@media screen and (max-width: 749px) {

  /* Hero Shop Now text white */
  body a[href="/collections/all"].button,
  body a[href="/collections/all"][class*="button"] {
    color: #ffffff !important;
    --button-color: #ffffff !important;
    --button-text-color: #ffffff !important;
    --color-button-text: #ffffff !important;
    --color-primary-button-text: #ffffff !important;
  }

  body a[href="/collections/all"].button *,
  body a[href="/collections/all"][class*="button"] * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  /* Homepage carousel arrows white */
  body.template-index button.slideshow-control,
  body.template-index .slideshow-control,
  body.template-index button[class*="slideshow-control"] {
    color: #ffffff !important;
    --color: #ffffff !important;
    --button-color: #ffffff !important;
    --color-foreground: 255 255 255 !important;
    --color-button-text: #ffffff !important;
  }

  body.template-index button.slideshow-control svg,
  body.template-index .slideshow-control svg,
  body.template-index button[class*="slideshow-control"] svg,
  body.template-index button.slideshow-control path,
  body.template-index .slideshow-control path,
  body.template-index button[class*="slideshow-control"] path {
    color: #ffffff !important;
    fill: none !important;
    stroke: #ffffff !important;
  }
}

/* Healyfix - hide mobile-only image block on desktop */
@media screen and (min-width: 750px) {
  .image-block:has(img[src*="dzudzu_007"]) {
    display: none !important;
  }
}

/* Healyfix - homepage cart icon: white on hero, dark when Store dropdown is open */
@media screen and (min-width: 750px) {
  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"],
  body.template-index button[data-testid="cart-drawer-trigger"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
  }

  body:has(main[data-template="index"]) .header-actions__cart-icon,
  body.template-index .header-actions__cart-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
  }

  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"] svg,
  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"] path,
  body.template-index button[data-testid="cart-drawer-trigger"] svg,
  body.template-index button[data-testid="cart-drawer-trigger"] path {
    visibility: visible !important;
    opacity: 1 !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
  }

  /* When Store / mega menu is hovered-open, make cart dark so it doesn't disappear on white background */
  body:has(.mega-menu:hover) button[data-testid="cart-drawer-trigger"],
  body:has(.mega-menu:hover) .header-actions__cart-icon,
  body:has(.menu-list__link:hover) button[data-testid="cart-drawer-trigger"],
  body:has(.menu-list__link:hover) .header-actions__cart-icon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #071225 !important;
  }

  body:has(.mega-menu:hover) button[data-testid="cart-drawer-trigger"] svg,
  body:has(.mega-menu:hover) button[data-testid="cart-drawer-trigger"] path,
  body:has(.menu-list__link:hover) button[data-testid="cart-drawer-trigger"] svg,
  body:has(.menu-list__link:hover) button[data-testid="cart-drawer-trigger"] path {
    visibility: visible !important;
    opacity: 1 !important;
    stroke: #071225 !important;
    color: #071225 !important;
  }
}

/* Healyfix - keep cart dark while hovering anywhere inside the homepage mega menu */
@media screen and (min-width: 750px) {
  body:has([class*="mega-menu"]:hover) button[data-testid="cart-drawer-trigger"],
  body:has([class*="mega-menu"]:hover) .header-actions__cart-icon,
  body:has([class*="mega-menu"]:hover) cart-icon,
  body:has([class*="menu-list"]:hover) button[data-testid="cart-drawer-trigger"],
  body:has([class*="menu-list"]:hover) .header-actions__cart-icon,
  body:has([class*="menu-list"]:hover) cart-icon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #071225 !important;
  }

  body:has([class*="mega-menu"]:hover) button[data-testid="cart-drawer-trigger"] svg,
  body:has([class*="mega-menu"]:hover) button[data-testid="cart-drawer-trigger"] path,
  body:has([class*="menu-list"]:hover) button[data-testid="cart-drawer-trigger"] svg,
  body:has([class*="menu-list"]:hover) button[data-testid="cart-drawer-trigger"] path {
    visibility: visible !important;
    opacity: 1 !important;
    stroke: #071225 !important;
    color: #071225 !important;
  }
}

/* Healyfix - homepage cart icon hover blue */
@media screen and (min-width: 750px) {
  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"]:hover,
  body.template-index button[data-testid="cart-drawer-trigger"]:hover {
    color: #006eff !important;
  }

  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"]:hover cart-icon,
  body.template-index button[data-testid="cart-drawer-trigger"]:hover cart-icon,
  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"]:hover .header-actions__cart-icon,
  body.template-index button[data-testid="cart-drawer-trigger"]:hover .header-actions__cart-icon {
    color: #006eff !important;
  }

  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"]:hover svg,
  body:has(main[data-template="index"]) button[data-testid="cart-drawer-trigger"]:hover path,
  body.template-index button[data-testid="cart-drawer-trigger"]:hover svg,
  body.template-index button[data-testid="cart-drawer-trigger"]:hover path {
    stroke: #006eff !important;
    color: #006eff !important;
  }
}

/* Healyfix - show mobile metafield image and hide default gallery on mobile */
.hf-mobile-card-image {
  display: none !important;
}

@media screen and (max-width: 749px) {
  .hf-default-card-gallery.has-mobile-card-image {
    display: none !important;
  }

  .hf-mobile-card-image {
    display: flex !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
  }

  .hf-mobile-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }
}

@media screen and (min-width: 750px) {
  .hf-mobile-card-image {
    display: none !important;
  }

  .hf-default-card-gallery {
    display: block !important;
  }
}

/* Healyfix - mobile product card content height fix */
@media screen and (max-width: 749px) {
  #shopify-section-template--1977916993619__main .product-grid > li {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #shopify-section-template--1977916993619__main .product-card__content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;

    --product-card-gap: 4px !important;
    --padding-block-start: 6px !important;
    --padding-block-end: 6px !important;
    --padding-inline-start: 7px !important;
    --padding-inline-end: 7px !important;

    padding-block-start: 6px !important;
    padding-block-end: 6px !important;
    padding-inline-start: 7px !important;
    padding-inline-end: 7px !important;
    gap: 4px !important;
  }

  #shopify-section-template--1977916993619__main .product-card__content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #shopify-section-template--1977916993619__main .hf-mobile-card-image {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    margin-bottom: 4px !important;
  }

  #shopify-section-template--1977916993619__main .product-grid__item [ref="productTitleLink"],
  #shopify-section-template--1977916993619__main .product-grid__item p[role="heading"],
  #shopify-section-template--1977916993619__main .product-grid__item .product-card__title {
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    line-height: 1.18 !important;
  }

  #shopify-section-template--1977916993619__main .product-grid__item .price,
  #shopify-section-template--1977916993619__main .product-grid__item .price-item,
  #shopify-section-template--1977916993619__main .product-grid__item product-price {
    margin: 0 0 6px !important;
  }

  #shopify-section-template--1977916993619__main .product-grid__item button[name="add"],
  #shopify-section-template--1977916993619__main .product-grid__item form[action*="/cart/add"] button {
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* Healyfix - collections/all mobile card compact test */
@media screen and (max-width: 749px) {
  #shopify-section-template--1977916993619__main .product-grid {
    align-items: start !important;
    grid-auto-rows: auto !important;
    gap: 14px 10px !important;
  }

  #shopify-section-template--1977916993619__main .product-grid > li {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
    padding: 7px !important;
    border-radius: 14px !important;
  }

  #shopify-section-template--1977916993619__main .product-grid > li product-card,
  #shopify-section-template--1977916993619__main .product-card,
  #shopify-section-template--1977916993619__main .product-card__content,
  #shopify-section-template--1977916993619__main .product-card__link {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #shopify-section-template--1977916993619__main .product-card__content {
    padding: 7px !important;
    gap: 4px !important;
    justify-content: flex-start !important;
  }

  #shopify-section-template--1977916993619__main .hf-mobile-card-image {
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    margin-bottom: 6px !important;
  }

  #shopify-section-template--1977916993619__main .hf-mobile-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  #shopify-section-template--1977916993619__main .product-grid__item [ref="productTitleLink"],
  #shopify-section-template--1977916993619__main .product-grid__item p[role="heading"],
  #shopify-section-template--1977916993619__main .product-grid__item .product-card__title {
    font-size: 13.5px !important;
    line-height: 1.18 !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 0 4px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  #shopify-section-template--1977916993619__main .product-grid__item .price,
  #shopify-section-template--1977916993619__main .product-grid__item .price-item,
  #shopify-section-template--1977916993619__main .product-grid__item product-price {
    font-size: 14px !important;
    line-height: 1.1 !important;
    margin: 0 0 7px !important;
  }

  #shopify-section-template--1977916993619__main .product-grid__item button[name="add"],
  #shopify-section-template--1977916993619__main .product-grid__item form[action*="/cart/add"] button {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
  }
}

