[data-product-card-style="glass-fold"] .glass-fold-card {
  --glass-fold-surface: color-mix(in srgb, var(--glass-fold-tint, #fff) var(--product-card-glass-opacity, 74%), transparent);
  --glass-fold-chip: color-mix(in srgb, var(--glass-fold-tint, #fff) 72%, transparent);
  --glass-fold-edge: color-mix(in srgb, #fff 42%, transparent);

  container: glass-fold / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  color: var(--glass-fold-text, #1f1a16);
}

[data-product-card-style="glass-fold"] .glass-fold-card .glass-fold-card__media {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  aspect-ratio: var(--glass-fold-ratio, 3 / 4);
  border-radius: var(--glass-fold-radius, 14px);
  background-color: color-mix(in srgb, var(--glass-fold-text, #1f1a16) 8%, transparent);
}

[data-product-card-style="glass-fold"] .glass-fold-card .glass-fold-card__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}

[data-product-card-style="glass-fold"] .glass-fold-card__tools {
  position: absolute;
  z-index: 3;
  inset-block-start: 4cqw;
  inset-inline-start: 4cqw;
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
}

[data-product-card-style="glass-fold"] .glass-fold-card__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 11.5cqw, 44px);
  height: clamp(30px, 11.5cqw, 44px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--glass-fold-edge);
  border-radius: 50%;
  background: var(--glass-fold-chip);
  -webkit-backdrop-filter: var(--product-card-backdrop, none);
  backdrop-filter: var(--product-card-backdrop, none);
  color: var(--glass-fold-badge-text, #1f1a16);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

@layer base {
  [data-product-card-style="glass-fold"] .glass-fold-card__tool[hidden] {
    display: inline-flex !important;
  }
}

[data-product-card-style="glass-fold"] .glass-fold-card__tool svg {
  width: 58%;
  height: 58%;
}

[data-product-card-style="glass-fold"] .glass-fold-card__tool.is-active svg path,
[data-product-card-style="glass-fold"] .glass-fold-card__tool[aria-pressed="true"] svg path {
  fill: currentColor;
}

[data-product-card-style="glass-fold"] .glass-fold-card__tool.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

[data-product-card-style="glass-fold"] .glass-fold-card__badges {
  position: absolute;
  z-index: 3;
  inset-block-start: 4cqw;
  inset-inline-end: 4cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6cqw;
  max-width: 62cqw;
  pointer-events: none;
}

[data-product-card-style="glass-fold"] .glass-fold-card__badge,
[data-product-card-style="glass-fold"] .glass-fold-card__badges .badge {
  padding: 1.1cqw 2.8cqw;
  border-radius: 999px;
  font-size: clamp(10px, 3.7cqw, 13px);
  font-weight: 600;
  line-height: 1.45;
  background: var(--glass-fold-surface);
  -webkit-backdrop-filter: var(--product-card-backdrop, none);
  backdrop-filter: var(--product-card-backdrop, none);
  color: var(--glass-fold-badge-text, #1f1a16);
}

[data-product-card-style="glass-fold"] .glass-fold-card__box {
  position: absolute;
  z-index: 2;
  inset-inline: 6cqw;
  inset-block-end: 6cqw;
  padding: 3.2cqw 4.2cqw;
  border: 1px solid var(--glass-fold-edge);
  border-radius: calc(var(--glass-fold-radius, 14px) * 0.8);
  background: var(--glass-fold-surface);
  -webkit-backdrop-filter: var(--product-card-backdrop, none);
  backdrop-filter: var(--product-card-backdrop, none);
  box-shadow: 0 2cqw 6cqw -3cqw rgb(0 0 0 / 0.3);
}

[data-product-card-style="glass-fold"] .glass-fold-card__name {
  margin: 0;
  color: var(--glass-fold-text, #1f1a16);
  font-size: clamp(12px, 4.7cqw, 18px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: start;
}

body[data-product-card-style="glass-fold"].is-internal-page #main .glass-fold-card .glass-fold-card__name {
  color: var(--glass-fold-text, #1f1a16) !important;
  letter-spacing: normal;
}

[data-product-card-style="glass-fold"] .glass-fold-card__name a {
  display: -webkit-inline-box;
  max-width: 100%;
  vertical-align: top;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: inherit;
  text-decoration: none;
}

[data-product-card-style="glass-fold"] .glass-fold-card__fold {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease;
}

[data-product-card-style="glass-fold"] .glass-fold-card__fold-inner {
  min-width: 0;
  min-height: 0;
  margin-inline: -4px;
  padding-inline: 4px;
  overflow: hidden;
}

[data-product-card-style="glass-fold"] .glass-fold-card__row {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding-block: 2.6cqw 3px;
}

[data-product-card-style="glass-fold"] .glass-fold-card__thumb {
  display: var(--glass-fold-thumb, block);
  flex: none;
  width: auto;
  height: 13cqw;
  aspect-ratio: var(--glass-fold-ratio, 3 / 4);
  overflow: hidden;
  border-radius: 2.6cqw;
  background-color: color-mix(in srgb, var(--glass-fold-text, #1f1a16) 8%, transparent);
}

[data-product-card-style="glass-fold"] .glass-fold-card .glass-fold-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

[data-product-card-style="glass-fold"] .glass-fold-card__prices {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4cqw 2cqw;
  line-height: 1.3;
}

[data-product-card-style="glass-fold"] .glass-fold-card__price {
  color: var(--glass-fold-price, var(--glass-fold-text, #1f1a16));
  font-size: clamp(12px, 4.9cqw, 19px);
  font-weight: 700;
  white-space: nowrap;
}

[data-product-card-style="glass-fold"] .glass-fold-card__compare {
  color: color-mix(in srgb, var(--glass-fold-price, var(--glass-fold-text, #1f1a16)) 70%, transparent);
  font-size: clamp(10px, 3.9cqw, 15px);
  font-weight: 500;
  text-decoration: line-through;
  white-space: nowrap;
}

[data-product-card-style="glass-fold"] .glass-fold-card__cart {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: max(30px, 13cqw);
  height: max(30px, 13cqw);
  margin: 0;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--glass-fold-surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--glass-fold-cart-icon, #1f1a16) 25%, transparent);
  color: var(--glass-fold-cart-icon, #1f1a16);
  font-size: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

[data-product-card-style="glass-fold"] .glass-fold-card__cart svg {
  flex: none;
  width: 58%;
  height: 58%;
}

[data-product-card-style="glass-fold"] .glass-fold-card__cart:disabled {
  cursor: wait;
}

[data-product-card-style="glass-fold"] .glass-fold-card__name a:focus-visible,
[data-product-card-style="glass-fold"] .glass-fold-card__tool:focus-visible,
[data-product-card-style="glass-fold"] .glass-fold-card__cart:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

[data-product-card-style="glass-fold"] .glass-fold-card__cart:focus-visible {
  outline-color: var(--glass-fold-text, #1f1a16);
}

[data-product-card-style="glass-fold"] .glass-fold-card .glass-fold-card__media:focus-visible {
  outline: 2px solid var(--primary, #1f1a16);
  outline-offset: -2px;
}

@container glass-fold (max-width: 129px) {
  [data-product-card-style="glass-fold"] .glass-fold-card__thumb {
    display: none;
  }
}

@media (hover: hover) {
  [data-product-card-style="glass-fold"] .glass-fold-card__tool:hover {
    transform: scale(1.06);
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__cart:hover {
    transform: scale(1.06);
    filter: brightness(0.92);
  }
}

@media (min-width: 769px) and (hover: hover) {
  [data-product-card-style="glass-fold"] .glass-fold-card:not(:hover):not(:focus-within) .glass-fold-card__name {
    text-align: center;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card:not(:hover):not(:focus-within) .glass-fold-card__name a {
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card:not(:hover):not(:focus-within) .glass-fold-card__fold {
    grid-template-rows: 0fr;
  }
}

@media (max-width: 768px) {
  [data-product-card-style="glass-fold"] .glass-fold-card__box {
    position: static;
    flex: 1 1 auto;
    margin: 4cqw 0 0;
    padding: 3cqw 3.4cqw;
    border-color: color-mix(in srgb, var(--glass-fold-text, #1f1a16) 12%, transparent);
    border-radius: var(--glass-fold-radius, 14px);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__name {
    font-size: clamp(11px, 6cqw, 15px);
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__name a {
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__row {
    gap: 2.4cqw;
    padding-block-start: 2cqw;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__thumb {
    height: 15cqw;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__prices {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__price {
    font-size: clamp(11.5px, 6.3cqw, 16px);
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__compare {
    font-size: clamp(9.5px, 5cqw, 13px);
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__cart {
    width: max(28px, 15cqw);
    height: max(28px, 15cqw);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-product-card-style="glass-fold"] .glass-fold-card {
    --glass-fold-surface: color-mix(in srgb, var(--glass-fold-tint, #fff) 88%, transparent);
    --glass-fold-chip: color-mix(in srgb, var(--glass-fold-tint, #fff) 88%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-product-card-style="glass-fold"] .glass-fold-card__fold,
  [data-product-card-style="glass-fold"] .glass-fold-card__tool,
  [data-product-card-style="glass-fold"] .glass-fold-card__cart {
    transition: none;
  }

  [data-product-card-style="glass-fold"] .glass-fold-card__tool:hover,
  [data-product-card-style="glass-fold"] .glass-fold-card__cart:hover {
    transform: none;
  }
}
