/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* ===== Gallery ===== */
.gallery-container {
  width: 95%;
  max-width: 1200px;
  margin: 30px auto;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  background: #fff;
}

.gallery-track {
  display: flex;
  transition: transform 0.6s ease;
}

.gallery-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.gallery-slide img:hover {
  transform: scale(1.05);
}

/* Nav Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Dots */
.dots {
  text-align: center;
  padding: 15px;
  background: #fff;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active, .dot:hover {
  background-color: #333;
}

/* Homes Product Section */
.home-products {
  padding: 40px 20px;
  text-align: center;
}

.home-products h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Always 3 columns on desktop */
  gap: 20px;
}

/* Product Card */
.product-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Product Images */
.product-card img {
  width: 100%;
  height: 200px;       /* Equal image height */
  object-fit: cover;   /* Crop to fit */
}

/* Titles */
.product-card h3 {
  margin: 15px 0 5px;
  font-size: 1.2rem;
  color: #0077b6;
}

/* Description */
.product-card p {
  font-size: 0.95rem;
  padding: 0 10px 15px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet → 2 columns */
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr; /* Mobile → 1 column */
  }
}
