/* Figma's hero, intro and this category section all sit at the same
   x=115 (8.4% of the 1366px canvas) left edge. An earlier pass here
   centered this section instead (Bootstrap-style, symmetric margins)
   because left-anchoring it with a hard 1136px cap on the card row left
   a large, unbalanced gap on the right at wide windows. This version
   keeps the left edge locked to the hero/intro's 8.4% (so the three
   titles measure to the same x at any width — QA'd and confirmed) but
   drops the 1136px cap in favor of a matching 8.4% right edge instead,
   so the gap is symmetric rather than one-sided: the row no longer
   reads as "stuck to the left", it's just a narrower centered box than
   Bootstrap's default container would give it. */
@media (min-width: 769px) {
    .product-category-grid-two.cat-grid-align-left .container {
        max-width: none;
        width: 100%;
        margin-left: 0;
        padding-left: 8.4%;
        padding-right: 8.4%;
    }

    .product-category-grid-two.cat-grid-align-left .categories {
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* cat-grid-two-wide.css caps this at 1136px so it matches Figma
           when centered inside Bootstrap's default container — here the
           container itself is already narrowed to the 8.4%/8.4% box, so
           capping again on top of that just recreates the same
           stuck-left-with-a-gap look this file exists to avoid. */
        max-width: none !important;
    }
}

/* Side-by-side at mobile's 47%/47% split left these rectangular (not
   square) cards too cramped to read well. Stacked full-width, one per
   row, reads better at this width — scoped to this page's instance only. */
@media (max-width: 768px) {
    .product-category-grid-two.cat-grid-align-left .categories .card-wrapper {
        width: 100% !important;
    }

    /* The card-wrapper above was widened to 100%, but the card inside it
       (.card-small-desing-two) kept the base stylesheet's fixed 368px
       square-card width (only overridden back to 100% for >=769px in
       product-category-grid-two-wide.css) — so the actual visible card
       stayed a narrow 368px island inside its now-full-width wrapper,
       reading as "stuck to the left" with dead space on the right. */
    .product-category-grid-two.cat-grid-align-left .categories .card-small-desing-two {
        width: 100% !important;
    }

    /* Same 8.4% left edge as hero/intro on mobile too, matching what
       QA measured as a 40px spread between the three titles there. */
    .product-category-grid-two.cat-grid-align-left .container {
        max-width: none;
        width: 100%;
        margin-left: 0;
        padding-left: 8.4%;
        padding-right: 8.4%;
    }

    /* product-category-grid-two.css's own mobile rule zeroes this card's
       margin (".card-content{margin:auto 0 0 0!important}") — written for
       its other callers' button-row layout, where the button pins itself
       to the edges. This page's cards have no button, just a title, so
       zeroing the margin jammed the title straight into the rounded
       corner. Restored to the same 24px/24px the desktop version uses
       (card-content rule above), scoped to this page only since the
       other 3 pages using this block may rely on the flush layout. */
    .product-category-grid-two.cat-grid-align-left .card-small-desing-two .card-content {
        margin: auto 24px 24px 24px !important;
    }
}
