.product-tag { display: inline-block; box-sizing: border-box; max-width: 100%; padding: 6px 9px; border: 1px solid #0000000f; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
/* Badges stay in the grid flow so long labels can grow the photo area instead of being clipped. */
.shop-product-card .proizvod-up { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; aspect-ratio: auto; }
.shop-product-card .proizvod-up::before { content: ''; grid-area: 1 / 1; padding-top: 100%; pointer-events: none; }
.shop-product-card .parent-od-swippera { position: absolute; inset: 0; }
.shop-product-card .product-card-badges { grid-area: 1 / 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-self: start; gap: 4px; min-width: 0; max-width: calc(100% - 72px); margin: 12px 60px 12px 12px; pointer-events: none; }
.shop-product-card .product-card-badges .proizvod-up-text { position: static; inset: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.product-detail .detail-product-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 4px; }
@media(max-width:767px) {
    .shop-product-card .product-card-badges { gap: 3px; max-width: calc(100% - 55px); margin: 8px 47px 8px 8px; }
    .shop-product-card .product-card-badges .product-tag { padding: 4px 6px; font-size: 10px; }
}
