/* Existing brand/layout is preserved; repair only headings and local table reflow. */
.ks-rem-h1 { margin-block: 0 1.25rem; }
.ks-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.ks-table-scroll:focus-visible { outline: 2px solid var(--ks-primary, #ff6900); outline-offset: 3px; }
.ks-table-scroll table { margin-bottom: 0; }
.kamashop-order-paused { border-inline-start: 3px solid var(--ks-primary, #ff6900); padding: .75rem 1rem; background: #fff5e9; }

/* FlexSlider briefly expands its strip before it sets each slide's width.
 * Bound each slide to the actual gallery, not to the temporarily 1600% strip. */
.single-product .woocommerce-product-gallery { container-type: inline-size; }
.single-product .woocommerce-product-gallery__image { max-width: 100cqw; }
.single-product .woocommerce-product-gallery__wrapper { display: flex; align-items: flex-start; }
.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image { flex: 0 0 100cqw; }
/* The audited Apcalis gallery's main image plus thumbnail rail fits this square.
 * Reserve it before FlexSlider inserts its controls; don't hide or crop images. */
.single-product.postid-98 .woocommerce-product-gallery { aspect-ratio: 1; }

/* Keep the footer below the initial viewport while the cart block hydrates. */
.woocommerce-cart .wp-block-woocommerce-cart { min-height: calc(100svh - 150px); }
