@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ========================= */
/* GRID */
/* ========================= */
.cpc-wrapper-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop: 3 columnas */
    gap: 32px;
    margin: 40px auto;
    width: 100%;
    max-width: 1200px; /* centra el bloque completo */
    padding-inline: 20px;
    box-sizing: border-box;
    justify-items: stretch;
    align-items: stretch;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* ========================= */
/* CARD */
/* ========================= */
.cpc-card-v2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 5px 5px 0 #E1EED7;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.cpc-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 #E1EED7;
}

/* ========================= */
/* IMAGE */
/* ========================= */
.cpc-image-link-v2 {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    background: #f5f5f5;
}

.cpc-image-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cpc-image-link-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cpc-card-v2:hover .cpc-image-v2 {
    transform: scale(1.05);
}

.cpc-card-v2:hover .cpc-image-link-v2::after {
    opacity: 1;
}

/* ========================= */
/* BADGE */
/* ========================= */
.cpc-badge-v2 {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #2E520D;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* ========================= */
/* CONTENT */
/* ========================= */
.cpc-content-v2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px;
    gap: 10px;
    text-align: center;
    align-items: center;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* ========================= */
/* TITLE */
/* ========================= */
.cpc-title-v2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    text-align: center;
}

.cpc-title-v2 a {
    color: #111;
    text-decoration: none;
}

.cpc-title-v2 a:hover {
    color: #2E520D;
}

/* ========================= */
/* RATING */
/* ========================= */
.cpc-rating-v2 {
    font-size: 12px;
    min-height: 18px;
    text-align: center;
}

.cpc-stars-v2 {
    color: #f59e0b;
}

/* ========================= */
/* PRICE */
/* ========================= */
.cpc-price-v2 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    text-align: center;
}

.cpc-price-v2 del {
    opacity: 0.5;
    margin-right: 6px;
}

/* ========================= */
/* BUTTON */
/* ========================= */
.cpc-button-v2 {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background: #2E520D;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.cpc-button-v2:hover {
    background: #549020;
    color: #fff;
    transform: translateY(-2px);
}

/* ========================= */
/* EMPTY */
/* ========================= */
.cpc-empty-v2 {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(0,0,0,.08);
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* ========================= */
/* TABLET */
/* ========================= */
@media (max-width: 1024px) {
    .cpc-wrapper-v2 {
        grid-template-columns: 1fr; /* tablet: una sola columna */
        gap: 24px;
        padding-inline: 18px;
        max-width: 600px; /* centra y evita que se vea muy ancha */
    }

    .cpc-title-v2 {
        font-size: 16px;
    }

    .cpc-price-v2 {
        font-size: 17px;
    }
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .cpc-wrapper-v2 {
        grid-template-columns: 1fr; /* mobile: 1 columna */
        gap: 18px;
        padding-inline: 16px;
        max-width: 500px;
    }

    .cpc-content-v2 {
        padding: 14px;
    }

    .cpc-title-v2 {
        font-size: 15px;
    }

    .cpc-price-v2 {
        font-size: 16.5px;
    }

    .cpc-button-v2 {
        font-size: 13px;
        padding: 10px;
    }
}

/* ========================= */
/* MOBILE CHICO */
/* ========================= */
@media (max-width: 480px) {
    .cpc-wrapper-v2 {
        gap: 16px;
        padding-inline: 14px;
        max-width: 100%;
    }

    .cpc-card-v2 {
        border-radius: 5px;
    }

    .cpc-content-v2 {
        padding: 12px;
        gap: 8px;
    }

    .cpc-title-v2 {
        font-size: 14px;
    }

    .cpc-price-v2 {
        font-size: 15.5px;
    }

    .cpc-button-v2 {
        font-size: 12.5px;
        padding: 9px;
    }
}

/* ========================= */
/* TOUCH FIX */
/* ========================= */
@media (hover: none) {
    .cpc-card-v2:hover {
        transform: none;
        box-shadow: 5px 5px 0 #E1EED7;
    }

    .cpc-card-v2:hover .cpc-image-v2 {
        transform: none;
    }
}