/* Product result rows and promotion emphasis. No pricing or basket behavior. */
.m-products > .m-product.m-has-promotion {
  background: #fff;
  border-color: #dce4ef;
  border-left-width: 1px;
}
.m-item-promotions .m-item-promotion {
  background: #b91c1c;
  border-color: #991b1b;
  color: #fff;
}
.m-item-promotions .m-item-promotion :is(b,p,small,span,a,summary),
.m-item-promotions .m-item-promo-code,
.m-item-promotions .m-item-promo-condition,
.m-item-promotions .m-item-promo-rule {
  color: #fff;
  opacity: 1;
}
.m-item-promotions .m-item-promotion svg { color: inherit; }
.m-item-promotions .m-item-promotion :is(summary,a):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (min-width: 0px) {
  .m-products { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .m-products > .m-product,
  .m-products > .m-product.m-has-promotion {
    display: grid;
    grid-template-columns: minmax(0,1fr) 38px;
    gap: 10px;
    padding: 10px 12px;
    min-width: 0;
    align-items: start;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 10px;
  }
  .m-products > .m-product > .m-product-placeholder { display: none; }
  .m-products > .m-product > div:not(.m-product-placeholder) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 5px;
    min-width: 0;
  }
  .m-products .m-product .m-sku { order: 0; font-size: 13px; }
  .m-products .m-product h3 {
    order: 1;
    flex: 1 1 220px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .m-products .m-product .m-product-barcode {
    order: 2;
    flex: 0 1 235px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .m-products .m-product .m-price {
    order: 3;
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
  }
  .m-products .m-product .m-price small { font-size: 11px; }
  .m-products .m-product .m-stock { order: 4; font-size: 11px; }
  .m-products .m-product .m-item-promotions.is-catalog {
    order: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    min-width: 0;
    max-width: 100%;
  }
  .m-products .m-product .m-item-promotions.is-catalog .m-item-promotion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 5px 8px;
    margin: 0;
    min-width: 0;
  }
  .m-products .m-product .m-item-promo-code { font-size: 12px; }
  .m-products .m-product .is-catalog :is(.m-item-promo-condition,.m-item-promo-rule) {
    display: none;
  }
  .m-products .m-product .is-catalog .m-item-promotion:has(details[open]) {
    display: block;
    flex-basis: 100%;
  }
  .m-products .m-product .is-catalog .m-item-promotion:has(details[open])
  :is(.m-item-promo-condition,.m-item-promo-rule) {
    display: block;
    margin: 6px 0;
  }
  .m-products .m-product .is-catalog details { margin: 0; font-size: 11px; }
  .m-products .m-product > div:not(.m-product-placeholder) > details {
    order: 6;
    margin: 0;
    font-size: 11px;
  }
  .m-products .m-product > div:not(.m-product-placeholder) > details[open] {
    flex-basis: 100%;
  }
  .m-products > .m-product > button {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* Override older catalog/cart text rules only inside promotion panels. */
.m-item-promotions .m-item-promotion { background:#b91c1c!important; border-color:#991b1b!important; color:#fff!important; }
.m-item-promotions .m-item-promotion * { color:#fff!important; opacity:1; }

/* Catalogue is one continuous list. Basket styling stays unchanged. */
.m-products {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  background: #fff;
  border-radius: 0;
}
.m-products > .m-product,
.m-products > .m-product.m-has-promotion {
  border: 0 !important;
  border-bottom: 1px solid #dce4ef !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 10px 8px;
  background: #fff !important;
}
.m-products > .m-product:last-child { border-bottom: 0 !important; }
@media (max-width: 599px) {
  .m-products > .m-product { grid-template-columns: minmax(0,1fr) 36px; gap: 8px; }
  .m-products .m-product h3 { flex-basis: calc(100% - 100px); font-size: 13px; }
  .m-products .m-product .m-product-barcode { flex-basis: 100%; }
  .m-products .m-product .m-price { font-size: 16px; }
  .m-products > .m-product > button { width: 36px; height: 36px; }
}
