/* Vesa category archive — extras under product grid
 * Pairs with woocommerce/archive-product.php (related links + FAQ + pagination).
 */

/* ── WooCommerce pagination — full reset of WC defaults ─────
 * Matches WC's `.woocommerce nav.woocommerce-pagination` specificity (0,4,1).
 * Theme stylesheet loads after WC's, so our rules win the cascade.
 */
.woocommerce nav.woocommerce-pagination {
    margin: 40px 0 56px;
    text-align: center;
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    border: 0;
    white-space: normal;
}

.woocommerce nav.woocommerce-pagination ul li {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    float: none;
    overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 2px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
    background: #fff;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
    padding: 0 14px;
    font-size: 18px;
    line-height: 1;
}

.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce nav.woocommerce-pagination ul li a.next:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.dots {
    background: transparent;
    border-color: transparent;
    color: #999;
}

@media (max-width: 600px) {
    .woocommerce nav.woocommerce-pagination {
        margin: 32px 0 40px;
    }

    .woocommerce nav.woocommerce-pagination ul,
    .woocommerce nav.woocommerce-pagination ul.page-numbers {
        gap: 4px;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ── Related categories ──────────────────────────────── */
.category-related-links {
    margin: 32px auto 56px;
    max-width: 1200px;
    padding: 0 16px;
}

.category-related-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.category-related-links__item {
    position: relative;
    padding: 0 18px;
}

.category-related-links__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #d0d0d0;
}

.category-related-links__link {
    color: #444;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color .15s ease;
}

.category-related-links__link:hover {
    color: #2563eb;
}

/* ── FAQ accordion ───────────────────────────────────── */
.category-faq {
    background: #fafafa;
    padding: 64px 16px 80px;
    margin-top: 24px;
}

.category-faq__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.category-faq__title {
    margin: 0 0 36px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #1a1a1a;
}

.category-faq__list {
    display: flex;
    flex-direction: column;
}

.category-faq__item {
    border-bottom: 1px solid #e5e5e5;
}

.category-faq__item:first-child {
    border-top: 1px solid #e5e5e5;
}

.category-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 20px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    transition: color .15s ease;
}

.category-faq__q::-webkit-details-marker {
    display: none;
}

.category-faq__q:hover {
    color: #2563eb;
}

.category-faq__q-text {
    font-size: 24px;
    flex: 1;
    text-align: left;
}

.category-faq__icon {
    display: inline-flex;
    align-items: center;
    color: #555;
    transition: transform .25s ease, color .15s ease;
    flex-shrink: 0;
}

.category-faq__item[open] > .category-faq__q .category-faq__icon {
    transform: rotate(180deg);
    color: #2563eb;
}

.category-faq__a {
    padding: 4px 4px 28px;
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
}

.category-faq__a p:first-child {
    margin-top: 0;
}

.category-faq__a p:last-child {
    margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
    .category-related-links__list {
        gap: 8px 0;
    }

    .category-related-links__item {
        padding: 0 14px;
    }

    .category-faq {
        padding: 48px 16px 60px;
    }

    .category-faq__q {
        font-size: 15px;
        padding: 16px 4px;
    }
}
