/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Batch 3T: compact only the existing mobile Footer rows. */
@media (max-width: 689.98px) {
    #footer.ct-footer[data-id="type-1"] > [data-row="top"] > .ct-container {
        --container-spacing: 20px;
        row-gap: 0;
    }

    #footer.ct-footer[data-id="type-1"] > [data-row="middle"] > .ct-container {
        --container-spacing: 24px;
        row-gap: 30px;
    }

    #footer.ct-footer[data-id="type-1"] > [data-row="bottom"] > .ct-container {
        --container-spacing: 16px;
        row-gap: 0;
    }
}

/* S50: keep the native Footer layout consistent with older Blocksy CSS caches. */
@media (min-width: 1000px) {
    #footer:has(.lrunnro-footer-company) > [data-row="middle"] > .ct-container {
        --grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#footer:has(.lrunnro-footer-company) > [data-row="bottom"] > .ct-container {
    --grid-template-columns: minmax(0, 1fr);
}

#footer .lrunnro-footer-company {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
}

#footer:has(.lrunnro-footer-company) > [data-row="middle"] .wp-block-list > li:not(:has(> a)) {
    margin: 0;
    list-style: none;
}

/* Batch 4E: compact the mobile size-to-add-to-cart spacing, preserving Woo state. */
@media (max-width: 689.98px) {
    body.single-product .entry-summary form.variations_form .variations {
        margin-bottom: 12px;
    }

    body.single-product .entry-summary .single_variation .stock {
        margin-bottom: 8px;
    }
}

/* Batch 4H: About typography only; no storefront layout selectors. */
.page-id-16 .lrunnro-about {
    max-width: 960px;
    margin-inline: auto;
    padding-block: clamp(32px, 5vw, 64px);
}
.page-id-16 .lrunnro-about h1 { margin-block: 0 24px; }
.page-id-16 .lrunnro-about h2 { margin-block: 40px 16px; font-size: clamp(24px, 3vw, 30px); }
.page-id-16 .lrunnro-about > * { max-width: 100%; }
.page-id-16 .lrunnro-about a { overflow-wrap: anywhere; }

/* Homepage catalog card border. The overlay leaves the native card dimensions intact. */
.home main .woocommerce ul.products[data-products="type-2"] > li.product {
    box-shadow: 0 8px 15px rgba(36, 50, 46, .14), 0 2px 4px rgba(36, 50, 46, .08);
}

.home main .woocommerce ul.products[data-products="type-2"] > li.product::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(160deg, #edf1f0 0%, #c5cfcd 45%, #8c9f9a 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 3;
    pointer-events: none;
}
