/* Курсор pointer для заблюренных изображений */
.devicesSlider-image,
.homeDevicesShowcaseSlider img,
.devicesSlider img,
.swiper-slide img,
.homePage-devicesHero img,
.homeDevicesShowcase-sections img,
.deviceShowcaseSlide img,
.productsTable-imageCell img,
.stockPage img,
.productsList img,
.product-item img,
.products-item img,
.product-image,
.productPageMain-image,
.productPageMain img:not(.describeSection-image),
.productPage img:not(.describeSection-image),
.cart img,
.cartPage img,
.cart-item img,
.homeIntro-image {
    cursor: pointer;
    pointer-events: auto !important;
}

/* Блюр для изображений - ПРИМЕНЯЕТСЯ СРАЗУ через CSS */
/* Блюрим слайдеры на главной */
.devicesSlider-image,
.homeDevicesShowcaseSlider img,
.devicesSlider img,
.swiper-slide img,
.homePage-devicesHero img,
/* Блюрим секции витрины устройств */
.homeDevicesShowcase-sections img,
.deviceShowcaseSlide img,
/* Блюрим товары на странице остатков */
.productsTable-imageCell img,
.stockPage img,
/* Блюрим товары на странице продуктов */
.productsList img,
.product-item img,
.products-item img,
.product-image,
/* Блюрим страницу отдельного продукта */
.productPageMain-image,
.productPageMain img:not(.describeSection-image),
.productPage img:not(.describeSection-image),
/* Блюрим товары в корзине */
.cart img,
.cartPage img,
.cart-item img,
/* Блюрим баннеры */
.homeIntro-image {
    filter: blur(15px) brightness(0.95);
    transition: filter 0.5s ease;
    user-select: none;
}

/* НЕ блюрим логотипы и описания разделов */
.ageAgreementForm-logo,
.describeSection-image,
img[alt*="logo" i],
img[alt*="Logo" i],
img[src*="logo" i] {
    filter: none !important;
}

/* Класс для снятия блюра */
img.age-blur-removed {
    filter: none !important;
}

/* Убеждаемся, что логотип в модалке не блюрится */
.ageAgreementForm-logo {
    filter: none !important;
    cursor: default !important;
}

/* Компактная модалка для снятия блюра */
.imageUnlockModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none; /* По умолчанию скрыта */
    align-items: center;
    justify-content: center;
}

.imageUnlockModal[hidden] {
    display: none !important;
}

.imageUnlockModal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 0;
}

.imageUnlockModal-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 90%;
    pointer-events: auto;
}

.imageUnlockModal-body {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.imageUnlockModal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.imageUnlockModal-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.imageUnlockModal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.imageUnlockModal-confirm,
.imageUnlockModal-cancel {
    min-width: 150px;
    padding: 0.75rem 1.5rem;
}


/* Улучшенная модалка возрастного соглашения */
.ageAgreementPosition {
    backdrop-filter: blur(10px);
    z-index: 9999 !important;
}

.ageAgreementForm {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ageAgreementForm-logo {
    margin-bottom: 1.5rem;
}

.ageAgreementForm-text {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: #333;
}

.ageAgreementSubmit {
    width: 100%;
    max-width: 350px;
    margin-top: 1.5rem;
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ageAgreementSubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ageAgreementAside {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 0.5rem;
}

.ageAgreementAside-title {
    margin-bottom: 1rem;
    color: #333;
}

.ageAgreementAside-text {
    color: #666;
    margin: 0.5rem 0;
}
