/* The category title can grow naturally; only its decorative padding shrinks. */
.lg-ui-pack3.tax-product_cat .breadcrumb-wrap .elementor-element.elementor-element-69cbb46 {
    --padding-top: 32px;
    --padding-bottom: 32px;
}

/* This theme stacks the gallery above the summary through 1024px. Keep a
 * square image within the short viewport, without changing the desktop grid.
 * The cap belongs to the gallery so hover zoom retains its actual boundaries.
 */
@media (max-width: 1024px) {
    .lg-ui-pack3.single-product div.product .woocommerce-product-gallery-horizontal {
        --lg-gallery-cap: clamp(16rem, 60vh, 30rem);
        --lg-gallery-cap: clamp(16rem, 60svh, 30rem);
        max-inline-size: min(100%, var(--lg-gallery-cap));
        margin-inline: auto;
    }

    .lg-ui-pack3.single-product div.product .woocommerce-product-gallery-horizontal .woocommerce-product-gallery__image > a > img {
        display: block;
        inline-size: 100%;
        block-size: auto;
        max-block-size: var(--lg-gallery-cap);
        object-fit: contain;
    }

    /* Keep the four existing bottom-navigation labels on one line at 320px.
     * The title link occupies the icon + label area, providing one 44px target. */
    .lg-ui-pack3 .elementor-element.elementor-element-32a9351 > .e-con {
        padding-inline: 4px;
    }

    .lg-ui-pack3 .elementor-element-32a9351 .elementor-icon-box-wrapper {
        display: grid;
        grid-template-areas: "control";
    }

    .lg-ui-pack3 .elementor-element-32a9351 .elementor-icon-box-icon {
        grid-area: control;
        align-self: start;
        margin: 0;
        pointer-events: none;
    }

    .lg-ui-pack3 .elementor-element-32a9351 .elementor-icon-box-content {
        grid-area: control;
        min-inline-size: 0;
    }

    .lg-ui-pack3 .elementor-element-32a9351 .elementor-icon-box-title {
        display: block;
    }

    .lg-ui-pack3 .elementor-element-32a9351 .elementor-icon-box-title a {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        min-block-size: var(--lg-target-size, 44px);
        padding-block-start: 24px;
        white-space: nowrap;
    }

    .lg-ui-pack3 .elementor-element-32a9351 .button-search-popup {
        min-block-size: var(--lg-target-size, 44px);
    }
}
