/* Loop-grid */
.section.loop-grid {
  gap: 80px;
  @media (max-width: 1024px) {
    row-gap: 40px;
  }
  h2 {
    text-decoration: underline;
  }
  .product-loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 80px;
    column-gap: 36px;
    @media (max-width: 1024px) {
      row-gap: 40px;
      column-gap: 24px;
    }
    @media (max-width: 767px) {
      display: flex;
      flex-direction: column;
      gap: 40px;
    }

    /* Loop Item */
    .loop-item {
      display: flex;
      flex-direction: column;
      gap: 20px;
      &.hide {
        display: none;
      }
      .loop-item-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: 100%;
        justify-content: space-between;
        @media (max-width: 767px) {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 10px;
        }
        .thumbnail {
          display: flex;
          gap: 16px;
          position: relative;
          border: 1px solid#e3e3e3;
          padding: 20px;
          height: 250px;
          justify-content: center;
          align-items: center;
          @media (max-width: 767px) {
            height: 193px;
          }
          img {
            height: 100%;
            width: 100%;
            object-fit: contain;
            @media (max-width: 767px) {
              max-height: 80%;
            }
          }

          .label {
            position: absolute;
            left: 10px;
            top: 10px;
            padding: 4px 10px;
            background-color: #0d0d0d;
            border-radius: 2px;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
          }
        }
        .product-meta {
          display: flex;
          flex-direction: column;
          gap: 16px;
          align-items: start;
          @media (max-width: 767px) {
            gap: 12px;
            justify-content: space-between;
          }
          .product-price {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            row-gap: 0;
            del * {
              font-weight: 300 !important;
              color: #1b3c3c !important;
              font-size: 14px;
            }
            ins {
              text-decoration: none;
            }
            .wgm-info {
              display: flex;
              flex-direction: column;
              gap: 0;
              width: 100%;
              span {
                display: flex;
                font-size: 12px;
                font-weight: 400;
                line-height: 1;
                a {
                  color: rgb(94, 147, 47) !important;
                }
              }
            }
            .gm-wp_bakery_woocommerce_get_price_html {
              display: none !important;
            }
          }
          .product-title {
            font-size: 18px;
            color: #237660;
            font-weight: 500;
            margin: 0;
            text-align: start;
            @media (max-width: 1024px) {
              font-size: 16px;
              min-height: 28px;
            }
            @media (max-width: 767px) {
              font-size: 14px;
            }
          }
          .description {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            hyphens: auto;
            word-break: break-all;
            max-width: 100%;
          }
          .description,
          p {
            color: #1b3c3c;
            font-family: Roboto;
            font-size: 18px;
            font-style: normal;
            font-weight: 400;
            line-height: 32px;
            margin: 0;
            padding: 0;
            text-align: start;
            line-height: 150%;
            @media (max-width: 1024px) {
              font-size: 16px;
            }
            @media (max-width: 767px) {
              font-size: 14px;
            }
          }
          .woocommerce-Price-amount {
            * {
              color: #237660;
              font-family: Poppins;
              font-size: 18px;
              font-style: normal;
              font-weight: 700;
              line-height: 1.22;
            }
          }
        }
      }
      .add_to_cart_button {
        background: #237660;
        color: #fff;
        text-align: center;
        font-family: Poppins;
        font-size: 16px !important;
        font-style: normal;
        font-weight: 500;
        line-height: 2.12;
        padding: 0;
        padding: 5px 20px;
        text-transform: none;
        width: 100%;
        text-align: center;
        white-space: nowrap;
        @media (max-width: 767px) {
          padding: 0 10px;
          font-size: 14px;
        }
      }
    }
  }
  .pagenation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    .prev-next {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 30px;
      height: 30px;
      background: #237660;
      border: none;
      border-radius: 0 !important;
      &:hover {
        cursor: pointer;
      }
      img {
        width: 20px;
        height: auto;
      }
      &.hide {
        display: none;
      }
    }
  }
}
