/*--------------------------------
PRODUCT TILES FRONTEND
---------------------------------*/
.pgb-product-tiles-container {
    max-width: 1330px;
    margin: 0 auto;
    display: block;
}

.pgb-product-tiles  {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

/* On wider screens, force 3 columns */
@media (min-width: 1024px) {
  .pgb-product-tiles  {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pgb-product-tiles hr {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pgb-product-tile {
    border: 1px solid #eee;
    text-align: center;
    /* text-transform: uppercase; */
    border-radius: 60px;
    -o-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -khtml-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;     
}

.pgb-product-tile:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: scale(1.05); 

}

.pgb-tile-inner {
    height: 125px; /* THIS WILL MAINTAIN CONSISTENCY ON INNER CONTENTS AND BUTTON PLACEMENT */
    position: relative;
}

.pgb-product-image {
    /* height: 250px; */
    /* NEED TO REFER TO TEMPLATE FOR UNIFORMITY */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin-top: 13px;
    padding: 15px;
    padding-bottom: 0;
}

.pgb-product-tiles .tile-title {
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    font-style: normal;    
    color:#000 !important;
    margin: 10px 0;
    margin-top: 20px;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
}

.pgb-product-tile img {
    max-width: 100% !important;
    /* height: auto !important; */
    /* max-height: 214px !important; */
}

.pgb-product-description {
    color: #000; 
    font-size: 20px;
}

.pgb-product-price .wc-measurement-price-calculator-price, .pgb-product-price .amount {
    font-size: 25px !important;
}

.tile-product-link {
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
    max-width: 332px;
    background: #d74246;
    color: white;
    padding: 10px 20px 5px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 20px;
    border-radius: 25px;
    -o-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -khtml-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;    
}

.tile-product-link:hover {
    background: #286227;
    transform: scale(1.10);    
    color: white;
    text-decoration: none;
}


.pgb-ribbon {
    font-size: 19px;
    font-weight: bold;
    color: #fff;
    padding: 3px 131px;
    width: 224px;
    height: 61px;
    line-height: 22px !important;
    justify-content: center;
    display: flex;
    align-items: center;
}

.pgb-ribbon:after {
    display: block;
    content: "";
    border-bottom: 2px solid #3c3838;
    position: absolute;
    width: 100%;
    bottom: 0;
}

.pgb-ribbon {
  --f: .0em; /* control the folded part */
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
  transform-origin: 100% 100%;
  background-color: #F07818; /* the main color  */
}

.ribbon-title {
    width: 70% !important;
    display: block;
}