/* === GLOBAL === */ 
body {
  background: linear-gradient(180deg, #41006b, #9a57b4);
  color: #fff;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

.home-title {
  text-align: center;
  margin-top: 30px;
  font-size: 2.8rem;
  font-weight: 700;
}

/* === CAROUSEL === */
.carousel-container {
  position: relative;
  width: 80%;              /* narrower to remove excess black areas */
  max-width: 1100px;       /* matches screenshot proportions */
  height: 420px;           /* PERFECT height for your images */
  margin: 25px auto 50px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.5);
  background: #180028;     /* fallback behind images */
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the frame perfectly */
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 22px;
  z-index: 10;
}

.carousel-btn.left { left: 15px; }
.carousel-btn.right { right: 15px; }

.carousel-btn:hover {
  background: rgba(0,0,0,0.75);
}

/* === SECTIONS === */
.homepage-section {
  padding: 40px 6%;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  color: #ff9600;
}

/* === GRID === */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.home-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

@media (max-width: 900px) {
  .home-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .home-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* === CATEGORY CARDS === */
.category-large {
  height: 340px;
}

.home-card-image-large {
  height: 180px;
  background: #f4f4f4;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-card-image-large img {
  width: 95%;
  height: 95%;
  object-fit: contain;
}

/* === PRODUCT CARDS === */
.home-card {
  background: #fff;
  color: #000;
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.product-card {
  height: 360px;
}

.home-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* === IMAGE PREVIEW === */
.home-card-image {
  height: 150px;
  background: #f4f4f4;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-card-image img {
  width: 95%;
  height: 95%;
  object-fit: contain;
}

/* TEXT */
.home-card-title {
  text-align: center;
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.home-card-price {
  text-align: center;
  margin-top: auto;
  font-weight: 700;
  color: #ff6600;
  font-size: 1.2rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  color: #fff;
  margin-top: 40px;
}
