.leon-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leon-product-badges .leon-badge {
    background-color: #ffffff;
    color: #212121;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.9em;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.15em;
}

.leon-product-badges .featured-badge {
    color: #0053a5;
}

.leon-product-badges .new-badge {
    color: #212121;
}

.leon-product-badges .akcija-badge {
    color: #ac1311;
}

.leon-product-badges .outlet-badge {
    color: #cb650b;
}

.leon-ustedi-badge {
    position: absolute;
    top: -10px;
    right: 0px;
    z-index: 10;
    pointer-events: none;
}

.leon-ustedi-badge .ustedi-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(60px, 6vw, 75px);
    height: clamp(60px, 6vw, 75px);
    border-radius: 50%;
    background: linear-gradient(145deg, #ff5959 0%, #d61d1d 70%, #9f1010 100%);
    color: #ffffff;
    padding: 10px;
    text-transform: none;
    box-shadow: 0 12px 24px -12px rgba(150, 20, 20, 0.6);
    pointer-events: auto;
}

.leon-ustedi-badge .ustedi-badge__label {
    font-size: 0.8em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.leon-ustedi-badge .ustedi-badge__percent {
    font-size: clamp(0.85em, 1.5vw, 1.1em);
    font-weight: 400;
    white-space: nowrap;
}

.single-product .product-gallery-column {
    position: relative;
}

.single-product .product-gallery-column .leon-product-badges {
    z-index: 2;
}

.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .product-image-wrapper {
    position: relative;
}


/* Bimeo Badge for Catalog/Shop Pages */
.woocommerce ul.products li.product .leon-bimeo-badge,
.product.has-bimeo-cert .leon-bimeo-badge,
.leon-bimeo-badge {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #003366 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.15) !important;
    width: auto !important;
    height: auto !important;
    max-width: 100px !important;
    max-height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.woocommerce ul.products li.product .leon-bimeo-badge img,
.product.has-bimeo-cert .leon-bimeo-badge img,
.leon-bimeo-badge .bimeo-badge-icon,
.leon-bimeo-badge img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.woocommerce ul.products li.product .leon-bimeo-badge span,
.product.has-bimeo-cert .leon-bimeo-badge span,
.leon-bimeo-badge .bimeo-badge-text,
.leon-bimeo-badge span {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #003366 !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* ISO Certification Text for Single Product Page */
.product-iso-certification {
    margin-bottom: 15px;
    margin-top:10px;
    padding: 15px;
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    gap: 20px;
    width:fit-content;
    border-radius:4px;
}

.product-iso-certification .iso-cert-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.product-iso-certification .iso-badge-icon {
    width: 30px;
    height: 30px;
    display: block;
}

.product-iso-certification .iso-badge-label {
    font-size: 0.75em;
    color: #003366;
    text-align: center;
    line-height: 1.2;
}

.product-iso-certification .iso-cert-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    padding-left: 10px;
    border-left: 1px solid #dadada;
}

.product-iso-certification .iso-standard {
    font-size: 0.9em;
    color: #003366;
    line-height: 1.4;
}

.product-iso-certification .iso-type {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
body.single-product .leon-ustedi-badge {
 top:10px;
 right:70px;
}

.leon-ustedi-badge .ustedi-badge {
line-height: 1.05rem;
width: clamp(65px, 6vw, 75px);
    height: clamp(65px, 6vw, 75px);
}

.woocommerce ul.products li.product .leon-bimeo-badge,
.product.has-bimeo-cert .leon-bimeo-badge,
.leon-bimeo-badge {
    bottom: 8px !important;
    left: 8px !important;
    padding: 3px 6px !important;
    max-width: 80px !important;
    max-height: 24px !important;
}

.woocommerce ul.products li.product .leon-bimeo-badge img,
.product.has-bimeo-cert .leon-bimeo-badge img,
.leon-bimeo-badge .bimeo-badge-icon,
.leon-bimeo-badge img {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
}

.woocommerce ul.products li.product .leon-bimeo-badge span,
.product.has-bimeo-cert .leon-bimeo-badge span,
.leon-bimeo-badge .bimeo-badge-text,
.leon-bimeo-badge span {
    font-size: 9px !important;
}

.product-iso-certification {
    margin-bottom: 12px;
    padding: 12px;
    gap: 15px;
}

.product-iso-certification .iso-cert-left {
    min-width: 70px;
}

.product-iso-certification .iso-badge-icon {
    width: 30px;
    height: 30px;
}

.product-iso-certification .iso-badge-label {
    font-size: 0.7em;
}

.product-iso-certification .iso-standard {
    font-size: 0.85em;
}

.product-iso-certification .iso-type {
    font-size: 0.8em;
}
}