/**
 * Showcase Columns — canonical archive list presentation.
 * Purposefully independent from the global Product Card layout so archive
 * columns keep one deterministic geometry across Featured / Sale / Recent.
 */

.stm-archive-showcase-columns,
.stm-archive-showcase-columns *{box-sizing:border-box}

.stm-archive-showcase-columns{
  display:block;
  clear:both;
  width:min(100%,var(--stm-site-max-width,1320px));
  margin:28px auto 12px;
  padding:0 16px;
  border:0;
  background:transparent;
}

/* The module name remains the admin/ARIA identity. The approved frontend
 * reference starts directly with the three column headings. */
.stm-archive-showcase-columns__header{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.stm-archive-showcase-columns__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:28px;
}

.stm-archive-showcase-columns__column,
.stm-archive-showcase-columns__column-head{
  min-width:0;
  margin:0;
  padding:var(--stm-asc-column-padding,0);
  border:0;
  background:transparent;
}

.stm-archive-showcase-columns__column-head{padding:0}

.stm-archive-showcase-columns__column-title{
  margin:0 0 8px;
  color:var(--stm-commerce-heading,#0f172a);
  font-size:16px;
  font-weight:700;
  line-height:1.25;
}

.stm-asc-list{
  display:flex;
  flex-direction:column;
  width:100%;
  margin:0;
  padding:0;
  gap:var(--stm-asc-row-gap,4px);
}

.stm-asc-card{
  position:relative;
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  width:100%;
  min-width:0;
  min-height:102px;
  margin:0;
  padding:var(--stm-asc-row-padding-y,10px) var(--stm-asc-row-padding-x,12px);
  column-gap:12px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  transition:transform var(--stm-product-card-hover-transition,.18s ease),box-shadow var(--stm-product-card-hover-transition,.18s ease),background-color var(--stm-product-card-hover-transition,.18s ease);
}

.stm-asc-card__media{
  position:relative;
  display:grid;
  place-items:center;
  width:72px;
  height:72px;
  margin:0;
  justify-self:center;
  overflow:visible;
}

.stm-asc-card__media-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:72px;
  height:72px;
  margin:0;
  padding:0;
  text-decoration:none;
}

.stm-asc-card__image{
  display:block;
  transition:filter var(--stm-product-card-hover-transition,.18s ease),transform var(--stm-product-card-hover-transition,.18s ease);
  width:72px !important;
  height:72px !important;
  max-width:72px !important;
  max-height:72px !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain;
  object-position:center;
}

.stm-asc-card__sale{
  position:absolute;
  top:-4px;
  right:-5px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  max-width:66px;
  padding:0 8px;
  overflow:hidden;
  border-radius:999px;
  background:var(--stm-commerce-primary,#ff6a00);
  color:#fff;
  font-size:9px;
  font-weight:700;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.stm-asc-card__body{
  display:grid;
  grid-template-rows:12px 34px 18px 28px;
  align-items:center;
  min-width:0;
  height:92px;
  row-gap:0;
}

.stm-asc-card__category{
  min-width:0;
  overflow:hidden;
  color:var(--stm-commerce-heading,#111827);
  font-size:9px;
  font-weight:700;
  line-height:12px;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}

.stm-asc-card__heading{
  align-self:start;
  min-width:0;
  height:34px;
  margin:0;
  padding:0;
  overflow:hidden;
}

.stm-asc-card__title{
  display:-webkit-box;
  width:100%;
  height:34px;
  margin:0;
  padding:0;
  overflow:hidden;
  color:var(--stm-commerce-link,#065bdf);
  font-size:13px;
  font-weight:500;
  line-height:17px;
  text-decoration:none;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow-wrap:normal;
  word-break:normal;
}

.stm-asc-card__title:hover,
.stm-asc-card__title:focus-visible{text-decoration:underline;text-underline-offset:2px}

.stm-asc-card__meta{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  min-width:0;
  height:18px;
  column-gap:10px;
}

.stm-asc-card__price{
  display:flex;
  align-items:baseline;
  min-width:0;
  height:18px;
  overflow:hidden;
  color:var(--stm-commerce-heading,#0f172a);
  font-size:12px;
  font-weight:700;
  line-height:18px;
  white-space:nowrap;
}

.stm-asc-card__price del{
  flex:0 1 auto;
  margin-right:5px;
  color:var(--stm-commerce-muted,#64748b);
  font-size:9px;
  font-weight:500;
  opacity:1;
}
.stm-asc-card__price ins{color:inherit;text-decoration:none;font-weight:700}
.stm-asc-card__price .amount{font-size:inherit;line-height:inherit}

.stm-asc-card__rating{
  position:relative;
  display:block;
  width:50px;
  height:10px;
  overflow:hidden;
  background:var(--stm-product-rating-empty,#f59e0b);
  -webkit-mask:url("../../../storefront/assets/icons/star-outline.svg") left center/10px 10px repeat-x;
  mask:url("../../../storefront/assets/icons/star-outline.svg") left center/10px 10px repeat-x;
}

.stm-asc-card__rating-fill{
  position:absolute;
  inset:0 auto 0 0;
  display:block;
  height:10px;
  overflow:hidden;
  background:var(--stm-product-rating-color,#f59e0b);
  -webkit-mask:url("../../../storefront/assets/icons/star.svg") left center/10px 10px repeat-x;
  mask:url("../../../storefront/assets/icons/star.svg") left center/10px 10px repeat-x;
}

.stm-asc-card__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  height:28px;
}

.stm-asc-card__wishlist{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:28px;
  height:28px;
}

.stm-asc-card__wishlist .stm-pl__wish,
.stm-asc-card__wishlist .stm-pl-action--wishlist{
  display:grid;
  place-items:center;
  width:28px;
  min-width:28px;
  height:28px;
  min-height:28px;
  margin:0;
  padding:0;
  border:0;
  border-radius:999px;
  background:transparent;
  box-shadow:none;
  color:var(--stm-commerce-heading,#0f172a);
}

.stm-asc-card__wishlist .stm-pl__wish:hover,
.stm-asc-card__wishlist .stm-pl__wish:focus-visible,
.stm-asc-card__wishlist .stm-pl-action--wishlist:hover,
.stm-asc-card__wishlist .stm-pl-action--wishlist:focus-visible{
  background:var(--stm-commerce-primary-soft,#fff4ec);
  color:var(--stm-commerce-primary,#ff6a00);
}

.stm-asc-card__wishlist .stm-pl__wish.is-active,
.stm-asc-card__wishlist .stm-pl-action--wishlist.is-active{
  color:var(--stm-commerce-success,#16884a);
}

.stm-asc-card__wishlist .stm-pl__icon--wish,
.stm-asc-card__wishlist .stm-pl-action--wishlist::before{
  content:"";
  display:block;
  width:15px;
  height:15px;
  background:currentColor;
  -webkit-mask:url("../../../storefront/assets/icons/wishlist.svg") center/contain no-repeat;
  mask:url("../../../storefront/assets/icons/wishlist.svg") center/contain no-repeat;
}

.stm-asc-card__wishlist .stm-pl__wish.is-active .stm-pl__icon--wish,
.stm-asc-card__wishlist .stm-pl-action--wishlist.is-added::before{
  -webkit-mask-image:url("../../../storefront/assets/icons/wishlist-filled.svg");
  mask-image:url("../../../storefront/assets/icons/wishlist-filled.svg");
}

.stm-asc-card__atc{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  margin:0;
  padding:0;
  border:1px solid var(--stm-commerce-primary,#ff6a00);
  border-radius:999px;
  background:var(--stm-commerce-primary,#ff6a00);
  color:#fff;
  text-decoration:none;
  box-shadow:none;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}

.stm-asc-card__atc::before{
  content:"";
  display:block;
  width:16px;
  height:16px;
  background:currentColor;
  -webkit-mask:url("../../../storefront/assets/icons/cart.svg") center/contain no-repeat;
  mask:url("../../../storefront/assets/icons/cart.svg") center/contain no-repeat;
}

.stm-asc-card__atc:hover,
.stm-asc-card__atc:focus-visible{
  border-color:var(--stm-commerce-primary-deep,#d95600);
  background:var(--stm-commerce-primary-deep,#d95600);
  color:#fff;
  text-decoration:none;
}

.stm-asc-card__atc.is-added{
  border-color:var(--stm-commerce-success,#16884a);
  background:var(--stm-commerce-success,#16884a);
}
.stm-asc-card__atc.is-added::before{
  -webkit-mask-image:url("../../../storefront/assets/icons/tick.svg");
  mask-image:url("../../../storefront/assets/icons/tick.svg");
}
.stm-asc-card__atc.is-sold{opacity:.58;cursor:not-allowed}

.stm-asc-card__more{
  position:absolute;
  z-index:8;
  top:4px;
  right:4px;
  display:none;
  width:28px;
  min-width:28px;
  height:28px;
  min-height:28px;
  margin:0;
  padding:0;
  place-items:center;
  border:1px solid var(--stm-commerce-border,#e2e8f0);
  border-radius:50%;
  background:var(--stm-commerce-surface,#fff);
  color:var(--stm-commerce-heading,#111827);
  box-shadow:none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.stm-asc-card__more:hover,
.stm-asc-card__more:focus-visible,
.stm-asc-card.is-tools-open .stm-asc-card__more{
  border-color:var(--stm-commerce-primary,#ff6a00);
  background:var(--stm-commerce-primary-soft,#fff4ec);
  color:var(--stm-commerce-primary-deep,#d95600);
}

.stm-asc-card__more:focus-visible{outline:var(--stm-product-card-focus-outline,2px solid var(--stm-commerce-primary,#ff6a00));outline-offset:2px}

.stm-asc-card__more-dots{
  display:block;
  width:3px;
  height:3px;
  border-radius:50%;
  background:currentColor;
  box-shadow:-6px 0 0 currentColor,6px 0 0 currentColor;
}

html[data-stm-layout="tablet"] .stm-asc-card__more,
html[data-stm-layout="mobile"] .stm-asc-card__more{display:grid}

.stm-asc-card__media-actions{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  pointer-events:none;
}

.stm-asc-card__media-actions .stm-qv-btn,
.stm-asc-card__media-actions .stm-qv-trigger,
.stm-asc-card__media-actions .stm-compare-btn--overlay{
  display:grid;
  place-items:center;
  width:28px;
  min-width:28px;
  height:28px;
  min-height:28px;
  margin:0;
  padding:0;
  border-radius:999px;
  opacity:0;
  pointer-events:none;
  transform:scale(.92);
  transition:opacity .18s ease,transform .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}

.stm-asc-card__media-actions .stm-qv-btn,
.stm-asc-card__media-actions .stm-qv-trigger{gap:0;font-size:0;line-height:0}
.stm-asc-card__media-actions .stm-qv-btn::before,
.stm-asc-card__media-actions .stm-qv-trigger::before{
  display:block;
  flex:0 0 12px;
  width:12px;
  height:12px;
  margin:0;
}
.stm-asc-card__media-actions .stm-compare-btn__ico{
  display:block;
  width:9px;
  height:9px;
  margin:0;
}

@media (hover:hover) and (pointer:fine){
  .stm-asc-card:hover{
    z-index:var(--stm-product-card-hover-z,20);
    transform:translateY(var(--stm-product-card-hover-lift,-2px));
    background:var(--stm-commerce-surface,#fff);
    box-shadow:var(--stm-product-card-hover-shadow,0 10px 28px rgba(15,23,42,.14));
  }
  .stm-asc-card:hover .stm-asc-card__image{
    filter:var(--stm-product-card-hover-media-filter,none);
    transform:scale(var(--stm-product-media-image-hover-scale,1));
  }
  html[data-stm-layout="desktop"] .stm-asc-card__media:hover .stm-qv-btn,
  html[data-stm-layout="desktop"] .stm-asc-card__media:hover .stm-qv-trigger,
  html[data-stm-layout="desktop"] .stm-asc-card__media:hover .stm-compare-btn--overlay{
    opacity:1;
    pointer-events:auto;
    transform:scale(1);
  }
}

.stm-asc-card:focus-within{
  z-index:var(--stm-product-card-hover-z,20);
  transform:translateY(var(--stm-product-card-hover-lift,-2px));
  background:var(--stm-commerce-surface,#fff);
  box-shadow:var(--stm-product-card-hover-shadow,0 10px 28px rgba(15,23,42,.14));
}

html[data-stm-layout="desktop"] .stm-asc-card__media:focus-within .stm-qv-btn,
html[data-stm-layout="desktop"] .stm-asc-card__media:focus-within .stm-qv-trigger,
html[data-stm-layout="desktop"] .stm-asc-card__media:focus-within .stm-compare-btn--overlay{
  opacity:1;
  pointer-events:auto;
  transform:scale(1);
}

html[data-stm-layout="tablet"] .stm-asc-card.is-tools-open,
html[data-stm-layout="mobile"] .stm-asc-card.is-tools-open{
  z-index:var(--stm-product-card-hover-z,20);
  transform:translateY(var(--stm-product-card-hover-lift,-2px));
  background:var(--stm-commerce-surface,#fff);
  box-shadow:var(--stm-product-card-hover-shadow,0 10px 28px rgba(15,23,42,.14));
}

html[data-stm-layout="tablet"] .stm-asc-card.is-tools-open .stm-asc-card__image,
html[data-stm-layout="mobile"] .stm-asc-card.is-tools-open .stm-asc-card__image{
  filter:var(--stm-product-card-hover-media-filter,none);
  transform:scale(var(--stm-product-media-image-hover-scale,1));
}

html[data-stm-layout="tablet"] .stm-asc-card.is-tools-open .stm-asc-card__media-actions .stm-qv-btn,
html[data-stm-layout="tablet"] .stm-asc-card.is-tools-open .stm-asc-card__media-actions .stm-qv-trigger,
html[data-stm-layout="tablet"] .stm-asc-card.is-tools-open .stm-asc-card__media-actions .stm-compare-btn--overlay,
html[data-stm-layout="mobile"] .stm-asc-card.is-tools-open .stm-asc-card__media-actions .stm-qv-btn,
html[data-stm-layout="mobile"] .stm-asc-card.is-tools-open .stm-asc-card__media-actions .stm-qv-trigger,
html[data-stm-layout="mobile"] .stm-asc-card.is-tools-open .stm-asc-card__media-actions .stm-compare-btn--overlay{
  opacity:1;
  pointer-events:auto;
  transform:scale(1);
}

@media (max-width:1024px){
  .stm-archive-showcase-columns__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
}

@media (max-width:767px){
  .stm-archive-showcase-columns{padding-inline:10px}
  .stm-archive-showcase-columns__grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .stm-asc-card{grid-template-columns:76px minmax(0,1fr);min-height:98px;padding:var(--stm-asc-row-padding-y,10px) var(--stm-asc-row-padding-x,12px);column-gap:10px}
  .stm-asc-card__media,.stm-asc-card__media-link,.stm-asc-card__image{width:68px !important;height:68px !important;max-width:68px !important;max-height:68px !important}
  .stm-asc-card__body{height:88px;grid-template-rows:12px 32px 18px 26px}
  .stm-asc-card__title{height:32px;font-size:12px;line-height:16px}
  .stm-asc-card__atc{width:32px;min-width:32px;height:32px;min-height:32px;flex-basis:32px}
}
