<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="カリフラワー(オレンジ) １株 - 画像1" class="object-smart-fit" onerror="this.src=&#39;/no_image.png&#39;" src="https://lh3.googleusercontent.com/0RAmubhzeOB5_QtOpRxBVhrgdEDxgyGGCe7lydrqe_aN9YDaIQP3J_tUjDBlqq7f5Oi92yjr1R60Pbpzm0B5vL7jnN-kENHcL6zy1Znj0ZcAMFkeQTkGA5FsRQ7CRW7yPCyjUwy5wnaxHXxVdaMG3rphEquG6Y1yNcR_ib7DLQ6mqHVGThmFhjTAVy9trpjKxWo1WspVzGXyOFf55G9fkVHwogdJDGGm0zenocdIklqWx-QpCbDQEAvoN7qS1drG6Lfj6s_LXlI6kiVMujtXIwW4NsqGolyqPL9orjFPFvq3nHJAjJ4P-P-NtSmqDbR3RPXIoFJqL9ebSGtoe5UJSkgRXA-EU811G63R32Onxna9kpNuKm_ED1N8ERhRr5N7LauynVxH5k_6sKDD6G0cZErZW7qOoG1Vy3s7WoJDQFRbmuyABrmCEeMpL-62UlCvTuVDQamgche2SlPxtmrdUp3dQZSSi-HrNZoQXOlrdcNYBDAEnOY4oi4uQwQIj6aYTKuve1R_EdJNIwgzDQ_87mHaFKV5BlFXwbLisbSzXHzv63Wr2Y4J-kxtLf4kF60Fmi2sOFaX8ZFT3O0yaeu67rbU6EMuesYlG2qutq6UaHzIOlmeRZWuTWtJ107tedCp1ydhq9u1cT2IsR_cU7dsVmc03cuN0SiZv2ZPk6UqaedPoFwZmbXvbJLAOyNBEitHMQEuF9RM6BJZUq7PDmCig8j_g_6QVVjoIShAU7wnNVZ9BsnrNg57ZbMyG_c3gXSf0Rh517lMkoWK9AsvdPnp5Bb7dOEv2pRY6B1DO9wCsx9Nl0RfhJSP8-qM51QbVXdWhwJ6L0NECCl5_ta_f-WkixPUVEkuqr8SLL8lZ_fMPi3Ehw0JgQJ_HMxO3IhnAKMpp1DGtRxtyM8YCKWCeP9xe6iomIEFYj-5dQZNqIxahoktbulQMA=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">カリフラワー(オレンジ) １株</div>
        <div class="text-foreground text-md font-normal">オレンジ色のカリフラワーです。
花蕾が変色しやすいので、お早目にお召し上がりください。</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_button60044_modal" class="tailwind-only">
              <form data-turbo="true" action="/products/60044/favorite" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="authenticity_token" value="vHEL7-UNgYDm_pw6rllra9TYPG7oF-xZGNtM2LdxLUgYuHdzpG0je8RSjc9TxPuVYQAxHaGN1dF4I1N-t7mg5Q" autocomplete="off" />
                <input type="hidden" name="week_reference_date" id="week_reference_date" value="2026-06-16" 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/60044/carts">注文</a>
      </div>
    </div>
  </div>
</div>
</template></turbo-stream>