:root {
            --bg-dark: #0a0a0a;
            --bg-card: #151515;
            --bg-hover: #1f1f1f;
            --text-primary: #ffffff;
            --text-secondary: #a0a0a0;
            --accent: #00d4ff;
            --accent-dim: #0095b3;
            --border: #2a2a2a;
            --success: #00ff88;
            --error: #ff4444;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            margin: 0;
        }

        /* Демо стили для тестирования */
        .demo-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        .demo-product {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .demo-product img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            background: var(--bg-hover);
        }

        .demo-btn {
            background: var(--accent);
            color: var(--bg-dark);
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .demo-btn:hover {
            background: var(--accent-dim);
        }

        .cart-button {
            background: var(--bg-hover);
            border: 2px solid var(--border);
            color: var(--text-primary);
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1001;
            transition: all 0.3s ease;
        }

        .cart-button:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Стили корзины */
        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .cart-overlay.show {
            display: flex;
            opacity: 1;
        }

        .cart-container {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: scale(0.9) translateY(50px);
            transition: transform 0.3s ease;
        }

        .cart-overlay.show .cart-container {
            transform: scale(1) translateY(0);
        }

        .cart-header {
            padding: 25px 30px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-hover);
        }

        .cart-header h2 {
            margin: 0;
            font-size: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-counter {
            background: var(--accent);
            color: var(--bg-dark);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        .cart-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 28px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            border-radius: 4px;
            transition: color 0.3s ease;
        }

        .cart-close:hover {
            color: var(--text-primary);
        }

        .cart-body {
            flex: 1;
            overflow-y: auto;
            padding: 0;
            max-height: 400px;
        }

        .cart-items {
            padding: 20px 30px;
        }

        .cart-item {
            display: grid;
            grid-template-columns: 70px 1fr auto auto;
            gap: 15px;
            align-items: center;
            padding: 20px 0;
            border-bottom: 1px solid var(--border);
            animation: slideIn 0.3s ease;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .cart-item-image {
            width: 70px;
            height: 70px;
            object-fit: contain;
            border-radius: 8px;
            background: var(--bg-hover);
        }

        .cart-item-info h4 {
            margin: 0 0 5px 0;
            font-size: 16px;
            line-height: 1.3;
        }

        .cart-item-price {
            color: var(--accent);
            font-weight: 600;
            font-size: 15px;
        }

        .cart-item-old-price {
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 12px;
            text-decoration: line-through;
        }

        .cart-item-original-price {
            color: var(--red-price);
            font-weight: 600;
            font-size: 15px;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .qty-btn {
            background: var(--bg-hover);
            border: 1px solid var(--border);
            color: var(--text-primary);
            width: 30px;
            height: 30px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .qty-btn:hover:not(:disabled) {
            border-color: var(--accent);
            color: var(--accent);
        }

        .qty-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .quantity {
            font-weight: 600;
            min-width: 20px;
            text-align: center;
            font-size: 15px;
        }

        .remove-btn {
            background: var(--bg-hover);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            width: 30px;
            height: 30px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .remove-btn:hover {
            border-color: var(--error);
            color: var(--error);
        }

        .cart-footer {
            padding: 25px 30px;
            border-top: 1px solid var(--border);
            background: var(--bg-hover);
        }

        .cart-total-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 20px;
            font-weight: 600;
        }

        .cart-total {
            color: var(--accent);
        }

        .cart-actions {
            display: flex;
            gap: 12px;
        }

        .cart-actions button {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .btn-continue {
            background: transparent;
            color: var(--text-primary);
            border: 2px solid var(--border);
        }

        .btn-continue:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .btn-checkout {
            background: var(--accent);
            color: var(--bg-dark);
        }

        .btn-checkout:hover {
            background: var(--accent-dim);
            transform: translateY(-2px);
        }

        .btn-checkout:disabled {
            background: var(--bg-hover);
            color: var(--text-secondary);
            cursor: not-allowed;
            transform: none;
        }

        .empty-cart {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .empty-cart-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        /* Уведомление о добавлении */
        .cart-notification {
            position: fixed;
            top: 80px;
            right: -400px;
            background: var(--success);
            color: var(--bg-dark);
            padding: 16px 24px;
            border-radius: 8px;
            z-index: 10001;
            transition: right 0.3s ease;
            max-width: 300px;
            box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
            font-weight: 600;
        }

        .cart-notification.show {
            right: 20px;
        }

        /* Форма заказа */
        .checkout-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .checkout-overlay.show {
            display: flex;
            opacity: 1;
        }

        .checkout-form {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.9) translateY(30px);
            transition: transform 0.3s ease;
        }

        .checkout-overlay.show .checkout-form {
            transform: scale(1) translateY(0);
        }

        .checkout-header {
            padding: 25px 30px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-hover);
        }

        .checkout-header h3 {
            margin: 0;
            font-size: 24px;
        }

        .checkout-body {
            padding: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-hover);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 16px;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
        }

        .form-input::placeholder {
            color: var(--text-secondary);
        }

        .order-summary {
            background: var(--bg-hover);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
        }

        .order-summary h4 {
            margin: 0 0 15px 0;
            color: var(--accent);
        }

        .order-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border);
        }

        .order-item:last-child {
            border-bottom: none;
            font-weight: 600;
            color: var(--accent);
            font-size: 18px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border);
        }

        .checkout-actions {
            display: flex;
            gap: 15px;
        }

        .checkout-actions button {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .btn-cancel {
            background: transparent;
            color: var(--text-primary);
            border: 2px solid var(--border);
        }

        .btn-cancel:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .btn-submit {
            background: var(--accent);
            color: var(--bg-dark);
        }

        .btn-submit:hover:not(:disabled) {
            background: var(--accent-dim);
            transform: translateY(-2px);
        }

        .btn-submit:disabled {
            background: var(--bg-hover);
            color: var(--text-secondary);
            cursor: not-allowed;
            transform: none;
        }

        .loading-spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top: 2px solid var(--bg-dark);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 8px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .success-message {
            background: var(--success);
            color: var(--bg-dark);
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .error-message {
            background: var(--error);
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        @media (max-width: 768px) {
            .cart-container {
                width: 95%;
                margin: 20px;
            }

            .cart-item {
                grid-template-columns: 50px 1fr auto auto;
                gap: 10px;
            }

            .cart-item-controls {
                /* grid-column: 1 / 3; */
                /* justify-content: space-between; */
                /* margin-top: 12px; */
                gap: 5px;
            }

            .remove-btn {
                margin-left: auto;
            }

            .cart-actions {
                flex-direction: column;
            }
            
             .cart-item-image {
            width: 50px;
            height: 50px;
        }

        .cart-item-info h4 {
            font-size: 12px;
        }

        .checkout-actions {
            flex-direction: column-reverse;
        }
        }