/* Custom pagination styling, consistent with the site's theme (.tf-pagination-list) */
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-container .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-container .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background-color: var(--white);
    color: var(--main);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}

.pagination-container .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: var(--main);
    color: var(--white);
    border-color: var(--main);
}

.pagination-container .page-item.active .page-link {
    background-color: var(--main);
    color: var(--white);
    border-color: var(--main);
    box-shadow: rgba(0, 0, 0, .2) 1px 1px 10px 0;
}

.pagination-container .page-item.disabled .page-link {
    color: var(--text-2);
    background-color: var(--bg-2);
    border-color: var(--line);
    cursor: not-allowed;
    pointer-events: none;
}

/* Product page: long product names shouldn't take up half the screen */
.tf-product-info-title h1 {
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.35;
    word-break: break-word;
}

/* Product page: keep gallery slides a consistent square size regardless of image load order */
.tf-product-media-main .swiper-slide .item {
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 600px;
}

.tf-product-media-thumbs .swiper-slide .item {
    aspect-ratio: 1 / 1;
    height: auto;
}
