/* Native Steinwood cards; load after the shared card styles. */
body.sw-brand .sw-card.sw-card-modern.product-item {
  --sw-card-ink: #123f40;
  --sw-card-muted: #506763;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0;
  max-height: none;
  min-width: 0;
  padding: 0 10px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sw-card-ink);
  font: 400 14px/1.45 var(--sw-font, Avenir, "Avenir Next", sans-serif);
  text-align: left;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] {
  --sw-card-border: 0;
  --sw-card-radius: 0;
  --sw-card-top: 3px solid var(--sw-card-ink);
  --sw-card-title-size: clamp(15px, 1.55vw, 22px);
  --sw-card-price-weight: 700;
  --sw-card-price-size: 25px;
}
body.sw-brand .sw-home-grid .sw-card-modern[data-sw-price-focus] { --sw-card-top: 0; }
body.sw-brand .sw-card.sw-card-modern *,
body.sw-brand .sw-card.sw-card-modern *::before,
body.sw-brand .sw-card.sw-card-modern *::after { box-sizing: border-box; }
body.sw-brand .sw-card.sw-card-modern [hidden] { display: none !important; }
body.sw-brand .sw-card.sw-card-modern .sw-card-surface {
  display: flex; flex: 1; flex-direction: column;
  width: 100%; min-width: 0;
  border: var(--sw-card-border, 1px solid #123f401a);
  border-top: var(--sw-card-top, 1px solid #123f401a); border-radius: var(--sw-card-radius, 12px);
  background: #fff;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-media {
  position: relative; flex: none; width: 100%; aspect-ratio: 1;
  margin: 0; padding: 0; isolation: isolate;
  border-radius: var(--sw-card-radius, 11px 11px 0 0); background: #fff;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-media > a {
  position: relative; display: block; width: 100%; height: 100%;
  aspect-ratio: 1; border-radius: inherit;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-media img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-width: 100%; max-height: none;
  margin: 0; padding: 10px; border-radius: inherit;
  object-fit: contain; transform: none;
  transition: opacity 180ms ease;
}
@media (min-width: 1200px) {
  body.sw-brand .sw-collection-group__grid > .sw-card.sw-card-modern img[data-sw-card-primary] {
    padding: 18px;
  }
}
body.sw-brand .sw-card.sw-card-modern img[data-sw-card-hover] {
  padding: 0; object-fit: cover; opacity: 0; pointer-events: none;
}
body.sw-brand .sw-card.sw-card-modern button {
  font: inherit; color: inherit; cursor: pointer; text-transform: none;
  letter-spacing: normal; appearance: none;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-condition {
  position: absolute; z-index: 1; top: 10px; left: 10px;
  max-width: calc(100% - 20px); padding: 5px 9px; border-radius: 4px;
  background: var(--sw-card-ink); color: #fff; font-size: 12px;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-deal-badge {
  position: absolute; z-index: 1; top: 10px; right: 10px;
  max-width: 64px; padding: 5px 8px; border-radius: 4px;
  background: var(--sw-card-ink); color: #fff;
  font: 600 12px/1.5 var(--sw-font, Avenir, "Avenir Next", sans-serif);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  pointer-events: none;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-deal-badge:empty { display: none; }
/* Reserve separate space; the condition label can wrap on narrow cards. */
body.sw-brand .sw-card.sw-card-modern .sw-card-media:has(> .sw-card-deal-badge:not([hidden]):not(:empty)) > .sw-card-condition {
  max-width: calc(100% - 94px);
  overflow-wrap: anywhere;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-body {
  display: flex; flex: 1; flex-direction: column; gap: 10px;
  min-width: 0; margin: 0; padding: 20px;
  border: 0; border-radius: var(--sw-card-radius, 0 0 11px 11px); background: #fff;
  text-align: left;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-title {
  margin: 0; padding: 0; min-height: 0; height: auto;
  font: 600 var(--sw-card-title-size, 18px)/1.3 var(--sw-font, Avenir, "Avenir Next", sans-serif);
  letter-spacing: normal; text-transform: none; overflow-wrap: anywhere;
}
body.sw-brand .sw-card.sw-card-modern a { color: var(--sw-card-ink); text-decoration: none; }
body.sw-brand .sw-card.sw-card-modern .sw-card-title a { display: block; font: inherit; }
body.sw-brand .sw-card.sw-card-modern .sw-card-rating {
  display: inline-flex; align-self: flex-start; align-items: center;
  flex-wrap: wrap; gap: 4px 7px; max-width: 100%;
  margin: 0; padding: 0; color: var(--sw-card-muted);
  font: 400 12px/1.5 var(--sw-font, Avenir, "Avenir Next", sans-serif);
}
body.sw-brand .sw-card.sw-card-modern .sw-card-rating__stars {
  position: relative; display: inline-block; flex: none;
  font: 20px/1 Arial, sans-serif; letter-spacing: 1px; color: #dedbd3;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-rating__stars > span {
  position: absolute; top: 0; left: 0; width: var(--sw-rating-fill);
  overflow: hidden; white-space: nowrap; color: #c18a18;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-rating__stars { font-size: 0; letter-spacing: 0; }
body.sw-brand [data-sw-price-focus] .sw-card-rating__stars > span { display: none; }
body.sw-brand [data-sw-price-focus] .sw-card-rating__stars::before { content: "★"; color: #aa690b; font: 15px/1 Arial, sans-serif; }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-facts] {
  display: grid; gap: 5px; margin: 0; padding: 0; list-style: none;
  font-size: 13px; line-height: 1.5;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] [data-sw-card-facts] {
  border-top: 1px solid #d2ded9; padding-top: 7px; color: var(--sw-card-muted);
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-facts] li {
  position: relative; margin: 0; padding: 0; padding-inline-start: 19px;
  overflow-wrap: anywhere;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-fact-icon {
  position: absolute; inset-inline-start: 0; top: 0.25em;
  color: var(--sw-card-muted); font-size: 12px; line-height: 1;
}
.sw-card-fact-icon--scale,
.sw-card-fact-icon--ruler {
  width: 14px; height: 14px;
  background-color: currentColor;
  -webkit-mask: var(--sw-card-fact-mask) center / contain no-repeat;
  mask: var(--sw-card-fact-mask) center / contain no-repeat;
}
.sw-card-fact-icon--scale {
  --sw-card-fact-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 2h13L12 5H4z M8 5v2.5 M5 7.5h6l2 6.5H3z M6.5 10.5h3' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sw-card-fact-icon--ruler {
  --sw-card-fact-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 4h14v8H1z M4.5 4v3 M8 4v5 M11.5 4v3' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-facts] li > span { color: var(--sw-card-muted); }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-facts] li > span::after { content: ":"; }
body.sw-brand .sw-card.sw-card-modern .sw-card-static-options {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-static-options:empty { display: none; }
body.sw-brand .sw-card.sw-card-modern .sw-card-static-option {
  display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box;
  min-height: 40px; max-width: 100%; padding: 6px 14px;
  border: 1px solid #a5b7b1; border-radius: 22px;
  color: var(--sw-card-ink); font-size: 13px; font-weight: 600; line-height: 1.4;
  overflow-wrap: anywhere;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-color-dot {
  position: relative; flex: none; box-sizing: border-box; width: 32px; height: 32px;
  padding: 2px; border: 1px solid #a5b7b1; border-radius: 50%;
  background: var(--sw-card-swatch) content-box;
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-choices] { min-width: 0; margin: 0; padding: 0; border: 0; }
body.sw-brand .sw-card.sw-card-modern .sw-card-choice-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: none; min-height: 44px; min-width: 44px; max-width: 100%;
  margin: 0; padding: 8px; border: 0; border-radius: 22px;
  background: transparent; box-shadow: none; font-size: 13px; line-height: 1.4;
  overflow-wrap: anywhere;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice-list:not(:has(.sw-card-choice--photo)) {
  width: fit-content; max-width: 100%; padding: 4px;
  gap: 4px; border-radius: 26px; background: #edf2ef;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice:not(.sw-card-choice--photo) { min-width: 64px; padding: 8px 16px; font-weight: 600; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice-list { gap: 8px 12px; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice-list:not(:has(.sw-card-choice--photo)) {
  padding: 0; gap: 6px 8px; border-radius: 0; background: transparent;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice:not(.sw-card-choice--photo),
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-static-option {
  padding: 4px 8px; border: 1px solid #a5b7b1; border-radius: 4px;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice:not(.sw-card-choice--photo) {
  min-width: 44px; padding: 4px 12px; border-color: #b3bfba; border-radius: 10px;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice:not(.sw-card-choice--photo)[aria-pressed="true"] { background: var(--sw-card-ink); color: #fff; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice:not(.sw-card-choice--photo)[aria-pressed="true"] {
  color: var(--sw-card-ink); border-color: currentColor;
  background: color-mix(in srgb, currentColor 12%, white);
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice--photo {
  width: 48px; height: 48px; padding: 5px;
  border: 1px solid #d3dfdb; border-radius: 8px; background: #fff;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice--photo[aria-pressed="true"] {
  border-color: var(--sw-card-ink);
  box-shadow: inset 0 0 0 1px var(--sw-card-ink);
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice--photo[aria-pressed="true"] {
  background: color-mix(in srgb, var(--sw-card-ink) 12%, white); box-shadow: none;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice:focus-visible {
  outline: 2px solid #107174; outline-offset: -2px;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-choice--photo img {
  display: block; flex: none; width: 36px; height: 36px;
  max-width: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 3px; object-fit: contain; background: #fff;
}
body.sw-brand .sw-card.sw-card-modern .sw-card-footer { margin-top: 0; padding-top: 0; border: 0; }
body.sw-brand .sw-card.sw-card-modern .sw-card-price {
  display: flex; flex-flow: row wrap; align-items: baseline; gap: 3px 8px;
  margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-price] { font-size: var(--sw-card-price-size, 25px); font-weight: var(--sw-card-price-weight, 600); font-style: normal; line-height: 1.2; }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-uvp] { color: var(--sw-card-muted); font-size: 12px; }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-uvp] s { text-decoration: line-through; text-decoration-thickness: 1px; }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-reference] {
  margin: 5px 0 0; color: var(--sw-card-muted); font-size: 12px; line-height: 1.5;
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-saving] { margin: 5px 0 0; color: var(--sw-card-muted); font-size: 12px; line-height: 1.5; }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-saving] b { display: inline-block; font-weight: 500; }
body.sw-brand .sw-card.sw-card-modern [data-sw-card-availability] {
  display: flex; align-items: baseline; gap: 6px;
  margin: 10px 0 0; color: var(--sw-card-muted); font-size: 12px;
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-availability]::before {
  content: ""; flex: none; width: 6px; height: 6px;
  border: 1px solid currentColor; border-radius: 50%;
}
body.sw-brand .sw-card.sw-card-modern [data-sw-card-availability][data-available="true"]::before { background: currentColor; }
body.sw-brand .sw-card.sw-card-modern .sw-card-more {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 6px 0;
  border: 0; background: transparent; font-size: 13px;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] :is([data-sw-card-saving], [data-sw-card-availability][data-available="true"]) { display: none; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-options [data-sw-card-availability] { margin: 4px 0 0; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-options:has([data-sw-card-choices]:not([hidden]) [data-available="false"]) [data-sw-card-availability][data-available="true"] {
  display: flex; visibility: hidden;
}
body.sw-brand .sw-card-modern[data-sw-price-focus]:has([data-sw-card-availability][data-available="false"]) [data-sw-card-price] { color: #595f60; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice[data-available="false"] {
  --sw-card-ink: #595f60;
  color: var(--sw-card-ink);
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice[data-available="false"] img {
  filter: grayscale(1); opacity: .65;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-body { position: relative; }
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-more {
  position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 1;
  min-height: 32px; padding: 4px 8px; border-radius: 4px;
  background: var(--sw-card-ink); color: #fff;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-more:not(:focus) {
  width: 1px; height: 1px; min-height: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body.sw-brand .sw-card-modern[data-sw-price-focus] [data-sw-card-choices][hidden] + .sw-card-more { display: none; }

body.sw-brand .sw-card.sw-card-modern .sw-card-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body.sw-brand .sw-card.sw-card-modern :is(a, button):focus-visible { outline: 2px solid #146f72; outline-offset: 3px; }
body.sw-brand .sw-home-grid:has(.sw-card-modern) { align-items: stretch; }
body.sw-brand .sw-home-card:has(> .sw-card-modern) { display: flex; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.sw-brand .sw-home-card > .sw-card.sw-card-modern {
  float: none; width: 100%; max-width: 100%; padding: 0; margin: 0;
}
body.sw-brand .sw-collection-group__grid > .sw-card.sw-card-modern { padding: 0; margin: 0; }
/* The regular collection loop carries the merchant's Bootstrap column choice. */
body.sw-brand :where(.sw-commerce-collection) .product-collection-grid #Custom-Loop:has(> .sw-card-modern.engoj_grid_parent) {
  display: grid; grid-template-columns: repeat(var(--sw-loop-cols, 4), minmax(0, 1fr));
  gap: 24px 20px; padding-inline: 10px; box-sizing: border-box;
  &::before, &::after { content: none; }
  & > .sw-card-modern { float: none; padding: 0; margin: 0; }
  @media (min-width: 992px) {
    &:has(> .col-md-12) { --sw-loop-cols: 1; }
    &:has(> .col-md-6) { --sw-loop-cols: 2; }
    &:has(> .col-md-4) { --sw-loop-cols: 3; }
    &:has(> .col-md-15) { --sw-loop-cols: 5; }
    &:has(> .col-md-2) { --sw-loop-cols: 6; }
    &:has(> :nth-child(3 of .sw-card-modern[data-sw-card-blackweek])):not(
      :has(> :nth-child(4 of .product-item, .sw-card-modern))
    ) {
      --sw-loop-cols: 3;
    }
  }
  @media (max-width: 767px) { --sw-loop-cols: 2; column-gap: 10px; padding-inline: 6px; }
}
body.sw-brand :is(.sw-home-card, .sw-collection-group__grid, .sw-commerce-collection .product-collection-grid #Custom-Loop:has(> .sw-card-modern.engoj_grid_parent)) > .sw-card-modern[data-sw-price-focus] {
  width: 100% !important; min-width: 0 !important; max-width: 100% !important;
}

/* Each visual row shares media, title, rating, facts, price and options tracks. */
@supports (grid-template-rows: subgrid) {
  body.sw-brand :is(.sw-home-grid:has(> .sw-home-card > .sw-card-modern), .sw-collection-group__grid:has(> .sw-card-modern),
      .sw-commerce-collection .product-collection-grid #Custom-Loop:has(> .sw-card-modern.engoj_grid_parent)) {
    row-gap: 0;
    & > .sw-home-card:has(> .sw-card-modern), & .sw-card-modern[data-sw-price-focus],
    & .sw-card-modern > .sw-card-surface, & .sw-card-modern .sw-card-body {
      display: grid; grid-template: subgrid / minmax(0, 1fr); grid-row: span 6; row-gap: 0;
    }
    & .sw-card-surface { margin-block-end: 20px; }
    & .sw-card-modern .sw-card-body { grid-row: 2 / -1; align-items: start; }
    & .sw-card-title { grid-row: 1; }
    & .sw-card-rating { grid-row: 2; justify-self: start; margin-top: 4px; }
    & [data-sw-card-facts] { grid-row: 3; margin-top: 7px; }
    & .sw-card-footer { grid-row: 4; margin-top: 8px; }
    & .sw-card-body > :is(.sw-card-options, .sw-card-static-options, [data-sw-card-choices]) { grid-row: 5; margin-top: 6px; }
  }
}
body.sw-brand .sw-card.sw-card-modern a:focus-visible:has([data-sw-card-hover]:not([hidden])) [data-sw-card-primary] { opacity: 0; }
body.sw-brand .sw-card.sw-card-modern a:focus-visible [data-sw-card-hover] { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  body.sw-brand .sw-card.sw-card-modern .sw-card-media:has([data-sw-card-hover]:not([hidden])):hover [data-sw-card-primary] { opacity: 0; }
  body.sw-brand .sw-card.sw-card-modern .sw-card-media:hover [data-sw-card-hover] { opacity: 1; }
  body.sw-brand .sw-card.sw-card-modern :is(.sw-card-title a, .sw-card-more):hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 767px) {
  body.sw-brand .sw-card-modern[data-sw-price-focus] { --sw-card-price-size: 20px; }
  body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice-list:has(.sw-card-choice--photo) {
    gap: 6px;
  }
  body.sw-brand .sw-card-modern[data-sw-price-focus] .sw-card-choice-list .sw-card-choice--photo {
    box-sizing: border-box; width: 44px; height: 44px; padding: 3px;
  }
  body.sw-brand .sw-card.sw-card-modern.product-item { padding-inline: 6px; margin-bottom: 20px; }
  body.sw-brand .sw-home-card > .sw-card.sw-card-modern,
  body.sw-brand .sw-collection-group__grid > .sw-card.sw-card-modern { padding: 0; margin: 0; }
  body.sw-brand .sw-card.sw-card-modern .sw-card-body { padding: 14px 10px; gap: 9px; }
  body.sw-brand .sw-card.sw-card-modern .sw-card-title { font-size: var(--sw-card-title-size, 15px); }
}
@media (max-width: 480px) {
  body.sw-brand .sw-home-grid:has(> .sw-home-card > .sw-card-modern),
  body.sw-brand .sw-collection-group__grid:has(> .sw-card-modern) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  body.sw-brand .sw-card.sw-card-modern.product-item:not([data-sw-price-focus]) { width: 100% !important; max-width: 100%; flex-basis: 100%; grid-column: 1 / -1; }
  body.sw-brand .sw-card.sw-card-modern:not([data-sw-price-focus]) .sw-card-body { padding: 16px; }
  body.sw-brand .sw-card.sw-card-modern:not([data-sw-price-focus]) .sw-card-title { font-size: 17px; }
}
@media (max-width: 359px) {
  body.sw-brand .sw-commerce-collection .product-collection-grid #Custom-Loop:has(> .sw-card-modern.engoj_grid_parent),
  body.sw-brand .sw-home-grid:has(> .sw-home-card > .sw-card-modern),
  body.sw-brand .sw-collection-group__grid:has(> .sw-card-modern) { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.sw-brand .sw-card.sw-card-modern .sw-card-media img { transition: none; }
}
