/* Merch Page Specific Styles */

/* Предотвращение прокрутки страницы при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Hero Section */
.merch-hero {
    padding: 6rem 0 2rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(255, 0, 255, 0.1));
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Отступ для фиксированного хедера */
}

.merch-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-left {
    text-align: right;
}

.hero-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    line-height: 1.6;
    margin: 0;
}

.hero-center {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: linear-gradient(45deg, #00f2ff, #ff00ff, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-title .subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ccc;
    margin-top: 0.5rem;
}

.hero-right {
    text-align: left;
}

.hero-gif-window {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 242, 255, 0.8), rgba(255, 0, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-gif-window:hover .gif-overlay {
    opacity: 1;
}

.gif-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Filters Section */
/* Анимированная секция фильтров */
.filters-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 242, 255, 0.05) 0%, 
        rgba(255, 0, 255, 0.05) 50%, 
        rgba(0, 242, 255, 0.05) 100%);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.filters {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 180px;
    position: relative;
    animation: filterSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.filter-group:nth-child(1) { animation-delay: 0.1s; }
.filter-group:nth-child(2) { animation-delay: 0.2s; }
.filter-group:nth-child(3) { animation-delay: 0.3s; }

@keyframes filterSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group label {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 1.5rem;
}

.filter-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7);
        transform: translateY(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 242, 255, 0);
        transform: translateY(-50%) scale(1.1);
    }
}

.filter-group select,
.filter-group input {
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.filter-group select::before,
.filter-group input::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s;
}

.filter-group select:hover::before,
.filter-group input:hover::before {
    left: 100%;
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: rgba(0, 242, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 242, 255, 0.2),
        0 0 0 1px rgba(0, 242, 255, 0.1);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #00f2ff;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 0 0 4px rgba(0, 242, 255, 0.1),
        0 8px 25px rgba(0, 242, 255, 0.3);
    transform: translateY(-2px) scale(1.01);
}

/* Стилизация select */
.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f2ff' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Улучшенный слайдер цены */
.price-slider {
    width: 180px;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(0, 242, 255, 0.3) 50%, 
        rgba(255, 0, 255, 0.3) 100%);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.price-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: sliderShine 2s infinite;
}

@keyframes sliderShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.price-slider:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(0, 242, 255, 0.5) 50%, 
        rgba(255, 0, 255, 0.5) 100%);
    transform: scaleY(1.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 242, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.price-slider::-webkit-slider-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 6px 20px rgba(0, 242, 255, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.2);
}

.price-slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

.price-value {
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 242, 255, 0.2), 
        transparent);
    transition: left 0.5s;
}

.price-value:hover::before {
    left: 100%;
}

.price-value:hover {
    background: rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

/* Merch Page */
.merch-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.merch-stats {
    text-align: center;
    margin-bottom: 2rem;
    color: #ccc;
    font-size: 1rem;
    animation: statsFadeIn 0.8s ease-out;
}

@keyframes statsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-merch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.loading-merch p {
    color: #ccc;
    font-size: 1.1rem;
}

.no-merch {
    text-align: center;
    padding: 4rem 0;
    color: #ccc;
}

.no-merch i {
    font-size: 4rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-merch h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

/* Merch Grid */
.merch-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.merch-card-full {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.9), rgba(35, 35, 45, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: cardFadeIn 0.6s ease-out;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.merch-card-full:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 242, 255, 0.2),
        0 0 0 1px rgba(0, 242, 255, 0.3);
    border-color: rgba(0, 242, 255, 0.4);
}

.merch-card-full:hover .merch-image-full img {
    transform: scale(1.03);
}

.merch-card-full:focus {
    outline: 2px solid #00f2ff;
    outline-offset: 2px;
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 242, 255, 0.3),
        0 0 0 1px rgba(0, 242, 255, 0.3);
}

/* Merch Image */
.merch-image-full {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.merch-image-full img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
}

/* Галерея на карточках */
.card-gallery {
    position: relative;
    height: 100%;
    width: 100%;
}

.card-gallery-main {
    position: relative;
    height: 100%;
    width: 100%;
}

.card-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
}

.card-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    z-index: 10;
}

.card-gallery-nav:hover {
    background: rgba(0, 242, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.card-gallery-nav.prev {
    left: 0.5rem;
}

.card-gallery-nav.next {
    right: 0.5rem;
}

.card-gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.card-gallery-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1);
}

.card-gallery-indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.card-gallery-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-gallery-indicator.active {
    background: #00f2ff;
    box-shadow: 0 0 6px rgba(0, 242, 255, 0.5);
}

.card-gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.card-gallery-counter {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* Показываем навигацию при hover на карточке */
.merch-card-full:hover .card-gallery-nav {
    opacity: 1;
}

.merch-placeholder-full {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    border-radius: 10px;
}

.merch-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.merch-type-indicator {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Merch Content */
.merch-content-full {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.merch-title-full {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
    flex: 1;
}

.merch-description-full {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.merch-details-preview {
    margin-bottom: 1.2rem;
}

.detail-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-preview:last-child {
    border-bottom: none;
}

.detail-label {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-value {
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 600;
}

.merch-meta-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.merch-price-full {
    font-size: 1.6rem;
    font-weight: 800;
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.merch-quantity-full {
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-full {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-view-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.btn-view-full:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: modalFadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(30, 30, 40, 0.95));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 242, 255, 0.3);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 450px;
}

.modal-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
}

/* Галерея изображений */
.image-gallery {
    position: relative;
    height: 100%;
    width: 100%;
}

.gallery-main {
    position: relative;
    height: 100%;
    width: 100%;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 242, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 0.8rem;
}

.gallery-nav.next {
    right: 0.8rem;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1);
}

.gallery-indicators {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: #00f2ff;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-counter {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.merch-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    border-radius: 15px;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
    max-height: 450px;
}

.merch-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.modal-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.merch-full-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.merch-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    margin-bottom: 1rem;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 242, 255, 0.1);
}

.detail-label {
    color: #999;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.detail-required {
    color: #ff6b6b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Размеры */
.sizes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.size-option {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.size-option:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

.size-option.selected {
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 242, 255, 0.4);
    transform: scale(1.05);
}

/* Цвета */
.colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-option {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.color-option:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

.color-option.selected {
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 242, 255, 0.4);
    transform: scale(1.05);
}

.merch-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin-top: auto;
}

.merch-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: #00f2ff;
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
}

.merch-quantity-large {
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 500;
}

/* Contacts Modal */
.contacts-modal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contacts-modal .modal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding: 2rem;
}

.contacts-modal .modal-header {
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.contacts-modal .modal-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.contacts-modal .modal-header p {
    color: #ccc;
    font-size: 1.1rem;
    margin: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.contact-photo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(0, 242, 255, 0.3);
}

.contact-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.contact-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 2px;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.contact-info p {
    color: #ccc;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.contact-type {
    display: inline-block;
    background: rgba(0, 242, 255, 0.2);
    color: #00f2ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-members {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00f2ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .merch-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Десктопные стили для лучшей видимости */
@media (min-width: 769px) {
    .size-option,
    .color-option {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        min-width: 50px;
    }
    
    .color-option {
        min-width: 80px;
    }
    
    .sizes-container,
    .colors-container {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .detail-item {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .detail-header {
        margin-bottom: 1rem;
    }
    
    .detail-label {
        font-size: 0.85rem;
    }
    
    .detail-required {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .merch-hero {
        padding: 5rem 0 2rem;
        margin-top: 70px; /* Меньший отступ для мобильных */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-right {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-gif-window {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .filters-section {
        padding: 2rem 0;
    }
    
    .filters {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
        animation-delay: 0.1s !important;
    }
    
    .filter-group label {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
    
    .filter-group label::before {
        width: 6px;
        height: 6px;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .price-slider {
        width: 200px;
        height: 6px;
    }
    
    .price-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .price-value {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .merch-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .merch-card-full {
        margin: 0 0.5rem;
    }
    
    /* Мобильная модалка */
    .modal {
        padding: 0.5rem;
        overflow-y: auto;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        border-radius: 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .modal-image {
        height: 250px;
        flex-shrink: 0;
    }
    
    .modal-info {
        padding: 1.5rem;
        max-height: calc(90vh - 250px - 3rem);
        overflow-y: auto;
        flex: 1;
    }
    
    .modal-info h2 {
        font-size: 1.8rem;
    }
    
    .merch-price-large {
        font-size: 1.8rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contacts-modal .modal-content {
        max-height: 85vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .contacts-modal .modal-body {
        max-height: calc(85vh - 150px);
        overflow-y: auto;
        padding: 1rem;
    }
    
    /* Мобильная галерея */
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .gallery-nav.prev {
        left: 0.5rem;
    }
    
    .gallery-nav.next {
        right: 0.5rem;
    }
    
    .gallery-indicators {
        bottom: 0.5rem;
        gap: 0.3rem;
    }
    
    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
    
    .gallery-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Мобильная галерея на карточках */
    .card-gallery-nav {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .card-gallery-nav.prev {
        left: 0.3rem;
    }
    
    .card-gallery-nav.next {
        right: 0.3rem;
    }
    
    .card-gallery-indicators {
        bottom: 0.3rem;
        gap: 0.3rem;
    }
    
    .card-gallery-indicator {
        width: 5px;
        height: 5px;
    }
    
    .card-gallery-counter {
        top: 0.3rem;
        right: 0.3rem;
        padding: 0.15rem 0.4rem;
        font-size: 0.55rem;
    }
    
    /* Мобильные размеры и цвета */
    .sizes-container,
    .colors-container {
        gap: 0.3rem;
    }
    
    .size-option,
    .color-option {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    /* Мобильные карточки */
    .merch-card-full {
        border-radius: 15px;
    }
    
    .merch-image-full {
        height: 200px;
    }
    
    .merch-content-full {
        padding: 1.2rem;
    }
    
    .merch-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .merch-title-full {
        font-size: 1.2rem;
    }
    
    .merch-type-indicator {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .merch-price-full {
        font-size: 1.4rem;
    }
    
    .btn-view-full {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .merch-hero {
        padding: 4rem 0 2rem;
        margin-top: 60px; /* Еще меньший отступ для очень маленьких экранов */
    }
    
    .filters-section {
        padding: 1.5rem 0;
    }
    
    .filters {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-group label {
        font-size: 0.8rem;
        padding-left: 1rem;
    }
    
    .filter-group label::before {
        width: 5px;
        height: 5px;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .price-slider {
        width: 150px;
        height: 5px;
    }
    
    .price-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .price-value {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .merch-content-full {
        padding: 1rem;
    }
    
    .merch-title-row {
        gap: 0.4rem;
    }
    
    .merch-title-full {
        font-size: 1.1rem;
    }
    
    .merch-type-indicator {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .merch-price-full {
        font-size: 1.3rem;
    }
    
    .modal-info {
        padding: 1rem;
        max-height: calc(90vh - 200px - 2rem);
        overflow-y: auto;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .merch-price-large {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    /* Очень маленькие экраны */
    .modal-image {
        height: 200px;
    }
    
    .merch-image-full {
        height: 180px;
    }
    
    .merch-grid-full {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .merch-card-full {
        margin: 0;
    }
}

/* Дополнительные стили для модальных окон на мобильных устройствах */
@media (max-width: 768px) {
    /* Скрываем footer когда открыт модал */
    .modal-open .footer {
        display: none !important;
    }
    
    /* Предотвращаем горизонтальную прокрутку */
    .modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Убираем отступы у модала на мобилке */
    .modal {
        padding: 0 !important;
    }
    
    /* Убеждаемся, что модальное окно занимает весь экран */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }
    
    /* Правильная прокрутка для модального контента */
    .modal-body {
        max-height: 100vh !important;
        overflow: hidden !important;
    }
    
    .modal-info {
        max-height: calc(100vh - 250px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 480px) {
    .modal-info {
        max-height: calc(100vh - 200px) !important;
    }
} 

/* Order Form Styles */
.order-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.order-form h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.order-form .form-group {
    margin-bottom: 1rem;
}

.order-form label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #00f2ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.order-form input::placeholder,
.order-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.order-summary {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00f2ff;
    border-top: 2px solid rgba(0, 242, 255, 0.3);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.btn-order {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.btn-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Order Form */
@media (max-width: 768px) {
    .order-form {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .order-form h3 {
        font-size: 1.3rem;
    }
    
    .order-form input,
    .order-form textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .summary-item {
        font-size: 0.85rem;
    }
    
    .summary-item.total {
        font-size: 1rem;
    }
    
    .btn-order {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .order-form {
        padding: 0.8rem;
    }
    
    .order-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .order-summary {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .summary-item {
        padding: 0.3rem 0;
        font-size: 0.8rem;
    }
    
    .summary-item.total {
        font-size: 0.9rem;
    }
} 