/* Shopmart Promotions v1.0.15 — editorial polish + row-safe responsive placement. */
#spm-promotions .spm-card-grid > .spm-editorial-promo-slot,
#spm-promotions .spm-product-grid > .spm-editorial-promo-slot {
  grid-column:1 / -1;
  min-width:0;width:100%;max-width:100%;margin:14px 0 17px;padding:0;
  list-style:none;
}
.spm-editorial-promo, .spm-editorial-promo *, .spm-editorial-promo *::before, .spm-editorial-promo *::after {box-sizing:border-box}
.spm-editorial-promo {
  width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;gap:16px;min-height:237px;margin:0;padding:0;
  border:0;background:none;box-shadow:none;
}
.spm-editorial-promo .spm-ed-tile {
  display:flex;flex-direction:column;gap:0;min-width:0;min-height:237px;
  padding:0;border:0;border-radius:0;background:transparent;
  box-shadow:none;
  color:inherit;text-decoration:none!important;
  transform:translateY(0);transition:transform .22s ease;
}
.spm-editorial-promo .spm-ed-tile:hover {
  transform:translateY(-3px);
  box-shadow:none;
  text-decoration:none!important;
}
.spm-editorial-promo .spm-ed-tile:focus-visible {outline:2px solid #C60051;outline-offset:4px}
.spm-editorial-promo .spm-ed-tile-photo {
  position:relative;display:block;width:100%;height:174px;min-height:174px;
  overflow:hidden;border-radius:12px;background:#F4F1F2;
  box-shadow:none;transition:box-shadow .22s ease;
}
.spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-photo,
.spm-editorial-promo .spm-ed-tile:focus-visible .spm-ed-tile-photo {
  box-shadow:0 8px 18px rgba(31,35,40,.085);
}
.spm-editorial-promo .spm-ed-tile-photo picture,
.spm-editorial-promo .spm-ed-tile-photo img {
  display:block;width:100%;height:100%;max-width:100%;
}
.spm-editorial-promo .spm-ed-tile-photo img {
  object-fit:cover;object-position:center;opacity:1!important;filter:none!important;
}
.spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-photo img {
  opacity:1!important;filter:none!important;
}
.spm-editorial-promo .spm-ed-tile-body {
  display:flex;flex-direction:column;align-items:flex-start;flex:1 1 auto;
  gap:5px;min-width:0;min-height:63px;padding:9px 3px 5px;
}
.spm-editorial-promo .spm-ed-tile-title {
  display:block;max-width:100%;margin:0;padding:0;
  font-family:inherit;font-size:17px;line-height:1.34;font-weight:700;
  letter-spacing:-.01em;color:#1F2328;overflow:visible;
  overflow-wrap:break-word;word-break:normal;
}
.spm-editorial-promo .spm-ed-tile-cta {
  display:inline-flex;align-items:center;gap:6px;
  min-height:19px;max-width:100%;margin:0;padding:0;
  color:#C60051;font-family:inherit;font-size:13px;font-weight:600;
  line-height:1.35;white-space:normal;overflow-wrap:break-word;
  transition:color .18s ease;
}
.spm-editorial-promo .spm-ed-tile-cta svg {
  display:block;flex:none;width:15px;height:15px;
  transition:transform .18s ease;
}
.spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-cta {color:#C60051}
.spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-cta svg {transform:translateX(2px)}
/* Three independent placements occupy the same server-rendered catalogue grid.
   Hidden variants take no layout space or focus, including after AJAX append. */
@media (min-width:1024px) {
  #spm-promotions .spm-editorial-promo-slot.spm-ed-slot--tablet,
  #spm-promotions .spm-editorial-promo-slot.spm-ed-slot--mobile {display:none!important}
}
@media (min-width:768px) and (max-width:1023px) {
  #spm-promotions .spm-editorial-promo-slot.spm-ed-slot--desktop,
  #spm-promotions .spm-editorial-promo-slot.spm-ed-slot--mobile {display:none!important}
}
@media (max-width:767px) {
  #spm-promotions .spm-editorial-promo-slot.spm-ed-slot--desktop,
  #spm-promotions .spm-editorial-promo-slot.spm-ed-slot--tablet {display:none!important}
  #spm-promotions .spm-card-grid > .spm-editorial-promo-slot,
  #spm-promotions .spm-product-grid > .spm-editorial-promo-slot {margin:12px 0 15px}
  .spm-editorial-promo {grid-template-columns:minmax(0,1fr);gap:15px;min-height:0}
  .spm-editorial-promo .spm-ed-tile {min-height:0}
  .spm-editorial-promo .spm-ed-tile-photo {height:auto;min-height:0;aspect-ratio:1.9 / 1}
  .spm-editorial-promo .spm-ed-tile-body {min-height:0;gap:5px;padding:8px 3px 6px}
  .spm-editorial-promo .spm-ed-tile-title {font-size:16px;line-height:1.34}
  .spm-editorial-promo .spm-ed-tile-cta {font-size:12px}
}
@media (hover:none), (pointer:coarse) {
  .spm-editorial-promo .spm-ed-tile:hover {transform:none;box-shadow:none}
  .spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-photo {box-shadow:none}
  .spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-cta svg {transform:none}
}
@media (prefers-reduced-motion:reduce) {
  .spm-editorial-promo .spm-ed-tile,
  .spm-editorial-promo .spm-ed-tile-photo,
  .spm-editorial-promo .spm-ed-tile-cta,
  .spm-editorial-promo .spm-ed-tile-cta svg {transition:none!important}
  .spm-editorial-promo .spm-ed-tile:hover,
  .spm-editorial-promo .spm-ed-tile:hover .spm-ed-tile-cta svg {transform:none!important}
}
