/**
 * The catalogue as designed (static products and filter options), with the labels from
 * the CMS catalog section. Shown while the API has no published product, or can't be
 * reached. Markup unchanged from the static page.
 */
import Link from "next/link";
import type { ProductCatalogContent } from "@/app/(site)/_lib/pageContent";

export function StaticCatalog({ c }: { c: ProductCatalogContent }) {
  return (
    <section className="bg-white pb-12 md:pb-16 lg:pb-20">
      <div className="w-full max-w-[1180px] mx-auto px-6">
        <div className="catalog-layout">
          <button
            type="button"
            className="catalog-filter-toggle"
            id="catalog-filter-toggle"
            aria-expanded="false"
            aria-controls="catalog-sidebar"
          >
            {" "}
            <svg viewBox="0 0 20 20" fill="none" aria-hidden="true">
              <path
                d="M3 5h14M3 10h14M3 15h14"
                stroke="currentColor"
                strokeWidth="1.6"
                strokeLinecap="round"
              ></path>
            </svg>{" "}
            {c.filtersLabel}{" "}
          </button>{" "}
          {/* SIDEBAR FILTERS */}{" "}
          <aside className="catalog-sidebar" id="catalog-sidebar" aria-label="Product filters">
            <div className="catalog-search">
              <svg className="catalog-search-icon" viewBox="0 0 20 20" fill="none" aria-hidden="true">
                <circle cx="9" cy="9" r="5.5" stroke="currentColor" strokeWidth="1.6"></circle>
                <path d="M13.5 13.5L17 17" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round"></path>
              </svg>{" "}
              <input type="search" placeholder={c.searchPlaceholder} aria-label="Search products" />
            </div>
            <div className="catalog-category-block">
              <h3 className="catalog-filter-heading">{c.filterHeadings.category}</h3>{" "}
              <details className="catalog-filter-group" open>
                <summary>Agricultural &amp; Food Ingredients</summary>{" "}
                <div className="catalog-filter-list">
                  <label className="catalog-filter-item">
                    <input type="checkbox" defaultChecked /> Spice &amp; Herbs
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" defaultChecked /> Dehydrated Vegetables
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Superfoods &amp; Seeds
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Grains &amp; Cereals
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" defaultChecked /> Dried Fruits &amp; Nuts
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Teas &amp; Coffees
                  </label>
                </div>
              </details>{" "}
              <details className="catalog-filter-group">
                <summary>Industrial &amp; Bulk Ingredients</summary>{" "}
                <div className="catalog-filter-list">
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Active Ingredients &amp; Extracts
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Essential Oils &amp; Aromatics
                  </label>
                </div>
              </details>{" "}
              <details className="catalog-filter-group">
                <summary>Consumer Packaged Goods</summary>{" "}
                <div className="catalog-filter-list">
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Health &amp; Beauty
                  </label>{" "}
                  <label className="catalog-filter-item">
                    <input type="checkbox" /> Natural Supplements
                  </label>
                </div>
              </details>
            </div>
            <div className="catalog-filter-group">
              <h3 className="text-[14px] font-bold text-ink mb-3">{c.filterHeadings.originCountry}</h3>
              <div className="catalog-filter-list">
                <label className="catalog-filter-item">
                  <input type="checkbox" defaultChecked /> Spain
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" defaultChecked /> China
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" /> Iran
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" /> Brazil
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" defaultChecked /> India
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" /> Singapore
                </label>
              </div>{" "}
              <a href="#" className="catalog-filter-see-more">
                {c.seeMoreLabel}
              </a>
            </div>
            <div className="catalog-filter-group">
              <h3 className="text-[14px] font-bold text-ink mb-3">{c.filterHeadings.productType}</h3>
              <div className="catalog-filter-list">
                <label className="catalog-filter-item">
                  <input type="radio" name="product-type" defaultChecked />{" "}
                  {c.productTypeLabels.all}
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="radio" name="product-type" />{" "}
                  {c.productTypeLabels.organic}
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="radio" name="product-type" />{" "}
                  {c.productTypeLabels.conventional}
                </label>
              </div>
            </div>
            <div className="catalog-filter-group">
              <h3 className="text-[14px] font-bold text-ink mb-3">{c.filterHeadings.volume}</h3>
              <div className="catalog-filter-list">
                <label className="catalog-filter-item">
                  <input type="radio" name="volume" defaultChecked />{" "}
                  {c.volumeLabels.upTo10}
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="radio" name="volume" />{" "}
                  {c.volumeLabels.from10To50}
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="radio" name="volume" />{" "}
                  {c.volumeLabels.from50To100}
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="radio" name="volume" />{" "}
                  {c.volumeLabels.from100To500}
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="radio" name="volume" />{" "}
                  {c.volumeLabels.over500}
                </label>
              </div>
            </div>
            <div className="catalog-filter-group">
              <h3 className="text-[14px] font-bold text-ink mb-3">{c.filterHeadings.certifications}</h3>
              <div className="catalog-filter-list">
                <label className="catalog-filter-item">
                  <input type="checkbox" defaultChecked /> Halal
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" defaultChecked /> Organic
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" /> EU
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" /> Fairtrade
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" defaultChecked /> Lorem Ipsum
                </label>{" "}
                <label className="catalog-filter-item">
                  <input type="checkbox" /> Lorem Ipsum
                </label>
              </div>{" "}
              <a href="#" className="catalog-filter-see-more">
                {c.seeMoreLabel}
              </a>
            </div>
          </aside>
          {/* PRODUCT GRID */}
          <div className="catalog-main">
            <div className="product-catalog-grid">
              <article className="product-card">
                <Link
                  href="/product-details?name=Garlic&amp;image=%2Fassets%2Fimages%2Fabout%2Fabout-harvest.jpg&amp;alt=Fresh+garlic+bulbs+in+a+wooden+bowl"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/about/about-harvest.jpg"
                      alt="Fresh garlic bulbs in a wooden bowl"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Garlic</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Tomatoes&amp;image=%2Fassets%2Fimages%2Fabout%2Fabout-expansion.jpg&amp;alt=Roma+tomatoes+on+a+wooden+cutting+board"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/about/about-expansion.jpg"
                      alt="Roma tomatoes on a wooden cutting board"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Tomatoes</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Onion&amp;image=%2Fassets%2Fimages%2Fproducts%2Fproducts-intro.jpg&amp;alt=Red+onions+in+a+woven+basket"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/products/products-intro.jpg"
                      alt="Red onions in a woven basket"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Onion</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Saffron&amp;image=%2Fassets%2Fimages%2Fproducts%2Fproducts-agricultural.jpg&amp;alt=Premium+saffron+threads+close-up"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/products/products-agricultural.jpg"
                      alt="Premium saffron threads close-up"
                      width="318"
                      height="400"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Saffron</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Carrots&amp;image=%2Fassets%2Fimages%2Fabout%2Fabout-join-movement.jpg&amp;alt=Fresh+carrots+with+green+tops"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/about/about-join-movement.jpg"
                      alt="Fresh carrots with green tops"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Carrots</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Cumin&amp;image=%2Fassets%2Fimages%2Fglobal-strategy%2Fglobal-strategy-core.jpg&amp;alt=Cumin+seeds+in+a+small+wooden+bowl"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/global-strategy/global-strategy-core.jpg"
                      alt="Cumin seeds in a small wooden bowl"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Cumin</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Black+Pepper&amp;image=%2Fassets%2Fimages%2Fproducts%2Fproducts-industrial.jpg&amp;alt=Black+peppercorns+in+a+bowl+with+a+wooden+scoop"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/products/products-industrial.jpg"
                      alt="Black peppercorns in a bowl with a wooden scoop"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Black Pepper</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Almond&amp;image=%2Fassets%2Fimages%2Fproducts%2Fproducts-certifications.jpg&amp;alt=Whole+almonds+in+a+wooden+bowl"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/products/products-certifications.jpg"
                      alt="Whole almonds in a wooden bowl"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Almond</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Cashews&amp;image=%2Fassets%2Fimages%2Fdonations%2Fdonation-box.jpg&amp;alt=Cashew+nuts+in+a+bowl+on+rustic+cloth"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/donations/donation-box.jpg"
                      alt="Cashew nuts in a bowl on rustic cloth"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Cashews</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Walnut&amp;image=%2Fassets%2Fimages%2Fpartner-with-us%2Fpartner-cta.jpg&amp;alt=Walnuts+in+a+wooden+bowl"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/partner-with-us/partner-cta.jpg"
                      alt="Walnuts in a wooden bowl"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Walnut</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Dates&amp;image=%2Fassets%2Fimages%2Ftestimonials%2Fcase-study-logistics.jpg&amp;alt=Fresh+dates+in+a+market+display"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/testimonials/case-study-logistics.jpg"
                      alt="Fresh dates in a market display"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Dates</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Figs&amp;image=%2Fassets%2Fimages%2Fabout%2Fabout-robotics.jpg&amp;alt=Dried+figs+arranged+on+a+plate"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/about/about-robotics.jpg"
                      alt="Dried figs arranged on a plate"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Figs</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Walnut&amp;image=%2Fassets%2Fimages%2Fpartner-with-us%2Fpartner-cta.jpg&amp;alt=Walnuts+in+a+wooden+bowl"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/partner-with-us/partner-cta.jpg"
                      alt="Walnuts in a wooden bowl"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Walnut</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Dates&amp;image=%2Fassets%2Fimages%2Ftestimonials%2Fcase-study-logistics.jpg&amp;alt=Fresh+dates+in+a+market+display"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/testimonials/case-study-logistics.jpg"
                      alt="Fresh dates in a market display"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Dates</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
              <article className="product-card">
                <Link
                  href="/product-details?name=Figs&amp;image=%2Fassets%2Fimages%2Fabout%2Fabout-robotics.jpg&amp;alt=Dried+figs+arranged+on+a+plate"
                  className="product-card-link"
                >
                  <div className="product-card-image">
                    <img
                      src="/assets/images/about/about-robotics.jpg"
                      alt="Dried figs arranged on a plate"
                      width="400"
                      height="300"
                      loading="lazy"
                    />
                  </div>
                  <div className="product-card-body">
                    <h3 className="product-card-title">Figs</h3>
                    <p className="product-card-desc">Figma ipsum component variant main layer.</p>
                    <p className="product-card-desc">Vector horizontal flows fill create component.</p>
                  </div>
                </Link>
              </article>
            </div>
            <nav
              className="pagination mt-12 flex items-center justify-center gap-2 flex-wrap"
              aria-label="Product pages"
            >
              <button type="button" className="pagination-btn pagination-arrow" aria-label="Previous page" disabled>
                {" "}
                <svg className="w-4 h-4" viewBox="0 0 16 16" fill="none" aria-hidden="true">
                  <path
                    d="M10 3L5 8l5 5"
                    stroke="currentColor"
                    strokeWidth="1.8"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  ></path>
                  <path
                    d="M12 3L7 8l5 5"
                    stroke="currentColor"
                    strokeWidth="1.8"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  ></path>
                </svg>{" "}
              </button>{" "}
              <button type="button" className="pagination-btn is-active" aria-current="page">
                1
              </button>{" "}
              <button type="button" className="pagination-btn">
                2
              </button>{" "}
              <button type="button" className="pagination-btn">
                3
              </button>{" "}
              <span className="pagination-ellipsis text-[#2E2E2E] px-1 select-none" aria-hidden="true">
                …
              </span>{" "}
              <button type="button" className="pagination-btn">
                10
              </button>{" "}
              <button type="button" className="pagination-btn pagination-arrow" aria-label="Next page">
                {" "}
                <svg className="w-4 h-4" viewBox="0 0 16 16" fill="none" aria-hidden="true">
                  <path
                    d="M6 3l5 5-5 5"
                    stroke="currentColor"
                    strokeWidth="1.8"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  ></path>
                  <path
                    d="M4 3l5 5-5 5"
                    stroke="currentColor"
                    strokeWidth="1.8"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  ></path>
                </svg>{" "}
              </button>
            </nav>
          </div>
        </div>
      </div>
    </section>
  );
}
