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

.pgb-product-tile-item-wrap {
    background: #f0f0f0;
    box-shadow: 9px 9px 10px #00000042;    
    padding:0 25px 0 25px;
    -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-item-wrap:hover {
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    transform: scale(1.05) !important; 

}

.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;
    background: #fff;
    /*min-height: 406px;*/
    text-align: center;
    /*padding-bottom: 25px;*/
    /* text-transform: uppercase; */
}

.pgb-tile-inner {
    /*height: 125px;  THIS WILL MAINTAIN CONSISTENCY ON INNER CONTENTS AND BUTTON PLACEMENT */
    position: relative;
    /*min-height: 100px;    */
}
.pgb-tile-inner .tile-title {
    margin-bottom: 0 !important;
}

.pgb-tile-inner .tile-title a {
    font-size: 20px !important;    
    text-transform: uppercase;
    color: #3f3f3f !important;
    margin-bottom: 0 !important;

}

.pgb-tile-inner .tile-title:hover {
    color: #3f3f3f !important;
    opacity: 1 !important;

}

.pgb-product-image {
    /* height: 250px; */
    /* NEED TO REFER TO PSD 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-image img {

}

#content .pgb-product-tile .tile-title a {
    font-weight: 900 !important;
    font-style: normal;
    color: #3f3f3f !important;
    margin: 10px 0;
    margin-top: 20px;
    margin-bottom: 1px !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
}

.pgb-product-tiles .tile-title a:hover {
    color: #3f3f3f !important;
}

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

.pgb-product-description {
    color: #3f3f3f; 
    font-size: 13px;
    font-weight: bold;
    margin: 8px 0 8px 0;
}

.pgb-product-price .wc-measurement-price-calculator-price, .pgb-product-price .amount, .pgb-product-price {
    font-size: 16px !important;
    font-weight: bolder;
    color: #3f3f3f !important;
}

.pgb-product-price {
    margin: 8px 0 8px 0 !important;
}

.pgb-tile-btn-wrap {
    margin: 8px 0 8px 0;
}

.tile-product-link {
    display: inline-block;
    margin-bottom: 20px !important;
    max-width: 332px;
    /*background: linear-gradient(to right,  #2a9c1d 0%,#020902 100%); */
    background: #398c38; 
    color: white;
    padding: 5px 20px 5px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    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;
    transition: none !important;
    text-decoration: none;
}


.pgb-ribbon {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    padding: 3px 131px;
    width: 224px;
    height: 48px;
    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: -2.20em;
    position: absolute;
    top: -21px;
    left: -21px;
  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: 50% !important;
    display: block;
    margin-top: -5px;
    font-size: 12px;
    font-weight: normal;
    line-height: normal;
}

@media screen and (max-width: 767px){

    .pgb-tile-inner  {
        height: auto;
    }

    .pgb-product-description {
        margin-bottom:10px !important;
        line-height: normal;
    }

    #content .pgb-product-tiles .tile-title {
        font-size: 22px !important;
    }

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

    #content .tile-product-link {
        font-size:16px;
    }

}

@media screen and (max-width: 1028px) {
    #content .pgb-product-tiles {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 50px;
    } 
}