/* Product */

.product_list {
    background-color: #fff;
    padding: 1em 10vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(49%, 1fr));
    grid-auto-rows: minmax(100px, auto);
    flex-wrap: wrap;
    grid-gap: 1em;
    border-radius: 0.2em;
  }
  .product_list a.double {
    grid-column: 1/3;
  }
  .product_list a.double h3 {
    font-size: 3em;
  }
  .product_list a {
    display: block;
    text-decoration: none;
    color: #000;
    flex-grow: 2;
    display: grid;
  }
  
  .product_item {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    inset: 0;
  }
  .product_item::before {
    content: "";
    background-image: var(--bg);
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-size: cover;
    background-position: center center;
    scale: 1.2;
    transition: all 100ms ease-in-out;
  }
  a:hover .product_item::before {
    scale: 1.5;
    opacity: 0.5;
  }
  a:hover .product_item {
     background-color: rgba(0,0,0,0.65);
     opacity: 1;
  }
  .product_item .product_info {
    padding: 2em;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 60% auto;
    background: none;
    position: relative;
    z-index: 999;
    transition: all 500ms ease-in-out;
    text-shadow: 0px 0px 13px rgba(255,255,255,0.66);
  }
  a:hover .product_item .product_info {
    /* scale: 1.05; */
    color: #fff;
    text-shadow: 0px 0px 13px rgba(0,0,0,0.66);
  }
  .product_item h3 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1;
  }
  .product_item .product_info span {
    font-size: 1em;
    font-weight: 400;
    line-height: 1;
  }
  .gly:empty {
    display: none;
  } 

.product_list.small .product_item {
  display: grid;
  place-content: center;
  padding: 0;
  margin: 0;
  height: 25vh;
}

.product_list.small .product_info {
  padding: 0;
  display: block;
}
.product_list.small a:hover .product_item::before {
    filter: grayscale();
}

@media (max-width:768px) {
  .product_item .product_info {
    padding: 1em;
    grid-template-rows: 1fr 1fr;
    gap: 0;
  }
  .product_list a.double h3, .product_item h3 {
    font-size: 1.5em;
  }
}
