/* ============================================
   Ezofertas - Estilos v2
   Paleta: verde (ahorro/confianza) + acento naranja
   Ligero, compatible con GeneratePress
   ============================================ */

/* ---------- Caja de oferta (post individual) ---------- */
.ezo-deal-box {
    background: #f6faf7;
    border: 1px solid #d7e8dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.ezo-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.ezo-hot {
    background: #fff1e6;
    color: #c2540a;
}

.ezo-basic {
    background: #e7f3ea;
    color: #1e7a3c;
}

.ezo-prices {
    margin: 10px 0 16px;
}

.ezo-price-old {
    text-decoration: line-through;
    color: #8a8a8a;
    font-size: 17px;
    margin-right: 8px;
}

.ezo-price-new {
    color: #1e7a3c;
    font-size: 28px;
    font-weight: 700;
    margin-right: 8px;
}

.ezo-discount {
    background: #1e7a3c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    vertical-align: middle;
}

.ezo-btn {
    display: inline-block;
    background: #f5820b;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ezo-btn:hover {
    background: #d96f05;
    color: #fff;
}

.ezo-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ---------- Grid de ofertas (shortcode / archive) ---------- */
.ezo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ezo-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ezo-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ezo-card a {
    text-decoration: none;
    color: inherit;
}

.ezo-card-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    z-index: 2;
}

.ezo-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.ezo-card-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #333;
    min-height: 40px;
}

.ezo-card-prices .ezo-price-old {
    font-size: 14px;
}

.ezo-card-prices .ezo-price-new {
    font-size: 20px;
}

.ezo-card-prices .ezo-discount {
    font-size: 12px;
    padding: 2px 7px;
    margin-left: 6px;
}

/* ---------- Paginación ---------- */
.ezo-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
}

.ezo-page-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d7e8dc;
    border-radius: 8px;
    background: #fff;
    color: #1e7a3c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ezo-page-btn:hover {
    background: #e7f3ea;
    color: #1e7a3c;
}

.ezo-page-current {
    background: #1e7a3c;
    color: #fff;
    border-color: #1e7a3c;
}

/* ---------- Móvil ---------- */
@media (max-width: 480px) {
    .ezo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ezo-card-img {
        height: 130px;
    }

    .ezo-price-new {
        font-size: 22px;
    }
}

/* ============================================
   v3: Layout 2 columnas estilo single + Modal
   ============================================ */

.ezo-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.ezo-single-left {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ezo-single-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.ezo-single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ezo-single-date {
    color: #999;
    font-size: 13px;
}

.ezo-wa-cta {
    background: #f0f9f1;
    border: 1px solid #cde8d2;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.ezo-wa-pill {
    display: inline-block;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 3px 14px;
    border-radius: 20px;
    text-decoration: none;
}

.ezo-wa-pill:hover {
    background: #1eb455;
}

.ezo-single-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.ezo-store {
    font-weight: 700;
    font-size: 20px;
    color: #333;
    text-transform: lowercase;
}

.ezo-single-price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.ezo-discount-big {
    background: #e5335f;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 6px 14px;
    border-radius: 8px;
}

.ezo-single-price-block .ezo-price-new {
    font-size: 30px;
    display: block;
}

.ezo-single-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.ezo-btn-expired {
    background: #fff;
    border: 1.5px solid #f5820b;
    color: #f5820b;
    font-weight: 600;
    font-size: 15px;
    padding: 11px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ezo-btn-expired:hover {
    background: #fff5eb;
}

/* ---------- Modal ---------- */
.ezo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ezo-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ezo-modal h3 {
    margin: 0 0 8px;
}

.ezo-modal p {
    font-size: 14px;
    color: #666;
}

.ezo-modal input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    margin: 10px 0 14px;
    box-sizing: border-box;
}

.ezo-modal-send {
    width: 100%;
    border: none;
    cursor: pointer;
}

.ezo-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.ezo-modal-msg {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 14px;
}

/* ---------- Móvil: single en 1 columna ---------- */
@media (max-width: 700px) {
    .ezo-single {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ezo-single-actions {
        flex-direction: column-reverse;
    }

    .ezo-single-actions .ezo-btn,
    .ezo-btn-expired {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ---------- Ocultar imagen destacada duplicada del theme en ofertas ---------- */
/* GeneratePress (y la mayoría de themes) muestran la featured image arriba
   del contenido; nuestra plantilla ya la muestra en la columna izquierda. */
.single-ezoferta .featured-image,
.single-ezoferta .post-image,
.single-ezoferta .entry-header img.wp-post-image,
.single-ezoferta .inside-article > .wp-post-image {
    display: none !important;
}

/* ---------- Título H1 más pequeño en ofertas (SEO intacto) ---------- */
.single-ezoferta h1.entry-title {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .single-ezoferta h1.entry-title {
        font-size: 21px;
    }
}
