
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin:0 auto;
    max-width: 1300px;
    width:95%;
}

.grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.image-container .overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 61, 151, 0.58);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 100;
}

.image-container:hover .overlay {
    opacity: 1;
}




.item-label {
    position: relative;
    background: white;
    color: #37393F;
    text-align: left;
}
.product-title {
    width:50%;
    justify-content: flex-start;
}

.product-icon {
    width: 50%;
    justify-content: flex-end;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.overlay-content {
    background: white;
    padding: 20px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.overlay-content img {
    width: 100%;
    height: auto;
}

.overlay-content h2 {
    margin-top: 20px;
}

.overlay-content ul {
    list-style-type: none;
    padding: 0;
}

.overlay-content ul li {
    margin: 5px 0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
    z-index: 1000;
}


.grid-item .product-icon svg {
    transition: fill 0.3s ease;
}

/* Change overlay color and svg fill color on hover */


.grid-item:hover .product-icon svg {
    fill: #8331A7;
}

/* Modal body layout */
.modal-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

/* Image on the left */
.modal-image img {
    max-width: 350px; /* Set the desired width of the image */
    height: auto;
    margin-right: 20px; /* Space between image and content */
}

/* Content on the right */
.modal-content {
    flex: 1;
    border:none;
}

/* List styling: replace bullets with a checkmark */
.wp-block-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.wp-block-list li {
    position: relative;
    padding-left: 35px; /* Space for the checkmark */
    margin-bottom: 10px;
}

.wp-block-list li:before {
    content: '\2713'; /* Unicode for checkmark */
    position: absolute;
    left: 0;
    top: 0;
    color: green; /* Change checkmark color */
    font-size: 1.2em; /* Adjust the size of the checkmark */
}


.wp-block-list li:before {
    content: '\2713'; /* Checkmark Unicode */
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    font-size: 1.2em;
    background-color: #8331A7; /* Background color for the circle */
    width: 24px; /* Adjust the size of the circle */
    height: 24px; /* Adjust the size of the circle */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* This makes it a circle */
}



.modal-header {
    background-color: #8331A7;
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        padding:20px;
    }
    
    .grid-item {
        margin:0 auto;
    }
    
    .items-list li::before {
        top:30px;
    }
}
