/**
 * Atope Almacén — pagination, sticky footer, unified black footer bar.
 */

/* ── Pagination: active page must stay readable ── */
.woocommerce nav.woocommerce-pagination ul.page-numbers a,
.woocommerce nav.woocommerce-pagination ul.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #111;
    color: #111;
    background: #fff;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers a:hover {
    background: #f3f4f6;
    color: #111;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers span.current,
.woocommerce nav.woocommerce-pagination ul.page-numbers a.current {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* ── Page shell: footer flush to viewport bottom ── */
html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
}

#page.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

#content.site-content {
    flex: 1 0 auto;
}

.footer-banner {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.footer-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.site-footer {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: #111 !important;
    border: 0;
}

.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

/* ── Unified black footer (menu + legal + copyright) ── */
.atope-unified-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #111;
    color: #fff;
}

.atope-unified-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem 1.15rem;
    text-align: center;
}

.atope-unified-footer__section {
    margin: 0;
}

.atope-unified-footer__menu,
.atope-unified-footer__legal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.atope-unified-footer__menu > li,
.atope-unified-footer__legal > li {
    margin: 0;
    padding: 0;
}

.atope-unified-footer__menu .menu-link,
.atope-unified-footer__legal a {
    display: inline-block;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.atope-unified-footer__menu .menu-link:hover,
.atope-unified-footer__legal a:hover {
    color: #e5e7eb !important;
    text-decoration: underline;
}

.atope-unified-footer__menu .current-menu-item .menu-link {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.atope-unified-footer__section--legal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.atope-unified-footer__legal a {
    font-size: 0.88rem;
    font-weight: 400;
}

.atope-unified-footer__copyright {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.atope-unified-footer__copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.8rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .atope-unified-footer__inner {
        padding: 1.15rem 1rem 1rem;
    }

    .atope-unified-footer__menu,
    .atope-unified-footer__legal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 1.1rem;
    }

    .atope-unified-footer__menu .menu-link,
    .atope-unified-footer__legal a {
        font-size: 0.86rem;
    }
}

@media (max-width: 480px) {
    .atope-unified-footer__menu,
    .atope-unified-footer__legal {
        gap: 0.35rem 0.85rem;
    }
}
