/* ==========================================================================
   SHUBHLAXMI CASTOR OIL - PRODUCTS PORTFOLIO PAGE SPECIFIC STYLES
   ========================================================================== */

.products-section {
  padding: 90px 0;
  background-color: var(--bg-slate);
}

.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--blue-brand);
  color: var(--blue-brand);
}

.filter-btn.active {
  background: var(--navy-primary);
  color: var(--white);
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-md);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3.5px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
  border-color: var(--gold-hover);
}

.product-img-wrapper {
  width: 100%;
  height: 235px;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--slate-100);
}

.product-img-wrapper img {
  max-height: 210px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.product-badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.product-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold-hover);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue-brand);
  border: 1px solid rgba(29, 78, 216, 0.3);
}

.badge-green {
  background: var(--emerald-light);
  color: var(--emerald-pure);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.veg-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  z-index: 3;
}

.veg-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

.product-content {
  padding: 20px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-hover);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.product-title {
  font-size: 18px;
  color: var(--navy-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.product-desc {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.35;
  margin-bottom: 10px;
}

.product-meta-box {
  background: var(--bg-slate);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.meta-key {
  color: var(--slate-500);
  font-weight: 600;
}

.meta-val {
  color: var(--navy-dark);
  font-weight: 700;
}

.price-tag {
  color: var(--emerald-pure);
  font-weight: 800;
  font-size: 14px;
}

.price-sub {
  font-size: 10.5px;
  color: var(--slate-500);
  font-weight: 500;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.specification-table td {
  vertical-align: top;
}

@media (max-width: 768px) {
  .specification-matrix {
    margin-top: 48px !important;
    padding: 22px 16px !important;
  }

  .specification-matrix h3 {
    font-size: 20px !important;
  }

  .specification-table {
    display: block;
  }

  .specification-table thead {
    display: none;
  }

  .specification-table tbody,
  .specification-table tr,
  .specification-table td {
    display: block;
    width: 100%;
  }

  .specification-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .specification-table tr:last-child {
    border-bottom: 0;
  }

  .specification-table td {
    padding: 6px 0 !important;
    text-align: left;
  }

  .specification-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .specification-table td:nth-child(1)::before { content: 'Product Variant'; }
  .specification-table td:nth-child(2)::before { content: 'Grade / Standard'; }
  .specification-table td:nth-child(3)::before { content: 'Net Quantity'; }
  .specification-table td:nth-child(4)::before { content: 'Gross Weight'; }
  .specification-table td:nth-child(5)::before { content: 'M.R.P. & Rates'; }
  .specification-table td:nth-child(6)::before { content: 'Primary Recommended Application'; }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
