/* Родовая обертка страницы категорий */
.maincat-container {
    position: relative;
    padding: 30px 24px 80px 24px;
    background-color: #f7f8fa;
    background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Специфичный фоновый декор */
.maincat-bg-glow-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(246, 145, 29, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.maincat-bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -150px;
    background: radial-gradient(circle, rgba(212, 119, 19, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Главный баннер (Hero блок) */
.maincat-hero {
    text-align: center;
    padding: 40px 20px 50px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.maincat-hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 18px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

/* Стилизация контейнера логотипа и картинки внутри */
.maincat-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 20px; /* Фиксированная высота в тон тексту */
}

.maincat-logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.maincat-logo-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #f6911d;
}

.maincat-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #111111;
    line-height: 1.15;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.maincat-hero-subtitle {
    font-family: "Georgia", serif;
    font-style: italic;
    font-weight: 400;
    color: #555555;
    font-size: 38px;
}

.maincat-hero-slogan {
    font-size: 16px;
    font-weight: 500;
    color: #a0a0a0;
    margin: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Специфичная сетка категорий */
.maincat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 220px;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    grid-auto-flow: dense;
}

/* ==========================================================================
   ДЕКОРАТИВНЫЕ МЕЖ-КАТЕГОРИЙНЫЕ СТИЛИ (РАЗНЫЕ ШРИФТЫ)
   ========================================================================== */

.maincat-deco-phrase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 26px;
    height: 100%;
    box-sizing: border-box;
    pointer-events: none;
}

/* 1. Элегантная антиква (Serif) */
.phrase-serif {
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.35;
    color: #4a4a4a;
    border-left: 3px solid #f6911d;
    justify-content: center;
}
.phrase-serif .deco-arrow-down {
    font-family: -apple-system, sans-serif;
    font-style: normal;
    font-size: 26px;
    color: #f6911d;
    margin-bottom: 6px;
    animation: bounceDown 2s infinite ease-in-out;
}

/* 2. Современный моноширинный код-стиль (Monospace) */
.phrase-mono {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    background: rgba(230, 235, 245, 0.4);
    border-radius: 20px;
    border: 1px dashed #ced4da;
    height: calc(100% - 15px);
}
.phrase-mono .deco-code-tag {
    color: #d47713;
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: bold;
}

/* 3. Огромный акцентный блок */
.phrase-accent {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.03em;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.phrase-accent-text {
    position: relative;
    background: linear-gradient(120deg, #111 60%, #f6911d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.phrase-accent .deco-arrow-right {
    -webkit-text-fill-color: #f6911d;
    display: inline-block;
    margin-left: 6px;
    animation: slideRight 1.5s infinite ease-in-out;
}

/* 4. Легкий аккуратный курсив */
.phrase-italic {
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 17px;
    color: #71767e;
    text-align: center;
    justify-content: center;
}

/* Анимации для стрелочек */
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* ========================================================================== */

/* Карточка категории */
.maincat-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    height: 100%;
}

/* Модификаторы для Bento Grid */
@media (min-width: 768px) {
    .maincat-featured-wide {
        grid-column: span 2;
    }
    .maincat-featured-tall {
        grid-row: span 2;
        height: 100%;
    }
}

.maincat-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 12px 30px rgba(212, 119, 19, 0.12);
}

/* Затемняющий оверлей */
.maincat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.maincat-card:hover .maincat-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

/* Текстовое название (плашка) */
.maincat-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: -0.01em;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
}

.maincat-card:hover .maincat-title {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

/* Мобильный адаптив */
@media (max-width: 580px) {
    .maincat-container {
        padding: 20px 16px;
    }

    .maincat-hero-title {
        font-size: 32px;
    }

    .maincat-hero-subtitle {
        font-size: 28px;
    }

    .maincat-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
        gap: 14px;
    }

    .maincat-featured-wide, .maincat-featured-tall {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 180px !important;
    }

    .maincat-deco-phrase {
        display: none !important;
    }

    .maincat-overlay {
        padding: 16px;
    }

    .maincat-title {
        font-size: 18px;
        padding: 8px 14px;
    }
}
/* ==========================================================================
   СТИЛИ ДЛЯ ОСОБОЙ СВЕТЯЩЕЙСЯ КАРТОЧКИ СКИДОК
   ========================================================================== */

.maincat-sale-card {
    background: linear-gradient(135deg, #141517 0%, #1a1c20 100%) !important;
    border: 1px solid rgba(246, 145, 29, 0.2);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.maincat-sale-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    gap: 16px;
}

.maincat-sale-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maincat-sale-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f6911d;
    font-weight: 700;
}

.maincat-sale-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Искаженный прямоугольник с эффектом неонового свечения */
.maincat-sale-badge {
    background: #ffffff;
    color: #f6911d;
    font-size: 36px;
    font-weight: 900;
    padding: 10px 22px;
    white-space: nowrap;
    
    /* Эффект асимметричного искажения */
    transform: rotate(-6deg) skewX(-8deg);
    border-radius: 12px 18px 10px 16px;
    
    /* Мягкое оранжевое свечение наружу и вовнутрь */
    box-shadow: 0 0 20px rgba(246, 145, 29, 0.45), 
                inset 0 0 8px rgba(246, 145, 29, 0.2);
                
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    animation: salePulseGlow 3s infinite ease-in-out;
}

.badge-minus {
    margin-right: 1px;
}

/* Фоновый абстрактный блик внутри карточки */
.maincat-sale-bg-wave {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(246, 145, 29, 0.08) 0%, transparent 70%);
    right: -30px;
    bottom: -30px;
    pointer-events: none;
    z-index: 1;
}

/* Эффекты при наведении */
.maincat-sale-card:hover {
    border-color: rgba(246, 145, 29, 0.5);
    box-shadow: 0 12px 35px rgba(246, 145, 29, 0.15) !important;
}

.maincat-sale-card:hover .maincat-sale-badge {
    /* При наведении искажение слегка усиливается, имитируя пружину */
    transform: rotate(-8deg) skewX(-10deg) scale(1.05);
    box-shadow: 0 0 30px rgba(246, 145, 29, 0.7);
    background: #f6911d;
    color: #ffffff;
}

/* Анимация пульсации свечения для привлечения внимания */
@keyframes salePulseGlow {
    0%, 100% {
        box-shadow: 0 0 18px rgba(246, 145, 29, 0.4), inset 0 0 8px rgba(246, 145, 29, 0.1);
    }
    50% {
        box-shadow: 0 0 28px rgba(246, 145, 29, 0.65), inset 0 0 12px rgba(246, 145, 29, 0.3);
    }
}

/* Адаптивность для мобилок */
@media (max-width: 580px) {
    .maincat-sale-card {
        height: 180px !important; /* В тон остальным мобильным карточкам */
    }
    .maincat-sale-title {
        font-size: 20px;
    }
    .maincat-sale-badge {
        font-size: 32px;
        padding: 8px 18px;
    }
}

