<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="葉ニンニク 100g程度 - 画像1" class="object-smart-fit" onerror="this.src=&#39;/no_image.png&#39;" src="https://lh3.googleusercontent.com/Y12lvmY7nMi4dhsAbrSg7pkf9_qXImpV-PSvpNYzS1mrPHmeCHAw9qqQ-4Ol4zTofrUve70jPTkBaMWTexXozFW7mApc4JocIVOTVZ4gfc3Sm6720MMty5TyT8VGqsXXvjhgTLrcR7w=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">葉ニンニク 100g程度</div>
        <div class="text-foreground text-md font-normal">※収穫後も呼吸を続けているため、葉が黄化しやすいです。黄色い部分もお召し上がりいただけますが、お早めにお使いください。
ニンニクとして食べる部分が大きくなる前の、葉が柔らかい状態で収穫しました。香りはニンニクほど強くなく、柔らかい風味。緑色の葉がメインですが、白い部分まですべて食べられます。炒め物やスープなどに入れると、香りが良いアクセントになりますよ。
＜保存方法＞湿らせたペーパー等に包み、袋に入れて野菜室へ。
＜おすすめの食べ方＞◎炒め物、和え物、チヂミ、餃子、卵とじ、すき焼き、醤油漬け&quot;</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_button56695_modal" class="tailwind-only">
              <form data-turbo="true" action="/products/56695/favorite" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="authenticity_token" value="baQVRvK36OCU6SRc48Yye9mFmyjqbhhBcoLt8u1pSNOS6JpIEudAEGx4SDL0yQS78M5C1MU_iIvbIj2vSusS4Q" autocomplete="off" />
                <input type="hidden" name="week_reference_date" id="week_reference_date" value="2026-04-05" 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/56695/carts">注文</a>
      </div>
    </div>
  </div>
</div>
</template></turbo-stream>