/* ==========================================================
CPT Card Grid
========================================================== */

.wa-cpt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ---- Card ---- */
.wa-cpt-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e2e2;
}

.wa-cpt-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---- Image ---- */
.wa-cpt-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.wa-cpt-card__image img,
.wa-cpt-card__image .wa-cpt-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wa-cpt-card__link:hover .wa-cpt-card__image img,
.wa-cpt-card__link:hover .wa-cpt-card__image .wa-cpt-card__img {
    transform: scale(1.05);
}

.wa-cpt-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8d5cf;
}

/* ---- Body ---- */
.wa-cpt-card__body {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wa-cpt-card__title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #4b1500;
    letter-spacing: 0.3px;
}

.wa-cpt-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #4b1500;
    margin: 0 0 20px;
    flex: 1;
}

/* ---- Read More button ---- */
.wa-cpt-card__readmore {
    display: inline-block;
    align-self: flex-start;
    background: #f9b9b3;
    color: #4b1500;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 20px;
    border-radius: 30px;
}

.wa-cpt-card__link:hover .wa-cpt-card__readmore {
    opacity: 0.9;
}

/* ---- Load More ---- */
.wa-cpt-load-more-wrap {
    text-align: center;
    margin-top: 50px;
}

.wa-cpt-load-more {
    display: inline-block;
    background: #3B1500;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.wa-cpt-load-more:hover {
    opacity: 0.9;
}

.wa-cpt-load-more.loading {
    opacity: 0.6;
    pointer-events: none;
}













/* ==========================================================
   Recipe Categories Grid
   ========================================================== */

.wa-recipe-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* 3 items: one row of 3 */
.wa-recipe-categories--count-3 .wa-recipe-cat {
    width: calc(33.333% - 20px);
}

/* 4 items: one row of 4 */
.wa-recipe-categories--count-4 .wa-recipe-cat {
    width: calc(25% - 22.5px);
}

/* 5 items: row of 3 + row of 2 centered */
.wa-recipe-categories--count-5 .wa-recipe-cat {
    width: calc(33.333% - 20px);
}

/* 6 items: row of 3 + row of 3 */
.wa-recipe-categories--count-6 .wa-recipe-cat {
    width: calc(33.333% - 20px);
}

.wa-recipe-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
}

.wa-recipe-cat__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
}

.wa-recipe-cat__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wa-recipe-cat:hover .wa-recipe-cat__img-wrap img {
    transform: scale(1.05);
}

.wa-recipe-cat__placeholder {
    width: 100%;
    height: 100%;
    background: #e8d5cf;
}

.wa-recipe-cat__name {
    color: #4B1500;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
    .wa-cpt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wa-recipe-categories { gap: 20px; }
    .wa-recipe-categories .wa-recipe-cat {
        width: calc(50% - 10px) !important;
    }
}

@media (max-width: 767px) {
    .wa-cpt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wa-recipe-categories { gap: 20px; }
    .wa-recipe-categories .wa-recipe-cat {
        width: 100% !important;
    }
}