<turbo-stream action="replace" target="product-detail-modal-content"><template>
<div id="product-detail-modal-content" class="tailwind-only fixed inset-0 z-50 flex items-center justify-center">
  <div class="fixed inset-0 bg-black/50 pointer-events-auto" data-action="click->products#hideProductDetail"></div>
  <div class="relative bg-white rounded-lg shadow-lg w-full max-w-lg mx-auto z-10 max-h-[90vh] flex flex-col">
    <!-- スクロール可能なコンテンツ部分 -->
    <div class="flex-1 overflow-y-auto">
      <!-- 画像カルーセル部分 -->
      <div class="relative bg-muted rounded-lg" data-controller="product-image-carousel" data-product-image-carousel-total-value="1">
        <!-- メイン画像エリア -->
        <div class="relative overflow-hidden rounded-t-lg">
          <div class="flex transition-transform duration-300 ease-in-out" data-product-image-carousel-target="carousel">
              <div class="w-full flex-shrink-0 flex items-center justify-center" data-product-image-carousel-target="slide">
                  <img alt="紫いも １kg - 画像1" class="object-smart-fit" onerror="this.src=&#39;/no_image.png&#39;" src="https://lh3.googleusercontent.com/pw/ACtC-3cys2GiR93yfHiEzMpf1ABgMzl7AEpqIFuYPKYHJAsg4i8WnMB8gLJQOMYzSwCocF85SmdALCPlE4u4WUOYRM2RKtLCESLcqIm3PrimGnTGVVHw758BCV5IuntNlPHj5N2XcjFBtJOf4PM7cvbHzkUJ=s320" />
              </div>
          </div>

        </div>

        <!-- サムネイル一覧 -->
      </div>

      <!-- 商品情報 -->
      <div class="px-4 py-6">
        <div class="mb-1 text-foreground text-xs font-normal">鹿児島県など,鹿児島県伊佐市</div>
        <div class="mb-2 text-foreground text-lg font-normal">紫いも １kg</div>
        <div class="text-foreground text-md font-normal">お得な1㎏規格です</div>
      </div>

      <!-- ×閉じるボタン -->
      <button
        type="button"
        class="absolute top-4 right-4 w-6 h-6 flex items-center justify-center bg-gray-100 rounded-full transition-colors"
        data-action="click->products#hideProductDetail"
      >
        <img class="w-4 h-4 text-gray-600" src="/assets/icons/x-f2d3c01f0887434da8f69a406b1d5952686e22f81db7b98e2e7865f26e6f0387.svg" />
      </button>
    </div>

    <!-- 固定ボタン部分 -->
    <div class="px-4 py-4 flex-shrink-0">
      <div class="flex gap-2">
        <div class="flex-1">
          <div id="favorite_button52202_modal" class="tailwind-only">
              <form data-turbo="true" action="/products/52202/favorite" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="authenticity_token" value="DkG6mbEgVZHHZl0IBHxJajnW3tXh2uS6A8j2__V-kA_KDpf1dmiM9_aUjG2pcLNHPsKF1xH1fD9DC-WHJYrDxQ" autocomplete="off" />
                <input type="hidden" name="week_reference_date" id="week_reference_date" value="2025-12-26" autocomplete="off" />
                <button name="button" type="submit" class="w-full px-4 py-2 text-gray-900 rounded transition-colors flex items-center justify-center outline-1 outline-offset-[-1px] outline-border gap-2">
                  <img alt="お気に入りに追加" class="w-5 h-5 opacity-60" src="/assets/icons/heart-gray-f6889a9469e691fd0c40f04539b49acef3f53cb4ffda2906bcbb62752c7de024.svg" />
                  <span>お気に入り</span>
</button></form>          </div>
        </div>
        <a class="flex-1 px-2 py-2 bg-primary text-primary-foreground rounded hover:bg-primary-hover transition-colors flex items-center justify-center" data-turbo="true" data-action="click-&gt;products#hideProductDetailAndShowCart" href="/products/52202/carts">注文</a>
      </div>
    </div>
  </div>
</div>
</template></turbo-stream>