/* Onlyfarms Guides — Store Offers widget. Dark store-card look, injected in the
   guide body. Compact cards. Desktop: 3-up grid. Mobile: horizontal-scroll strip. */

.of-offers { margin: 32px 0; }
.of-offers:not(.of-offers--ready) { min-height: 1px; } /* no layout jump before fill */

.of-offers__heading {
  font-size: 16px;
  font-weight: 800;
  color: #FBFDFF;
  margin: 0 0 14px;
  line-height: 1.25;
}

.of-offers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.of-offer {
  display: flex;
  flex-direction: column;
  background: #161E30;
  border: 1px solid #2A3550;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.of-offer:hover {
  transform: translateY(-2px);
  border-color: #2D64F1;
  box-shadow: 0 10px 24px rgba(45, 100, 241, .2);
}

.of-offer__media { position: relative; }
.of-offer__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #0F1626;
  cursor: pointer;
}
.of-offer__img--empty {
  background: linear-gradient(135deg, #1B2740, #10192B);
}

.of-offer__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  background: var(--of-bc, #E5484D);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.of-offer__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px 12px;
  flex: 1;
}
.of-offer__name {
  font-size: 13px;
  font-weight: 700;
  color: #FBFDFF;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.of-offer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.of-offer__price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.of-offer__from { font-size: 10px; color: #8FA3C8; }
.of-offer__now  { font-size: 15px; font-weight: 800; color: #FBFDFF; }
.of-offer__old  { font-size: 12px; color: #6B7C9A; text-decoration: line-through; }

.of-offer__cta {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #2D64F1;
  transition: background .15s ease;
}
.of-offer:hover .of-offer__cta { background: #1A4FD4; }

/* Tablet: keep 3-up but tighter; drop to 2 only when really narrow */
@media (max-width: 700px) {
  .of-offers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: horizontal-scroll strip of fixed-width cards */
@media (max-width: 520px) {
  .of-offers__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 2px 16px 10px;
  }
  .of-offers__grid::-webkit-scrollbar { display: none; }
  .of-offer {
    flex: 0 0 60%;
    max-width: 200px;
    scroll-snap-align: start;
  }
}
