:root {
  --color-primary: #6c63ff;
  --color-success: #00bf8e;
  --color-warning: #f7c94b;
  --color-danger: #f75842;
  --color-danger-variant: rgba(247, 88, 66, 0.4);
  --color-white: #fff;
  --color-light: rgba(255, 255, 255, 0.7);
  --color-black: #000;
  --color-bg: #1f2641;
  --color-bg1: #2e3267;
  --color-bg2: #424890;

  --transition: all 400ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--color-bg);
  padding-top: 120px;

}

.title h2,
.title h4 {
  text-align: center;
}

.title h4 {
  margin-bottom: 4rem;
  font-weight: lighter;
}

/* Responsive Grid Layout - Full Width */
.product-grid {
  
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Mobile default */
  gap: 30px;
  padding: 0 10px;
  margin-bottom: 20px;
  width: 100%;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  animation: fadeInUp 1s ease forwards;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-details {
  padding: 20px;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-bg2);
}

.product-description {
  font-size: 0.95rem;
  color: var(--color-bg1);
  margin-bottom: 15px;
}

.price {
  font-size: 1.2rem;
  color: var(--color-black);
  margin-bottom: 20px;
}

.btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--color-bg2);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
