/* Стили для цен из функции displayPrices */
.price, .new-price {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #0f172a; /* slate-900 */
    line-height: 1.2;
}

.old-price {
    display: block;
    font-size: 13px;
    color: #94a3b8; /* slate-400 */
    text-decoration: line-through;
    margin-bottom: 2px;
}

.prices_free {
    font-size: 18px;
    font-weight: bold;
    color: #10b981; /* изумрудный для бесплатного */
}

/* Главный контейнер из функции shop_element */
.cart-actions-wrapper {
    display: flex;
    flex-wrap: wrap; /* Позволяет переносить кнопки на новую строку */
    gap: 8px;
    width: 100%;
}

/* 1. Счетчик количества (отправляем в верхний ряд к цене) */
.qty-selector {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 2px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 0.75rem;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

/* 2. Кнопки (отправляем в нижний ряд) */
.btn-add-cart, .btn-buy-now {
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Кнопка корзины (иконка) */
.btn-add-cart {
    width: 70px;
    background-color: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
}

.btn-add-cart .btn-text {
    display: none !important; /* Прячем текст "В корзину" */
}

/* Кнопка "Купить" (основная) */
.btn-buy-now {
    flex: 1; /* Растягивается на всю ширину под ценой */
    background-color: #0f172a;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.btn-buy-now:hover {
    background-color: #2563eb;
}

/* Специфический фикс: заставляем кнопки занять 100% ширины под ценой */
.qty-container .cart-actions-wrapper .btn-add-cart,
.qty-container .cart-actions-wrapper .btn-buy-now {
    margin-top: 4px; /* Отступ от верхнего ряда (цены) */
}






.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #e2e8f0;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.badge-success {
    background-color: #22c55e;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

.badge-blue {
    background-color: #3b82f6;
    color: white;
}

.badge-purple {
    background-color: #8b5cf6;
    color: white;
}

.stat-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #22c55e;
}

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.game-tag {
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    color: #475569;
    transition: all 0.2s ease;
}
.game-tag:hover {
    background: #2563eb;
    color: white;
}


/* ===== СБРОС ТОЛЬКО ДЛЯ КОНТЕЙНЕРА ===== */
#post_content,
#post_content * {
    box-sizing: border-box;
}

/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
#post_content {
    max-width: 100%;
    font-family: inherit; /* берём шрифт от родителя */
    line-height: 1.6;
    color: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== ЗАГОЛОВКИ ===== */
#post_content h1,
#post_content h2,
#post_content h3,
#post_content h4,
#post_content h5,
#post_content h6 {
    margin: 1.5em 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

#post_content h1 { font-size: 2em; }
#post_content h2 { font-size: 1.75em; }
#post_content h3 { font-size: 1.5em; }
#post_content h4 { font-size: 1.25em; }
#post_content h5 { font-size: 1.1em; }
#post_content h6 { font-size: 1em; text-transform: uppercase; }

/* ===== ТЕКСТ ===== */
#post_content p {
    margin: 0 0 1.25em 0;
}

#post_content strong {
    font-weight: 700;
}

#post_content em {
    font-style: italic;
}

#post_content small {
    font-size: 0.875em;
    opacity: 0.8;
}

#post_content mark {
    background: #fcf8e3;
    padding: 0.2em 0.3em;
    border-radius: 0.2em;
}

#post_content del {
    text-decoration: line-through;
    opacity: 0.7;
}

#post_content ins {
    text-decoration: underline;
    background: rgba(0, 255, 0, 0.1);
}

#post_content sub,
#post_content sup {
    font-size: 0.75em;
    line-height: 0;
}

/* ===== ЦИТАТЫ ===== */
#post_content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #ddd;
    background: rgba(0, 0, 0, 0.02);
    font-style: italic;
    color: inherit;
}

#post_content blockquote p:last-child {
    margin-bottom: 0;
}

#post_content q {
    quotes: "«" "»" "„" "“";
    font-style: italic;
}

#post_content q::before { content: open-quote; }
#post_content q::after { content: close-quote; }

/* ===== СПИСКИ ===== */
#post_content ul,
#post_content ol {
    margin: 1em 0 1.5em 1.5em;
    padding: 0;
}

#post_content li {
    margin: 0.5em 0;
    line-height: 1.5;
}

#post_content li > ul,
#post_content li > ol {
    margin: 0.3em 0 0.3em 1.5em;
}

#post_content ul > li {
    list-style-type: disc;
}

#post_content ul > li > ul > li {
    list-style-type: circle;
}

#post_content ul > li > ul > li > ul > li {
    list-style-type: square;
}

#post_content ol > li {
    list-style-type: decimal;
}

#post_content ol > li > ol > li {
    list-style-type: lower-alpha;
}

#post_content ol > li > ol > li > ol > li {
    list-style-type: lower-roman;
}

/* ===== ССЫЛКИ ===== */
#post_content a {
    color: #0066cc;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

#post_content a:hover {
    opacity: 0.8;
    text-decoration: none;
}

#post_content a:visited {
    color: #663399;
}

/* ===== ТАБЛИЦЫ ===== */
#post_content table {
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.95em;
}

#post_content th,
#post_content td {
    padding: 0.75em;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

#post_content th {
    font-weight: 700;
    background: rgba(0, 0, 0, 0.03);
}

#post_content tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.01);
}

#post_content caption {
    padding: 0.5em;
    font-weight: 600;
    caption-side: bottom;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
#post_content img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

#post_content figure {
    margin: 1.5em 0;
    text-align: center;
}

#post_content figcaption {
    margin-top: 0.5em;
    font-size: 0.875em;
    opacity: 0.7;
    font-style: italic;
}

/* ===== КОД ===== */
#post_content code,
#post_content kbd,
#post_content samp,
#post_content pre {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.3em;
}

#post_content code,
#post_content kbd,
#post_content samp {
    padding: 0.2em 0.4em;
}

#post_content pre {
    padding: 1em;
    overflow-x: auto;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#post_content pre code {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: inherit;
}

#post_content kbd {
    background: #333;
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    box-shadow: 0 2px 0 #111;
}

/* ===== ГОРИЗОНТАЛЬНАЯ ЛИНИЯ ===== */
#post_content hr {
    margin: 2em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.2), transparent);
}

/* ===== ПОДСТРОЧНЫЕ ПРИМЕЧАНИЯ ===== */
#post_content .footnote {
    font-size: 0.875em;
    opacity: 0.8;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

/* ===== АДРЕС, ABBR ===== */
#post_content address {
    font-style: italic;
    margin: 1em 0;
    padding: 0.5em 1em;
    background: rgba(0, 0, 0, 0.02);
}

#post_content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* ===== ВРЕМЯ ===== */
#post_content time {
    font-weight: 500;
    opacity: 0.8;
}

/* ===== ВИДЕО, АУДИО ===== */
#post_content video,
#post_content audio {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

/* ===== ПРОГРЕСС ===== */
#post_content progress {
    width: 100%;
    height: 1.5em;
    margin: 0.5em 0;
}

/* ===== ДЕТАЛИ ===== */
#post_content details {
    margin: 1em 0;
    padding: 0.5em 1em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.3em;
}

#post_content summary {
    font-weight: 600;
    cursor: pointer;
}

#post_content details[open] summary {
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

/* ===== ВЫНОСКИ ===== */
#post_content aside {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5em;
    font-size: 0.95em;
}

/* ===== ЧИСТКА ОТСТУПОВ ===== */
#post_content h1:first-child,
#post_content h2:first-child,
#post_content h3:first-child,
#post_content h4:first-child,
#post_content h5:first-child,
#post_content h6:first-child {
    margin-top: 0;
}

#post_content :last-child {
    margin-bottom: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    #post_content {
        font-size: 16px; /* фиксируем для мобильных, чтобы не было слишком мелко */
    }

    #post_content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #post_content blockquote {
        margin-left: 0;
        margin-right: 0;
        padding: 0.75em 1em;
    }

    #post_content pre {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

/* Стиль для активной миниатюры */
.gallery-container .active-thumb {
    border-color: #3b82f6; /* indigo-500 или твой основной цвет */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    transform: scale(0.95);
    opacity: 0.8;
}

/* Добавьте эти стили в ваш CSS файл */
@media (min-width: 1024px) { /* Только на десктопах */
    .lg\:sticky-column {
        position: sticky;
        top: 2rem; /* Отступ от верхнего края при скролле */
        align-self: flex-start;
        max-height: calc(100vh - 4rem); /* Чтобы не упиралось в низ экрана */
        overflow-y: auto; /* Скролл внутри колонки если контент не влезает */
    }

    /* Скрываем скролл для Chrome/Safari (опционально) */
    .lg\:sticky-column::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
}


a {
    transition: 0.3s;
}
a:hover {
    color: #2196F3;
}