/* Compiled template scope: .pg-template */
/* 18+ yaş doğrulama: kart/galeri blur + sayfa üstü onay çubuğu */

.pg-template .product-card.is-age-blurred .product-card__img,
.pg-template .product-gallery.is-age-blurred .product-gallery__frame img,
.pg-template .product-gallery.is-age-blurred .product-gallery__thumb img {
    filter: blur(24px);
    transform: scale(1.08);
    user-select: none;
}

/* card.css'in hover'da filter'ı sıfırlayan kuralını (saturate/contrast)
   ezmek için aynı özgüllükte + is-age-blurred class'ı ile daha spesifik
   bir seçici — blur hover'da kaybolmamalı. */
.pg-template .product-card.is-age-blurred:hover .product-card__img {
    filter: blur(24px);
    transform: scale(1.08);
}

/* Anasayfa "Öne Çıkanlar" vitrini (h-spot--editorial), ortadaki (.is-center)
   kartın görseline kendi saturate/contrast filter'ını basıyor ve bu kural
   4 class'lı seçiciyle (.is-age-blurred'in 3 class'lı seçicisinden daha
   spesifik) blur'u eziyordu — 18+ ürün vitrin ortasına gelince net
   görünüyordu. Buradaki seçici vitrinin kendi seçicisiyle aynı özgüllükte
   ama .is-age-blurred'i de içerdiği için kazanır. */
.pg-template .h-spot--editorial .h-spot__item.is-center .product-card.is-age-blurred .product-card__img,
.pg-template .h-spot--editorial .h-spot__item.is-center .product-card.is-age-blurred .product-card__media img {
    filter: blur(24px) !important;
    transform: scale(1.08);
    /* spotImageArrive keyframe'i filter'ı 0%/100% karelerinde ayrıca
       belirlediği için animasyonlar bu !important'ı da ezer — geliş
       animasyonunu 18+ kartlarda tamamen kapat. */
    animation: none !important;
}

/* "Öne Çıkan" vitrininde ortadaki kartın kendi ::before pill'i de sol üstte
   (top:14px; left:14px) — age-badge ile aynı köşede çakışıyordu (özellikle
   mobilde). Sadece bu vitrin bağlamında age-badge'i sağ üste taşı. */
.pg-template .h-spot--editorial .h-spot__item .product-card__age-badge {
    top: 14px;
    left: auto;
    right: 14px;
}

.pg-template .product-card.is-age-blurred .product-card__fav,
.pg-template .product-card.is-age-blurred .product-card__compare {
    display: none;
}

.pg-template .is-age-blurred .product-gallery__zoom,
.pg-template .is-age-blurred .product-gallery__nav {
    pointer-events: none;
    opacity: .35;
}

/* --- Kart rozeti: mevcut frosted-glass pill diliyle birebir (bkz. .product-card__preowned-badge) --- */
.pg-template .product-card__age-badge {
    position: absolute;
    z-index: 6;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 1.9rem;
    padding: .32rem .72rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 23, 19, .14);
    background: rgba(255, 255, 255, .88);
    color: var(--color-text);
    font-size: .68rem;
    line-height: 1;
    letter-spacing: .04em;
    font-weight: 700;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.pg-template .product-card__age-badge svg {
    flex-shrink: 0;
    color: var(--color-brand);
}

/* --- Onay çubuğu: kompakt tek satır alert, UI kit token/buton sınıfları --- */
.pg-template .age-gate-banner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-brand);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(42, 38, 35, .04);
}

.pg-template .age-gate-banner__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--color-brand-subtle);
    color: var(--color-brand-text);
}

.pg-template .age-gate-banner__body {
    flex: 1 1 auto;
    min-width: 0;
}

.pg-template .age-gate-banner__title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold, 600);
}

.pg-template .age-gate-banner__desc {
    margin: 2px 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

.pg-template .age-gate-banner__form {
    flex-shrink: 0;
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 640px) {
    .pg-template .age-gate-banner {
        flex-wrap: wrap;
    }

    .pg-template .age-gate-banner__form {
        width: 100%;
        flex-wrap: wrap;
        padding-left: 0;
    }

    .pg-template .age-gate-banner__form .btn {
        flex: 1 1 100%;
        white-space: normal;
        text-align: center;
    }
}
