.mwp-offers-section {
    --mwp-offer-navy: #173f5f;
    --mwp-offer-blue: #1f6fa8;
    --mwp-offer-text: #17202a;
    --mwp-offer-muted: #6b7280;
    --mwp-offer-border: #e3e8ee;
    width: 100%;
    padding: 38px 0;
}
.mwp-offers-heading { margin: 0 0 24px; }
.mwp-offers-heading h2 {
    position: relative;
    margin: 0;
    padding: 0 0 14px;
    color: #1f2937;
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    border-bottom: 1px solid #e6e9ed;
}
.mwp-offers-heading h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--mwp-offer-navy);
}
.mwp-offers-heading p { margin: 12px 0 0; color: var(--mwp-offer-muted); font-size: 15px; }
.mwp-offers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mwp-offer-card { min-width: 0; }
.mwp-offer-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 24px 24px 20px;
    overflow: hidden;
    color: var(--mwp-offer-text) !important;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid var(--mwp-offer-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 39, 58, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mwp-offer-card__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mwp-offer-blue);
}
.mwp-offer-card__link:hover {
    transform: translateY(-3px);
    border-color: #c8d5df;
    box-shadow: 0 12px 28px rgba(23, 63, 95, .11);
}
.mwp-offer-card__top { display: flex; align-items: center; margin-bottom: 22px; }
.mwp-offer-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #167346;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.mwp-offer-card__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a565;
    box-shadow: 0 0 0 3px #e7f7ee;
}
.mwp-offer-card h3 {
    margin: 0;
    color: #18212b;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.015em;
}
.mwp-offer-card__dates { margin: 11px 0 22px; color: var(--mwp-offer-muted); font-size: 12.5px; font-weight: 600; }
.mwp-offer-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}
.mwp-offer-card__action { display: inline-flex; align-items: center; gap: 5px; color: var(--mwp-offer-blue); }
.mwp-offer-card__action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.mwp-offer-card__link:hover .mwp-offer-card__action svg { transform: translateX(3px); }
.mwp-offers-empty { padding: 22px 24px; color: #59616d; background: #f8fafc; border: 1px solid var(--mwp-offer-border); border-radius: 13px; }
.mwp-offer-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--mwp-offer-navy) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }
.mwp-offer-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mwp-offer-detail__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; padding: 28px 30px; color: #fff; background: var(--mwp-offer-navy); border-radius: 17px; }
.mwp-offer-detail__header h2 { margin: 0; color: #fff; font-size: clamp(25px, 3vw, 38px); font-weight: 850; line-height: 1.1; letter-spacing: -.03em; }
.mwp-offer-detail__header p { max-width: 720px; margin: 10px 0 0; color: rgba(255,255,255,.76); }
.mwp-offer-detail__validity { flex: 0 0 auto; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); }
.mwp-offer-detail__validity span, .mwp-offer-detail__validity strong { display: block; }
.mwp-offer-detail__validity span { margin-bottom: 4px; color: #a7f3d0; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mwp-offer-detail__validity strong { color: #fff; font-size: 13px; }
.mwp-offer-products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.mwp-offer-product-card { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--mwp-offer-border); border-radius: 15px; box-shadow: 0 3px 12px rgba(20,27,38,.045); }
.mwp-offer-product-card__media { position: relative; height: 205px; margin: 8px 8px 0; overflow: hidden; background: #f7f8fa; border-radius: 10px; }
.mwp-offer-product-card__media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 13px; }
.mwp-offer-product-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mwp-offer-product-card__badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; text-transform: uppercase; background: #d92d20; border-radius: 999px; }
.mwp-offer-product-card__body { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.mwp-offer-product-card__code { margin-bottom: 5px; overflow: hidden; color: #707782; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.mwp-offer-product-card h3 { display: -webkit-box; min-height: 58px; margin: 0; overflow: hidden; color: #17191d; font-size: 14px; font-weight: 750; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mwp-offer-product-card h3 a { color: inherit; text-decoration: none; }
.mwp-offer-product-card__price { display: flex; align-items: baseline; gap: 7px; margin: 10px 0 9px; }
.mwp-offer-product-card__price span { color: #727985; font-size: 11px; font-weight: 650; }
.mwp-offer-product-card__price strong { color: #d92d20; font-size: 18px; font-weight: 850; }
.mwp-offer-tiers { margin-bottom: 12px; overflow: hidden; border: 1px solid #edf0f3; border-radius: 9px; }
.mwp-offer-tier { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; color: #5b6470; font-size: 10.5px; }
.mwp-offer-tier + .mwp-offer-tier { border-top: 1px solid #edf0f3; }
.mwp-offer-tier strong { color: #20242a; font-size: 11px; }
.mwp-offer-product-card__actions { margin-top: auto; }
.mwp-offer-cart-control { display: grid; grid-template-columns: 34px minmax(38px,1fr) 34px 42px; gap: 5px; }
.mwp-offer-qty-btn, .mwp-offer-qty, .mwp-offer-add-cart { box-sizing: border-box; height: 38px; min-height: 38px; margin: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
.mwp-offer-qty-btn, .mwp-offer-qty { border: 1px solid #d9dde4 !important; background: #fff !important; color: #20242a !important; }
.mwp-offer-qty-btn { display: flex; align-items: center; justify-content: center; padding: 0 !important; font-size: 18px; cursor: pointer; }
.mwp-offer-qty { width: 100% !important; padding: 0 4px !important; text-align: center; font-size: 13px; font-weight: 700; appearance: textfield; }
.mwp-offer-qty::-webkit-inner-spin-button, .mwp-offer-qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.mwp-offer-add-cart { display: flex !important; align-items: center; justify-content: center; padding: 0 !important; color: #fff !important; background: #0d6efd !important; border: 1px solid #0d6efd !important; text-decoration: none !important; }
.mwp-offer-add-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mwp-offer-view-product { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px; color: #fff !important; font-size: 12px; font-weight: 800; background: #0d6efd; border-radius: 8px; text-decoration: none !important; }
.mwp-offer-product-unavailable { display: block; padding: 9px 10px; color: #7a2020; font-size: 11px; font-weight: 700; background: #fff5f5; border-radius: 8px; }
@media (max-width: 1199px) { .mwp-offer-products-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 991px) { .mwp-offers-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .mwp-offer-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .mwp-offer-detail__header { align-items: flex-start; flex-direction: column; } .mwp-offer-detail__validity { padding: 0; border: 0; } }
@media (max-width: 767px) { .mwp-offer-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 575px) { .mwp-offers-section { padding: 26px 0; } .mwp-offers-grid, .mwp-offer-products-grid { grid-template-columns: 1fr; } .mwp-offer-detail__header { padding: 23px 21px; } .mwp-offer-card__link { min-height: 205px; } }


/* Paginación de artículos: estilo circular como el catálogo de WooCommerce. */
.mwp-offer-pagination {
    clear: both;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 38px 0 0 !important;
    padding: 0 !important;
    text-align: center;
}

.mwp-offer-pagination ul.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
}

.mwp-offer-pagination ul.page-numbers li {
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.mwp-offer-pagination ul.page-numbers li .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    color: #003fbb !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1 !important;
    text-decoration: none !important;
    background: #fff !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.mwp-offer-pagination ul.page-numbers li a.page-numbers:hover,
.mwp-offer-pagination ul.page-numbers li a.page-numbers:focus {
    color: #fff !important;
    background: #1677ee !important;
    border-color: #1677ee !important;
    outline: none;
}

.mwp-offer-pagination ul.page-numbers li .page-numbers.current {
    color: #fff !important;
    font-weight: 700;
    background: #1677ee !important;
    border-color: #1677ee !important;
}

.mwp-offer-pagination ul.page-numbers li .page-numbers.dots {
    color: #6b7280 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.mwp-offer-pagination ul.page-numbers li .prev,
.mwp-offer-pagination ul.page-numbers li .next {
    font-size: 15px;
}

@media (max-width: 575px) {
    .mwp-offer-pagination {
        margin-top: 28px !important;
    }
    .mwp-offer-pagination ul.page-numbers {
        gap: 7px;
    }
    .mwp-offer-pagination ul.page-numbers li .page-numbers {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        font-size: 13px;
    }
}


/* WooCommerce inserta automáticamente un enlace "Ver carrito" después del AJAX.
   En estas tarjetas se oculta porque rompe la cuadrícula y el propio icono sigue operativo. */
.mwp-offer-product-card .added_to_cart.wc-forward {
    display: none !important;
}
