/* blocks_runs_on_shopify — Figma node 1434:11036.

   Mirror image of blocks_controlled_overselling: 2/5 content column on
   the LEFT, 3/5 horizontally-scrolling card mosaic on the RIGHT that
   bleeds off the viewport's right edge. */

.blocks-runs-on-shopify {
    position: relative;
    display: grid;
    /* `minmax(0, 1fr)` not bare 1fr — see flexible-charging for why
       (bare 1fr lets the track grow past viewport on mobile because
       of children with `width: 100vw` or `text-wrap: balance`). */
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1700px;
    margin: 0 auto;
    padding: 80px 24px;
    box-sizing: border-box;
    /* No overflow clip on the section — cards' rightward overflow needs
       to bleed past the section into the page background, exactly like
       blocks_controlled_overselling does on the left side. */
}

/* Decorative cropper bleeding off the RIGHT viewport edge. */
.bros__cropper {
    position: absolute;
    bottom: -120px;
    right: calc(50% - 50vw);
    width: 446px;
    height: auto;
    transform: translateX(40%);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
@media (max-width: 1279px) {
    .bros__cropper {
        transform: translateX(60%);
    }
}
@media (max-width: 1023px) {
    .bros__cropper {
        width: 300px;
        transform: translateX(65%);
    }
}
@media (max-width: 767px) {
    .bros__cropper {
        display: none;
    }
}

@media (max-width: 1023px) {
    /* Mobile: stacked, content above. Cards row breaks out to viewport
       width and scrolls horizontally; the rightmost card bleeds past
       the viewport right edge (clipped by .site's overflow-x: hidden). */
    .blocks-runs-on-shopify {
        grid-template-areas:
            "left"
            "cards";
    }
    .bros__col-left {
        grid-area: left;
        padding: 0;
        box-sizing: border-box;
        min-width: 0;
    }
    .bros__cards {
        grid-area: cards;
        width: 100vw;
        /* margin-LEFT (not -right) is what actually pulls the element box
           back to the viewport-left edge; margin-right would only affect
           the next sibling. With section padding-left of 24px, this
           resolves to -24px and the element spans 0 → 100vw. */
        margin-left: calc(50% - 50vw);
        padding-left: 24px;
        box-sizing: border-box;
        min-width: 0;
    }
}

@media (min-width: 1024px) {
    .blocks-runs-on-shopify {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 60px;
        padding: 120px 32px;
    }
    /* Cards row spans the full grid AND its right edge breaks out to
       the viewport edge — but its left edge stops just after the
       content column so scrolling never pushes cards under the prose.
       Width math is the LTR mirror of blocks_controlled_overselling:
         available = 100vw − (left-side margin + section padding-left
                              + content-col width + separating gap)
       At 1024–1700, that scales linearly → ≈ 60vw − 30px. */
    .bros__cards {
        grid-column: 1 / -1;
        grid-row: 1;
        width: calc(60vw - 30px);
        margin-left: auto;
        margin-right: calc(50% - 50vw);
        min-width: 0;
    }
    .bros__col-left {
        grid-column: 1 / span 2; /* 2/5 left */
        grid-row: 1;
        position: relative;
        z-index: 2;
    }
}

/* Above the 1700px max-width, the section stops growing — content-col
   width becomes fixed (~678px incl. gap) so the cards' available width
   grows as 50vw + 140px instead of 60vw − 30px. */
@media (min-width: 1700px) {
    .bros__cards {
        width: calc(50vw + 140px);
    }
}

/* ---- Left column extras: shopify × preproduct logo lockup -------- */

.bros__lockup {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bros__lockup-stack {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bros__logo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .bros__logo {
        width: 75px;
        height: 75px;
    }
}
.bros__logo img {
    display: block;
    width: 100%;
    height: 100%;
}
.bros__lockup-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11px;
    height: 11px;
    color: #75797c;
    flex: 0 0 auto;
}

/* ---- Right column: scrolling card mosaic ------------------------- */

.bros__cards {
    /* Frosted glass container behind the cards, per Figma. The track
       inside scrolls horizontally; this wrapper provides the soft
       background that visually contains the cards even as they pan. */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(13.5px);
    -webkit-backdrop-filter: blur(13.5px);
    border-radius: 3px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.bros__cards-track {
    list-style: none;
    margin: 0;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: stretch;
}
@media (min-width: 768px) {
    .bros__cards-track {
        padding: 32px;
        gap: 24px;
    }
}
@media (min-width: 1280px) {
    .bros__cards-track {
        padding: 40px;
        gap: 27px;
    }
}

.bros__card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1.8px solid #ebebeb;
    border-radius: 5px;
    box-shadow: 0 0 3.8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(14.5px);
    -webkit-backdrop-filter: blur(14.5px);
    overflow: hidden;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .bros__card {
        width: 480px;
    }
}
@media (min-width: 1280px) {
    .bros__card {
        width: 560px;
    }
}
@media (min-width: 1500px) {
    .bros__card {
        width: 605px;
    }
}

.bros__card-shot {
    width: 100%;
    aspect-ratio: 605 / 338;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}
.bros__card-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bros__card-label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px;
    box-sizing: border-box;
}
.bros__card-label-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bros__card-label-icon svg,
.bros__card-label-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bros__card-label-icon--pp img {
    width: 90%;
    height: 90%;
    margin: auto;
}
.bros__card-label-text {
    margin: 0;
    font-family: "SF Pro Display", "Inter", sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.24px;
    text-transform: capitalize;
    color: #3d464d;
    white-space: nowrap;
}

/* hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
