/* Dorin Sijaj Product Purpose Badges v1.9.10 */

.ds-purpose-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  margin:0 0 8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  line-height:1.1;
  font-weight:850;
  letter-spacing:-.01em;
  white-space:normal;
  box-shadow:0 8px 20px rgba(20,32,51,.055);
  border:1px solid rgba(255,255,255,.72);
}

.ds-purpose-badge__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  background:rgba(255,255,255,.65);
  font-size:12px;
}

.ds-purpose-badge__text{display:block}

/* Custom shop grid */
.mmsgf-card__purpose{
  display:block;
  margin:0 0 6px;
}

.mmsgf-card__purpose .ds-purpose-badge{
  margin:0;
}

.mmsgf-card .ds-purpose-badge{
  position:relative;
  z-index:3;
}

/* Custom single product layout */
.dsple-purpose{
  margin:0 0 10px;
}

.dsple-purpose .ds-purpose-badge--single{
  margin:0;
}

.single-product .ds-purpose-badge--single,
.dsple-purpose .ds-purpose-badge--single{
  padding:9px 13px;
  font-size:13px;
  line-height:1.25;
  border-radius:16px;
  font-weight:800;
}

/* Colors */
.ds-purpose-badge--water{background:#E8F4FF;color:#2762AC}
.ds-purpose-badge--grease{background:#FFF1E7;color:#E56A00}
.ds-purpose-badge--oven{background:#FFF1E7;color:#D35400}
.ds-purpose-badge--glass{background:#EEF8FF;color:#0F8BC9}
.ds-purpose-badge--floor{background:#F3F8FF;color:#2762AC}
.ds-purpose-badge--multi{background:#EEF9F1;color:#1F8A4C}
.ds-purpose-badge--set{background:#FFF8E8;color:#9A6500}
.ds-purpose-badge--tools{background:#F3F6FA;color:#334155}

@media(max-width:767px){
  .ds-purpose-badge--loop{font-size:10.5px;padding:6px 9px}
  .single-product .ds-purpose-badge--single,
  .dsple-purpose .ds-purpose-badge--single{font-size:12.5px}
}

.ds-purpose-badge--home{background:#EEF9F1;color:#1F8A4C}

/* Product tabs integration */
.mmpt-card__purpose{
  display:block;
  margin:0 0 7px;
}
.mmpt-card__purpose .ds-purpose-badge{
  margin:0;
}
.mmpt-card .ds-purpose-badge{
  position:relative;
  z-index:3;
}


/* v2.0.8 — explicit visibility after drawer scoping fix */
.mmsgf-card__purpose .ds-purpose-badge,
.dsple-purpose .ds-purpose-badge,
.single-product .ds-purpose-badge--single,
.mmpt-card__purpose .ds-purpose-badge{
  display:inline-flex!important;
}


/* v2.0.9 — explicit purpose badge visibility */
.mmsgf-card__purpose .ds-purpose-badge,
.dsple-purpose .ds-purpose-badge,
.single-product .ds-purpose-badge--single,
.mmpt-card__purpose .ds-purpose-badge{
  display:inline-flex!important;
}


/* v2.1.2 — force visible purpose badges */
.dsple-purpose{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}

.dsple-purpose .ds-purpose-badge,
.mmsgf-card__purpose .ds-purpose-badge,
.mmpt-card__purpose .ds-purpose-badge,
.products .ds-purpose-badge{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
}


/* v2.5.2 — product grid image + price/CTA alignment */
.mmsgf-card,
.mmpt-card{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
}

.mmsgf-card__image{
    height:260px !important;
    border-radius:22px 22px 0 0 !important;
    background:#fff !important;
    overflow:hidden !important;
}

.mmsgf-card__image img,
.mmsgf-card__image picture,
.mmsgf-card__image a{
    width:100% !important;
    height:100% !important;
}

.mmsgf-card__image img{
    display:block !important;
    object-fit:cover !important;
    object-position:center !important;
}

.mmpt-card__image-link{
    display:block !important;
    width:100% !important;
    aspect-ratio:1 / 1 !important;
    border-radius:20px !important;
    overflow:hidden !important;
    background:linear-gradient(180deg,#fbfdff 0%,#eef6fd 100%) !important;
}

.mmpt-card__image-link img,
.mmpt-card__img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
    transition:transform .3s ease !important;
}

.mmsgf-card__body,
.mmpt-card__body,
.mmsgf-card__content,
.mmpt-card__content{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    height:100% !important;
}

.mmsgf-card__title,
.mmpt-card__title{
    min-height:44px !important;
}

.mmsgf-card__excerpt,
.mmpt-card__excerpt,
.mmsgf-card__description,
.mmpt-card__description{
    min-height:42px !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
}

.mmsgf-card__price,
.mmpt-card__price,
.mmsgf-card .price,
.mmpt-card .price{
    margin-top:auto !important;
    min-height:34px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
}

.mmsgf-card__button,
.mmpt-card__button,
.mmsgf-card .button,
.mmpt-card .button,
.mmsgf-card a.add_to_cart_button,
.mmpt-card a.add_to_cart_button{
    margin-top:12px !important;
    width:100% !important;
    min-height:52px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

@media(max-width:767px){
    .mmsgf-card__image{
        height:175px !important;
        border-radius:18px 18px 0 0 !important;
    }

    .mmsgf-card__title,
    .mmpt-card__title{
        min-height:40px !important;
    }

    .mmsgf-card__excerpt,
    .mmpt-card__excerpt,
    .mmsgf-card__description,
    .mmpt-card__description{
        min-height:38px !important;
    }

    .mmsgf-card__button,
    .mmpt-card__button,
    .mmsgf-card .button,
    .mmpt-card .button,
    .mmsgf-card a.add_to_cart_button,
    .mmpt-card a.add_to_cart_button{
        min-height:48px !important;
    }
}
