/* Plugin: InstructorPro Suite | File Version: 2016v2 */
/* ==========================================================================
   Public Products  1200px Layout
   ========================================================================== */

.fe-products-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 0 100px;
    background: var(--ez2d-bg);
    margin-top: 60px;
}

.fe-products-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 72px;
    row-gap: 72px;
    column-gap: 72px;
    align-items: stretch;
    justify-items: stretch;
    align-content: start;
    grid-auto-rows: auto;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.fe-product-card {
    position: relative; /* REQUIRED for badge */
    overflow: visible !important; /* allow badge outside */

    background: var(--ez2d-bg-elevated);
    border-radius: 20px;
    padding: 30px 22px;
    text-align: center;
    border: 1px solid var(--ez2d-border-subtle);
    box-shadow: 0 5px 20px var(--ez2d-primary-soft);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 260px;
}


.fe-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--ez2d-primary-soft);
}

/* Title */
.fe-product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ez2d-text);
    margin-bottom: 20px;
}

/* Price */
.fe-product-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--ez2d-primary-strong);
    margin-bottom: 22px;
}

/* Description */
.fe-product-desc {
    margin: -8px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ez2d-text-soft);
}

/* Bullets */
.fe-product-bullets {
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
    text-align: left;
    color: var(--ez2d-text-soft);
    flex: 1;
}

.fe-product-bullets li {
    margin-bottom: 10px;
    font-size: 16px;
    padding-left: 20px;
    position: relative;
}

.fe-product-bullets li:before {
    content: "";
    color: var(--ez2d-primary);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

/* Button */
.fe-btn-add {
    width: 100%;
    padding: 14px 0;
    background: #e11d48;
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: .2s ease;
    text-align: center;
    white-space: nowrap;
    display: block;
    box-sizing: border-box;
    margin-top: auto;
}

.fe-btn-add:hover {
    background: var(--ez2d-primary-strong);
}

/* Mobile */
@media (max-width: 480px) {
    .fe-product-price {
        font-size: 32px;
    }
}
/* ICON */
.fe-product-icon {
    font-size: 38px;
    text-align: center;
    margin-bottom: 10px;
}

/* REAL IMAGE BADGE */
.fe-product-card {
    position: relative;
    overflow: visible !important; /* allow badge to escape */
}

.fe-popular-ribbon {
    position: absolute;
    top: 33px;
    right: -42px;
    width: 185px;
    padding: 10px 0;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.35);
    pointer-events: none;
    z-index: 2;
    clip-path: polygon(38px 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%, 0 38px);
}

@media (max-width: 480px) {
    .fe-popular-ribbon {
        top: 27px;
        right: -38px;
        width: 156px;
        font-size: 10px;
        padding: 8px 0;
        clip-path: polygon(32px 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%, 0 32px);
    }
}
