

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    background-color: #efefef;
    border-top: 10px solid #efefef;
    border-bottom: 10px solid #efefef;
}

.grid-item {
    position: relative;
    aspect-ratio: 1;
    background-color: #fff;
}
.products-grid-display .product-post-item{
    background-size: cover;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.products-grid-display .load-more-btn {
    background: var(--titanBlue);
    color: var(--titanYellow);
    border: none;
    padding: 7px 30px;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.3s ease;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "termina", sans-serif !important;
}

.products-grid-display .load-more-btn:hover {
    background: var(--titanYellow);
    color: var(--titanBlue);
    transition: 0.3s;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}
.products-grid h3{
    margin: unset;
    padding: 20px;
    color: var(--titanYellow);
    font-weight: 600;
    text-align: center;
}
.products-grid .gradient{
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100%;
    position: absolute !important;
    top: -100%;
    transition: 0.3s;
}
.products-grid-display .product-post-item:hover .gradient{
    margin-top: 0;
    top: 0;
    transition: .3s;
}
/* Responsive design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        /* grid-template-columns: 1fr; */
    }
    .products-grid .product-post-item{
        border-bottom: 3px solid var(--titanBlue);
    }
}




/* Backend Styling  */

.acf-block-preview .products-grid .post-item{
    max-width: 100% !important;
}