/* Module 03. All rules belong to .wi-products; no body/global reset. */
.wi-products {
  
  --wi-ink: #22231f;
  --wi-muted: #686a61;
  --wi-line: #0A0A0A;
  --wi-accent: #6F0B0B;
  background: var(--wi-paper, #faf9f6);
  color: var(--wi-ink);
  font: 14px/1.6 Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  width: 100%;
  container-type: inline-size;
  isolation: isolate;
}
.wi-products *,
.wi-products *::before,
.wi-products *::after {
  box-sizing: border-box;
}
.wi-products [hidden] {
  display: none !important;
}
.wi-products img {
  display: block;
  max-width: 100%;
}
.wi-products button,
.wi-products input {
  font: inherit;
  color: inherit;
}
.wi-products button {
  cursor: pointer;
}
.wi-products button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.wi-products button,
.wi-products summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wi-products button {
  border: 0;
}
.wi-products p,
.wi-products h2,
.wi-products h3 {
  margin: 0;
}
.wi-products :focus-visible {
  outline: 3px solid var(--wi-accent);
  outline-offset: 3px;
}
.wi-products em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.wi-products svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wi-products__inner {
  max-width: 1320px;
  margin: auto;
  margin-top: 15px;
  padding: 0 56px;
}
.wi-products__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding: 56px 0 36px;
}
.wi-products__eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
}
.wi-products__heading h2 {
  font-size: clamp(32px, 4cqi, 54px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -1.8px;
  margin-top: 18px;
}
.wi-products__heading > p {
  font-size: 13px;
  max-width: 280px;
  color: var(--wi-muted);
}
.wi-products__toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 0px solid var(--wi-line);
  border-bottom: 1px solid var(--wi-line);
  padding: 14px 0;
}
.wi-products__search {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 120px;
}
.wi-products__search > svg {
  width: 19px;
  color: var(--wi-muted);
}
.wi-products__search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  padding: 11px 0;
  font-size: 13px;
}
.wi-products__search input::placeholder {
  color: var(--wi-muted);
  opacity: 1;
}
.wi-products__filters {
  display: flex;
  gap: 20px;
  align-items: center;
}
.wi-products__filter {
  position: relative;
}
.wi-products__filter summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  padding: 11px 0;
  min-height: 44px;
}
.wi-products__filter summary::-webkit-details-marker {
  display: none;
}
.wi-products__filter summary > span {
  font-size: 15px;
  transition: transform 0.2s;
}
.wi-products__filter[open] summary > span {
  transform: rotate(180deg);
}
.wi-products__popover {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 260px;
  padding: 23px;
  background: var(--wi-paper, #faf9f6);
  border: 1px solid var(--wi-line);
  box-shadow: 0 12px 30px #22231f12;
}
.wi-products__filter-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 15px !important;
}
.wi-products__popover > label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
}
.wi-products__popover input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--wi-ink);
}
.wi-products__popover > label > span {
  margin-left: auto;
  color: var(--wi-muted);
}
.wi-products__price {
  width: 320px;
}
.wi-products__price-fields {
  display: flex;
  align-items: end;
  gap: 12px;
}
.wi-products__price-fields label {
  flex: 1;
  min-width: 0;
}
.wi-products__price-fields label > span {
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
  color: var(--wi-muted);
}
.wi-products__price-fields input {
  width: 100%;
  background: white;
  border: 1px solid var(--wi-line);
  padding: 10px;
  min-height: 44px;
}
.wi-products__price-fields > span {
  padding-bottom: 10px;
  color: var(--wi-muted);
  font-size: 12px;
}
.wi-products__price > p:not(.wi-products__filter-title) {
  font-size: 11px;
  color: var(--wi-muted);
  margin-top: 13px;
}
.wi-products__price [data-price-error] {
  color: #9b241b !important;
}
.wi-products__text-button {
  background: none;
  color: var(--wi-muted) !important;
  font-size: 10px !important;
  min-height: 44px;
  padding: 0;
}
.wi-products__bag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  background: none;
}
.wi-products__bag > span {
  font-size: 11px;
  min-width: 14px;
}
.wi-products__results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  font-size: 11px;
  color: var(--wi-muted);
}
.wi-products__results button {
  background: none;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 11px;
}
.wi-products__row {
  --cards: 5;
  --gap: 20px;
  padding: 28px 0 38px;
  border-bottom: 2px solid var(--wi-line);
}
.wi-products__row:first-child {
  padding-top: 12px;
}
.wi-products__row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.wi-products__row-heading h3 {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 500;
  line-height: 1.2;
}
.wi-products__row-heading h3 em {
  color: var(--wi-accent);
}
.wi-products__row-heading p {
  font-size: 12px;
  color: var(--wi-muted);
  margin-top: 6px;
}
.wi-products__row-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wi-products__row-controls > span {
  font-size: 10px;
  color: var(--wi-muted);
  padding-right: 14px;
  letter-spacing: 1px;
}
.wi-products__row-controls button {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--wi-line);
  border-radius: 20%;
  font-size: 21px;
  transition: background 0.2s, border-color 0.2s;
}
.wi-products__row-controls button:hover {
  background: #FFF4DB;
  border-color: var(--wi-accent);
}
.wi-products__viewport {
  overflow: hidden;
  touch-action: pan-y;
  position: relative;
  padding: 4px;
  margin: -4px;
  outline-offset: 0 !important;
}
.wi-products__track {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  will-change: transform;
}
.wi-products__card {
  flex: 0 0 calc((100% - (var(--cards) - 1) * var(--gap)) / var(--cards));
  min-width: 0;
}
.wi-products__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #ebe8e1;
  overflow: hidden;
}
.wi-products__image-button {
  display: block;
  padding: 0;
  background: none;
  width: 100%;
  height: 100%;
  text-align: left;
}
.wi-products__image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s ease;
}
.wi-products__image-button:hover img {
  transform: scale(1.035);
}
.wi-products__add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 249, 246, 0.72);
  backdrop-filter: blur(6px);
  color: #22231f;
  box-shadow: 0 2px 12px #0000000a;
  transition: background 0.2s, transform 0.2s;
}
.wi-products__add:hover,
.wi-products__add:focus-visible {
  background: #faf9f6;
  transform: translateY(-2px);
}
.wi-products__add svg {
  width: 25px;
  height: 25px;
  opacity: 0.8;
}
.wi-products__add:disabled {
  opacity: 1;
  background: rgba(250, 249, 246, 0.78);
}
.wi-products__add:disabled svg {
  opacity: 0.35;
}
.wi-products__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 7px;
  font-size: 8px;
  letter-spacing: 0.9px;
  background: #faf9f6de;
  color: var(--wi-ink);
  pointer-events: none;
}
.wi-products__card-info {
  padding: 13px 0 0;
}
.wi-products__product-name {
  display: block;
  text-align: left;
  padding: 0;
  background: none;
  font-size: 16px !important;
  font-weight: 520 !important;
  line-height: 1.35;
  min-height: 35px;
}
.wi-products__product-name:hover {
  color: var(--wi-accent);
}
.wi-products__card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
  color: var(--wi-muted);
  margin-top: 4px;
}
.wi-products__card-meta strong {
  font-size: 12px;
  font-weight: 400;
  color: var(--wi-ink);
  white-space: nowrap;
}
.wi-products__row-empty {
  padding: 25px 0;
  color: var(--wi-muted);
  font-size: 13px;
}
.wi-products__empty {
  text-align: center;
  padding: 75px 0;
}
.wi-products__empty h3 {
  font: italic 36px Georgia, serif;
  margin: 16px 0;
}
.wi-products__empty > p:not(.wi-products__eyebrow) {
  color: var(--wi-muted);
}
.wi-products__solid {
  background: var(--wi-ink);
  color: white !important;
  padding: 13px 23px;
  min-height: 46px;
  font-size: 12px !important;
  margin-top: 20px;
}
.wi-products__solid:hover {
  background: var(--wi-accent);
}

.wi-products__toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wi-ink);
  color: white;
  padding: 15px 25px;
  max-width: calc(100vw - 32px);
  font-size: 13px;
  box-shadow: 0 8px 30px #0002;
}
.wi-products__dialog {
  position: fixed;
  border: 0;
  padding: 0;
  background: var(--wi-paper, #faf9f6);
  color: var(--wi-ink);
  width: min(860px, 92vw);
  max-height: 90vh;
  overflow: auto;
}
.wi-products__dialog::backdrop {
  background: #191c17a6;
  backdrop-filter: blur(5px);
}
.wi-products__close {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #faf9f6ee;
  font-size: 27px !important;
}
.wi-products__quick-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.wi-products__quick-grid > img {
  width: 100%;
  align-self: center;
  aspect-ratio: 1;
  object-fit: contain;
}
.wi-products__quick-copy {
  padding: 60px 32px 36px;
  align-self: center;
}
.wi-products__quick-copy h2 {
  font: 32px/1.12 Georgia, serif;
  margin: 14px 0;
}
.wi-products__quick-copy > p {
  font-size: 13px;
  color: var(--wi-muted);
  margin-top: 12px;
}
.wi-products__quick-copy .wi-products__quick-price {
  font-size: 23px;
  color: var(--wi-ink);
}
.wi-products__quick-copy .wi-products__solid {
  width: 100%;
}
.wi-products__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.wi-products__tags span {
  padding: 3px 8px;
  border: 1px solid var(--wi-line);
  font-size: 9px;
  color: var(--wi-muted);
}
.wi-products__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@container (max-width:1050px) {
  .wi-products__row {
    --gap: 15px;
  }
  .wi-products__filters {
    gap: 15px;
  }
  .wi-products__heading > p {
    max-width: 235px;
  }
}
@container (max-width:850px) {
  .wi-products__inner {
    padding: 0 28px;
  }
  .wi-products__row {
    --cards: 3;
  }
  .wi-products__heading {
    align-items: start;
  }
  .wi-products__heading > p {
    max-width: 210px;
    font-size: 12px;
  }
  .wi-products__toolbar {
    flex-wrap: wrap;
    gap: 5px;
  }
  .wi-products__search {
    flex-basis: 100%;
    border-bottom: 1px solid var(--wi-line);
    padding-bottom: 20px;
  }
  .wi-products__filters {
    width: 100%;
    justify-content: flex-start;
    gap: 25px;
  }
  .wi-products__bag {
    margin-left: auto;
  }
  .wi-products__popover {
    left: 0;
    right: auto;
  }
  .wi-products__heading h2 {
    font-size: 40px;
  }
}
@container (max-width:600px) {
  .wi-products__inner {
    padding: 0 20px;
  }
  .wi-products__heading {
    display: block;
    padding: 35px 0 26px;
  }
  .wi-products__heading h2 {
    font-size: 38px;
    letter-spacing: -1.3px;
    max-width: 330px;
  }
  .wi-products__heading > p {
    margin-top: 17px;
    max-width: none;
  }
  .wi-products__heading > p br {
    display: none;
  }
  .wi-products__row {
    --cards: 1.65;
    --gap: 14px;
    padding: 24px 0 28px;
  }
  .wi-products__row-heading {
    align-items: start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .wi-products__row-heading h3 {
    font-size: 24px;
  }
  .wi-products__row-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .wi-products__row-controls {
    gap: 3px;
  }
  .wi-products__row-controls > span {
    display: none;
  }
  .wi-products__row-controls button {
    width: 38px;
    height: 44px;
    border: 0;
    border-radius: 0;
  }
  .wi-products__filters {
    gap: 18px;
  }
  .wi-products__filter summary {
    gap: 7px;
  }
  .wi-products__text-button {
    font-size: 9px !important;
  }
  .wi-products__price {
    left: -115px;
    width: min(310px, calc(100vw - 56px));
  }
  .wi-products__popover {
    max-width: calc(100vw - 56px);
  }
  .wi-products__results {
    font-size: 10px;
  }
  .wi-products__card-meta {
    display: block;
  }
  .wi-products__card-meta strong {
    display: block;
    margin-top: 3px;
  }
  .wi-products__product-name {
    font-size: 13px !important;
  }
  .wi-products__quick-grid {
    grid-template-columns: 1fr;
  }
  .wi-products__quick-grid > img {
    max-height: 40vh;
  }
  .wi-products__quick-copy {
    padding: 24px;
  }
  .wi-products__quick-copy h2 {
    font-size: 29px;
  }
  .wi-products__toast {
    font-size: 12px;
    width: max-content;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wi-products * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
