/* Shared frame for square product photos prepared from the originals. */
body #page .woocommerce-loop-product__image {
    overflow: hidden;
    border: 1px solid rgba(84, 39, 68, .14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(57, 39, 51, .06);
}
body #page .woocommerce-loop-product__image img {
    display: block;
    margin: 0;
    padding: 0;
    background: #fff;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
}
body #page .woocommerce-loop-product__info {
    padding: 16px 0 0;
    text-align: left;
}

/* Swiper owns slide widths; grid layouts must not override its track. */
body #page .product-grid--slider ul.products.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
}
body #page .product-grid--slider ul.products::before,
body #page .product-grid--slider ul.products::after { display: none; }
body #page .product-grid--slider ul.products li.product {
    flex-shrink: 0;
    height: auto;
    float: none;
}
body #page .product-grid--slider .product-grid__swiper { padding-bottom: 64px; }
body #page .product-grid--slider :is(.swiper-button-next, .swiper-button-prev) {
    position: absolute !important;
    top: auto !important;
    bottom: 0;
    left: auto !important;
    right: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px !important;
    z-index: 2;
}
body #page .product-grid--slider .swiper-button-prev { right: 56px; }
body #page .product-grid--slider .swiper-pagination { width: calc(100% - 220px) !important; }
body #page .product-grid--slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border: 1px solid #542744;
    border-radius: 50%;
    background: #fff1d9;
}
body #page .product-grid--slider .swiper-pagination-bullet-active { background: #542744; }
@media (max-width: 600px) {
    body #page .product-grid--slider .swiper-pagination {
        width: calc(100% - 120px) !important;
        left: 0 !important;
        transform: none;
        text-align: left;
    }
}
