/* Ürün rozetleri */
.rbt-product-badge.storefront-product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    max-width: min(220px, calc(100% - 12px));
    padding: 5px 10px;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .14);
}

.storefront-badge--green { background: linear-gradient(135deg, #50e650 0%, #24bd25 100%); }
.storefront-badge--orange-gradient { background: linear-gradient(135deg, #ff7a00 0%, #ff3d00 100%); }
.storefront-badge--red-gradient { background: linear-gradient(135deg, #ff5252 0%, #c91328 100%); }
.storefront-badge--blue-gradient { background: linear-gradient(135deg, #3e8bff 0%, #1e4fc4 100%); }
.storefront-badge--purple-gradient { background: linear-gradient(135deg, #a855f7 0%, #6325c7 100%); }
.storefront-badge--dark-gradient { background: linear-gradient(135deg, #4b5563 0%, #111827 100%); }
.storefront-badge--orange-solid { background: #f97316; }
.storefront-badge--red-solid { background: #dc2626; }
.storefront-badge--blue-solid { background: #2563eb; }
.storefront-badge--purple-solid { background: #7c3aed; }
.storefront-badge--dark-solid { background: #111827; }
.storefront-badge--gold-gradient { background: linear-gradient(135deg, #eab308 0%, #a16207 100%); }
.storefront-badge--pink-gradient { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); }
.storefront-badge--stock { background: linear-gradient(135deg, #4b5563 0%, #111827 100%); }

/* Trendyol'daki siralama rozetlerinden uyarlanan tek, kompakt ornek. */
.rbt-product-badge.storefront-badge--best-seller-circle {
    min-height: 26px;
    padding: 5px 9px 5px 7px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 6px;
    background: #f27a1a;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 2px 7px rgba(120, 55, 8, .18);
}

.rbt-product-badge.storefront-badge--best-seller-circle::before {
    content: "\2605";
    display: inline-grid;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #f27a1a;
    font-size: 10px;
    line-height: 1;
}

/* Resim etiket - PNG/JPG olarak yüklenen etiketler */
.storefront-badge--image {
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    max-width: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.rbt-product-badge.storefront-badge--image img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* Etiket konumlandırma - sol üst (varsayılan) */
.rbt-card-img > .storefront-badge-wrapper,
.rbt-card-img .storefront-badge-wrapper {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

/* Etiket konumlandırma - sağ üst */
.rbt-card-img > .storefront-badge-wrapper.storefront-badge-position-right,
.rbt-card-img .storefront-badge-wrapper.storefront-badge-position-right {
    left: auto;
    right: 12px;
    align-items: flex-end;
}

/* Etiket boyutları - resim etiketler için */
.rbt-product-badge.storefront-badge--image.storefront-badge-size-small img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}
.rbt-product-badge.storefront-badge--image.storefront-badge-size-medium img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}
.rbt-product-badge.storefront-badge--image.storefront-badge-size-large img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
}

/* Etiket boyutları - text etiketler için */
.storefront-product-badge.storefront-badge-size-small {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 12px;
}
.storefront-product-badge.storefront-badge-size-medium {
    min-height: 27px;
    padding: 5px 10px;
    font-size: 14px;
}
.storefront-product-badge.storefront-badge-size-large {
    min-height: 32px;
    padding: 7px 14px;
    font-size: 16px;
}

/* Ürün detay sayfası */
.product-page .storefront-product-badge.product-detail-badge {
    min-height: 30px;
    max-width: min(240px, calc(100% - 32px));
    padding: 6px 11px;
    font-size: 17px;
}

.product-page .storefront-product-badge.product-detail-badge.storefront-badge-size-small {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 13px;
}
.product-page .storefront-product-badge.product-detail-badge.storefront-badge-size-medium {
    min-height: 30px;
    padding: 6px 11px;
    font-size: 17px;
}
.product-page .storefront-product-badge.product-detail-badge.storefront-badge-size-large {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 20px;
}

.product-page .storefront-product-badge.product-detail-badge.storefront-badge--image {
    padding: 0;
    min-height: auto;
}
.product-page .storefront-product-badge.product-detail-badge.storefront-badge--image img {
    width: 80px;
    height: 80px;
}

.product-page .product-detail-badge-list {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 14px;
    display: flex;
    width: max-content;
    max-width: calc(100% - 28px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}

.product-page .product-detail-badge-list .product-detail-badge {
    position: static !important;
    top: auto;
    left: auto;
    max-width: 100%;
}

.catalog-grid[data-layout="4"] .rbt-product-badge.storefront-product-badge,
html[data-catalog-layout="4"] .catalog-grid .rbt-product-badge.storefront-product-badge {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 13px;
}

@media (max-width: 575px) {
    .catalog-card .catalog-discount-corner {
        width: 52px;
        height: 52px;
    }
    .catalog-card .catalog-discount-corner span {
        top: 8px;
        right: 2px;
        min-width: 34px;
        font-size: 11px;
    }
    .rbt-product-badge.storefront-product-badge {
        min-height: 22px;
        padding: 4px 7px;
        border-radius: 5px;
        font-size: 11px;
    }
    .rbt-product-badge.storefront-badge--image img {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .rbt-card-img > .storefront-badge-wrapper,
    .rbt-card-img .storefront-badge-wrapper {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    .rbt-card-img > .storefront-badge-wrapper.storefront-badge-position-right,
    .rbt-card-img .storefront-badge-wrapper.storefront-badge-position-right {
        left: auto;
        right: 8px;
    }
    .rbt-product-badge.storefront-badge--image.storefront-badge-size-small img {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    .rbt-product-badge.storefront-badge--image.storefront-badge-size-medium img {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .rbt-product-badge.storefront-badge--image.storefront-badge-size-large img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
    .product-page .storefront-product-badge.product-detail-badge {
        min-height: 30px;
        max-width: calc(100% - 24px);
        padding: 6px 11px;
        border: 1px solid rgba(255, 255, 255, .72);
        font-size: 15px;
        text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
        box-shadow: 0 5px 13px rgba(15, 23, 42, .22);
    }
    .product-page .storefront-product-badge.product-detail-badge.storefront-badge-size-small {
        min-height: 21px;
        padding: 3px 7px;
        font-size: 11px;
    }
    .product-page .storefront-product-badge.product-detail-badge.storefront-badge-size-medium {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 13px;
    }
    .product-page .storefront-product-badge.product-detail-badge.storefront-badge-size-large {
        min-height: 32px;
        padding: 7px 12px;
        font-size: 16px;
    }
    .product-page .product-detail-badge-list .storefront-product-badge.product-detail-badge {
        max-width: 100%;
    }
    .product-page .product-detail-badge-list {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 24px);
        gap: 5px;
    }
    .storefront-video-badge {
        left: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Video rozeti */
@keyframes storefront-video-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(225, 29, 72, .4); }
    50% { transform: scale(1.12); box-shadow: 0 4px 22px rgba(225, 29, 72, .7); }
}
.storefront-video-badge {
    position: absolute;
    z-index: 5;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e11d48;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(225, 29, 72, .4);
    animation: storefront-video-pulse 2s ease-in-out infinite;
    transition: background .25s ease;
}
.storefront-video-badge:hover,
.storefront-video-badge:focus {
    background: #be123c;
    color: #fff;
    animation: none;
    transform: scale(1.15);
}
.product-video-watch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    background: #e11d48;
    border: 1px solid #e11d48;
    color: #fff !important;
    font-weight: 700;
}
.product-video-watch:hover,
.product-video-watch:focus {
    background: #be123c;
    border-color: #be123c;
    color: #fff !important;
}
