/* כרטיסי גירוד — לובי בשורות לרוחב + "הטופס שלי", בעיצוב תואם-אתר */

.index-home-hub--scratch { align-items: flex-start; }
.index-home-hub--scratch .index-my-form-block { --hub-accent: var(--accent-sport, #f5c518); }

/* ===== הלובי ===== */
.scratch-lobby { padding: clamp(14px, 2vw, 20px); }
.scratch-lobby__header { margin-bottom: 16px; }
.scratch-lobby__title { margin: 0; font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); font-weight: 800; color: #fff; }
.scratch-lobby__subtitle { margin: 4px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.scratch-lobby__empty { color: rgba(255, 255, 255, .55); padding: 24px 0; text-align: center; }

.scratch-rows { display: flex; flex-direction: column; gap: 12px; }

.scratch-row {
  display: flex;
  align-items: stretch;          /* התמונה בגובה מלא של הבלוק */
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  transition: border-color .15s ease;
}
.scratch-row:hover { border-color: rgba(245, 197, 24, .4); }

/* תמונה — גובה מלא (ימין ב-RTL) */
.scratch-row__media {
  position: relative; flex: none;
  width: 118px; align-self: stretch; min-height: 118px;
  border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(245, 197, 24, .14), rgba(0, 0, 0, .3));
}
.scratch-row__img { width: 100%; height: 100%; object-fit: cover; }
.scratch-row__ph { color: rgba(245, 197, 24, .8); }
.scratch-row__ph svg { width: 48px; height: 48px; }
.scratch-row__stock {
  position: absolute; inset-block-start: 6px; inset-inline-end: 6px;
  font-size: .68rem; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .18);
  padding: 2px 7px; border-radius: 999px;
}

/* תוכן (תיאור + קנייה) — בדסקטופ שורה, בנייד עמודה */
.scratch-row__content { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.scratch-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.scratch-row__name { margin: 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
.scratch-row__desc { margin: 0; font-size: .85rem; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.scratch-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; }
.scratch-row__price { font-size: .92rem; font-weight: 800; color: var(--accent-sport, #f5c518); }
.scratch-row__price span { color: rgba(255, 255, 255, .5); font-weight: 500; font-size: .8rem; }
.scratch-row__remain { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.scratch-row__remain b { color: #fff; }

/* כמות + קנייה */
.scratch-row__buy { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 152px; }
.scratch-row__qty {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px; padding: 4px;
}
.scratch-row__step {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  border: none; background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1;
}
.scratch-row__step:hover { background: rgba(255, 255, 255, .16); }
.scratch-row__step:disabled { opacity: .35; cursor: default; }
.scratch-row__qtyval { font-size: 1.05rem; font-weight: 800; color: #fff; }
.scratch-row__total { text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.scratch-row__total b { color: #fff; font-size: 1rem; margin-inline-start: 4px; }
.scratch-row__buy-btn {
  border: none; cursor: pointer; border-radius: 10px; padding: 11px;
  font-size: .92rem; font-weight: 800; color: #1a1a1a; background: var(--accent-sport, #f5c518);
  transition: filter .15s ease;
}
.scratch-row__buy-btn:hover { filter: brightness(1.08); }
.scratch-row__buy-btn:disabled { opacity: .6; cursor: default; }
.scratch-row__msg { min-height: 14px; font-size: .76rem; color: #ff9a9a; text-align: center; }
.scratch-row__msg--ok { color: #6dffa0 !important; font-weight: 700; }
.scratch-row__soldout { color: rgba(255, 255, 255, .45); font-size: .85rem; font-weight: 700; text-align: center; }

/* ===== נייד ===== */
@media (max-width: 560px) {
  .scratch-row { padding: 10px; gap: 12px; }
  .scratch-row__media { width: 92px; min-height: 92px; }
  .scratch-row__content { flex-direction: column; align-items: stretch; gap: 10px; }
  .scratch-row__buy { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .scratch-row__qty { flex: 1 1 130px; }
  .scratch-row__total { flex: 1 1 auto; text-align: start; }
  .scratch-row__buy-btn { flex: 1 1 100%; }
  .scratch-row__msg { flex: 1 1 100%; }
}

/* ===== "הטופס שלי" — כרטיסים לגירוד ===== */
.index-home-hub--scratch .index-my-form-block { padding: clamp(14px, 2vw, 18px); }
.scratch-mine { display: flex; flex-direction: column; gap: 12px; }
.scratch-mine__count {
  font-size: .9rem; font-weight: 800; color: #fff;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(245, 197, 24, .12); border: 1px solid rgba(245, 197, 24, .28);
  text-align: center;
}
.scratch-mine__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scratch-mine__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  background: rgba(255, 255, 255, .04); font-size: .9rem; color: #fff;
}
.scratch-mine__no b { color: var(--accent-sport, #f5c518); }
.scratch-mine__go {
  text-decoration: none; font-weight: 800; color: #1a1a1a; font-size: .85rem;
  background: var(--accent-sport, #f5c518); padding: 8px 20px; border-radius: 10px; white-space: nowrap;
  transition: filter .15s ease;
}
.scratch-mine__go:hover { filter: brightness(1.08); }
.scratch-mine__all { display: block; margin-top: 4px; color: var(--accent-sport, #f5c518); font-weight: 700; font-size: .85rem; text-decoration: none; text-align: center; }

/* הדגשת כרטיס חדש שנקנה */
@keyframes scratchNewFlash {
  0% { background: rgba(245, 197, 24, .28); border-color: rgba(245, 197, 24, .6); }
  100% { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
}
.scratch-mine__item--new { animation: scratchNewFlash 1.4s ease-out; }
