/* ================= HERO ================= */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #2d2d2d;
  overflow: hidden;
  background: url('/static/images/homepage_banner_pink.png') 80% 20%/cover no-repeat;
  margin-bottom: 50px;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to bottom, transparent, #f9f9f9);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 600px;
  padding: 0 20px 0 10%;
  z-index: 3;
  animation: fadeInUp 1s ease-out forwards;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(to right, #2d2d2d, #4a4a4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #4a4a4a;
  font-weight: 500;
  text-shadow: none;
}

.btn-shop {
  display: inline-block;
  background: #ff1680;
  color: #fff;
  padding: 16px 45px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: none;
  border: 1px solid #ff1680;
}

.btn-shop:hover {
  background: #e61472;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #e61472;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* messages */
.messages-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  /* Limits width on desktop */
}

.message-item {
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  animation: fadeInDown 0.4s ease;
}

/* Django Tag Colors */
.message-item.info {
  background-color: #17a2b8;
}

.message-item.success {
  background-color: #28a745;
}

.message-item.warning {
  background-color: #ffc107;
  color: #333;
}

.message-item.error {
  background-color: #dc3545;
}

.message-item span {
  cursor: pointer;
  margin-left: 15px;
  font-size: 1.2rem;
  line-height: 1;
}

/* Animation for smooth appearance */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SECTIONS ================= */
.featured-section {
  padding: 30px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  color: #2d2d2d;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff3366;
  border-radius: 2px;
}

/* ================= HOMEPAGE GRID ONLY ================= */
/* HOMEPAGE GRID — SAME AS LISTING */
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
  gap: 25px;
  justify-content: center;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 1400px) {
  .home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 1200px) {
  .home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    justify-content: center;
    text-align: center;
    background-position: center 20%;
  }

  .hero-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .home-product-grid {
    grid-template-columns: 1fr;
  }
}