/* BOLLU — Editorial Pagination v2.0
   No external fonts or icons. Typography is inherited from Goya/BOLLU. */

.bollu-native-pagination {
    display: none !important;
}

.bollu-pagination-ui {
    --pg-ink: #171717;
    --pg-muted: rgba(23,23,23,.44);
    --pg-line: rgba(23,23,23,.19);
    --pg-accent: #c4a06b;
    width: 100%;
    margin: 60px auto 28px;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--pg-ink);
}

.bollu-pg-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.bollu-pg-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bollu-pg-num,
.bollu-pg-dots {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pg-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .035em;
    text-decoration: none !important;
    box-shadow: none;
    transition: color .2s ease, opacity .2s ease;
}

.bollu-pg-num::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--pg-accent);
    transform: translateX(-50%);
    transition: width .2s ease, height .2s ease, opacity .2s ease;
    opacity: 0;
}

.bollu-pg-num:hover {
    color: var(--pg-ink);
}

.bollu-pg-num.is-current {
    color: var(--pg-ink);
    font-weight: 500;
}

.bollu-pg-num.is-current::after {
    width: 5px;
    height: 5px;
    opacity: 1;
}

.bollu-pg-dots {
    width: 40px;
    color: rgba(23,23,23,.28);
    letter-spacing: .14em;
}

.bollu-pg-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-decoration: none !important;
    color: var(--pg-ink);
    opacity: .82;
    transition: opacity .2s ease, transform .2s ease;
}

/* Stable single-piece chevron: no split pseudo-elements. */
.bollu-pg-arrow > span {
    display: block;
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    box-sizing: border-box;
}

.bollu-pg-next > span {
    transform: translate(-2px, -1px) rotate(45deg);
}

.bollu-pg-prev > span {
    transform: translate(2px, -1px) rotate(-135deg);
}

.bollu-pg-arrow:not(.is-disabled):hover {
    opacity: 1;
}

.bollu-pg-prev:not(.is-disabled):hover { transform: translateX(-1px); }
.bollu-pg-next:not(.is-disabled):hover { transform: translateX(1px); }
.bollu-pg-arrow.is-disabled { opacity: .18; pointer-events: none; }

.bollu-pg-mobile {
    display: none;
}

@media (max-width: 767px) {
    .bollu-pagination-ui {
        margin: 38px auto 20px;
        padding: 0 20px;
    }

    .bollu-pg-desktop {
        display: none;
    }

    .bollu-pg-mobile {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        width: min(100%, 280px);
        height: 52px;
        margin: 0 auto;
    }

    .bollu-pg-mobile .bollu-pg-arrow {
        width: 48px;
        height: 48px;
    }

    .bollu-pg-mobile .bollu-pg-arrow > span {
        width: 11px;
        height: 11px;
    }

    .bollu-pg-mobile .bollu-pg-next > span {
        transform: translate(-2px, -1px) rotate(45deg);
    }

    .bollu-pg-mobile .bollu-pg-prev > span {
        transform: translate(2px, -1px) rotate(-135deg);
    }

    .bollu-pg-count {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 13px;
        min-width: 0;
        font: inherit;
        font-size: 12px;
        line-height: 1;
        letter-spacing: .1em;
    }

    .bollu-pg-current {
        color: var(--pg-ink);
        font-weight: 500;
    }

    .bollu-pg-total {
        color: var(--pg-muted);
    }

    .bollu-pg-sep {
        display: block;
        width: 34px;
        height: 1px;
        background: var(--pg-line);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bollu-pagination-ui * { transition: none !important; }
}

/* v2.1 mobile direct page picker */
@media (max-width: 767px) {
    .bollu-pg-mobile {
        grid-template-columns: 48px minmax(118px, 1fr) 48px;
        width: min(100%, 300px);
        position: relative;
        overflow: visible;
    }

    .bollu-pg-picker-wrap {
        position: relative;
        display: flex;
        justify-content: center;
        min-width: 0;
        z-index: 3;
    }

    .bollu-pg-picker-toggle {
        appearance: none;
        -webkit-appearance: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 112px;
        height: 44px;
        padding: 0 14px;
        border: 1px solid rgba(23,23,23,.18);
        border-radius: 999px;
        background: transparent;
        color: var(--pg-ink);
        font: inherit;
        font-size: 13px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: .08em;
        box-shadow: none;
        cursor: pointer;
        transition: border-color .2s ease, background-color .2s ease;
    }

    .bollu-pg-picker-wrap.is-open .bollu-pg-picker-toggle {
        border-color: var(--pg-line);
        background: rgba(255,255,255,.72);
    }

    .bollu-pg-slash {
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--pg-accent);
        font-size: 0;
        line-height: 0;
        transform: translateY(0);
        opacity: .95;
    }

    .bollu-pg-chevron {
        position: relative;
        width: 7px;
        height: 7px;
        margin-left: 2px;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        opacity: .55;
        transition: transform .2s ease;
    }

    .bollu-pg-picker-wrap.is-open .bollu-pg-chevron {
        transform: translateY(2px) rotate(-135deg);
    }

    .bollu-pg-picker {
        position: absolute;
        left: 50%;
        bottom: calc(100% + 12px);
        width: min(286px, calc(100vw - 28px));
        max-height: min(360px, 58vh);
        padding: 18px 16px 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-50%);
        box-sizing: border-box;
        border: 1px solid rgba(23,23,23,.12);
        background: rgba(250,249,246,.98);
        box-shadow: 0 18px 50px rgba(0,0,0,.10);
    }

    .bollu-pg-picker[hidden] { display: none !important; }

    .bollu-pg-picker-title {
        margin: 0 0 13px;
        padding: 0 3px 12px;
        border-bottom: 1px solid rgba(23,23,23,.10);
        color: rgba(23,23,23,.42);
        font: inherit;
        font-size: 9px;
        line-height: 1;
        letter-spacing: .22em;
    }

    .bollu-pg-picker-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .bollu-pg-picker-page {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 42px;
        border: 0;
        border-radius: 50%;
        color: rgba(23,23,23,.58);
        font: inherit;
        font-size: 12px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: .06em;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .bollu-pg-picker-page::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 7px;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: var(--pg-accent);
        transform: translateX(-50%);
        transition: width .2s ease, height .2s ease, opacity .2s ease;
        opacity: 0;
    }

    .bollu-pg-picker-page.is-current {
        color: var(--pg-ink);
        font-weight: 500;
    }

    .bollu-pg-picker-page.is-current::after {
        width: 5px;
        height: 5px;
        opacity: 1;
    }

    .bollu-pg-picker-page.is-unavailable {
        opacity: .28;
    }

    /* Old v2.0 mobile counter is no longer used. */
    .bollu-pg-count { display: none !important; }
}
