.epcg-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0px;
}

/* .epcg-card {
    margin: 12px;
    width: calc(25% - 24px);
    background: #fff;
    
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    overflow: hidden;
    transition: .3s;
} */

.epcg-card {
    margin: 12px;
    flex: 1 1 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    overflow: hidden;
    transition: .3s;
}

.epcg-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
}

/* =========================================
   PRICE BADGE – ONLY ON EPCG CATEGORY CARD
========================================= */

.epcg-grid .epcg-card {
    position: relative;
}

/* Badge */
.epcg-grid .epcg-card::before {
    content: "15%";
    position: absolute;
    top: 14px;
    left: 14px;

    background: #ffb800;
    color: #000;

    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;

    padding: 8px 12px;
    line-height: 1.1;

    z-index: 10;
    border-radius: 2px;
}

/* Ribbon arrow */
.epcg-grid .epcg-card::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 86px;

    width: 0;
    height: 0;

    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    /* border-left: 10px solid #ffb800; */

    z-index: 9;
}


.epcg-card:hover {
    transform: translateY(-5px);
}

.epcg-card-image-wrapper {
    display: block;
    height: 250px;
    overflow: hidden;
}

.epcg-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 4px solid #ffb800;
}

.epcg-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.epcg-card-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.epcg-card-desc {
    font-size: 15px;
    /* line-height: 1.6; */
    color: #555;
    margin-bottom: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------------
   SHOP NOW BUTTON WITH ARROW
------------------------------------------ */

.epcg-card-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-weight: 700;
    font-size: 15px;
    color: #ffb800;
    text-decoration: none;
    transition: color 0.3s ease;
    justify-content: end;
}

/* Arrow */
.epcg-card-button::after {
    content: "→";
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover effect */
.epcg-card-button:hover {
    color: #d49c00;
}

.epcg-card-button:hover::after {
    transform: translateX(4px);
}


.epcg-see-all-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.epcg-see-all-btn {
    padding: 8px 22px;
    border: 2px solid #222;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    color: #222;
}

.elementor-4963 .elementor-element.elementor-element-e456ee7,
.elementor-4963 .elementor-element.elementor-element-8d7f381
.elementor-heading-title {
    margin-bottom: -50px;
}

.elementor-heading-title,
.epcg-card-title{
    text-transform: capitalize;
}

/* -----------------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------------------ */

/* Tablet - show ONLY first 3 cards */
@media (max-width: 991px) and (min-width: 576px) {
    .epcg-card {
        width: calc(33.333% - 24px) !important;
    }

    /* hide cards after the first 3 */
    .epcg-card:nth-child(n+4) {
        display: none !important;
    }
}


/* Mobile (2 cards per row) */
@media (max-width: 575px) {
    .epcg-card {
        width: calc(50% - 24px) !important;
    }

    .epcg-card-content {
        text-align: center !important;
    }

    .epcg-card-button {
        align-self: center !important;
    }

    
}

