/* ================================
   AENERGY PRODUCT PAGE STYLING
   ================================ */

:root {
  --red: #DF1024;
  --gray: #DCD6D7;
  --mauve: #625A67;
  --charcoal: #302B31;
  --white: #fff;
}

/* ===== Section Base ===== */
.products-section {
  padding: 7rem 8% 5rem;
  background: linear-gradient(180deg, #302B31 0%, #1f1b1f 100%);
  text-align: center;
  color: var(--gray);
}

.products-section h2 {
  font-size: 2.3rem;
  color: var(--white);
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.products-section h2 span {
  color: var(--red);
}

/* ===== Grid Layout ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* ===== Product Card ===== */
.product-card {
  background: #3b353b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  border-color: var(--red);
}

/* ===== Image Section ===== */
.card-image {
  background: #262026;
  padding: 1.5rem;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.07);
}

/* ===== Text Section ===== */
.card-body {
  padding: 1.8rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* ===== Button ===== */
.btn {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background: var(--mauve);
  color: var(--gray);
  transform: translateY(-3px);
}

/* ===== Responsive Adjustments ===== */

/* --- Large tablets (≤1200px) --- */
@media (max-width: 1200px) {
  .products-section {
    padding: 6rem 6% 4rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }

  .card-image {
    height: 220px;
  }
}

/* --- Tablets (≤992px) --- */
@media (max-width: 992px) {
  .products-section {
    padding: 5.5rem 6% 3.5rem;
  }

  .products-section h2 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .card-body h3 {
    font-size: 1.05rem;
  }

  .card-body p {
    font-size: 0.9rem;
  }

  .card-image {
    height: 200px;
  }
}

/* --- Mobile Landscape (≤768px) --- */
@media (max-width: 768px) {
  .products-section {
    padding: 4.5rem 5% 3rem;
  }

  .products-section h2 {
    font-size: 1.8rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    max-width: 420px;
  }

  .card-image {
    height: 190px;
  }
}

/* --- Mobile Portrait (≤480px) --- */
@media (max-width: 480px) {
  .products-section {
    padding: 4rem 4% 2.5rem;
  }

  .products-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .product-grid {
    gap: 1.2rem;
  }

  .card-body {
    padding: 1.5rem 1.2rem;
  }

  .card-body h3 {
    font-size: 1rem;
  }

  .card-body p {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}
