<section data-component-type="Content" class="stores-section">
  <style>
    .stores-section {
      width: 100%;
      padding: 0px 100px 80px;
    }

    .stores-container {
      max-width: 1728px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 80px;
    }

    .store-row {
      display: grid;
      grid-template-columns: 854px 1fr;
      gap: 80px;
      align-items: center;
    }

    .store-image {
      width: 854px;
      height: 464px;
      border-radius: 16px;
      overflow: hidden;
    }

    .store-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .store-content {
      max-width: 728px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .store-title {
      font-family: "Rajdhani", sans-serif;
      font-weight: 900;
      font-style: italic;
      font-size: 64px;
      line-height: 100%;
      color: #000;
    }

    .store-desc {
      font-family: "Michroma", sans-serif;
      font-size: 24px;
      line-height: 36px;
      color: #636363;
    }

    .store-btn {
      width: 229px;
      height: 64px;
      padding: 18px 46px;
      border-radius: 12px;
      background: #010609;
      color: #ffffff;
      font-family: "Michroma", sans-serif;
      font-size: 20px;
      line-height: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    @media (max-width: 1200px) {
      .store-row {
        grid-template-columns: 1fr;
        gap: 48px;
      }

      .store-image {
        width: 100%;
        height: 420px;
      }
    }

    @media (max-width: 768px) {
      .stores-section {
        padding: 48px 24px;
      }

      .store-title {
        font-size: 40px;
      }

      .store-desc {
        font-size: 18px;
      }

      .store-image {
        height: 320px;
      }
    }

    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal.delay-1 {
      transition-delay: 0.15s;
    }
    .reveal.delay-2 {
      transition-delay: 0.3s;
    }
    .reveal.delay-3 {
      transition-delay: 0.45s;
    }
  </style>

  <div class="stores-container">
    <div class="store-row reveal delay-1">
      <div
        class="store-image"
        data-node="store_1_image"
        data-node-type="file"
        data-node-label="Store Image"
        data-node-default="../assets/style.webp"
      >
        <img src="{{store_1_image}}" alt="Store Image" />
      </div>

      <div class="store-content">
        <h3
          class="store-title"
          data-node="store_1_title"
          data-node-type="text"
          data-node-default="Style Lab — New York"
        >
          {{store_1_title}}
        </h3>

        <p
          class="store-desc"
          data-node="store_1_desc"
          data-node-type="text"
          data-node-default="Where street culture meets iconic city rhythm. Fresh drops, bold silhouettes, and fits crafted for everyday swagger. Step in, elevate your drip."
        >
          {{store_1_desc}}
        </p>

        <a
          href="{{store_1_btn_link}}"
          class="store-btn"
          data-node="store_1_btn_link"
          data-node-type="page_links"
          data-node-default="/stores/new-york"
        >
          <span
            data-node="store_1_btn_text"
            data-node-type="text"
            data-node-default="Visit Store"
          >
            {{store_1_btn_text}}
          </span>
        </a>
      </div>
    </div>

    <div class="store-row reveal delay-2">
      <div
        class="store-image"
        data-node="store_2_image"
        data-node-type="file"
        data-node-default="../assets/flex.webp"
      >
        <img src="{{store_2_image}}" alt="Store Image" />
      </div>

      <div class="store-content">
        <h3
          class="store-title"
          data-node="store_2_title"
          data-node-type="text"
          data-node-default="Flex Point — Tokyo"
        >
          {{store_2_title}}
        </h3>

        <p
          class="store-desc"
          data-node="store_2_desc"
          data-node-type="text"
          data-node-default="A hotspot for clean cuts, oversized layers, and next-gen streetwear. Perfect for night walks, neon vibes, and statement-ready outfits."
        >
          {{store_2_desc}}
        </p>

        <a
          href="{{store_2_btn_link}}"
          class="store-btn"
          data-node="store_2_btn_link"
          data-node-type="page_links"
          data-node-default="/stores/tokyo"
        >
          <span
            data-node="store_2_btn_text"
            data-node-type="text"
            data-node-default="Visit Store"
          >
            {{store_2_btn_text}}
          </span>
        </a>
      </div>
    </div>

    <div class="store-row reveal delay-3">
      <div
        class="store-image"
        data-node="store_3_image"
        data-node-type="file"
        data-node-default="../assets/drift.webp"
      >
        <img src="{{store_3_image}}" alt="Store Image" />
      </div>

      <div class="store-content">
        <h3
          class="store-title"
          data-node="store_3_title"
          data-node-type="text"
          data-node-default="Drift Unit — Berlin"
        >
          {{store_3_title}}
        </h3>

        <p
          class="store-desc"
          data-node="store_3_desc"
          data-node-type="text"
          data-node-default="A curated zone for textures, edgy fits, and underground-inspired looks. From minimal to maximal—your full street lineup lives here."
        >
          {{store_3_desc}}
        </p>

        <a
          href="{{store_3_btn_link}}"
          class="store-btn"
          data-node="store_3_btn_link"
          data-node-type="page_links"
          data-node-default="/stores/berlin"
        >
          <span
            data-node="store_3_btn_text"
            data-node-type="text"
            data-node-default="Visit Store"
          >
            {{store_3_btn_text}}
          </span>
        </a>
      </div>
    </div>
  </div>
</section>

<script>
  const revealItems = document.querySelectorAll(".reveal");

  const revealObserver = new IntersectionObserver(
    (entries) => {
      entries.forEach((entry) => {
        if (entry.isIntersecting) {
          entry.target.classList.add("is-visible");
          revealObserver.unobserve(entry.target);
        }
      });
    },
    {
      threshold: 0.15,
    }
  );

  revealItems.forEach((item) => {
    revealObserver.observe(item);
  });
</script>
