/* Atope B2B — product image layout for 1000×1000 square assets */

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    object-fit: cover;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

.woocommerce ul.products li.product a img {
    background: #f7f7f7;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    background: #f7f7f7;
}

/* B2B restriction messages */
.atope-b2b-message {
    margin: 0.5em 0;
    padding: 0;
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.45;
    border: none;
    background: transparent;
}

.atope-b2b-register-btn {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.7rem 1.35rem;
    background: #111;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid #111;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.atope-b2b-register-btn:hover,
.atope-b2b-register-btn:focus {
    background: #333;
    border-color: #333;
    color: #fff !important;
    text-decoration: none !important;
}

/* Inside .price — theme often forces bold */
.woocommerce ul.products li.product .price .atope-b2b-message,
.woocommerce div.product p.price .atope-b2b-message,
.woocommerce .related.products .price .atope-b2b-message {
    display: block;
    font-weight: 400;
    font-size: 0.78em;
    line-height: 1.35;
    padding: 0;
    border: none;
    background: transparent;
    margin: 0.35em 0 0;
}

.woocommerce ul.products li.product .price .atope-b2b-register-btn,
.woocommerce div.product p.price .atope-b2b-register-btn,
.woocommerce .related.products .price .atope-b2b-register-btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

.woocommerce div.product p.price .atope-b2b-message {
    font-size: 0.95em;
    margin: 0;
}

.woocommerce div.product p.price .atope-b2b-register-btn {
    font-size: 0.92rem;
    padding: 0.75rem 1.5rem;
}

.atope-b2b-message--pending {
    padding: 0.65em 0.85em;
    border-left: 3px solid #b26a00;
    background: #f9f9f9;
}

/* Shop archive — center pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    width: 100%;
    margin: 2rem auto 1rem;
    float: none;
    clear: both;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    float: none;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
    float: none;
    display: inline-block;
    margin: 0;
    border: none;
    background: transparent;
}