/* ========== HOVER ANIMATIONS & ENHANCEMENTS ========== */

/* --- Navigation Hover Effects --- */
/* --- Navigation Hover Effects --- */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #7fad39;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #7fad39 !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Header Icons --- */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.icon-group a {
  font-size: 1.2rem;
  color: #252525;
  transition: all 0.3s ease;
}

.icon-group a:hover {
  color: #7fad39;
  transform: translateY(-3px);
}

.icon-group .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #7fad39;
  color: white;
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
  border-radius: 50%;
}

.car {
  margin-left: 10px;
}

.car p {
  margin: 0;
}

/* --- Sidebar Menu Animations --- */
.list {
  border: 0.3px solid rgb(214, 212, 212);
}

.departments {
  background-color: #7BB041;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.departments:hover {
  background-color: #6a9a2f;
  padding-left: 20px;
}

.departments .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.departments:hover .arrow {
  transform: rotate(180deg);
}

.side-menu {
  border-top: none;
}

.side-menu li {
  position: relative;
  overflow: hidden;
}

.side-menu a {
  position: relative;
  transition: all 0.3s ease;
  padding-left: 15px;
  display: block;
  padding: 10px;
  color: black;
  text-decoration: none;
}

.side-menu a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #7fad39;
}

.side-menu a:hover {
  color: #7fad39;
  padding-left: 25px;
  background-color: #f8f9fa;
}

.side-menu a:hover::before {
  left: 5px;
  opacity: 1;
}

/* --- Search Section --- */
.site-btn {
  background-color: #7BB041;
  border: none;
  color: white;
  font-size: 14px;
  padding: 13px 50px 12px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.site-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.site-btn:hover {
  background-color: #6a9a2f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 176, 65, 0.4);
}

.site-btn:hover::before {
  left: 100%;
}

.col-lg-9 input {
  border: none;
  height: 48px;
  color: #b2b2b2;
  padding-left: 20px;
}

.col-lg-9 select {
  border: none;
}

.col-lg-9 form {
  border: 0.5px solid #e0e0e0;
  padding: 0;
  margin-left: 30px;
  margin-right: 30px;
}

/* --- Phone Support --- */
.icon-phone {
  color: #7fad39;
  border-radius: 50%;
  background-color: #f5f5f5;
  text-align: center;
  height: 50px;
  width: 50px;
  margin-right: 20px;
  padding-top: 10px;
  transition: all 0.3s ease;
}

.icon-phone:hover {
  background-color: #7fad39;
  color: white;
  transform: scale(1.1);
}

.number-phone h5 {
  font-size: 1.1rem;
  color: #252525;
  margin: 0;
}

.number-phone span {
  font-size: 0.9rem;
  color: #6f6f6f;
}

/* --- Hero Section --- */
.bg {
  background-image: url(images/banner.jpg);
  width: 100%;
  height: 426px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 20px;
}

.text-bg {
  padding-left: 59px;
  padding-top: 140px;
}

.text-bg span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #7fad39;
  display: block;
  margin-bottom: 10px;
}

.text-bg h2 {
  font-size: 46px;
  color: #252525;
  line-height: 52px;
  font-weight: 700;
  margin-bottom: 15px;
}


.text-bg p {
  font-size: 16px;
  color: #6f6f6f;
  font-weight: 400;
  line-height: 26px;
  margin-bottom: 25px;
}

.text-bg .btn {
  display: inline-block;
  font-size: 14px;
  padding: 10px 28px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  background: #7fad39;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.text-bg .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: left 0.3s ease;
  z-index: -1;
}

.text-bg .btn:hover {
  color: #7fad39 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.text-bg .btn:hover::before {
  left: 0;
}

/* --- Category Cards --- */
.products1, .products2, .products3, .products4 {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.products1 { background-image: url(images/cat-1.jpg.webp); }
.products2 { background-image: url(images/cat-2.jpg.webp); }
.products3 { background-image: url(images/cat-3.jpg.webp); }
.products4 { background-image: url(images/cat-4.jpg.webp); }

.products1::before, .products2::before, 
.products3::before, .products4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.products1:hover, .products2:hover, 
.products3:hover, .products4:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.products1:hover::before, .products2:hover::before, 
.products3:hover::before, .products4:hover::before {
  opacity: 1;
}

.products1 h5, .products2 h5, 
.products3 h5, .products4 h5 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  z-index: 2;
  margin: 0;
}

.products1:hover h5, .products2:hover h5, 
.products3:hover h5, .products4:hover h5 {
  bottom: 30px;
}

.products1 h5 a, .products2 h5 a, 
.products3 h5 a, .products4 h5 a {
  background: white;
  color: #252525;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.products1:hover h5 a, .products2:hover h5 a, 
.products3:hover h5 a, .products4:hover h5 a {
  background-color: #7fad39 !important;
  color: #fff !important;
  transform: scale(1.1);
}

/* --- Category Cards (Products1-4) --- */
.products1, .products2, .products3, .products4 {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.products1::before, .products2::before, 
.products3::before, .products4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.products1:hover, .products2:hover, 
.products3:hover, .products4:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.products1:hover::before, .products2:hover::before, 
.products3:hover::before, .products4:hover::before {
  opacity: 1;
}

.products1 h5, .products2 h5, 
.products3 h5, .products4 h5 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  z-index: 2;
}

.products1:hover h5, .products2:hover h5, 
.products3:hover h5, .products4:hover h5 {
  bottom: 30px;
}

.products1 h5 a, .products2 h5 a, 
.products3 h5 a, .products4 h5 a {
  transition: all 0.3s ease;
}

.products1:hover h5 a, .products2:hover h5 a, 
.products3:hover h5 a, .products4:hover h5 a {
  background-color: #7fad39 !important;
  color: #fff !important;
  transform: scale(1.1);
}

/* --- Product Cards Enhanced --- */
.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card img {
  transition: transform 0.5s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-card::after {
  content: 'Add to Cart';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: #7fad39;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  transition: bottom 0.3s ease;
}

.product-card:hover::after {
  bottom: 0;
}

/* --- Banner Cards --- */
.banner-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.banner-card img {
  transition: transform 0.5s ease;
}

.banner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.banner-card:hover img {
  transform: scale(1.05);
}

/* --- Latest Products Section --- */
.Latest {
  position: relative;
  padding: 10px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.Latest:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.Latest img {
  transition: transform 0.3s ease;
}

.Latest:hover img {
  transform: scale(1.1);
}

.lasted-product p {
  transition: color 0.3s ease;
}

.Latest:hover .lasted-product p {
  color: #7fad39;
}

/* Icon hover */
.icon i {
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 5px;
}

.icon i:hover {
  color: #7fad39;
  transform: scale(1.2);
}

/* --- Blog Cards --- */
.blog-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 10px;
}

.blog-card img {
  transition: transform 0.5s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-card:hover img {
  transform: scale(1.1);
}
.blog-info{
  padding: 5px;
}
.blog-info h5 {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.blog-info h5::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #7fad39;
  transition: width 0.3s ease;
}

.blog-card:hover .blog-info h5 {
  color: #7fad39;
}

.blog-card:hover .blog-info h5::after {
  width: 100%;
}

/* --- Footer Enhancements --- */
footer a {
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #7fad39;
  transition: width 0.3s ease;
}

footer a:hover {
  color: #7fad39 !important;
  transform: translateX(5px);
}

footer a:hover::after {
  width: 100%;
}

/* Newsletter button */
footer .btn {
  transition: all 0.3s ease;
}

footer .btn:hover {
  background-color: #7fad39;
  border-color: #7fad39;
  transform: translateX(3px);
}

/* Social icons */
footer .fab {
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

footer a:hover .fab {
  color: #7fad39;
  transform: translateY(-5px) scale(1.2);
}

/* --- Departments Dropdown Animation --- */
.departments {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.departments:hover {
  background-color: #6a9a2f;
  padding-left: 25px;
}

.departments .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.departments:hover .arrow {
  transform: rotate(180deg);
}

/* --- Phone Icon Pulse --- */
.icon-phone {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 173, 57, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(127, 173, 57, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 173, 57, 0);
  }
}

/* --- Section Title Animation --- */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #28a745;
  transition: width 0.5s ease;
}

.section-title:hover::after {
  width: 100px;
}

/* --- Filter Tabs --- */
.nav-pills .nav-link {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 20px;
  padding: 8px 20px;
  margin: 0 5px;
}

.nav-pills .nav-link:hover {
  background-color: #7fad39;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(127, 173, 57, 0.3);
}

/* --- Badge Animation --- */
.badge {
  transition: all 0.3s ease;
}

.icons a:hover + .badge,
.icons a:hover ~ .badge {
  transform: scale(1.2);
  background-color: #dc3545;
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Loading Animation for Images --- */
img {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Stagger Animation for Grid Items --- */
.row .col-6, .row .col-md-3, .row .col-md-4 {
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.row .col-6:nth-child(1) { animation-delay: 0.1s; }
.row .col-6:nth-child(2) { animation-delay: 0.2s; }
.row .col-6:nth-child(3) { animation-delay: 0.3s; }
.row .col-6:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Cart Icon Shake --- */
.fa-bag-shopping:hover {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* --- Heart Icon Beat --- */
.fa-heart:hover {
  animation: beat 0.3s ease infinite;
  color: #dc3545;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* --- Input Focus Effects --- */
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(127, 173, 57, 0.25);
  border-color: #7fad39;
}

/* --- Select Hover --- */
.form-select:hover {
  cursor: pointer;
  background-color: #f8f9fa;
}