/* General Wrapper */
.sg-product-masonry-wrapper {
    margin: 20px 0;
    font-family: sans-serif;
}

/* Category Filters */
.sg-category-filters {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-wrap: wrap; /* Allow filters to wrap on smaller screens */
    gap: 10px; /* Space between filter items */
    justify-content: flex-start; /* Align to the start, like your example */
}

.sg-category-filters li.filter-item {
    padding: 8px 15px;
    cursor: pointer;
    color: #2d3131;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-size: 14px;
}

.sg-category-filters li.filter-item:hover {
    
}

.sg-category-filters li.filter-item.active {
    color: #f29c25;
}

/* Product Grid */
.sg-product-grid {
    /* Clearfix for floated items if not using flex/grid for items */
}

.sg-product-grid:after {
    content: '';
    display: block;
    clear: both;
}

/* Product Item Styling */
.sg-product-item {
    width: calc(50% - 20px); /* Example: 3 columns with 20px gutter */
    /* For 2 columns: width: calc(50% - 20px); */
    /* For 4 columns: width: calc(25% - 20px); */
    margin: 0 10px 20px 10px; /* Gutter: 10px on each side = 20px total between items */
    background-color: #fff;
    overflow: hidden; /* Ensures rounded corners clip the image */
    position: relative; /* For absolute positioning of elements inside if needed */
    transition: transform 0.2s ease-in-out;
}

.sg-product-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.sg-product-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sg-product-image {
    width: 100%;
    /* height: 200px; /* Or set a fixed height or aspect ratio */
    /* overflow: hidden; */ /* If image needs to be contained */
    background-color: #f0f0f0; /* Placeholder background */
    position: relative; /* For labels or overlays */
}

.sg-product-image img {
    display: block;
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area, might crop */
    /* If you want to ensure image is not cropped:
    height: auto;
    max-height: 200px; (or your desired max height)
    object-fit: contain;
    */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sg-product-title {
    font-size: 24px;
    margin: 10px 15px 5px;
    margin-left: 0px;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
    min-height: 2.6em; /*  Approx 2 lines, adjust as needed */
    color: #ffffff;
    z-index: 999;
    font-weight: 400;
    position: relative;
    margin-bottom: 0px;
}




.sg-product-price {
    font-size: 1em;
    color: #ff6f61;
    margin: 0 15px 15px;
    font-weight: bold;
}

.sg-product-category-label {
    position: absolute; /* Position over the image */
    bottom: 10px; /* Adjust as needed */
    left: 15px;   /* Adjust as needed */
    background-color: rgba(0, 0, 0, 0.0); /* Transparent initially for text only */
    color: #fff;
    padding: 5px 10px; /* Add some padding */
    border-radius: 4px; /* Optional: rounded corners for the label itself */
    font-size: 0.9em;
    font-weight: bold;
    /* This is a bit of a guess based on your image showing text ON the image */
    /* If the label is below the image, this positioning is not needed */
    /* In your provided image, it seems the text like "Cakes" is part of the content below the image */
    /* Let's adjust to be below the image and title */
}

/* Repositioning category label to be like the text in the provided image */
.sg-product-item a {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make anchor fill the item */
}
.sg-product-image {
    /* flex-grow: 1;  Let image take available space if needed, or set fixed height */
}
.sg-product-category-label {
    position: static; /* Override absolute positioning */
    background-color: transparent;
    color: #555; /* Darker text color */
    padding: 0;
    margin: 0 15px 15px; /* Spacing below title */
    font-size: 0.9em;
    font-weight: normal; /* Less emphasis than title */
    text-align: left; /* Align with title */
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .sg-product-item {
        width: calc(50% - 20px); /* 2 columns */
    }
}

@media (max-width: 600px) {
    .sg-product-item {
        width: calc(100% - 20px); /* 1 column */
        margin-left: auto; /* Center single column if grid has padding */
        margin-right: auto;
    }
    .sg-category-filters {
        justify-content: center; /* Center filters on small screens */
    }
}

/* Isotope Specific: Hiding items */
.sg-product-item.isotope-hidden {
  visibility: hidden;
  opacity: 0;
  z-index: -9999; /* ensure it's not clickable */
}


.sg-product-item::after {
      content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    z-index: 0;
}


.sg-category-filters li.filter-item:before{
  display: none;
}



/* css/custom-masonry.css */

/* ... (your existing CSS) ... */

/* Custom HTML Content Area for "All" filter */
.sg-custom-html-content {
    background-color: #f9f9f9; /* Example background */
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 25px; /* Same as filter margin */
    text-align: center; /* Example alignment */
}

.sg-custom-html-content h2 {
    margin-top: 0;
    color: #333;
}

.sg-custom-html-content p {
    color: #555;
    line-height: 1.6;
}

/* Ensure product grid is hidden by JS when needed, but maintain flow if it were visible */
.sg-product-grid {
    /* display: block; by default from Isotope, JS will hide/show */
}

/* Hide the "No products found" message by default IF the grid might appear later */
/* Or let JS manage its visibility entirely if it's only relevant when a category is chosen */
/* .sg-no-products-found {
    display: none;
} */



.dessert-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dessert-grid-row {
  display: flex;
  gap: 10px;
}

.dessert-grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split-vertical {
  justify-content: space-between;
}

.dessert-grid-item {
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: white;
  min-height: 350px;
}

.label-cakes,
.label-jar,
.label-cookies,
.label-pastries,
.label-chocolate,
.label-sandwiches {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 20px;
  letter-spacing: 1px;
}

/* Placeholder background colors */
.item-cakes { background-color: #8b0000; }
.item-jar { background-color: #5e3c58; }
.item-cookies { background-color: #d2691e; }
.item-pastries { background-color: #daa520; }
.item-chocolate { background-color: #3e2723; }
.item-sandwiches { background-color: #6b8e23; }

.dessert-row-top > .dessert-col-top-left,
.dessert-row-bottom > .dessert-col-bottom-right {
  flex: 1.6;
}

.dessert-row-top > .dessert-col-top-right,
.dessert-row-bottom > .dessert-col-bottom-left {
  flex: 2;
}



.sg-product-short-description-pos{
    position: absolute;
    left: 0px;
    bottom: 0px;
    z-index: 9;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}


.sg-product-short-description p{
  color: #ffffff;
  position: relative;
  z-index: 99;
  font-size: 18px;
  line-height: 1.5;
}

.sg-product-short-description{
  display: none;
}


.sg-product-item:hover .sg-product-short-description{
  display: block;
}


.sg-product-short-description-pos::after{
  content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    z-index: 0;
}

  


.left-to-right-bg::after{
  content: " ";
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
}



.image-plus-sign{
    position: absolute;
    display: none;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
}


.image-plus-sign img{
  height: 40px;
  width: 40px;
}

.dessert-grid-item:hover  .image-plus-sign{
  display: inline-block;
}



