.saleflow-products {
  --saleflow-accent: #df2949;
  --saleflow-surface: #fff;
  --saleflow-text: #262b33;
  --saleflow-muted: #6b7280;
  --saleflow-border: #eceef1;
  --saleflow-radius: 14px;
  position: relative;
  left: 50%;
  width: min(1304px, calc(100vw - 32px));
  max-width: none;
  margin: clamp(1.25rem, 4vw, 3rem) 0;
  color: var(--saleflow-text);
  font: inherit;
  direction: rtl;
  transform: translateX(-50%);
}
.saleflow-products *, .saleflow-products *::before, .saleflow-products *::after { box-sizing: border-box; }
.saleflow-offer-shell { display: flex; min-height: 310px; overflow: hidden; border: 4px solid var(--saleflow-accent); border-radius: var(--saleflow-radius); background: var(--saleflow-accent); box-shadow: 0 12px 35px rgb(31 41 55 / 8%); }
.saleflow-offer-panel { display: flex; flex: 0 0 188px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 16px; color: #fff; text-align: center; }
.saleflow-percent-mark { display: grid; width: 64px; height: 64px; place-items: center; font-size: 50px; font-weight: 800; line-height: 1; transform: rotate(-8deg); }
.saleflow-eyebrow { font-size: .78rem; font-weight: 650; opacity: .86; }
.saleflow-offer-panel h2 { max-width: 160px; margin: 0; color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1.45; }
.saleflow-parent-count { font-size: .76rem; opacity: .88; }
.saleflow-view-all { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin-top: 6px; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--saleflow-text) !important; font-size: .78rem; font-weight: 700; text-decoration: none !important; }
.saleflow-view-all:hover { background: #f5f5f5; }
.saleflow-products-viewport { min-width: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; border-radius: 10px 0 0 10px; background: var(--saleflow-surface); scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--saleflow-accent) 55%, white) transparent; }
.saleflow-product-cards { display: flex; min-width: 100%; min-height: 302px; align-items: stretch; }
.saleflow-product-card { position: relative; display: flex; min-width: 172px; flex: 1 0 172px; flex-direction: column; margin: 0; padding: 12px 13px 14px; border-inline-end: 1px solid var(--saleflow-border); background: var(--saleflow-surface); color: var(--saleflow-text); text-align: right; }
.saleflow-product-card:first-child { border-inline-start: 0; }
.saleflow-product-image { position: relative; display: block; aspect-ratio: 1.14 / 1; overflow: hidden; border-radius: 8px; background: #f7f7f7; text-decoration: none !important; }
.saleflow-product-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; transition: transform .2s ease; }
.saleflow-product-card:hover .saleflow-product-image img { transform: scale(1.025); }
.saleflow-sale-badge { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2; display: inline-flex; min-height: 25px; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--saleflow-accent); color: #fff; font-size: .73rem; font-weight: 800; line-height: 1; direction: rtl; }
.saleflow-product-content { display: flex; min-height: 118px; flex: 1; flex-direction: column; padding-top: 10px; }
.saleflow-product-content h3 { display: -webkit-box; min-height: 42px; margin: 0 0 8px; overflow: hidden; color: var(--saleflow-text); font-size: .88rem; font-weight: 500; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.saleflow-product-content h3 a { color: inherit !important; text-decoration: none !important; }
.saleflow-product-content h3 a:hover { color: var(--saleflow-accent) !important; }
.saleflow-product-description { margin: 0 0 10px; color: var(--saleflow-muted); font-size: .82rem; line-height: 1.8; }
.saleflow-product-price { min-height: 32px; margin-top: auto; color: var(--saleflow-text); font-size: .92rem; font-weight: 800; line-height: 1.55; direction: rtl; unicode-bidi: isolate; }
.saleflow-product-price del { display: block; color: #9ca3af; font-size: .72rem; font-weight: 400; opacity: 1; }
.saleflow-product-price ins { color: var(--saleflow-text); text-decoration: none; }
.saleflow-product-cta { display: block; height: 0; overflow: hidden; color: var(--saleflow-accent) !important; font-size: .78rem; font-weight: 700; opacity: 0; text-decoration: none !important; transition: height .18s ease, opacity .18s ease; }
.saleflow-product-card:focus-within .saleflow-product-cta, .saleflow-product-card:hover .saleflow-product-cta { height: 24px; margin-top: 5px; opacity: 1; }
.saleflow-timer { display: flex; max-width: 170px; flex-direction: column; align-items: center; gap: 5px; color: #fff; font-variant-numeric: tabular-nums; }
.saleflow-timer-label { font-size: .72rem; opacity: .88; }
.saleflow-timer-units { display: flex; flex-direction: row-reverse; gap: 4px; }
.saleflow-time-unit { display: grid; min-width: 34px; padding: 4px 3px; border-radius: 6px; background: #fff; color: var(--saleflow-text); text-align: center; }
.saleflow-time-unit strong { font-size: .8rem; line-height: 1; }
.saleflow-time-unit small { margin-top: 3px; color: var(--saleflow-muted); font-size: .53rem; line-height: 1; }
.saleflow-time-unit[hidden], .saleflow-timer-units[hidden] { display: none; }
.saleflow-timer-state { max-width: 160px; font-size: .72rem; line-height: 1.6; }
.saleflow-layout-two .saleflow-product-card { min-width: min(330px, 50%); }
.saleflow-layout-spotlight .saleflow-product-card { display: grid; min-width: 0; grid-template-columns: minmax(220px, .95fr) minmax(240px, 1.05fr); gap: clamp(16px, 3vw, 38px); align-items: center; padding: clamp(18px, 3vw, 34px); }
.saleflow-layout-spotlight .saleflow-product-image { aspect-ratio: 1 / 1; }
.saleflow-layout-spotlight .saleflow-product-content { min-height: 0; justify-content: center; padding: 0; }
.saleflow-layout-spotlight .saleflow-product-content h3 { display: block; min-height: 0; font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 750; }
.saleflow-layout-spotlight .saleflow-product-price { margin: 8px 0 0; font-size: 1.15rem; }
.saleflow-layout-spotlight .saleflow-product-cta { display: inline-flex; width: max-content; height: auto; align-items: center; margin-top: 14px; padding: 8px 15px; border-radius: 8px; background: var(--saleflow-accent); color: #fff !important; opacity: 1; }
.saleflow-context-offers { left: auto; width: min(1200px, 100%); margin-inline: auto; transform: none; }
.saleflow-context-offers .saleflow-offer-shell { display: block; border: 0; background: transparent; box-shadow: none; }
.saleflow-context-offers .saleflow-offer-panel { min-height: 150px; flex-basis: auto; align-items: flex-start; padding: 22px 26px; border-radius: var(--saleflow-radius); background: var(--saleflow-accent); text-align: start; }
.saleflow-context-offers .saleflow-percent-mark, .saleflow-context-offers .saleflow-eyebrow { display: none; }
.saleflow-context-offers .saleflow-offer-panel h2 { max-width: none; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.saleflow-context-offers .saleflow-timer { max-width: none; align-items: flex-start; }
.saleflow-context-offers .saleflow-products-viewport { margin-top: 24px; overflow: visible; }
.saleflow-context-offers .saleflow-product-cards { display: grid; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.saleflow-context-offers .saleflow-product-card { min-width: 0; border: 1px solid var(--saleflow-border); border-radius: 12px; }
.saleflow-context-offers .saleflow-product-cta { height: auto; margin-top: 8px; opacity: 1; }
.saleflow-empty { display: grid; gap: 4px; margin-block: 1.5rem; padding: 1.25rem; border: 1px solid var(--saleflow-border, #e5e7eb); border-radius: 10px; background: #f8f8f7; text-align: center; }
.saleflow-empty span { color: #6b7280; }
.saleflow-products a:focus-visible { outline: 3px solid color-mix(in srgb, var(--saleflow-accent) 40%, transparent); outline-offset: 3px; }
@media (max-width: 780px) {
  .saleflow-products { width: min(100% - 20px, 720px); }
  .saleflow-offer-shell { min-height: 0; flex-direction: column; border-width: 3px; }
  .saleflow-offer-panel { flex-basis: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 12px 14px; text-align: right; }
  .saleflow-percent-mark { width: 40px; height: 40px; font-size: 32px; }
  .saleflow-eyebrow { display: none; }
  .saleflow-offer-panel h2 { max-width: none; margin-inline-end: 4px; font-size: 1rem; }
  .saleflow-timer { margin-inline-start: auto; }
  .saleflow-timer-label, .saleflow-time-unit small, .saleflow-parent-count { display: none; }
  .saleflow-time-unit { min-width: 30px; padding: 5px 3px; }
  .saleflow-view-all { display: none; }
  .saleflow-products-viewport { border-radius: 9px; }
  .saleflow-product-cards { min-height: 270px; }
  .saleflow-product-card { min-width: min(46vw, 185px); flex-basis: min(46vw, 185px); }
  .saleflow-layout-spotlight .saleflow-product-card { display: block; min-width: min(82vw, 420px); }
  .saleflow-layout-spotlight .saleflow-product-content { padding-top: 14px; }
  .saleflow-context-offers { width: 100%; }
  .saleflow-context-offers .saleflow-offer-panel { display: flex; align-items: flex-start; }
  .saleflow-context-offers .saleflow-product-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saleflow-context-offers .saleflow-product-card { min-width: 0; }
}
@media (max-width: 430px) {
  .saleflow-offer-panel { gap: 5px; }
  .saleflow-offer-panel h2 { max-width: 125px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .saleflow-product-card { min-width: 72vw; flex-basis: 72vw; }
  .saleflow-layout-spotlight .saleflow-product-card { min-width: 100%; }
  .saleflow-context-offers .saleflow-product-cards { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .saleflow-product-image img, .saleflow-product-cta { transition: none; }
}
