/* ============================================
   PRODUCTS SECTION
   Theme: Light Warm + Orange→Yellow
   ============================================ */

#products {
  padding: 40px 0 30px;
  background: var(--bg-section-alt, #fdf6ee);
  overflow: hidden;
}

#products .container {
  max-width: 1300px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* ── Section Title ── */
#products .section-title h2 { color: var(--text-primary, #1a1a1a); }
#products .section-title p  { color: var(--text-secondary, #5a3a00); font-size: 17px; }

#products .section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#products.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
}

/* ── Filter Tabs ── */
.product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
#products.in-view .product-filters {
  opacity: 1;
  transform: translateY(0);
}

.filter-tab {
  background: white;
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  color: #7a4000;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: "Lato", sans-serif;
  letter-spacing: 0.3px;
}

.filter-tab:hover {
  border-color: #ff6b00;
  color: #ff6b00;
  transform: translateY(-2px);
}

.filter-tab.active {
  background: linear-gradient(135deg, #ff6b00 0%, #ffcc00 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
  animation: tabPop 0.35s ease;
}

@keyframes tabPop {
  0%   { transform: scale(0.92); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0 40px;
  flex-wrap: wrap;
}

.page-btn {
  background: white;
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  color: #7a4000;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: "Lato", sans-serif;
  min-width: 38px;
}

.page-btn:hover:not(:disabled) {
  border-color: #ff6b00;
  color: #ff6b00;
}

.page-btn.active {
  background: linear-gradient(135deg, #ff6b00 0%, #ffcc00 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-nav {
  font-weight: 700;
}

@media (max-width: 600px) {
  .pagination {
    gap: 6px;
  }
  .page-btn {
    font-size: 12px;
    padding: 6px 10px;
    min-width: 32px;
  }
}
/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

/* ── Product Card ── */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.12);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  animation: cardEnter 0.5s ease forwards;
  animation-play-state: paused;
}

#products.in-view .product-card {
  animation-play-state: running;
}

@keyframes cardEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Staggered delay */
.products-grid .product-card:nth-child(1)  { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2)  { animation-delay: 0.10s; }
.products-grid .product-card:nth-child(3)  { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4)  { animation-delay: 0.20s; }
.products-grid .product-card:nth-child(5)  { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6)  { animation-delay: 0.30s; }
.products-grid .product-card:nth-child(7)  { animation-delay: 0.35s; }
.products-grid .product-card:nth-child(8)  { animation-delay: 0.40s; }
.products-grid .product-card:nth-child(9)  { animation-delay: 0.45s; }
.products-grid .product-card:nth-child(10) { animation-delay: 0.50s; }
.products-grid .product-card:nth-child(11) { animation-delay: 0.55s; }
.products-grid .product-card:nth-child(12) { animation-delay: 0.60s; }

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 107, 0, 0.18);
  border-color: rgba(255, 107, 0, 0.3);
}

/* ── Image Wrap ── */
.product-img-wrap {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #fff3e8, #ffe0c0);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-img-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

/* ── Badges ── */
.badge-hot {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b00;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 1.8s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0); }
}

.badge-off {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff6b00, #ffcc00);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ── Card Body ── */
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 10px;
  font-weight: 800;
  color: #ff6b00;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 3px;
  font-family: "Raleway", sans-serif;
}

.product-tamil {
  font-size: 11px;
  color: #7a4000;
  margin-bottom: 10px;
  opacity: 0.85;
}

/* ── Features ── */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  flex: 1;
}

.product-features li {
  font-size: 11px;
  color: #5a3a00;
  padding: 2px 0;
  line-height: 1.4;
}

.product-features li::before { content: none; }

/* ── Price Row ── */
.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: #ff6b00;
  line-height: 1;
}

.product-old-price {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}

.product-price-call {
  font-size: 14px;
  font-weight: 700;
  color: #ff6b00;
}

/* ── Enquire Button ── */
.product-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #ff6b00 0%, #ffcc00 100%);
  color: #ffffff !important;
  text-align: center;
  padding: 9px 0;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
  color: #ffffff !important;
}

/* ── Bottom Note ── */
.products-note p {
  font-size: 15px;
  color: #7a4000;
}

.products-note a { color: #ff6b00; text-decoration: none; }
.products-note a:hover { color: #cc5500; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  #products { padding: 40px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img-wrap { height: 140px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 18px; }
  .product-btn { font-size: 11px; padding: 8px 0; }
  .filter-tab { font-size: 11px; padding: 6px 14px; }
}