/* Offers section card styles */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) { /* sm */
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) { /* md */
  .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) { /* lg */
  .offer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1280px) { /* xl */
  .offer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
}

.offer-card {
  background: rgba(17, 24, 39, 0.9); /* gray-900/90 */
  border: 1px solid rgba(55, 65, 81, 0.6); /* gray-700/60 */
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: block;
  text-decoration: none;
}
.offer-card:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 24px 48px rgba(245, 158, 11, 0.25); /* amber */
  border-color: #f59e0b; /* amber-500 */
}

.offer-card-media {
  position: relative;
  aspect-ratio: 1 / 1; /* mobile: square */
  background: linear-gradient(135deg, #111827, #1f2937);
}
@media (min-width: 768px) { /* md */
  .offer-card-media { aspect-ratio: 4 / 5; } /* taller image */
}
@media (min-width: 1024px) { /* lg */
  .offer-card-media { aspect-ratio: 3 / 4; } /* even taller on large */
}
.offer-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.offer-card:hover .offer-card-img {
  transform: scale(1.05);
}
.offer-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25) 60%, rgba(0,0,0,0));
  transition: background 0.3s ease;
}
.offer-card:hover .offer-card-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0));
}

.offer-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.9); /* amber-600/90 */
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.offer-card-body { padding: 20px; }
.offer-card-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem; /* text-lg */
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-card-price {
  margin-top: 10px;
  color: #fbbf24; /* amber-400 */
  font-weight: 800;
  font-size: 1.5rem; /* text-xl */
}

/* Active button state for offer-category-btn */
.offer-category-btn.active .category-chip {
  outline: 2px solid rgba(245, 158, 11, 0.5);
}