/* Общие стили для страниц new и hit */
.shop-page.new-page,
.shop-page.hit-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.shop-page.new-page .container-fluid,
.shop-page.hit-page .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.shop-page.new-page .main-content-wrapper,
.shop-page.hit-page .main-content-wrapper {
    padding: 0 15px;
}

/* Баннер для новинок */
.new-page .new-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 0;
    margin: 0 0 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.new-page .new-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Баннер для хитов */
.hit-page .hit-hero {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border-radius: 0;
    margin: 0 0 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.hit-page .hit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.new-page .new-hero-content,
.hit-page .hit-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1rem !important;
}

.new-page .new-badge .badge,
.hit-page .hit-badge .badge {
    font-size: 1.1em;
    animation: pulse 2s infinite;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.new-page .stat-item,
.hit-page .stat-item {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.new-page .stat-number,
.hit-page .stat-number {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA блоки */
.new-page .new-cta,
.hit-page .hit-cta {
    border: 2px dashed;
    border-radius: 10px;
    padding: 25px;
    margin: 0 15px;
}

.new-page .new-cta {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

.hit-page .hit-cta {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

/* Уведомления */
.new-page .alert-info {
    border-left: 4px solid #17a2b8;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    margin: 0 15px 1rem 15px;
}

.hit-page .alert-danger {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    margin: 0 15px 1rem 15px;
}

/* Анимация для новинок и хитов */
@keyframes new-pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes hit-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.new-highlight {
    animation: new-pulse 2s infinite;
    border-radius: var(--radius-md);
}

.hit-highlight {
    animation: hit-pulse 2s infinite;
    border-radius: var(--radius-md);
}

/* Адаптивность */
@media (max-width: 768px) {
    .shop-page.new-page .container-fluid,
    .shop-page.hit-page .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .shop-page.new-page .main-content-wrapper,
    .shop-page.hit-page .main-content-wrapper {
        padding: 0 10px;
    }

    .new-page .new-hero-content,
    .hit-page .hit-hero-content {
        padding: 2rem 1rem !important;
    }

    .new-page .stat-item,
    .hit-page .stat-item {
        padding: 10px 15px;
        margin: 5px 0;
    }

    .new-page .display-4,
    .hit-page .display-4 {
        font-size: 2rem;
    }

    .new-page .new-cta,
    .hit-page .hit-cta,
    .new-page .alert-info,
    .hit-page .alert-danger {
        margin: 0 10px 1rem 10px;
    }
}

/* Стили для стикеров товаров */
.product-stickers {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-sticker {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: sticker-appear 0.5s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.product-sticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: -1;
}

/* Конкретные стили для разных типов стикеров */
.product-sticker-new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.product-sticker-hit {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.product-sticker-sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.product-sticker-popular {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
}

.product-sticker-limited {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
}

/* Анимация появления стикера */
@keyframes sticker-appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Эффект при наведении на стикер */
.product-sticker:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Для карточек товаров в гриде */
.product-card .product-image-container {
    position: relative;
}

.product-card .product-stickers {
    top: 8px;
    left: 8px;
}

.product-card .product-sticker {
    font-size: 10px;
    padding: 4px 10px;
}

/* Для списка товаров */
.product-list-item .product-image-container {
    position: relative;
}

.product-list-item .product-stickers {
    top: 12px;
    left: 12px;
}

/* Позиционирование бейджа скидки относительно стикеров */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-card .product-badge {
    top: 8px;
    right: 8px;
}

.product-list-item .product-badge {
    top: 12px;
    right: 12px;
}

/* Адаптивность для стикеров */
@media (max-width: 768px) {
    .product-stickers {
        top: 6px;
        left: 6px;
        gap: 3px;
    }

    .product-sticker {
        padding: 4px 8px;
        font-size: 9px;
    }

    .product-card .product-stickers {
        top: 4px;
        left: 4px;
    }

    .product-card .product-sticker {
        font-size: 8px;
        padding: 3px 6px;
    }

    .product-badge {
        top: 6px;
        right: 6px;
    }

    .product-card .product-badge {
        top: 4px;
        right: 4px;
    }
}

/* Специальные стили для страниц новинок и хитов */
.new-page .product-sticker-new,
.hit-page .product-sticker-hit {
    animation: special-sticker-pulse 2s infinite;
}

@keyframes special-sticker-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}