* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--tg-theme-bg-color, #1a1a1a);
    color: var(--tg-theme-text-color, #ffffff);
    padding: 16px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Блокировка скролла при открытых панелях */
body.panel-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ==================== ШАПКА ==================== */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    width: 100%;
}

.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

.logo {
    height: 90px;
    width: auto;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    cursor: default;
    transition: transform 0.2s;
    pointer-events: none;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #ffffff);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
}

.orders-icon, .admin-icon, .wishlist-icon, .cart-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 30px;
}

.orders-icon:hover, .admin-icon:hover, .wishlist-icon:hover, .cart-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.orders-icon:active, .admin-icon:active, .wishlist-icon:active, .cart-icon:active {
    transform: scale(0.95);
}

.wishlist-icon {
    color: #ff6b6b;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--tg-theme-button-color, #40a7e3);
    color: var(--tg-theme-button-text-color, #ffffff);
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== ПОИСК И СОРТИРОВКА ==================== */
.search-sort {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 10px;
    padding-right: 4px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 30px;
    background: var(--tg-theme-secondary-bg-color, #333333);
    color: var(--tg-theme-text-color, #ffffff);
    font-size: 16px;
    outline: none;
    max-width: 200px;
}

.sort-select {
    padding: 12px 16px;
    border: none;
    border-radius: 30px;
    background: var(--tg-theme-secondary-bg-color, #333333);
    color: var(--tg-theme-text-color, #ffffff);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    flex: 2;
    min-width: 140px;
    max-width: 180px;
}

/* ==================== КАТЕГОРИИ ==================== */
.categories-container {
    margin-bottom: 20px;
}

.categories-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.categories-row:first-child {
    margin-bottom: 8px;
}

.category-chip {
    background: var(--tg-theme-secondary-bg-color, #333333);
    color: var(--tg-theme-text-color, #ffffff);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
    flex-shrink: 0;
}

.category-chip.active {
    background: var(--tg-theme-button-color, #40a7e3);
    color: var(--tg-theme-button-text-color, #ffffff);
    opacity: 1;
}

/* Стиль для категории Комплекты */
.category-chip.kits-chip {
    background: #b8860b;
    color: #ffffff;
}

.category-chip.kits-chip.active {
    background: #daa520;
}

/* ==================== СКЕЛЕТОН ЗАГРУЗКИ ==================== */
.skeleton-card {
    background: var(--tg-theme-secondary-bg-color, #333333);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    animation: pulse 1.5s infinite;
}

.skeleton-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #444444;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 16px;
    background: #444444;
    border-radius: 8px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ==================== КАРТОЧКИ ТОВАРОВ ==================== */
.product-card {
    background: var(--tg-theme-secondary-bg-color, #333333);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 0.3s ease;
}

.product-card:active {
    transform: scale(0.98);
}

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

.product-card.added {
    animation: pulseAdded 0.3s ease;
}

@keyframes pulseAdded {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 5px rgba(76, 175, 80, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.product-image .image-loading {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--tg-theme-button-color, #40a7e3);
    animation: spin 1s linear infinite;
}

.product-image:active {
    opacity: 0.8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
}

.product-info {
    flex: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    color: var(--tg-theme-text-color, #ffffff);
}

.wishlist-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s;
    color: var(--tg-theme-text-color, #ffffff);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:active {
    transform: scale(1.2);
}

.wishlist-btn.active {
    color: #ff6b6b;
}

.product-category {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
    color: var(--tg-theme-text-color, #ffffff);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-button-color, #40a7e3);
    margin-bottom: 8px;
}

/* ==================== КНОПКИ КОЛИЧЕСТВА ==================== */
.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--tg-theme-button-color, #40a7e3);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}

.quantity-btn.small {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-btn:active:not(:disabled) {
    opacity: 0.8;
    transform: scale(0.9);
}

.add-to-cart-btn {
    background: var(--tg-theme-button-color, #40a7e3);
    color: var(--tg-theme-button-text-color, #ffffff);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 8px;
}

.add-to-cart-btn:active {
    opacity: 0.8;
    transform: scale(0.95);
    animation: pulse 0.2s ease;
}

.add-to-cart-btn.disabled {
    opacity: 0.5;
    background: #666;
    cursor: not-allowed;
}

.add-to-cart-btn.disabled:active {
    transform: none;
    opacity: 0.5;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ==================== ПРЕДУПРЕЖДЕНИЕ О МАКСИМУМЕ ==================== */
.max-stock-warning {
    font-size: 12px;
    color: #ffaa00;
    text-align: center;
    margin-top: 5px;
    padding: 4px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 16px;
}

/* ==================== ИНДИКАТОР В КОРЗИНЕ ==================== */
.in-cart-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 5px 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
}

.in-cart-indicator span {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.remove-from-cart-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #ff4444;
    padding: 2px 8px;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-from-cart-btn:hover,
.remove-from-cart-btn:active {
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.1);
}

/* ==================== КНОПКА НАВЕРХ ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tg-theme-button-color, #40a7e3);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.2s, opacity 0.2s;
}

.scroll-top-btn:active {
    transform: scale(0.9);
}

/* ==================== ПАНЕЛИ ==================== */
.cart-panel, .orders-panel, .admin-panel, .wishlist-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tg-theme-bg-color, #1a1a1a);
    border-top: 1px solid var(--tg-theme-hint-color, #333333);
    padding: 0 16px 20px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    color: var(--tg-theme-text-color, #ffffff);
}

.cart-panel.open, .orders-panel.open, .admin-panel.open, .wishlist-panel.open {
    transform: translateY(0);
}

/* Заголовок панели */
.cart-header, .orders-header, .admin-header, .wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--tg-theme-hint-color, #333333);
    color: var(--tg-theme-text-color, #ffffff);
    position: sticky;
    top: 0;
    background: var(--tg-theme-bg-color, #1a1a1a);
    z-index: 10;
}

.cart-title, .orders-title, .admin-title, .wishlist-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #ffffff);
}

.close-cart, .close-orders, .close-admin, .close-wishlist {
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--tg-theme-text-color, #ffffff);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:active, .close-orders:active, .close-admin:active, .close-wishlist:active {
    opacity: 0.7;
}

/* ==================== АДМИН ПАНЕЛЬ ==================== */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tg-theme-hint-color, #333333);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--tg-theme-secondary-bg-color, #333333);
    color: var(--tg-theme-text-color, #ffffff);
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.admin-tab.active {
    background: var(--tg-theme-button-color, #40a7e3);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--tg-theme-secondary-bg-color, #333333);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--tg-theme-button-color, #40a7e3);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.7;
}

.admin-product-item {
    background: var(--tg-theme-secondary-bg-color, #333333);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-product-info {
    flex: 1;
}

.admin-product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-product-price {
    font-size: 16px;
    color: var(--tg-theme-button-color, #40a7e3);
}

.product-stats {
    font-size: 12px;
    color: var(--tg-theme-hint-color, #aaaaaa);
    margin-bottom: 8px;
}

.admin-product-actions {
    display: flex;
    gap: 10px;
}

.admin-edit-btn, .admin-delete-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.admin-edit-btn {
    background: #40a7e3;
    color: white;
}

.admin-delete-btn {
    background: #ff4444;
    color: white;
}

.admin-add-btn {
    width: 100%;
    padding: 12px;
    background: var(--tg-theme-button-color, #40a7e3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.admin-form {
    background: var(--tg-theme-secondary-bg-color, #333333);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid var(--tg-theme-hint-color, #444444);
}

.admin-form h4 {
    margin-bottom: 15px;
    color: var(--tg-theme-text-color, #ffffff);
    font-size: 16px;
}

.admin-form input, .admin-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--tg-theme-hint-color, #444444);
    border-radius: 8px;
    background: var(--tg-theme-bg-color, #1a1a1a);
    color: var(--tg-theme-text-color, #ffffff);
    font-size: 14px;
}

.admin-form input:focus, .admin-form select:focus {
    outline: 2px solid var(--tg-theme-button-color, #40a7e3);
}

.admin-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-save-btn {
    flex: 1;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.admin-cancel-btn {
    flex: 1;
    padding: 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* ==================== СТИЛИ ДЛЯ УПРАВЛЕНИЯ КОМПЛЕКТАМИ ==================== */
.kits-info-box {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #444;
}

.kits-info-box code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #ffaa00;
}

.kits-info-box ol {
    margin-left: 20px;
    color: #ddd;
}

.kits-info-box li {
    margin-bottom: 5px;
}

/* ==================== ПАНЕЛЬ ИЗОБРАЖЕНИЯ ==================== */
.image-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.image-panel.open {
    opacity: 1;
    visibility: visible;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    touch-action: none;
    cursor: default;
}

.large-image-full {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    cursor: grab;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.large-image-full:active {
    cursor: grabbing;
}

.close-image-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    font-weight: 300;
    line-height: 1;
    pointer-events: auto;
}

.close-image-btn:hover,
.close-image-btn:active {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Блокировка скролла при открытом фото */
body.image-panel-open {
    overflow: hidden;
}

body.image-panel-open .categories-row,
body.image-panel-open .search-sort,
body.image-panel-open #productsList,
body.image-panel-open .scroll-top-btn,
body.image-panel-open .header-actions,
body.image-panel-open .header,
body.image-panel-open .cart-icon,
body.image-panel-open .orders-icon,
body.image-panel-open .admin-icon,
body.image-panel-open .wishlist-icon {
    pointer-events: none !important;
    user-select: none !important;
}

body.image-panel-open .categories-row {
    overflow-x: hidden !important;
}

/* ==================== ИСТОРИЯ ЗАКАЗОВ ==================== */
.order-card {
    background: var(--tg-theme-secondary-bg-color, #333333);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--tg-theme-text-color, #ffffff);
    animation: fadeIn 0.3s ease;
}

.order-date {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.order-items {
    margin: 10px 0;
    font-size: 14px;
}

.order-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-button-color, #40a7e3);
}

/* ==================== ФОРМЫ ==================== */
.cart-form {
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--tg-theme-text-color, #ffffff);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--tg-theme-hint-color, #444444);
    border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color, #333333);
    color: var(--tg-theme-text-color, #ffffff);
    font-size: 14px;
    outline: none;
}

.date-range {
    background: var(--tg-theme-secondary-bg-color, #333333);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--tg-theme-hint-color, #444444);
    cursor: pointer;
    color: var(--tg-theme-text-color, #ffffff);
}

/* ==================== ЭЛЕМЕНТЫ КОРЗИНЫ ==================== */
.cart-items {
    margin-bottom: 16px;
    max-height: none;
    overflow-y: visible;
    border-top: 1px solid var(--tg-theme-hint-color, #333333);
    padding-top: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--tg-theme-hint-color, #333333);
    font-size: 14px;
    color: var(--tg-theme-text-color, #ffffff);
    animation: slideIn 0.2s ease;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-item-quantity span {
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.cart-item-days-price {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

.remove-item {
    background: none;
    border: none;
    font-size: 18px;
    color: #ff4444;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:active {
    transform: scale(1.2);
}

/* ==================== СУММАРИ ==================== */
.cart-summary {
    background: var(--tg-theme-secondary-bg-color, #333333);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--tg-theme-text-color, #ffffff);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-button-color, #40a7e3);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--tg-theme-hint-color, #444444);
}

/* ==================== КНОПКИ ==================== */
.clear-cart-btn, .clear-wishlist-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.clear-cart-btn:active, .clear-wishlist-btn:active {
    opacity: 0.8;
}

.send-order-btn {
    background: var(--tg-theme-button-color, #40a7e3);
    color: var(--tg-theme-button-text-color, #ffffff);
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
}

.send-order-btn:active {
    opacity: 0.8;
}

.send-order-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.export-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* ==================== ИЗБРАННОЕ ==================== */
.wishlist-item {
    padding: 15px;
    background: var(--tg-theme-secondary-bg-color, #333333);
    border-radius: 12px;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

.wishlist-item-main {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wishlist-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #ffffff;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wishlist-item-price {
    font-size: 16px;
    color: var(--tg-theme-button-color, #40a7e3);
    font-weight: 600;
}

.wishlist-item-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #ff4444;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item-remove:active {
    background: rgba(255, 68, 68, 0.1);
}

.wishlist-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tg-theme-hint-color, #444444);
}

.wishlist-item-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wishlist-item-quantity span {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.wishlist-add-to-cart {
    background: var(--tg-theme-button-color, #40a7e3);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wishlist-add-to-cart:active {
    opacity: 0.8;
}

.wishlist-add-to-cart:disabled {
    opacity: 0.5;
    background: #666;
    cursor: not-allowed;
}

/* ==================== ГРАФИК ==================== */
.chart-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--tg-theme-secondary-bg-color, #333333);
    border-radius: 12px;
    min-height: 300px;
}

/* ==================== КНОПКА ВЕРСИИ ==================== */
.version-info-btn {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* ==================== OVERLAY ==================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== ТОСТ УВЕДОМЛЕНИЯ ==================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    transition: transform 0.3s ease-in-out;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ==================== ЗАГРУЗЧИК ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== СКЕЛЕТОН КОРЗИНЫ ==================== */
.cart-skeleton {
    height: 60px;
    background: linear-gradient(90deg, #333333 25%, #444444 50%, #333333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
    margin-bottom: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== ПРОДУКТ ДЕЙСТВИЯ ==================== */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}