.ppc-pp{
  background-color: #fff;
  border: 0.5px solid rgba(0,0,0,.55);
  border-radius: var(--ppc-radius, 8px);
  box-sizing: border-box;
  padding: 6px;
  overflow: hidden;
  box-shadow: var(--ppc-shadow, none);
  position: relative;
}

.ppc-pp .ppc-link-cover{
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}

.ppc-pp .ppc-inner{
  padding: 3px;
  height: 100%;
  box-sizing: border-box;
  border-radius: 8px !important;
}

.ppc-pp .ppc-cat-badge{
  position: absolute;
  top: 16px;
  right: 0.3125rem;
  left: 0;
  width: 28px;
  height: 20px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  background: var(--ppc-accent, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.ppc-pp .ppc-cat-badge i{
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  position: absolute;
  right: 7px;
}

.ppc-pp .ppc-cat-badge img{
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.ppc-pp .ppc-wish{
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  font-size: 1.75rem;
  color: rgba(0,0,0,.85);
  line-height: 1;
  pointer-events: auto;
}

.ppc-pp .ppc-wish div.woocommerce {
    width: auto;
}

.ppc-pp .ppc-wish a{
  color: inherit;
  text-decoration: none;
}

.ppc-pp .ppc-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.ppc-pp .ppc-media{
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppc-pp .ppc-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ppc-pp .ppc-title{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0.4rem 0 0.6rem;
    height: 3rem;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.05;
    color: #111;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ppc-pp .ppc-desc{
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #000000;
  overflow: hidden;
  height: 2.8rem;
}

.ppc-pp .ppc-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 6px;
}

.ppc-pp .ppc-stars{
  font-size: 1.5rem;
  letter-spacing: 0.0625rem;
  color: #f5b301;
}

.ppc-pp .ppc-reviews{
  font-size: 1.1rem;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}

.ppc-pp .ppc-badges{
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: nowrap;
  justify-content: center;
}

.ppc-pp .ppc-badge{
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--ppc-accent, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ppc-pp .ppc-badge i{
  font-size: 1.25rem;
  color: #fff;
  line-height: 1;
}

.ppc-pp .ppc-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Normalize this specific SVG that has a tighter viewBox and appears larger */
.ppc-pp .ppc-badge img[src*="Icon-20-min.svg"]{
  width: 82% !important;
  height: 82% !important;
}

.ppc-pp .ppc-badge span{
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.ppc-pp .ppc-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

.ppc-pp .ppc-price {
    font-weight: 900;
    font-size: 1.6rem;
    color: #111;
    flex: 1;
    max-width: 50%;
    height: auto;
}

.ppc-pp .ppc-cart .button,
.ppc-pp .ppc-cart a.button{
  width: 52px;
  height: 32px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: #ee3b42;
  border: none;
  padding: 0;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  box-shadow: none;
  right: -3px;
  bottom: -3px;
}

.ppc-pp .ppc-cart {
    position: relative;
    z-index: 6;
    flex: 1;
    max-width: 50%;
}

.ppc-pp .ppc-cart .button:before,
.ppc-pp .ppc-cart a.button:before{
  content: "+";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.ppc-pp .ppc-cart .button:after,
.ppc-pp .ppc-cart a.button:after{
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background-color: #fff;
  -webkit-mask-image: url("/wp-content/themes/bricks-child/MPG-icons-svg/Shopping_Cart.svg");
  mask-image: url("/wp-content/themes/bricks-child/MPG-icons-svg/Shopping_Cart.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  display: block;
}

.ppc-pp .ppc-cart .added_to_cart{
  display: none !important;
}

.ppc-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 180ms ease;
}

.ppc-modal.is-visible{
    display: flex;
    opacity: 1;
}

.ppc-modal .ppc-modal-card{
    width: min(28rem, 90vw);
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    text-align: center;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
}

.ppc-modal.is-visible .ppc-modal-card{
    animation: ppc-modal-pop 240ms ease-out forwards;
}

@keyframes ppc-modal-pop{
  from{
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.ppc-modal .ppc-modal-title{
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #111;
}

.ppc-modal .ppc-modal-text{
  font-size: 0.95rem;
  color: #333;
  margin: 0 0 1rem;
}

.ppc-modal .ppc-modal-actions{
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ppc-modal .ppc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #111;
  background: #fff;
  color: #111;
}

.ppc-modal .ppc-btn-primary{
  background: #111;
  color: #fff;
}

.ppc-pp .ppc-cart .button, .ppc-pp .ppc-cart a.button {
    width: 52px;
    min-height: 32px !important;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 8px;
    background: #ee3b42;
    color: #fff;
    border: none;
    padding: 0;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    box-shadow: none;
    right: -3px;
    bottom: -3px;
}

.ppc-pp .ppc-cart .button:before, .ppc-pp .ppc-cart a.button:before{
  font-size: 24px;
}


@media (min-width: 1024px) {
  /* hele kaart */
  .ppc-pp {
    width: 328px !important;
    height: 584px !important;
    box-sizing: border-box;
    padding: 10px;
  }

  .ppc-pp .ppc-inner {
    height: 100%;
    box-sizing: border-box;
    padding: 10px !important;
  }

  /* foto */
  .ppc-pp .ppc-media {
    width: 300px !important;
    height: 248px !important;
    margin: 0 auto 12px;
  }

  /* category badge */
  .ppc-pp .ppc-cat-badge {
    width: 56px !important;
    height: 40px !important;
  }

  .ppc-pp .ppc-cat-badge img {
    width: 32px !important;
    height: 32px !important;
  }

  .ppc-pp .ppc-cat-badge i {
    font-size: 32px !important;
  }

  /* wishlist */
  .ppc-pp .ppc-wish {
    width: 46px !important;
    height: 46px !important;
    font-size: 2.4rem !important;
  }

  /* tekst */
  .ppc-pp .ppc-title {
    font-size: 2.4rem !important;
    line-height: 1.05;
    height: auto !important;
    min-height: 5.2rem;
  }

  .ppc-pp .ppc-desc {
    font-size: 1.6rem !important;
    line-height: 1.35;
    height: auto !important;
    min-height: 4.4rem;
  }

  /* badges */
  .ppc-pp .ppc-badge {
    width: 60px !important;
    height: 60px !important;
  }

  .ppc-pp .ppc-price {
    font-size: 2.8rem !important;
    line-height: 1.1;
  }

  /* BELANGRIJK: cart padding resetten */
  .ppc-pp .ppc-cart {
    width: 100px !important;
    max-width: 100px !important;
    flex: 0 0 100px !important;
    height: 60px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative;
  }

  .ppc-pp .ppc-cart .button,
  .ppc-pp .ppc-cart a.button {
    width: 100px !important;
    height: 60px !important;
    min-height: 60px !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: translate(52px, 23px) }
  }

  .ppc-pp .ppc-cart .button:before,
  .ppc-pp .ppc-cart a.button:before {
    font-size: 34px !important;
    left: 12px !important;
  }

  .ppc-pp .ppc-cart .button:after,
  .ppc-pp .ppc-cart a.button:after {
    width: 54px !important;
    height: 54px !important;
    right: 8px !important;
  }
  
  .tinvwl_add_to_wishlist_button {
    transform: scale(2);
    transform-origin: center;
}
}