/* =========================
   SpencoGel Product Strip (Digi-like Minimal) - ONE BLOCK
   Base: #FFF6DA / #DEC8ED
   Mobile: 2 cards/row
   Desktop: smaller cards + compact typography
   ========================= */

.spg-strip{
  --c-cream: #fff6da;
  --c-lilac: #dec8ed;
  --text: #2a2a2a;

  border-radius: 18px;
  padding: 12px;
  margin: 14px 0;
  overflow: hidden;

  background:
    radial-gradient(700px 280px at 20% 30%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(135deg, var(--c-cream), var(--c-lilac));
}

/* Head */
.spg-strip__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.spg-strip__title{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.spg-strip__badge{ display:none !important; } /* حذف درصد */

.spg-strip__head h2{
  margin:0;
  font-size:14px;
  font-weight:800;
  color: var(--text);
  white-space:nowrap;
}

.spg-strip__all{
  background:none !important;
  padding:0 !important;
  border-radius:0 !important;
  font-weight:600;
  font-size:12.5px;
  opacity:.7;
  color: rgba(0,0,0,.55);
  transition: opacity .15s ease;
  text-decoration:none;
}
.spg-strip__all:hover{ opacity: 1; }

/* Wrap */
.spg-strip__wrap{ position: relative; }

/* Scroller - no inner frame */
.spg-strip__scroller{
  display:flex;
  gap:10px;
  overflow:auto;
  padding: 0;
  background: transparent;
  border: none;

  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;

  scrollbar-width: none;
}
.spg-strip__scroller::-webkit-scrollbar{ display:none; }

/* Card (base) */
.spg-strip .spg-card{
  scroll-snap-align: start;
  flex: 0 0 180px;   /* base */
  background:#fff;
  border-radius: 14px;
  text-decoration:none;
  color:#141414;

  border: 1px solid rgba(0,0,0,.06);
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);

  display:flex;
  flex-direction:column;
  cursor:pointer;
  position:relative;
}

.spg-strip .spg-card:hover{
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  transform: translateY(-1px);
  transition: .15s ease;
}

/* Image */
.spg-card__img{
  position:relative;
  aspect-ratio: 1/1;
  background:#fafafa;
}
.spg-card__img img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  padding: 8px;
  pointer-events:none;
}

/* OFF badge */
.spg-card__off{
  position:absolute;
  top:8px; right:8px;
  background:#e11d48;
  color:#fff;
  font-size:11px;
  font-weight:900;
  padding:5px 7px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(225,29,72,.20);
  pointer-events:none;
}

/* Meta (compact like Digi) */
.spg-card__meta{
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(0,0,0,.06);

  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Title: 1 line + ellipsis */
.spg-card__title{
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  margin:0;
}

/* Price */
.spg-card__price{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top: 0;
}

.spg-card__old{
  font-size: 11px;
  opacity: .55;
  text-decoration: line-through;
}

.spg-card__now{
  font-size: 13.5px;
  font-weight: 950;
  color:#111;
}

.spg-card__save{
  font-size: 11px;
  font-weight: 800;
  color: #16a34a;
  line-height: 1.2;
}
.spg-card__save-amt{ font-weight: 800; opacity: .9; }

/* ---------- Mobile: 2 cards per row ---------- */
@media (max-width: 768px){
  .spg-strip{ padding: 12px; }

  .spg-strip__scroller{
    gap: 10px;
    padding-inline: 2px;
  }

  .spg-strip .spg-card{
    flex: 0 0 calc(40% - 6px);
    max-width: calc(45% - 6px);
    border-radius: 8px;
  }

  .spg-card__img img{ padding: 7px; }
  .spg-card__meta{ padding: 8px 9px 9px; }
  .spg-card__now{ font-size: 13px; }

  /* فلش‌ها در موبایل خاموش */
  .spg-strip__nav{ display:none !important; }
}

/* ---------- Desktop: SMALLER cards + smaller typography ---------- */
@media (min-width: 992px){
  /* ✅ کوچیک‌تر از قبل */
  .spg-strip{ padding: 10px; }
  .spg-strip__head{ margin-bottom: 8px; }
  .spg-strip__head h2{ font-size: 13px; }
  .spg-strip__all{ font-size: 12px; }

  .spg-strip .spg-card{
    flex: 0 0 145px;   /* ✅ از 165 کوچیک‌تر شد */
    max-width: 145px;
    border-radius: 8px;
  }

  .spg-card__img img{ padding: 6px; }
  .spg-card__meta{ padding: 7px 8px 8px; gap: 5px; }

  .spg-card__title{ font-size: 11px; font-weight: 800; }
  .spg-card__now{ font-size: 12.5px; }
  .spg-card__old{ font-size: 10.5px; }
  .spg-card__save{ font-size: 10.5px; }

  /* فلش‌ها بیرون از کارت‌ها */
  .spg-strip__wrap{ padding-inline: 44px; }

  .spg-strip__nav{
    display:grid;
    place-items:center;
    position:absolute;
    top:50%;
    transform: translateY(-50%);

    width:34px;height:34px;
    border-radius:999px;

    border:1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(10px);

    color: rgba(0,0,0,.55);
    font-size: 18px;
    font-weight: 900;

    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    cursor:pointer;
    z-index:5;

    padding:0;
    line-height:0;
  }
  .spg-strip__nav:hover{
    background: rgba(255,255,255,.75);
    color: rgba(0,0,0,.75);
  }

  .spg-strip__nav--prev{ left: 10px; }
  .spg-strip__nav--next{ right: 10px; }
}

/* RTL swap arrows */
@media (min-width: 992px){
  html[dir="rtl"] .spg-strip__nav--prev{ right: 10px; left: auto; }
  html[dir="rtl"] .spg-strip__nav--next{ left: 10px; right: auto; }
}

/* Medium screens: hide arrows to avoid overlay issues */
@media (max-width: 991px){
  .spg-strip__nav{ display:none !important; }
  .spg-strip__wrap{ padding-inline: 0 !important; }
}
