/** Shopify CDN: Minification failed

Line 1887:0 Unexpected "{"
Line 1887:1 Expected identifier but found "%"
Line 2712:0 Unexpected "{"
Line 2712:1 Expected identifier but found "%"

**/
* {
  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-transition-duration: 0.25s;
  --hover-transition-timing: ease-out;
  --submenu-animation-speed: 360ms;
}

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

@media (min-width: 990px) {
  html:has(.page-wrapper),
  html:has(.page-wrapper) body {
    height: 100dvh;
    overflow: hidden;
  }
}

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

/* Only lock .page-wrapper where it is the scroll container. Below 990px the document scrolls, and
   overflow on .page-wrapper would make it the sticky header's scroll container, moving the header off screen. */
@media (min-width: 990px) {
  html[scroll-lock] .page-wrapper {
    overflow: hidden;
  }
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  transition: margin-inline-end var(--animation-speed) var(--animation-timing-fade-out);
}

@media (min-width: 990px) {
  .page-wrapper {
    height: 100dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--color-foreground-rgb) / var(--opacity-40)) var(--color-background);
  }

  .page-wrapper--drawer-open shopify-account::part(dialog) {
    translate: calc(-1 * var(--theme-drawer-width, var(--sidebar-width)));
  }

  /* The theme drawer opens from the inline-end edge, so the shift mirrors in RTL */
  [dir='rtl'] .page-wrapper--drawer-open shopify-account::part(dialog) {
    translate: var(--theme-drawer-width, var(--sidebar-width));
  }
}

.page-wrapper--drawer-open {
  margin-inline-end: var(--theme-drawer-width, var(--sidebar-width));
  transition-timing-function: var(--animation-timing-fade-in);
}

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

img {
  height: auto;
}

/* Theme images fill their container. Images in blog post content keep the size from their width
   attribute or their intrinsic size, and max-width keeps them inside the column. */
img:where(:not(.blog-post-content img)) {
  width: 100%;
}

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

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

.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;
  cursor: pointer;
}

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

/*
 * The cross-document (MPA) opt-in `@view-transition { navigation: auto }` is declared per-layout
 * (layout/theme.liquid and layout/password.liquid), because this stylesheet is shared by both layouts
 * and a static stylesheet can't read theme settings.
 * It is gated on the same `settings.page_transition_enabled or settings.transition_to_main_product` condition as the
 * render blocker, so the opt-in and its opt-out switch can never disagree. The rules below only
 * take effect once an `@view-transition` opt-in is active, so they are inert without it.
 */
@media (prefers-reduced-motion: no-preference) {
  /* 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. Gutters grow to the device safe-area insets (viewport-fit=cover)
   so section backgrounds bleed edge-to-edge while content stays clear of the notch; taking the
   larger of both insets keeps the centered page grid symmetric. */
.page-width-wide,
.page-width-normal,
.page-width-narrow,
.page-width-content {
  --page-margin: max(16px, var(--safe-area-inset-left, 0px), var(--safe-area-inset-right, 0px));
}

@media screen and (min-width: 750px) {
  .page-width-wide,
  .page-width-normal,
  .page-width-narrow,
  .page-width-content {
    --page-margin: max(40px, var(--safe-area-inset-left, 0px), var(--safe-area-inset-right, 0px));
  }
}

.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 {
  /* 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);
  background-color: var(--color-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;
  }
}

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

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

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

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

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

  text-align: start;
}

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

  text-align: center;
}

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

  text-align: end;
}

.text-inherit {
  color: inherit;
}

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

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

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

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

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

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

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

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

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

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

@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 {
  color: currentcolor;
  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 {
  color: rgb(var(--color-rgb, var(--color-foreground-rgb)) / 0.7);
}

/* 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: currentcolor;
    color: rgb(var(--color-rgb, var(--color-foreground-rgb)) / 0.7);
  }
}

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

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

/* Buttons */
.button,
.button-secondary,
.button-custom,
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);
  font-style: var(--button-font-style-primary);
  font-weight: var(--button-font-weight-primary);
  text-transform: var(--button-text-case-primary);
  border-radius: var(--style-border-radius-buttons-primary);
}

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

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

button.shopify-payment-button__button--unbranded {
  font-family: var(--button-font-family-primary);
  font-style: var(--button-font-style-primary);
  font-weight: var(--button-font-weight-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: rgb(var(--color-input-text-rgb) / var(--opacity-muted-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-focus-outline-color: var(--color-primary-button-focus-outline);
}

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

.button-custom {
  --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-secondary);
  --button-focus-outline-color: var(--color-primary-button-focus-outline);

  font-family: var(--button-font-family-primary);
  font-style: var(--button-font-style-primary);
  font-weight: var(--button-font-weight-primary);
  text-transform: var(--button-text-case-primary);
  border-radius: var(--style-border-radius-buttons-primary);
  outline-color: var(--button-focus-outline-color, var(--button-background-color));
}

.button-custom:hover {
  --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);
}

/* 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: var(--color-foreground);
  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);
}

/* Link-style buttons that also carry a button class keep the paragraph weight, not the button font weight */
.button-unstyled:where(.button, .button-secondary, .button-custom) {
  font-weight: var(--font-paragraph--weight);
}

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

/* Default hover dim for link-style buttons, scoped via :where() so component-specific
   hover rules (.facets__clear-all-link, .header-actions__action, etc.) still win. */
:where(.button-unstyled):hover {
  --hover-color-rgb: var(--color-foreground-rgb);

  color: rgb(var(--hover-color-rgb) / var(--opacity-70));
}

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

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

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

summary:hover {
  color: rgb(var(--color-foreground-rgb) / var(--opacity-80));
}

/* Animate the UI elements in only after the view transition is complete */
.close-button {
  position: fixed;

  /* Keep the fixed close button clear of the status bar and inline-end notch (viewport-fit=cover) */
  top: max(var(--margin-lg), var(--safe-area-inset-top, 0px));
  inset-inline-end: max(var(--margin-lg), var(--safe-area-inset-right, 0px));
  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%;
}

/* Safe-area env() values are physical; in RTL the button sits by the left-side notch */
[dir='rtl'] .close-button {
  inset-inline-end: max(var(--margin-lg), var(--safe-area-inset-left, 0px));
}

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

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

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

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

.shopify-block:has(> [shopify-block-empty]) {
  display: none;
}

.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: start;
  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:focus {
  box-shadow: var(--input-box-shadow-focus);
}

.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);
  inset-inline-start: 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);
}

/* 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%; /* stylelint-disable-line csstools/use-logical -- centring pair with a physical translate(-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%; /* stylelint-disable-line csstools/use-logical -- centring pair with a physical translate(-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;
}

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

/* Slideshow Arrow Hover Animation - must stay in base.css for proper CSS cascade */

slideshow-container[animate-arrows]:hover > slideshow-arrows .slideshow-control,
slideshow-component:focus-within > slideshow-container[animate-arrows] > slideshow-arrows .slideshow-control {
  animation: arrowsSlideIn var(--animation-speed) var(--animation-easing) forwards;
}

/* Clipped controls preserve accessible paging without intercepting touch taps. */
@media (hover: none) and (pointer: coarse) {
  .resource-list__carousel > [animate-arrows] > :where(slideshow-arrows) > .slideshow-control:not(:focus-visible) {
    position: absolute;
    clip: rect(0 0 0 0);
    animation: none;
  }

  .resource-list__carousel > [animate-arrows] > :where(slideshow-arrows) > .slideshow-control:focus-visible {
    opacity: 1;
    animation: none;
  }
}

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

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

.group-block:has(> video-background-component) {
  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);
}

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

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

/* When the header is transparent, and when there is no header-section below it, offset the first main-section with
 * the height of the header
 */
main > .shopify-section:first-child .section:not(.disable-section-top-offset) {
  &.spacing-style,
  .spacing-style {
    --section-top-offset: calc(var(--header-height) * var(--transparent-header-offset-boolean));

    /* Any nested sections should not be offset */
    .spacing-style {
      --section-top-offset: 0px;
    }
  }

  /* Make sticky content immediately stick to the top of the page */
  .sticky-content {
    margin-top: calc(var(--header-height) * var(--transparent-header-offset-boolean) * -1);
  }
}

{% #豆包 %}
/* ============================================================
   Calytris 定制样式（合并整理版）
   放置位置：Shopify 后台 → 主题 → 编辑代码 → assets/base.css 末尾
   （或 theme.liquid 的 </head> 前用 <style> 包裹）

   目录：
   01. PDP 颜色选择器（方块色块 + 黑色下划线 + Color: 值）
   02. 商品卡色块（纯色自绘 + 选中下划线 + 关闭折叠）
   03. Picked Just for You 轮播进度线
   04. 折扣价（原价划线 + 红色折后价 + 折扣标签）
   05. PDP 图集下方信任条
   06. PDP 移动端图集 4:5 + 1px 黑色滑动短线
   07. PDP Why We Love It + 包装说明
   08. PDP 面包屑
   09. 集合页筛选/排序条吸顶底衬
   ============================================================ */


/* ============================================================
   01. PDP 颜色选择器
   作用位置：商品详情页（PDP）商品区 “Color” 选项组
   效果：24px 方块色块、选中项下方 1px 黑色下划线、标题显示 “Color: Gold”
   想改尺寸/间距/线粗，只改下面 4 个变量
   ============================================================ */
.variant-picker {
  --swatch-size: 24px;            /* 色块边长 */
  --swatch-gap: 16px;             /* 色块间距 */
  --swatch-underline-gap: 4px;    /* 色块与下划线的距离 */
  --swatch-underline: 1px;        /* 下划线粗细 */
}

.variant-picker .variant-option--equal-width-buttons {
  display: flex !important;
  flex-wrap: wrap;
  grid-template-columns: none !important;
  gap: var(--swatch-gap);
  align-items: flex-start;
}

/* label 只负责尺寸和留白，颜色交给 ::before，线交给 ::after */
.variant-picker .variant-option__button-label {
  position: relative;
  box-sizing: content-box !important;
  flex: 0 0 auto !important;
  width: var(--swatch-size) !important;
  min-width: var(--swatch-size) !important;
  height: var(--swatch-size) !important;
  min-height: var(--swatch-size) !important;
  margin: 0 !important;
  padding: 0 0 var(--swatch-underline-gap) 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
  overflow: visible !important;
}

/* 色块本体（清掉主题自带的描边/阴影） */
.variant-picker .variant-option__button-label::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% - var(--swatch-underline-gap));
  background: var(--swatch-bg, #d9d9d9);
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  box-shadow: none !important;
}

/* 隐藏主题自带的文字 / 胶囊 / 删除线 */
.variant-picker .variant-option__button-label__pill,
.variant-picker .variant-option__button-label__text,
.variant-picker .variant-option__strikethrough {
  display: none !important;
}

/* 悬浮、选中都不画描边 */
.variant-picker .variant-option__button-label:hover,
.variant-picker .variant-option__button-label:focus-visible,
.variant-picker .variant-option__button-label:has(input:checked) {
  background: none !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 选中态：黑色细下划线（贴在色块下方） */
.variant-picker .variant-option__button-label:has(input:checked)::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: auto 0 0 0;
  height: var(--swatch-underline);
  background: #111;
}

/* 颜色映射 —— 加新颜色补一行，名称必须和选项值一致 */
.variant-picker .variant-option__button-label:has(input[value="Gold" i])      { --swatch-bg: #E3BE8E; }
.variant-picker .variant-option__button-label:has(input[value="Silver" i])    { --swatch-bg: #E6E6E6; }
.variant-picker .variant-option__button-label:has(input[value="Rose Gold" i]) { --swatch-bg: #E8B391; }
.variant-picker .variant-option__button-label:has(input[value="Black" i]) { --swatch-bg: #000000; }

/* 标题显示为 “Color: 当前值” */
.variant-picker .variant-option--buttons legend {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #111 !important;
  margin: 0 0 16px !important;
}
.variant-picker .variant-option--buttons:has(input[value="Gold" i]:checked)      legend::after { content: ": Gold"; }
.variant-picker .variant-option--buttons:has(input[value="Silver" i]:checked)    legend::after { content: ": Silver"; }
.variant-picker .variant-option--buttons:has(input[value="Rose Gold" i]:checked) legend::after { content: ": Rose Gold"; }
.variant-picker .variant-option--buttons:has(input[value="Black" i]:checked) legend::after { content: ": Black"; }

/* 单值颜色（只有一个颜色可选时）：冒号 + 一个色块，色块由 JS 注入 */
variant-picker .variant-option[data-testid="variant-option-single"] {
  font-size: 15px;
  color: #111;
}
variant-picker .variant-option[data-testid="variant-option-single"] .variant-option__swatch-value::before {
  content: ": ";
}
.variant-picker .caly-swatch-row {
  display: flex;
  gap: var(--swatch-gap);
  margin-top: 16px;
}
.variant-picker .caly-swatch-box {
  position: relative;
  box-sizing: content-box;
  width: var(--swatch-size);
  height: var(--swatch-size);
  padding: 0 0 var(--swatch-underline-gap) 0;
}
.variant-picker .caly-swatch-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% - var(--swatch-underline-gap));
  background: var(--swatch-bg, #d9d9d9);
  border: 0;
  outline: none;
  box-shadow: none;
}
.variant-picker .caly-swatch-box::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: var(--swatch-underline);
  background: #111;
}


/* ============================================================
   02. 商品卡色块（首页 / 集合页 / 推荐位里的商品卡）
   作用：色块自己画纯色（不依赖主题那张 webp 图，图没来也不会是白块）；
        选中色块下方 1px 下划线；没选中时第一个色块带下划线；
        并隐藏 overflow-list 的“更多”折叠入口
   ============================================================ */
.product-card .variant-option__button-label--has-swatch:has(:checked) {
  outline: none !important;
  position: relative;
  padding-bottom: 4px !important;
}
.product-card .variant-option__button-label--has-swatch:has(:checked)::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: #111;
}
.product-card .variant-option__button-label--has-swatch:hover,
.product-card .variant-option__button-label--has-swatch:has(:focus-visible) {
  outline: none !important;
}
.product-card swatches-variant-picker-component:not(:has(input:checked))
  .variant-option__swatch:first-child .variant-option__button-label {
  position: relative;
  padding-bottom: 4px !important;
}
.product-card swatches-variant-picker-component:not(:has(input:checked))
  .variant-option__swatch:first-child .variant-option__button-label::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: #111;
}
.product-card overflow-list::part(more) { display: none !important; }
.product-card swatches-variant-picker-component { --overflow-list-padding-inline: 0px; }

/* 色块自己画纯色：不依赖主题那张 webp 图，图没加载/加载失败也不会是白块。
   这段是 CSS 层，主题重渲染也会自动生效；颜色映射和 JS 里的 SWATCH_COLORS 保持一致。 */
.product-card span.swatch {
  background-color: #d9d9d9;        /* 兜底色：任何漏配的色名都不会是白块 */
  background-size: cover;
  background-position: center;
}
.product-card .variant-option__button-label:has(input[value="Gold" i]) span.swatch {
  background-image: none !important;
  background-color: #E3BE8E !important;
}
.product-card .variant-option__button-label:has(input[value="Silver" i]) span.swatch {
  background-image: none !important;
  background-color: #E6E6E6 !important;
}
.product-card .variant-option__button-label:has(input[value="Rose Gold" i]) span.swatch {
  background-image: none !important;
  background-color: #E8B391 !important;
}
.product-card .variant-option__button-label:has(input[value="Black" i]) span.swatch {
  background-image: none !important;
  background-color: #111111 !important;
}

/*
   立即显示的商品卡色块排。
   Horizon 原来的 overflow-list 仍在后台负责变体逻辑，但界面不再等它加载。
*/
.product-card.caly-card-swatches-ready product-swatches {
  display: none !important;
}
/* 商品卡变体方框：仅影响首页、集合页和推荐位，不影响 PDP 颜色选择器 */
.product-card .caly-card-swatch-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;          /* 方框之间的距离 */
  margin: 8px 0 0;    /* 与上方内容保持 8px 距离 */
  padding-left: 6px; /* 整排方框向右留出 6px；以后改这里即可 */
}
.product-card .caly-card-swatch {
  position: relative;
  display: block;
  flex: 0 0 auto;
  box-sizing: content-box;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;

  /*
     可见颜色严格限制在上方 16×16 的正方形内容区。
     底部额外 2px：第 1px 是色块与横线的空隙，第 2px 是横线本身。
     background-clip 很重要，否则按钮的背景色会涂进 padding，视觉上就会变成长方形。
  */
  padding: 0 0 4px 0 !important;
  background-clip: content-box !important;
  -webkit-background-clip: content-box !important;
  background-origin: content-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  cursor: pointer;
}
.product-card .caly-card-swatch.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #111;
}
.product-card .caly-card-swatch:focus-visible {
  outline: 1px solid #111;
  outline-offset: 2px;
}


/* ============================================================
   03. Picked Just for You 轮播进度线（首页 / 集合页的推荐轮播）
   ============================================================ */
.caly-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 6px;
}
.caly-progress__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.caly-progress__arrow[disabled] { opacity: .25; cursor: default; }
.caly-progress__arrow img { width: 6px; height: 12px; display: block; }
.caly-progress__track {
  position: relative;
  width: 260px;
  height: 1px;
  background: #e5e5e5;
}
.caly-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  background: #111;
  width: 0%;
}
@media (max-width: 749px) {
  .caly-progress__track { width: 160px; }
}


/* ============================================================
   04. 折扣价（全站，任何出现 product-price 的地方）
   原价划线排前、折后价红色、折扣标签 “xx% OFF (SAVE $xx)” 单独一行
   想换红色只改 --caly-sale-red
   ============================================================ */
product-price {
  --caly-sale-red: #ce4326;
}
product-price > div[ref="priceContainer"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 2px;
}
product-price .price-item__group { display: inline-block; white-space: nowrap; }

/* 原价排到前面并划线 */
product-price .price-item--regular.compare-at-price {
  order: 1;
  color: #000 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 0, 0, 0.45);
}
/* 折后价变红 */
product-price .price-item__group.price {
  order: 2;
  color: var(--caly-sale-red) !important;
}
/* 折扣文案单独一行 */
product-price .caly-discount {
  order: 3;
  flex: 0 0 100%;
  color: var(--caly-sale-red) !important;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}


/* ============================================================
   05. PDP 图集下方信任条
   位置：商品主图下沿、紧贴（0 间距）
   移动端改为横向可滑
   ============================================================ */
.caly-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px 16px;
  margin-top: 0;
  padding: 16px 20px;
  background: #f5f5f5;
  color: #111;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.caly-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.caly-trust__item svg { width: 20px; height: 20px; flex: 0 0 auto; color: #111; }
.caly-trust__text { white-space: nowrap; }

@media screen and (max-width: 749px) {
  .caly-trust {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 26px;
    padding: 14px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .caly-trust::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .caly-trust__item { flex: 0 0 auto; justify-content: flex-start; scroll-snap-align: start; }
}


/* ============================================================
   06. PDP 移动端图集：4:5 比例 + 1px 黑色滑动短线（带拖影）
   短线元素由 JS 注入（.caly-pdp-progress）
   ============================================================ */
.caly-pdp-progress { display: none; }   /* 桌面端不显示 */

@media screen and (max-width: 749px) {
  /* 图集改成 4:5，图片裁切填满 */
  .product-information__media media-gallery { --gallery-aspect-ratio: 0.8 !important; }
  .product-information__media media-gallery slideshow-component,
  .product-information__media media-gallery slideshow-slides,
  .product-information__media media-gallery slideshow-slide,
  .product-information__media media-gallery .product-media,
  .product-information__media media-gallery .product-media__image { height: 100% !important; }
  .product-information__media media-gallery .product-media__image { object-fit: cover !important; }

  /* 隐藏主题自带圆点 */
  .product-information__media .slideshow-controls__dots { display: none !important; }

  /* 短线：无灰底轨，紧贴图片底边 */
  .product-information__media media-gallery .caly-pdp-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 1px;
    pointer-events: none;
  }
  /* 拖影：贴在主线尾部，朝运动方向背后渐隐 */
  .caly-pdp-progress__trail {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    opacity: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.55) 100%);
    will-change: transform, opacity;
    transition: transform 0.45s cubic-bezier(0.22, 0.75, 0.28, 1), opacity 0.4s ease;
  }
  /* 向左滑动时，拖影改到右侧 */
  .caly-pdp-progress.is-tail-right .caly-pdp-progress__trail {
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0, rgba(0,0,0,0) 100%);
  }
  /* 主线 */
  .caly-pdp-progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: #000;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.22, 0.75, 0.28, 1);
  }
  /* 拖动期间才显示拖影，停下后淡出 */
  .caly-pdp-progress.is-moving .caly-pdp-progress__trail { opacity: 1; }
}

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  .caly-pdp-progress__trail,
  .caly-pdp-progress__bar { transition: none !important; }
  .caly-pdp-progress__trail { display: none !important; }
}


/* ============================================================
   07. PDP Why We Love It + 包装说明
   位置：加购按钮（ADD TO CART）下方、折叠区块（Material & Size）之上
   文案由 JS 统一输出，全站商品一致
   ============================================================ */
.caly-why {
  margin: 4px 0 -10px;
  color: #111;
}
.caly-why__title {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}
.caly-why__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.caly-why__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
}
.caly-why__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #111;
}
.caly-why__icon svg { display: block; width: 100%; height: 100%; }
/* 包装说明：一条分隔线 + 更小的灰字 */
.caly-why__gift {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eaeaea;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
}
.caly-why__gift svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }

@media screen and (max-width: 749px) {
  .caly-why { margin: 8px 0 -6px; }
  .caly-why__title { margin-bottom: 18px; }
  .caly-why__item { font-size: 14px; }
}


/* ============================================================
   08. PDP 面包屑（对齐 Mejuri：12px / #79786C / 上下各 10px）
   ============================================================ */

/* 商品区是 display:grid + row-gap:48px，面包屑单占一行会把间距撑开，这里把行距归零 */
.product-information.caly-has-breadcrumb {
  row-gap: 0;
  padding-top: 0;
}
.caly-breadcrumb {
  padding: 10px 0;
  font-size: 12px;
  line-height: 18px;
  color: #79786c;
}
.caly-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.caly-breadcrumb li {
  text-transform: capitalize;
  white-space: nowrap;
  min-width: 0;
}
.caly-breadcrumb li a {
  color: #79786c;
  text-decoration: none;
  transition: color 0.3s ease;
}
.caly-breadcrumb li a:hover { color: #0a0a0a; }
.caly-breadcrumb li[aria-hidden='true'] { color: #79786c; }
/* 最后一级（商品名）：不换行，过长时省略 */
.caly-breadcrumb li:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PDP 上方有一个 33px 的空 spacer section，桌面端把面包屑上移抵消，让上下留白一致 */
@media screen and (min-width: 750px) {
  .caly-breadcrumb { margin-top: -33px; }
}
@media screen and (max-width: 749px) {
  .caly-breadcrumb { padding: 10px 0; }
}


/* ============================================================
   09. 集合页筛选/排序条吸顶底衬（配合 JS 的 fixed 切换）
   ============================================================ */
.caly-facets--fixed {
  background: var(--color-background, #fff);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Calytris / Judge.me 新版评论排版
   参考方向：简洁无衬线标题 + 等宽正文 + 黑灰层级
   放置位置：assets/base.css 最末尾，不需要 <style> 标签。
   请先删除之前单独添加的 Judge.me 字体覆盖代码。
   不要删除主题原始 CSS 或商品变体修复代码。
   ============================================================ */

/* 只在评论区和写评论弹窗内声明变量，不改变全站字体。 */
#judgeme_product_reviews,
.jdgm-write-review-modal {
  --caly-review-heading-font: "Inter", Arial, sans-serif;
  --caly-review-body-font: "IBM Plex Mono", "Courier New", monospace;
  --caly-review-ink: #111111;
  --caly-review-muted: #666666;
  --font-body--family: var(--caly-review-body-font);
  --font-paragraph--family: var(--caly-review-body-font);
  font-family: var(--caly-review-body-font) !important;
}

/* 默认文字：辅助信息 12px；下面再分别设置正文和标题。 */
#judgeme_product_reviews .jm-text {
  font-family: var(--caly-review-body-font) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  color: var(--caly-review-muted) !important;
}

/* 评论区主标题：桌面 20px，手机 18px，英文大写。 */
#judgeme_product_reviews .jm-review-widget-minimal-header__title {
  font-family: var(--caly-review-heading-font) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--caly-review-ink) !important;
  text-transform: uppercase;
}

/* 总评分数字与评论数量：保持克制，不做超大数字。 */
#judgeme_product_reviews .jm-average-rating-display .jm-text {
  font-family: var(--caly-review-heading-font) !important;
  font-size: 14px !important;
  color: var(--caly-review-ink) !important;
}

/* 姓名：等宽字体，深色；日期等其他信息仍为上面的灰色。 */
#judgeme_product_reviews .jm-reviewer-info__name {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--caly-review-ink) !important;
}

/* 每条评论的小标题：无衬线、大写、14px。 */
#judgeme_product_reviews .jm-review-content__title {
  font-family: var(--caly-review-heading-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: var(--caly-review-ink) !important;
  text-transform: uppercase;
}

/* 正文：等宽字体 14px，行高 1.7，手机端也保持易读。 */
#judgeme_product_reviews .jm-review-content__body,
#judgeme_product_reviews .jdgm-review-content__body-content,
#judgeme_product_reviews .jdgm-review-content__body-content p {
  font-family: var(--caly-review-body-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  color: var(--caly-review-ink) !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
}

/* 按钮与展开文字：只调整排版，保留插件原有点击、焦点和禁用样式。 */
#judgeme_product_reviews .jm-button,
#judgeme_product_reviews .jm-button .jm-text,
#judgeme_product_reviews .jm-review-content__expand-button {
  font-family: var(--caly-review-heading-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

/* 写评论表单：使用无衬线，输入内容保持 16px 便于手机填写。 */
.jdgm-write-review-modal :is(p, label, button, input, textarea, select),
.jdgm-write-review-modal :is(
  .jdgm-write-review-modal__title,
  .jdgm-write-review-modal__intro,
  .jdgm-write-review-modal__text,
  .jdgm-write-review-modal__product-title,
  .jdgm-write-review-modal__checkbox-text
) {
  font-family: var(--caly-review-heading-font) !important;
  letter-spacing: 0 !important;
}
.jdgm-write-review-modal :is(input, textarea, select) {
  font-size: 16px !important;
}

@media (max-width: 749px) {
  #judgeme_product_reviews .jm-review-widget-minimal-header__title {
    font-size: 18px !important;
  }
}

/* 不对 .jdgm-star、图标或全部后代使用通配字体覆盖，保留星星正常显示。 */

/* 星星缩小为 16px，保留原有满星、半星、空星字体。 */
#judgeme_product_reviews .jm-star-rating__font-icon {
  font-size: 16px !important;
  line-height: 1 !important;
}
#judgeme_product_reviews .jm-star-rating > .jm-cluster {
  gap: 4px !important;
}

/* ============================================================
   智能 More：与配套脚本一起使用。
   标题最多 2 行，正文最多 5 行；短评隐藏按钮，长评可展开和收起。
   ============================================================ */
#judgeme_product_reviews .caly-review-enhanced .jm-review-content__expand-button {
  display: none !important;
}
#judgeme_product_reviews .caly-review-managed {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: none !important;
  height: auto !important;
  cursor: text !important;
}
#judgeme_product_reviews .jm-review-content__title.caly-review-managed {
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}
#judgeme_product_reviews .jm-review-content__body.caly-review-managed {
  -webkit-line-clamp: 5 !important;
  line-clamp: 5 !important;
}
/* 优先级高于上面的行数限制；测量类只在同步计算期间使用。 */
#judgeme_product_reviews .caly-review-managed:is(.caly-review-expanded, .caly-review-measuring) {
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
}
#judgeme_product_reviews .caly-review-enhanced .jm-review-body-wrapper {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
#judgeme_product_reviews .caly-review-more {
  display: inline-block;
  width: auto;
  min-width: 0;
  min-height: 32px;
  margin: 4px 0 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--caly-review-heading-font) !important;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#judgeme_product_reviews .caly-review-more[hidden] {
  display: none !important;
}
#judgeme_product_reviews .caly-review-more:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

 /* ============================================================
   商品卡：无折扣时也预留一行空白，让变体方框保持水平对齐。
   仅影响商品卡，不影响 PDP 主商品价格区域。
   保留之前设置的方框尺寸、左侧间距和下划线。
   ============================================================ */

/* 没有折扣文案时，在价格下面生成一行不可见的占位内容 */
.product-card product-price > div[ref="priceContainer"]:not(:has(.caly-discount))::after {
  content: "\00a0";      /* 不换行空格：只占位置，不显示文字 */
  display: block;
  order: 3;             /* 与真实折扣文案保持相同排列顺序 */
  flex: 0 0 100%;        /* 独占一行 */
  height: auto;
  font-size: inherit;    /* 跟随价格字号 */
  line-height: inherit;  /* 与真实折扣行保持相同行高 */
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   商品卡触屏修正
   禁止手指误滑商品卡内部图片，以及内部轮播自动吸附。
   保留点击变体方框后由脚本切图的能力。
   不影响 PDP，不强制回到第一张图。
   撤回时删除这一整段即可。
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  .product-card .card-gallery slideshow-component > slideshow-container > slideshow-slides {
    overflow-x: hidden !important;
    scroll-snap-type: none !important;
  }
}

{% #豆包 %}