/* style.css - ПОЛНЫЙ ФАЙЛ (затемнен фон + исправлены select) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0a;
    height: 100%;
    width: 100%;
    overflow: hidden;
    color: white;
}

::selection {
    background-color: rgba(0, 99, 199, 0.3);
    color: white;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0063c7; }

.app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== ВИДЕО ФОН ===== */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.5) 40%, rgba(10,10,10,0.85) 100%);
    pointer-events: none;
}

/* ===== GLASS ===== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-button {
    background: rgba(0, 99, 199, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(9, 54, 100, 0.5);
    border-radius: 10px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 99, 199, 0.1);
}
.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
}
.glass-button:hover::before { left: 100%; }
.glass-button:hover {
    background: rgba(0, 99, 199, 0.3);
    border-color: rgba(0, 99, 199, 0.4);
    transform: translateY(-2px);
}
.glass-button:active { transform: scale(0.97); }
.glass-button.danger {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
}
.glass-button.danger:hover {
    background: rgba(255, 59, 48, 0.25);
    border-color: rgba(255, 59, 48, 0.4);
    box-shadow: 0 8px 30px rgba(255, 59, 48, 0.2);
}

/* ===== ШАПКА С ПОИСКОМ ВПРАВО ===== */
.header {
    background: transparent;
    padding: 8px 12px 4px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}
.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 40px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.search-wrapper.expanded {
    width: 260px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 99, 199, 0.3);
}
.search-wrapper .search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    flex-shrink: 0;
    transition: 0.2s;
}
.search-wrapper.expanded .search-icon {
    color: #0063c7;
}
.search-wrapper .search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    padding: 8px 6px;
    flex: 1;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.search-wrapper.expanded .search-input {
    opacity: 1;
}
.search-wrapper .search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.search-wrapper .search-close {
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0;
    transition: 0.2s;
    flex-shrink: 0;
}
.search-wrapper.expanded .search-close {
    opacity: 1;
}
.search-wrapper .search-close:hover {
    color: white;
    transform: rotate(90deg);
}

/* ===== РЕЗУЛЬТАТЫ ПОИСКА ===== */
.search-results-dropdown {
    position: fixed;
    top: 56px;
    right: 12px;
    left: 12px;
    z-index: 50;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.search-results-dropdown.active {
    max-height: 60vh;
    opacity: 1;
    overflow-y: auto;
}
.search-results-dropdown::-webkit-scrollbar { width: 0; }

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    transition: 0.15s;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.search-result-item img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.search-result-item .info {
    flex: 1;
    min-width: 0;
}
.search-result-item .name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .price {
    color: #0063c7;
    font-size: 12px;
    font-weight: 600;
}
.search-result-item .category {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}
.search-no-results {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}
.search-no-results i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.3;
}

/* ===== КОНТЕНТ ===== */
.content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 0;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}
.content::-webkit-scrollbar { width: 0; background: transparent; }

/* ===== ТАБ-БАР (НОВЫЙ ДИЗАЙН - ТОЛЬКО ИКОНКИ) ===== */
.tabbar {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    gap: 4px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    justify-content: space-around;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 6px 0;
    border-radius: 16px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}
.tab-item i {
    font-size: 22px;
    color: rgba(255,255,255,0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-item span {
    display: none;
}
.tab-item.active {
    color: #0063c7;
    background: rgba(0, 99, 199, 0.12);
}
.tab-item.active i {
    color: #0063c7;
    transform: scale(1.1);
}
.tab-item:active {
    transform: scale(0.88);
}
.tab-item::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #0063c7;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-item.active::after {
    width: 20px;
}

.chat-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(16px);
    width: 8px;
    height: 8px;
    background: #0063c7;
    border-radius: 50%;
    display: none;
    border: 2px solid #0a0a0a;
}

/* ===== КАРТОЧКА ТОВАРА (ОДНА В РЯД) ===== */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    border-color: rgba(0, 99, 199, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 99, 199, 0.08);
}
.product-card:active { transform: scale(0.98); }

.product-card .status-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
    backdrop-filter: blur(8px);
}
.status-tag.in-stock {
    background: rgba(52, 199, 89, 0.2);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}
.status-tag.on-order {
    background: rgba(255, 149, 0, 0.2);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.product-content {
    display: flex;
    gap: 14px;
    padding: 14px;
}
.product-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}
.product-info { flex: 1; min-width: 0; }
.product-name {
    font-weight: 600;
    color: white;
    font-size: 15px;
    margin-bottom: 2px;
}
.product-price {
    font-size: 17px;
    font-weight: 700;
    color: #0063c7;
}
.product-spec {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.product-desc-short {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ФИЛЬТР ===== */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}
.filter-bar::-webkit-scrollbar { height: 0; }

.filter-btn {
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s;
}
.filter-btn.active {
    background: rgba(0, 99, 199, 0.2);
    color: #0063c7;
    border-color: rgba(0, 99, 199, 0.3);
}

/* ===== КАТАЛОГ - МЕНЮ ===== */
.catalog-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 0 16px;
}
.catalog-menu-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
}
.catalog-menu-item:hover {
    border-color: rgba(0, 99, 199, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 99, 199, 0.1);
    background: rgba(0, 99, 199, 0.05);
}
.catalog-menu-item:active { transform: scale(0.95); }
.catalog-menu-item .menu-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
}
.catalog-menu-item .label {
    font-size: 14px;
    font-weight: 600;
    color: white;
}
.catalog-menu-item .count {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

/* ===== КАТАЛОГ - ВНУТРИ ===== */
.catalog-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.catalog-section-header .back-btn {
    background: none;
    border: none;
    color: #0063c7;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}
.catalog-section-header .title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex: 1;
}

/* ===== ПОСТЫ ===== */
.post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    margin-bottom: 12px;
    overflow: hidden;
}
.post-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0, 99, 199, 0.3);
}
.post-community {
    font-weight: 600;
    color: white;
    font-size: 14px;
}
.post-time {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}
.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgba(255,255,255,0.03);
    display: block;
}
.post-text {
    padding: 12px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
}
.post-stats {
    display: flex;
    padding: 8px 14px 12px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.post-stats span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    transition: 0.2s;
    user-select: none;
}
.post-stats span:hover { color: rgba(255,255,255,0.7); }
.post-stats i.fa-heart { color: #0063c7; }

/* ===== КОММЕНТАРИИ (ОГРАНИЧЕННАЯ ВЛОЖЕННОСТЬ) ===== */
.comments-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    display: none;
    background: rgba(0,0,0,0.2);
}
.comments-section.show { display: block; }

.comment-item {
    margin: 6px 12px 4px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}
.comment-item.level-1 { margin-left: 24px; }
.comment-item.level-2 { margin-left: 40px; }
.comment-item.level-3 { margin-left: 52px; }

.comment-reply-to {
    font-size: 11px;
    color: rgba(0, 99, 199, 0.6);
    padding-left: 32px;
    margin-bottom: 2px;
}
.comment-reply-to i { font-size: 10px; margin-right: 4px; }

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.comment-avatar-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 99, 199, 0.15);
}
.comment-user {
    font-weight: 600;
    color: #0063c7;
    font-size: 12px;
}
.comment-time {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
}
.comment-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.4;
    padding-left: 32px;
}
.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 3px;
    padding-left: 32px;
}
.comment-action-link {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: 0.2s;
}
.comment-action-link:hover { color: rgba(255,255,255,0.6); }

.comment-reactions {
    display: flex;
    gap: 4px;
    padding-left: 32px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.comment-reaction-badge {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.comment-reaction-badge:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}
.comment-reaction-badge.active {
    border-color: rgba(0, 99, 199, 0.3);
    background: rgba(0, 99, 199, 0.1);
}
.comment-reaction-badge .count {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.comment-form {
    padding: 6px 12px 12px;
}
.comment-reply-bar-inline {
    padding: 4px 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-reply-bar-inline i { cursor: pointer; padding: 4px; }

.comment-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 3px 3px 3px 12px;
}
.comment-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 0;
    font-size: 13px;
    outline: none;
    color: white;
}
.comment-input::placeholder { color: rgba(255,255,255,0.3); }
.comment-send {
    background: #0063c7;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: 0.2s;
}
.comment-send:hover { background: #0052a3; }

/* ===== ЧАТ ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -8px -12px;
    padding: 8px 12px 0;
}
.chat-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.chat-header-bar h2 {
    color: white;
    font-size: 18px;
}
.chat-header-bar h2 i { color: #0063c7; }
.chat-contacts-btn {
    background: rgba(0, 99, 199, 0.15);
    color: #0063c7;
    border: 1px solid rgba(0, 99, 199, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.chat-contacts-btn:hover { background: rgba(0, 99, 199, 0.25); }

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.chat-messages-area::-webkit-scrollbar { width: 0; }

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.chat-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid rgba(0, 99, 199, 0.2);
}
.chat-bubble {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 0;
}
.chat-name {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    color: white;
}
.chat-name i { color: #0063c7; font-size: 12px; }
.chat-text {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    word-break: break-word;
}
.chat-time {
    font-size: 9px;
    color: rgba(255,255,255,0.25);
    margin-top: 3px;
}
.chat-reply-preview {
    background: rgba(255,255,255,0.03);
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    border-left: 3px solid #0063c7;
}
.chat-actions-bottom {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.chat-action-link {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: 0.2s;
}
.chat-action-link:hover { color: rgba(255,255,255,0.6); }

.chat-input-wrapper {
    flex-shrink: 0;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 0 -12px;
    padding: 0 12px;
}
.chat-reply-preview-bar {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.chat-reply-preview-bar i { cursor: pointer; padding: 4px; }
.chat-fixed-input {
    padding: 6px 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    outline: none;
    height: 40px;
    color: white;
    transition: 0.2s;
}
.chat-input:focus { border-color: rgba(0, 99, 199, 0.3); }
.chat-input::placeholder { color: rgba(255,255,255,0.3); }
.chat-send-btn {
    background: #0063c7;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.2s;
}
.chat-send-btn:hover { background: #0052a3; }

/* ===== ЛИЧНЫЙ ЧАТ ===== */
.private-chat-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -8px -12px;
    background: #0a0a0a;
}
.private-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.private-back-btn {
    background: none;
    border: none;
    color: #0063c7;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.private-chat-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
}
.private-chat-status {
    font-size: 11px;
    color: #34c759;
}
.private-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}
.private-message {
    display: flex;
    margin-bottom: 6px;
}
.private-message.my { justify-content: flex-end; }
.private-bubble {
    background: rgba(255,255,255,0.06);
    padding: 8px 14px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    word-break: break-word;
    border: 1px solid rgba(255,255,255,0.04);
}
.private-message.my .private-bubble {
    background: rgba(0, 99, 199, 0.2);
    border-color: rgba(0, 99, 199, 0.2);
    border-bottom-right-radius: 4px;
}
.private-msg-time {
    font-size: 8px;
    margin-top: 2px;
    opacity: 0.5;
    text-align: right;
}
.private-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(20px);
    flex-shrink: 0;
}
.private-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    outline: none;
    height: 40px;
    color: white;
}
.private-chat-input::placeholder { color: rgba(255,255,255,0.3); }
.private-chat-send {
    background: #0063c7;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.2s;
}
.private-chat-send:hover { background: #0052a3; }

/* ===== КОНТАКТЫ (ТОЛЬКО МЕНЕДЖЕРЫ) ===== */
.contacts-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -8px -12px;
    background: #0a0a0a;
}
.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.contacts-header h2 {
    color: white;
    font-size: 18px;
}
.contacts-header h2 i { color: #0063c7; }
.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: 0.2s;
}
.contact-item:hover { background: rgba(255,255,255,0.02); }
.contact-item:active { background: rgba(255,255,255,0.04); }
.contact-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0, 99, 199, 0.15);
}
.contact-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
}
.contact-status {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.contact-last-msg {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-unread {
    width: 8px;
    height: 8px;
    background: #0063c7;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== ПРОФИЛЬ ===== */
.profile-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}
.profile-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}
.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 99, 199, 0.3);
}
.profile-avatar-upload-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #0063c7;
    border: 2px solid #0a0a0a;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.profile-avatar-upload-btn:hover {
    background: #0052a3;
    transform: scale(1.05);
}
.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
}
.profile-id {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    margin-top: 2px;
}

.stats-grid {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}
.stat-card {
    flex: 1;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}
.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #0063c7;
}
.stat-label {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 0 14px;
    margin-bottom: 12px;
}
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.setting-row:last-child { border-bottom: none; }
.setting-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}
.setting-left i {
    font-size: 16px;
    color: #0063c7;
    width: 22px;
}

/* ===== TOGGLE ===== */
.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch.active { background: #0063c7; }
.toggle-switch.active::after { left: 22px; }

/* ===== ОТЗЫВЫ С ФОТО/ВИДЕО ===== */
.review-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 99, 199, 0.2);
}
.review-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}
.review-date {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-left: auto;
}
.review-stars { color: #ff9500; font-size: 14px; letter-spacing: 2px; }
.review-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
}
.review-media {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.review-media img,
.review-media video {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.06);
}
.review-source {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.review-source i { color: #0063c7; }

/* ===== МОДАЛКИ ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.modal.show { display: flex; }

.modal-content {
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    color: white;
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    margin-right: 10px;
}
.modal-header i {
    font-size: 18px;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    transition: 0.2s;
}
.modal-header i:hover { color: white; }
.modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
}

.modal-image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 12px 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}
.slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.slider-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
}
.slider-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    transition: 0.2s;
    opacity: 0.6;
}
.slider-btn:hover { opacity: 1; }
.slider-counter {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.favorite-btn.active { color: #ff3b30; }
.favorite-btn.active i { font-weight: 900; }

.modal-tabs {
    display: flex;
    gap: 4px;
    margin: 8px 0 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-tab {
    padding: 6px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.modal-tab.active {
    color: #0063c7;
    border-bottom-color: #0063c7;
}
.modal-tab-content {
    display: none;
    padding: 6px 0 12px;
}
.modal-tab-content.active { display: block; }
.modal-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
}
.modal-chars {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.modal-chars p {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    justify-content: space-between;
}
.modal-chars .char-label { color: rgba(255,255,255,0.4); }
.modal-chars .char-value { color: rgba(255,255,255,0.8); }

.modal-spec {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}
.modal-price {
    font-size: 22px;
    font-weight: 700;
    color: #0063c7;
    margin-bottom: 4px;
}
.modal-status {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.modal-status.in-stock {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}
.modal-status.on-order {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.2);
}
.modal-condition {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}
.modal-condition .cond-new { color: #34c759; }
.modal-condition .cond-used { color: #ff9500; }

#modalAdminActions { display: none !important; }
#modalAdminActions.show { display: flex !important; gap: 8px; margin-top: 10px; }

.modal-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.buy-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
}

/* ===== ТОСТ ===== */
.toast {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20,20,20,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    z-index: 3000;
    transition: 0.3s;
    white-space: nowrap;
    opacity: 0;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== РЕАКЦИИ ===== */
.reaction-picker {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 40px;
    padding: 6px 16px;
    display: flex;
    gap: 16px;
    z-index: 3000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.reaction-option {
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    transition: 0.15s;
}
.reaction-option:active { transform: scale(1.4); }

/* ===== АДМИН ===== */
.admin-panel-btn {
    background: rgba(0, 99, 199, 0.12);
    color: #0063c7;
    border: 1px solid rgba(0, 99, 199, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.admin-panel-btn:hover { background: rgba(0, 99, 199, 0.2); }
.admin-panel-btn.danger {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.15);
}

.admin-form-group { margin-bottom: 10px; }
.admin-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3px;
}
.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-family: inherit;
    transition: 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.admin-form-group select {
    background: rgba(255,255,255,0.08) 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='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 12px;
    padding-right: 36px;
    color: white;
    cursor: pointer;
}
.admin-form-group select option {
    background: #1a1a1a;
    color: white;
    padding: 8px;
}
.admin-form-group select:focus,
.admin-form-group select:hover {
    border-color: rgba(0, 99, 199, 0.3);
    background-color: rgba(255,255,255,0.12);
}
.admin-form-group select optgroup {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
}
.admin-form-group input:focus,
.admin-form-group textarea:focus {
    border-color: rgba(0, 99, 199, 0.3);
    outline: none;
}
.admin-form-group textarea { min-height: 70px; resize: vertical; }

.admin-form-group input[type="file"] {
    color: rgba(255,255,255,0.6);
    padding: 10px;
}
.admin-form-group input[type="file"]::-webkit-file-upload-button {
    background: rgba(0, 99, 199, 0.2);
    border: 1px solid rgba(0, 99, 199, 0.3);
    border-radius: 8px;
    color: white;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.2s;
}
.admin-form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(0, 99, 199, 0.35);
}

.admin-submit-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}
.admin-delete-btn { color: #ff3b30 !important; font-size: 10px !important; }

/* ===== АДАПТИВ ===== */
@media (max-width: 640px) {
    .header { padding: 6px 10px 2px; }
    .search-wrapper { width: 38px; height: 36px; padding: 0 10px; }
    .search-wrapper.expanded { width: 200px; }
    .search-wrapper .search-input { font-size: 13px; padding: 6px 4px; }
    .search-results-dropdown { top: 48px; right: 8px; left: 8px; }
    .content { padding: 6px 10px 0; }
    
    .tab-item i { font-size: 20px; }
    .tab-item { min-height: 44px; padding: 4px 0; }
    .tab-item.active::after { width: 16px; }
    
    .product-img { width: 64px; height: 64px; }
    .product-name { font-size: 13px; }
    .product-price { font-size: 15px; }
    .post-image { height: 150px; }
    .modal-content { max-width: 100%; margin: 0 8px; max-height: 95%; }
    .modal-image-slider { height: 160px; }
    .catalog-menu { grid-template-columns: 1fr 1fr; gap: 8px; }
    .catalog-menu-item { padding: 12px 8px; }
    .catalog-menu-item .menu-img { height: 80px; }
    .catalog-menu-item .label { font-size: 12px; }
    .private-chat-header { padding: 8px 12px; }
    .comment-item.level-1 { margin-left: 16px; }
    .comment-item.level-2 { margin-left: 24px; }
    .comment-item.level-3 { margin-left: 32px; }
    .review-media img,
    .review-media video { max-width: 80px; max-height: 80px; }
}

@media (max-width: 400px) {
    .search-wrapper { width: 34px; height: 32px; padding: 0 8px; }
    .search-wrapper.expanded { width: 160px; }
    .search-wrapper .search-input { font-size: 12px; }
    .product-content { padding: 10px; gap: 10px; }
    
    .tab-item i { font-size: 18px; }
    .tab-item { min-height: 40px; padding: 3px 0; }
    .tab-item.active::after { width: 14px; }
    
    .modal-image-slider { height: 130px; }
    .catalog-menu { grid-template-columns: 1fr 1fr; }
    .catalog-menu-item .menu-img { height: 60px; }
}
/* Скрываем вкладку "Описание" если нет описания */
.modal-tab[data-tab="desc"][style*="display: none"] {
    display: none !important;
}

/* style.css - добавьте в конец файла */

/* Стили для видео в модалке */
.modal-image-slider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

/* Стили для видео в постах */
.post-card video.post-image {
    max-height: 400px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* Для отзывов видео */
.review-media video {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.06);
}
/* Анимация для кнопки обновления */
#refreshChatBtn .fa-spin {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Индикатор непрочитанных сообщений */
.chat-message.unread {
    border-left: 3px solid #0063c7;
    background: rgba(0, 99, 199, 0.05);
}

.private-message.unread .private-bubble {
    border-left: 3px solid #0063c7;
}

/* Бейдж с количеством непрочитанных */
.chat-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 18px;
    height: 18px;
    background: #ff3b30;
    border-radius: 50%;
    display: none;
    border: 2px solid #0a0a0a;
    font-size: 9px;
    color: white;
    font-weight: 700;
    text-align: center;
    line-height: 14px;
}
/* style.css - ДОПОЛНЕНИЯ для новых функций */

/* Кнопка увеличения фото */
.zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    z-index: 5;
}
.zoom-btn:hover {
    background: rgba(0,99,199,0.5);
    transform: scale(1.05);
}

/* Редактор изображений для менеджера (сортировка и удаление) */
.image-editor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    min-height: 60px;
}
.image-editor-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.image-editor-item:active {
    cursor: grabbing;
    border-color: #0063c7;
    transform: scale(1.02);
}
.image-editor-item.dragging {
    opacity: 0.5;
    border-color: #0063c7;
}
.image-editor-item img,
.image-editor-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-editor-item .remove-img-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,59,48,0.8);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.image-editor-item .remove-img-btn:hover {
    background: #ff3b30;
    transform: scale(1.1);
}
.image-editor-item .drag-handle {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 10px;
}
.image-editor-empty {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
    padding: 12px;
    text-align: center;
    width: 100%;
}

/* Кнопка добавления в панели управления */
.admin-action-feedback {
    transition: all 0.3s;
}
.admin-action-feedback.success {
    background: rgba(52,199,89,0.2) !important;
    border-color: rgba(52,199,89,0.3) !important;
    color: #34c759 !important;
}
.admin-action-feedback.error {
    background: rgba(255,59,48,0.2) !important;
    border-color: rgba(255,59,48,0.3) !important;
    color: #ff3b30 !important;
}

/* Стили для описания с форматированием */
.modal-desc strong {
    color: white;
    font-weight: 700;
}
.modal-desc ul {
    padding-left: 20px;
    margin: 8px 0;
}
.modal-desc ul li {
    list-style-type: disc;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}
.modal-desc ul li::marker {
    color: #0063c7;
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
    .image-editor-item {
        width: 60px;
        height: 60px;
    }
    .zoom-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
        bottom: 8px;
        right: 8px;
    }
}
/* Добавить в style.css */
#productList {
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
}
.product-card {
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
}