{{-- Horizontal product carousel with a section header and prev/next arrows. --}} @props(['title', 'subtitle' => null, 'href' => null, 'cta' => 'Shop all'])
class('flex flex-col gap-6') }} x-data="{ el: null, atStart: true, atEnd: false, sync() { this.atStart = this.el.scrollLeft < 8; this.atEnd = this.el.scrollLeft + this.el.clientWidth >= this.el.scrollWidth - 8 }, go(d) { this.el.scrollBy({ left: d * this.el.clientWidth * .85, behavior: 'smooth' }) } }" x-init="el = $refs.track; $nextTick(() => sync())">

{{ $title }}

@if ($subtitle)

{{ $subtitle }}

@endif
@if ($href){{ $cta }}@endif
{{ $slot }}