/* ==============================================================
   DEALS PAGE – PURE CSS (NO TAILWIND)
   ============================================================== */

.deals-section {
  padding: 3rem 0;
  font-family: Arial, sans-serif;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Title */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #111827;
}
.dark .section-title { color: #f1f5f9; }

/* Deals Grid */
.deals-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .deals-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Deal Card */
.deal-card {
  display: block;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
}
.dark .deal-card { background: #1e293b; }

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}

.image-container {
  background: #e5e7eb;
  overflow: hidden;
}
.dark .image-container { background: #334155; }

.deal-img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}

.deal-info {
  padding: 1rem;
}
.deal-name {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dark .deal-name { color: #f1f5f9; }

.deal-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #16a34a;
}
.dark .deal-price { color: #86efac; }

.original-price {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: #9ca3af;
  margin-left: 0.5rem;
}
.dark .original-price { color: #6b7280; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 2.5rem;
  padding: 0.5rem 1rem;
  background: #e5e7eb;
  color: #374151;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  text-align: center;
  transition: background .2s;
}
.dark .pagination-btn { background: #334155; color: #e2e8f0; }

.pagination-btn:hover {
  background: #d1d5db;
}
.dark .pagination-btn:hover { background: #475569; }

.pagination-btn.active {
  background: #16a34a;
  color: #fff;
}
.dark .pagination-btn.active { background: #059669; }

/* No Data */
.no-data {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  padding: 3rem 0;
}
.dark .no-data { color: #94a3b8; }

/* Dark Mode */
html.dark .deals-section { background: #0f172a; }