/* =========================================================
   Página de Ofertas — Hogarazo Oficial
   ========================================================= */
body.hz-page-ofertas {
    background: #f7faf8;
}

body.hz-page-ofertas .hz-page-hero--offers {
    min-height: 330px;
    background:
        radial-gradient(circle at 78% 24%, rgba(255, 196, 0, .78), transparent 27%),
        radial-gradient(circle at 94% 78%, rgba(8, 76, 46, .20), transparent 28%),
        linear-gradient(120deg, #fff9dc 0%, #ffe77f 56%, #eff6e9 100%);
}

body.hz-page-ofertas .hz-page-hero--offers h1 {
    max-width: 860px;
    color: #781414;
}

.hz-offers-hub {
    --hz-offer-red: #15974d;
    --hz-offer-yellow: #ffc400;
    --hz-offer-green: #084c2e;
    --hz-offer-ink: #17231d;
    --hz-offer-muted: #68776f;
    --hz-offer-border: #dce7e0;
}

.hz-offers-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    margin-bottom: 22px;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(8, 76, 46, .10);
    border-radius: 26px;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 196, 0, .32), transparent 26%),
        linear-gradient(135deg, #073e28, #09613e);
    color: #fff;
    box-shadow: 0 22px 58px rgba(3, 47, 29, .16);
}

.hz-offers-summary .hz-kicker {
    color: #ffe483;
}

.hz-offers-summary h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hz-offers-summary__copy > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.hz-offers-summary__stat {
    display: grid;
    place-items: center;
    width: 170px;
    aspect-ratio: 1;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    text-align: center;
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, .04);
}

.hz-offers-summary__stat strong {
    display: block;
    color: var(--hz-offer-yellow);
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: .9;
}

.hz-offers-summary__stat span {
    max-width: 120px;
    color: #fff;
    font-size: .8rem;
    font-weight: 850;
    line-height: 1.3;
    text-transform: uppercase;
}

.hz-offers-nav {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    padding: 12px;
    border: 1px solid var(--hz-offer-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 38px rgba(3, 47, 29, .08);
    backdrop-filter: blur(14px);
}

.hz-offers-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--hz-offer-green);
    font-size: .86rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.hz-offers-nav a:hover {
    transform: translateY(-2px);
    background: var(--hz-offer-green);
    color: #fff;
}

.hz-offers-editor-content {
    margin-bottom: 34px;
}

.hz-offer-section {
    scroll-margin-top: 110px;
    margin-top: 34px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--hz-offer-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(3, 47, 29, .065);
}

.hz-offer-section--sale {
    border-top: 6px solid var(--hz-offer-red);
}

.hz-offer-section--stock {
    border-top: 6px solid var(--hz-offer-yellow);
}

.hz-offer-section--popular {
    border-top: 6px solid var(--hz-offer-green);
}

.hz-offer-section--categories {
    background: linear-gradient(145deg, #fff, #f3f8f5);
}

.hz-offer-section__heading {
    margin-bottom: 28px;
}

.hz-offer-section__heading h2 {
    margin: 0;
    color: var(--hz-offer-ink);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -.04em;
}

.hz-offer-section__heading p:not(.hz-kicker) {
    max-width: 670px;
    margin: 10px 0 0;
    color: var(--hz-offer-muted);
    line-height: 1.55;
}

.hz-offer-section__link {
    color: var(--hz-offer-red);
    font-weight: 850;
    text-decoration: none;
}

/* Tarjetas WooCommerce dentro de Ofertas. */
.hz-offers-page .hz-offer-products ul.products,
.hz-offers-page .hz-offer-products .products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hz-offers-page .hz-offer-products ul.products::before,
.hz-offers-page .hz-offer-products ul.products::after {
    display: none !important;
}

.hz-offers-page .hz-offer-products ul.products li.product {
    position: relative;
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 14px 14px 16px !important;
    overflow: hidden;
    border: 1px solid var(--hz-offer-border) !important;
    border-radius: 19px !important;
    background: #fff !important;
    box-shadow: 0 8px 26px rgba(3, 47, 29, .055) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hz-offers-page .hz-offer-products ul.products li.product:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 76, 46, .28) !important;
    box-shadow: 0 20px 48px rgba(3, 47, 29, .13) !important;
}

.hz-offers-page .hz-offer-products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 0 16px !important;
    border-radius: 14px;
    background: linear-gradient(145deg, #f3f7f4, #fbfcfb);
    transition: transform .3s ease;
}

.hz-offers-page .hz-offer-products li.product:hover img {
    transform: scale(1.025);
}

.hz-offers-page .hz-offer-products .woocommerce-loop-product__title {
    min-height: 2.8em;
    margin: 8px 2px 10px !important;
    color: var(--hz-offer-ink);
    font-size: 1rem !important;
    font-weight: 800;
    line-height: 1.4;
}

.hz-offers-page .hz-offer-products .hz-product-category {
    display: block;
    margin: 0 2px 5px;
    color: var(--hz-offer-green);
    font-size: .69rem;
    font-weight: 950;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.hz-offers-page .hz-offer-products .price {
    display: block;
    margin: auto 2px 10px !important;
    color: var(--hz-offer-green) !important;
    font-size: 1.08rem !important;
    font-weight: 950 !important;
}

.hz-offers-page .hz-offer-products .price del {
    color: #8b9690;
    font-size: .82em;
    opacity: 1;
}

.hz-offers-page .hz-offer-products .price ins {
    color: var(--hz-offer-red);
    text-decoration: none;
}

.hz-offers-page .hz-offer-products .button {
    width: 100%;
    min-height: 45px;
    margin-top: 8px !important;
    border-radius: 11px !important;
    background: var(--hz-offer-red) !important;
    color: #fff !important;
    font-weight: 850 !important;
    text-align: center;
}

.hz-offers-page .hz-offer-products .onsale {
    top: 24px !important;
    left: 24px !important;
    right: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    background: var(--hz-offer-red) !important;
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.hz-offer-empty {
    padding: 34px;
    border: 1px dashed #cbd9d1;
    border-radius: 18px;
    background: #f7faf8;
    text-align: center;
}

.hz-offer-empty h3 {
    margin: 0 0 8px;
    color: var(--hz-offer-ink);
}

.hz-offer-empty p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--hz-offer-muted);
}

.hz-offer-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hz-offer-category {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--hz-offer-border);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(3, 47, 29, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hz-offer-category:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 76, 46, .3);
    color: inherit;
    box-shadow: 0 16px 38px rgba(3, 47, 29, .11);
}

.hz-offer-category__media {
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #edf5f0;
}

.hz-offer-category__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hz-offer-category__fallback {
    color: var(--hz-offer-green);
    font-size: 2rem;
    font-weight: 950;
}

.hz-offer-category__body {
    min-width: 0;
}

.hz-offer-category__body strong,
.hz-offer-category__body span {
    display: block;
}

.hz-offer-category__body strong {
    overflow: hidden;
    color: var(--hz-offer-ink);
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hz-offer-category__body span {
    margin-top: 4px;
    color: var(--hz-offer-muted);
    font-size: .82rem;
}

.hz-offer-category__arrow {
    color: var(--hz-offer-red);
    font-size: 1.45rem;
    font-weight: 900;
}

@media (max-width: 1024px) {
    .hz-offers-page .hz-offer-products ul.products,
    .hz-offers-page .hz-offer-products .products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .hz-offer-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.hz-page-ofertas .hz-page-hero--offers {
        min-height: 250px;
    }

    .hz-offers-summary {
        grid-template-columns: 1fr;
    }

    .hz-offers-summary__stat {
        width: 136px;
        justify-self: start;
    }

    .hz-offers-nav {
        position: static;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hz-offers-nav a {
        flex: 0 0 auto;
    }

    .hz-offer-section {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .hz-offers-page .hz-offer-products ul.products,
    .hz-offers-page .hz-offer-products .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .hz-offer-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .hz-offers-page .hz-offer-products ul.products,
    .hz-offers-page .hz-offer-products .products {
        grid-template-columns: 1fr !important;
    }
}

/* v7.1.11 — Ofertas usa la paginación unificada del tema. */
.hz-offers-pagination {
    margin-bottom: 4px;
}
