/* 🌿 Susmita Nursery Modern Nature Theme Upgrade */

/* === Color Palette ===
   Green: #48a82c
   Light Green: #d9f7c8
   Cream: #fdf9f2
   Brown: #c5a679
   Dark: #1f3d1f
*/

/* --- General Layout --- */
body {
  background: linear-gradient(180deg, #fdf9f2 0%, #f7fff4 100%);
  color: #1f3d1f;
  font-family: 'Poppins', sans-serif;
  transition: all 0.4s ease;
}

h4, h5 {
  color: #1f3d1f;
  font-weight: 600;
  position: relative;
}

h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #48a82c, #c5a679);
  border-radius: 3px;
}

/* --- Buttons & Links --- */
a, button {
  transition: all 0.3s ease;
}

a:hover, button:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* --- Category Section --- */
.home-category-item {
  background-size: cover !important;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.home-category-item:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(72, 168, 44, 0.4);
}

.home-category-title {
  background: rgba(31, 61, 31, 0.75);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 0 0 14px 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- Product Cards --- */
.product-list-item {
  margin-bottom: 25px;
  animation: fadeUp 0.8s ease both;
}

.product-cart-item {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-cart-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 20px rgba(72, 168, 44, 0.3);
}

.product-cart-item img {
  border-radius: 16px 16px 0 0;
  transition: transform 0.5s ease;
}

.product-cart-item:hover img {
  transform: scale(1.07);
}

.product-name {
  color: #1f3d1f;
  font-weight: 500;
  font-size: 15px;
  margin-top: 10px;
}

.product-price {
  color: #48a82c;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-price span {
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
}

/* --- Carousel --- */
.carousel-inner img {
  transition: transform 1.2s ease;
  border-radius: 12px;
}

.carousel-item.active img {
  animation: zoomSlow 8s ease-in-out infinite alternate;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(72, 168, 44, 0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: #48a82c;
}

/* --- Offers --- */
img[alt^="Special Offer"] {
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(197, 166, 121, 0.3);
  transition: all 0.4s ease;
}

img[alt^="Special Offer"]:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(72, 168, 44, 0.4);
}

/* --- Animations --- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomSlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #48a82c, #1f3d1f);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: #fdf9f2;
}

/* --- Footer / Info Section --- */
.home-footer-top {
  background: linear-gradient(135deg, #e9f7e1, #fdf9f2);
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: 0.4s ease;
}

.home-footer-top h5 {
  color: #48a82c;
  font-weight: 600;
}

.home-footer-top p {
  color: #1f3d1f;
  line-height: 1.6;
  font-size: 15px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .home-category-item, .product-cart-item {
    border-radius: 10px;
  }
  h4::after {
    width: 40px;
  }
}
