/* MODÜRA R4.59.17.2 — Kalıcı kampanya rozeti ve katalog fiyat/stok satırı stabilizasyonu. */

/* Kampanya türünden bağımsız olarak yönetim panelinde seçilen renkleri uygula. */
.premium-product-card .product-discount-badge,
.premium-product-card .product-discount-badge.gift-promo{
    position:absolute!important;
    z-index:6!important;
    top:12px!important;
    left:12px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:auto!important;
    max-width:calc(100% - 64px)!important;
    min-height:30px!important;
    height:auto!important;
    margin:0!important;
    padding:7px 11px!important;
    border:0!important;
    border-radius:999px!important;
    background:var(--campaign-badge-bg,#e31b23)!important;
    color:var(--campaign-badge-color,#fff)!important;
    box-shadow:0 8px 18px rgba(15,23,42,.12)!important;
    font-size:11px!important;
    font-weight:850!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    pointer-events:none!important;
    transform:none!important;
}

/* Mağaza katalog kartlarında kampanya metni ve stok bilgisi birbirini asla dışarı itmez. */
.premium-store-grid .premium-product-card .store-card-price{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:end!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    min-height:58px!important;
    margin-top:auto!important;
    padding-top:10px!important;
    overflow:hidden!important;
}
.premium-store-grid .premium-product-card .store-card-price.has-stock{
    grid-template-columns:minmax(0,1fr) minmax(68px,82px)!important;
}
.premium-store-grid.grid-2 .premium-product-card .store-card-price.has-stock{
    grid-template-columns:minmax(0,1fr) minmax(82px,98px)!important;
}
.premium-store-grid.grid-3 .premium-product-card .store-card-price.has-stock{
    grid-template-columns:minmax(0,1fr) minmax(76px,90px)!important;
}
.premium-store-grid.grid-4 .premium-product-card .store-card-price.has-stock,
.premium-store-grid.grid-5 .premium-product-card .store-card-price.has-stock{
    grid-template-columns:minmax(0,1fr) minmax(64px,78px)!important;
    gap:6px!important;
}
.premium-store-grid.list .premium-product-card .store-card-price.has-stock{
    grid-template-columns:minmax(0,1fr) minmax(90px,120px)!important;
}

.premium-store-grid .premium-product-card .card-price-gross,
.premium-store-grid .premium-product-card .price-request{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-content:end!important;
    gap:2px!important;
    width:100%!important;
    min-width:0!important;
    min-height:52px!important;
    margin:0!important;
    overflow:hidden!important;
}
.premium-store-grid .premium-product-card .card-price-gross>del{
    display:block!important;
    max-width:100%!important;
    margin:0!important;
    color:#94a0b1!important;
    font-size:8.5px!important;
    font-weight:700!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.premium-store-grid .premium-product-card .card-price-gross>b,
.premium-store-grid .premium-product-card .price-request>b{
    display:block!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    font-size:16px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.premium-store-grid .premium-product-card .card-price-gross>small,
.premium-store-grid .premium-product-card .price-request>small{
    display:block!important;
    box-sizing:border-box!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:18px!important;
    margin:0!important;
    color:#8491a2!important;
    font-size:8px!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow:hidden!important;
}

.premium-store-grid .premium-product-card .store-card-price>.stock-mini{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:52px!important;
    height:52px!important;
    margin:0!important;
    padding:0!important;
    color:#208b57!important;
    font-size:8.5px!important;
    font-weight:850!important;
    line-height:1.16!important;
    text-align:right!important;
    white-space:normal!important;
    overflow:hidden!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
}
.premium-store-grid .premium-product-card .store-card-price>.stock-mini>span{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow:hidden!important;
}
.premium-store-grid .premium-product-card .store-card-price>.stock-mini.out{
    color:#c64a4a!important;
}

/* Dört ve beş kolonlu dar kartlarda tüm fiyat/stok metnini kart içinde tut. */
.premium-store-grid.grid-4 .premium-product-card .card-price-gross>b,
.premium-store-grid.grid-5 .premium-product-card .card-price-gross>b{
    font-size:14px!important;
}
.premium-store-grid.grid-4 .premium-product-card .card-price-gross>small,
.premium-store-grid.grid-5 .premium-product-card .card-price-gross>small,
.premium-store-grid.grid-4 .premium-product-card .price-request>small,
.premium-store-grid.grid-5 .premium-product-card .price-request>small{
    font-size:7.5px!important;
}
.premium-store-grid.grid-4 .premium-product-card .store-card-price>.stock-mini,
.premium-store-grid.grid-5 .premium-product-card .store-card-price>.stock-mini{
    font-size:8px!important;
}

@media(max-width:1024px){
    .premium-product-card .product-discount-badge,
    .premium-product-card .product-discount-badge.gift-promo{
        top:9px!important;
        left:9px!important;
        min-height:26px!important;
        padding:5px 8px!important;
        font-size:9.5px!important;
    }
    .premium-store-grid .premium-product-card .store-card-price.has-stock{
        grid-template-columns:minmax(0,1fr) minmax(64px,82px)!important;
        gap:6px!important;
    }
}

@media(max-width:560px){
    .premium-product-card .product-discount-badge,
    .premium-product-card .product-discount-badge.gift-promo{
        top:7px!important;
        left:7px!important;
        min-height:23px!important;
        padding:4px 7px!important;
        font-size:8.5px!important;
    }
    .premium-store-grid .premium-product-card .store-card-price,
    .premium-store-grid .premium-product-card .store-card-price.has-stock,
    .premium-store-grid.grid-2 .premium-product-card .store-card-price.has-stock,
    .premium-store-grid.grid-3 .premium-product-card .store-card-price.has-stock,
    .premium-store-grid.grid-4 .premium-product-card .store-card-price.has-stock,
    .premium-store-grid.grid-5 .premium-product-card .store-card-price.has-stock{
        grid-template-columns:minmax(0,1fr)!important;
        gap:2px!important;
        min-height:72px!important;
        padding-top:7px!important;
    }
    .premium-store-grid .premium-product-card .card-price-gross,
    .premium-store-grid .premium-product-card .price-request{
        min-height:48px!important;
    }
    .premium-store-grid .premium-product-card .store-card-price>.stock-mini{
        align-items:flex-start!important;
        justify-content:flex-start!important;
        min-height:16px!important;
        height:16px!important;
        font-size:7.5px!important;
        text-align:left!important;
        white-space:nowrap!important;
    }
    .premium-store-grid .premium-product-card .store-card-price>.stock-mini>span{
        white-space:nowrap!important;
        text-overflow:ellipsis!important;
    }
}

/* R4.60.1 — optional product metadata in stable card layout */
.product-card-sku{margin:2px 0 0;color:#7d8b9f;font-size:9px;font-weight:800;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card-short-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:25px;margin:5px 0 0;color:#78879a;font-size:9.5px;line-height:1.35}

/* MODÜRA R4.61.0.16D — liste fiyatı ve tek rozetli çoklu kampanya güvenliği */
.premium-product-card .product-discount-badge,
.premium-product-card .product-discount-badge.gift-promo{
    max-width:calc(100% - 78px)!important;
}
.premium-store-grid .premium-product-card .card-price-reference{
    display:flex!important;
    min-width:0!important;
    align-items:center!important;
    gap:5px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
}
.premium-store-grid .premium-product-card .card-price-reference>del{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#94a0b1!important;
    font-size:8.5px!important;
    font-weight:700!important;
    line-height:1.05!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.premium-store-grid .premium-product-card .card-price-reference>em{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    padding:2px 5px!important;
    border-radius:999px!important;
    background:#fff0f1!important;
    color:#d92539!important;
    font-size:8px!important;
    font-style:normal!important;
    font-weight:900!important;
    line-height:1!important;
}
.premium-store-grid .premium-product-card .card-price-gross>small{
    min-height:0!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}
@media(max-width:560px){
    .premium-store-grid .premium-product-card .card-price-reference{gap:3px!important}
    .premium-store-grid .premium-product-card .card-price-reference>del{font-size:7.5px!important}
    .premium-store-grid .premium-product-card .card-price-reference>em{padding:2px 4px!important;font-size:6.5px!important}
    .premium-store-grid .premium-product-card .card-price-gross>small{font-size:7px!important}
}
@media(max-width:380px){
    .premium-store-grid .premium-product-card .card-price-reference>em{display:none!important}
}

/* MODÜRA R4.61.0.16F — Premium+++ katalog ve değerlendirme görsel düzeltmeleri */
:root{--r461016f-review-orange:#f59e0b;--r461016f-review-muted:#718198}

/* Ürün kartında yalnız yıldız turuncudur; puan ve yorum sayısı sakin gri kalır. */
.premium-product-card .product-card-body .product-card-meta .product-card-rating .product-card-rating-star{
    color:var(--r461016f-review-orange)!important;
    -webkit-text-fill-color:var(--r461016f-review-orange)!important;
    font-size:1.06em!important;
    line-height:1!important;
    text-shadow:0 1px 1px rgba(180,102,0,.16)!important;
    filter:none!important;
}
.premium-product-card .product-card-body .product-card-meta .product-card-rating>strong,
.premium-product-card .product-card-body .product-card-meta .product-card-rating-count{
    color:var(--r461016f-review-muted)!important;
    -webkit-text-fill-color:var(--r461016f-review-muted)!important;
}

/* Ürün detayında beş yıldız net turuncu ve metinlerden dengeli aralıklıdır. */
.premium-product-detail .product-buy-panel .product-detail-rating-badge{
    box-sizing:border-box!important;
    display:inline-flex!important;
    max-width:100%!important;
    min-height:38px!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin:9px 0 5px!important;
    padding:8px 11px!important;
    border:1px solid #e5eaf1!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,#fffef9,#fffbeb)!important;
    color:#26364d!important;
    box-shadow:0 6px 18px rgba(29,43,67,.045)!important;
    line-height:1.2!important;
    text-decoration:none!important;
}
.premium-product-detail .product-buy-panel .product-detail-rating-badge>span{
    display:inline-block!important;
    color:var(--r461016f-review-orange)!important;
    -webkit-text-fill-color:var(--r461016f-review-orange)!important;
    font-size:14px!important;
    line-height:1!important;
    letter-spacing:1.2px!important;
    white-space:nowrap!important;
    text-shadow:0 1px 1px rgba(180,102,0,.12)!important;
}
.premium-product-detail .product-buy-panel .product-detail-rating-badge>strong{
    color:#26364d!important;
    -webkit-text-fill-color:#26364d!important;
    font-weight:900!important;
    white-space:nowrap!important;
}
.premium-product-detail .product-buy-panel .product-detail-rating-badge>small{
    color:#718198!important;
    -webkit-text-fill-color:#718198!important;
    white-space:nowrap!important;
}
.premium-product-detail .product-buy-panel .product-detail-rating-badge>i{
    color:#315bd7!important;
    -webkit-text-fill-color:#315bd7!important;
    font-style:normal!important;
    font-weight:850!important;
    white-space:nowrap!important;
}

/* Tüm kart görsellerinde tek zemin, tek ayırıcı ve kırpmasız contain davranışı. */
.premium-product-card .product-card-media,
.ub-art-products .ub-art-product-cell .product-card-media{
    box-sizing:border-box!important;
    isolation:isolate!important;
    overflow:hidden!important;
    background:#fff!important;
    border-bottom:1px solid #e8edf4!important;
    box-shadow:none!important;
}
.premium-product-card .product-card-media::before,
.premium-product-card .product-card-media::after{
    background:transparent!important;
    box-shadow:none!important;
}
.premium-product-card .product-card-media img,
.premium-product-card .product-card-media.is-fallback img,
.ub-art-products .ub-art-product-cell .product-card-media img{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center!important;
    background:#fff!important;
    border:0!important;
    box-shadow:none!important;
}
.premium-product-card .product-card-media .store-placeholder{
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    place-items:center!important;
    background:#fff!important;
}

/* Mobilde ürün adı tam iki satırda biter; üçüncü satırın piksel sızıntısı engellenir. */
@media(max-width:700px){
    .premium-product-card .product-card-body>h3,
    .ub-art-products .ub-art-product-cell .product-card-body>h3{
        box-sizing:border-box!important;
        display:-webkit-box!important;
        height:2.72em!important;
        min-height:2.72em!important;
        max-height:2.72em!important;
        margin:0!important;
        padding:0!important;
        overflow:hidden!important;
        contain:paint!important;
        color:#17243a!important;
        line-height:1.36!important;
        text-overflow:ellipsis!important;
        -webkit-box-orient:vertical!important;
        -webkit-line-clamp:2!important;
        line-clamp:2!important;
    }
    .premium-product-card .product-card-body>h3>a,
    .ub-art-products .ub-art-product-cell .product-card-body>h3>a{
        display:inline!important;
        color:inherit!important;
        line-height:inherit!important;
    }
    .premium-product-detail .product-buy-panel .product-detail-rating-badge{
        display:grid!important;
        grid-template-columns:auto auto minmax(0,1fr)!important;
        gap:6px 7px!important;
        border-radius:14px!important;
        white-space:normal!important;
    }
    .premium-product-detail .product-buy-panel .product-detail-rating-badge>small{
        min-width:0!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
    }
    .premium-product-detail .product-buy-panel .product-detail-rating-badge>i{
        grid-column:1/-1!important;
    }
}
@media(max-width:380px){
    .premium-product-detail .product-buy-panel .product-detail-rating-badge{
        grid-template-columns:auto minmax(0,1fr)!important;
    }
    .premium-product-detail .product-buy-panel .product-detail-rating-badge>small{
        grid-column:1/-1!important;
    }
}
