.main-all-categories {
     display: grid;
     grid-template-columns: repeat(3, 1fr);  /* 3 equal columns */
     gap: 1rem;  /* Adds space between items */
     padding: 1rem;
     box-sizing: border-box;
   }
   
   .main-categories-item {
     background-color: #f4f4f4;  /* Optional, just to add a background */
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Soft shadow for a card-like effect */
     overflow: hidden;  /* Ensures content stays inside the card */
     display: flex;
     flex-direction: column;  /* This will stack the elements in the card */
     justify-content: space-between;
   }
   
   .main-categories-card {
     display: block;
     padding: 1rem;
     background-color: #fff;
     text-decoration: none;
     color: #333;  /* Text color for the link */
     border-radius: 8px;
     transition: all 0.3s ease;
   }
   
   .main-categories-card:hover {
     background-color: var(--brand-bg-color);
     color: #fff;
     transform: translateY(-5px);  /* Slight hover effect */
   }


   .main-categories-card:hover .subcategory-description,   .main-categories-card:hover  .subcategory-name{
     color: white;
   }
   
   @media (max-width: 768px) {
     .main-all-categories {
       grid-template-columns: repeat(2, 1fr);  /* 2 columns for tablet screens */
     }
   }
   
   @media (max-width: 480px) {
     .main-all-categories {
       grid-template-columns: 1fr;  /* 1 column for mobile screens */
     }
   }












   /* Container styles */
.sub_cat_bottom_container {
  display: flex;
  flex-wrap: wrap;  /* Allow wrapping if content overflows */
  align-items: flex-start; /* Align items to the top */
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

/* Image container */


/* Product image */
.product_image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Make sure the image covers the container */
  border-radius: 10px;
}

/* Category details container */
.category-details {
  flex-grow: 1;
  max-width: 100%; /* Max width for the text area */
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  height: 100%; /* Ensure the container grows with content */
}

/* Title styling */
.category-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* Description styling */
.category-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
  .sub_cat_bottom_container {
      flex-direction: column; /* Stack image and description vertically */
      align-items: center;
      text-align: center;
  }

  .category-details {
      width: 90%; /* Adjust width on smaller screens */
      padding: 15px;
  }

  .category-title {
      font-size: 1.5rem;
  }

  .category-description {
      font-size: 1rem;
  }

 
}

@media (max-width: 480px) {
  .category-title {
      font-size: 1.25rem;
  }

  .category-description {
      font-size: 0.9rem;
  }
}
