<script lang='ts' setup>
const activeName = ref()
</script>

<template>
  <div class="py-120px w-1200-auto">
    <div class="w-1200-auto text-center">
      <h2 class="text-36px fw-800 text-#333 !mb-60px custom-title-font">
        Product Selection & <span class="custom-title-bg">Assortment</span>
      </h2>
      <div class="custom-collapse w-full pos-relative">
        <el-collapse v-model="activeName" accordion>
          <el-collapse-item name="1">
            <template #title>
              <div class="flex">
                <div
                  class="w-36px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
                >
                  1
                </div>
                <h3
                  class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-800px custom-title-font"
                >
                  Can I order products across different categories?
                </h3>
              </div>
            </template>
            <template #icon="{ isActive }">
              <img
                v-if="!isActive"
                src="@/assets/images/plus.png"
                class="!w-20px !h-20px mt-12px"
              >
              <img
                v-else
                src="@/assets/images/reduce.png"
                class="!w-20px !h-20px mt-12px"
              >
            </template>
            <div
              class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
            >
              Yes, we support mixed-category orders to suit your store's needs, with low MOQs per item.
            </div>
          </el-collapse-item>
          <el-collapse-item name="2">
            <template #title>
              <div class="flex">
                <div
                  class="w-36px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
                >
                  2
                </div>
                <h3
                  class="flex-1 text-24px fw-bold text-#333 text-left lh-34px  w-800px custom-title-font"
                >
                  How often do you update your catalogs?
                </h3>
              </div>
            </template>
            <template #icon="{ isActive }">
              <img
                v-if="!isActive"
                src="@/assets/images/plus.png"
                class="!w-20px !h-20px mt-12px"
              >
              <img
                v-else
                src="@/assets/images/reduce.png"
                class="!w-20px !h-20px mt-12px"
              >
            </template>
            <h3
              class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
            >
              Our catalogs are refreshed weekly to reflect current trends and consumer demand.
            </h3>
          </el-collapse-item>
          <el-collapse-item name="3">
            <template #title>
              <div class="flex">
                <div
                  class="w-36px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
                >
                  3
                </div>
                <div
                  class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-800px custom-title-font"
                >
                  Can you help recommend products for my target market?
                </div>
              </div>
            </template>
            <template #icon="{ isActive }">
              <img
                v-if="!isActive"
                src="@/assets/images/plus.png"
                class="!w-20px !h-20px mt-12px"
              >
              <img
                v-else
                src="@/assets/images/reduce.png"
                class="!w-20px !h-20px mt-12px"
              >
            </template>
            <h3
              class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
            >
              Sure, we can recommend products by market and provide product portfolios and display solutions for coordinated product series.
            </h3>
          </el-collapse-item>
          <el-collapse-item name="4">
            <template #title>
              <div class="flex">
                <div
                  class="w-36px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
                >
                  4
                </div>
                <div
                  class="flex-1 text-24px fw-bold text-#333 text-left lh-34px  w-800px custom-title-font"
                >
                  How do I start working with EJET Spark?
                </div>
              </div>
            </template>
            <template #icon="{ isActive }">
              <img
                v-if="!isActive"
                src="@/assets/images/plus.png"
                class="!w-20px !h-20px mt-12px"
              >
              <img
                v-else
                src="@/assets/images/reduce.png"
                class="!w-20px !h-20px mt-12px"
              >
            </template>
            <h3
              class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
            >
              Simply submit an inquiry with the product catalog you are interested in, and we’ll have a product expert contact you to discuss a customized solution based on your business needs.
            </h3>
          </el-collapse-item>
        </el-collapse>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.custom-collapse {
  ::v-deep(.el-collapse) {
    border-top: unset !important;
    border-bottom: unset !important;
    .el-collapse-item {
      margin-bottom: 30px;
      border-radius: 12px;
      background-color: #fff;
      box-sizing: border-box;
      border: 1px solid #e0e4ea;
      overflow: hidden;
      padding: 30px;

      .el-collapse-item__header {
        border-bottom: unset !important;
        display: flex;
        justify-content: space-between;
        align-items: start;
        height: unset !important;
        line-height: unset !important;
      }
      &.is-active {
        .el-collapse-item__wrap {
          border-bottom: unset !important;
        }
      }
      .el-collapse-item__content {
        padding: 0px !important;
        text-align: left;
      }
    }
  }
}
</style>