/* Stage 12: targeted search, listing, facet and home-brand corrections. */

body.edc-page a:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

body.edc-page a:focus-visible {
  outline: 2px solid var(--edc-focus, #1a5fa8);
  outline-offset: 3px;
}

/* Mini-cart controls use the same calm secondary / clear primary hierarchy. */
body.edc-equipment-site .edc-cart__trigger[aria-expanded="true"] {
  background: var(--edc-equipment-surface, #eef0ee);
}

body.edc-equipment-site .edc-cart-popover {
  top: calc(100% + 12px);
  width: min(410px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--edc-line, #dfe1dc);
  border-radius: var(--edc-equipment-sheet, 14px);
  background: var(--edc-white, #fff);
  box-shadow: 0 24px 70px rgba(17, 18, 16, .12);
  transform-origin: top right;
}

body.edc-equipment-site .edc-cart.edc-cart--open .edc-cart-popover,
body.edc-equipment-site .edc-cart.open .edc-cart-popover {
  animation: edc-mini-cart-in 160ms var(--edc-equipment-ease, cubic-bezier(.22, 1, .36, 1));
}

body.edc-equipment-site .edc-cart-popover__items {
  max-height: min(380px, calc(100dvh - 260px));
  padding: 10px 16px 2px;
  overscroll-behavior: contain;
}

body.edc-equipment-site .edc-mini-product {
  grid-template-columns: 64px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 12px 0;
  border-bottom-color: var(--edc-line, #dfe1dc);
}

body.edc-equipment-site .edc-mini-product:first-child {
  padding-top: 8px;
}

body.edc-equipment-site .edc-mini-product:last-child {
  border-bottom: 0;
}

body.edc-equipment-site .edc-mini-product > a {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--edc-equipment-control, 7px);
  background: var(--edc-product-media-surface, #eef0ee);
  isolation: isolate;
}

body.edc-equipment-site .edc-mini-product img {
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: multiply;
}

body.edc-equipment-site .edc-mini-product div {
  font-size: 14px;
  line-height: 1.38;
}

body.edc-equipment-site .edc-mini-product div > a {
  color: var(--edc-ink, #151715);
  font-weight: 550;
}

body.edc-equipment-site .edc-mini-product small {
  margin-top: 6px;
  color: var(--edc-muted, #686b65);
  font-size: 12px;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  word-spacing: 0;
}

body.edc-equipment-site .edc-mini-product > button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--edc-equipment-control, 7px);
  background: transparent;
  color: var(--edc-muted, #686b65);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  transition: background-color 150ms ease, color 150ms ease;
}

body.edc-equipment-site .edc-cart-popover__actions {
  gap: 8px;
}

body.edc-equipment-site .edc-cart-popover__summary {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--edc-line, #dfe1dc);
  background: #fafbfa;
}

body.edc-equipment-site .edc-cart-popover__summary p {
  margin-bottom: 6px;
  color: var(--edc-muted, #686b65);
  font-size: 13px;
  line-height: 1.4;
}

body.edc-equipment-site .edc-cart-popover__summary p strong {
  color: var(--edc-ink, #151715);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

body.edc-equipment-site .edc-cart-popover__summary p:last-of-type {
  margin-bottom: 0;
  padding-top: 5px;
  color: var(--edc-ink, #151715);
  font-size: 14px;
}

body.edc-equipment-site .edc-cart-popover__actions a {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--edc-line, #dfe1dc);
  border-radius: var(--edc-equipment-control, 7px);
  background: transparent;
  color: var(--edc-ink, #151715);
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 100ms ease;
}

body.edc-equipment-site .edc-cart-popover__actions a:last-child {
  border-color: var(--edc-ink, #151715);
  background: var(--edc-ink, #151715);
  color: #fff;
}

body.edc-equipment-site .edc-cart-popover__actions a:active {
  transform: translateY(1px);
}

body.edc-equipment-site .edc-cart-popover__empty {
  padding: 32px 24px;
  display: grid;
  justify-items: start;
  gap: 12px;
  color: var(--edc-muted, #686b65);
  font-size: 14px;
  line-height: 1.45;
}
body.edc-equipment-site .edc-cart-popover__empty svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--edc-ink, #151715);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes edc-mini-cart-in {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  body.edc-equipment-site .edc-mini-product > button:hover {
    background: var(--edc-equipment-surface, #eef0ee);
    color: var(--edc-danger, #9b2c24);
  }

  body.edc-equipment-site .edc-cart-popover__actions a:first-child:hover {
    border-color: var(--edc-ink, #151715);
    background: var(--edc-equipment-surface, #eef0ee);
    color: var(--edc-ink, #151715);
  }

  body.edc-equipment-site .edc-cart-popover__actions a:last-child:hover {
    border-color: var(--edc-hover, #30322e);
    background: var(--edc-hover, #30322e);
    color: #fff;
  }
}

.edc-facet-search input:focus,
.edc-facet-search input:focus-visible,
.edc-facet-price input:focus,
.edc-facet-price input:focus-visible {
  border-color: var(--edc-focus, #1a5fa8);
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--edc-focus, #1a5fa8);
}

body.edc-equipment-site .edc-showcase .edc-brand-strip__frame {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
}

body.edc-equipment-site .edc-showcase .edc-brand-strip__track {
  box-sizing: border-box;
  padding-inline-end: 24px;
  scroll-padding-inline-end: 24px;
}

body.edc-equipment-site .edc-showcase .edc-brand-strip__all {
  z-index: 0;
  min-width: 148px;
}

body.edc-equipment-site .edc-showcase .edc-brand-strip__track > a:not(.edc-brand-strip__all) {
  flex: 0 0 calc((100% - 96px) / 5);
  padding-inline: 10px;
}

body.edc-equipment-site.edc-page .edc-showcase .edc-brand-strip__track img {
  width: min(100%, 196px);
  height: 56px;
  image-rendering: auto;
}

.edc-search-autocomplete-anchor {
  position: relative;
}

.edc-search-suggestions {
  position: fixed;
  z-index: 1200;
  width: min(560px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 24px));
  overflow: hidden;
  border: 1px solid var(--edc-line, #d7d7d3);
  border-radius: var(--edc-equipment-control, 8px);
  background: var(--edc-white, #fff);
  box-shadow: 0 18px 44px rgba(9, 9, 9, .14);
}

.edc-search-suggestions[hidden] {
  display: none;
}

.edc-search-suggestions__status {
  margin: 0;
  padding: 16px;
  color: var(--edc-muted, #6a6a67);
  font-size: 14px;
}

.edc-search-suggestions__list {
  margin: 0;
  padding: 6px;
  list-style: none;
}

.edc-search-suggestions__option {
  margin: 0;
}

.edc-search-suggestions__link {
  min-height: 68px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: calc(var(--edc-equipment-control, 8px) - 2px);
  color: var(--edc-ink, #090909);
}

.edc-search-suggestions__link:hover,
.edc-search-suggestions__option.is-active .edc-search-suggestions__link {
  background: var(--edc-paper, #f4f4f2);
}

.edc-search-suggestions__link:focus-visible {
  outline-offset: -2px;
}

.edc-search-suggestions__image {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body.edc-equipment-site {
  --edc-product-media-surface: #eef0ee;
}

body.edc-equipment-site .edc-product-card__media,
.edc-search-suggestions__media {
  background: var(--edc-product-media-surface, #eef0ee);
}

.edc-search-suggestions__media {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
}

.edc-showcase-shelf .edc-product-card__body h3 > a,
.edc-product-grid--listing .edc-product-card__body h3 > a {
  position: relative;
  display: inline;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 180ms cubic-bezier(.23, 1, .32, 1);
}

.edc-showcase-shelf .edc-product-card__body h3 > a:focus-visible,
.edc-product-grid--listing .edc-product-card__body h3 > a:focus-visible {
  background-size: 100% 1px;
}

@media (hover: hover) and (pointer: fine) {
  .edc-showcase-shelf .edc-product-card__body h3 > a:hover,
  .edc-product-grid--listing .edc-product-card__body h3 > a:hover {
    background-size: 100% 1px;
  }
}

body.edc-equipment-site .edc-brand-group__links {
  gap: 0;
  background: transparent;
}

body.edc-equipment-site .edc-brand-group__links a:hover,
body.edc-equipment-site .edc-brand-group__links a:focus-visible {
  background: var(--edc-equipment-surface, #eef0ee);
  color: var(--edc-ink, #151715) !important;
}

body.edc-equipment-site .edc-brand-group__links a:hover .edc-brand-link__categories,
body.edc-equipment-site .edc-brand-group__links a:focus-visible .edc-brand-link__categories {
  color: var(--edc-muted, #6d716b) !important;
}

body.edc-equipment-site .edc-product-card__buy--notify,
body.edc-equipment-site .edc-product-card__buy[onclick^="addPreOrder"],
body.edc-equipment-site .edc-product-page .product-thumb .btn-preorder {
  border: 1px solid var(--edc-line, #d7d7d3) !important;
  background: transparent !important;
  color: var(--edc-muted, #6d716b) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

@media (hover: hover) and (pointer: fine) {
  body.edc-equipment-site .edc-product-card__buy--notify:hover,
  body.edc-equipment-site .edc-product-card__buy[onclick^="addPreOrder"]:hover,
  body.edc-equipment-site .edc-product-page .product-thumb .btn-preorder:hover {
    border-color: var(--edc-equipment-control-hover, #aeb2aa) !important;
    background: var(--edc-product-media-surface, #eef0ee) !important;
    color: var(--edc-ink, #151715) !important;
  }
}

@media (min-width: 701px) {
  body.edc-equipment-listing .edc-product-grid--listing .edc-product-card__buy--notify,
  body.edc-equipment-listing .edc-product-grid--listing .edc-product-card__buy[onclick^="addPreOrder"] {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 118px;
  }
}

.edc-search-suggestions__name {
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
}

.edc-search-suggestions__price {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
}

.edc-search-suggestions__all {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--edc-line, #d7d7d3);
  color: var(--edc-ink, #090909);
  font-size: 13px;
  font-weight: 600;
}

body.product-search.edc-equipment-listing .edc-product-card__price strong {
  font-size: 19px;
  font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  word-spacing: 0;
}

body.edc-equipment-site .edc-product-card__price strong,
body.edc-equipment-site .edc-product-card__price del,
body.edc-equipment-site .edc-product-price strong,
body.edc-equipment-site .edc-product-price del,
body.edc-equipment-site .edc-product-page .product-thumb .caption .price,
body.edc-equipment-site .edc-cart__total,
body.edc-equipment-site .edc-cart-popover__items small,
body.edc-equipment-site .edc-cart-popover__summary strong,
body.edc-equipment-site .edc-cart-item__price strong,
body.edc-equipment-site .edc-cart-item__total strong,
body.edc-equipment-site .edc-cart-summary dd,
body.edc-equipment-site .edc-checkout-product__total,
body.edc-equipment-site .edc-checkout-totals dd {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0 !important;
  word-spacing: 0;
}

@media (min-width: 1280px) {
  body.product-search.edc-equipment-listing .edc-product-grid--listing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(18px, 1.7vw, 26px);
    row-gap: 48px;
  }

  body.product-search.edc-equipment-listing .edc-product-grid--listing .edc-product-card__media {
    aspect-ratio: 1 / 1;
  }

  body.product-search.edc-equipment-listing .edc-product-grid--listing .edc-product-card__body {
    min-height: 174px;
  }
}

@media (max-width: 700px) {
  body.edc-equipment-site .edc-cart-popover {
    top: 73px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 85px);
    border-radius: 12px;
  }

  body.edc-equipment-site .edc-cart-popover__items {
    max-height: calc(100dvh - 300px);
  }

  body.edc-equipment-site .edc-showcase .edc-brand-strip__frame {
    min-height: 86px;
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  body.edc-equipment-site .edc-showcase .edc-brand-strip__track {
    padding-inline-end: 16px;
    scroll-padding-inline-end: 16px;
  }

  body.edc-equipment-site .edc-showcase .edc-brand-strip__all {
    min-width: 108px;
  }

  body.edc-equipment-site .edc-showcase .edc-brand-strip__track > a:not(.edc-brand-strip__all) {
    flex: 0 0 calc((100% - 12px) / 2);
    padding-inline: 8px;
  }

  body.edc-equipment-site.edc-page .edc-showcase .edc-brand-strip__track img {
    width: min(100%, 132px);
    height: 38px;
  }

  .edc-search-suggestions {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .edc-search-suggestions__link {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .edc-search-suggestions__price {
    grid-column: 2;
    font-size: 14px;
  }

  body.product-search.edc-equipment-listing .edc-product-card__price strong {
    font-size: 18px;
  }

  body.edc-equipment-site .edc-product-card__body {
    position: static;
    min-height: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: flex-end;
    column-gap: 8px;
  }

  body.edc-equipment-site .edc-product-card__body h3,
  body.edc-equipment-site .edc-product-card__rating {
    grid-column: 1 / -1 !important;
  }

  body.edc-equipment-site .edc-product-card__price {
    grid-column: 1 !important;
    width: auto !important;
    min-width: 0;
    min-height: 44px;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-self: start;
  }

  body.edc-equipment-site .edc-product-card__buy {
    position: static;
    grid-column: 2 !important;
    align-self: flex-end;
    justify-self: end;
    margin: 8px 0 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--edc-equipment-control, 8px);
    font-size: 0 !important;
    line-height: 0;
  }

  body.edc-equipment-site .edc-product-card__buy::after {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: block;
    content: "";
    margin: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  body.edc-equipment-site .edc-product-card__buy--cart::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.1 10.1a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L20 8H6'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E");
  }

  body.edc-equipment-site .edc-product-card__buy--cart {
    border-color: var(--edc-ink, #151715);
    background: var(--edc-ink, #151715);
    color: #fff;
  }

  body.edc-equipment-site .edc-product-card__buy--notify::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d716b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E");
  }
}

@media (prefers-reduced-motion: reduce) {
  body.edc-equipment-site .edc-cart.edc-cart--open .edc-cart-popover,
  body.edc-equipment-site .edc-cart.open .edc-cart-popover {
    animation: none;
  }
  body.edc-equipment-site .edc-mini-product > button,
  body.edc-equipment-site .edc-cart-popover__actions a,
  .edc-showcase-shelf .edc-product-card__body h3 > a,
  .edc-product-grid--listing .edc-product-card__body h3 > a {
    transition: none;
  }
}
