/* ===== Home Section Styles ===== */
.home-section {
  padding: 60px 20px;
  background: #fde0e0;
  font-family: 'Arial', sans-serif;
}

/* Banner */
.home-banner {
  text-align: center;
  margin-bottom: 50px;
}
.home-banner h1 {
  font-size: 48px;
  color: #ff4d6d;
  margin-bottom: 15px;
}
.home-banner p {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}
.shop-now {
  padding: 12px 30px;
  background: #ff4d6d;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.shop-now:hover {
  background: #e04361;
  transform: scale(1.05);
}

/* Categories */
.home-categories {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.category-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.category-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}
.category-card h4 {
  font-size: 16px;
  color: #333;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Slider */
.home-products-slider {
  position: relative;
}
.trending-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}
.trending-slider::-webkit-scrollbar {
  display: none;
}
.product-card {
  min-width: 220px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px) scale(1.02);
}
.product-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.product-info {
  padding: 15px;
  text-align: center;
}
.product-info h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}
.new-price {
  font-size: 14px;
  color: #ff4d6d;
  font-weight: bold;
}
/* Links inside category cards */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none; /* يشيل الخط تحت النص */
  color: inherit; /* يخلي النص بنفس اللون الأساسي */
}

.category-card h4 {
  margin: 0;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-decoration: none; /* تأكيد إلغاء الخط تحت النص عند الهوفر */
}


/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,77,109,0.8);
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}
.slider-btn:hover {
  background: #ff4d6d;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }
.fade-in-up.delay-4 { animation-delay: 0.8s; }
.fade-in-up.delay-5 { animation-delay: 1s; }

/* ===== Responsive ===== */
@media(max-width: 1024px) {
  .home-banner h1 { font-size: 38px; }
  .home-banner p { font-size: 16px; }
  .product-card { min-width: 200px; }
}
@media(max-width: 768px) {
  .home-categories { gap: 15px; }
  .category-card { padding: 15px; }
  .trending-slider { gap: 15px; }
  .product-card { min-width: 180px; }
}
@media(max-width: 480px) {
  .home-banner h1 { font-size: 28px; }
  .home-banner p { font-size: 14px; }
  .shop-now { padding: 10px 25px; font-size: 14px; }
  .product-card { min-width: 150px; }
}
