/* Лоадер */
.gemini-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #151515;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gemini-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}
.gemini-loader-spinner {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: url('https://cyberpodium.ru/wp-content/uploads/2023/09/Без-имени-4_result.webp') no-repeat center center;
    background-size: contain;
    animation: spin 0.9s linear infinite;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gemini-loader-spinner.active {
    opacity: 1;
    visibility: visible;
}
/* Лоадер для бесконечной загрузки внизу */
.gemini-bottom-loader {
    display: none;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    z-index: 10;
}
.gemini-bottom-loader.active {
    display: block;
}
.gemini-bottom-loader-spinner {
    width: 40px;
    height: 40px;
    background: url('https://cyberpodium.ru/wp-content/uploads/2023/09/Без-имени-4_result.webp') no-repeat center center;
    background-size: contain;
    animation: spin 0.9s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Контейнер продуктов с позиционированием для лоадера */
.products-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 100px;
    position: relative;
    min-height: 600px;
    z-index: 1;
}
/* Контейнер для изображений */
.images-container1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    max-width: 1240px;
    width: 100%;
    margin: 150px auto 0;
    overflow-x: auto;
    white-space: nowrap;
    position: relative; /* Для корректного позиционирования кнопки */
}
/* Кнопка назад */
.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid #FFD700;
    border-radius: 8px;
    padding: 5px;
    font-family: 'Share Tech Mono', monospace;
    color: #FFD700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 10px; /* Отступ от первого изображения */
    flex-shrink: 0; /* Не сжимается в flex-контейнере */
}
.back-button:hover {
    background: linear-gradient(135deg, #141414, #080808);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.back-button i {
    margin: 0; /* Убираем лишние отступы для иконки */
}
/* Блоки изображений */
.image-item1 {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: flex-end;
    min-width: 130px;
    min-height: 160px;
    transition: background 0.3s ease, transform 0.3s ease;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border-radius: 15px;
    padding: 10px;
    opacity: 0;
    animation: simpleFade 0.5s ease forwards;
    flex-shrink: 0;
    cursor: pointer;
}
/* Увеличиваем изображения */
.image-item1 img {
    width: 100px;
    height: 130px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
/* Простая анимация появления */
@keyframes simpleFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Эффект при наведении */
.image-item1:hover {
    transform: translateY(10px);
    background: linear-gradient(135deg, #080808, #141414);
}
.image-item1:hover img {
    transform: scale(1.1);
}
/* Желтая 3D-линия внизу блока */
.image-item1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: #ffd700;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-item1:hover::after {
    opacity: 1;
}
/* Активная категория */
.image-item1.active {
    border: 2px solid #ffd700;
}
/* Жёлтая граница */
.yellow-border {
    width: 100%;
    max-width: 1240px;
    height: 4px;
    background: #FFFF00;
    margin: 0 auto 20px;
}
/* Сетка продуктов */
.aksessuary-content ul.products {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 60px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}
/* Карточка продукта */
.aksessuary-content ul.products li.product {
    width: 280px;
    height: 460px;
    position: relative; /* Для позиционирования brand-header */
}
.aksessuary-content ul.products li.product .custom-card {
    background: #151515 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 460px;
    z-index: 50;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.3s ease forwards;
    overflow: visible !important;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease; /* Ensure transform is included for smooth animation */
}
.aksessuary-content ul.products li.product .custom-card:hover {
    background: #1a1a1a !important;
    transform: translateY(10px); /* Smooth downward movement on hover */
}
/* Заголовок с логотипом бренда */
.brand-header {
    position: absolute;
    top: -50px;
    width: 100%;
    max-width: 280px;
    height: 40px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #FFD700;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
}
.brand-logo-header {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
}
/* Анимация прилета снизу вверх */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Контейнер для изображения */
.image-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: visible;
    border-radius: 12px;
}
/* Изображение товара */
.product-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 900 / 1200;
    object-fit: contain !important;
    border-radius: 12px;
    display: block;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.3s ease;
}
.aksessuary-content ul.products li.product .custom-card:hover .product-image {
    transform: scale(1.1); /* Image scales up on hover */
}
/* Статус на карточке */
.stock-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px; /* Slightly reduced padding for compactness */
    font-family: 'Share Tech Mono', monospace;
    font-weight: 900; /* Bolder font for stricter look */
    font-size: 0.8rem; /* Slightly smaller for a sharper appearance */
    /* text-transform: uppercase; */
    background: #454141 !important; /* Solid black background */
    border-radius: 50px; /* Sharper corners */
    z-index: 60;
}
.stock-overlay.in-stock {
    color: #00cc00d1; /* Vibrant green for in-stock */
    background: #000000b5 !important; /* Solid black background */
}
.stock-overlay.out-of-stock {
    color: #cc0000d9; /* Vibrant red for out-of-stock */
    background: #000000a3 !important; /* Solid black background */
}
/* Детали продукта */
.custom-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    flex-grow: 1;
    min-height: 140px;
    justify-content: space-between;
}
/* Название товара */
.custom-details .custom-title {
    width: 100%;
    max-width: 260px;
    max-height: 70px; /* Reduced to keep compact with background */
    margin: 0 0 5px 0;
    padding: 5px 10px; /* Added padding for background */
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px; /* Increased for clarity */
    font-weight: 500; /* Bolder for sharper look */
    letter-spacing: 1px; /* Added for better readability */
    color: #FFFFFF !important;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    line-height: 1.15; /* Slightly denser line height */
    background: rgb(0 0 0 / 2%); /* Semi-transparent dark background */
    border: 1px solid #ffffff26; /* Yellow border for elegance */
    border-radius: 5px; /* Rounded corners for background */
}
.custom-details .custom-title a {
    color: #FFFFFF !important;
    text-decoration: none;
}
/* Контейнер для цены и бонусов */
.price-bonus-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 5px 0;
}
/* Цена */
.custom-details .custom-price {
    width: 40%;
    max-width: 150px;
    margin: 0 0 5px 0;
    padding: 5px 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    color: #ffffff !important;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgb(20 20 20);
    border: 1px solid #ffeb3b;
    border-radius: 11px;
}
/* Бонусы */
.custom-details .cyber-bonus {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: #CCCCCC;
    margin: 2px 0 0 0;
    text-align: center;
    max-width: 240px;
}
.custom-details .cyber-bonus a,
.custom-details .cyber-bonus button {
    font-size: 9px;
    padding: 3px 6px;
    line-height: 1.2;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
}
/* Футер */
footer.cybersport-footer {
    position: relative !important;
    z-index: 3000 !important;
    width: 100%;
    background: #151515;
    padding: 20px 0;
    border-top: 2px solid #FFD700;
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    color: #FFFFFF;
}
/* Контент футера */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
/* Ссылки в футере */
.footer-links {
    margin-bottom: 10px;
}
.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #FFD700;
}
/* Текст в футере */
.footer-text {
    font-size: 14px;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .aksessuary-content {
        padding: 10px;
    }
    .products-container {
        max-width: 100%;
        padding: 0 5px 500px;
        min-height: 400px;
    }
    .images-container1 {
        gap: 8px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin: 150px auto 0;
        overflow-x: auto;
    }
    .back-button {
        min-width: 30px;
        min-height: 30px;
        padding: 4px;
        font-size: 12px;
        border-radius: 6px;
        margin-right: 8px;
    }
    .image-item1 {
        min-width: 60px;
        min-height: 80px;
        background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        padding: 5px;
    }
    .image-item1 img {
        width: 60px;
        height: 70px;
        border-radius: 8px;
    }
    .image-item1:hover {
        transform: translateY(8px);
        background: linear-gradient(135deg, #080808, #141414);
    }
    .image-item1:hover img {
        transform: scale(1.1);
    }
    .image-item1::after {
        bottom: -3px;
        height: 2px;
        box-shadow: 0 1px 2px rgba(255, 215, 0, 0.5);
    }
    .aksessuary-content ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0;
    }
    .aksessuary-content ul.products li.product {
        width: 100%;
        height: 300px;
        position: relative; /* Для позиционирования brand-header */
    }
    .aksessuary-content ul.products li.product .custom-card {
        padding: 10px !important;
        border-radius: 8px !important;
        min-height: 300px;
        transition: transform 0.3s ease, background 0.3s ease; /* Ensure transform is included for smooth animation */
    }
    .aksessuary-content ul.products li.product .custom-card:hover {
        transform: translateY(10px); /* Smooth downward movement on hover */
    }
    .aksessuary-content ul.products li.product .custom-card:hover .product-image {
        transform: scale(1.1); /* Image scales up on hover */
    }
    .brand-header {
        top: -40px;
        width: 100%;
        max-width: 100%;
        height: 30px;
        background: rgba(20, 20, 20, 0.9);
        border: 1px solid #FFD700;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 60;
    }
    .brand-logo-header {
        width: 24px;
        height: 24px;
        object-fit: contain;
        border-radius: 50%;
    }
    .image-container {
        width: 100%;
        height: 200px;
        border-radius: 8px;
    }
    .product-image {
        width: 100%;
        height: 100%;
        aspect-ratio: 900 / 1200;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
    .stock-overlay {
        top: 3px;
        right: 3px;
        padding: 2px 4px; /* Reduced padding for compactness */
        font-size: 0.55rem; /* Smaller font for mobile */
        font-weight: 900; /* Bolder font for stricter look */
        background: #000000 !important; /* Solid black background */
        border-radius: 2px; /* Sharper corners */
    }
    .stock-overlay.in-stock {
        color: #00CC00; /* Vibrant green for in-stock */
        background: #000000 !important; /* Solid black background */
    }
    .stock-overlay.out-of-stock {
        color: #CC0000; /* Vibrant red for out-of-stock */
        background: #000000 !important; /* Solid black background */
    }
    .custom-details {
        padding: 8px 0;
        min-height: 90px;
    }
    .custom-details .custom-title {
        font-size: 12px; /* Adjusted for mobile */
        margin: 0 0 3px 0;
        max-width: 160px;
        max-height: 50px; /* Reduced for mobile */
        padding: 3px 6px; /* Reduced padding */
        line-height: 1.15;
    }
    .price-bonus-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 3px 0;
    }
    .custom-details .custom-price {
        font-size: 14px;
        margin: 0 0 3px 0;
        padding: 3px 6px;
        max-width: 160px;
        background: rgb(20 20 20);
        border: 1px solid #ffeb3b;
        border-radius: 3px;
    }
    .custom-details .cyber-bonus {
        font-size: 7px;
        margin: 0;
        max-width: 140px;
    }
    .custom-details .cyber-bonus a,
    .custom-details .cyber-bonus button {
        font-size: 7px;
        padding: 2px 4px;
        line-height: 1.1;
        border-radius: 2px;
        text-decoration: none;
        display: inline-block;
    }
    footer.cybersport-footer {
        position: relative !important;
        padding: 10px 0;
    }
    .footer-content {
        padding: 0 5px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        margin-bottom: 5px;
    }
    .footer-links a {
        font-size: 12px;
        margin: 4px 0;
    }
    .footer-text {
        font-size: 10px;
    }
    .gemini-bottom-loader {
        margin-top: 30px;
    }
}