 /* Widget Container */
 .category-widget {
    font-family: Arial, sans-serif;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.lower-contents .grocery{
    color: #00000087;
    font-size: smaller;
    padding-top: 10px;
}


/* Title */
.widget-title h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Category List */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Category Item */
.category-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin-right: 12px;
}

.category-item span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Active State */
.category-item.active {
    background-color: #eaffea; 
    border-left: 4px solid #28a745;
}

/* Hover Effect */
.category-item:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* General styling for content side */
.content-side {

  background-color: #f9f9f9;
}

/* Grid container for category cards */
.category-grid {
  display: flex;
  flex-wrap: wrap; 
  gap: 5px; 
}

/* Styling for individual category cards */
.category-card {
  flex: 1 0 18%; 
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for cards */
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image box styling */
.image-boxs {
  position: relative;
  width: 100%;
}

.image-boxs img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #ddd;
}

/* Lower content (text and price) */
.lower-contents {
  padding: 5px;
  text-align: start;
  display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px; 
}

.product-text, .grocery, .product-price {
    margin: 0; /* Remove any default margin */
    padding: 3px 0; /* Add some padding to make it a bit more spaced, but still tight */
}

.price-and-button {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 5px; 
    margin-top: auto; 
}

.lower-contents .text {
  font-size: 14px;
  color: #888;
}

.lower-contents h4 {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

.lower-contents h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lower-contents h4 a:hover {
  color: #007bff;
}

.lower-contents h5 {
  font-size: 13px;
  color: #000;
  font-weight: bold;
  padding-top: 5px;
}

.lower-contents .product-stock {
  font-size: 12px;
  color: #28a745;
  display: block;
  margin-top: 10px;
}

.product-stock img {
  width: 14px;
  margin-right: 5px;
}

.product-text{
    font-size: 14px;
    
}

.discount-badge {
    position: absolute;
    top: 10px; 
    left: 10px; 
    background-color: #f06b2d99; 
    color: #ffffff;
    font-size: 11px; 
    font-weight: bold; 
    padding: 4px 8px; 
    border-radius: 4px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    z-index: 1; 
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
  .category-card {
    flex: 1 0 23%; 
  }
}

@media (max-width: 992px) {
  .category-card {
    flex: 1 0 48%; 
  }
}

@media (max-width: 768px) {
  .category-card {
    flex: 1 0 100%; /* 1 card per row on small screens */
  }
}

/* Style for each subcategory list item */
.subcategory-list li {
    padding: 8px 0; 
    border-bottom: 1px solid red;
    transition: background-color 0.3s ease; 
    
}

/* Style for labels inside the subcategory items */
.subcategory-list li label {
    display: inline-block;
    font-size: 16px; 
    color: #333; 
    text-decoration: none; 
}

/* Hover effect to highlight the subcategory */
.subcategory-list li:hover {
    background-color: #f4f4f4; 
}

/* Optional: Style the category title */
.category-list > li > label {
    font-weight: bold;
    font-size: 18px;
    display: block; 
    margin-bottom: 10px;
}

/* Style for the subcategory list */
.subcategory-list {
   
    padding: 10px; 
    margin: 0;
}

/* Style for each subcategory item */
.subcategory-list li {
    padding: 8px 0; 
    border-bottom: 1px solid #ddd; 
}

/* Remove the bottom border for the last item to avoid double borders */
.subcategory-list li:last-child {
    border-bottom: none;
}

/* Style for labels inside the subcategory items */
.subcategory-list li label {
    display: inline-block;
    font-size: 16px; 
    color: #333; 
    text-decoration: none; 
}

/* Optional: Hover effect for subcategory items */
.subcategory-list li:hover {
    background-color: #f4f4f4;
}



/* Price container for alignment */
.price-container {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    gap: 10px;
}

/* Product price styles */
.product-price {
    font-size: 18px; 
    font-weight: bold; 
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    background-color: #f8f9fa;
    color: #198754;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 14px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover Effect
.add-to-cart-btn:hover {
    background-color: #337ab7; 
} */
 
